f13a230d07
* Switch back to PyPI as sdists are there available again. * Modernize "do-test" target while I'm here. Changelog: https://github.com/fcurella/jsx-lexer/compare/v0.0.7...v1.0.0 PR: 262060 Approved by: koobs (maintainer, implicit: MAINTAINER_POLICY) MFH: No (not compatible with py-pygments in 2022Q1)
25 lines
554 B
Makefile
25 lines
554 B
Makefile
PORTNAME= jsx-lexer
|
|
PORTVERSION= 1.0.0
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
COMMENT= JSX lexer for Pygments
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>=2.7:textproc/py-pygments@${PY_FLAVOR}
|
|
|
|
USES= python:3.6+
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
NO_ARCH= yes
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m unittest -v
|
|
|
|
.include <bsd.port.mk>
|