diff options
| author | lukas | 2010-05-26 09:46:38 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2010-05-26 10:48:37 -0700 |
| commit | 0c53f2f46943cfd21467a42b6f9bc00ff4e1652c (patch) | |
| tree | bdcdbf196952b4bf880e6a8978514e3e83a827d8 /Library | |
| parent | 49b7b9bb0e7f2622c88085ff73180bec417fb467 (diff) | |
| download | homebrew-0c53f2f46943cfd21467a42b6f9bc00ff4e1652c.tar.bz2 | |
added rubinius 1.0.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
* Don't need ENV.gcc_4_2 if clearing all the flags anyway
* Add --mandir (though no manpages are currently installed)
* Show config.rb on debug or verbose (to help with bug reports)
* Removing j1 doesn't seem to break anything; compiles a bit faster on Mac Pro
* Tweak formatting
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/rubinius.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/rubinius.rb b/Library/Formula/rubinius.rb new file mode 100644 index 000000000..23875efbc --- /dev/null +++ b/Library/Formula/rubinius.rb @@ -0,0 +1,33 @@ +require 'formula' + +class Rubinius < Formula + url 'http://asset.rubini.us/rubinius-1.0.0-20100514.tar.gz' + version '1.0.0' + homepage 'http://rubini.us/' + md5 'b05f4e791d3712c5a50b3d210dac6eb0' + head 'git://github.com/evanphx/rubinius.git' + + aka "rbx" + + # Do not strip binaries, or else it fails to run. + def skip_clean?(path); true end + + def install + # Let Rubinius define its own flags; messing with these causes build breaks. + %w{CC CXX LD CFLAGS CXXFLAGS CPPFLAGS LDFLAGS}.each { |e| ENV.delete(e) } + + ENV['RELEASE'] = "#{version}" # to fix issues with "path already exists" + + # "--skip-system" means to use the included LLVM + system "./configure", "--skip-system", + "--prefix", "#{prefix}", + "--includedir", "#{include}/rubinius", + "--libdir", lib, + "--mandir", man, # For completeness; no manpages exist yet. + "--gemsdir", "#{lib}/rubinius/gems" + + ohai "config.rb", File.open('config.rb').to_a if ARGV.debug? or ARGV.verbose? + + system "/usr/bin/ruby", "-S", "rake", "install" + end +end |
