From e684244c18ad7d1bd38b4268315fb28f6b277f4e Mon Sep 17 00:00:00 2001 From: knu Date: Mon, 17 Sep 2001 06:38:03 +0000 Subject: Add a patch to avoid the following warning: warning: already initialized constant ScanError --- devel/ruby-strscan/Makefile | 1 + devel/ruby-strscan/files/patch-cscan.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 devel/ruby-strscan/files/patch-cscan.c (limited to 'devel') 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); -- cgit