summaryrefslogtreecommitdiff
path: root/media-gfx/img2pdf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-03-20 00:40:44 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-03-20 00:40:44 +0000
commit4cbcc855382a06088e2f016f62cafdbcb7e40665 (patch)
tree356496503d52354aa6d9f2d36126302fed5f3a73 /media-gfx/img2pdf
parentfcc5224904648a8e6eb528d7603154160a20022f (diff)
gentoo resync : 20.03.2022
Diffstat (limited to 'media-gfx/img2pdf')
-rw-r--r--media-gfx/img2pdf/Manifest6
-rw-r--r--media-gfx/img2pdf/files/img2pdf-0.4.3-test-gif-animation.patch13
-rw-r--r--media-gfx/img2pdf/img2pdf-0.4.1.ebuild50
-rw-r--r--media-gfx/img2pdf/img2pdf-0.4.3.ebuild60
-rw-r--r--media-gfx/img2pdf/metadata.xml9
5 files changed, 78 insertions, 60 deletions
diff --git a/media-gfx/img2pdf/Manifest b/media-gfx/img2pdf/Manifest
index ea6b1bf57d47..13afb91ca68d 100644
--- a/media-gfx/img2pdf/Manifest
+++ b/media-gfx/img2pdf/Manifest
@@ -1,5 +1,7 @@
+AUX img2pdf-0.4.3-test-gif-animation.patch 576 BLAKE2B 27b0357c0d1e307e54377fc3dd79c9ad1ae7864166ceab2efc518d9fa656e0685798a10da1dd488f1284a295fce2e0045f92e61e897431187f7083a4c95a9378 SHA512 edb0e95b8b126ddd8784ddb306b29173a2f22299016874e33eae0441837ca5a0f8608ed1a57f93b8a91a5f1723598e0a4f3fe94ab6eeff9ae372bdcd525a1c23
DIST img2pdf-0.4.1-imagemagick-7-tests.patch.gz 2586 BLAKE2B 3d905b22c02fadf69e6329001cf7d6562d5809ba27842a5e630d87054979d953b641afb0b461f37bc9e379af808d0dc9e95478bdd5143047ea19d13d38e04593 SHA512 c9c5e88aea344a17bb57ff6b4540d7010537df0987cd3884e36220236753a42a71377468b556c17090ba22497a50c7d9365373aaeb007b75240ad55d21e9032a
DIST img2pdf-0.4.1.tar.gz 96699 BLAKE2B f5a41a3a3d1b1ae7caadab4f37df644ad28a3ef4bd7a56a339253f0aead4d2427f05373dcfd16b10d82a6167243b3b03906e9f95b7ae0dcdbea6a666905c45a2 SHA512 e71833250509d52b8782a8bc9e12a8de6ab7ae06d5e6e235c0b3787bfad1070b5ed90934b21e4decc9b2c7008eeb0424f9df27e44ec66259916d3a2fdb73d1f1
+DIST img2pdf-0.4.3.tar.gz 98656 BLAKE2B ec7be83fa7fc38f94c7770a2566a49a39e5fd0abb715de74fc3f65d59087cecdd009f4284e647facaf6ae019a118b4bedf7ce8d4a09b8479a299c8404a8940d5 SHA512 00755788c7380e44733c5a309428894b6689e93d4d7cca8f84681d12977848971a6b1a7c92c7203258a529894e7a0debb5beaeb6b375de769a0d600ea8d65423
EBUILD img2pdf-0.4.1-r1.ebuild 1484 BLAKE2B 4d08bcdebfa7374ee57e2cf83c0244dfc2237f57c040817173c22542f5fb488b2fa3517a38eda12c982f9085d0c9f7b85153a269845a274408f3c580b285d512 SHA512 1980c100b90c02d2d416ee86eb121619e9174346c8d74bd049b5cd5adff2c384f5dcb214b7b13cc40dc42f0c29b16373ff8ed47748e8b28bc04eb6de26ec29e3
-EBUILD img2pdf-0.4.1.ebuild 1196 BLAKE2B efc374a4b091c1f169dbf0f166ce1a753db695407150f98aca398e8569685f453263903eb8a2ccf0718dd6f06042305428a5ff4b755606838f8cbcc53e62e817 SHA512 3c7c2c21794fa6ec33b9dcf6e1d391ba5478e963d8f212d0d892fbe3fb4ae3697cff68d49eb3bfe28bddcdb75dfbbbe59a09ddf18d50f1253c5c0d213765aca9
-MISC metadata.xml 1151 BLAKE2B 6328d64e5b482ce348ac6d6ab2c78574578b663c76df2d5b98f9ebf5b5d103a81b972619228b6841bbcb100987789af95a08fa6b012d00e43b1755faf7cd2559 SHA512 7fd6234cf2d45ae3b9f86a2323da939c7d8c8f2ec188640cdc35f2fc95eb0853c532fb2be4ec4ac06f3a9328b21fa955f85a3bb6dec8e978300a42b6e558a3e9
+EBUILD img2pdf-0.4.3.ebuild 1456 BLAKE2B cdd2d23b78173ebafa8f2ad48a4bb430ac62ba153ca365fdce31a61b17e6b19017d22e8c45bfa1a5552d295c50bdc4aeaadd02bb05528b989c3180aeb0dffb65 SHA512 c5b2f2b6c797df6b2bd731df120811dedb19af9ae81a027afc54322daec5eca43fe8bf4b60bcc4272710f7d2b90b716564a2d0337d69e0d78d62647627c5eb27
+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
new file mode 100644
index 000000000000..459746455c9a
--- /dev/null
+++ b/media-gfx/img2pdf/files/img2pdf-0.4.3-test-gif-animation.patch
@@ -0,0 +1,13 @@
+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/img2pdf-0.4.1.ebuild b/media-gfx/img2pdf/img2pdf-0.4.1.ebuild
deleted file mode 100644
index b4b9173611f3..000000000000
--- a/media-gfx/img2pdf/img2pdf-0.4.1.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7..9} )
-DISTUTILS_USE_SETUPTOOLS=rdepend
-
-inherit distutils-r1
-
-DESCRIPTION="Losslessly convert raster images to PDF"
-HOMEPAGE="https://gitlab.mister-muffin.de/josch/img2pdf"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="LGPL-3+"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="gui"
-
-# missing dev-python/pdfrw dependency and
-# require old version of imagemagick
-# waiting new version
-RESTRICT="test"
-
-#BDEPEND="test? (
-# dev-python/numpy[${PYTHON_USEDEP}]
-# dev-python/pdfrw[${PYTHON_USEDEP}]
-# dev-python/pikepdf[${PYTHON_USEDEP}]
-# dev-python/pytest[${PYTHON_USEDEP}]
-# dev-python/scipy[${PYTHON_USEDEP}]
-# <media-gfx/imagemagick-7.0.0[jpeg,jpeg2k,png,q8,q32,tiff]
-#)"
-RDEPEND="dev-python/pikepdf[${PYTHON_USEDEP}]
- dev-python/pillow[${PYTHON_USEDEP}]
- gui? ( $(python_gen_impl_dep tk) )"
-
-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 src/img2pdf_test.py
-}
diff --git a/media-gfx/img2pdf/img2pdf-0.4.3.ebuild b/media-gfx/img2pdf/img2pdf-0.4.3.ebuild
new file mode 100644
index 000000000000..7900354a9775
--- /dev/null
+++ b/media-gfx/img2pdf/img2pdf-0.4.3.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Losslessly convert raster images to PDF"
+HOMEPAGE="https://gitlab.mister-muffin.de/josch/img2pdf"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~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}"/${P}-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
+}
diff --git a/media-gfx/img2pdf/metadata.xml b/media-gfx/img2pdf/metadata.xml
index dae701da00f8..ab909682d5c4 100644
--- a/media-gfx/img2pdf/metadata.xml
+++ b/media-gfx/img2pdf/metadata.xml
@@ -1,14 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="person" proxied="yes">
- <email>sir.suriv@gmail.com</email>
- <name>Diogo Pereira</name>
- </maintainer>
- <maintainer type="project" proxied="proxy">
- <email>proxy-maint@gentoo.org</email>
- <name>Proxy Maintainers</name>
- </maintainer>
+ <!-- maintainer-needed -->
<stabilize-allarches/>
<longdescription lang="en">
Losslessly convert raster images to PDF. The file size will not