diff options
author | swills <swills@FreeBSD.org> | 2011-05-03 11:05:04 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2011-05-03 11:05:04 +0800 |
commit | 897a749666ba5e839f164ace510168b2b0b69a0e (patch) | |
tree | 91414d7ebfaf9bff1084371f3bef99daef63f91e /lang/ruby-doc-stdlib | |
parent | 103936e9a10c10a0fa67ff91f6b95698ebd202f9 (diff) | |
download | freebsd-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 'lang/ruby-doc-stdlib')
-rw-r--r-- | lang/ruby-doc-stdlib/files/patch-install.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lang/ruby-doc-stdlib/files/patch-install.rb b/lang/ruby-doc-stdlib/files/patch-install.rb index 3abd3dfefd0b..0e2f45a1ac84 100644 --- a/lang/ruby-doc-stdlib/files/patch-install.rb +++ b/lang/ruby-doc-stdlib/files/patch-install.rb @@ -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 |