sci-libs/libsigrok: Update icon cache and mime database
authorSven Wegener <swegener@gentoo.org>
Thu, 11 Oct 2018 07:11:44 +0000 (07:11 +0000)
committerSven Wegener <swegener@gentoo.org>
Thu, 11 Oct 2018 07:13:17 +0000 (07:13 +0000)
Signed-off-by: Sven Wegener <swegener@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

sci-libs/libsigrok/libsigrok-0.5.0.ebuild
sci-libs/libsigrok/libsigrok-9999.ebuild

index 2119698af8f77a542c198f232669c437b489be05..66e5bbfb8146c94c5106fdcdfc65069fd6fbb314 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=( python{2_7,3_{4,5,6}} )
 
-inherit eutils python-single-r1 java-pkg-opt-2
+inherit eutils gnome2-utils python-single-r1 java-pkg-opt-2 xdg-utils
 
 if [[ ${PV} == "9999" ]]; then
        EGIT_REPO_URI="git://sigrok.org/${PN}"
@@ -80,3 +80,13 @@ src_install() {
        default
        prune_libtool_files
 }
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}
index c3a463fbec8a0922a7d35b68e9d22fcf6d811832..ef12e1f2792432c53309461941ad35351c612186 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=( python{2_7,3_{4,5,6}} )
 
-inherit eutils python-single-r1 java-pkg-opt-2
+inherit eutils gnome2-utils python-single-r1 java-pkg-opt-2 xdg-utils
 
 if [[ ${PV} == "9999" ]]; then
        EGIT_REPO_URI="git://sigrok.org/${PN}"
@@ -80,3 +80,13 @@ src_install() {
        default
        prune_libtool_files
 }
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}