www-client/otter: Run things in pkg_postinst()/pkg_postrm().
authorJeroen Roovers <jer@gentoo.org>
Mon, 25 Sep 2017 14:46:28 +0000 (16:46 +0200)
committerJeroen Roovers <jer@gentoo.org>
Mon, 25 Sep 2017 14:46:44 +0000 (16:46 +0200)
Package-Manager: Portage-2.3.10, Repoman-2.3.3

www-client/otter/otter-0.9.12.ebuild
www-client/otter/otter-9999.ebuild

index 123171f63030c1f9c82a30892dec49661b778e95..a2e32ebc01dc11db099855ba6484e55ee8d04877 100644 (file)
@@ -2,8 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-
-inherit eutils cmake-utils
+inherit eutils cmake-utils gnome2-utils xdg-utils
 
 DESCRIPTION="Project aiming to recreate classic Opera (12.x) UI using Qt5"
 HOMEPAGE="http://otter-browser.org/"
@@ -60,3 +59,13 @@ src_install() {
        cmake-utils_src_install
        domenu ${PN}-browser.desktop
 }
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}
index fdb1f94ba3ad28b8a68309019664bafde82882c7..012c8341b636d864389f1ff80c35b68471f5b07e 100644 (file)
@@ -2,8 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-
-inherit eutils cmake-utils git-r3
+inherit eutils cmake-utils git-r3 gnome2-utils xdg-utils
 
 DESCRIPTION="Project aiming to recreate classic Opera (12.x) UI using Qt5"
 HOMEPAGE="http://otter-browser.org/"
@@ -51,3 +50,13 @@ src_install() {
        cmake-utils_src_install
        domenu ${PN}-browser.desktop
 }
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}