gnu: texlive-ps2eps: Fix Ghostscript executable name.

* gnu/packages/tex.scm (texlive-ps2eps)[arguments]<#:phases>: Use "gs" instead
of "gswin32c".
This commit is contained in:
Nicolas Goaziou 2023-09-05 23:02:02 +02:00
parent bd7bb47944
commit eb9b0046f5
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -41683,7 +41683,19 @@ (define-public texlive-ps2eps
"1anrvgs0hd3790dwpxqal0c2drjmvh93vnyqap40rvp8axwi0a6n")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
(arguments (list #:link-scripts #~(list "ps2eps.pl")))
(arguments
(list #:link-scripts #~(list "ps2eps.pl")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'configure-ghostscript-executable
;; ps2eps.pl uses the "gswin32c" ghostscript executable on
;; Windows, and the "gs" ghostscript executable on Unix. It
;; detects Unix by checking for the existence of the
;; "/usr/bin" directory. Since Guix System does not have
;; "/usr/bin", it is also detected as Windows.
(lambda _
(substitute* "scripts/ps2eps/ps2eps.pl"
(("gswin32c") "gs")))))))
(inputs (list perl))
(home-page "https://ctan.org/pkg/ps2eps")
(synopsis "Produce Encapsulated PostScript from PostScript")