ports/textproc/xml2rfc/Makefile

51 lines
1.3 KiB
Makefile
Raw Normal View History

2023-08-16 22:26:55 +00:00
COMMENT= convert memos written in XML to the RFC format
2023-09-17 04:05:06 +00:00
MODPY_EGG_VERSION= 3.18.0
2023-09-19 18:42:08 +00:00
REVISION= 0
2023-08-16 22:26:55 +00:00
DISTNAME= xml2rfc-${MODPY_EGG_VERSION}
CATEGORIES= textproc
2023-09-19 18:42:08 +00:00
HOMEPAGE= https://github.com/ietf-tools/xml2rfc
2023-08-16 22:26:55 +00:00
# BSD
PERMIT_PACKAGE= Yes
MODULES= lang/python
MODPY_PI= Yes
MODPY_PYBUILD= setuptools
MODPY_PYTEST_ARGS= test.py
2023-09-19 18:42:08 +00:00
# setuptools at runtime: still uses pkg_resources as of 3.18.0
# from requirements.txt
RUN_DEPENDS= sysutils/py-platformdirs${MODPY_FLAVOR} \
devel/py-configargparse${MODPY_FLAVOR} \
geo/py-google-i18n-address${MODPY_FLAVOR}>=3 \
2023-08-16 22:26:55 +00:00
devel/py-intervaltree${MODPY_FLAVOR} \
2023-09-19 18:42:08 +00:00
www/py-jinja2${MODPY_FLAVOR} \
2023-08-16 22:26:55 +00:00
textproc/py-lxml${MODPY_FLAVOR} \
2023-09-19 18:42:08 +00:00
devel/py-country${MODPY_FLAVOR} \
2023-08-16 22:26:55 +00:00
textproc/py-yaml${MODPY_FLAVOR} \
2023-09-19 18:42:08 +00:00
www/py-requests${MODPY_FLAVOR} \
devel/py-setuptools${MODPY_FLAVOR} \
devel/py-six${MODPY_FLAVOR} \
devel/py-wcwidth${MODPY_FLAVOR}
2023-08-16 22:26:55 +00:00
2023-09-19 18:42:08 +00:00
TEST_DEPENDS+= devel/py-decorator${MODPY_FLAVOR} \
print/py-pypdf${MODPY_FLAVOR} \
print/weasyprint \
textproc/py-dict2xml${MODPY_FLAVOR} \
fonts/noto/fonts
# also wants fonts/noto/cjk, but seems to trigger a problem with weasyprint??
# tests also need network access
PORTHOME= ${WRKDIR}
pre-test:
# hiding pkg_resources DeprecationWarnings
@ (echo '[pytest]'; \
echo 'filterwarnings = ignore:.*pkg_resources.*:DeprecationWarning') \
> ${WRKSRC}/pytest.ini
2023-08-16 22:26:55 +00:00
.include <bsd.port.mk>