commit:     7ed4535017e5adb03e41097b5c97b3d44ea41415
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Sun May  4 17:49:00 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> 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 <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/41935
Signed-off-by: Sam James <sam <AT> 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
 }

Reply via email to