aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/ruby.rb')
-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