aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2007-02-02 08:57:15 +0800
committerclsung <clsung@FreeBSD.org>2007-02-02 08:57:15 +0800
commit832490c649a675aba312b39d470c41e33920ce89 (patch)
treec99d195e32ec7f07bdf332890ebd010993de6e51
parentb09b80164c060fd0471dc3bb22d43087b275893a (diff)
downloadfreebsd-ports-gnome-832490c649a675aba312b39d470c41e33920ce89.tar.gz
freebsd-ports-gnome-832490c649a675aba312b39d470c41e33920ce89.tar.zst
freebsd-ports-gnome-832490c649a675aba312b39d470c41e33920ce89.zip
- patch for oniguruma library installed
Submitted by: stas
-rw-r--r--devel/ruby-mmap/Makefile5
-rw-r--r--devel/ruby-mmap/files/extra-patch-oniguruma20
2 files changed, 25 insertions, 0 deletions
diff --git a/devel/ruby-mmap/Makefile b/devel/ruby-mmap/Makefile
index 9d69794eb62f..405273756d9e 100644
--- a/devel/ruby-mmap/Makefile
+++ b/devel/ruby-mmap/Makefile
@@ -31,6 +31,11 @@ DOCS= Changes \
.include <bsd.port.pre.mk>
+post-patch:
+.if exists(${RUBY_ARCHLIBDIR}/oniguruma.h)
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-oniguruma
+.endif
+
post-build:
.if !defined(NOPORTDOCS)
cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc
diff --git a/devel/ruby-mmap/files/extra-patch-oniguruma b/devel/ruby-mmap/files/extra-patch-oniguruma
new file mode 100644
index 000000000000..6b5160b4fc62
--- /dev/null
+++ b/devel/ruby-mmap/files/extra-patch-oniguruma
@@ -0,0 +1,20 @@
+--- mmap.c.orig Thu Feb 1 14:52:50 2007
++++ mmap.c Thu Feb 1 14:55:16 2007
+@@ -1113,7 +1113,7 @@
+ }
+ else {
+ RSTRING(str)->ptr += start;
+- repl = rb_reg_regsub(repl, str, regs);
++ repl = rb_reg_regsub(repl, str, regs, pat);
+ RSTRING(str)->ptr -= start;
+ }
+ if (OBJ_TAINTED(repl)) tainted = 1;
+@@ -1211,7 +1211,7 @@
+ }
+ else {
+ RSTRING(str)->ptr += start;
+- val = rb_reg_regsub(repl, str, regs);
++ val = rb_reg_regsub(repl, str, regs, pat);
+ RSTRING(str)->ptr -= start;
+ }
+ if (OBJ_TAINTED(repl)) tainted = 1;