guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

06/97: gnu: texlive-luatex: Set proper default values for "texmfcnf.lua"


From: guix-commits
Subject: 06/97: gnu: texlive-luatex: Set proper default values for "texmfcnf.lua".
Date: Fri, 21 Jun 2024 08:22:42 -0400 (EDT)

ngz pushed a commit to branch tex-team
in repository guix.

commit 6b54b4990e5cdda679802c3d7fe2b77c98f5540c
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue May 28 18:48:42 2024 +0200

    gnu: texlive-luatex: Set proper default values for "texmfcnf.lua".
    
    * gnu/packages/tex.scm (texlive-luatex)[arguments]<#:phases>: Make TeX
    specific environment variables match those in "texmf.cnf".
    
    Change-Id: Idb80dbe849c1dcdeea234dbedba6d8f3668e2b3f
---
 gnu/packages/tex.scm | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index dfaac0397b..e2b8a1abb2 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -48039,8 +48039,22 @@ in the same way as BSD/GNU @code{getopt_long(3)} 
functions do.")
     (outputs '("out" "doc"))
     (build-system texlive-build-system)
     (arguments
-     (list #:texlive-latex-bin? #f
-           #:create-formats #~(list "dviluatex" "luatex")))
+     (list
+      #:texlive-latex-bin? #f
+      #:create-formats #~(list "dviluatex" "luatex")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'customize-texmfcnf.lua
+            (lambda _
+              (substitute* "web2c/texmfcnf.lua"
+                (("TEXMFDIST *=.*") "TEXMFDIST = os.getenv(\"GUIX_TEXMF\"),\n")
+                (("TEXMFSYSVAR *=.*")
+                 "TEXMFSYSVAR = \"$TEXMFDIST/../texmf-var\",\n")
+                (("TEXMFSYSCONFIG *=.*")
+                 "TEXMFSYSCONFIG = \"$TEXMFDIST/../texmf-config\",\n")
+                (("TEXMF *=.*")
+                 "TEXMF = 
\"{$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,$TEXMFSYSCONFIG,$TEXMFSYSVAR,$TEXMFDIST}\",\n")))))))
+    (native-inputs (list texlive-kpathsea))
     (propagated-inputs
      (list texlive-cm
            texlive-etex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]