Files
ports/textproc/py-misaka/Makefile
T
Charlie Li 06a08e69f3 python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.

Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
2025-03-07 23:05:21 -05:00

32 lines
783 B
Makefile

PORTNAME= misaka
PORTVERSION= 2.1.1
PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= bofh@FreeBSD.org
COMMENT= CFFI binding for Hoedown, a markdown parsing library
WWW= https://github.com/FSX/misaka
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR}
TEST_DEPENDS= tidy5:www/tidy-html5
# Actually 2.7,3.4+
USES= python
USE_PYTHON= autoplist concurrent distutils
PYDISTUTILS_BUILDARGS= build_ext -i
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/misaka/*.so
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} tests/run_tests.py
.include <bsd.port.mk>