sci-electronics/sigrok-cli: Update icon cache and desktop database
authorSven Wegener <swegener@gentoo.org>
Thu, 22 Nov 2018 18:40:24 +0000 (18:40 +0000)
committerSven Wegener <swegener@gentoo.org>
Thu, 22 Nov 2018 18:40:24 +0000 (18:40 +0000)
Signed-off-by: Sven Wegener <swegener@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

sci-electronics/sigrok-cli/sigrok-cli-0.7.1.ebuild
sci-electronics/sigrok-cli/sigrok-cli-9999.ebuild

index b94222c62b51479a84165052375375f3fa53d680..553ed7bf8c6167ec0f60a2f40b6adf0cd29a24a5 100644 (file)
@@ -5,7 +5,7 @@ EAPI="6"
 
 PYTHON_COMPAT=( python3_{4,5,6} )
 
-inherit python-single-r1
+inherit gnome2-utils python-single-r1 xdg-utils
 
 if [[ ${PV} == "9999" ]]; then
        EGIT_REPO_URI="git://sigrok.org/${PN}"
@@ -40,3 +40,13 @@ src_prepare() {
 src_configure() {
        econf $(use_with decode libsigrokdecode)
 }
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}
index 05ed1f40fa7a0b76a62756473c410426be1d74c1..553ed7bf8c6167ec0f60a2f40b6adf0cd29a24a5 100644 (file)
@@ -1,11 +1,11 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
 
 PYTHON_COMPAT=( python3_{4,5,6} )
 
-inherit python-single-r1
+inherit gnome2-utils python-single-r1 xdg-utils
 
 if [[ ${PV} == "9999" ]]; then
        EGIT_REPO_URI="git://sigrok.org/${PN}"
@@ -40,3 +40,13 @@ src_prepare() {
 src_configure() {
        econf $(use_with decode libsigrokdecode)
 }
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}