2019-07-11 18:21:00 +02:00
|
|
|
PORTNAME= pikepdf
|
2023-07-30 05:29:32 +02:00
|
|
|
DISTVERSION= 8.0.0
|
2019-07-11 18:21:00 +02:00
|
|
|
CATEGORIES= textproc python
|
2023-01-11 16:47:15 +01:00
|
|
|
MASTER_SITES= PYPI
|
2019-07-11 18:21:00 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2021-04-07 10:54:56 +02:00
|
|
|
MAINTAINER= wen@FreeBSD.org
|
2019-07-11 18:21:00 +02:00
|
|
|
COMMENT= Read and write PDFs with Python, powered by qpdf
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://github.com/pikepdf/pikepdf
|
2019-07-11 18:21:00 +02:00
|
|
|
|
|
|
|
LICENSE= MPL20
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
|
2022-10-09 03:59:56 +02:00
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pybind11>=2.9.1<3:devel/py-pybind11@${PY_FLAVOR} \
|
2019-07-11 18:21:00 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} \
|
2021-02-01 13:47:35 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}setuptools_scm_git_archive>0:devel/py-setuptools_scm_git_archive@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
|
2019-07-11 18:21:00 +02:00
|
|
|
LIB_DEPENDS= libqpdf.so:print/qpdf
|
2020-07-14 08:32:17 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=4.0:devel/py-lxml@${PY_FLAVOR} \
|
2022-10-08 03:54:43 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}deprecation>=0:devel/py-deprecation@${PY_FLAVOR} \
|
2020-07-14 08:32:17 +02:00
|
|
|
${PY_PILLOW}
|
2021-02-01 13:47:35 +01:00
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=20.2.0:devel/py-attrs@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}dateutil>=2.8.0:devel/py-dateutil@${PY_FLAVOR} \
|
2021-05-19 10:00:25 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}hypothesis>=0:devel/py-hypothesis@${PY_FLAVOR} \
|
2021-02-01 13:47:35 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}psutil>=5<6:sysutils/py-psutil@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}pybind11>=2.6.0:devel/py-pybind11@${PY_FLAVOR} \
|
2022-04-01 16:11:53 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}pytest>=4.4.0,1<7.3.5,1:devel/py-pytest@${PY_FLAVOR} \
|
2019-07-11 18:21:00 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}pytest-helpers-namespace>=2019.1.8:devel/py-pytest-helpers-namespace@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}pytest-timeout>=1.3.3:devel/py-pytest-timeout@${PY_FLAVOR} \
|
2022-04-26 14:14:57 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}pytest-xdist>=1.28:devel/py-pytest-xdist@${PY_FLAVOR} \
|
2020-03-24 20:54:57 +01:00
|
|
|
${PY_PILLOW} \
|
2019-07-11 18:21:00 +02:00
|
|
|
${PYTHON_PKGNAMEPREFIX}python-xmp-toolkit>=2.0.1:textproc/py-python-xmp-toolkit@${PY_FLAVOR}
|
|
|
|
|
2023-06-15 00:00:28 +02:00
|
|
|
USES= compiler:c++14-lang cpe localbase python
|
2019-07-11 18:21:00 +02:00
|
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
|
2021-09-30 16:46:18 +02:00
|
|
|
CPE_VENDOR= pikepdf_project
|
|
|
|
|
2021-02-01 13:47:35 +01:00
|
|
|
TEST_ENV= LC_ALL=en_US.UTF-8
|
|
|
|
|
2020-07-05 14:51:20 +02:00
|
|
|
OPTIONS_DEFINE= JBIG2
|
|
|
|
OPTIONS_DEFAULT= JBIG2
|
|
|
|
|
|
|
|
JBIG2_DESC= Support for extracting JBIG2 images
|
|
|
|
|
|
|
|
JBIG2_RUN_DEPENDS= jbig2dec:graphics/jbig2dec
|
|
|
|
|
2019-07-11 18:21:00 +02:00
|
|
|
post-install:
|
2023-02-13 23:43:20 +01:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pikepdf/_*.so
|
2019-07-11 18:21:00 +02:00
|
|
|
|
|
|
|
do-test:
|
2021-02-01 13:47:35 +01:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -rs -v -o addopts=
|
2019-07-11 18:21:00 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|