[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
22/31: gnu: Add texlive-xmltex.
From: |
guix-commits |
Subject: |
22/31: gnu: Add texlive-xmltex. |
Date: |
Thu, 14 Jan 2021 10:12:57 -0500 (EST) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 711d678171f380e0ce051550eaa91845eacad4b6
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Jan 4 11:12:56 2021 -0500
gnu: Add texlive-xmltex.
* gnu/packages/tex.scm (texlive-xmltex): New variable.
---
gnu/packages/tex.scm | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 1a52356..98b19e1 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -2896,6 +2896,74 @@ tables.")
(define-public texlive-latex-xcolor
(deprecated-package "texlive-latex-xcolor" texlive-xcolor))
+(define-public texlive-xmltex
+ (let ((template (simple-texlive-package
+ "texlive-xmltex"
+ (list
+ "/doc/otherformats/xmltex/"
+ "/tex/xmltex/")
+ (base32
+ "023gv9axq05vwqz50fnkig24dzahwlc4raks2s8xc4pzrv2dv1zy"))))
+ (package
+ (inherit template)
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:tex-directory _ #t)
+ "tex/xmltex/base")
+ ((#:phases phases '%standard-phases)
+ `(modify-phases ,phases
+ (add-before 'install 'generate-formats
+ (lambda* (#:key inputs #:allow-other-keys)
+ (mkdir "web2c")
+ (for-each (lambda (f)
+ (copy-file f (basename f)))
+ (find-files "tex" "\\.(ini|tex)$"))
+ (invoke "fmtutil-sys" "--byfmt" "xmltex"
+ "--fmtdir=web2c")
+ (invoke "fmtutil-sys" "--byfmt" "pdfxmltex"
+ "--fmtdir=web2c")))
+ (add-after 'install 'install-formats-and-wrappers
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (texlive-bin (assoc-ref inputs "texlive-bin"))
+ (pdftex (string-append texlive-bin "/bin/pdftex"))
+ (web2c (string-append out "/share/texmf-dist/web2c")))
+ (mkdir-p web2c)
+ (copy-recursively "web2c" web2c)
+ ;; Create convenience command wrappers.
+ (mkdir-p (string-append out "/bin"))
+ (symlink pdftex (string-append out "/bin/xmltex"))
+ (symlink pdftex (string-append out "/bin/pdfxmltex"))
+ #t)))))))
+ (propagated-inputs
+ ;; The following fonts are propagated as a texlive-union as the font
+ ;; maps need to be recreated for the fonts to be usable. They are
+ ;; required by xmltex through mlnames.sty and unicode.sty.
+ `(("texlive" ,(texlive-union
+ (list
+ texlive-amsfonts
+ texlive-babel
+ texlive-courier
+ texlive-helvetic
+ texlive-hyperref
+ texlive-symbol
+ texlive-tipa
+ texlive-times
+ texlive-zapfding
+ ;; The following fonts, while not required, are used if
+ ;; available:
+ texlive-stmaryrd
+ texlive-wasy)))))
+ (native-inputs
+ `(("texlive-tex-ini-files" ,texlive-tex-ini-files)))
+ (home-page "https://www.ctan.org/pkg/xmltex/")
+ (synopsis "Support for parsing XML documents")
+ (description "The package provides an implementation of a parser for
+documents matching the XML 1.0 and XML Namespace Recommendations. Element and
+attribute names, as well as character data, may use any characters allowed in
+XML, using UTF-8 or a suitable 8-bit encoding.")
+ (license license:lppl1.0+)))) ;per xmltex/base/readme.txt
+
(define-public texlive-hyperref
(let ((template (simple-texlive-package
"texlive-hyperref"
- 14/31: gnu: texlive-latex-oberdiek: Rename to texlive-oberdiek., (continued)
- 14/31: gnu: texlive-latex-oberdiek: Rename to texlive-oberdiek., guix-commits, 2021/01/14
- 17/31: gnu: Add texlive-courier., guix-commits, 2021/01/14
- 20/31: gnu: Add texlive-wasy., guix-commits, 2021/01/14
- 18/31: gnu: Add texlive-helvetic., guix-commits, 2021/01/14
- 24/31: gnu: Add docbook-utils., guix-commits, 2021/01/14
- 08/31: gnu: Add docbook-sgml-3.1., guix-commits, 2021/01/14
- 09/31: gnu: Add texlive-marvosym., guix-commits, 2021/01/14
- 11/31: gnu: Add texlive-tipa., guix-commits, 2021/01/14
- 15/31: gnu: texlive-psnfss: Improve description., guix-commits, 2021/01/14
- 16/31: gnu: Add texlive-jknappen., guix-commits, 2021/01/14
- 22/31: gnu: Add texlive-xmltex.,
guix-commits <=
- 23/31: gnu: Add texlive-jadetex., guix-commits, 2021/01/14
- 30/31: gnu: texlive-bin: Fix the tlmgr utility., guix-commits, 2021/01/14
- 31/31: gnu: texlive-bin: Patch shell commands in scripts., guix-commits, 2021/01/14
- 25/31: gnu: texlive-texmf: Replace python-2 by python., guix-commits, 2021/01/14
- 26/31: build-system/texlive: Allow specifying SVN references with a single component., guix-commits, 2021/01/14
- 28/31: gnu: texlive-bin: Fix indentation., guix-commits, 2021/01/14
- 27/31: gnu: texlive-bin: Replace python-2 by python., guix-commits, 2021/01/14
- 29/31: gnu: texlive-bin: Unpack the texlive-scripts and texlive-extra inputs early., guix-commits, 2021/01/14