aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDouglas Creager2011-04-01 08:57:51 -0400
committerAdam Vandenberg2011-04-01 12:56:56 -0700
commite41b01353b66306c96d7b373ce8ff0a98501e203 (patch)
tree46e3db2d9de2bbd85b6174986623a779c8e04d48 /Library/Formula
parentf2f1d980a91313509877c240fb98ce9890fa273e (diff)
downloadhomebrew-e41b01353b66306c96d7b373ce8ff0a98501e203.tar.bz2
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>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/luajit.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/luajit.rb b/Library/Formula/luajit.rb
index 31ca12e70..9db4be024 100644
--- a/Library/Formula/luajit.rb
+++ b/Library/Formula/luajit.rb
@@ -6,9 +6,12 @@ class Luajit < Formula
homepage 'http://luajit.org/luajit.html'
md5 'bfcbe2a11162cfa84d5a1693b442c8bf'
- depends_on 'lua'
+ # Skip cleaning both empty folders and bin/libs so external symbols still work.
+ skip_clean :all
def install
system "make", "PREFIX=#{prefix}", "install"
+ # Non-versioned symlink
+ ln_s bin+"luajit-#{version}", bin+"luajit"
end
end