Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/img2pdf/
Date: Thu, 28 Jan 2021 06:43:01
Message-Id: 1611816145.c333500a4cf85d5fca7b03428beafc180bd3bc04.juippis@gentoo
1 commit: c333500a4cf85d5fca7b03428beafc180bd3bc04
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 28 06:42:25 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 28 06:42:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c333500a
7
8 media-gfx/img2pdf: add missing die to 0.4.0
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 media-gfx/img2pdf/img2pdf-0.4.0.ebuild | 8 ++++++--
13 1 file changed, 6 insertions(+), 2 deletions(-)
14
15 diff --git a/media-gfx/img2pdf/img2pdf-0.4.0.ebuild b/media-gfx/img2pdf/img2pdf-0.4.0.ebuild
16 index eb01f7ad312..aeda8aad1be 100644
17 --- a/media-gfx/img2pdf/img2pdf-0.4.0.ebuild
18 +++ b/media-gfx/img2pdf/img2pdf-0.4.0.ebuild
19 @@ -37,8 +37,12 @@ RDEPEND="dev-python/pikepdf[${PYTHON_USEDEP}]
20 distutils_enable_tests pytest
21
22 src_prepare() {
23 - default
24 - use !gui && sed -i '/gui_scripts/d' setup.py
25 + distutils-r1_python_prepare_all
26 +
27 + # Remove gui executable if there's no demand/support for it.
28 + if ! use gui; then
29 + sed -i '/gui_scripts/d' setup.py || die
30 + fi
31 }
32
33 python_test() {