Subject: [bug#70395] [PATCH kde-team 54/63] gnu: Add kirigami-6.

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

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

Change-Id: Ie66574fecd1a40209f3ad55af1f63f841bfe27b0
---
 gnu/packages/kde-frameworks.scm | 39 ++++++++++++++++++++++++++-------
 1 file changed, 31 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 5cdfe68589..897a866aaf 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -1228,10 +1228,40 @@ (define-public kidletime
      (list libxscrnsaver ; X-Screensaver based poller, fallback mode
            qtbase-5 qtx11extras))))
 
+(define-public kirigami-6
+  (package
+    (name "kirigami")
+    (version "6.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://kde/stable/frameworks/"
+                    (version-major+minor version) "/"
+                    "kirigami-" version ".tar.xz"))
+              (sha256
+               (base32
+                "15kic2j2sq623pvm9sz5nigqwqvq6znhy0wwaxx89y3cdcc3hm1a"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     (list extra-cmake-modules qttools))
+    (inputs
+     (list kwindowsystem-6
+           qtshadertools
+           qtbase
+           qtdeclarative
+           qtsvg))
+    (home-page "https://community.kde.org/Frameworks")
+    (synopsis "QtQuick components for mobile user interfaces")
+    (description "Kirigami is a set of high level QtQuick components looking
+and feeling well on both mobile and desktop devices.  They ease the creation
+of applications that follow the Kirigami Human Interface Guidelines.")
+    (license license:lgpl2.1+)))
+
 (define-public kirigami
   ;; Kirigami is listed as tier 1 framework, but optionally includes
   ;; plasma-framework which is tier 3.
   (package
+    (inherit kirigami-6)
     (name "kirigami")
     (version "5.114.0")
     (source (origin
@@ -1243,8 +1273,6 @@ (define-public kirigami
               (sha256
                (base32
                 "1bd232gs4394fa3aq31mjqrn8f3vjsghx7817szi7ryvnn6fnqkw"))))
-    (properties `((upstream-name . "kirigami2")))
-    (build-system cmake-build-system)
     (native-inputs
      (list extra-cmake-modules qttools-5))
     (inputs
@@ -1258,12 +1286,7 @@ (define-public kirigami
            qtsvg-5
            ;; Run-time dependency
            qtgraphicaleffects))
-    (home-page "https://community.kde.org/Frameworks")
-    (synopsis "QtQuick components for mobile user interfaces")
-    (description "Kirigami is a set of high level QtQuick components looking
-and feeling well on both mobile and desktop devices.  They ease the creation
-of applications that follow the Kirigami Human Interface Guidelines.")
-    (license license:lgpl2.1+)))
+    (properties `((upstream-name . "kirigami2")))))
 
 (define-public kitemmodels-6
   (package
-- 
2.41.0