public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Louis Sautier" <sbraz@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/img2pdf/
Date: Sun, 22 Aug 2021 01:13:35 +0000 (UTC)	[thread overview]
Message-ID: <1629594761.ee9d36f9f57d7337972a5c61c37683d33e5b66d5.sbraz@gentoo> (raw)

commit:     ee9d36f9f57d7337972a5c61c37683d33e5b66d5
Author:     Louis Sautier <sbraz <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 22 00:57:48 2021 +0000
Commit:     Louis Sautier <sbraz <AT> gentoo <DOT> org>
CommitDate: Sun Aug 22 01:12:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee9d36f9

media-gfx/img2pdf: enable py3.10, re-enable tests, fix deps

Closes: https://bugs.gentoo.org/807969
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>

 media-gfx/img2pdf/Manifest                |  1 +
 media-gfx/img2pdf/img2pdf-0.4.1-r1.ebuild | 61 +++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/media-gfx/img2pdf/Manifest b/media-gfx/img2pdf/Manifest
index a3408876def..ec668cd8f7f 100644
--- a/media-gfx/img2pdf/Manifest
+++ b/media-gfx/img2pdf/Manifest
@@ -1,3 +1,4 @@
 DIST img2pdf-0.3.6.tar.gz 91006 BLAKE2B ad89b42be4613c30383770f336b07773bf13e87061fca61eb7d5e25d6489662fc2bae94d9a6d61d531a77f41b9e94492d0db1f32570f6d471fa9f8cb0816630d SHA512 2a9d31b9de52123941fd650123a483f4dc0757edda304da994353b5f3167bddbb25fa1ed8fededcf859c5d07b65b9c2d5185000949002a68dcae1e7bf0f1547d
 DIST img2pdf-0.4.0.tar.gz 107027 BLAKE2B 0bf13e2d4a5aff68779130bc14100a5c6d1ac4eaca9da28ceb50104550b6e4331f6a2202514bcdac0480c0148794d18e9f2dd46ded68bbaa301a207460f91c85 SHA512 bab9ee6ef5273a686cb10e52bdeb62b6df3c0da99d0f0558677e07dc7ad776c2d62829a2f5e9c5639acfb9fc6e9c5e3a81aed42dc288c2a39d245775f1d4391b
+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

diff --git a/media-gfx/img2pdf/img2pdf-0.4.1-r1.ebuild b/media-gfx/img2pdf/img2pdf-0.4.1-r1.ebuild
new file mode 100644
index 00000000000..443efdfa6bd
--- /dev/null
+++ b/media-gfx/img2pdf/img2pdf-0.4.1-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2021 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
+	https://dev.gentoo.org/~sbraz/${P}-imagemagick-7-tests.patch.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/poppler
+		dev-python/numpy[${PYTHON_USEDEP}]
+		dev-python/pdfrw[${PYTHON_USEDEP}]
+		dev-python/pytest-xdist[${PYTHON_USEDEP}]
+		dev-python/scipy[${PYTHON_USEDEP}]
+		media-gfx/imagemagick[jpeg,jpeg2k,png,q8,q32,tiff]
+		media-libs/exiftool
+		media-libs/netpbm
+	)
+"
+RDEPEND="
+	dev-python/pikepdf[${PYTHON_USEDEP}]
+	dev-python/pillow[${PYTHON_USEDEP}]
+	gui? ( $(python_gen_impl_dep tk) )
+"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+	# Backport: commits from 853a1ec3634961ec1ebd5a06771d2770037ea802
+	# up to 152f6fb629581ab2f45a3b520f9468e99b0bc6b8
+	"${WORKDIR}/${P}-imagemagick-7-tests.patch"
+)
+
+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
+}


             reply	other threads:[~2021-08-22  1:13 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-22  1:13 Louis Sautier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-11 15:24 [gentoo-commits] repo/gentoo:master commit in: media-gfx/img2pdf/ Arthur Zamarin
2024-06-04  5:41 Michał Górny
2024-06-04  5:41 Michał Górny
2024-06-03 18:09 Florian Schmaus
2023-04-29 11:55 Arthur Zamarin
2023-04-14  6:49 Joonas Niilola
2023-04-14  5:59 Joonas Niilola
2023-04-13 21:15 Florian Schmaus
2023-04-13 20:57 Florian Schmaus
2023-04-13 20:57 Florian Schmaus
2023-03-16 18:52 Michał Górny
2022-12-16  8:08 Andreas Sturmlechner
2022-11-20 19:37 Arthur Zamarin
2022-08-26 12:04 Sam James
2022-07-15  8:38 Joonas Niilola
2022-07-15  8:38 Joonas Niilola
2022-04-17 19:00 Sam James
2022-02-08 16:46 Andrey Grozin
2022-02-06 11:18 Jonas Stein
2021-08-22 16:44 Louis Sautier
2021-08-22 12:22 Louis Sautier
2021-08-22 11:04 Louis Sautier
2021-08-22  1:13 Louis Sautier
2021-05-23 16:34 Michał Górny
2021-02-10 14:55 Sam James
2021-01-28  6:42 Joonas Niilola
2021-01-28  6:42 Joonas Niilola
2020-10-07  0:31 Sam James
2020-06-17 17:00 Joonas Niilola
2020-04-23  6:01 Michał Górny
2020-04-23  6:01 Michał Górny
2020-04-23  6:01 Michał Górny
2019-02-03 14:08 Andreas Sturmlechner
2019-02-03 14:08 Andreas Sturmlechner
2018-10-06 21:23 Michał Górny
2017-07-30 18:21 David Seifert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1629594761.ee9d36f9f57d7337972a5c61c37683d33e5b66d5.sbraz@gentoo \
    --to=sbraz@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox