Subject: [PATCH kde-team 35/63] gnu: Add kunitconversion-6.

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

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

Change-Id: I60b013d30961e8270fa8e33bb327f87a3d3fdb54
---
 gnu/packages/kde-frameworks.scm | 29 ++++++++++++++++++++++++-----
 1 file changed, 24 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 1cc402c8f9..1b1aa1ad7c 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -2894,10 +2894,10 @@ (define-public kpty
      (list kcoreaddons ki18n
            qtbase-5))))
 
-(define-public kunitconversion
+(define-public kunitconversion-6
   (package
     (name "kunitconversion")
-    (version "5.114.0")
+    (version "6.1.0")
     (source (origin
               (method url-fetch)
               (uri (string-append
@@ -2906,13 +2906,13 @@ (define-public kunitconversion
                     name "-" version ".tar.xz"))
               (sha256
                (base32
-                "1qyqvl8fy105zwma5nrkz9zg5932w2f33daw0azhj322iffrm39n"))))
+                "1v1inf8f6dk45qiyba3rk5pgrm5h7h0m3h6f3jrl6f8vskrfcvfz"))))
     (build-system cmake-build-system)
-    (arguments `(#:tests? #f)) ;; Requires network.
     (native-inputs
      (list extra-cmake-modules))
     (inputs
-     (list ki18n qtbase-5))
+     (list ki18n-6 qtbase))
+    (arguments `(#:tests? #f)) ;; Requires network.
     (home-page "https://community.kde.org/Frameworks")
     (synopsis "Converting physical units")
     (description "KUnitConversion provides functions to convert values in
@@ -2921,6 +2921,25 @@ (define-public kunitconversion
 gallons).")
     (license license:lgpl2.1+)))
 
+(define-public kunitconversion
+  (package
+    (inherit kunitconversion-6)
+    (name "kunitconversion")
+    (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
+                "1qyqvl8fy105zwma5nrkz9zg5932w2f33daw0azhj322iffrm39n"))))
+    (native-inputs
+     (list extra-cmake-modules))
+    (inputs
+     (list ki18n qtbase-5))))
+
 (define-public syndication
   (package
     (name "syndication")
-- 
2.41.0