gnu: moreutils: Use 'modify-phases'.

* gnu/packages/moreutils.scm (moreutils)[arguments]: Use 'modify-phases'.
This commit is contained in:
Efraim Flashner 2016-05-27 07:06:02 +03:00
parent 0a20f40240
commit be1e35055b
No known key found for this signature in database
GPG key ID: F4C1D3917EACEE93

View file

@ -46,18 +46,17 @@ (define-public moreutils
("docbook-xsl" ,docbook-xsl)))
(arguments
`(#:phases
(alist-replace
'configure
(lambda* (#:key inputs #:allow-other-keys)
(use-modules (srfi srfi-1))
(substitute* "Makefile"
(("/usr/share/xml/.*/docbook.xsl")
(let* ((docbook-xsl (assoc-ref inputs "docbook-xsl"))
(files (find-files docbook-xsl "^docbook\\.xsl$")))
(find (lambda (file)
(string-suffix? "/manpages/docbook.xsl" file))
files)))))
%standard-phases)
(modify-phases %standard-phases
(replace 'configure
(lambda* (#:key inputs #:allow-other-keys)
(use-modules (srfi srfi-1))
(substitute* "Makefile"
(("/usr/share/xml/.*/docbook.xsl")
(let* ((docbook-xsl (assoc-ref inputs "docbook-xsl"))
(files (find-files docbook-xsl "^docbook\\.xsl$")))
(find (lambda (file)
(string-suffix? "/manpages/docbook.xsl" file))
files)))))))
#:make-flags
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
"CC=gcc")))