aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/luajit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/luajit.rb')
-rw-r--r--Library/Formula/luajit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/luajit.rb b/Library/Formula/luajit.rb
index ac44b3654..8d67d1616 100644
--- a/Library/Formula/luajit.rb
+++ b/Library/Formula/luajit.rb
@@ -5,6 +5,7 @@ class Luajit < Formula
url 'http://luajit.org/download/LuaJIT-2.0.3.tar.gz'
sha1 '2db39e7d1264918c2266b0436c313fbd12da4ceb'
head 'http://luajit.org/git/luajit-2.0.git'
+ revision 1
skip_clean 'lib/lua/5.1', 'share/lua/5.1'
@@ -28,6 +29,9 @@ class Luajit < Formula
system 'make', 'amalg', *args
system 'make', 'install', *args
+ # Having an empty Lua dir in Lib can screw with the new Lua setup.
+ rm_rf prefix/'lib/lua'
+ rm_rf prefix/'share/lua'
end
test do