gnu: aspell-dictionary: Use ‘modify-phases’ syntax.
* gnu/packages/aspell.scm (aspell-dictionary)[arguments]: Use ‘modify-phases’.
This commit is contained in:
parent
f87b8e25c3
commit
707ee32471
|
@ -66,7 +66,8 @@ dictionaries, including personal ones.")
|
||||||
;;;
|
;;;
|
||||||
;;; Dictionaries.
|
;;; Dictionaries.
|
||||||
;;;
|
;;;
|
||||||
;;; Use 'export ASPELL_CONF="dict-dir $HOME/.guix-profile/lib/aspell"' to use them.
|
;;; Use 'export ASPELL_CONF="dict-dir $HOME/.guix-profile/lib/aspell"' to use
|
||||||
|
;;; them.
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
(define* (aspell-dictionary dict-name full-name
|
(define* (aspell-dictionary dict-name full-name
|
||||||
|
@ -82,16 +83,17 @@ dictionaries, including personal ones.")
|
||||||
(sha256 sha256)))
|
(sha256 sha256)))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (alist-replace
|
`(#:phases
|
||||||
'configure
|
(modify-phases %standard-phases
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(replace 'configure
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(zero? (system* "./configure"))))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
%standard-phases)
|
(zero? (system* "./configure"))))))
|
||||||
#:make-flags (let ((out (assoc-ref %outputs "out")))
|
#:make-flags
|
||||||
(list (string-append "dictdir=" out "/lib/aspell")
|
(let ((out (assoc-ref %outputs "out")))
|
||||||
(string-append "datadir=" out "/lib/aspell")))
|
(list (string-append "dictdir=" out "/lib/aspell")
|
||||||
#:tests? #f))
|
(string-append "datadir=" out "/lib/aspell")))
|
||||||
|
#:tests? #f))
|
||||||
(native-inputs `(("aspell" ,aspell)
|
(native-inputs `(("aspell" ,aspell)
|
||||||
("which" ,which)))
|
("which" ,which)))
|
||||||
(synopsis (string-append full-name " dictionary for GNU Aspell")) ; XXX: i18n
|
(synopsis (string-append full-name " dictionary for GNU Aspell")) ; XXX: i18n
|
||||||
|
|
Loading…
Reference in New Issue