Fix installation of LuaJIT jit.* modules

This commit is contained in:
mpeterv 2015-12-04 17:45:58 +03:00
parent 2efa014352
commit 2deeec1a00
2 changed files with 4 additions and 2 deletions

View File

@ -447,10 +447,11 @@ class LuaJIT(Lua):
def make(): def make():
run_command("make", "PREFIX=" + quote(opts.location)) run_command("make", "PREFIX=" + quote(opts.location))
@staticmethod def make_install(self):
def make_install():
run_command("make install", "PREFIX=" + quote(opts.location), run_command("make install", "PREFIX=" + quote(opts.location),
"INSTALL_TNAME=lua", "INSTALL_TSYM=luajit_symlink", "INSTALL_TNAME=lua", "INSTALL_TSYM=luajit_symlink",
"INSTALL_LJLIBD=" + quote(os.path.join(
opts.location, "share", "lua", self.major_version)),
"INSTALL_INC=" + quote(os.path.join(opts.location, "include"))) "INSTALL_INC=" + quote(os.path.join(opts.location, "include")))
if os.path.exists(os.path.join(opts.location, "bin", "luajit_symlink")): if os.path.exists(os.path.join(opts.location, "bin", "luajit_symlink")):

View File

@ -14,6 +14,7 @@ $HEREROCKS -l^ -r^ | grep "already installed"
rm test/here -rf rm test/here -rf
$HEREROCKS -j 2.1 -r^ | grep "Fetching" | grep "cached" $HEREROCKS -j 2.1 -r^ | grep "Fetching" | grep "cached"
lua -v lua -v
lua -e "require 'jit.bcsave'"
luarocks --version luarocks --version
luarocks make luarocks make
hererocks-test | grep "2\.1" hererocks-test | grep "2\.1"