net-im/qtox: add updating icon cache and .desktop database
authorZetok Zalbavar <zetok@openmailbox.org>
Sat, 19 Aug 2017 00:44:11 +0000 (01:44 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 19 Aug 2017 07:31:19 +0000 (09:31 +0200)
Also removed no longer needed toolchain-funcs from inherits.

Closes: https://github.com/gentoo/gentoo/pull/5473
Package-Manager: Portage-2.3.6, Repoman-2.3.1

net-im/qtox/qtox-1.11.0.ebuild
net-im/qtox/qtox-9999.ebuild

index d7cf4a9df23fa799dda619e67a69e41b6c4a0316..2e8bb695264d209a8db1767f5eb6ec2e9be7ef64 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit cmake-utils toolchain-funcs unpacker
+inherit cmake-utils gnome2-utils unpacker xdg-utils
 
 DESCRIPTION="Most feature-rich GUI for net-libs/tox using Qt5"
 HOMEPAGE="https://github.com/qTox/qTox"
@@ -56,3 +56,13 @@ src_configure() {
 
        cmake-utils_src_configure
 }
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}
index cd4bd86f7e952a0d80776171cef152b1163dd1b7..dd9f1a5c502663cae3b3d5d40a032dc51c457bff 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit cmake-utils eutils git-r3
+inherit cmake-utils eutils git-r3 gnome2-utils xdg-utils
 
 DESCRIPTION="Most feature-rich GUI for net-libs/tox using Qt5"
 HOMEPAGE="https://github.com/qTox/qTox"
@@ -53,3 +53,13 @@ src_configure() {
 
        cmake-utils_src_configure
 }
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}