aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-09-24 08:17:43 -0700
committerAdam Vandenberg2010-09-24 08:17:43 -0700
commit648b2f1355484a29388a48fd0b1da141cd12b303 (patch)
treec9c0a65d7c25b2fb5d257289ae637e4f713d8011 /Library
parent5bc0ca46fa58cb21ce62891bd0dac241848c2612 (diff)
downloadhomebrew-648b2f1355484a29388a48fd0b1da141cd12b303.tar.bz2
rubinius - force use of system ruby (1.8.x)
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/rubinius.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/rubinius.rb b/Library/Formula/rubinius.rb
index fae7732e2..e46fada20 100644
--- a/Library/Formula/rubinius.rb
+++ b/Library/Formula/rubinius.rb
@@ -16,6 +16,11 @@ class Rubinius < Formula
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,