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

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

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

Change-Id: I1b84ee1b4c158b35512dd03931d6c08ed32fdb52
---
 gnu/packages/kde-frameworks.scm | 37 ++++++++++++++++++++++++++-------
 1 file changed, 29 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 97fba6aba4..cbe9eb7ba1 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -1998,10 +1998,10 @@ (define-public solid
     (inputs
      (list qtbase-5 qtdeclarative-5 eudev))))
 
-(define-public sonnet
+(define-public sonnet-6
   (package
     (name "sonnet")
-    (version "5.114.0")
+    (version "6.1.0")
     (source (origin
               (method url-fetch)
               (uri (string-append
@@ -2010,16 +2010,15 @@ (define-public sonnet
                     name "-" version ".tar.xz"))
               (sha256
                (base32
-                "0zxi96i3gfpx759qc1nyz7jqlswg5ivgr1w9gbbsm1x5fi9ikadx"))))
+                "1zpbla0d22sd66vgi6kiqsh8mkck6fklllh8pckx0kxc4r4fng61"))))
     (build-system qt-build-system)
+    (arguments (list #:qtbase qtbase))
     (native-inputs
-     (list extra-cmake-modules pkg-config qttools-5))
+     (list extra-cmake-modules pkg-config qttools))
     (inputs
-     (list aspell
-           hunspell
+     (list aspell hunspell
            ;; TODO: hspell (for Hebrew), Voikko (for Finish)
-           qtdeclarative-5
-           qtbase-5))
+           qtdeclarative))
     (home-page "https://community.kde.org/Frameworks")
     (synopsis "Multi-language spell checker")
     (description "Sonnet is a plugin-based spell checking library for Qt-based
@@ -2027,6 +2026,28 @@ (define-public sonnet
 ASpell and HUNSPELL.")
     (license license:lgpl2.1+)))
 
+(define-public sonnet
+  (package
+    (inherit sonnet-6)
+    (name "sonnet")
+    (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
+                "0zxi96i3gfpx759qc1nyz7jqlswg5ivgr1w9gbbsm1x5fi9ikadx"))))
+    (arguments '())
+    (native-inputs
+     (list extra-cmake-modules pkg-config qttools-5))
+    (inputs
+     (list aspell
+           hunspell
+           qtdeclarative-5))))
+
 (define-public threadweaver
   (package
     (name "threadweaver")
-- 
2.41.0