From de1b8c5ff204b0872a4ae56c4bec7a9e6b5e7150 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 29 Aug 2023 15:57:46 +0200 Subject: [PATCH] gnu: Add texlive-patchcmd. * gnu/packages/tex.scm (texlive-patchcmd): New variable. --- gnu/packages/tex.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index f3a323d51a..93c37ae326 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -91546,6 +91546,28 @@ like @code{patchcmd}, which only permits modification by adding commands at the beginning or end of an existing definition.") (license license:lppl))) +(define-public texlive-patchcmd + (package + (name "texlive-patchcmd") + (version (number->string %texlive-revision)) + (source (texlive-origin + name version + (list "doc/latex/patchcmd/" + "source/latex/patchcmd/" + "tex/latex/patchcmd/") + (base32 + "14w3r2xqwq9nwhpdfmlib48xjg2wn4ns58qa4rqsslw1bbsyrl3q"))) + (outputs '("out" "doc")) + (build-system texlive-build-system) + (home-page "https://ctan.org/pkg/patchcmd") + (synopsis "Change the definition of an existing command") + (description + "The package provides a command @code{\\patchcommand} that can be used to add +material at the beginning and the end of the replacement text of an existing +macro. It works for macros with any number of normal arguments, including +those that were defined with @code{\\DeclareRobustCommand}.") + (license license:lppl))) + ;;; ;;; 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