aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-11-17 11:10:13 -0800
committerAdam Vandenberg2013-11-17 11:10:13 -0800
commitf165d6b005ad5956cd4d85a02de6587f445557d8 (patch)
treee1efc728c82f4924bd65c34e504a4b9b68de030e /Library/Formula
parentac45ec7ee2a4df98b4d6546346df2c1c478d4888 (diff)
downloadhomebrew-f165d6b005ad5956cd4d85a02de6587f445557d8.tar.bz2
Blacklist rubinius and recommend ruby-build
Closes #23195.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/rubinius.rb80
1 files changed, 0 insertions, 80 deletions
diff --git a/Library/Formula/rubinius.rb b/Library/Formula/rubinius.rb
deleted file mode 100644
index 28d5f9065..000000000
--- a/Library/Formula/rubinius.rb
+++ /dev/null
@@ -1,80 +0,0 @@
-require 'formula'
-
-class Rubinius < Formula
- homepage 'http://rubini.us/'
- url 'http://releases.rubini.us/rubinius-2.0.0.tar.bz2'
- sha1 'b2b6c0c95eddcadd5b8db058a26c6975f1af26a4'
- head 'https://github.com/rubinius/rubinius.git'
-
- # Yes, rubinius actually needs a pre-existing ruby 2.0 install to build
- depends_on 'ruby' => :build
-
- env :std
-
- # Configure options like --libdir are broken; submitted upstream:
- # https://github.com/rubinius/rubinius/pull/2658
- def patches; DATA; end
-
- def install
- # Let Rubinius define its own flags; messing with these causes build breaks.
- ENV.remove_cc_etc
-
- # Unset RUBYLIB to configure Rubinius
- ENV.delete("RUBYLIB")
-
- # Set to stop Rubinius messing with our prefix.
- ENV["RELEASE"] = "1"
-
- system "bundle"
- system "./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"
-
- ohai "config.rb", File.open('config.rb').to_a if ARGV.debug? or ARGV.verbose?
-
- system "rake", "install"
-
- # Remove conflicting command aliases
- bin.children.select(&:symlink?).each(&:unlink)
- # This conclicts with the Ruby command of the same name
- (bin/'testrb').unlink
- end
-
- test do
- assert_equal 'rbx', `"#{bin}/rbx" -e "puts RUBY_ENGINE"`.chomp
- end
-end
-
-__END__
-diff --git a/configure b/configure
-index 3e1a715..03c2ea7 100755
---- a/configure
-+++ b/configure
-@@ -384,7 +384,7 @@ class Configure
-
- o.on "-P", "--prefix", "PATH", "Install Rubinius in subdirectories of PATH" do |dir|
- warn_prefix dir
-- @prefixdir = dir
-+ @prefixdir = dir.dup
- end
-
- o.on "-B", "--bindir", "PATH", "Install Rubinius executable in PATH" do |dir|
-@@ -396,11 +396,11 @@ class Configure
- end
-
- o.on "-A", "--appdir", "PATH", "Install Ruby runtime and libraries in PATH" do |dir|
-- @appdir = dir
-+ @appdir = dir.dup
- end
-
- o.on "-L", "--libdir", "PATH", "Install Rubinius shared library in PATH" do |dir|
-- @libdir = dir
-+ @libdir = dir.dup
- end
-
- o.on "-M", "--mandir", "PATH", "Install man pages in PATH" do |dir|