aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2022-10-14 22:29:52 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2022-10-14 22:29:52 +0000
commit2c90190db4ee8f827e2500026d6ef102009a184f (patch)
tree586e73869320941c2ba1b9042e913c39265a2663
parent5e9ae99c3e49c0e4a4b22754361497121b59eee8 (diff)
downloadports-2c90190db4ee8f827e2500026d6ef102009a184f.tar.gz
ports-2c90190db4ee8f827e2500026d6ef102009a184f.zip
devel/lua-luarocks: Use USES=luajit (defaults to luajit-devel)
-rw-r--r--devel/lua-luarocks/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/devel/lua-luarocks/Makefile b/devel/lua-luarocks/Makefile
index c5ec3a45db2b..aba0fe53ab12 100644
--- a/devel/lua-luarocks/Makefile
+++ b/devel/lua-luarocks/Makefile
@@ -1,5 +1,6 @@
PORTNAME= luarocks
PORTVERSION= 3.9.1
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://luarocks.org/releases/
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
@@ -27,12 +28,11 @@ UNIQUE_SUFFIX_FILES= bin/luarocks bin/luarocks-admin
OPTIONS_DEFINE= LUAJIT
LUAJIT_DESC= Use LuaJIT instead of Lua
-LUAJIT_BUILD_DEPENDS= luajit:lang/luajit
-LUAJIT_RUN_DEPENDS= luajit:lang/luajit
+LUAJIT_USES= luajit
LUAJIT_CONFIGURE_ON= --lua-suffix=jit
LUAJIT_PLIST_SUB= LUA_VER=${LUA_VER} \
LUA_MODSHAREDIR=share/lua/${LUA_VER}
-LUAJIT_VARS= LUA_INCDIR=${LOCALBASE}/include/luajit-2.0 \
+LUAJIT_VARS= LUA_INCDIR=${LUAJIT_INCDIR} \
LUA_PKGNAMEPREFIX=lua51- \
LUA_VER=5.1
LUAJIT_USES_OFF= lua:flavors