commit: 35ddb79c65f58a0df3500057f4171dc8b221809a
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 22 08:34:08 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan 22 08:35:07 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35ddb79c
sys-apps/lshw: use xdg-utils instead of xdg
This avoids pulling in dev-util/desktop-file-utils, x11-misc/shared-mime-info,
and
dev-libs/glib with USE=-gtk.
We do the same thing for htop too.
Signed-off-by: Sam James <sam <AT> gentoo.org>
...220831.ebuild => lshw-02.19.2b_p20220831-r1.ebuild} | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/sys-apps/lshw/lshw-02.19.2b_p20220831.ebuild
b/sys-apps/lshw/lshw-02.19.2b_p20220831-r1.ebuild
similarity index 88%
rename from sys-apps/lshw/lshw-02.19.2b_p20220831.ebuild
rename to sys-apps/lshw/lshw-02.19.2b_p20220831-r1.ebuild
index c13c4b22e5b7..254bede1f4ad 100644
--- a/sys-apps/lshw/lshw-02.19.2b_p20220831.ebuild
+++ b/sys-apps/lshw/lshw-02.19.2b_p20220831-r1.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PLOCALES="ca es fr"
-inherit desktop flag-o-matic plocale toolchain-funcs xdg
+inherit desktop flag-o-matic plocale toolchain-funcs xdg-utils
MY_COMMIT=42fef565731411a784101de614a54bff79d1858e
MY_PV=$(ver_cut 3 PV/b/B).$(ver_cut 1-3)_$(ver_cut 5-6)
@@ -81,3 +81,17 @@ src_install() {
"${DESCRIPTION}"
fi
}
+
+pkg_postinst() {
+ if use gtk ; then
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ fi
+}
+
+pkg_postrm() {
+ if use gtk ; then
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ fi
+}