From f5bdfa58bede2442902931c768a1e445550fa2ce Mon Sep 17 00:00:00 2001 From: Nicholas Hutchinson Date: Sun, 27 Apr 2014 20:41:55 +0100 Subject: 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 --- Library/Formula/luarocks.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3