1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Fix build with Ruby 1.9

PR:		ports/156506
Submitted by:	Eric Freeman <freebsdports@chillibear.com>
Approved by:	maintainer (stas@ via irc)
This commit is contained in:
Steve Wills 2011-05-03 03:05:04 +00:00
parent 49696a0dc2
commit 5c01404c74
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=273520
2 changed files with 17 additions and 11 deletions

View File

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

View File

@ -1,11 +1,11 @@
--- install.rb.orig Fri Aug 4 17:53:04 2006
+++ install.rb Fri Aug 4 17:53:10 2006
@@ -125,7 +125,7 @@
Shall I bother?
}.trim
end
- elsif Dir["stdlib"] > 0
+ elsif Dir["stdlib"].size > 0
# It's got *something* in it, but not stdlib doc.
confirm %{
#@doc_base/stdlib contains something, but not what I expected.
--- install.rb.orig 2011-04-18 19:15:14.000000000 +0100
+++ install.rb 2011-04-18 19:15:34.000000000 +0100
@@ -83,7 +83,7 @@
opts = OptionParser.new do |o|
o.program_name = "ruby install.rb"
o.separator "Options:"
- o.on('--doc-base DIR', '-d', "Install documentation to DIR/stdlib") { |@doc_base| }
+ o.on('--doc-base DIR', '-d', "Install documentation to DIR/stdlib") { |_doc_base| @doc_base = _doc_base}
o.on('--force', '-f', "Don't ask any questions; just install") { @force = true }
o.on('--interactive', '-i', "Confirm any risky actions") { @force = false }
o.on_tail('--help', '-h', "Show this message") do