Index: head/textproc/py-pdfminer.six/Makefile =================================================================== --- head/textproc/py-pdfminer.six/Makefile (revision 538663) +++ head/textproc/py-pdfminer.six/Makefile (revision 538664) @@ -1,41 +1,36 @@ # $FreeBSD$ PORTNAME= pdfminer.six -PORTVERSION= 20181108 +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 shebangfix dos2unix +USES= python 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 .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 Index: head/textproc/py-pdfminer.six/distinfo =================================================================== --- head/textproc/py-pdfminer.six/distinfo (revision 538663) +++ head/textproc/py-pdfminer.six/distinfo (revision 538664) @@ -1,3 +1,3 @@ -TIMESTAMP = 1558443307 -SHA256 (pdfminer-pdfminer.six-20181108_GH0.tar.gz) = 99b2bf8e2154e617c88bba7ea4f3fd02fb7d5b7be6b441a9001ca29d54d255f4 -SIZE (pdfminer-pdfminer.six-20181108_GH0.tar.gz) = 10420358 +TIMESTAMP = 1591951205 +SHA256 (pdfminer-pdfminer.six-20191110_GH0.tar.gz) = 323b7bc6b9ca544fbf6dbc287b52c6cf21fcb1bdcb33faa0a85658e00de8b1a8 +SIZE (pdfminer-pdfminer.six-20191110_GH0.tar.gz) = 10045330 Property changes on: head/textproc/py-pdfminer.six/distinfo ___________________________________________________________________ Modified: fbsd:nokeywords ## -1 +1 ## -on \ No newline at end of property +yes \ No newline at end of property Index: head/textproc/py-pdfminer.six/files/patch-tools_dumppdf.py =================================================================== --- head/textproc/py-pdfminer.six/files/patch-tools_dumppdf.py (nonexistent) +++ head/textproc/py-pdfminer.six/files/patch-tools_dumppdf.py (revision 538664) @@ -0,0 +1,14 @@ +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 Property changes on: head/textproc/py-pdfminer.six/files/patch-tools_dumppdf.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/textproc/py-pdfminer.six/files/patch-tools_pdf2txt.py =================================================================== --- head/textproc/py-pdfminer.six/files/patch-tools_pdf2txt.py (nonexistent) +++ head/textproc/py-pdfminer.six/files/patch-tools_pdf2txt.py (revision 538664) @@ -0,0 +1,14 @@ +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 Property changes on: head/textproc/py-pdfminer.six/files/patch-tools_pdf2txt.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property