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.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb
index fcdf87013..48acdaaa7 100644
--- a/Library/Formula/ruby.rb
+++ b/Library/Formula/ruby.rb
@@ -3,9 +3,10 @@ require 'formula'
# TODO de-version the include and lib directories
class Ruby <Formula
- @url='http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p378.tar.gz'
- @homepage='http://www.ruby-lang.org/en/'
- @md5='9fc5941bda150ac0a33b299e1e53654c'
+ url 'http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p378.tar.gz'
+ homepage 'http://www.ruby-lang.org/en/'
+ head 'http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_2/', :using => :svn
+ md5 '9fc5941bda150ac0a33b299e1e53654c' unless ARGV.include? '--HEAD'
depends_on 'readline'
@@ -26,6 +27,8 @@ class Ruby <Formula
args << "--program-suffix=19" if ARGV.include? "--with-suffix"
+ system "autoconf" unless File.exists? 'configure'
+
system "./configure", *args
system "make"
system "make install"