gnu: hunspell-dict-en: Install all affix files.
authorJulien Lepiller <julien@lepiller.eu>
Thu, 20 Aug 2020 23:32:22 +0000 (01:32 +0200)
committerJulien Lepiller <julien@lepiller.eu>
Thu, 20 Aug 2020 23:41:58 +0000 (01:41 +0200)
* gnu/packages/aspell.scm (aspell-word-list): Install affix files
corresponding to installed dictionary files.

gnu/packages/aspell.scm

index 22256f7..daefbd0 100644 (file)
@@ -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))