commit:     617b4e195fc8e3b2bd6a8c19077b13a71ca47d90
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 27 10:37:31 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr 27 10:42:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=617b4e19

sys-apps/hwloc: Update XDG icon cache

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-apps/hwloc/hwloc-2.9.3-r1.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/sys-apps/hwloc/hwloc-2.9.3-r1.ebuild 
b/sys-apps/hwloc/hwloc-2.9.3-r1.ebuild
index 4d0252d24ecc..84c0ef23b8f9 100644
--- a/sys-apps/hwloc/hwloc-2.9.3-r1.ebuild
+++ b/sys-apps/hwloc/hwloc-2.9.3-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools bash-completion-r1 cuda desktop flag-o-matic systemd 
toolchain-funcs multilib-minimal
+inherit autotools bash-completion-r1 cuda desktop flag-o-matic systemd 
toolchain-funcs xdg-utils multilib-minimal
 
 MY_PV="v$(ver_cut 1-2)"
 DESCRIPTION="Displays the hardware topology in convenient formats"
@@ -127,3 +127,11 @@ multilib_src_install_all() {
        find "${ED}" -name '*.la' -delete || die
        newicon -s 512 "${DISTDIR}/lstopo.png" ${PN}.png
 }
+
+pkg_postinst() {
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+}

Reply via email to