pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Add py-img2pdf, a tool (and python library) to add image files to PDFs without recoding them.
Module Name: pkgsrc-wip
Committed By: Martin Husemann <martin%NetBSD.org@localhost>
Pushed By: martin
Date: Sat Sep 5 15:55:59 2026 +0200
Changeset: 3cc75a85887ed15f7ca581541ec74d960daba822
Added Files:
py-img2pdf/COMMIT_MSG
py-img2pdf/DESCR
py-img2pdf/Makefile
py-img2pdf/PLIST
py-img2pdf/distinfo
Log Message:
Add py-img2pdf, a tool (and python library) to add image files to PDFs
without recoding them.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3cc75a85887ed15f7ca581541ec74d960daba822
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-img2pdf/COMMIT_MSG | 2 ++
py-img2pdf/DESCR | 12 ++++++++++++
py-img2pdf/Makefile | 21 +++++++++++++++++++++
py-img2pdf/PLIST | 11 +++++++++++
py-img2pdf/distinfo | 5 +++++
5 files changed, 51 insertions(+)
diffs:
diff --git a/py-img2pdf/COMMIT_MSG b/py-img2pdf/COMMIT_MSG
new file mode 100644
index 0000000000..3d8608d41d
--- /dev/null
+++ b/py-img2pdf/COMMIT_MSG
@@ -0,0 +1,2 @@
+Add py-img2pdf, a tool (and python library) to add image files to PDFs
+without recoding them.
diff --git a/py-img2pdf/DESCR b/py-img2pdf/DESCR
new file mode 100644
index 0000000000..29d29e51e1
--- /dev/null
+++ b/py-img2pdf/DESCR
@@ -0,0 +1,12 @@
+Lossless conversion of raster images to PDF. You should use img2pdf if
+your priorities are (in this order):
+
+ always lossless: the image embedded in the PDF will always have the
+ exact same color information for every pixel as the input
+
+ small: if possible, the difference in filesize between the input
+ image and the output PDF will only be the overhead of the PDF container
+ itself
+
+ fast: if possible, the input image is just pasted into the PDF
+ document as-is without any CPU hungry re-encoding of the pixel data
diff --git a/py-img2pdf/Makefile b/py-img2pdf/Makefile
new file mode 100644
index 0000000000..1aa897b11f
--- /dev/null
+++ b/py-img2pdf/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD$
+
+DISTNAME= img2pdf-0.6.3
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= graphics python
+MASTER_SITES= ${MASTER_SITE_PYPI:=i/img2pdf/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://pypi.org/project/img2pdf/
+COMMENT= Lossless conversion of raster images to PDF
+LICENSE= gnu-lgpl-v3
+
+USE_TOOLS+= pkg-config
+
+REPLACE_INTERPRETER+= python
+REPLACE.python.old= /usr/bin/env
+REPLACE.python.new= ${PYTHONBIN}
+REPLACE_FILES.python= src/img2pdf.py
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-img2pdf/PLIST b/py-img2pdf/PLIST
new file mode 100644
index 0000000000..3dd3f5c5b7
--- /dev/null
+++ b/py-img2pdf/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+bin/img2pdf
+bin/img2pdf-gui
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
+${PYSITELIB}/img2pdf.py
+${PYSITELIB}/img2pdf.pyc
+${PYSITELIB}/img2pdf.pyo
diff --git a/py-img2pdf/distinfo b/py-img2pdf/distinfo
new file mode 100644
index 0000000000..c9657adeaf
--- /dev/null
+++ b/py-img2pdf/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (img2pdf-0.6.3.tar.gz) = e21fda7b4129d7112de22105c82030b8684ce8d04c95dc55a71fb26d2d5247b5
+SHA512 (img2pdf-0.6.3.tar.gz) = d9d2bfb078765e43727d89f0c9723f9a3cd1ffea745f657540de6e301f287c3fd4a1c9efb9233ee99e3e6d337c701e75ff20908190d0f3ae39c5c32debeaedb2
+Size (img2pdf-0.6.3.tar.gz) = 120350 bytes
Home |
Main Index |
Thread Index |
Old Index