Adding the option "--with-doc" to install Ruby with documentation.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>master
parent
efbd04bb72
commit
f3d03e1a5c
|
@ -12,6 +12,7 @@ class Ruby <Formula
|
||||||
def options
|
def options
|
||||||
[
|
[
|
||||||
["--with-suffix", "Add a 19 suffix to commands"],
|
["--with-suffix", "Add a 19 suffix to commands"],
|
||||||
|
["--with-doc", "Install with the Ruby documentation"],
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -28,6 +29,8 @@ class Ruby <Formula
|
||||||
system "./configure", *args
|
system "./configure", *args
|
||||||
system "make"
|
system "make"
|
||||||
system "make install"
|
system "make install"
|
||||||
|
|
||||||
|
system "make install-doc" if ARGV.include? "--with-doc"
|
||||||
end
|
end
|
||||||
|
|
||||||
def caveats; <<-EOS
|
def caveats; <<-EOS
|
||||||
|
|
Loading…
Reference in New Issue