From 8f63c6f2d3412e985eb919c1f211df38ea93ddee Mon Sep 17 00:00:00 2001 From: Sven Wegener Date: Thu, 22 Nov 2018 18:40:24 +0000 Subject: sci-electronics/sigrok-cli: Update icon cache and desktop database Signed-off-by: Sven Wegener Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- sci-electronics/sigrok-cli/sigrok-cli-0.7.1.ebuild | 12 +++++++++++- sci-electronics/sigrok-cli/sigrok-cli-9999.ebuild | 14 ++++++++++++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/sci-electronics/sigrok-cli/sigrok-cli-0.7.1.ebuild b/sci-electronics/sigrok-cli/sigrok-cli-0.7.1.ebuild index b94222c62b51..553ed7bf8c61 100644 --- a/sci-electronics/sigrok-cli/sigrok-cli-0.7.1.ebuild +++ b/sci-electronics/sigrok-cli/sigrok-cli-0.7.1.ebuild @@ -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 +} diff --git a/sci-electronics/sigrok-cli/sigrok-cli-9999.ebuild b/sci-electronics/sigrok-cli/sigrok-cli-9999.ebuild index 05ed1f40fa7a..553ed7bf8c61 100644 --- a/sci-electronics/sigrok-cli/sigrok-cli-9999.ebuild +++ b/sci-electronics/sigrok-cli/sigrok-cli-9999.ebuild @@ -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 +} -- cgit v1.2.3-65-gdbad