sci-geosciences/grass: fix icon location, add die. By wraeth.
authorAmy Winston <amynka@gentoo.org>
Sat, 24 Oct 2015 13:57:24 +0000 (15:57 +0200)
committerAmy Winston <amynka@gentoo.org>
Sat, 24 Oct 2015 13:57:24 +0000 (15:57 +0200)
Package-Manager: portage-2.2.20.1

sci-geosciences/grass/grass-7.0.1-r2.ebuild

index b211da2574a48fd9d6190757bef7db129f16290f..00834479f768ed195c5fa4c968fa400640597216 100644 (file)
@@ -186,7 +186,7 @@ src_install() {
                PREFIX="${D}usr/" \
                install
 
-       pushd "${D}usr/${MY_PM}" &> /dev/null
+       pushd "${D}usr/${MY_PM}" &> /dev/null || die
 
        # fix docs
        dodoc AUTHORS CHANGES
@@ -207,7 +207,7 @@ src_install() {
                mv "${D}usr/share/locale/pt_br" "${D}usr/share/locale/pt_BR" || die
        fi
 
-       popd &> /dev/null
+       popd &> /dev/null || die
 
        # place libraries where they belong
        mv "${D}usr/${MY_PM}/lib/" "${D}usr/$(get_libdir)/" || die
@@ -238,7 +238,7 @@ src_install() {
                local GUI="-gui"
                [[ ${WX_BUILD} == yes ]] && GUI="-wxpython"
                make_desktop_entry "/usr/bin/${MY_PM} ${GUI}" "${PN}" "${PN}-48x48" "Science;Education"
-               doicon gui/icons/${PN}-48x48.png
+               doicon -s 48 gui/icons/${PN}-48x48.png
        fi
 
        # install .pc file so other apps know where to look for grass