aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdriano Bonat2010-05-16 20:29:32 -0300
committerAdam Vandenberg2010-05-19 16:07:01 -0700
commitb38189029835a85fdc03b55b1cd42b2dbf67cf9e (patch)
tree0bfc9088f7dd0f3ba8711a2ca319f03737f0b7ff /Library
parent0005a71d69ded6e53e7d3d41c68013b9b590e48d (diff)
downloadhomebrew-b38189029835a85fdc03b55b1cd42b2dbf67cf9e.tar.bz2
Adding the option "--with-doc" to install Ruby with documentation.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ruby.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb
index 2cfc2cdf4..fcdf87013 100644
--- a/Library/Formula/ruby.rb
+++ b/Library/Formula/ruby.rb
@@ -12,6 +12,7 @@ class Ruby <Formula
def options
[
["--with-suffix", "Add a 19 suffix to commands"],
+ ["--with-doc", "Install with the Ruby documentation"],
]
end
@@ -28,6 +29,8 @@ class Ruby <Formula
system "./configure", *args
system "make"
system "make install"
+
+ system "make install-doc" if ARGV.include? "--with-doc"
end
def caveats; <<-EOS