summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2025-06-11 15:55:41 +0200
committerAndreas Enge <andreas@enge.fr>2025-07-18 20:17:34 +0200
commitbf737ede4846f6ff799fbcc2ca3b6c7a434e4d90 (patch)
tree63ef36286c76616e93392d4886754b7c8520028c
parent157c0276a827e0bfcbdc0a5d100653a2fc52a614 (diff)
gnu: texlive-libkpathsea: Ungraft.
* gnu/packages/tex.scm (texlive-libkpathsea)[replacement]: Remove. [arguments]: Adjust ‘customize-texmf.cnf’ phase. Change-Id: I64abeadb82a11cb54d6388e7f5deda65d2e5ba20
-rw-r--r--gnu/packages/tex.scm54
1 files changed, 7 insertions, 47 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index cde389b700..2c095f9720 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -298,9 +298,6 @@ should not be installed in a profile.")
(define-public texlive-libkpathsea
(package
(name "texlive-libkpathsea")
- ;; TODO: ungraft on tex-team or a dedicated branch,
- ;; integrating the missing definitions.
- (replacement texlive-libkpathsea/fixed)
(version (package-version texlive-source))
(source
(origin
@@ -347,9 +344,13 @@ should not be installed in a profile.")
(("^TEXMFDIST = .*") "TEXMFDIST = {$GUIX_TEXMF}\n")
;; Use XDG recommendations for local variables. Also ignore
;; system-wide cache, which is not writable; use local one
- ;; instead, i.e., "$XDG_CACHE_HOME/.texliveYYYY/texmf-var/".
- (("^TEXMFVAR = ~/") "TEXMFVAR = $XDG_CACHE_HOME/")
- (("^TEXMFCONFIG = ~/") "TEXMFCONFIG = $XDG_CONFIG_HOME/")
+ ;; instead, i.e., "$XDG_CACHE_HOME/texliveYYYY/texmf-var/".
+ (("^TEXMFVAR = ~/\\.")
+ (string-append "XDG_CACHE_HOME = ~/.cache\n"
+ "TEXMFVAR = $XDG_CACHE_HOME/"))
+ (("^TEXMFCONFIG = ~/\\.")
+ (string-append "XDG_CONFIG_HOME = ~/.config\n"
+ "TEXMFCONFIG = $XDG_CONFIG_HOME/"))
(("^TEXMFCACHE = .*") "TEXMFCACHE = $TEXMFVAR\n")
;; "ls-R" files are to be expected only in the TEXMFDIST
;; directories. TEXMFLOCAL is not necessary for Guix, but
@@ -400,47 +401,6 @@ should not be installed in a profile.")
of user-specified directories similar to how shells look up executables.")
(license license:lgpl2.1)))
-(define texlive-libkpathsea/fixed
- (package
- (inherit texlive-libkpathsea)
- (arguments
- (substitute-keyword-arguments (package-arguments texlive-libkpathsea)
- ((#:phases phases)
- #~(modify-phases #$phases
- (replace 'customize-texmf.cnf
- (lambda _
- (substitute* "texk/kpathsea/texmf.cnf"
- (("^TEXMFROOT = .*") "TEXMFROOT = {$GUIX_TEXMF}/..\n")
- (("^TEXMFDIST = .*") "TEXMFDIST = {$GUIX_TEXMF}\n")
- ;; Use XDG recommendations for local variables. Also ignore
- ;; system-wide cache, which is not writable; use local one
- ;; instead, i.e., "$XDG_CACHE_HOME/texliveYYYY/texmf-var/".
- (("^TEXMFVAR = ~/\\.")
- (string-append "XDG_CACHE_HOME = ~/.cache\n"
- "TEXMFVAR = $XDG_CACHE_HOME/"))
- (("^TEXMFCONFIG = ~/\\.")
- (string-append "XDG_CONFIG_HOME = ~/.config\n"
- "TEXMFCONFIG = $XDG_CONFIG_HOME/"))
- (("^TEXMFCACHE = .*") "TEXMFCACHE = $TEXMFVAR\n")
- ;; "ls-R" files are to be expected only in the TEXMFDIST
- ;; directories. TEXMFLOCAL is not necessary for Guix, but
- ;; could be required anyway by external TeX installations.
- (("^TEXMF = .*")
- "TEXMF = {$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,!!TEXMFLOCAL,TEXMFSYSVAR,TEXMFSYSCONFIG,!!$TEXMFDIST}\n")
- (("^TEXMFDBS = .*") "TEXMFDBS = {!!$TEXMFLOCAL,!!$TEXMFDIST}\n")
- ;; Set TEXMFCNF. Since earlier values of variables have
- ;; precedence over later ones, insert the desired value first.
- (("^TEXMFCNF =")
- (string-append
- "TEXMFCNF = " #$output "/share/texmf-dist/web2c\n"
- "TEXMFCNF ="))
- ;; Help TeX finding fonts installed on the system.
- (("^OSFONTDIR = .*") "OSFONTDIR = {$XDG_DATA_DIRS}\n")
- ;; Don't truncate lines.
- (("^error_line = .*$") "error_line = 254\n")
- (("^half_error_line = .*$") "half_error_line = 238\n")
- (("^max_print_line = .*$") "max_print_line = 1000\n"))))))))))
-
(define-public texlive-libptexenc
(package
(name "texlive-libptexenc")