commit: 15695b455cc5eae20f76f741cd010cdd51805040
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sat May 3 09:05:55 2025 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sat May 3 09:05:55 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15695b45
media-gfx/img2pdf: add 0.6.1
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
media-gfx/img2pdf/Manifest | 1 +
media-gfx/img2pdf/img2pdf-0.6.1.ebuild | 71 ++++++++++++++++++++++++++++++++++
2 files changed, 72 insertions(+)
diff --git a/media-gfx/img2pdf/Manifest b/media-gfx/img2pdf/Manifest
index 73c1d21dd6d9..f483a79073b5 100644
--- a/media-gfx/img2pdf/Manifest
+++ b/media-gfx/img2pdf/Manifest
@@ -1,2 +1,3 @@
DIST img2pdf-0.4.4.tar.gz 97796 BLAKE2B
d04eae8c02490e4e73339dade92b2521ad410ed741ccc2987961543790589b14a5c8939cb9bbadcc795f5edcbb59a1a43bd522c75948f42dde1acffafb6266e0
SHA512
56943cd965b3e6b0680b7696ca4b5a2ba779474f945dd0d2648fb6f18ab18aab6d74640f9bd8e9c8683e3e641b0657cb84c691054910d84f0c9e8ad733f179e9
DIST img2pdf-0.5.1.tar.gz 104241 BLAKE2B
1ea89107654c91cea8b5f074c05c7376452dd2ebd40dafaadedb39ac3ee383c3c02c1375b130da73339e1f87eb1a6ffbe0553cdedf6ec997bc0731d1d100327f
SHA512
e17a920929f6ab08f501b205c38f9cf2fd5a6bd8d41ac4819a5d7463a3cfbeb5376cd5bbee36ab303248610f1d5c8a71a38ff85b14be564e2f39c6eb537ffcaf
+DIST img2pdf-0.6.1.tar.gz 106513 BLAKE2B
627d96b76b80ed08090c43c49a1721ca32cf4ec10dfaac7d56ce9f9c6df9faee79e8f5c9205912723bb5908dbbb0ca9f549a6bb15d3a8939ce1f0fb1e90f9092
SHA512
64cd65a32d9c44c19d25aa0ae2bd09fbd02e432c6b08f5c9e1e7b68dabe8d084f99e6e9dc075802678057370b8107d73d3299ffd1476860f1b1a1a18d2eebd3e
diff --git a/media-gfx/img2pdf/img2pdf-0.6.1.ebuild
b/media-gfx/img2pdf/img2pdf-0.6.1.ebuild
new file mode 100644
index 000000000000..d17cfc14d50d
--- /dev/null
+++ b/media-gfx/img2pdf/img2pdf-0.6.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Losslessly convert raster images to PDF"
+HOMEPAGE="
+ https://gitlab.mister-muffin.de/josch/img2pdf/
+ https://pypi.org/project/img2pdf/
+"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="gui"
+
+BDEPEND="
+ test? (
+ app-text/ghostscript-gpl
+ app-text/mupdf
+ app-text/poppler[cairo,png,tiff]
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pdfrw[${PYTHON_USEDEP}]
+ dev-python/pillow[tiff,${PYTHON_USEDEP}]
+ dev-python/scipy[${PYTHON_USEDEP}]
+ media-gfx/imagemagick[jpeg,jpeg2k,lcms,png,-q8,-q32,tiff]
+ media-libs/exiftool
+ media-libs/netpbm[jpeg]
+ sys-libs/libfaketime
+ )
+"
+RDEPEND="
+ dev-python/pikepdf[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ media-libs/icc-profiles-openicc
+ gui? ( $(python_gen_impl_dep tk) )
+"
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+src_prepare() {
+ distutils-r1_python_prepare_all
+
+ # Remove gui executable if there's no demand/support for it.
+ if ! use gui; then
+ sed -i -e '/gui_scripts/d' setup.py || die
+ fi
+}
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # https://gitlab.mister-muffin.de/josch/img2pdf/issues/187
+ src/img2pdf_test.py::test_miff_cmyk8
+ )
+
+ if has_version 'media-gfx/imagemagick[hdri]'; then
+ # https://gitlab.mister-muffin.de/josch/img2pdf/issues/178
+ EPYTEST_DESELECT+=(
+ src/img2pdf_test.py::test_miff_cmyk16
+ )
+ fi
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}