svn commit: r475531 - in head/textproc: . py-pdfminer.six
Martin Wilke
miwi at FreeBSD.org
Sat Jul 28 12:05:30 UTC 2018
Author: miwi
Date: Sat Jul 28 12:05:28 2018
New Revision: 475531
URL: https://svnweb.freebsd.org/changeset/ports/475531
Log:
PDFMiner.six is a fork of PDFMiner using six for Python 2 + 3 compatibility.
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 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.
Features:
- Parse, analyze, and convert PDF documents.
- PDF-1.7 specification support. (well, almost)
- CJK languages and vertical writing scripts support.
- Various font types (Type1, TrueType, Type3, and CID) support.
- Basic encryption (RC4) support.
- Outline (TOC) extraction.
- Tagged contents extraction.
- Automatic layout analysis.
WWW: https://github.com/pdfminer/pdfminer.six
PR: 229447
Submitted by: freebsd_ports at k-worx.org
Sponsored by: iXsystems Inc.
Added:
head/textproc/py-pdfminer.six/
head/textproc/py-pdfminer.six/Makefile (contents, props changed)
head/textproc/py-pdfminer.six/distinfo (contents, props changed)
head/textproc/py-pdfminer.six/pkg-descr (contents, props changed)
Modified:
head/textproc/Makefile
Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile Sat Jul 28 12:04:22 2018 (r475530)
+++ head/textproc/Makefile Sat Jul 28 12:05:28 2018 (r475531)
@@ -1340,6 +1340,7 @@
SUBDIR += py-parsimonious
SUBDIR += py-parso
SUBDIR += py-pdfminer
+ SUBDIR += py-pdfminer.six
SUBDIR += py-pdfminer3k
SUBDIR += py-pdfrw
SUBDIR += py-pss
Added: head/textproc/py-pdfminer.six/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/py-pdfminer.six/Makefile Sat Jul 28 12:05:28 2018 (r475531)
@@ -0,0 +1,32 @@
+# $FreeBSD$
+
+PORTNAME= pdfminer.six
+PORTVERSION= 20170720
+CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= freebsd_ports at k-worx.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}pycryptodome>=0:security/py-pycryptodome@${PY_FLAVOR}
+
+USES= python shebangfix dos2unix
+USE_PYTHON= distutils concurrent autoplist
+SHEBANG_FILES= tools/dumppdf.py tools/pdf2txt.py tools/latin2ascii.py
+DOS2UNIXGLOB= *.py
+
+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
+
+.include <bsd.port.post.mk>
Added: head/textproc/py-pdfminer.six/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/py-pdfminer.six/distinfo Sat Jul 28 12:05:28 2018 (r475531)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1530196324
+SHA256 (pdfminer.six-20170720.tar.gz) = a37c6348a8d903cf5f7d50346b0569a7c669afdb625b1ee25056f01fb82bd3e0
+SIZE (pdfminer.six-20170720.tar.gz) = 11992116
Added: head/textproc/py-pdfminer.six/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/py-pdfminer.six/pkg-descr Sat Jul 28 12:05:28 2018 (r475531)
@@ -0,0 +1,22 @@
+PDFMiner.six is a fork of PDFMiner using six for Python 2 + 3 compatibility.
+
+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 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.
+
+Features:
+
+- Parse, analyze, and convert PDF documents.
+- PDF-1.7 specification support. (well, almost)
+- CJK languages and vertical writing scripts support.
+- Various font types (Type1, TrueType, Type3, and CID) support.
+- Basic encryption (RC4) support.
+- Outline (TOC) extraction.
+- Tagged contents extraction.
+- Automatic layout analysis.
+
+WWW: https://github.com/pdfminer/pdfminer.six
More information about the svn-ports-head
mailing list