From 1f3eb01bacbbf844b9b4bbdcfb420f895fa83de1 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 6 May 2013 11:41:17 -0700 Subject: macvim: use :optional --- Library/Formula/macvim.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'Library/Formula/macvim.rb') diff --git a/Library/Formula/macvim.rb b/Library/Formula/macvim.rb index 35da39544..21bf41a3a 100644 --- a/Library/Formula/macvim.rb +++ b/Library/Formula/macvim.rb @@ -10,12 +10,10 @@ class Macvim < Formula option "custom-icons", "Try to generate custom document icons" option "override-system-vim", "Override system vim" - option "with-cscope", "Build with Cscope support" - option "with-lua", "Build with Lua scripting support" option "with-python3", "Build with Python 3 scripting support" - depends_on 'cscope' if build.include? 'with-cscope' - depends_on 'lua' if build.include? 'with-lua' + depends_on 'cscope' => :optional + depends_on 'lua' => :optional depends_on :xcode # For xcodebuild. @@ -42,14 +40,14 @@ class Macvim < Formula --with-ruby-command=#{RUBY_PATH} ] - args << "--enable-cscope" if build.include? "with-cscope" + args << "--enable-cscope" if build.with? "cscope" - if build.include? "with-lua" + if build.with? "lua" args << "--enable-luainterp" args << "--with-lua-prefix=#{HOMEBREW_PREFIX}" end - args << "--enable-python3interp" if build.include? "with-python3" + args << "--enable-python3interp" if build.include? "with-python3" system "./configure", *args -- cgit v1.2.3