Subject: [PATCH kde-team 39/63] gnu: Add kauth-6.

From: Zheng Junjie <[email-masked]>
Date: Mon, 15 Apr 2024 20:47:16 +0800

* gnu/packages/kde-frameworks.scm (kauth-6): New variable.
(kauth): Inherit above.

Change-Id: I145f0aef7fa115b71084b8f295f67d9ccdfe55cb
---
 gnu/packages/kde-frameworks.scm | 36 +++++++++++++++++++++++++++------
 1 file changed, 30 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 089ed0f4c3..02d2d0f1d0 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -2191,10 +2191,10 @@ (define-public kactivities
     ;; triple licensed
     (license (list license:gpl2+ license:lgpl2.0+ license:lgpl2.1+))))
 
-(define-public kauth
+(define-public kauth-6
   (package
     (name "kauth")
-    (version "5.114.0")
+    (version "6.1.0")
     (source (origin
               (method url-fetch)
               (uri (string-append
@@ -2203,12 +2203,13 @@ (define-public kauth
                     name "-" version ".tar.xz"))
               (sha256
                (base32
-                "1rkf9mc9718wn8pzd3d3wcg3lsn0vkr9a2cqnz86rbg3cf2qdbir"))))
+                "12zhjawv4z5b36kgbahz0hlb06wr772vcw5kkb69hl4041081rs7"))))
     (build-system cmake-build-system)
     (native-inputs
-     (list dbus extra-cmake-modules qttools-5))
+     (list dbus extra-cmake-modules qttools))
+    (propagated-inputs (list kcoreaddons-6))
     (inputs
-     (list kcoreaddons polkit-qt qtbase-5))
+     (list kwindowsystem-6 polkit-qt6 qtbase))
     (arguments
      (list
       #:phases
@@ -2217,7 +2218,9 @@ (define-public kauth
             (lambda _
               ;; Make packages using kauth put their policy files and helpers
               ;; into their own prefix.
-              (substitute* "KF5AuthConfig.cmake.in"
+              (substitute* #$(string-append "KF" (version-major
+                                                  (package-version this-package))
+                                   "AuthConfig.cmake.in")
                 (("@KAUTH_POLICY_FILES_INSTALL_DIR@")
                  "${KDE_INSTALL_DATADIR}/polkit-1/actions")
                 (("@KAUTH_HELPER_INSTALL_DIR@")
@@ -2236,6 +2239,27 @@ (define-public kauth
 utilities.")
     (license license:lgpl2.1+)))
 
+(define-public kauth
+  (package
+    (inherit kauth-6)
+    (name "kauth")
+    (version "5.114.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://kde/stable/frameworks/"
+                    (version-major+minor version) "/"
+                    name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "1rkf9mc9718wn8pzd3d3wcg3lsn0vkr9a2cqnz86rbg3cf2qdbir"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     (list dbus extra-cmake-modules qttools-5))
+    (inputs
+     (list kcoreaddons polkit-qt qtbase-5))
+    (propagated-inputs '())))
+
 (define-public kcompletion-6
   (package
     (name "kcompletion")
-- 
2.41.0