From 7eeda758d35b0ff13403aee059974f26aa50b640 Mon Sep 17 00:00:00 2001 From: Ben Lavender Date: Mon, 9 Jul 2012 13:43:12 -0500 Subject: 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 --- Library/Formula/macvim.rb | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'Library/Formula/macvim.rb') 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" -- cgit v1.2.3