Provides linting and static analysis for Lua 5.1, Lua 5.2, Lua 5.3 and LuaJIT. A patch was required to allow luacheck and luacheck.lua to be symlinked into ${PREFIX}/bin, which I have submitted upstream. Checked with: portlint Tested with: Poudriere (head, amd64) Tested with: Poudriere (stable/11, amd64) Tested with: Poudriere (11.1-R, i386) [lwhsu] Tested with: Poudriere (10.4-R, amd64+i386) [lwhsu] Reviewed by: lwhsu Approved by: lwhsu (ports) Differential Revision: https://reviews.freebsd.org/D14467
34 lines
725 B
Makefile
34 lines
725 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_MODLIBDIR}/lfs.so:devel/luafilesystem
|
|
|
|
USES= lua
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
NO_CONFIGURE= 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>
|