mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
Update to 20200726
Changes: https://github.com/pdfminer/pdfminer.six/releases PR: 250118 Submitted by: sunpoet (myself) Approved by: maintainer (timeout, 18 days)
This commit is contained in:
parent
7d8bc64a99
commit
f1ad518bff
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=553049
@ -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 <bsd.port.pre.mk>
|
||||
|
||||
.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 <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -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
|
||||
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user