Adding the option "--with-doc" to install Ruby with documentation.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Adriano Bonat 2010-05-16 20:29:32 -03:00 committed by Adam Vandenberg
parent efbd04bb72
commit f3d03e1a5c

View file

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