summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/py-pdfminer.six/Makefile16
-rw-r--r--textproc/py-pdfminer.six/distinfo6
-rw-r--r--textproc/py-pdfminer.six/files/patch-setup.py17
-rw-r--r--textproc/py-pdfminer.six/pkg-descr16
4 files changed, 36 insertions, 19 deletions
diff --git a/textproc/py-pdfminer.six/Makefile b/textproc/py-pdfminer.six/Makefile
index 70b62e2e9c42..b02e9037a241 100644
--- a/textproc/py-pdfminer.six/Makefile
+++ b/textproc/py-pdfminer.six/Makefile
@@ -1,6 +1,7 @@
PORTNAME= pdfminer.six
-PORTVERSION= 20201018
+PORTVERSION= 20211012
CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= kai@FreeBSD.org
@@ -10,19 +11,16 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
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}
+ ${PYTHON_PKGNAMEPREFIX}cryptography>=0:security/py-cryptography@${PY_FLAVOR}
-USES= python:3.4+
-USE_GITHUB= yes
-GH_ACCOUNT= pdfminer
+USES= python:3.6+
USE_PYTHON= distutils concurrent autoplist
CONFLICTS_INSTALL= py??-pdfminer py??-pdfminer3k
NO_ARCH= yes
-do-test:
- @(cd ${WRKSRC} && ${PYTHON_CMD} -m nose -v --nologcapture)
+post-extract:
+ @cd ${WRKSRC} && ${MV} tools/dumppdf.py tools/dumppdf
+ @cd ${WRKSRC} && ${MV} tools/pdf2txt.py tools/pdf2txt
.include <bsd.port.mk>
diff --git a/textproc/py-pdfminer.six/distinfo b/textproc/py-pdfminer.six/distinfo
index c5551eaef114..e5e589b680c4 100644
--- a/textproc/py-pdfminer.six/distinfo
+++ b/textproc/py-pdfminer.six/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1605973188
-SHA256 (pdfminer-pdfminer.six-20201018_GH0.tar.gz) = 0e9c8b0a9c40c2aee044c3091ad6b18b5e6279722e64b6b975f8aedc26bf8e38
-SIZE (pdfminer-pdfminer.six-20201018_GH0.tar.gz) = 10256409
+TIMESTAMP = 1645466224
+SHA256 (pdfminer.six-20211012.tar.gz) = 0351f17d362ee2d48b158be52bcde6576d96460efd038a3e89a043fba6d634d7
+SIZE (pdfminer.six-20211012.tar.gz) = 7350867
diff --git a/textproc/py-pdfminer.six/files/patch-setup.py b/textproc/py-pdfminer.six/files/patch-setup.py
new file mode 100644
index 000000000000..4b9363d6cc9c
--- /dev/null
+++ b/textproc/py-pdfminer.six/files/patch-setup.py
@@ -0,0 +1,17 @@
+Provide the console scripts without their ".py" extension.
+
+See also: https://github.com/pdfminer/pdfminer.six/issues/724
+
+--- setup.py.orig 2022-02-21 17:52:51 UTC
++++ setup.py
+@@ -28,8 +28,8 @@ setup(
+ author_email='pdfminer@goulu.net',
+ url='https://github.com/pdfminer/pdfminer.six',
+ scripts=[
+- 'tools/pdf2txt.py',
+- 'tools/dumppdf.py',
++ 'tools/pdf2txt',
++ 'tools/dumppdf',
+ ],
+ keywords=[
+ 'pdf parser',
diff --git a/textproc/py-pdfminer.six/pkg-descr b/textproc/py-pdfminer.six/pkg-descr
index 5061956d85d0..ef9523a4d318 100644
--- a/textproc/py-pdfminer.six/pkg-descr
+++ b/textproc/py-pdfminer.six/pkg-descr
@@ -1,12 +1,14 @@
-PDFMiner.six is a fork of PDFMiner using six for Python 2 + 3 compatibility.
+We fathom PDF
-PDFMiner is a tool for extracting information from PDF documents. Unlike other
-PDF-related tools, it focuses entirely on getting and analyzing text data.
+Pdfminer.six is a community maintained fork of the original PDFMiner. It is a
+tool for extracting information from PDF documents. It focuses on getting and
+analyzing text data. Pdfminer.six extracts the text from a page directly from
+the sourcecode of the PDF. It can also be used to get the exact location, font
+or color of the text.
-PDFMiner allows one to obtain the exact location of text in a page, as well as
-other information such as fonts or lines. It includes a PDF converter that can
-transform PDF files into other text formats (such as HTML). It has an extensible
-PDF parser that can be used for other purposes than text analysis.
+It is built in a modular way such that each component of pdfminer.six can be
+replaced easily. You can implement your own interpreter or rendering device
+that uses the power of pdfminer.six for other purposes than text analysis.
Features: