mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: psutils: Use 'modify-phases'.
* gnu/packages/ghostscript.scm (psutils)[arguments]: Use 'modify-phases' syntax.
This commit is contained in:
parent
8c88e0ba8c
commit
530d9e1555
1 changed files with 17 additions and 17 deletions
|
@ -100,23 +100,23 @@ (define-public psutils
|
|||
(arguments
|
||||
`(#:tests? #f ; none provided
|
||||
#:phases
|
||||
(alist-replace
|
||||
'configure
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
|
||||
(let ((perl (assoc-ref inputs "perl"))
|
||||
(out (assoc-ref outputs "out")))
|
||||
(copy-file "Makefile.unix" "Makefile")
|
||||
(substitute* "Makefile"
|
||||
(("/usr/local/bin/perl") (string-append perl "/bin/perl")))
|
||||
(substitute* "Makefile"
|
||||
(("/usr/local") out))
|
||||
;; for the install phase
|
||||
(substitute* "Makefile"
|
||||
(("-mkdir") "mkdir -p"))
|
||||
;; drop installation of non-free files
|
||||
(substitute* "Makefile"
|
||||
((" install.include") ""))))
|
||||
%standard-phases)))
|
||||
(modify-phases %standard-phases
|
||||
(replace 'configure
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
|
||||
(let ((perl (assoc-ref inputs "perl"))
|
||||
(out (assoc-ref outputs "out")))
|
||||
(copy-file "Makefile.unix" "Makefile")
|
||||
(substitute* "Makefile"
|
||||
(("/usr/local/bin/perl") (string-append perl "/bin/perl")))
|
||||
(substitute* "Makefile"
|
||||
(("/usr/local") out))
|
||||
;; for the install phase
|
||||
(substitute* "Makefile"
|
||||
(("-mkdir") "mkdir -p"))
|
||||
;; drop installation of non-free files
|
||||
(substitute* "Makefile"
|
||||
((" install.include") "")))
|
||||
#t)))))
|
||||
(synopsis "Collection of utilities for manipulating PostScript documents")
|
||||
(description
|
||||
"PSUtils is a collection of utilities for manipulating PostScript
|
||||
|
|
Loading…
Reference in a new issue