diff options
| author | Adam Vandenberg | 2012-08-30 08:44:28 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-30 08:44:32 -0700 |
| commit | e9b63779feb98d576641dd61368b6563699bd897 (patch) | |
| tree | 771d96ce2d44c12d6daa90b85bc0345795fa17f3 /Library/Formula/macvim.rb | |
| parent | 7676f2c4ccbf4de8bf86d0df2b9b291c10e6b04c (diff) | |
| download | homebrew-e9b63779feb98d576641dd61368b6563699bd897.tar.bz2 | |
macvim: fix audit warnings
Diffstat (limited to 'Library/Formula/macvim.rb')
| -rw-r--r-- | Library/Formula/macvim.rb | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/Library/Formula/macvim.rb b/Library/Formula/macvim.rb index 7a8532cec..ce4e82371 100644 --- a/Library/Formula/macvim.rb +++ b/Library/Formula/macvim.rb @@ -10,16 +10,11 @@ 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" - def options - [ - ["--with-cscope", "Build with Cscope support."], - ["--with-lua", "Build with Lua scripting support."] - ] - end - - depends_on 'cscope' if ARGV.include? '--with-cscope' - depends_on 'lua' if ARGV.include? '--with-lua' + depends_on 'cscope' if build.include? 'with-cscope' + depends_on 'lua' if build.include? 'with-lua' def install # Set ARCHFLAGS so the Python app (with C extension) that is @@ -40,9 +35,9 @@ class Macvim < Formula --with-ruby-command=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby ] - args << "--enable-cscope" if ARGV.include? "--with-cscope" + args << "--enable-cscope" if build.include? "with-cscope" - if ARGV.include? "--with-lua" + if build.include? "with-lua" args << "--enable-luainterp" args << "--with-lua-prefix=#{HOMEBREW_PREFIX}" end |
