diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2026-07-09 01:01:18 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2026-07-09 05:20:14 +0000 |
| commit | 8826224b5d1ca9d8290b3c181b206a0ed6232871 (patch) | |
| tree | aafb69b2fe2cfb68155dc9bb5087bd9db7edfb33 | |
| parent | fe4aebafda8c016259a64744fce859488d47a81c (diff) | |
graphics/py-pdfminer-six: New port: PDF parser and analyzer
| -rw-r--r-- | graphics/Makefile | 1 | ||||
| -rw-r--r-- | graphics/py-pdfminer-six/Makefile | 29 | ||||
| -rw-r--r-- | graphics/py-pdfminer-six/distinfo | 3 | ||||
| -rw-r--r-- | graphics/py-pdfminer-six/pkg-descr | 4 |
4 files changed, 37 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 4f331be074b6..d850d50c8bd0 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -999,6 +999,7 @@ SUBDIR += py-pandana SUBDIR += py-pandarm SUBDIR += py-pdf2image + SUBDIR += py-pdfminer-six SUBDIR += py-photocollage SUBDIR += py-piexif SUBDIR += py-pillow diff --git a/graphics/py-pdfminer-six/Makefile b/graphics/py-pdfminer-six/Makefile new file mode 100644 index 000000000000..76cb39b8011d --- /dev/null +++ b/graphics/py-pdfminer-six/Makefile @@ -0,0 +1,29 @@ +PORTNAME= pdfminer-six +PORTVERSION= 20260107 +CATEGORIES= graphics python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pdfminer_six-${PORTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= PDF parser and analyzer +WWW= https://github.com/pdfminer/pdfminer.six + +LICENSE= MIT + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}charset-normalizer>=2.0.0:textproc/py-charset-normalizer@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}cryptography-legacy>=36.0.0:security/py-cryptography-legacy@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 +NO_ARCH= yes + +post-extract: + @${REINPLACE_CMD} -e 's/^license = "\([^"]*\)"/license = {text = "\1"}/' \ + -e '/^license-files/d' \ + -e 's/^name = "pdfminer\.six"/name = "pdfminer_six"/' ${WRKSRC}/pyproject.toml + +.include <bsd.port.mk> diff --git a/graphics/py-pdfminer-six/distinfo b/graphics/py-pdfminer-six/distinfo new file mode 100644 index 000000000000..6cd31e07c0a9 --- /dev/null +++ b/graphics/py-pdfminer-six/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1783066293 +SHA256 (pdfminer_six-20260107.tar.gz) = 96bfd431e3577a55a0efd25676968ca4ce8fd5b53f14565f85716ff363889602 +SIZE (pdfminer_six-20260107.tar.gz) = 8512094 diff --git a/graphics/py-pdfminer-six/pkg-descr b/graphics/py-pdfminer-six/pkg-descr new file mode 100644 index 000000000000..6653575dcfe1 --- /dev/null +++ b/graphics/py-pdfminer-six/pkg-descr @@ -0,0 +1,4 @@ +pdfminer.six is a community-maintained Python PDF parser and analyzer. +It extracts text, images, and metadata from PDF files and provides +utilities for PDF content analysis and layout-aware text extraction. +It is a fork of the original pdfminer with Python 3 support. |
