mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: texlive-bin: Use absolute path to ghostscript executable "gs".
* gnu/packages/tex.scm (texlive-bin)[arguments]: Rename fix-unix-detection phase to configure-ghostscript-executable. Replace "gs" in epstopdf.pl with the absolute path to "gs" in the store.
This commit is contained in:
parent
33f61dc1b5
commit
b4eae997fe
1 changed files with 5 additions and 2 deletions
|
@ -176,14 +176,17 @@ (define-public texlive-bin
|
||||||
(string-prefix? "mips64" s))))
|
(string-prefix? "mips64" s))))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-unix-detection
|
(add-after 'unpack 'configure-ghostscript-executable
|
||||||
;; ps2eps.pl uses the "gswin32c" ghostscript executable on Windows,
|
;; ps2eps.pl uses the "gswin32c" ghostscript executable on Windows,
|
||||||
;; and the "gs" ghostscript executable on Unix. It detects Unix by
|
;; and the "gs" ghostscript executable on Unix. It detects Unix by
|
||||||
;; checking for the existence of the /usr/bin directory. Since
|
;; checking for the existence of the /usr/bin directory. Since
|
||||||
;; GuixSD does not have /usr/bin, it is also detected as Windows.
|
;; GuixSD does not have /usr/bin, it is also detected as Windows.
|
||||||
(lambda _
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl"
|
(substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl"
|
||||||
(("gswin32c") "gs"))
|
(("gswin32c") "gs"))
|
||||||
|
(substitute* "texk/texlive/linked_scripts/epstopdf/epstopdf.pl"
|
||||||
|
(("\"gs\"")
|
||||||
|
(string-append "\"" (assoc-ref inputs "ghostscript") "/bin/gs\"")))
|
||||||
#t))
|
#t))
|
||||||
(add-after 'install 'postint
|
(add-after 'install 'postint
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
|
(lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
|
||||||
|
|
Loading…
Reference in a new issue