[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55104] [PATCH 015/232] gnu: Add texlive-makecmds.
From: |
Maxim Cournoyer |
Subject: |
[bug#55104] [PATCH 015/232] gnu: Add texlive-makecmds. |
Date: |
Sun, 24 Apr 2022 23:55:41 -0400 |
* gnu/packages/tex.scm (texlive-makecmds): New variable.
---
gnu/packages/tex.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index dea153643d..40390e9970 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -5417,6 +5417,50 @@ (define-public texlive-latex-mdwtools
array environments; verbatim handling; and syntax diagrams.")
(license license:gpl3+)))
+(define-public texlive-makecmds
+ (package
+ (inherit (simple-texlive-package
+ "texlive-makecmds"
+ (list "doc/latex/makecmds/README"
+ "source/latex/makecmds/makecmds.dtx"
+ "source/latex/makecmds/makecmds.ins")
+ (base32 "0znx80x6ic7a25v9dw8yjibq7lx65wangcyii18kk5x5z4jljba9")))
+ (outputs '("out" "doc"))
+ (arguments
+ (list
+ #:tex-directory "latex/makecmds"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'chdir
+ (lambda _
+ (setenv "ROOT_DIR" (getcwd))
+ (chdir "source/latex/makecmds")))
+ (add-after 'build 'build-doc
+ (lambda _
+ (copy-file "makecmds.dtx" "build/makecmds.dtx")
+ (chdir "build")
+ (invoke "pdflatex" "makecmds.dtx"))) ;generate makecmds.pdf
+ (replace 'install
+ (lambda* (#:key outputs tex-directory #:allow-other-keys)
+ (let ((doc (string-append (assoc-ref outputs "doc")
+ "/share/doc/" tex-directory))
+ (out (string-append #$output "/share/texmf-dist/tex/"
+ tex-directory)))
+ (install-file "makecmds.pdf" doc)
+ (install-file (car (find-files (getenv "ROOT_DIR") "README"))
+ doc)
+ (install-file "makecmds.sty" out)))))))
+ (native-inputs (list (texlive-updmap.cfg
+ (list texlive-amsfonts
+ texlive-cm))))
+ (home-page "https://www.ctan.org/pkg/makecmds")
+ (synopsis "TeX macro to define or redefine a command")
+ (description "The package provides a @code{\\makecommand} command, which
+is like @code{\\newcommand} or @code{\\renewcommand} except it
+always (re)defines a command. There is also @code{\\makeenvironment} and
+@code{\\provideenvironment} for environments.")
+ (license license:lppl1.3c+)))
+
(define-public texlive-metalogo
(package
(inherit (simple-texlive-package
--
2.34.0
- [bug#55104] [PATCH 000/232] Update IPython to latest, fix texlive-polyglossia, add more, Maxim Cournoyer, 2022/04/24
- [bug#55104] [PATCH 001/232] gnu: python-ipython: Re-order fields., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 002/232] gnu: python-astroid: Propagate python-typing-extensions., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 004/232] gnu: Add python-asttokens., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 005/232] gnu: Add python-littleutils., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 003/232] gnu: Add python-pure-eval., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 015/232] gnu: Add texlive-makecmds.,
Maxim Cournoyer <=
- [bug#55104] [PATCH 036/232] gnu: Add python-types-toml., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 048/232] gnu: python-pytest-black: Update to 0.3.12., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 008/232] gnu: python-jinja2: Update to 3.1.1., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 006/232] gnu: Add python-stack-data., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 007/232] gnu: python-traitlets: Update to 5.1.1., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 010/232] gnu: python-ipython: Update to 8.2.0 [fixes CVE-2022-21699]., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 042/232] gnu: Add python-types-pytz., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 018/232] gnu: Add texlive-zref., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 016/232] gnu: Add texlive-csplain., Maxim Cournoyer, 2022/04/25
- [bug#55104] [PATCH 022/232] gnu: Add python-defcon-bootstrap., Maxim Cournoyer, 2022/04/25