2010-05-26 07:46:38 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Rubinius < Formula
|
2010-06-07 06:04:28 +00:00
|
|
|
url 'http://asset.rubini.us/rubinius-1.0.1-20100603.tar.gz'
|
|
|
|
version '1.0.1'
|
2010-05-26 07:46:38 +00:00
|
|
|
homepage 'http://rubini.us/'
|
2010-06-07 06:04:28 +00:00
|
|
|
md5 'eb185703c7ae0c0210e8dcb7f783ee8e'
|
2010-05-26 07:46:38 +00:00
|
|
|
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
|
2010-07-18 19:31:09 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Consider using RVM or Cider to manage Ruby environments:
|
|
|
|
* RVM: http://rvm.beginrescueend.com/
|
|
|
|
* Cider: http://www.atmos.org/cider/intro.html
|
|
|
|
EOS
|
|
|
|
end
|
2010-05-26 07:46:38 +00:00
|
|
|
end
|