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>master
parent
4f74819992
commit
37363310d9
|
@ -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", ""
|
||||
|
|
Loading…
Reference in New Issue