aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-09-17 14:38:03 +0800
committerknu <knu@FreeBSD.org>2001-09-17 14:38:03 +0800
commite684244c18ad7d1bd38b4268315fb28f6b277f4e (patch)
tree83c58abddb97c6502340c8d85939f3dc53b3cc2d /devel
parent0430b373da10be95374a599b7e2c43825161f5a2 (diff)
downloadfreebsd-ports-gnome-e684244c18ad7d1bd38b4268315fb28f6b277f4e.tar.gz
freebsd-ports-gnome-e684244c18ad7d1bd38b4268315fb28f6b277f4e.tar.zst
freebsd-ports-gnome-e684244c18ad7d1bd38b4268315fb28f6b277f4e.zip
Add a patch to avoid the following warning:
warning: already initialized constant ScanError
Diffstat (limited to 'devel')
-rw-r--r--devel/ruby-strscan/Makefile1
-rw-r--r--devel/ruby-strscan/files/patch-cscan.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/devel/ruby-strscan/Makefile b/devel/ruby-strscan/Makefile
index 727cbf5cca31..22942edc4aa9 100644
--- a/devel/ruby-strscan/Makefile
+++ b/devel/ruby-strscan/Makefile
@@ -7,6 +7,7 @@
PORTNAME= strscan
PORTVERSION= 0.6.3
+PORTREVISION= 1
CATEGORIES= devel ruby
MASTER_SITES= http://www.loveruby.net/archive/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
diff --git a/devel/ruby-strscan/files/patch-cscan.c b/devel/ruby-strscan/files/patch-cscan.c
new file mode 100644
index 000000000000..85f3d6978db9
--- /dev/null
+++ b/devel/ruby-strscan/files/patch-cscan.c
@@ -0,0 +1,12 @@
+--- ext/cscan/cscan.c.orig Sat Apr 7 14:47:31 2001
++++ ext/cscan/cscan.c Mon Sep 17 13:28:33 2001
+@@ -595,8 +595,7 @@
+ ScanError = rb_const_get(rb_cObject, id_scanerr);
+ }
+ else {
+- ScanError = rb_define_class("ScanError", rb_eStandardError);
+- rb_define_const(rb_cObject, "ScanError", ScanError);
++ ScanError = rb_define_class_id(id_scanerr, rb_eStandardError);
+ }
+
+ StringScanner = rb_define_class("StringScanner_C", rb_cObject);