homebrew-core/Formula/rubinius.rb
Jamie Macey b7d426169e Cider was renamed to Cinderella
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-25 21:11:28 -07:00

43 lines
1.6 KiB
Ruby

require 'formula'
class Rubinius < Formula
url 'http://asset.rubini.us/rubinius-1.1.0-20100923.tar.gz'
version '1.1.0'
homepage 'http://rubini.us/'
md5 'e2ae16238b201de09975abe19da09ea9'
head 'git://github.com/evanphx/rubinius.git'
# Do not strip binaries, or else it fails to run.
skip_clean :all
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"
# The configure script uses "#!/usr/bin/env ruby" but complains if you
# aren't using 1.8, so replace it with the path to the OS X system ruby.
# (If the user has replaces their system ruby, well, don't do that.)
inreplace 'configure', "#!/usr/bin/env ruby", "#!/usr/bin/ruby"
# "--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
def caveats; <<-EOS.undent
Consider using RVM or Cinderella to manage Ruby environments:
* RVM: http://rvm.beginrescueend.com/
* Cinderella: http://www.atmos.org/cinderella/
EOS
end
end