aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ruby.rb
diff options
context:
space:
mode:
authorLincoln Stoll2010-01-19 12:41:37 +0100
committerMax Howell2010-01-24 12:31:59 +0000
commite1b2feae072ea2040ac227e288065c6da1a32821 (patch)
tree56159a051e6b283e556f49d4c05627f14a321dcb /Library/Formula/ruby.rb
parentce1f889810000479acff9d7fe8b254f19e92825b (diff)
downloadhomebrew-e1b2feae072ea2040ac227e288065c6da1a32821.tar.bz2
Add an option to add a 1.9 suffix to ruby
Diffstat (limited to 'Library/Formula/ruby.rb')
-rw-r--r--Library/Formula/ruby.rb19
1 files changed, 15 insertions, 4 deletions
diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb
index 0851f9e1d..292e3fec4 100644
--- a/Library/Formula/ruby.rb
+++ b/Library/Formula/ruby.rb
@@ -9,12 +9,23 @@ class Ruby <Formula
depends_on 'readline'
+ def options
+ [
+ ["--with-suffix", "Add a 19 suffix to commands"],
+ ]
+ end
+
def install
ENV.gcc_4_2
- system "./configure", "--prefix=#{prefix}",
- "--disable-debug",
- "--disable-dependency-tracking",
- "--enable-shared"
+
+ args = [ "--prefix=#{prefix}",
+ "--disable-debug",
+ "--disable-dependency-tracking",
+ "--enable-shared" ]
+
+ args << "--program-suffix=19" if ARGV.include? "--with-suffix"
+
+ system "./configure", *args
system "make"
system "make install"
end