[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/233: gnu: Add texlive-metalogo.
From: |
guix-commits |
Subject: |
14/233: gnu: Add texlive-metalogo. |
Date: |
Sun, 24 Apr 2022 23:39:35 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit 9f7885f9d38dc0eb594e67669963fc2999f70ffc
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Mar 31 13:58:19 2022 -0400
gnu: Add texlive-metalogo.
* gnu/packages/tex.scm (texlive-metalogo): New variable.
---
gnu/packages/tex.scm | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index c3129ebd60..dea153643d 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -5417,6 +5417,86 @@ 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-metalogo
+ (package
+ (inherit (simple-texlive-package
+ "texlive-metalogo"
+ (list "doc/latex/metalogo/README"
+ ;; These PDFs are apparently used as graphic files, not
+ ;; built.
+ "doc/latex/metalogo/TeXoutline.pdf"
+ "doc/latex/metalogo/eLaToutline.pdf"
+ "source/latex/metalogo/metalogo.dtx"
+ "source/latex/metalogo/metalogo.ins")
+ (base32 "0v1jwp8xhzwn0a4apiyya17s4r1kpn6q9nmv38jj1wwdvgia0jpi")))
+ (outputs '("out" "doc"))
+ (arguments
+ (list
+ #:tex-directory "latex/metalogo"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'chdir
+ (lambda _
+ (setenv "ROOT_DIR" (getcwd))
+ (chdir "source/latex/metalogo")))
+ (add-after 'chdir 'patch-metalogo.dtx
+ (lambda _
+ (substitute* "metalogo.dtx"
+ ;; Prevent embedding a build time date, for reproducibility.
+ (("^% \\\\date.*") "")
+ ;; These fonts are not free.
+ (("^\\\\setmainfont.*") "")
+ (("^\\\\DeclareSymbolFont\\{SabonMaths}.*") "")
+ (("^\\\\AtBeginDocument\\{.*") "")
+ ((".*\\\\expandafter.*\\\\symSabonMaths.*") "")
+ (("^\\\\setsansfont.*MgOpen Cosmetica.*") "")
+ (("^\\\\setmonofont.*Consolas.*") "")
+ ;; The 'stix' texlive font package has been obsoleted by
+ ;; stix2.
+ (("^\\\\newfontfamily\\\\stixgeneral\\{STIXGeneral}")
+ "\\newfontfamily\\stixgeneral{STIX Two Text}"))))
+ (add-after 'build 'build-doc
+ (lambda* (#:key outputs tex-directory #:allow-other-keys)
+ (define doc-sources (string-append (getenv "ROOT_DIR")
+ "/doc/latex/metalogo"))
+ (copy-file "metalogo.dtx" "build/metalogo.dtx")
+ (mkdir "build/graphics")
+ (copy-file (string-append doc-sources "/TeXoutline.pdf")
+ "build/graphics/TeXoutline.pdf")
+ (copy-file (string-append doc-sources "/eLaToutline.pdf")
+ "build/graphics/eLaToutline.pdf")
+ (chdir "build")
+ (invoke "xelatex" "metalogo.dtx"))) ;generate metalogo.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 "metalogo.pdf" doc)
+ (install-file (car (find-files (getenv "ROOT_DIR") "README"))
+ doc)
+ (install-file "metalogo.sty" out)))))))
+ (native-inputs (list fontconfig ;for XDG_DATA_DIRS, to locate OTF fonts
+ texlive-booktabs
+ texlive-cm
+ texlive-fontspec
+ texlive-generic-iftex
+ texlive-latex-base
+ texlive-latex-eukdate
+ texlive-latex-graphics
+ texlive-latex-multirow
+ texlive-lm ;for lmroman10-regular
+ texlive-stix2-otf))
+ (propagated-inputs (list texlive-fontspec texlive-generic-iftex
+ texlive-latex-graphics))
+ (home-page "https://ctan.org/pkg/metalogo")
+ (synopsis "Extended TeX logo macros")
+ (description "This package exposes spacing parameters for various TeX
+logos to the end user, to optimise the logos for different fonts. It is
+written especially for XeLaTeX users.")
+ (license license:lppl1.3c+)))
+
(define-public texlive-paralist
(package
(inherit (simple-texlive-package
- branch wip-ipython-polyglossia created (now 13cf64523c), guix-commits, 2022/04/24
- 01/233: gnu: python-ipython: Re-order fields., guix-commits, 2022/04/24
- 08/233: gnu: python-jinja2: Update to 3.1.1., guix-commits, 2022/04/24
- 02/233: gnu: python-astroid: Propagate python-typing-extensions., guix-commits, 2022/04/24
- 06/233: gnu: Add python-stack-data., guix-commits, 2022/04/24
- 05/233: gnu: Add python-littleutils., guix-commits, 2022/04/24
- 03/233: gnu: Add python-pure-eval., guix-commits, 2022/04/24
- 10/233: gnu: python-ipython: Update to 8.2.0 [fixes CVE-2022-21699]., guix-commits, 2022/04/24
- 14/233: gnu: Add texlive-metalogo.,
guix-commits <=
- 17/233: gnu: Add texlive-cs., guix-commits, 2022/04/24
- 07/233: gnu: python-traitlets: Update to 5.1.1., guix-commits, 2022/04/24
- 09/233: gnu: python-prompt-toolkit: Update to 3.0.29., guix-commits, 2022/04/24
- 11/233: gnu: python-nbformat: Update to 5.3.0., guix-commits, 2022/04/24
- 13/233: gnu: Add texlive-stix2-otf., guix-commits, 2022/04/24
- 15/233: gnu: Add texlive-makecmds., guix-commits, 2022/04/24
- 04/233: gnu: Add python-asttokens., guix-commits, 2022/04/24
- 16/233: gnu: Add texlive-csplain., guix-commits, 2022/04/24
- 20/233: gnu: Add opentype-sanitizer., guix-commits, 2022/04/24
- 22/233: gnu: Add python-defcon-bootstrap., guix-commits, 2022/04/24