commit:     a344c34078cb83058006be4c22138c8eb2121cf9
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu May 21 09:39:03 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu May 21 09:39:03 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a344c340

app-text/djview: Add missing || die

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-text/djview/djview-4.10.6-r1.ebuild | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/app-text/djview/djview-4.10.6-r1.ebuild 
b/app-text/djview/djview-4.10.6-r1.ebuild
index 6ce9a8fd210..4f963faa98c 100644
--- a/app-text/djview/djview-4.10.6-r1.ebuild
+++ b/app-text/djview/djview-4.10.6-r1.ebuild
@@ -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
 }
 

Reply via email to