LuaJIT doesn't depend on Lua
The LuaJIT interpreter doesn't depend on the stock Lua interpreter; it can be built entirely on its own. We also install a non-versioned link to the interpreter, at #{HOMEBREW_PREFIX}/bin/luajit. Signed-off-by: Adam Vandenberg <flangy@gmail.com>master
parent
6d6bffd557
commit
84d8754d37
|
@ -6,9 +6,12 @@ class Luajit < Formula
|
||||||
homepage 'http://luajit.org/luajit.html'
|
homepage 'http://luajit.org/luajit.html'
|
||||||
md5 'bfcbe2a11162cfa84d5a1693b442c8bf'
|
md5 'bfcbe2a11162cfa84d5a1693b442c8bf'
|
||||||
|
|
||||||
depends_on 'lua'
|
# Skip cleaning both empty folders and bin/libs so external symbols still work.
|
||||||
|
skip_clean :all
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "make", "PREFIX=#{prefix}", "install"
|
system "make", "PREFIX=#{prefix}", "install"
|
||||||
|
# Non-versioned symlink
|
||||||
|
ln_s bin+"luajit-#{version}", bin+"luajit"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue