[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/232: gnu: Add texlive-makecmds.
From: |
guix-commits |
Subject: |
15/232: gnu: Add texlive-makecmds. |
Date: |
Sun, 24 Apr 2022 23:58:25 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 32db6f1b22b6b4556fc11906cc4f8fc83cde5a74
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Mar 31 14:48:07 2022 -0400
gnu: Add texlive-makecmds.
* 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 @@ which adds some minor changes to LaTeX maths; a rewrite
of LaTeX's tabular and
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
- 201/232: gnu: markets: Add python-wrapper to fix build., (continued)
- 201/232: gnu: markets: Add python-wrapper to fix build., guix-commits, 2022/04/24
- 204/232: gnu: emacsy: Use webkitgtk-with-libsoup2., guix-commits, 2022/04/24
- 208/232: gnu: python-flask-wtf: Update to 1.0.1., guix-commits, 2022/04/24
- 213/232: gnu: python-numpydoc: Update to 1.2.1., guix-commits, 2022/04/24
- 216/232: gnu: python-sphinx-copybutton: Update to 0.5.0., guix-commits, 2022/04/24
- 219/232: gnu: python-sphinxcontrib-programoutput: Update to 0.17 and enable tests., guix-commits, 2022/04/24
- 224/232: gnu: python-sphinx-autodoc-typehints: Update to 1.18.1., guix-commits, 2022/04/24
- 226/232: gnu: python-sphinx-rtd-theme: Update to 1.0.0., guix-commits, 2022/04/24
- 229/232: gnu: python-pudb: Update to 2022.1.1 and rename from pudb., guix-commits, 2022/04/24
- 231/232: gnu: Add texlive-underscore., guix-commits, 2022/04/24
- 15/232: gnu: Add texlive-makecmds.,
guix-commits <=
- 192/232: gnu: python-cantools: Update to 37.0.7., guix-commits, 2022/04/24
- 65/232: gnu: Add python-ordered-set., guix-commits, 2022/04/24
- 67/232: gnu: Add python-ubelt., guix-commits, 2022/04/24
- 74/232: gnu: python-scipy: Move input fields below arguments field., guix-commits, 2022/04/24
- 80/232: gnu: Add skia., guix-commits, 2022/04/24
- 85/232: gnu: Add python-sfdlib., guix-commits, 2022/04/24
- 87/232: gnu: Add font-sil-ezra., guix-commits, 2022/04/24
- 89/232: gnu: Add font-gfs-ambrosia., guix-commits, 2022/04/24
- 90/232: gnu: python-click: Update to 8.1.2 and honor TESTS?., guix-commits, 2022/04/24
- 95/232: gnu: python-trio: Update to 0.20.0., guix-commits, 2022/04/24