From fdca6388cf31827202fae75cae067c695bd09339 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 13 Apr 2023 23:44:17 +0100 Subject: gentoo auto-resync : 13:04:2023 - 23:44:17 --- media-gfx/Manifest.gz | Bin 37870 -> 37865 bytes media-gfx/gnome-screenshot/Manifest | 3 +- ...-41.0-build-Use-GNOME-module-post_install.patch | 72 +++++++++++++ .../gnome-screenshot/gnome-screenshot-41.0.ebuild | 3 +- media-gfx/img2pdf/Manifest | 4 +- .../files/img2pdf-0.4.3-test-gif-animation.patch | 13 --- ...mg2pdf-0.4.4-Support-imagemagick-7.1.0-48.patch | 120 +++++++++++++++++++++ media-gfx/img2pdf/img2pdf-0.4.4-r1.ebuild | 60 +++++++++++ media-gfx/img2pdf/img2pdf-0.4.4.ebuild | 59 ---------- 9 files changed, 258 insertions(+), 76 deletions(-) create mode 100644 media-gfx/gnome-screenshot/files/gnome-screenshot-41.0-build-Use-GNOME-module-post_install.patch delete mode 100644 media-gfx/img2pdf/files/img2pdf-0.4.3-test-gif-animation.patch create mode 100644 media-gfx/img2pdf/files/img2pdf-0.4.4-Support-imagemagick-7.1.0-48.patch 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/Manifest.gz b/media-gfx/Manifest.gz index 8591a959efca..c3fbd19a6345 100644 Binary files a/media-gfx/Manifest.gz and b/media-gfx/Manifest.gz differ diff --git a/media-gfx/gnome-screenshot/Manifest b/media-gfx/gnome-screenshot/Manifest index cc483e23d5e8..e69763718921 100644 --- a/media-gfx/gnome-screenshot/Manifest +++ b/media-gfx/gnome-screenshot/Manifest @@ -1,5 +1,6 @@ AUX gnome-screenshot-40.0-fix-hidpi.patch 1351 BLAKE2B a94ce580d6f4af9e7945bdb13b3ba5b13787b564954e0933f9324c9d086e04f6efcb0affafc8775d2b41004f9c501edbe380e869723e038355c6c6ce7cb8b43b SHA512 68e8d178800036025a03786e8842aadfce0eaec61e36405406909ba8055db86d31350bae201226e54e667879da4610d5ea94df05fcf419f6609202a8c00d9c64 +AUX gnome-screenshot-41.0-build-Use-GNOME-module-post_install.patch 2265 BLAKE2B 5c35e79ed0e4172cb8cefc288c84fe168b3ccd107ea09918270d5b3dcc7be67cdd06dc891296fe86ca36d7c2dd3b8ebcc90ce9a80a630e49ff928f9544b3a0ce SHA512 79a9728a33c20a683183050196509e6cfdef72b3ee4cbc8f2c6ac7485006922033d0d8e78e4227382cef0d8a80278963101fcb60e701c7c4a359978facbd6687 AUX gnome-screenshot-41.0-fix-meson-0.61-build.patch 898 BLAKE2B 9fc2ea6df76ca7db103a747df18e939e53f5ad78431e0c58fadb0826b2ef9686d4f14131fc06a4df3e98cd9b8833659d34a4c4a78c5e2db0f80d7941a40e1b90 SHA512 02020e4588b5bdcc15afce12c92ba261d0dae6d45c01b3b1a6c332f5eada34fa7c82df82aca8e0dd91e7bd66a5615266b581d76ca12bbf09fc8e06bf31132440 DIST gnome-screenshot-41.0.tar.xz 359500 BLAKE2B d3e44ab565815998327ddcbe80979acff3d690cfb0b7ae8f21910bafd21c9c7d3cd7af11e14b0522bb4d64ad2e27d5b6209c80208ea8fb03c465eb453ef8d47f SHA512 ab6c7e22cbca2739844707e59329ecd67901e04f968bd0b20a07dffff825e9772697ebf20a1ab2a920fa839ea40d0bd872d17db2b4cb7856a6f8ee4ec1426d19 -EBUILD gnome-screenshot-41.0.ebuild 1454 BLAKE2B e15032436af7cbe4825bf3d6c21ba741ecd4dc3b3237f6a2a16a88c61a39585b18a5298a2e96ea1e6f53e4c68923d1b57ac7c13f2e77ac6f625d3f9a08b4c762 SHA512 5bdffe4f55cf7fc3e116cd24d28be2c174b397348b78372489c8a17fe8541fd45f5bdede77750a935b2d1483bdc752a3155a3fe2fdfc3a7236c549a94116ade7 +EBUILD gnome-screenshot-41.0.ebuild 1516 BLAKE2B 3d6dea4895fc2732e8daf9f449f82a1a7dc5def317c9255cc9ff78d8c749438a245d77946275030e279e2466681e06431c629ae4336835fdfeff0377c35ba88b SHA512 1e5679b5e11029dc26bab2fc1db8eadaf1192e6141014c4a8cdf98173d008439d958865e1c104e7d077400a14ff206ac419348b16345c66a5f38715e7d048ebd MISC metadata.xml 357 BLAKE2B 655de20d0e5fd6c41754e9b971523415d0ac9d0c6a3987215ecb9c075d19f719e21856c38ca52577f389f0dd3643b5f0d799a590b01a4199ba730c205aeef40b SHA512 45dadcc226d093ceaa4d8d5ceac0fd0325c48811977c9b3e74afdd7712d4653bd29d50c88edaedd0e8ebd4df530f89bc75559e7fe99e7e9514582d2fd3b66960 diff --git a/media-gfx/gnome-screenshot/files/gnome-screenshot-41.0-build-Use-GNOME-module-post_install.patch b/media-gfx/gnome-screenshot/files/gnome-screenshot-41.0-build-Use-GNOME-module-post_install.patch new file mode 100644 index 000000000000..85142224aca1 --- /dev/null +++ b/media-gfx/gnome-screenshot/files/gnome-screenshot-41.0-build-Use-GNOME-module-post_install.patch @@ -0,0 +1,72 @@ +https://gitlab.gnome.org/GNOME/gnome-screenshot/-/merge_requests/67 + +From a25d8f7da4d4dd5b94549362f9a439351495edff Mon Sep 17 00:00:00 2001 +From: Matt Turner +Date: Tue, 23 Aug 2022 21:10:09 -0400 +Subject: [PATCH] build: Use GNOME module post_install() + +--- + build-aux/postinstall.py | 27 --------------------------- + meson.build | 8 ++++++-- + 2 files changed, 6 insertions(+), 29 deletions(-) + delete mode 100755 build-aux/postinstall.py + +diff --git a/build-aux/postinstall.py b/build-aux/postinstall.py +deleted file mode 100755 +index 81afb18..0000000 +--- a/build-aux/postinstall.py ++++ /dev/null +@@ -1,27 +0,0 @@ +-#!/usr/bin/env python3 +- +-import os +-import subprocess +- +-prefix = os.environ.get('MESON_INSTALL_PREFIX', '/usr/local') +-datadir = os.path.join(prefix, 'share') +- +-# Packaging tools define DESTDIR and this isn't needed for them +-if 'DESTDIR' not in os.environ: +- print('Updating icon cache...') +- icon_cache_dir = os.path.join(datadir, 'icons', 'hicolor') +- if not os.path.exists(icon_cache_dir): +- os.makedirs(icon_cache_dir) +- subprocess.call(['gtk-update-icon-cache', '-qtf', icon_cache_dir]) +- +- print('Updating desktop database...') +- desktop_database_dir = os.path.join(datadir, 'applications') +- if not os.path.exists(desktop_database_dir): +- os.makedirs(desktop_database_dir) +- subprocess.call(['update-desktop-database', '-q', desktop_database_dir]) +- +- print('Compiling GSettings schemas...') +- schemas_dir = os.path.join(datadir, 'glib-2.0', 'schemas') +- if not os.path.exists(schemas_dir): +- os.makedirs(schemas_dir) +- subprocess.call(['glib-compile-schemas', schemas_dir]) +diff --git a/meson.build b/meson.build +index 3f2f393..dcb0b46 100644 +--- a/meson.build ++++ b/meson.build +@@ -3,7 +3,7 @@ project( + 'c', + version: '41.0', + license: 'GPLv2+', +- meson_version: '>= 0.50.0', ++ meson_version: '>= 0.59.0', + default_options: [ + 'buildtype=debugoptimized', + 'warning_level=1', +@@ -63,4 +63,8 @@ subdir('data') + subdir('src') + subdir('po') + +-meson.add_install_script('build-aux/postinstall.py') ++gnome.post_install( ++ glib_compile_schemas: true, ++ gtk_update_icon_cache: true, ++ update_desktop_database: true, ++) +-- +2.39.2 + diff --git a/media-gfx/gnome-screenshot/gnome-screenshot-41.0.ebuild b/media-gfx/gnome-screenshot/gnome-screenshot-41.0.ebuild index 536f83cf2dfb..36815cc827c0 100644 --- a/media-gfx/gnome-screenshot/gnome-screenshot-41.0.ebuild +++ b/media-gfx/gnome-screenshot/gnome-screenshot-41.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -38,6 +38,7 @@ PATCHES=( "${FILESDIR}"/${PN}-40.0-fix-hidpi.patch "${FILESDIR}"/${P}-fix-meson-0.61-build.patch + "${FILESDIR}"/${P}-build-Use-GNOME-module-post_install.patch ) DOC_CONTENTS="${P} saves screenshots in ~/Pictures/ and defaults to diff --git a/media-gfx/img2pdf/Manifest b/media-gfx/img2pdf/Manifest index 974017b684ad..c32cd364a664 100644 --- a/media-gfx/img2pdf/Manifest +++ b/media-gfx/img2pdf/Manifest @@ -1,4 +1,4 @@ -AUX img2pdf-0.4.3-test-gif-animation.patch 576 BLAKE2B 27b0357c0d1e307e54377fc3dd79c9ad1ae7864166ceab2efc518d9fa656e0685798a10da1dd488f1284a295fce2e0045f92e61e897431187f7083a4c95a9378 SHA512 edb0e95b8b126ddd8784ddb306b29173a2f22299016874e33eae0441837ca5a0f8608ed1a57f93b8a91a5f1723598e0a4f3fe94ab6eeff9ae372bdcd525a1c23 +AUX img2pdf-0.4.4-Support-imagemagick-7.1.0-48.patch 4995 BLAKE2B 401e3b144f14e6468546dae30dfa0ea08014d994b3b30aec192365a6f1d06206f2981f3bb93bf02b157f477fdae12a5603ace58f3bf6f00c8abceb39b7194094 SHA512 c8459bf91c753d48289c33e80da1141d5f0861e15eaf0bff118ea00d015a0c1835f6cd0ed50df264f255a68b0c2ea7defc10b829c26d3e7947728a8b4f0d709f DIST img2pdf-0.4.4.tar.gz 97796 BLAKE2B d04eae8c02490e4e73339dade92b2521ad410ed741ccc2987961543790589b14a5c8939cb9bbadcc795f5edcbb59a1a43bd522c75948f42dde1acffafb6266e0 SHA512 56943cd965b3e6b0680b7696ca4b5a2ba779474f945dd0d2648fb6f18ab18aab6d74640f9bd8e9c8683e3e641b0657cb84c691054910d84f0c9e8ad733f179e9 -EBUILD img2pdf-0.4.4.ebuild 1425 BLAKE2B d6542f1d01a98ba54ef8ce9cddc03e1f9337491791d6dd633b573e8b06986146d825d2d6e7d63bc6e094035796e2d963e00aa65868f7b3cd35506cdd4aa295cc SHA512 f3a67ba9847763fb2eef6f8148bf67f8de10f1a69ff778bd89fa2e92b237b4d1a343720867bd4aa1e10d1a688368acf78e58a7f7212878c78f4e9bd0cf9d1a91 +EBUILD img2pdf-0.4.4-r1.ebuild 1369 BLAKE2B 90d754211d85040b729dae8f9f5118d10d5ee30126dc1f5b5f49cc6a8cd064ebeefd5cbb52f9ecb02e727c3df2884e01e3ea9e19b03ec883fbf7a6379fb2113f SHA512 532c1f24838c2a276ca458341d492d14398619b750c870c782da6eec360c9b5b364ae280dd0fdae51ee15304960d7301a947699aee69221ff1d4a5111a3b59c0 MISC metadata.xml 923 BLAKE2B fe0074db9549519b522f9d749388c5626b702dadba5a722444f652b203a60aea8e8ea5739c3c634076b42dddf24d17b4f449220de617224e59e5491893339901 SHA512 98fc799711e027afa40d2b9bf4558c38873d385920713f58d62782a986e72d1c9b04eb5591d4ec384bbf32376e2b03bf822bf5573015d003ff53ae0d4c7e6421 diff --git a/media-gfx/img2pdf/files/img2pdf-0.4.3-test-gif-animation.patch b/media-gfx/img2pdf/files/img2pdf-0.4.3-test-gif-animation.patch deleted file mode 100644 index 459746455c9a..000000000000 --- a/media-gfx/img2pdf/files/img2pdf-0.4.3-test-gif-animation.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -r -U2 img2pdf-0.4.3.orig/src/img2pdf_test.py img2pdf-0.4.3/src/img2pdf_test.py ---- img2pdf-0.4.3.orig/src/img2pdf_test.py 2021-10-24 20:46:53.000000000 +0700 -+++ img2pdf-0.4.3/src/img2pdf_test.py 2022-02-08 23:20:27.584463297 +0700 -@@ -5613,8 +5613,5 @@ - - --@pytest.mark.skipif( -- sys.platform in ["win32"], -- reason="test utilities not available on Windows and MacOS", --) -+@pytest.mark.skip(reason="gif animation test fails") - def test_gif_animation(tmp_path_factory, gif_animation_img, gif_animation_pdf): - tmpdir = tmp_path_factory.mktemp("gif_animation") diff --git a/media-gfx/img2pdf/files/img2pdf-0.4.4-Support-imagemagick-7.1.0-48.patch b/media-gfx/img2pdf/files/img2pdf-0.4.4-Support-imagemagick-7.1.0-48.patch new file mode 100644 index 000000000000..9ad23732e229 --- /dev/null +++ b/media-gfx/img2pdf/files/img2pdf-0.4.4-Support-imagemagick-7.1.0-48.patch @@ -0,0 +1,120 @@ +From 57d7e07e6badb252c12015388b58fcb5285d3158 Mon Sep 17 00:00:00 2001 +From: Johannes Schauer Marin Rodrigues +Date: Thu, 15 Sep 2022 04:36:16 +0200 +Subject: [PATCH] Support imagemagick 7.1.0-48 + + - the output of -metric PSNR changed + - CMYK output can now be exactly compared + +closes: #148 +--- a/src/img2pdf_test.py ++++ b/src/img2pdf_test.py +@@ -75,6 +75,7 @@ for prog in ["convert", "compare", "identify"]: + globals()[prog.upper()] = ["magick", prog] + + HAVE_IMAGEMAGICK_MODERN = True ++HAVE_EXACT_CMYK8 = True + try: + ver = subprocess.check_output(CONVERT + ["-version"], stderr=subprocess.STDOUT) + m = re.fullmatch( +@@ -82,13 +83,18 @@ try: + ) + if m is None: + HAVE_IMAGEMAGICK_MODERN = False ++ HAVE_EXACT_CMYK8 = False + else: + if parse_version(m.group(1)) < parse_version("6.9.10-12"): + HAVE_IMAGEMAGICK_MODERN = False ++ if parse_version(m.group(1)) < parse_version("7.1.0-48"): ++ HAVE_EXACT_CMYK8 = False + except FileNotFoundError: + HAVE_IMAGEMAGICK_MODERN = False ++ HAVE_EXACT_CMYK8 = False + except subprocess.CalledProcessError: + HAVE_IMAGEMAGICK_MODERN = False ++ HAVE_EXACT_CMYK8 = False + + if not HAVE_IMAGEMAGICK_MODERN: + warnings.warn("imagemagick >= 6.9.10-12 not available, skipping certain checks...") +@@ -113,6 +119,12 @@ except subprocess.CalledProcessError: + if not HAVE_JP2: + warnings.warn("imagemagick has no jpeg 2000 support, skipping certain checks...") + ++# the result of compare -metric PSNR is either just a floating point value or a ++# floating point value following by the same value multiplied by 0.01, ++# surrounded in parenthesis since ImagemMagick 7.1.0-48: ++# https://github.com/ImageMagick/ImageMagick/commit/751829cd4c911d7a42953a47c1f73068d9e7da2f ++psnr_re = re.compile(rb"((?:inf|(?:0|[1-9][0-9]*)(?:\.[0-9]+)?))(?: \([0-9.]+\))?") ++ + ############################################################################### + # HELPER FUNCTIONS # + ############################################################################### +@@ -310,8 +322,8 @@ def write_png(data, path, bitdepth, colortype, palette=None, iccp=None): + + def compare(im1, im2, exact, icc, cmyk): + if exact: +- if cmyk: +- raise Exception("cmyk cannot be exact") ++ if cmyk and not HAVE_EXACT_CMYK8: ++ raise Exception("cmyk cannot be exact before ImageMagick 7.1.0-48") + elif icc: + raise Exception("icc cannot be exact") + else: +@@ -345,7 +357,10 @@ def compare(im1, im2, exact, icc, cmyk): + stderr=subprocess.PIPE, + ).stderr + assert psnr != b"0" +- psnr = float(psnr.strip(b"0")) ++ assert psnr != b"0 (0)" ++ assert psnr_re.fullmatch(psnr) is not None, psnr ++ psnr = psnr_re.fullmatch(psnr).group(1) ++ psnr = float(psnr) + assert psnr != 0 # or otherwise we would use the exact variant + assert psnr > 50 + +@@ -501,7 +516,9 @@ def compare_pdfimages_png(tmpdir, img, pdf, exact=True, icc=False): + stderr=subprocess.PIPE, + ).stderr + assert psnr != b"0" +- psnr = float(psnr.strip(b"0")) ++ assert psnr != b"0 (0)" ++ psnr = psnr_re.fullmatch(psnr).group(1) ++ psnr = float(psnr) + assert psnr != 0 # or otherwise we would use the exact variant + assert psnr > 50 + (tmpdir / "images-000.png").unlink() +@@ -5545,10 +5562,10 @@ def test_jpg_rot(tmp_path_factory, jpg_rot_img, jpg_rot_pdf): + def test_jpg_cmyk(tmp_path_factory, jpg_cmyk_img, jpg_cmyk_pdf): + tmpdir = tmp_path_factory.mktemp("jpg_cmyk") + compare_ghostscript( +- tmpdir, jpg_cmyk_img, jpg_cmyk_pdf, gsdevice="tiff32nc", exact=False ++ tmpdir, jpg_cmyk_img, jpg_cmyk_pdf, gsdevice="tiff32nc", exact=HAVE_EXACT_CMYK8 + ) + # not testing with poppler as it cannot write CMYK images +- compare_mupdf(tmpdir, jpg_cmyk_img, jpg_cmyk_pdf, exact=False, cmyk=True) ++ compare_mupdf(tmpdir, jpg_cmyk_img, jpg_cmyk_pdf, exact=HAVE_EXACT_CMYK8, cmyk=True) + compare_pdfimages_cmyk(tmpdir, jpg_cmyk_img, jpg_cmyk_pdf) + + +@@ -5902,10 +5919,16 @@ def test_tiff_float(tmp_path_factory, tiff_float_img, engine): + def test_tiff_cmyk8(tmp_path_factory, tiff_cmyk8_img, tiff_cmyk8_pdf): + tmpdir = tmp_path_factory.mktemp("tiff_cmyk8") + compare_ghostscript( +- tmpdir, tiff_cmyk8_img, tiff_cmyk8_pdf, gsdevice="tiff32nc", exact=False ++ tmpdir, ++ tiff_cmyk8_img, ++ tiff_cmyk8_pdf, ++ gsdevice="tiff32nc", ++ exact=HAVE_EXACT_CMYK8, + ) + # not testing with poppler as it cannot write CMYK images +- compare_mupdf(tmpdir, tiff_cmyk8_img, tiff_cmyk8_pdf, exact=False, cmyk=True) ++ compare_mupdf( ++ tmpdir, tiff_cmyk8_img, tiff_cmyk8_pdf, exact=HAVE_EXACT_CMYK8, cmyk=True ++ ) + compare_pdfimages_tiff(tmpdir, tiff_cmyk8_img, tiff_cmyk8_pdf) + + +-- +2.39.2 + 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 1b42b2bc863c..000000000000 --- a/media-gfx/img2pdf/img2pdf-0.4.4.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..10} ) - -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) ) -" - -# gif animation test fails -PATCHES=( "${FILESDIR}"/img2pdf-0.4.3-test-gif-animation.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 - - # gif animation test fails - rm src/tests/input/animation.gif src/tests/output/animation.gif.pdf || die "rm animation gif failes" -} - -python_test() { - epytest -n auto -} -- cgit v1.2.3