macvim: add --with-luajit option
This option links luajit instead of lua. Closes Homebrew/homebrew#22287. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
18014d038d
commit
2e552c3948
1 changed files with 7 additions and 0 deletions
|
@ -15,6 +15,7 @@ class Macvim < Formula
|
|||
depends_on :xcode
|
||||
depends_on 'cscope' => :recommended
|
||||
depends_on 'lua' => :optional
|
||||
depends_on 'luajit' => :optional
|
||||
depends_on :python => :recommended
|
||||
# Help us! :python3 in MacVim makes the window disappear, so only 2.x bindings!
|
||||
|
||||
|
@ -51,6 +52,12 @@ class Macvim < Formula
|
|||
args << "--with-lua-prefix=#{HOMEBREW_PREFIX}"
|
||||
end
|
||||
|
||||
if build.with? "luajit"
|
||||
args << "--enable-luainterp"
|
||||
args << "--with-lua-prefix=#{HOMEBREW_PREFIX}"
|
||||
args << "--with-luajit"
|
||||
end
|
||||
|
||||
args << "--enable-pythoninterp=yes" if build.with? 'python'
|
||||
|
||||
# MacVim seems to link Python by `-framework Python` (instead of
|
||||
|
|
Loading…
Reference in a new issue