gnu: texlive-latex-epstopdf-pkg: Fix package definition.

* gnu/packages/tex.scm (texlive-latex-epstopdf-pkg)[arguments]: Generate from
source.
[propagated-inputs]: Add TEXLIVE-GRFEXT, TEXLIVE-INFWARERR, TEXLIVE-KVOPTIONS
and TEXLIVE-PDFTEXCMDS.
This commit is contained in:
Nicolas Goaziou 2023-05-03 17:55:46 +02:00
parent a181022a51
commit 7a48471d78
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -3295,22 +3295,47 @@ the @file{.aux} file.")
(define-deprecated-package texlive-latex-auxhook texlive-auxhook) (define-deprecated-package texlive-latex-auxhook texlive-auxhook)
(define-public texlive-latex-epstopdf-pkg (define-public texlive-latex-epstopdf-pkg
(package (let ((template (simple-texlive-package
(inherit (simple-texlive-package
"texlive-latex-epstopdf-pkg" "texlive-latex-epstopdf-pkg"
'("/doc/latex/epstopdf-pkg/" (list "doc/latex/epstopdf-pkg/"
"/tex/latex/epstopdf-pkg/") "source/latex/epstopdf-pkg/"
"tex/latex/epstopdf-pkg/")
(base32 (base32
"0zl6jiyp2cvvyqx3lwxdkcvvnkqgbwj4issq07cagf61gljq6fns") "1ajyc5pkn1niifz5asyf09vbdqvmy05xwl0vxcdl7ik0ll0jcaxp"))))
#:trivial? #t)) (package
(inherit template)
(arguments
(substitute-keyword-arguments (package-arguments template)
((#:tex-directory _ '())
"latex/epstopdf-pkg")
((#:build-targets _ '())
#~(list "epstopdf.ins"))
((#:phases phases)
#~(modify-phases #$phases
(add-after 'unpack 'chdir
(lambda _
(chdir "source/latex/epstopdf-pkg")))
(replace 'copy-files
(lambda* (#:key inputs #:allow-other-keys)
(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))))))))
(propagated-inputs
(list texlive-grfext
texlive-infwarerr
texlive-kvoptions
texlive-pdftexcmds))
(home-page "https://www.ctan.org/pkg/epstopdf-pkg") (home-page "https://www.ctan.org/pkg/epstopdf-pkg")
(synopsis "Call @command{epstopdf} \"on the fly\"") (synopsis "Call @command{epstopdf} on the fly")
(description (description
"The package adds support for EPS files in the @code{graphicx} package "The package adds support for EPS files in the @code{graphicx} package
when running under pdfTeX. If an EPS graphic is detected, the package when running under pdfTeX. If an EPS graphic is detected, the package spawns
spawns a process to convert the EPS to PDF, using the script a process to convert the EPS to PDF, using the script @command{epstopdf}.")
@command{epstopdf}.") (license license:lppl1.3c+))))
(license license:lppl1.3c+)))
(define-public texlive-latex-filecontents (define-public texlive-latex-filecontents
(package (package