sci-electronics/pulseview: Update icon cache and desktop database, bug #635406
authorSven Wegener <swegener@gentoo.org>
Mon, 30 Oct 2017 13:09:58 +0000 (13:09 +0000)
committerSven Wegener <swegener@gentoo.org>
Mon, 30 Oct 2017 13:27:39 +0000 (13:27 +0000)
Package-Manager: Portage-2.3.8, Repoman-2.3.4

sci-electronics/pulseview/pulseview-0.4.0.ebuild
sci-electronics/pulseview/pulseview-9999.ebuild

index e7a4a92ef4c743fa7c15a7bc8259ac27e89d3e7e..0b7e367cae178f3203e698e59dc3ae1a1c5b44d0 100644 (file)
@@ -5,7 +5,7 @@ EAPI="6"
 
 PYTHON_COMPAT=( python3_{4,5,6} )
 
-inherit cmake-utils python-single-r1
+inherit cmake-utils gnome2-utils python-single-r1 xdg-utils
 
 if [[ ${PV} == "9999" ]]; then
        EGIT_REPO_URI="git://sigrok.org/${PN}"
@@ -49,3 +49,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 e7a4a92ef4c743fa7c15a7bc8259ac27e89d3e7e..0b7e367cae178f3203e698e59dc3ae1a1c5b44d0 100644 (file)
@@ -5,7 +5,7 @@ EAPI="6"
 
 PYTHON_COMPAT=( python3_{4,5,6} )
 
-inherit cmake-utils python-single-r1
+inherit cmake-utils gnome2-utils python-single-r1 xdg-utils
 
 if [[ ${PV} == "9999" ]]; then
        EGIT_REPO_URI="git://sigrok.org/${PN}"
@@ -49,3 +49,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
+}