6f4bf04484
* Switch to GitHub for a while as no tarballs of the current version are available at PyPI. * Add a test target to make future QA somewhat easier. Changelog: https://github.com/pdfminer/pdfminer.six/releases/tag/20181108
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= pdfminer.six
|
|
PORTVERSION= 20181108
|
|
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 shebangfix dos2unix
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= pdfminer
|
|
USE_PYTHON= distutils concurrent autoplist
|
|
|
|
SHEBANG_FILES= tools/dumppdf.py tools/pdf2txt.py tools/latin2ascii.py
|
|
|
|
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
|
|
|
|
# Following tests always fail:
|
|
# - test_tools_dumppdf.TestDumpPDF.test_2
|
|
# - test_tools_pdf2txt.TestDumpPDF.test_{1,2,4,5,8}
|
|
do-test:
|
|
@(cd ${WRKSRC} && ${PYTHON_CMD} -m nose -v --nologcapture)
|
|
|
|
.include <bsd.port.post.mk>
|