From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 151591584AD for ; Mon, 05 May 2025 09:57:01 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id E68AC343184 for ; Mon, 05 May 2025 09:57:00 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 357111103AD; Mon, 05 May 2025 09:56:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 bobolink.gentoo.org (Postfix) with ESMTPS id 2F4D011036F for ; Mon, 05 May 2025 09:56:56 +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 E820E343153 for ; Mon, 05 May 2025 09:56:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 57F532774 for ; Mon, 05 May 2025 09:56:54 +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: <1746438951.7ed4535017e5adb03e41097b5c97b3d44ea41415.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/gnucash/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-office/gnucash/gnucash-5.10-r1.ebuild X-VCS-Directories: app-office/gnucash/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7ed4535017e5adb03e41097b5c97b3d44ea41415 X-VCS-Branch: master Date: Mon, 05 May 2025 09:56:54 +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: 0b950d56-5155-438e-b0a2-a59470d7f2d3 X-Archives-Hash: 1da2ad740ec609357dbbe3a6feb26073 commit: 7ed4535017e5adb03e41097b5c97b3d44ea41415 Author: Alfred Wingate protonmail com> AuthorDate: Sun May 4 17:49:00 2025 +0000 Commit: Sam James gentoo org> CommitDate: Mon May 5 09:55:51 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ed45350 app-office/gnucash: use xdg and gnome eclasses Otherwise you have to be more mindful with what files the package installs and in what configurations. Closes: https://bugs.gentoo.org/955421 Signed-off-by: Alfred Wingate protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/41935 Signed-off-by: Sam James gentoo.org> app-office/gnucash/gnucash-5.10-r1.ebuild | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/app-office/gnucash/gnucash-5.10-r1.ebuild b/app-office/gnucash/gnucash-5.10-r1.ebuild index 6cd380c4c2e5..3c769a72de22 100644 --- a/app-office/gnucash/gnucash-5.10-r1.ebuild +++ b/app-office/gnucash/gnucash-5.10-r1.ebuild @@ -7,7 +7,7 @@ GUILE_REQ_USE="regex" GUILE_COMPAT=( 2-2 3-0 ) PYTHON_COMPAT=( python3_{10..13} ) -inherit cmake flag-o-matic gnome2-utils guile-single python-single-r1 +inherit cmake flag-o-matic gnome2 guile-single python-single-r1 xdg # Please bump with app-doc/gnucash-docs DESCRIPTION="Personal finance manager" @@ -229,20 +229,17 @@ src_install() { fi } +pkg_preinst() { + gnome2_pkg_preinst + xdg_pkg_preinst +} + pkg_postinst() { - if use gui ; then - xdg_icon_cache_update - gnome2_schemas_update - fi - xdg_desktop_database_update - xdg_mimeinfo_database_update + gnome2_pkg_postinst + xdg_pkg_postinst } pkg_postrm() { - if use gui ; then - xdg_icon_cache_update - gnome2_schemas_update - fi - xdg_desktop_database_update - xdg_mimeinfo_database_update + gnome2_pkg_postrm + xdg_pkg_postrm }