diff options
| author | Adam Vandenberg | 2013-05-06 11:41:17 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-05-06 11:41:17 -0700 |
| commit | 1f3eb01bacbbf844b9b4bbdcfb420f895fa83de1 (patch) | |
| tree | 85b903c16609bc54b15d962f981eafaad386afe7 /Library/Formula | |
| parent | 27f323c591e24f81e5b45d9cfbf0c9beb1398ca3 (diff) | |
| download | homebrew-1f3eb01bacbbf844b9b4bbdcfb420f895fa83de1.tar.bz2 | |
macvim: use :optional
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/macvim.rb | 12 |
1 files changed, 5 insertions, 7 deletions
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 |
