aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/luajit.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/luajit.rb b/Library/Formula/luajit.rb
index 8410c0473..4255bbfc8 100644
--- a/Library/Formula/luajit.rb
+++ b/Library/Formula/luajit.rb
@@ -7,6 +7,11 @@ class Luajit < Formula
head 'http://luajit.org/git/luajit-2.0.git'
revision 1
+ devel do
+ version '2.1'
+ url 'http://luajit.org/git/luajit-2.0.git', :branch => 'v2.1'
+ end
+
bottle do
sha1 "9a6fc01ed0659ecc07a1e34daecdcf82cd150ca4" => :yosemite
sha1 "7ed3346a644ca5cd73c51131c54060b13038208e" => :mavericks
@@ -33,6 +38,9 @@ class Luajit < Formula
# This doesn't yet work under superenv because it removes '-g'
args << 'CCDEBUG=-g' if build.include? 'enable-debug'
+ # The development branch of LuaJIT normally does not install "luajit".
+ args << 'INSTALL_TNAME=luajit' if build.devel?
+
system 'make', 'amalg', *args
system 'make', 'install', *args
# Having an empty Lua dir in Lib can screw with the new Lua setup.