[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/37: gnu: Add texlive-l3build.
From: |
guix-commits |
Subject: |
02/37: gnu: Add texlive-l3build. |
Date: |
Wed, 23 Dec 2020 06:31:36 -0500 (EST) |
rekado pushed a commit to branch core-updates
in repository guix.
commit e988401cb3d35cdc48410867f7e8ddc440cce815
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sun Oct 25 22:48:53 2020 +0100
gnu: Add texlive-l3build.
* gnu/packages/tex.scm (texlive-l3build): New variable.
---
gnu/packages/tex.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index d01387d..8bf0906 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -3054,6 +3054,53 @@ the NFSS in LaTeX running on XeTeX or LuaTeX engines.
The package requires
the l3kernel and xparse bundles from the LaTeX 3 development team.")
(license license:lppl1.3+)))
+(define-public texlive-l3build
+ (let ((template (simple-texlive-package
+ "texlive-l3build"
+ (list "/doc/latex/l3build/"
+ "/doc/man/man1/l3build.1"
+ "/scripts/l3build/"
+ "/tex/latex/l3build/"
+ ;; TODO: The dtx file builds only the documentation.
+ ;; We avoid this for a simpler package definition,
+ ;; but it may be possible to exclude
+ ;; /doc/latex/l3build and the man page in the future.
+ "/source/latex/l3build/")
+ (base32
+ "009dccv5lq7bq13431l4ihmagxvb3j1pb5bhidsbiyxi3wvi8y97")
+ #:trivial? #t)))
+ (package
+ (inherit template)
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'install 'patch-shebangs-again
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ ;; XXX: Since the 'patch-shebangs' phase cannot change the
+ ;; original source files patch the shebangs again here.
+ (let* ((coreutils (assoc-ref inputs "coreutils"))
+ (texlive-bin (assoc-ref inputs "texlive-bin"))
+ (path (list (string-append coreutils "/bin")
+ (string-append texlive-bin "/bin"))))
+ (for-each (lambda (file)
+ (format #t "~a~%" file)
+ (patch-shebang file path))
+ (find-files (assoc-ref outputs "out")))
+ #t)))))))
+ (inputs
+ `(("coreutils" ,coreutils)
+ ("texlive-bin" ,texlive-bin)))
+ (home-page "https://github.com/latex3/luaotfload";)
+ (synopsis "Testing and building system for LaTeX")
+ (description
+ "The l3build module is designed to support the development of
+high-quality LaTeX code by providing: a unit testing system, automated
+typesetting of code sources, and a reliable packaging system for CTAN
+releases. The bundle consists of a Lua script to run the tasks and a
+@code{.tex} file which provides the testing environment.")
+ (license license:lppl1.3c+))))
+
;; The SVN directory contains little more than a dtx file that generates three
;; of the many lua files that should be installed as part of this package.
;; This is why we take the release from GitHub instead.
- branch core-updates updated (959a397 -> 40f14e3), guix-commits, 2020/12/23
- 01/37: gnu: texlive-latex-base: Use character translation file., guix-commits, 2020/12/23
- 11/37: gnu: mit-scheme: Remove obsolete build phase., guix-commits, 2020/12/23
- 02/37: gnu: Add texlive-l3build.,
guix-commits <=
- 05/37: gnu: texlive-luatex-luaotfload: Use TeX Live sources., guix-commits, 2020/12/23
- 06/37: gnu: texlive-base: Add texlive-cm-super to default set., guix-commits, 2020/12/23
- 08/37: gnu: Replace texlive-metafont-base with texlive-metafont., guix-commits, 2020/12/23
- 10/37: gnu: discrover: Use new texlive package names., guix-commits, 2020/12/23
- 12/37: gnu: hypre: Remove obsolete build phase., guix-commits, 2020/12/23
- 14/37: gnu: sbcl: Remove obsolete build phase., guix-commits, 2020/12/23
- 13/37: gnu: gtk-doc: Remove obsolete build phase., guix-commits, 2020/12/23
- 15/37: gnu: Replace texlive-latex-lh with texlive-lh., guix-commits, 2020/12/23
- 25/37: gnu: Update references to texlive-knuth-lib., guix-commits, 2020/12/23
- 21/37: gnu: chez-web: Remove obsolete build phase., guix-commits, 2020/12/23