From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C950415838C for ; Mon, 22 Jan 2024 08:36:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A368FE29D4; Mon, 22 Jan 2024 08:36:06 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8AE1CE29D4 for ; Mon, 22 Jan 2024 08:36:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B4C5834325F for ; Mon, 22 Jan 2024 08:36:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E255113AA for ; Mon, 22 Jan 2024 08:36:03 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1705912507.35ddb79c65f58a0df3500057f4171dc8b221809a.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/lshw/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/lshw/lshw-02.19.2b_p20220831-r1.ebuild sys-apps/lshw/lshw-02.19.2b_p20220831.ebuild X-VCS-Directories: sys-apps/lshw/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 35ddb79c65f58a0df3500057f4171dc8b221809a X-VCS-Branch: master Date: Mon, 22 Jan 2024 08:36:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ab0a7f9e-8687-4e41-9e13-30390208607b X-Archives-Hash: f63da89df8651628c82de5b291b5a165 commit: 35ddb79c65f58a0df3500057f4171dc8b221809a Author: Sam James gentoo org> AuthorDate: Mon Jan 22 08:34:08 2024 +0000 Commit: Sam James gentoo 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 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 +}