aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-05-06 22:23:53 +0800
committerknu <knu@FreeBSD.org>2001-05-06 22:23:53 +0800
commitade2d4727a304fd4eb61b9422c4ee5fa80ecb4a8 (patch)
tree426e42c41a84c63ba728ade7561f1a48317760eb /archivers
parent3e63928b8e7100014bdefaaa799ed13d26bec7a5 (diff)
downloadfreebsd-ports-gnome-ade2d4727a304fd4eb61b9422c4ee5fa80ecb4a8.tar.gz
freebsd-ports-gnome-ade2d4727a304fd4eb61b9422c4ee5fa80ecb4a8.tar.zst
freebsd-ports-gnome-ade2d4727a304fd4eb61b9422c4ee5fa80ecb4a8.zip
Oops, make it *work* with Ruby 1.7 (make RUBY_VER=1.7).
Diffstat (limited to 'archivers')
-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 fc00a1b19f51..bd0e1910e3a2 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)