summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2021-01-28 08:42:25 +0200
committerJoonas Niilola <juippis@gentoo.org>2021-01-28 08:42:25 +0200
commitc333500a4cf85d5fca7b03428beafc180bd3bc04 (patch)
treeea825c98171a050e5e29fc26267f43a5505b4bcf /media-gfx
parentmedia-gfx/img2pdf: version bump to 0.4.0 (diff)
downloadgentoo-c333500a4cf85d5fca7b03428beafc180bd3bc04.tar.gz
gentoo-c333500a4cf85d5fca7b03428beafc180bd3bc04.tar.bz2
gentoo-c333500a4cf85d5fca7b03428beafc180bd3bc04.zip
media-gfx/img2pdf: add missing die to 0.4.0
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/img2pdf/img2pdf-0.4.0.ebuild8
1 files 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 eb01f7ad312d..aeda8aad1be4 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() {