aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-01-17 12:56:34 +0100
committerRicardo Wurmus <rekado@elephly.net>2020-01-17 12:57:44 +0100
commit201015b10eb6988ea15ab8aacd7944b48a5549a3 (patch)
tree7aa29cad3e270946f5848fa518cc8f4e1a04aaec
parent4798554038271f1a6d1319313ca68ea99ddaabbe (diff)
downloadpatches-201015b10eb6988ea15ab8aacd7944b48a5549a3.tar
patches-201015b10eb6988ea15ab8aacd7944b48a5549a3.tar.gz
gnu: texlive-latex-base: Fix syntax error in Lua file.
* gnu/packages/tex.scm (texlive-latex-base)[arguments]: Patch ltluatex.dtx.
-rw-r--r--gnu/packages/tex.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index a31e2695e7..d95434aa8f 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