git: fb34e270eef2 - main - graphics/py-pdf2image: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 18 Feb 2024 11:33:23 UTC
The branch main has been updated by grembo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fb34e270eef29f3a3c0b8d0c1c5956615335542e
commit fb34e270eef29f3a3c0b8d0c1c5956615335542e
Author: Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2024-02-12 12:20:01 +0000
Commit: Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2024-02-18 11:32:07 +0000
graphics/py-pdf2image: New port
Wrapper to convert pdf to a pil image list
---
graphics/Makefile | 1 +
graphics/py-pdf2image/Makefile | 23 +++++++++++++++++++++++
graphics/py-pdf2image/distinfo | 3 +++
graphics/py-pdf2image/pkg-descr | 2 ++
4 files changed, 29 insertions(+)
diff --git a/graphics/Makefile b/graphics/Makefile
index 91bb51a36dfc..8dc13c692006 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -916,6 +916,7 @@
SUBDIR += py-optimize-images
SUBDIR += py-osmnet
SUBDIR += py-pandana
+ SUBDIR += py-pdf2image
SUBDIR += py-photocollage
SUBDIR += py-piexif
SUBDIR += py-pillow
diff --git a/graphics/py-pdf2image/Makefile b/graphics/py-pdf2image/Makefile
new file mode 100644
index 000000000000..0dde6308816e
--- /dev/null
+++ b/graphics/py-pdf2image/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= pdf2image
+PORTVERSION= 1.17.0
+CATEGORIES= graphics python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= grembo@FreeBSD.org
+COMMENT= Wrapper to convert pdf to a pil image list
+WWW= https://github.com/Belval/pdf2image
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
+ pdftocairo:graphics/poppler-utils \
+ pdftoppm:graphics/poppler-utils
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/graphics/py-pdf2image/distinfo b/graphics/py-pdf2image/distinfo
new file mode 100644
index 000000000000..0c391a841d68
--- /dev/null
+++ b/graphics/py-pdf2image/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1707593750
+SHA256 (pdf2image-1.17.0.tar.gz) = eaa959bc116b420dd7ec415fcae49b98100dda3dd18cd2fdfa86d09f112f6d57
+SIZE (pdf2image-1.17.0.tar.gz) = 12811
diff --git a/graphics/py-pdf2image/pkg-descr b/graphics/py-pdf2image/pkg-descr
new file mode 100644
index 000000000000..db5e15e540c3
--- /dev/null
+++ b/graphics/py-pdf2image/pkg-descr
@@ -0,0 +1,2 @@
+A python (3.7+) module that wraps pdftoppm and pdftocairo to convert PDF to a
+PIL Image object