mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
93720b740f
* Use this release for a while as it's the last one that supports Python 2.7 which is still needed by textproc/scancode-toolkit. * Backport two patches to fix the runtime of CLI scripts. * Remove "dos2unix" and "shebangfix" macros as they're no longer required. Changelog since 20181108: https://github.com/pdfminer/pdfminer.six/blob/20191110/CHANGELOG.md MFH: 2020Q2 (blanket: bugfix release)
37 lines
947 B
Makefile
37 lines
947 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= pdfminer.six
|
|
PORTVERSION= 20191110
|
|
CATEGORIES= textproc python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= kai@FreeBSD.org
|
|
COMMENT= PDF parser and analyzer
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}sortedcontainers>=0:devel/py-sortedcontainers@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pycryptodome>=0:security/py-pycryptodome@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= pdfminer
|
|
USE_PYTHON= distutils concurrent autoplist
|
|
|
|
CONFLICTS_INSTALL= py??-pdfminer-* py??-pdfminer3k-*
|
|
NO_ARCH= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} >= 3000
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet@${PY_FLAVOR}
|
|
.endif
|
|
|
|
do-test:
|
|
@(cd ${WRKSRC} && ${PYTHON_CMD} -m nose -v --nologcapture)
|
|
|
|
.include <bsd.port.post.mk>
|