gnu: enchant: Update package definition.

* gnu/packages/enchant.scm (enchant): Update package definition.
[build-system]: Change from gnu to glib-or-gtk.
[inputs]: Add hunspell.
[synopsis]: Modify.
[description]: Modify.

Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
Raghav Gururajan 2020-05-30 16:28:25 -04:00 committed by Danny Milosavljevic
parent 655e6a932e
commit 2fd1657ebc
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -81,38 +81,37 @@ dictionaries.")
(package
(name "enchant")
(version "2.2.8")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/AbiWord/enchant/releases"
"/download/v" version "/enchant-"
version ".tar.gz"))
(sha256
(base32
"0m9m564qqwbssvvf7y3dlz1yxzqsjiqy1yd2zsmb3l0d7y2y5df7"))))
(build-system gnu-build-system)
(source
(origin
(method url-fetch)
(uri
(string-append "https://github.com/AbiWord/enchant/releases"
"/download/v" version "/enchant-"
version ".tar.gz"))
(sha256
(base32 "0m9m564qqwbssvvf7y3dlz1yxzqsjiqy1yd2zsmb3l0d7y2y5df7"))))
(build-system glib-or-gtk-build-system)
(arguments
'(#:configure-flags '("--disable-static"
;; Tests require a relocatable build.
"--enable-relocatable")))
(inputs
`(("aspell" ,aspell))) ;; Currently, the only supported backend in Guix
(propagated-inputs ;; is aspell. (This information might be old)
;; Required by enchant.pc.
`(("glib" ,glib)))
'(#:configure-flags
(list
"--disable-static"
;; Tests require a relocatable build.
"--enable-relocatable")))
(native-inputs
`(("glib:bin" ,glib "bin")
("pkg-config" ,pkg-config)
("unittest-cpp" ,unittest-cpp)))
(synopsis "Multi-backend spell-checking library wrapper")
(description
"On the surface, Enchant appears to be a generic spell checking library.
Looking closer, you'll see the Enchant is more-or-less a fancy wrapper around
the dlopen() system call.
Enchant steps in to provide uniformity and conformity on top of these libraries,
and implement certain features that may be lacking in any individual provider
library. Everything should \"just work\" for any and every definition of \"just
working\".")
(inputs
`(("aspell" ,aspell)
("hunspell" ,hunspell)))
(propagated-inputs
`(("glib" ,glib)))
(synopsis "Generic spell checking library and program")
(description "Enchant is a library and command-line program, that wraps a
number of different spelling libraries and programs with a consistent
interface. By using Enchant, you can use a wide range of spelling libraries,
including some specialised for particular languages, without needing to program
to each library's interface.")
(home-page "https://abiword.github.io/enchant/")
(license lgpl2.1+)))