main changes are: - add a new dep on py-requests - undo the no longer needed iftex.sty workaround - move MODPY variables to more standard location - regen plist Unfortunately py-sphinx changed the suffix from .txt to .rst.txt in the 1.5 series. This means we have to update PLISTs for about 20+ ports as a result of this version update. Hopefully future updates of py-sphinx won't be quite as involved. ok sthen@
38 lines
914 B
Makefile
38 lines
914 B
Makefile
# $OpenBSD: Makefile,v 1.13 2020/12/10 02:20:30 daniel Exp $
|
|
|
|
COMMENT= tool for linting and static analysis of Lua code
|
|
CATEGORIES= devel
|
|
|
|
GH_ACCOUNT= mpeterv
|
|
GH_PROJECT= luacheck
|
|
GH_TAGNAME= 0.21.2
|
|
|
|
REVISION= 2
|
|
|
|
MAINTAINER= Jonathan Gray <jsg@openbsd.org>
|
|
|
|
BUILD_DEPENDS= textproc/py-sphinx>=1.5 \
|
|
textproc/py-sphinx_rtd_theme${MODPY_FLAVOR}>=0.4.3
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
NO_TEST= Yes
|
|
|
|
MODULES= lang/lua
|
|
|
|
pre-configure:
|
|
sed -i 's,/usr/bin/env lua,${MODLUA_BIN},g' ${WRKSRC}/bin/luacheck.lua
|
|
|
|
do-build:
|
|
${LOCALBASE}/bin/sphinx-build -N ${WRKSRC}/docsrc ${WRKSRC}/doc
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${MODLUA_DATADIR}/luacheck
|
|
${INSTALL_DATA} ${WRKSRC}/src/luacheck/*.lua ${MODLUA_DATADIR}/luacheck
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/luacheck.lua ${PREFIX}/bin/luacheck
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/luacheck
|
|
cd ${WRKSRC}/doc && pax -rw * ${PREFIX}/share/doc/luacheck
|
|
|
|
.include <bsd.port.mk>
|