aboutsummaryrefslogtreecommitdiffstats
path: root/databases/ruby-cdb
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2011-05-03 11:05:04 +0800
committerswills <swills@FreeBSD.org>2011-05-03 11:05:04 +0800
commit897a749666ba5e839f164ace510168b2b0b69a0e (patch)
tree91414d7ebfaf9bff1084371f3bef99daef63f91e /databases/ruby-cdb
parent103936e9a10c10a0fa67ff91f6b95698ebd202f9 (diff)
downloadfreebsd-ports-gnome-897a749666ba5e839f164ace510168b2b0b69a0e.tar.gz
freebsd-ports-gnome-897a749666ba5e839f164ace510168b2b0b69a0e.tar.zst
freebsd-ports-gnome-897a749666ba5e839f164ace510168b2b0b69a0e.zip
- Fix build with Ruby 1.9
PR: ports/156506 Submitted by: Eric Freeman <freebsdports@chillibear.com> Approved by: maintainer (stas@ via irc)
Diffstat (limited to 'databases/ruby-cdb')
-rw-r--r--databases/ruby-cdb/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/databases/ruby-cdb/Makefile b/databases/ruby-cdb/Makefile
index 40b9b57891a8..27b6579214d8 100644
--- a/databases/ruby-cdb/Makefile
+++ b/databases/ruby-cdb/Makefile
@@ -28,6 +28,12 @@ INSTALL_TARGET= site-install
.include <bsd.port.pre.mk>
+post-patch:
+ ${REINPLACE_CMD} -E \
+ -e 's|RSTRING\(([^)]+)\)->len|RSTRING_LEN(\1)|g' \
+ -e 's|RSTRING\(([^)]+)\)->ptr|RSTRING_PTR(\1)|g' \
+ ${WRKSRC}/cdb.c
+
post-extract:
${RM} -f ${WRKSRC}/cdb
${LN} -s `cd ${CDB_PORTDIR}; ${MAKE} -V WRKSRC` ${WRKSRC}/cdb