commit:     0f85af9e53787fee0a45049ae32c9934d2328bc1
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 14 17:24:02 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Jan 14 17:24:22 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f85af9e

x11-libs/gtkdatabox: update XDG icon cache if necessary

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 ...tkdatabox-1.0.0.ebuild => gtkdatabox-1.0.0-r1.ebuild} | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/x11-libs/gtkdatabox/gtkdatabox-1.0.0.ebuild 
b/x11-libs/gtkdatabox/gtkdatabox-1.0.0-r1.ebuild
similarity index 86%
rename from x11-libs/gtkdatabox/gtkdatabox-1.0.0.ebuild
rename to 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
+}

Reply via email to