mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: moreutils: Use 'modify-phases'.
* gnu/packages/moreutils.scm (moreutils)[arguments]: Use 'modify-phases'.
This commit is contained in:
parent
0a20f40240
commit
be1e35055b
1 changed files with 11 additions and 12 deletions
|
@ -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")))
|
||||
|
|
Loading…
Reference in a new issue