Subject: [PATCH kde-team 06/63] gnu: Add kdbusaddons-6.

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

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

Change-Id: I4e1a0f5870436f5f08738f77dad7aa5fcd1ad2e9
---
 gnu/packages/kde-frameworks.scm | 43 +++++++++++++++++++++++++++------
 1 file changed, 35 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 24a3b6dc7b..6c12faac80 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -764,8 +764,42 @@ (define-public kcoreaddons
     (inputs
      (list qtbase-5))))
 
+(define-public kdbusaddons-6
+  (package
+    (name "kdbusaddons")
+    (version "6.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://kde/stable/frameworks/"
+                    (version-major+minor version) "/"
+                    name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "0h9m8s07zilg7gbjb4gf44nn8b6wynxfz1j38nwp7ffa3z5a88xl"))))
+    (build-system qt-build-system)
+    (native-inputs
+     (list extra-cmake-modules dbus qttools))
+    (inputs (list libxkbcommon))
+    (arguments
+     (list #:qtbase qtbase
+           #:phases
+           #~(modify-phases %standard-phases
+               (replace 'check
+                 (lambda* (#:key tests? #:allow-other-keys)
+                   (when tests?
+                     (invoke "dbus-launch" "ctest")))))))
+    (home-page "https://community.kde.org/Frameworks")
+    (synopsis "Convenience classes for DBus")
+    (description "KDBusAddons provides convenience classes on top of QtDBus,
+as well as an API to create KDED modules.")
+    ;; Some source files mention lgpl2.0+, but the included license is
+    ;; the lgpl2.1. Some source files are under non-copyleft licenses.
+    (license license:lgpl2.1+)))
+
 (define-public kdbusaddons
   (package
+    (inherit kdbusaddons-6)
     (name "kdbusaddons")
     (version "5.114.0")
     (source (origin
@@ -800,14 +834,7 @@ (define-public kdbusaddons
                  (lambda* (#:key tests? #:allow-other-keys)
                    (when tests?
                      (setenv "DBUS_FATAL_WARNINGS" "0")
-                     (invoke "dbus-launch" "ctest")))))))
-    (home-page "https://community.kde.org/Frameworks")
-    (synopsis "Convenience classes for DBus")
-    (description "KDBusAddons provides convenience classes on top of QtDBus,
-as well as an API to create KDED modules.")
-    ;; Some source files mention lgpl2.0+, but the included license is
-    ;; the lgpl2.1. Some source files are under non-copyleft licenses.
-    (license license:lgpl2.1+)))
+                     (invoke "dbus-launch" "ctest")))))))))
 
 (define-public kdnssd
   (package
-- 
2.41.0