1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

- patch for oniguruma library installed

Submitted by:	stas
This commit is contained in:
Cheng-Lung Sung 2007-02-02 00:57:15 +00:00
parent 1039a34147
commit 4e412a71aa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=183920
2 changed files with 25 additions and 0 deletions

View File

@ -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

View File

@ -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;