summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-09-17 06:38:03 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-09-17 06:38:03 +0000
commitc43c9c91a7e3f028aff338f77b2dfb99300bfc4e (patch)
treea9ea5cb26443ff3bfa87c33f16c9d6804bf647f1 /devel
parentAdd diffutils 2.7, the GNU diff utilities. (diff)
Add a patch to avoid the following warning:
warning: already initialized constant ScanError
Notes
Notes: svn path=/head/; revision=47905
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);