diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2022-03-06 10:40:32 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2022-03-06 12:22:14 +0100 |
commit | 774042fede4c00adfe598cf8cc1fd4fc0261b849 (patch) | |
tree | 9aa8a20ded5172cb9df7c7a148e45aed69c14e81 /gnu/packages/tex.scm | |
parent | 98bd43095ce8af7d7521f6071d6cf337cd46aac9 (diff) | |
download | guix-774042fede4c00adfe598cf8cc1fd4fc0261b849.tar.gz |
gnu: texlive-generic-pdfescape: Rename to texlive-pdfescape.
* gnu/packages/tex.scm (texlive-pdfescape): New variable. (texlive-generic-pdfescape): Define deprecated alias. (texlive-hyperref): Use new name.
Diffstat (limited to 'gnu/packages/tex.scm')
-rw-r--r-- | gnu/packages/tex.scm | 53 |
1 files changed, 39 insertions, 14 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 4ba49944e3..a5f9d9f3f0 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -3466,7 +3466,7 @@ XML, using UTF-8 or a suitable 8-bit encoding.") texlive-kvdefinekeys texlive-kvsetkeys texlive-ltxcmds - texlive-generic-pdfescape + texlive-pdfescape texlive-latex-auxhook texlive-latex-hycolor texlive-latex-kvoptions @@ -8490,21 +8490,46 @@ as plain TeX.") (define-deprecated-package texlive-generic-ltxcmds texlive-ltxcmds) -(define-public texlive-generic-pdfescape - (package - (inherit (simple-texlive-package - "texlive-generic-pdfescape" - '("/tex/generic/pdfescape/") - (base32 - "1vbdjmm9bi9ngzz2z1b8jnf6nzf9xsaj5pvyswg13y4dr00mnz6n") - #:trivial? #t)) - (home-page "https://www.ctan.org/pkg/pdfescape") - (synopsis "pdfTeX's escape features for plain TeX") - (description - "This package implements pdfTeX's escape features (@code{\\pdfescapehex}, +(define-public texlive-pdfescape + (let ((template (simple-texlive-package + "texlive-pdfescape" + (list "doc/latex/pdfescape/" + "source/latex/pdfescape/" + "tex/generic/pdfescape/") + (base32 + "16a0rdmpa4wxh6gyf46qwfgyh399rwdind2wc89phqd50ky9b5m4")))) + (package + (inherit template) + (outputs '("out" "doc")) + (arguments + (substitute-keyword-arguments (package-arguments template) + ((#:tex-directory _ '()) + "generic/pdfescape") + ((#:build-targets _ '()) + #~(list "pdfescape.dtx")) + ((#:phases phases) + #~(modify-phases #$phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "source/latex/pdfescape"))) + (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)))))))) + (home-page "https://www.ctan.org/pkg/pdfescape") + (synopsis "pdfTeX's escape features for plain TeX") + (description + "This package implements pdfTeX's escape features (@code{\\pdfescapehex}, @code{\\pdfunescapehex}, @code{\\pdfescapename}, @code{\\pdfescapestring}) using TeX or e-TeX.") - (license license:lppl1.3c+))) + (license license:lppl1.3c+)))) + +(define-deprecated-package texlive-generic-pdfescape texlive-pdfescape) (define-public texlive-generic-uniquecounter (package |