commit:     0cacee1583b5ce3242382647669078899d6c1370
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Sun Feb  2 07:33:35 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Feb  2 20:45:08 2025 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=0cacee15

kde-frameworks/*: switch to xdg.eclass as ecm no longer provides it

In Frameworks packages, KFMIN is derived from PV, which means for >=6.9.0,
pkg_postinst and pkg_postrm phase functions are no longer exported.

Amends a0ef7f4ec0401eed8dd31ec1b4ce6a153c91a7eb

Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Closes: https://github.com/gentoo/kde/pull/1027
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-frameworks/kcoreaddons/kcoreaddons-9999.ebuild | 14 ++------------
 kde-frameworks/kio/kio-9999.ebuild                 | 14 ++------------
 kde-frameworks/purpose/purpose-9999.ebuild         | 11 +++--------
 3 files changed, 7 insertions(+), 32 deletions(-)

diff --git a/kde-frameworks/kcoreaddons/kcoreaddons-9999.ebuild 
b/kde-frameworks/kcoreaddons/kcoreaddons-9999.ebuild
index b4775c5bf1..f6b69d886d 100644
--- a/kde-frameworks/kcoreaddons/kcoreaddons-9999.ebuild
+++ b/kde-frameworks/kcoreaddons/kcoreaddons-9999.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 ECM_PYTHON_BINDINGS="off"
 QTMIN=6.7.2
-inherit ecm frameworks.kde.org xdg-utils
+inherit ecm frameworks.kde.org xdg
 
 DESCRIPTION="Framework for solving common problems such as caching, 
randomisation, and more"
 
@@ -48,13 +48,3 @@ src_test() {
        # bug 619656
        ecm_src_test -j1
 }
-
-pkg_postinst() {
-       ecm_pkg_postinst
-       xdg_mimeinfo_database_update
-}
-
-pkg_postrm() {
-       ecm_pkg_postrm
-       xdg_mimeinfo_database_update
-}

diff --git a/kde-frameworks/kio/kio-9999.ebuild 
b/kde-frameworks/kio/kio-9999.ebuild
index 129ca7ea72..5847aca944 100644
--- a/kde-frameworks/kio/kio-9999.ebuild
+++ b/kde-frameworks/kio/kio-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -8,7 +8,7 @@ ECM_HANDBOOK="optional"
 ECM_HANDBOOK_DIR="docs"
 ECM_TEST="forceoptional"
 QTMIN=6.7.2
-inherit ecm frameworks.kde.org xdg-utils
+inherit ecm frameworks.kde.org xdg
 
 DESCRIPTION="Framework providing transparent file and data management"
 
@@ -83,13 +83,3 @@ src_configure() {
 
        ecm_src_configure
 }
-
-pkg_postinst() {
-       ecm_pkg_postinst
-       xdg_desktop_database_update
-}
-
-pkg_postrm() {
-       ecm_pkg_postrm
-       xdg_desktop_database_update
-}

diff --git a/kde-frameworks/purpose/purpose-9999.ebuild 
b/kde-frameworks/purpose/purpose-9999.ebuild
index abff88a4bd..3783549f91 100644
--- a/kde-frameworks/purpose/purpose-9999.ebuild
+++ b/kde-frameworks/purpose/purpose-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -6,7 +6,7 @@ EAPI=8
 ECM_QTHELP="false"
 ECM_TEST="forceoptional"
 QTMIN=6.7.2
-inherit ecm frameworks.kde.org optfeature xdg-utils
+inherit ecm frameworks.kde.org optfeature xdg
 
 DESCRIPTION="Library for providing abstractions to get the developer's 
purposes fulfilled"
 
@@ -70,10 +70,5 @@ pkg_postinst() {
        if [[ -z "${REPLACING_VERSIONS}" ]]; then
                optfeature "Send through KDE Connect" kde-misc/kdeconnect
        fi
-       ecm_pkg_postinst
-       xdg_icon_cache_update
-}
-
-pkg_postrm() {
-       xdg_icon_cache_update
+       xdg_pkg_postinst
 }

Reply via email to