diff options
Diffstat (limited to 'Library/Formula/ruby.rb')
| -rw-r--r-- | Library/Formula/ruby.rb | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb index c1f376332..56cbc32d9 100644 --- a/Library/Formula/ruby.rb +++ b/Library/Formula/ruby.rb @@ -1,12 +1,13 @@ require 'formula' +# TODO de-version the include and lib directories + class Ruby <Formula - url 'ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz' - homepage 'http://www.ruby-lang.org/en/' - md5 '515bfd965814e718c0943abf3dde5494' + @url='ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz' + @homepage='http://www.ruby-lang.org/en/' + @md5='515bfd965814e718c0943abf3dde5494' depends_on 'readline' - skip_clean 'bin/ruby' def install ENV.gcc_4_2 @@ -16,29 +17,12 @@ class Ruby <Formula "--enable-shared" system "make" system "make install" - - unless ARGV.include? '--enable-super-dupe' - Dir.chdir prefix - FileUtils.rm_rf Dir['lib/ruby/*/rubygems'] - FileUtils.rm_rf Dir['lib/ruby/*/rake'] - File.unlink 'bin/gem' - File.unlink 'bin/rake' - File.unlink man1+'rake.1' - end end - def caveats; <<-EOS -By default we don't install the bundled Rake or RubyGems. - -This is because they both come with the system installed Ruby. You can upgrade -them with `gem update --system`. - -If you really want them though do: - - brew install ruby --force --enable-super-dupe - -If you disagree with this decision, please create an issue on GitHub as we -should discuss the matter. - EOS + def skip_clean? path + # 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 + true end end |
