[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: gnu: texlive-latex-epstopdf-pkg: Fix package definition.
From: |
guix-commits |
Subject: |
02/06: gnu: texlive-latex-epstopdf-pkg: Fix package definition. |
Date: |
Fri, 9 Jun 2023 12:50:54 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 03121f8d121a697dc2d74fc9b5a89aabf15a90fa
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Wed May 3 17:55:46 2023 +0200
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.
---
gnu/packages/tex.scm | 57 +++++++++++++++++++++++++++++++++++++---------------
1 file changed, 41 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 4c681f4f77..a8fc98e7f7 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -3295,22 +3295,47 @@ the @file{.aux} file.")
(define-deprecated-package texlive-latex-auxhook texlive-auxhook)
(define-public texlive-latex-epstopdf-pkg
- (package
- (inherit (simple-texlive-package
- "texlive-latex-epstopdf-pkg"
- '("/doc/latex/epstopdf-pkg/"
- "/tex/latex/epstopdf-pkg/")
- (base32
- "0zl6jiyp2cvvyqx3lwxdkcvvnkqgbwj4issq07cagf61gljq6fns")
- #:trivial? #t))
- (home-page "https://www.ctan.org/pkg/epstopdf-pkg")
- (synopsis "Call @command{epstopdf} \"on the fly\"")
- (description
- "The package adds support for EPS files in the @code{graphicx} package
-when running under pdfTeX. If an EPS graphic is detected, the package
-spawns a process to convert the EPS to PDF, using the script
-@command{epstopdf}.")
- (license license:lppl1.3c+)))
+ (let ((template (simple-texlive-package
+ "texlive-latex-epstopdf-pkg"
+ (list "doc/latex/epstopdf-pkg/"
+ "source/latex/epstopdf-pkg/"
+ "tex/latex/epstopdf-pkg/")
+ (base32
+ "1ajyc5pkn1niifz5asyf09vbdqvmy05xwl0vxcdl7ik0ll0jcaxp"))))
+ (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")
+ (synopsis "Call @command{epstopdf} on the fly")
+ (description
+ "The package adds support for EPS files in the @code{graphicx} package
+when running under pdfTeX. If an EPS graphic is detected, the package spawns
+a process to convert the EPS to PDF, using the script @command{epstopdf}.")
+ (license license:lppl1.3c+))))
(define-public texlive-latex-filecontents
(package
- branch tex-team created (now bd7d12317e), guix-commits, 2023/06/09
- 04/06: gnu: texlive-latex-filecontents: Fix package definition., guix-commits, 2023/06/09
- 01/06: gnu: texlive-amsmath: Add missing input., guix-commits, 2023/06/09
- 03/06: gnu: texlive-latex-epstopdf-pkg: Rename to texlive-epstopdf-pkg., guix-commits, 2023/06/09
- 02/06: gnu: texlive-latex-epstopdf-pkg: Fix package definition.,
guix-commits <=
- 06/06: svn-download: Do not expand keywords., guix-commits, 2023/06/09
- 05/06: gnu: texlive-latex-filecontents: Rename to texlive-filecontents., guix-commits, 2023/06/09