aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorNicholas Hutchinson2014-04-27 20:41:55 +0100
committerJack Nagel2014-05-05 23:26:16 -0500
commitf5bdfa58bede2442902931c768a1e445550fa2ce (patch)
tree32152a3f468742894dd69d2b014524142b1ffc60 /Library
parent89993814709b22e9cc3c23606a2981d1407e77d0 (diff)
downloadhomebrew-f5bdfa58bede2442902931c768a1e445550fa2ce.tar.bz2
Fix luarocks --with-luajit
The --with-lua compile flag is supposed to specify a *prefix* at which the lua binary can be found. See http://luarocks.org/en/Installation_instructions_for_Unix Closes #28770. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/luarocks.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/luarocks.rb b/Library/Formula/luarocks.rb
index c34add082..1b1ff84d0 100644
--- a/Library/Formula/luarocks.rb
+++ b/Library/Formula/luarocks.rb
@@ -38,9 +38,11 @@ class Luarocks < Formula
"--sysconfdir=#{etc}/luarocks"]
if build.with? "luajit"
- args << "--with-lua-include=#{HOMEBREW_PREFIX}/include/luajit-2.0"
+ luajit_prefix = Formula["luajit"].opt_prefix
+
+ args << "--with-lua-include=#{luajit_prefix}/include/luajit-2.0"
args << "--lua-suffix=jit"
- args << "--with-lua=luajit"
+ args << "--with-lua=#{luajit_prefix}"
end
system "./configure", *args