diff options
author | Marius Bakke <mbakke@fastmail.com> | 2019-06-09 00:57:36 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2019-06-09 00:57:36 +0200 |
commit | 69ecd666d73ebc5ee7a0be54f4e24f000d1d7e31 (patch) | |
tree | 80fc467b3129cd302aed02622dd497247a8c5bb0 /gnu/packages/aspell.scm | |
parent | 4bed3b101253e5f82c6423f0eb55b307ec839f53 (diff) | |
parent | c6de5afe5c5da34513ea43b041fead30f28f57d4 (diff) | |
download | guix-69ecd666d73ebc5ee7a0be54f4e24f000d1d7e31.tar.gz |
Merge branch 'master' into staging
Diffstat (limited to 'gnu/packages/aspell.scm')
-rw-r--r-- | gnu/packages/aspell.scm | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gnu/packages/aspell.scm b/gnu/packages/aspell.scm index 1bbe57a4ef..cbc9baeeb3 100644 --- a/gnu/packages/aspell.scm +++ b/gnu/packages/aspell.scm @@ -32,7 +32,8 @@ #:use-module (gnu packages) #:use-module (gnu packages base) #:use-module (gnu packages compression) - #:use-module (gnu packages perl)) + #:use-module (gnu packages perl) + #:use-module (ice-9 match)) (define-public aspell (package @@ -102,7 +103,14 @@ dictionaries, including personal ones.") (define* (aspell-dictionary dict-name full-name #:key version sha256 (prefix "aspell6-")) (package - (name (string-append "aspell-dict-" dict-name)) + (name (string-append + "aspell-dict-" + ;; Downcase and replace underscore in package names + ;; to follow Guix naming conventions. + (string-map (match-lambda + (#\_ #\-) + (chr chr)) + (string-downcase dict-name)))) (version version) (source (origin (method url-fetch) @@ -281,7 +289,7 @@ dictionaries, including personal ones.") "0w2k5l5rbqpliripgqwiqixz5ghnjf7i9ggbrc4ly4vy1ia10rmc"))) (define-public aspell-dict-pt-br - (aspell-dictionary "pt-br" "Brazilian Portuguese" + (aspell-dictionary "pt_BR" "Brazilian Portuguese" #:version "20090702-0" #:prefix "aspell6-" #:sha256 @@ -289,7 +297,7 @@ dictionaries, including personal ones.") "1y09lx9zf2rnp55r16b2vgj953l3538z1vaqgflg9mdvm555bz3p"))) (define-public aspell-dict-pt-pt - (aspell-dictionary "pt-pt" "Portuguese" + (aspell-dictionary "pt_PT" "Portuguese" #:version "20070510-0" #:prefix "aspell6-" #:sha256 |