diff options
| -rw-r--r-- | Library/Formula/macvim.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/macvim.rb b/Library/Formula/macvim.rb index 2d23b486a..1d67cb2cd 100644 --- a/Library/Formula/macvim.rb +++ b/Library/Formula/macvim.rb @@ -13,10 +13,12 @@ class Macvim < Formula ["--custom-icons", "Try to generate custom document icons."], ["--with-cscope", "Build with Cscope support."], ["--override-system-vim", "Override system vim."], + ["--with-lua", "Build with Lua scripting support."] ] end depends_on 'cscope' if ARGV.include? '--with-cscope' + depends_on 'lua' if ARGV.include? '--with-lua' def install # MacVim's Xcode project gets confused by $CC, so remove it @@ -42,6 +44,11 @@ class Macvim < Formula args << "--enable-cscope" if ARGV.include? "--with-cscope" + if ARGV.include? "--with-lua" + args << "--enable-luainterp" + args << "--with-lua-prefix=#{HOMEBREW_PREFIX}" + end + system "./configure", *args # Building custom icons fails for many users, so off by default. |
