Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
macvim: fix audit warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed Aug 30, 2012
1 parent 7676f2c commit e9b6377
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions Library/Formula/macvim.rb
Expand Up @@ -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
Expand All @@ -40,9 +35,9 @@ def install
--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
Expand Down

0 comments on commit e9b6377

Please sign in to comment.