guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: hunspell-dict-en: Install all affix files.


From: guix-commits
Subject: 01/02: gnu: hunspell-dict-en: Install all affix files.
Date: Thu, 20 Aug 2020 19:46:14 -0400 (EDT)

roptat pushed a commit to branch master
in repository guix.

commit 2a29f4767fe2ed5eb89f4a324d987e81e4352f20
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Fri Aug 21 01:32:22 2020 +0200

    gnu: hunspell-dict-en: Install all affix files.
    
    * gnu/packages/aspell.scm (aspell-word-list): Install affix files
    corresponding to installed dictionary files.
---
 gnu/packages/aspell.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/aspell.scm b/gnu/packages/aspell.scm
index 22256f7..daefbd0 100644
--- a/gnu/packages/aspell.scm
+++ b/gnu/packages/aspell.scm
@@ -404,8 +404,12 @@ dictionaries, including personal ones.")
                              (find-files "speller"
                                          ,(string-append language 
".*\\.dic$"))))
 
-               (install-file ,(string-append "speller/" language ".aff")
-                             hunspell)
+               ;; Install affix files corresponding to installed dictionaries
+               (for-each (lambda (dic)
+                           (install-file (string-append
+                                           "speller/" (basename dic ".dic") 
".aff")
+                                         hunspell))
+                         (find-files hunspell ".*\\.dic$"))
                (symlink hunspell (string-append myspell "/dicts"))
                (for-each (lambda (file)
                            (install-file file doc))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]