Subject: [PATCH kde-team 09/63] gnu: Add ki18n-6.

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

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

Change-Id: I6732e56bd4b498b7e10eec55423ceb8cec8daf65
---
 gnu/packages/kde-frameworks.scm | 51 ++++++++++++++++++++++++---------
 1 file changed, 37 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index be84a1c7df..fc0c8983a5 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -976,10 +976,10 @@ (define-public kholidays
     (inputs
      (list qtbase-5 qtdeclarative-5))))
 
-(define-public ki18n
+(define-public ki18n-6
   (package
     (name "ki18n")
-    (version "5.114.0")
+    (version "6.1.0")
     (source (origin
               (method url-fetch)
               (uri (string-append
@@ -988,23 +988,25 @@ (define-public ki18n
                     name "-" version ".tar.xz"))
               (sha256
                (base32
-                "1yg03awcx5ay6lgbgwv91i0ankrm94z9m0wky4v03gnwnvw8pa0v"))))
+                "0j3na5422k387rizb7139n4f3fd8506lmp3dxamagpn9npqijchn"))))
     (build-system cmake-build-system)
     (propagated-inputs
-     (list gettext-minimal python))
+     (list gettext-minimal))
     (native-inputs
-     (list extra-cmake-modules))
+     (list extra-cmake-modules python-minimal tzdata-for-tests))
     (inputs
-     (list qtbase-5 qtdeclarative-5 qtscript iso-codes))
+     (list qtbase qtdeclarative iso-codes))
     (arguments
-     (list #:phases #~(modify-phases %standard-phases
-                        (replace 'check
-                          (lambda* (#:key tests? #:allow-other-keys)
-                            (when tests?
-                              (setenv "HOME"
-                                      (getcwd))
-                              (invoke "ctest" "-E"
-                               "(kcountrytest|kcountrysubdivisiontest)")))))))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (when tests?
+                (setenv "HOME"
+                        (getcwd))
+                (invoke "ctest" "-E"
+                        "(kcountrytest|kcountrysubdivisiontest)")))))))
     (home-page "https://community.kde.org/Frameworks")
     (synopsis "KDE Gettext-based UI text internationalization")
     (description "KI18n provides functionality for internationalizing user
@@ -1018,6 +1020,27 @@ (define-public ki18n
 translation scripting.")
     (license license:lgpl2.1+)))
 
+(define-public ki18n
+  (package
+    (inherit ki18n-6)
+    (name "ki18n")
+    (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
+                "1yg03awcx5ay6lgbgwv91i0ankrm94z9m0wky4v03gnwnvw8pa0v"))))
+    (propagated-inputs
+     (list gettext-minimal python))
+    (native-inputs
+     (list extra-cmake-modules))
+    (inputs
+     (list qtbase-5 qtdeclarative-5 qtscript iso-codes))))
+
 (define-public kidletime
   (package
     (name "kidletime")
-- 
2.41.0