aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBryan Ivory2010-11-26 11:20:24 -0800
committerAdam Vandenberg2010-11-26 12:34:12 -0800
commit00acc03efe2a19541b1667952bfa106e14b002b1 (patch)
tree9b37531c46dd7f598c0b19883ec232081ca04d46 /Library
parent6868d8f1257138b2ebb19b3a13d28c2330ad1305 (diff)
downloadhomebrew-00acc03efe2a19541b1667952bfa106e14b002b1.tar.bz2
Added --with-cscope option to the MacVim forumula.
Added the --with-cscope option to the MacVim formula to enable building MacVim with Cscope support. A dependency on 'cscope' is added when the --with-cscope option is present. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/macvim.rb16
1 files changed, 12 insertions, 4 deletions
diff --git a/Library/Formula/macvim.rb b/Library/Formula/macvim.rb
index 4aa67474d..36157a354 100644
--- a/Library/Formula/macvim.rb
+++ b/Library/Formula/macvim.rb
@@ -9,9 +9,12 @@ class Macvim <Formula
def options
# Occassional reports of this brew failing during the icon step
- [["--no-icons", "Don't generate custom document icons."]]
+ [["--no-icons", "Don't generate custom document icons."],
+ ["--with-cscope", "Build with Cscope support."]]
end
+ depends_on 'cscope' if ARGV.include? '--with-cscope'
+
def install
# MacVim's Xcode project gets confused by $CC
# Disable it until someone figures out why it fails.
@@ -20,14 +23,19 @@ class Macvim <Formula
ENV['CXX'] = nil
ENV['CXXFLAGS'] = nil
- system "./configure",
- "--with-macsdk=#{MACOS_VERSION}",
+ args = ["--with-macsdk=#{MACOS_VERSION}",
# Add some features
"--with-features=huge",
"--enable-perlinterp",
"--enable-pythoninterp",
"--enable-rubyinterp",
- "--enable-tclinterp"
+ "--enable-tclinterp"]
+
+ if ARGV.include? "--with-cscope"
+ args << "--enable-cscope"
+ end
+
+ system "./configure", *args
if ARGV.include? "--no-icons"
inreplace "src/MacVim/icons/Makefile", "$(MAKE) -C makeicns", ""