[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
30/31: gnu: texlive-bin: Fix the tlmgr utility.
From: |
guix-commits |
Subject: |
30/31: gnu: texlive-bin: Fix the tlmgr utility. |
Date: |
Thu, 14 Jan 2021 10:13:00 -0500 (EST) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 9e78ea79f81d9eec0fab9cbe204899e384973649
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Jan 2 23:04:57 2021 -0500
gnu: texlive-bin: Fix the tlmgr utility.
Previously, it would error out, not finding its Perl modules, and later not
finding config.guess. This utility is useful to query the local TeX Live
package database (texlive.tlpdb).
(texlive-bin)[inputs]{config}: New input.
[phases]{postint}: Add a symlink to the 'config.guess' script. Patch the
tlmgr.pl script so that it can find its Perl modules and other resources.
---
gnu/packages/tex.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 3f17bf4..4a4184c 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -279,6 +279,7 @@ files from LOCATIONS with expected checksum HASH. CODE is
not currently in use.
(build-system gnu-build-system)
(inputs
`(("texlive-extra-src" ,texlive-extra-src)
+ ("config" ,config)
("texlive-scripts"
,(origin
(method svn-fetch)
@@ -452,6 +453,16 @@ files from LOCATIONS with expected checksum HASH. CODE is
not currently in use.
(("\\$TEXMFROOT/")
(string-append share "/")))
+ ;; Likewise for the tlmgr.
+ (substitute* (string-append scripts "/tlmgr.pl")
+ ((".*\\$::installerdir = \\$Master.*" all)
+ (format #f " $Master = ~s;~%~a" share all)))
+
+ ;; Install the config.guess script, required by tlmgr.
+ (with-directory-excursion share
+ (mkdir-p "tlpkg/installer/")
+ (symlink config.guess "tlpkg/installer/config.guess"))
+
;; texlua shebangs are not patched by the patch-source-shebangs
;; phase because the texlua executable does not exist at that
;; time.
- 20/31: gnu: Add texlive-wasy., (continued)
- 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, 2021/01/14
- 23/31: gnu: Add texlive-jadetex., guix-commits, 2021/01/14
- 30/31: gnu: texlive-bin: Fix the tlmgr utility.,
guix-commits <=
- 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