Subject: [PATCH kde-team 16/63] gnu: Add kitemmodels-6.

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

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

Change-Id: I6532819fe24ef6bf67fb72af4c0ae2e83908ab7f
---
 gnu/packages/kde-frameworks.scm | 30 +++++++++++++++++++++++++-----
 1 file changed, 25 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 768c6b8f00..4ac8ffa1c6 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -1187,10 +1187,10 @@ (define-public kirigami
 of applications that follow the Kirigami Human Interface Guidelines.")
     (license license:lgpl2.1+)))
 
-(define-public kitemmodels
+(define-public kitemmodels-6
   (package
     (name "kitemmodels")
-    (version "5.114.0")
+    (version "6.1.0")
     (source (origin
               (method url-fetch)
               (uri (string-append
@@ -1199,12 +1199,12 @@ (define-public kitemmodels
                     name "-" version ".tar.xz"))
               (sha256
                (base32
-                "1bfmcrbcbrvp2rcaf32vzvarqwp41gn6s4xpf56hnxbwf9kgk1fl"))))
+                "00p3wcsr57mlxx4fka9lvmpf3zsbsl9rbj1ijmn0zw4vyqmd6rsi"))))
     (build-system qt-build-system)
     (native-inputs
      (list extra-cmake-modules))
-    (inputs
-     (list qtbase-5 qtdeclarative-5))
+    (inputs (list qtdeclarative))
+    (arguments (list #:qtbase qtbase))
     (home-page "https://community.kde.org/Frameworks")
     (synopsis "Set of item models extending the Qt model-view framework")
     (description "KItemModels provides the following models:
@@ -1237,6 +1237,26 @@ (define-public kitemmodels
 @end enumerate")
     (license license:lgpl2.1+)))
 
+(define-public kitemmodels
+  (package
+    (inherit kitemmodels-6)
+    (name "kitemmodels")
+    (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
+                "1bfmcrbcbrvp2rcaf32vzvarqwp41gn6s4xpf56hnxbwf9kgk1fl"))))
+    (native-inputs
+     (list extra-cmake-modules))
+    (inputs
+     (list qtdeclarative-5))
+    (arguments '())))
+
 (define-public kitemviews-6
   (package
     (name "kitemviews")
-- 
2.41.0