games-action/barrage: add missing gnome2-utils
authorMarty E. Plummer <hanetzer@startmail.com>
Wed, 1 Aug 2018 08:51:36 +0000 (03:51 -0500)
committerMichał Górny <mgorny@gentoo.org>
Wed, 15 Aug 2018 10:32:49 +0000 (12:32 +0200)
ebuild exhibits qa issues due to installing icons without updating the
icon cache.

Package-Manager: Portage-2.3.44, Repoman-2.3.10

games-action/barrage/barrage-1.0.4-r1.ebuild

index 8bf934170cb157e4548a6d883d54436219883f6e..3f7e63b9a76e86fb41207b2947b25fab1bf3894f 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit desktop
+inherit desktop gnome2-utils
 
 DESCRIPTION="A violent point-and-click shooting game"
 HOMEPAGE="http://lgames.sourceforge.net/Barrage/"
@@ -26,3 +26,11 @@ src_install() {
        make_desktop_entry ${PN} Barrage
        rm "${ED%/}"/usr/share/applications/${PN}.desktop || die
 }
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+}