guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: texlive-latex-base: Fix syntax error in Lua file.


From: guix-commits
Subject: 02/02: gnu: texlive-latex-base: Fix syntax error in Lua file.
Date: Fri, 17 Jan 2020 06:58:05 -0500 (EST)

rekado pushed a commit to branch core-updates
in repository guix.

commit 201015b10eb6988ea15ab8aacd7944b48a5549a3
Author: Ricardo Wurmus <address@hidden>
AuthorDate: Fri Jan 17 12:56:34 2020 +0100

    gnu: texlive-latex-base: Fix syntax error in Lua file.
    
    * gnu/packages/tex.scm (texlive-latex-base)[arguments]: Patch ltluatex.dtx.
---
 gnu/packages/tex.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index a31e269..d95434a 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -2402,6 +2402,13 @@ formats.")
             (srfi srfi-26)))
          ((#:phases phases)
           `(modify-phases ,phases
+             ;; The literal tab in the dtx file is translated to the string
+             ;; "^^I" in the generated Lua file, which causes a syntax error.
+             (add-after 'unpack 'fix-lua-sources
+               (lambda _
+                 (substitute* "source/latex/base/ltluatex.dtx"
+                   ((" ") "  "))
+                 #t))
              (replace 'build
                (lambda* (#:key inputs #:allow-other-keys)
                  ;; Find required fonts



reply via email to

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