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

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

* gnu/packages/kde-frameworks.scm (ktextwidgets-6): New variable.
(ktextwidgets): Inherit above.
Change-Id: I79ae2650ef8e2acb824daf53ee88c7872d0b00c3

Change-Id: I1f7264746724dc6c03f7bc4f8979768c39e42c9a
---
 gnu/packages/kde-frameworks.scm | 48 +++++++++++++++++++++++++++------
 1 file changed, 40 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index b77c12a613..6e67976f57 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -4240,8 +4240,47 @@ (define-public ktexteditor
     ;; triple licensed
     (license (list license:gpl2+ license:lgpl2.0+ license:lgpl2.1+))))
 
+(define-public ktextwidgets-6
+  (package
+    (name "ktextwidgets")
+    (version "6.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://kde/stable/frameworks/"
+                    (version-major+minor version) "/"
+                    name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "0lv5ddsgzqawbhh718va2plcnfw2pb61v3iypwbwq2cj3ir49kbj"))))
+    (build-system qt-build-system)
+    (propagated-inputs
+     (list ki18n-6 sonnet-6))
+    (native-inputs
+     (list extra-cmake-modules qttools))
+    (inputs
+     (list kauth-6
+           kcodecs-6
+           kcompletion-6
+           kconfig-6
+           kconfigwidgets-6
+           kcoreaddons-6
+           kiconthemes-6
+           kservice-6
+           kwidgetsaddons-6
+           kwindowsystem-6
+           qtbase
+           qtspeech))
+    (home-page "https://community.kde.org/Frameworks")
+    (synopsis "Text editing widgets")
+    (description "KTextWidgets provides widgets for displaying and editing text.
+It supports rich text as well as plain text.")
+    ;; dual licensed
+    (license (list license:lgpl2.0+ license:lgpl2.1+))))
+
 (define-public ktextwidgets
   (package
+    (inherit ktextwidgets-6)
     (name "ktextwidgets")
     (version "5.114.0")
     (source (origin
@@ -4253,7 +4292,6 @@ (define-public ktextwidgets
               (sha256
                (base32
                 "0w1wwyd3fy351rmkhf3i55is5031j2zxvswm0b1sb3pd159v888v"))))
-    (build-system qt-build-system)
     (propagated-inputs
      (list ki18n sonnet))
     (native-inputs
@@ -4270,13 +4308,7 @@ (define-public ktextwidgets
            kwidgetsaddons
            kwindowsystem
            qtbase-5
-           qtspeech-5))
-    (home-page "https://community.kde.org/Frameworks")
-    (synopsis "Text editing widgets")
-    (description "KTextWidgets provides widgets for displaying and editing text.
-It supports rich text as well as plain text.")
-    ;; dual licensed
-    (license (list license:lgpl2.0+ license:lgpl2.1+))))
+           qtspeech-5))))
 
 (define-public kwallet-6
   (package
-- 
2.41.0