From 5128f011aebd2a68cbe490ab48350b545e191ca9 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 13 Apr 2023 23:14:41 +0200 Subject: media-gfx/img2pdf: revbump due to PEP517 Signed-off-by: Florian Schmaus Reported-by: Sam James --- media-gfx/img2pdf/img2pdf-0.4.4-r1.ebuild | 60 +++++++++++++++++++++++++++++++ media-gfx/img2pdf/img2pdf-0.4.4.ebuild | 60 ------------------------------- 2 files changed, 60 insertions(+), 60 deletions(-) create mode 100644 media-gfx/img2pdf/img2pdf-0.4.4-r1.ebuild delete mode 100644 media-gfx/img2pdf/img2pdf-0.4.4.ebuild (limited to 'media-gfx') diff --git a/media-gfx/img2pdf/img2pdf-0.4.4-r1.ebuild b/media-gfx/img2pdf/img2pdf-0.4.4-r1.ebuild new file mode 100644 index 000000000000..c9aae044c372 --- /dev/null +++ b/media-gfx/img2pdf/img2pdf-0.4.4-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Losslessly convert raster images to PDF" +HOMEPAGE="https://gitlab.mister-muffin.de/josch/img2pdf" + +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="gui" + +# pytest-xdist isn't really required but it helps speed up tests +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/pytest-xdist[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + media-gfx/imagemagick[jpeg,jpeg2k,lcms,png,-q8,-q32,tiff] + media-libs/exiftool + media-libs/netpbm[jpeg] + ) +" +RDEPEND=" + dev-python/pikepdf[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + gui? ( $(python_gen_impl_dep tk) ) +" + +PATCHES=( + "${FILESDIR}"/img2pdf-0.4.4-Support-imagemagick-7.1.0-48.patch +) + +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 '/gui_scripts/d' setup.py || die + fi +} + +python_test() { + epytest \ + -n auto \ + -k "not test_png_gray1 and not test_gif_animation" +} diff --git a/media-gfx/img2pdf/img2pdf-0.4.4.ebuild b/media-gfx/img2pdf/img2pdf-0.4.4.ebuild deleted file mode 100644 index c9aae044c372..000000000000 --- a/media-gfx/img2pdf/img2pdf-0.4.4.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Losslessly convert raster images to PDF" -HOMEPAGE="https://gitlab.mister-muffin.de/josch/img2pdf" - -LICENSE="LGPL-3+" -SLOT="0" -KEYWORDS="~amd64 ~ppc64 ~x86" -IUSE="gui" - -# pytest-xdist isn't really required but it helps speed up tests -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/pytest-xdist[${PYTHON_USEDEP}] - dev-python/scipy[${PYTHON_USEDEP}] - media-gfx/imagemagick[jpeg,jpeg2k,lcms,png,-q8,-q32,tiff] - media-libs/exiftool - media-libs/netpbm[jpeg] - ) -" -RDEPEND=" - dev-python/pikepdf[${PYTHON_USEDEP}] - dev-python/pillow[${PYTHON_USEDEP}] - gui? ( $(python_gen_impl_dep tk) ) -" - -PATCHES=( - "${FILESDIR}"/img2pdf-0.4.4-Support-imagemagick-7.1.0-48.patch -) - -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 '/gui_scripts/d' setup.py || die - fi -} - -python_test() { - epytest \ - -n auto \ - -k "not test_png_gray1 and not test_gif_animation" -} -- cgit v1.2.3-65-gdbad