diff options
| author | Jason Foreman | 2012-02-26 23:28:00 -0600 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-21 20:40:49 -0700 |
| commit | cea0dbbe3c6556c404586f5b071a4b8b0a9067c4 (patch) | |
| tree | 55226f827377755a74da201dca61b54bfc77ac31 | |
| parent | 93d10799024f03415a69256d88af99b1ce8f1854 (diff) | |
| download | homebrew-cea0dbbe3c6556c404586f5b071a4b8b0a9067c4.tar.bz2 | |
macvim: option to enable Lua support
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -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. |
