gnu: dblatex: Update phase style.
* gnu/packages/docbook.scm (dblatex)[arguments]: Use MODIFY-PHASES syntax and end phase with #t.
This commit is contained in:
parent
c04e511693
commit
d2d1144d61
1 changed files with 14 additions and 13 deletions
|
@ -2,6 +2,7 @@
|
|||
;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
|
||||
;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
|
||||
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -236,19 +237,19 @@ (define-public dblatex
|
|||
#:use-setuptools? #f
|
||||
#:tests? #f ;no 'test' command
|
||||
#:phases
|
||||
(alist-cons-after
|
||||
'wrap 'set-path
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
;; dblatex executes helper programs at runtime.
|
||||
(wrap-program (string-append out "/bin/dblatex")
|
||||
`("PATH" ":" prefix
|
||||
,(map (lambda (input)
|
||||
(string-append (assoc-ref inputs input)
|
||||
"/bin"))
|
||||
'("libxslt" "texlive"
|
||||
"imagemagick" "inkscape"))))))
|
||||
%standard-phases)))
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'wrap 'set-path
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
;; dblatex executes helper programs at runtime.
|
||||
(wrap-program (string-append out "/bin/dblatex")
|
||||
`("PATH" ":" prefix
|
||||
,(map (lambda (input)
|
||||
(string-append (assoc-ref inputs input)
|
||||
"/bin"))
|
||||
'("libxslt" "texlive"
|
||||
"imagemagick" "inkscape"))))
|
||||
#t))))))
|
||||
(home-page "http://dblatex.sourceforge.net")
|
||||
(synopsis "DocBook to LaTeX Publishing")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue