git: 2c90190db4ee - main - devel/lua-luarocks: Use USES=luajit (defaults to luajit-devel)

From: Adam Weinberger <adamw_at_FreeBSD.org>
Date: Fri, 14 Oct 2022 22:30:02 UTC
The branch main has been updated by adamw:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2c90190db4ee8f827e2500026d6ef102009a184f

commit 2c90190db4ee8f827e2500026d6ef102009a184f
Author:     Adam Weinberger <adamw@FreeBSD.org>
AuthorDate: 2022-10-14 22:29:52 +0000
Commit:     Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2022-10-14 22:29:52 +0000

    devel/lua-luarocks: Use USES=luajit (defaults to luajit-devel)
---
 devel/lua-luarocks/Makefile | 6 +++---
 1 file 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