gnu: texlive-platex: Fix build.

* gnu/packages/tex.scm (texlive-platex)[arguments]<#:phases>: Add a phase to
deal with duplicate "kinsoku.tex".
This commit is contained in:
Nicolas Goaziou 2023-08-15 21:11:40 +02:00
parent dc955bb62d
commit 383e9a4b0d
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -14036,7 +14036,18 @@ (define-public texlive-platex
"0a843xnp3iikjxw1klxb3j2bssm6ylhcw32s046xxm2bs527hxi8")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
(arguments (list #:create-formats #~(list "platex" "platex-dev")))
(arguments
(list #:create-formats #~(list "platex" "platex-dev")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-build
;; This phase is necessary because the build phase is
;; reluctant to generate "kinsoku.tex" since there is another
;; one among the inputs (texlive-ptex) already.
(lambda _
(substitute* "source/platex/base/plfmt.ins"
(("\\\\keepsilent\n" all)
(string-append all "\\askforoverwritefalse\n"))))))))
(propagated-inputs
(list texlive-atbegshi
texlive-atveryend