ports/textproc/py-pdfminer.six/Makefile
Po-Chuan Hsieh 3754fc5f19
*: Replace USES=pycryptography* with USE_PYTHON=cryptography{,_build,_test}
- Introduce USE_PYTHON=cryptography{,_build,_test}
- Switch all 96 ports from USES=pycryptography to with USE_PYTHON=cryptography{,_build,_test}
- Remove Mk/Uses/pycryptography.mk

PR:		273727
Approved by:	tcberner (portmgr)
Exp-run by:	antoine
2023-09-29 22:19:56 +08:00

32 lines
830 B
Makefile

PORTNAME= pdfminer.six
PORTVERSION= 20220319
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= kai@FreeBSD.org
COMMENT= PDF parser and analyzer
WWW= https://github.com/pdfminer/pdfminer.six
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent cryptography distutils
CONFLICTS_INSTALL= py??-pdfminer py??-pdfminer3k
NO_ARCH= yes
OPTIONS_DEFINE= IMAGE
OPTIONS_DEFAULT= IMAGE
IMAGE_DESC= Enable support for image extraction
IMAGE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR}
post-extract:
@cd ${WRKSRC} && ${MV} tools/dumppdf.py tools/dumppdf
@cd ${WRKSRC} && ${MV} tools/pdf2txt.py tools/pdf2txt
.include <bsd.port.mk>