freebsd-ports/devel/lua-luacheck/Makefile
Mathieu Arnold beb1c1fe19 USES=lua gained flavors.
Ports using USES=lua:module or lua:flavors will be flavored.  A range of
supported lua versions can be set using XX-YY (or XX-, or -YY, or simply ZZ)
for ports not supporting all lua versions.

USES=lua sets LUA_FLAVOR that needs to be used on all dependencies of
flavored lua ports, in a similar way as PHP or Python flavors.

PR:		245038
Submitted by:	andrew tao11 riddles org uk
Reviewed by:	mat, kevans, russ haley gmail com
Approved by:	mat (portmgr)
Differential Revision:	https://reviews.freebsd.org/D16494
2020-04-14 15:49:36 +00:00

33 lines
724 B
Makefile

# $FreeBSD$
PORTNAME= luacheck
PORTVERSION= 0.21.2
CATEGORIES= devel
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
MAINTAINER= kevans@FreeBSD.org
COMMENT= Linter and static analyzer for lua files
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${LUA_REFMODLIBDIR}/lfs.so:devel/luafilesystem@${LUA_FLAVOR}
USES= lua
NO_ARCH= yes
NO_BUILD= yes
USE_GITHUB= yes
GH_ACCOUNT= mpeterv
INSTALL_DIR= ${LUA_MODSHAREDIR}/luacheck
do-install:
(cd ${WRKSRC} && \
${LUA_CMD} install.lua ${STAGEDIR}${INSTALL_DIR})
@${RLN} ${STAGEDIR}${INSTALL_DIR}/bin/luacheck \
${STAGEDIR}${PREFIX}/bin/luacheck
@${RLN} ${STAGEDIR}${INSTALL_DIR}/bin/luacheck.lua \
${STAGEDIR}${PREFIX}/bin/luacheck.lua
.include <bsd.port.mk>