From 6734cfd2b7a86e005730e46f8b146f744a317eee Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 14 May 2023 10:55:42 +0200 Subject: [PATCH] gnu: Add texlive-hyperxmp. * gnu/packages/tex.scm (texlive-hyperxmp): New variable. --- gnu/packages/tex.scm | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 62ea04d23b..2b50e35a15 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -3765,6 +3765,53 @@ (define-public texlive-hyperref (define-deprecated-package texlive-latex-hyperref texlive-hyperref) +(define-public texlive-hyperxmp + (package + (name "texlive-hyperxmp") + (version (number->string %texlive-revision)) + (source (texlive-origin + name version + (list "doc/latex/hyperxmp/" + "doc/man/man1/hyperxmp-add-bytecount.1" + "doc/man/man1/hyperxmp-add-bytecount.man1.pdf" + "scripts/hyperxmp/" + "source/latex/hyperxmp/" + "tex/latex/hyperxmp/") + (base32 + "177wx80mc6ipl0ciddnwgjjfg9vqv71y9ql0y69sviplyy533ng7"))) + (outputs '("out" "doc")) + (build-system texlive-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-build + (lambda _ + (delete-file "source/latex/hyperxmp/hyperxmp-stds.tex")))))) + (propagated-inputs + (list texlive-atenddvi + texlive-etoolbox + texlive-hyperref + texlive-ifmtarg + texlive-iftex + texlive-intcalc + texlive-kvoptions + texlive-luacode + texlive-oberdiek ;for ifdraft + texlive-pdfescape + texlive-stringenc + texlive-totpages)) + (home-page "https://ctan.org/pkg/hyperxmp") + (synopsis "Embed XMP metadata within a LaTeX document") + (description + "XMP (eXtensible Metadata Platform) is a mechanism proposed by Adobe for +embedding document metadata, within the document itself. The metadata is +designed to be easy to extract, even by programs that are oblivious to the +document's file format. The @code{hyperxmp} package makes it trivial for +LaTeX document authors to store XMP metadata in their documents as well. It +is compatible with pdfLaTeX, XeLaTeX, LaTeX+dvipdfm, and LaTeX+dvips+ps2pdf.") + (license license:lppl1.3c))) + (define-public texlive-oberdiek (let ((template (simple-texlive-package "texlive-oberdiek"