summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-05-06 14:23:53 +0000
committerknu <knu@FreeBSD.org>2001-05-06 14:23:53 +0000
commitade2d4727a304fd4eb61b9422c4ee5fa80ecb4a8 (patch)
tree426e42c41a84c63ba728ade7561f1a48317760eb
parent3e63928b8e7100014bdefaaa799ed13d26bec7a5 (diff)
downloadFreeBSD-ports-ade2d4727a304fd4eb61b9422c4ee5fa80ecb4a8.zip
FreeBSD-ports-ade2d4727a304fd4eb61b9422c4ee5fa80ecb4a8.tar.gz
Oops, make it *work* with Ruby 1.7 (make RUBY_VER=1.7).
-rw-r--r--archivers/ruby-zlib/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/archivers/ruby-zlib/Makefile b/archivers/ruby-zlib/Makefile
index fc00a1b1..bd0e191 100644
--- a/archivers/ruby-zlib/Makefile
+++ b/archivers/ruby-zlib/Makefile
@@ -24,7 +24,10 @@ DOCS_EN= ChangeLog zlib.en.html
DOCS_JA= zlib.ja.html
post-patch:
- ${RUBY} -i -pe 'sub /\bNORETURN\b/, ""' ${WRKSRC}/zlib.c
+ ${RUBY} -i -p \
+ -e 'gsub /\bNORETURN\b/, ""' \
+ -e 'gsub /\bstr2cstr\b/, "rb_str2cstr"' \
+ ${WRKSRC}/zlib.c
post-install:
.if !defined(NOPORTDOCS)
OpenPOWER on IntegriCloud