commit: c333500a4cf85d5fca7b03428beafc180bd3bc04
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 28 06:42:25 2021 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Jan 28 06:42:25 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c333500a
media-gfx/img2pdf: add missing die to 0.4.0
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
media-gfx/img2pdf/img2pdf-0.4.0.ebuild | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/media-gfx/img2pdf/img2pdf-0.4.0.ebuild
b/media-gfx/img2pdf/img2pdf-0.4.0.ebuild
index eb01f7ad312..aeda8aad1be 100644
--- a/media-gfx/img2pdf/img2pdf-0.4.0.ebuild
+++ b/media-gfx/img2pdf/img2pdf-0.4.0.ebuild
@@ -37,8 +37,12 @@ RDEPEND="dev-python/pikepdf[${PYTHON_USEDEP}]
distutils_enable_tests pytest
src_prepare() {
- default
- use !gui && sed -i '/gui_scripts/d' setup.py
+ 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() {