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:
parent
1039a34147
commit
4e412a71aa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=183920
@ -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
|
||||
|
20
devel/ruby-mmap/files/extra-patch-oniguruma
Normal file
20
devel/ruby-mmap/files/extra-patch-oniguruma
Normal 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;
|
Loading…
Reference in New Issue
Block a user