aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBen Lavender2012-07-09 13:43:12 -0500
committerAdam Vandenberg2012-07-09 12:38:00 -0700
commit7eeda758d35b0ff13403aee059974f26aa50b640 (patch)
tree517cfde7b7944a339e7b978ffc837ebcf9490ea7 /Library
parent60c10395394447a742f09bec52423c50994c0b14 (diff)
downloadhomebrew-7eeda758d35b0ff13403aee059974f26aa50b640.tar.bz2
macvim: use system ruby
MacVim expects Ruby 1.8, but will pick up a Homebrewed ruby and fail to compile. Force the use of System ruby. Closes #13293. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/macvim.rb19
1 files changed, 2 insertions, 17 deletions
diff --git a/Library/Formula/macvim.rb b/Library/Formula/macvim.rb
index 4fd141803..1b6a34e30 100644
--- a/Library/Formula/macvim.rb
+++ b/Library/Formula/macvim.rb
@@ -1,20 +1,5 @@
require 'formula'
-class Ruby18x < Requirement
- def message; <<-EOS.undent
- MacVim compiles against whatever Ruby it finds in your path, and has
- problems working with Ruby 1.9. We've detected Ruby 1.9 in your path,
- so this compile may fail.
- EOS
- end
- def fatal?
- false
- end
- def satisfied?
- `ruby --version` =~ /1\.8\.\d/
- end
-end
-
class Macvim < Formula
homepage 'http://code.google.com/p/macvim/'
url 'https://github.com/b4winckler/macvim/tarball/snapshot-64'
@@ -32,7 +17,6 @@ class Macvim < Formula
]
end
- depends_on Ruby18x.new
depends_on 'cscope' if ARGV.include? '--with-cscope'
depends_on 'lua' if ARGV.include? '--with-lua'
@@ -56,7 +40,8 @@ class Macvim < Formula
"--enable-perlinterp",
"--enable-pythoninterp",
"--enable-rubyinterp",
- "--enable-tclinterp"]
+ "--enable-tclinterp",
+ "--with-ruby-command=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby"]
args << "--enable-cscope" if ARGV.include? "--with-cscope"