diff --git a/textproc/py-pdfminer.six/Makefile b/textproc/py-pdfminer.six/Makefile index ce366ce0b2b3..9a51afa7e906 100644 --- a/textproc/py-pdfminer.six/Makefile +++ b/textproc/py-pdfminer.six/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= pdfminer.six -PORTVERSION= 20191110 +PORTVERSION= 20200726 CATEGORIES= textproc python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,12 +11,12 @@ 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} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}cryptography>=0:security/py-cryptography@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sortedcontainers>=0:devel/py-sortedcontainers@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR} -USES= python +USES= python:3.4+ USE_GITHUB= yes GH_ACCOUNT= pdfminer USE_PYTHON= distutils concurrent autoplist @@ -24,13 +24,7 @@ USE_PYTHON= distutils concurrent autoplist CONFLICTS_INSTALL= py??-pdfminer-* py??-pdfminer3k-* NO_ARCH= yes -.include - -.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 +.include diff --git a/textproc/py-pdfminer.six/distinfo b/textproc/py-pdfminer.six/distinfo index f6fa6ae9efaa..045a5fecaff3 100644 --- a/textproc/py-pdfminer.six/distinfo +++ b/textproc/py-pdfminer.six/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1591951205 -SHA256 (pdfminer-pdfminer.six-20191110_GH0.tar.gz) = 323b7bc6b9ca544fbf6dbc287b52c6cf21fcb1bdcb33faa0a85658e00de8b1a8 -SIZE (pdfminer-pdfminer.six-20191110_GH0.tar.gz) = 10045330 +TIMESTAMP = 1601565249 +SHA256 (pdfminer-pdfminer.six-20200726_GH0.tar.gz) = 77f0b6953f36aeeeb45ab959fabd8dfc964b7926676d5df3ac2f949cd4d524a3 +SIZE (pdfminer-pdfminer.six-20200726_GH0.tar.gz) = 10260419 diff --git a/textproc/py-pdfminer.six/files/patch-tools_dumppdf.py b/textproc/py-pdfminer.six/files/patch-tools_dumppdf.py deleted file mode 100644 index be2418db37c8..000000000000 --- a/textproc/py-pdfminer.six/files/patch-tools_dumppdf.py +++ /dev/null @@ -1,14 +0,0 @@ -Fix CLI usability, see also https://github.com/pdfminer/pdfminer.six/issues/405 - -Obtained from: - -https://github.com/pdfminer/pdfminer.six/pull/421/commits/0c2f44b6de064d9a3cea99bde5b8e9c6a525a69c - ---- tools/dumppdf.py.orig 2020-06-12 21:01:43 UTC -+++ tools/dumppdf.py -@@ -1,3 +1,5 @@ -+#!/usr/bin/env python -+ - """Extract pdf structure in XML format""" - import logging - import os.path diff --git a/textproc/py-pdfminer.six/files/patch-tools_pdf2txt.py b/textproc/py-pdfminer.six/files/patch-tools_pdf2txt.py deleted file mode 100644 index 30a5d41432ea..000000000000 --- a/textproc/py-pdfminer.six/files/patch-tools_pdf2txt.py +++ /dev/null @@ -1,14 +0,0 @@ -Fix CLI usability, see also https://github.com/pdfminer/pdfminer.six/issues/405 - -Obtained from: - -https://github.com/pdfminer/pdfminer.six/pull/421/commits/0c2f44b6de064d9a3cea99bde5b8e9c6a525a69c - ---- tools/pdf2txt.py.orig 2019-11-10 11:59:55 UTC -+++ tools/pdf2txt.py -@@ -1,3 +1,5 @@ -+#!/usr/bin/env python -+ - """A command line tool for extracting text and images from PDF and output it to plain text, html, xml or tags.""" - import argparse - import logging