Commit | Line | Data |
---|---|---|
708d0ceb | 1 | ;;; GNU Guix --- Functional package management for GNU |
56a03975 | 2 | ;;; Copyright © 2013, 2014, 2015, 2017 Ludovic Courtès <ludo@gnu.org> |
0833d0c0 | 3 | ;;; Copyright © 2015, 2016 Alex Kost <alezost@gmail.com> |
8553fe57 EF |
4 | ;;; Copyright © 2016 John Darrington <jmd@gnu.org> |
5 | ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> | |
4cf9f57b | 6 | ;;; Copyright © 2016 Christopher Andersson <christopher@8bits.nu> |
850812de | 7 | ;;; Copyright © 2016 Theodoros Foradis <theodoros.for@openmailbox.org> |
708d0ceb LC |
8 | ;;; |
9 | ;;; This file is part of GNU Guix. | |
10 | ;;; | |
11 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
12 | ;;; under the terms of the GNU General Public License as published by | |
13 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
14 | ;;; your option) any later version. | |
15 | ;;; | |
16 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
17 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 | ;;; GNU General Public License for more details. | |
20 | ;;; | |
21 | ;;; You should have received a copy of the GNU General Public License | |
22 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
23 | ||
1ffa7090 | 24 | (define-module (gnu packages aspell) |
708d0ceb LC |
25 | #:use-module (guix packages) |
26 | #:use-module (guix download) | |
27 | #:use-module (guix build-system gnu) | |
28 | #:use-module (guix licenses) | |
56a03975 | 29 | #:use-module (gnu packages) |
15756a7a | 30 | #:use-module (gnu packages perl) |
ce0614dd | 31 | #:use-module (gnu packages base)) |
708d0ceb LC |
32 | |
33 | (define-public aspell | |
34 | (package | |
35 | (name "aspell") | |
36 | (version "0.60.6.1") | |
37 | (source | |
38 | (origin | |
39 | (method url-fetch) | |
40 | (uri (string-append "mirror://gnu/aspell/aspell-" | |
41 | version ".tar.gz")) | |
42 | (sha256 | |
43 | (base32 | |
56a03975 LC |
44 | "1qgn5psfyhbrnap275xjfrzppf5a83fb67gpql0kfqv37al869gm")) |
45 | (patches (search-patches "aspell-default-dict-dir.patch")))) | |
708d0ceb | 46 | (build-system gnu-build-system) |
81fc64da FB |
47 | (arguments |
48 | `(#:phases | |
49 | (modify-phases %standard-phases | |
50 | (add-after 'install 'wrap-aspell | |
51 | (lambda* (#:key outputs #:allow-other-keys) | |
52 | (let ((bin/aspell (string-append (assoc-ref outputs "out") | |
53 | "/bin/aspell"))) | |
54 | (wrap-program bin/aspell | |
55 | '("ASPELL_CONF" "" = | |
56 | ("${ASPELL_CONF:-\"dict-dir ${GUIX_PROFILE:-$HOME/.guix-profile}/lib/aspell\"}"))))))))) | |
708d0ceb | 57 | (inputs `(("perl" ,perl))) |
56a03975 LC |
58 | |
59 | (native-search-paths | |
60 | ;; This is a Guix-specific environment variable that takes a single | |
61 | ;; entry, not an actual search path. | |
62 | (list (search-path-specification | |
63 | (variable "ASPELL_DICT_DIR") | |
64 | (separator #f) | |
65 | (files '("lib/aspell"))))) | |
66 | ||
708d0ceb | 67 | (home-page "http://aspell.net/") |
f50d2669 | 68 | (synopsis "Spell checker") |
708d0ceb | 69 | (description |
a22dc0c4 LC |
70 | "Aspell is a spell-checker which can be used either as a library or as |
71 | a standalone program. Notable features of Aspell include its full support of | |
72 | documents written in the UTF-8 encoding and its ability to use multiple | |
73 | dictionaries, including personal ones.") | |
708d0ceb | 74 | (license lgpl2.1+))) |
15756a7a | 75 | |
15756a7a LC |
76 | ;;; |
77 | ;;; Dictionaries. | |
78 | ;;; | |
707ee324 | 79 | ;;; Use 'export ASPELL_CONF="dict-dir $HOME/.guix-profile/lib/aspell"' to use |
56a03975 LC |
80 | ;;; them, or set the Guix-specific 'ASPELL_DICT_DIR', or just do nothing (as |
81 | ;;; long as 'HOME' is set, that's fine!). | |
15756a7a LC |
82 | ;;; |
83 | ||
84 | (define* (aspell-dictionary dict-name full-name | |
85 | #:key version sha256 (prefix "aspell6-")) | |
86 | (package | |
87 | (name (string-append "aspell-dict-" dict-name)) | |
88 | (version version) | |
89 | (source (origin | |
90 | (method url-fetch) | |
91 | (uri (string-append "mirror://gnu/aspell/dict/" dict-name | |
92 | "/" prefix dict-name "-" | |
93 | version ".tar.bz2")) | |
94 | (sha256 sha256))) | |
95 | (build-system gnu-build-system) | |
96 | (arguments | |
707ee324 TGR |
97 | `(#:phases |
98 | (modify-phases %standard-phases | |
99 | (replace 'configure | |
100 | (lambda* (#:key outputs #:allow-other-keys) | |
101 | (let ((out (assoc-ref outputs "out"))) | |
102 | (zero? (system* "./configure")))))) | |
103 | #:make-flags | |
104 | (let ((out (assoc-ref %outputs "out"))) | |
105 | (list (string-append "dictdir=" out "/lib/aspell") | |
106 | (string-append "datadir=" out "/lib/aspell"))) | |
107 | #:tests? #f)) | |
15756a7a LC |
108 | (native-inputs `(("aspell" ,aspell) |
109 | ("which" ,which))) | |
110 | (synopsis (string-append full-name " dictionary for GNU Aspell")) ; XXX: i18n | |
111 | (description | |
112 | "This package provides a dictionary for the GNU Aspell spell checker.") | |
113 | (license gpl2+) | |
114 | (home-page "http://aspell.net/"))) | |
115 | ||
116 | ||
06550e07 JD |
117 | (define-public aspell-dict-de |
118 | (aspell-dictionary "de" "German" | |
119 | #:version "20030222-1" | |
120 | #:sha256 | |
121 | (base32 | |
122 | "01p92qj66cqb346gk7hjfynaap5sbcn85xz07kjfdq623ghr8v5s"))) | |
123 | ||
15756a7a LC |
124 | (define-public aspell-dict-en |
125 | (aspell-dictionary "en" "English" | |
3e757c00 | 126 | #:version "2016.11.20-0" |
15756a7a LC |
127 | #:sha256 |
128 | (base32 | |
3e757c00 | 129 | "1496jnhh2jvhkzcj0p4vy89bcs4g5wz6a76m33vw4dhchn5xm9jw"))) |
15756a7a LC |
130 | |
131 | (define-public aspell-dict-eo | |
132 | (aspell-dictionary "eo" "Esperanto" | |
133 | #:version "2.1.20000225a-2" | |
134 | #:sha256 | |
135 | (base32 | |
136 | "09vf0mbiicbmyb4bwb7v7lgpabnylg0wy7m3hlhl5rjdda6x3lj1"))) | |
137 | ||
138 | (define-public aspell-dict-es | |
139 | (aspell-dictionary "es" "Spanish" | |
140 | #:version "1.11-2" | |
141 | #:sha256 | |
142 | (base32 | |
143 | "1k5g328ac1hdpp6fsg57d8md6i0aqcwlszp3gbmp5706wyhpydmd"))) | |
144 | ||
145 | (define-public aspell-dict-fr | |
146 | (aspell-dictionary "fr" "French" | |
147 | #:version "0.50-3" | |
148 | #:prefix "aspell-" | |
149 | #:sha256 | |
150 | (base32 | |
151 | "14ffy9mn5jqqpp437kannc3559bfdrpk7r36ljkzjalxa53i0hpr"))) | |
5d9ecd15 AK |
152 | |
153 | (define-public aspell-dict-ru | |
154 | (aspell-dictionary "ru" "Russian" | |
155 | #:version "0.99f7-1" | |
156 | #:sha256 | |
157 | (base32 | |
158 | "0ip6nq43hcr7vvzbv4lwwmlwgfa60hrhsldh9xy3zg2prv6bcaaw"))) | |
3a6a0f60 FB |
159 | |
160 | (define-public aspell-dict-it | |
161 | (aspell-dictionary "it" "Italian" | |
162 | #:version "2.2_20050523-0" | |
163 | #:sha256 | |
164 | (base32 | |
165 | "1gdf7bc1a0kmxsmphdqq8pl01h667mjsj6hihy6kqy14k5qdq69v"))) | |
467c498b JR |
166 | |
167 | (define-public aspell-dict-nl | |
168 | (aspell-dictionary "nl" "Dutch" | |
169 | #:version "0.50-2" | |
170 | #:prefix "aspell-" | |
171 | #:sha256 | |
172 | (base32 | |
173 | "0ffb87yjsh211hllpc4b9khqqrblial4pzi1h9r3v465z1yhn3j4"))) | |
8553fe57 EF |
174 | |
175 | (define-public aspell-dict-he | |
176 | (aspell-dictionary "he" "Hebrew" | |
177 | #:version "1.0-0" | |
178 | #:sha256 | |
179 | (base32 | |
180 | "13bhbghx5b8g0119g3wxd4n8mlf707y41vlf59irxjj0kynankfn"))) | |
4cf9f57b CA |
181 | |
182 | (define-public aspell-dict-sv | |
183 | (aspell-dictionary "sv" "Swedish" | |
184 | #:version "0.51-0" | |
185 | #:prefix "aspell-" | |
186 | #:sha256 | |
187 | (base32 | |
188 | "02jwkjhr32kvyibnyzgx3smbnm576jwdzg3avdf6zxwckhy5fw4v"))) | |
850812de TF |
189 | |
190 | (define-public aspell-dict-el | |
191 | (aspell-dictionary "el" "Greek" | |
192 | #:version "0.08-0" | |
193 | #:prefix "aspell6-" | |
194 | #:sha256 | |
195 | (base32 | |
196 | "1ljcc30zg2v2h3w5h5jr5im41mw8jbsgvvhdd2cii2yzi8d0zxja"))) | |
d36935cd TGR |
197 | |
198 | (define-public aspell-dict-grc | |
199 | (aspell-dictionary "grc" "Ancient Greek" | |
200 | #:version "0.02-0" | |
201 | #:sha256 | |
202 | (base32 | |
203 | "1zxr8958v37v260fkqd4pg37ns5h5kyqm54hn1hg70wq5cz8h512"))) | |
b59af0c0 DP |
204 | |
205 | (define-public aspell-dict-pt-br | |
206 | (aspell-dictionary "pt-br" "Brazilian Portuguese" | |
207 | #:version "20090702-0" | |
208 | #:prefix "aspell6-" | |
209 | #:sha256 | |
210 | (base32 | |
211 | "1y09lx9zf2rnp55r16b2vgj953l3538z1vaqgflg9mdvm555bz3p"))) |