textproc/py-pdfminer.six: Update to 20211012
* Switch back to PyPI as the sdist is there available again. * Remove the test suite as it makes only sense for upstream testing in its current condition and therefore isn't supplied with the sdist. * Update pkg-descr to match reality. Changelog: https://github.com/pdfminer/pdfminer.six/blob/develop/CHANGELOG.md#20211012 PR: 262101 Reported by: rsmith@xs4all.nl
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
17
textproc/py-pdfminer.six/files/patch-setup.py
Normal file
17
textproc/py-pdfminer.six/files/patch-setup.py
Normal file
@@ -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',
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user