gnu: moreutils: Use 'modify-phases'.
* gnu/packages/moreutils.scm (moreutils)[arguments]: Use 'modify-phases'.
This commit is contained in:
parent
0a20f40240
commit
be1e35055b
|
@ -46,18 +46,17 @@
|
||||||
("docbook-xsl" ,docbook-xsl)))
|
("docbook-xsl" ,docbook-xsl)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(alist-replace
|
(modify-phases %standard-phases
|
||||||
'configure
|
(replace 'configure
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(use-modules (srfi srfi-1))
|
(use-modules (srfi srfi-1))
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
(("/usr/share/xml/.*/docbook.xsl")
|
(("/usr/share/xml/.*/docbook.xsl")
|
||||||
(let* ((docbook-xsl (assoc-ref inputs "docbook-xsl"))
|
(let* ((docbook-xsl (assoc-ref inputs "docbook-xsl"))
|
||||||
(files (find-files docbook-xsl "^docbook\\.xsl$")))
|
(files (find-files docbook-xsl "^docbook\\.xsl$")))
|
||||||
(find (lambda (file)
|
(find (lambda (file)
|
||||||
(string-suffix? "/manpages/docbook.xsl" file))
|
(string-suffix? "/manpages/docbook.xsl" file))
|
||||||
files)))))
|
files)))))))
|
||||||
%standard-phases)
|
|
||||||
#:make-flags
|
#:make-flags
|
||||||
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
||||||
"CC=gcc")))
|
"CC=gcc")))
|
||||||
|
|
Loading…
Reference in New Issue