app-text/djview: Add missing || die
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 21 May 2020 09:39:03 +0000 (11:39 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 21 May 2020 09:39:03 +0000 (11:39 +0200)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
app-text/djview/djview-4.10.6-r1.ebuild

index 6ce9a8fd210963bbd978b25f51c4cccedc59a160..4f963faa98c127abd76b829d53d61bebb0c99a10 100644 (file)
@@ -38,7 +38,7 @@ src_prepare() {
        # Force XEmbed instead of Xt-based mainloop (disable Xt autodep)
        sed -e 's:\(ac_xt=\)yes:\1no:' -i configure* || die
        sed 's/AC_CXX_OPTIMIZE/OPTS=;AC_SUBST(OPTS)/' -i configure.ac || die #263688
-       rm aclocal.m4 config/{libtool.m4,install-sh,ltmain.sh,lt*.m4}
+       rm aclocal.m4 config/{libtool.m4,install-sh,ltmain.sh,lt*.m4} || die
        AT_M4DIR="config" eautoreconf
 }
 
@@ -64,14 +64,14 @@ src_install() {
 
        einstalldocs
 
-       cd desktopfiles
        insinto /usr/share/icons/hicolor/32x32/apps
-       newins prebuilt-hi32-djview4.png djvulibre-djview4.png
+       newins desktopfiles/prebuilt-hi32-djview4.png djvulibre-djview4.png
        insinto /usr/share/icons/hicolor/64x64/apps
-       newins prebuilt-hi64-djview4.png djvulibre-djview4.png
+       newins desktopfiles/prebuilt-hi64-djview4.png djvulibre-djview4.png
        insinto /usr/share/icons/hicolor/scalable/apps
-       newins djview.svg djvulibre-djview4.svg
-       sed -i -e 's/Exec=djview4/Exec=djview/' djvulibre-djview4.desktop
+       newins desktopfiles/djview.svg djvulibre-djview4.svg
+       sed -e 's/Exec=djview4/Exec=djview/' \
+               -i desktopfiles/djvulibre-djview4.desktop || die
        domenu djvulibre-djview4.desktop
 }