sci-misc/boinc: Update icon cache if icons are installed/removed
authorSven Eden <yamakuzure@gmx.net>
Mon, 25 Dec 2017 11:06:31 +0000 (12:06 +0100)
committerMart Raudsepp <leio@gentoo.org>
Wed, 27 Dec 2017 11:56:12 +0000 (13:56 +0200)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sci-misc/boinc/boinc-7.8.4.ebuild

index 3c1024ee2da2ac5d5dcd89945cae42f518c5cfbf..b1ddba69aff01fc9a3ba62829b7e9b5acda1193c 100644 (file)
@@ -136,6 +136,8 @@ src_install() {
 }
 
 pkg_preinst() {
+       gnome2_icon_savelist
+
        enewgroup ${PN}
        # note this works only for first install so we have to
        # elog user about the need of being in video group
@@ -147,7 +149,9 @@ pkg_preinst() {
 }
 
 pkg_postinst() {
-       gnome2_icon_cache_update
+       if [[ -n ${GNOME2_ECLASS_ICONS} ]]; then
+               gnome2_icon_cache_update
+       fi
 
        elog
        elog "You are using the source compiled version of boinc."
@@ -185,5 +189,7 @@ pkg_postinst() {
 }
 
 pkg_postrm() {
-       gnome2_icon_cache_update
+       if [[ -n ${GNOME2_ECLASS_ICONS} ]]; then
+               gnome2_icon_cache_update
+       fi
 }