[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
193/401: gnu: gspell: Update package definition.
From: |
guix-commits |
Subject: |
193/401: gnu: gspell: Update package definition. |
Date: |
Tue, 18 Aug 2020 16:21:28 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 803dc1ad991d9b1e2f4560e357f76c033a52447b
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Fri Jul 24 13:49:24 2020 -0400
gnu: gspell: Update package definition.
* gnu/packages/gnome.scm (gspell) [version]: Update to 1.8.3.
[source]<origin>[sha256]: Modify base32.
[patches]: Remove gspell-dash-test.patch.
[outputs]: New output "doc".
[arguments]<#:configure-flags>[--enable-vala]: Remove flag.
[--enable-gtk-doc]: New flag.
[--with-html-dir=]: New flag.
<#:phases>['patch-docbook-xml]: New phase.
['disable-failing-tests]: New phase.
['pre-check]: Modify phase.
[native-inputs]: Add docbook-xml, gettext-minimal and gtk-doc.
[inputs]: Move glib and gtk+ to ...
[propagated-inputs]: ... here.
[synopsis]: Modify.
[description]: Modify.
[license]: Change from gpl2+ to lgpl2.1+.
* gnu/packages/patches/gspell-dash-test.patch: Remove file.
* gnu/local.mk (gspell-dash-test.patch): Remove reference.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/local.mk | 1 -
gnu/packages/gnome.scm | 76 +++++++++++++++++------------
gnu/packages/patches/gspell-dash-test.patch | 22 ---------
3 files changed, 46 insertions(+), 53 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 139026c..5d89f1a 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1081,7 +1081,6 @@ dist_patch_DATA =
\
%D%/packages/patches/grub-efi-fat-serial-number.patch \
%D%/packages/patches/grub-setup-root.patch \
%D%/packages/patches/grub-verifiers-Blocklist-fallout-cleanup.patch \
- %D%/packages/patches/gspell-dash-test.patch \
%D%/packages/patches/guile-1.8-cpp-4.5.patch \
%D%/packages/patches/guile-2.2-skip-oom-test.patch \
%D%/packages/patches/guile-default-utf8.patch \
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 064b600..bbb72f1 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -10521,59 +10521,75 @@ that support the Assistive Technology Service
Provider Interface (AT-SPI).")
(define-public gspell
(package
(name "gspell")
- (version "1.8.2")
- (source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnome/sources/" name "/"
- (version-major+minor version) "/"
- name "-" version ".tar.xz"))
- (sha256
- (base32
- "1miybm1z5cl91i25l7mfqlxhv7j8yy8rcgi0s1bgbb2vm71rb4dv"))
- (patches (search-patches "gspell-dash-test.patch"))))
+ (version "1.8.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri
+ (string-append "mirror://gnome/sources/" name "/"
+ (version-major+minor version) "/"
+ name "-" version ".tar.xz"))
+ (sha256
+ (base32 "1s1dns070pz8dg04ppshdbx1r86n9406vkxcfs8hdghn0bfi9ras"))))
(build-system glib-or-gtk-build-system)
+ (outputs '("out" "doc"))
(arguments
- '(#:configure-flags (list "--enable-vala")
+ `(#:configure-flags
+ (list
+ "--enable-gtk-doc"
+ (string-append "--with-html-dir="
+ (assoc-ref %outputs "doc")
+ "/share/gtk-doc/html"))
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "docs/reference"
+ (substitute* '("gspell-docs.xml.in" "intro.xml.in")
+ (("http://www.oasis-open.org/docbook/xml/4.3/")
+ (string-append (assoc-ref inputs "docbook-xml")
+ "/xml/dtd/docbook/"))))
+ #t))
+ (add-after 'patch-docbook-xml 'disable-failing-tests
+ (lambda _
+ (substitute* "testsuite/test-checker.c"
+ (("g_test_add_func \\(\"/checker/dashes\", test_dashes\\);")
+ ""))
+ #t))
(add-before 'check 'pre-check
(lambda* (#:key inputs #:allow-other-keys)
;; Tests require a running X server.
- (system "Xvfb :1 &")
+ (system "Xvfb :1 +extension GLX &")
(setenv "DISPLAY" ":1")
-
;; For the missing /etc/machine-id.
(setenv "DBUS_FATAL_WARNINGS" "0")
-
;; Allow Enchant and its Aspell backend to find the en_US
;; dictionary.
(setenv "ASPELL_DICT_DIR"
(string-append (assoc-ref inputs "aspell-dict-en")
"/lib/aspell"))
#t)))))
- (inputs
- `(("gtk+" ,gtk+)
- ("glib" ,glib)
- ("iso-codes" ,iso-codes)))
(native-inputs
- `(("glib" ,glib "bin")
+ `(("aspell-dict-en" ,aspell-dict-en)
+ ("docbook-xml" ,docbook-xml-4.3)
+ ("gettext" ,gettext-minimal)
("gobject-introspection" ,gobject-introspection)
+ ("gtk-doc" ,gtk-doc)
("pkg-config" ,pkg-config)
- ("vala" ,vala) ;for VAPI, needed by Geary
+ ("vala" ,vala)
("xmllint" ,libxml2)
-
- ;; For tests.
- ("aspell-dict-en" ,aspell-dict-en)
("xorg-server" ,xorg-server-for-tests)))
+ (inputs
+ `(("iso-codes" ,iso-codes)))
(propagated-inputs
- `(("enchant" ,enchant))) ;enchant.pc is required by gspell-1.pc
+ `(("enchant" ,enchant)
+ ("glib" ,glib)
+ ("gtk+" ,gtk+)))
+ (synopsis "Spell-checking library for GTK+ applications")
+ (description "GSpell provides a flexible API to add spell-checking to a
GTK+
+application.")
(home-page "https://wiki.gnome.org/Projects/gspell")
- (synopsis "GNOME's alternative spell checker")
- (description
- "gspell provides a flexible API to add spell-checking to a GTK+
-application. It provides a GObject API, spell-checking to text entries and
-text views, and buttons to choose the language.")
- (license license:gpl2+)))
+ (license license:lgpl2.1+)))
(define-public gnome-planner
(package
diff --git a/gnu/packages/patches/gspell-dash-test.patch
b/gnu/packages/patches/gspell-dash-test.patch
deleted file mode 100644
index 1c9d77c..0000000
--- a/gnu/packages/patches/gspell-dash-test.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-Somehow, Aspell 0.60.6.1 and aspell-dict-en-2016.11.20-0 don't consider
-this a valid spelling. Skip it.
-
-TODO: Migrate to using hunspell. According to upstream, this bug won't be
fixed.
-See https://bugzilla.gnome.org/show_bug.cgi?id=772406.
---- a/testsuite/test-checker.c 2017-03-24 09:50:50.000000000 -0400
-+++ b/testsuite/test-checker.c 2017-06-15 21:47:07.116173895 -0400
-@@ -105,10 +105,11 @@
- * be considered deprecated, it is better to use hunspell, so WONTFIX.
- * For more details, see:
- * https://bugzilla.gnome.org/show_bug.cgi?id=772406
-+ *
-+ * correctly_spelled = gspell_checker_check_word (checker,
"spell-checking", -1, &error);
-+ * g_assert_no_error (error);
-+ * g_assert (correctly_spelled);
- */
-- correctly_spelled = gspell_checker_check_word (checker,
"spell-checking", -1, &error);
-- g_assert_no_error (error);
-- g_assert (correctly_spelled);
-
- correctly_spelled = gspell_checker_check_word (checker, "nrst-auie",
-1, &error);
- g_assert_no_error (error);
- 214/401: gnu: seed: Fix tests., (continued)
- 214/401: gnu: seed: Fix tests., guix-commits, 2020/08/18
- 66/401: gnu: Add libquicktime., guix-commits, 2020/08/18
- 157/401: gnu: java-jakarta-oro: Update hash., guix-commits, 2020/08/18
- 159/401: gnu: gtkmm-2: Update package definition., guix-commits, 2020/08/18
- 164/401: gnu: evolution-data-server: Update package definition., guix-commits, 2020/08/18
- 166/401: gnu: Add dee., guix-commits, 2020/08/18
- 168/401: gnu: folks: Update package definition., guix-commits, 2020/08/18
- 176/401: gnu: gnome-autoar: Update package definition., guix-commits, 2020/08/18
- 187/401: gnu: gssdp: Update package definition., guix-commits, 2020/08/18
- 189/401: gnu: gupnp-av: Update package definition., guix-commits, 2020/08/18
- 193/401: gnu: gspell: Update package definition.,
guix-commits <=
- 205/401: gnu: libgweather: Update package definition., guix-commits, 2020/08/18
- 207/401: gnu: libhandy: Update package definition., guix-commits, 2020/08/18
- 211/401: gnu: rest: Update package definition., guix-commits, 2020/08/18
- 219/401: gnu: Add dnssec-trigger., guix-commits, 2020/08/18
- 217/401: gnu: Add ldns., guix-commits, 2020/08/18
- 218/401: gnu: libappindicator: Propagate gtk+ and libdbusmenu., guix-commits, 2020/08/18
- 222/401: gnu: network-manager-applet: Update package definition., guix-commits, 2020/08/18
- 227/401: gnu: vte: Update package definition., guix-commits, 2020/08/18
- 232/401: gnu: Add libstemmer., guix-commits, 2020/08/18
- 230/401: gnu: libquvi: Update package definition., guix-commits, 2020/08/18