gnu: texlive-xcolor: Fix build failure.
This is a reland of5e796bfc22which was partially reverted in8c3e9da13a. * gnu/packages/tex.scm (texlive-xcolor)[arguments]: Make sure package provides all the expected files.
This commit is contained in:
parent
126648f578
commit
121f6e0b0c
1 changed files with 16 additions and 9 deletions
|
|
@ -3390,15 +3390,22 @@ used by @code{hyperref} and @code{bookmark}.")
|
||||||
((#:phases phases)
|
((#:phases phases)
|
||||||
#~(modify-phases #$phases
|
#~(modify-phases #$phases
|
||||||
(add-after 'unpack 'chdir
|
(add-after 'unpack 'chdir
|
||||||
(lambda _ (chdir "source/latex/xcolor") #t))
|
(lambda _ (chdir "source/latex/xcolor")))
|
||||||
(add-after 'install 'move-files
|
(replace 'copy-files
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let ((share (string-append (assoc-ref outputs "out")
|
(let ((origin (assoc-ref inputs "source"))
|
||||||
|
(source (string-append #$output
|
||||||
|
"/share/texmf-dist/source"))
|
||||||
|
(doc (string-append #$output:doc
|
||||||
|
"/share/texmf-dist/doc")))
|
||||||
|
(copy-recursively (string-append origin "/source") source)
|
||||||
|
(copy-recursively (string-append origin "/doc") doc)
|
||||||
|
(let ((share (string-append #$output
|
||||||
"/share/texmf-dist")))
|
"/share/texmf-dist")))
|
||||||
(mkdir-p (string-append share "/dvips/xcolor"))
|
(mkdir-p (string-append share "/dvips/xcolor"))
|
||||||
(rename-file (string-append share "/tex/latex/xcolor/xcolor.pro")
|
(rename-file
|
||||||
(string-append share "/dvips/xcolor/xcolor.pro"))
|
(string-append share "/tex/latex/xcolor/xcolor.pro")
|
||||||
#t)))))))
|
(string-append share "/dvips/xcolor/xcolor.pro"))))))))))
|
||||||
;; TODO: Propagate texlive-hyperref and many others in the next rebuild
|
;; TODO: Propagate texlive-hyperref and many others in the next rebuild
|
||||||
;; cycle. Grep for '\usepackage' to see what packages it requires.
|
;; cycle. Grep for '\usepackage' to see what packages it requires.
|
||||||
;; (propagated-inputs (list texlive-hyperref ...))
|
;; (propagated-inputs (list texlive-hyperref ...))
|
||||||
|
|
|
||||||
Reference in a new issue