Changelog: https://github.com/mrabarnett/mrab-regex/blob/2024.11.6/changelog.txt - Update to latest PyPi version. - Move to pep517. PR: 286621
25 lines
727 B
Makefile
25 lines
727 B
Makefile
PORTNAME= regex
|
|
DISTVERSION= 2024.11.6
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= fax@nohik.ee
|
|
COMMENT= Alternative regular expression module, to replace re
|
|
WWW= https://github.com/mrabarnett/mrab-regex
|
|
|
|
LICENSE= PSFL
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist pep517 pytest # 1 test fails, see https://github.com/mrabarnett/mrab-regex/issues/482
|
|
|
|
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/regex/_regex*.so
|
|
|
|
.include <bsd.port.mk>
|