Subject: [bug#70395] [PATCH kde-team 56/63] gnu: Add modemmanager-qt-6.

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

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

Change-Id: I3e873ee7702962475470dc3c327370dcfc8b5776
---
 gnu/packages/kde-frameworks.scm | 31 +++++++++++++++++++++++++++----
 1 file changed, 27 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 35fe5a0004..c50404c991 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -1744,10 +1744,10 @@ (define-public kwindowsystem
            xcb-util-keysyms
            xcb-util-wm))))
 
-(define-public modemmanager-qt
+(define-public modemmanager-qt-6
   (package
     (name "modemmanager-qt")
-    (version "5.114.0")
+    (version "6.1.0")
     (source (origin
               (method url-fetch)
               (uri (string-append
@@ -1756,7 +1756,7 @@ (define-public modemmanager-qt
                     name "-" version ".tar.xz"))
               (sha256
                (base32
-                "16jqhmcpsffl9a7c0bb4hwjy3bw5rakdsnc5n6y8djc6237jl9pi"))))
+                "0w29bzmqb3fl7kws4lm9wrl76aw4y67783y6sij8l341ppsswfw5"))))
     (build-system cmake-build-system)
     (native-inputs
      (list extra-cmake-modules dbus pkg-config))
@@ -1764,7 +1764,7 @@ (define-public modemmanager-qt
      ;; Headers contain #include <ModemManager/ModemManager.h>
      (list modem-manager))
     (inputs
-     (list qtbase-5))
+     (list qtbase))
     (arguments
      (list #:phases #~(modify-phases %standard-phases
                         (replace 'check
@@ -1780,6 +1780,29 @@ (define-public modemmanager-qt
 messages.")
     (license license:lgpl2.1+)))
 
+(define-public modemmanager-qt
+  (package
+    (inherit modemmanager-qt-6)
+    (name "modemmanager-qt")
+    (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
+                "16jqhmcpsffl9a7c0bb4hwjy3bw5rakdsnc5n6y8djc6237jl9pi"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     (list extra-cmake-modules dbus pkg-config))
+    (propagated-inputs
+     ;; Headers contain #include <ModemManager/ModemManager.h>
+     (list modem-manager))
+    (inputs
+     (list qtbase-5))))
+
 (define-public networkmanager-qt-6
   (package
     (name "networkmanager-qt")
-- 
2.41.0