diff options
author | Joonas Niilola <juippis@gentoo.org> | 2021-01-28 08:42:25 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-01-28 08:42:25 +0200 |
commit | c333500a4cf85d5fca7b03428beafc180bd3bc04 (patch) | |
tree | ea825c98171a050e5e29fc26267f43a5505b4bcf /media-gfx/img2pdf | |
parent | media-gfx/img2pdf: version bump to 0.4.0 (diff) | |
download | gentoo-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/img2pdf')
-rw-r--r-- | media-gfx/img2pdf/img2pdf-0.4.0.ebuild | 8 |
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() { |