2009-09-07 04:08:00 +00:00
|
|
|
require 'brewkit'
|
|
|
|
|
2009-09-13 16:59:04 +00:00
|
|
|
# TODO de-version the include and lib directories
|
2009-09-07 04:08:00 +00:00
|
|
|
|
|
|
|
class Ruby <Formula
|
2009-09-21 20:40:24 +00:00
|
|
|
@url='ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz'
|
2009-09-13 16:59:04 +00:00
|
|
|
@homepage='http://www.ruby-lang.org/en/'
|
2009-09-21 20:40:24 +00:00
|
|
|
@md5='515bfd965814e718c0943abf3dde5494'
|
2009-09-13 16:59:04 +00:00
|
|
|
|
2009-09-07 04:08:00 +00:00
|
|
|
def install
|
2009-09-13 16:59:04 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2009-09-22 21:21:54 +00:00
|
|
|
"--enable-shared"
|
2009-09-07 04:08:00 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def skip_clean? path
|
2009-09-21 20:40:24 +00:00
|
|
|
# TODO only skip the clean for the files that need it, we didn't get a
|
|
|
|
# comment about why we're skipping the clean, so you'll need to figure
|
|
|
|
# that out first --mxcl
|
2009-09-07 04:08:00 +00:00
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|