summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2022-01-14 18:24:02 +0100
committerFlorian Schmaus <flow@gentoo.org>2022-01-14 18:24:22 +0100
commit0f85af9e53787fee0a45049ae32c9934d2328bc1 (patch)
tree2662cb0f2da79dd9fcc67666f34bcab884755c09 /x11-libs
parentx11-libs/gtkdatabox: remove unnecessary, due EAPI 8, --disable-static (diff)
downloadgentoo-0f85af9e53787fee0a45049ae32c9934d2328bc1.tar.gz
gentoo-0f85af9e53787fee0a45049ae32c9934d2328bc1.tar.bz2
gentoo-0f85af9e53787fee0a45049ae32c9934d2328bc1.zip
x11-libs/gtkdatabox: update XDG icon cache if necessary
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'x11-libs')
-rw-r--r--x11-libs/gtkdatabox/gtkdatabox-1.0.0-r1.ebuild (renamed from x11-libs/gtkdatabox/gtkdatabox-1.0.0.ebuild)16
1 files changed, 16 insertions, 0 deletions
diff --git a/x11-libs/gtkdatabox/gtkdatabox-1.0.0.ebuild b/x11-libs/gtkdatabox/gtkdatabox-1.0.0-r1.ebuild
index 3f9a8d020d23..e99b9d199435 100644
--- a/x11-libs/gtkdatabox/gtkdatabox-1.0.0.ebuild
+++ b/x11-libs/gtkdatabox/gtkdatabox-1.0.0-r1.ebuild
@@ -3,6 +3,8 @@
EAPI=8
+inherit xdg-utils
+
DESCRIPTION="Gtk+ Widgets for live display of large amounts of fluctuating numerical data"
HOMEPAGE="https://sourceforge.net/projects/gtkdatabox/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
@@ -54,3 +56,17 @@ src_install() {
dodoc "${S}"/examples/*
fi
}
+
+maybe_update_xdg_icon_cache() {
+ if use glade; then
+ xdg_icon_cache_update
+ fi
+}
+
+pkg_postinst() {
+ maybe_update_xdg_icon_cache
+}
+
+pkg_postrm() {
+ maybe_update_xdg_icon_cache
+}