From e16ff1ddeb56e7deabc7789a2937f798f4402fb7 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 29 Aug 2023 15:51:24 +0200 Subject: [PATCH] gnu: Add texlive-gitver. * gnu/packages/tex.scm (texlive-gitver): New variable. --- gnu/packages/tex.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index fa3f3da031..623cac7fe2 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -83603,6 +83603,29 @@ which version of your document. This Git information can be included on every page by a watermark or (for custom needs) via provided variables.") (license license:lppl1.3+))) +(define-public texlive-gitver + (package + (name "texlive-gitver") + (version (number->string %texlive-revision)) + (source (texlive-origin + name version + (list "doc/latex/gitver/" "tex/latex/gitver/") + (base32 + "1z2amfxc59zdzhvqdqrxnjxr0qgymc384bnm6w0m00p2mhj5pbvy"))) + (outputs '("out" "doc")) + (build-system texlive-build-system) + (home-page "https://ctan.org/pkg/gitver") + (synopsis + "Get the current Git hash of a project and typeset it in the document") + (description + "This package will get a description of the current Git version of the +document and store it in a command @code{\\gitVer}. If @code{memoir} or +@code{fancyhdr} are in use, it will also add this to the document footers +unless the option @code{noheader} is passed. The package also defines +a command @code{\\versionBox} which outputs a box containing the version and +date of compilation.") + (license license:lppl1.3c))) + ;;; ;;; Avoid adding new packages to the end of this file. To reduce the chances ;;; of a merge conflict, place them above by existing packages with similar