Subject: [PATCH gnome-team 5/6] gnu: Add libspelling.

From: Liliana Marie Prikler <[email-masked]>
Date: Sat, 28 Dec 2024 21:34:59 +0100

* gnu/packages/gnome.scm (libspelling): New variable.
---
 gnu/packages/gnome.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index fea67718c37..f3568350f79 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -13612,6 +13612,40 @@ (define-public sysprof-3.44
                             (("gtk-update-icon-cache") "true")
                             (("update-desktop-database") "true"))))))))))
 
+(define-public libspelling
+  (package
+    (name "libspelling")
+    (version "0.4.5")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://gitlab.gnome.org/GNOME/libspelling")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32 "030s821sb9rsr1ysl79x7id1bsin9idy8z7p85qr9cvw1w3f2s7r"))))
+    (build-system meson-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (add-before 'check 'setup-home
+                 (lambda _
+                   ;; Tests require a writable HOME.
+                   (setenv "HOME" (getcwd)))))))
+    (inputs (list enchant gtk gtksourceview sysprof))
+    (native-inputs
+     (list gobject-introspection
+           gi-docgen
+           pkg-config
+           vala
+           ;; For testing
+           aspell aspell-dict-en))
+    (home-page "https://gitlab.gnome.org/GNOME/libspelling/")
+    (synopsis "Spell-checking library for GTK 4")
+    (description "This package provides a spell-checker for
+GtkTextView widgets.")
+    (license license:lgpl2.1+)))
+
 (define-public gnome-builder
   (package
     (name "gnome-builder")
-- 
2.46.0