[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
193/334: gnu: gspell: Update package definition.
From: |
guix-commits |
Subject: |
193/334: gnu: gspell: Update package definition. |
Date: |
Sat, 15 Aug 2020 16:27:04 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit f6a2ace25b1f720baef3cd97917fe8c6d393e63c
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 672a2d1..2b31bd6 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1077,7 +1077,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 6c451a8..04f081a 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -10518,59 +10518,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);
- 169/334: gnu: Add poly2tri-c., (continued)
- 169/334: gnu: Add poly2tri-c., guix-commits, 2020/08/15
- 173/334: gnu: geocode-glib: Update package definition., guix-commits, 2020/08/15
- 176/334: gnu: gnome-autoar: Update package definition., guix-commits, 2020/08/15
- 181/334: gnu: gobject-introspection: Add patches back., guix-commits, 2020/08/15
- 183/334: gnu: gom: Update package definition., guix-commits, 2020/08/15
- 184/334: gnu: grilo: Update package definition., guix-commits, 2020/08/15
- 185/334: gnu: Add pedansee., guix-commits, 2020/08/15
- 187/334: gnu: gssdp: Update package definition., guix-commits, 2020/08/15
- 191/334: gnu: gupnp-dlna: Update package definition., guix-commits, 2020/08/15
- 189/334: gnu: gupnp-av: Update package definition., guix-commits, 2020/08/15
- 193/334: gnu: gspell: Update package definition.,
guix-commits <=
- 196/334: gnu: Add seed., guix-commits, 2020/08/15
- 199/334: gnu: libdazzle: Update package definition., guix-commits, 2020/08/15
- 206/334: gnu: libgxps: Update package definition., guix-commits, 2020/08/15
- 208/334: gnu: libmediaart: Update package definition., guix-commits, 2020/08/15
- 77/334: gnu: Add webrtc-audio-processing., guix-commits, 2020/08/15
- 151/334: gnu: Add cairomm-1.13., guix-commits, 2020/08/15
- 153/334: gnu: Add glibmm-2.64., guix-commits, 2020/08/15
- 164/334: gnu: evolution-data-server: Update package definition., guix-commits, 2020/08/15
- 188/334: gnu: gupnp: Update package definition., guix-commits, 2020/08/15
- 194/334: gnu: gtk-vnc: Update package definition., guix-commits, 2020/08/15