2010-05-26 07:46:38 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Rubinius < Formula
|
|
|
|
homepage 'http://rubini.us/'
|
2011-08-08 00:41:52 +00:00
|
|
|
url 'http://asset.rubini.us/rubinius-1.2.4-20110705.tar.gz'
|
|
|
|
version '1.2.4'
|
|
|
|
sha1 'c39c4fb1e62e0fb418453811636177e6ccf6a936'
|
|
|
|
head 'https://github.com/rubinius/rubinius.git'
|
2010-05-26 07:46:38 +00:00
|
|
|
|
2013-02-17 00:20:30 +00:00
|
|
|
env :std
|
|
|
|
|
2010-05-26 07:46:38 +00:00
|
|
|
def install
|
|
|
|
# Let Rubinius define its own flags; messing with these causes build breaks.
|
2012-05-08 05:29:44 +00:00
|
|
|
ENV.remove_cc_etc
|
2010-05-26 07:46:38 +00:00
|
|
|
|
2010-12-26 18:46:16 +00:00
|
|
|
# Unset RUBYLIB to configure Rubinius
|
|
|
|
ENV.delete("RUBYLIB")
|
|
|
|
|
2010-12-21 20:57:28 +00:00
|
|
|
# Set to stop Rubinius messing with our prefix.
|
|
|
|
ENV["RELEASE"] = "1"
|
|
|
|
|
2013-01-31 05:25:31 +00:00
|
|
|
ruby "./configure",
|
|
|
|
"--skip-system", # download and use the prebuilt LLVM
|
|
|
|
"--bindir", bin,
|
|
|
|
"--prefix", prefix,
|
|
|
|
"--includedir", "#{include}/rubinius",
|
|
|
|
"--libdir", lib,
|
|
|
|
"--mandir", man, # For completeness; no manpages exist yet.
|
|
|
|
"--gemsdir", "#{lib}/rubinius/gems"
|
2010-05-26 07:46:38 +00:00
|
|
|
|
|
|
|
ohai "config.rb", File.open('config.rb').to_a if ARGV.debug? or ARGV.verbose?
|
|
|
|
|
2013-01-31 05:25:31 +00:00
|
|
|
ruby "-S", "rake", "install"
|
2010-12-26 19:16:02 +00:00
|
|
|
|
|
|
|
# Remove conflicting command aliases
|
|
|
|
bin.children.select(&:symlink?).each(&:unlink)
|
2010-05-26 07:46:38 +00:00
|
|
|
end
|
|
|
|
end
|