[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#27296] [PATCH 14/35] build-system: Add 'texlive-build-system'.
From: |
Ludovic Courtès |
Subject: |
[bug#27296] [PATCH 14/35] build-system: Add 'texlive-build-system'. |
Date: |
Wed, 14 Jun 2017 09:41:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Ricardo Wurmus <address@hidden> skribis:
> Ludovic Courtès <address@hidden> writes:
>
>> Ricardo Wurmus <address@hidden> skribis:
>>
>>> * guix/build-system/texlive.scm: New file.
>>> * guix/build/texlive-build-system.scm: New file.
>>> * Makefile.am (MODULES): Add them.
>>> * doc/guix.texi (Build Systems): Document it.
>>> * gnu/packages/tex.scm (%texlive-tag, %texlive-revision): Remove variables.
>>> (texlife-ref): Remove procedure.
>>
>> [...]
>>
> […]
>>> +(define* (build #:key inputs build-targets tex-format #:allow-other-keys)
>>> + ;; Find additional tex and sty files
>>> + (setenv "TEXINPUTS"
>>> + (string-append
>>> + (getcwd) ":" (getcwd) "/build:"
>>> + (string-join
>>> + (append-map (match-lambda
>>> + ((_ . dir)
>>> + (find-files dir
>>> + (lambda (_ stat)
>>> + (eq? 'directory (stat:type stat)))
>>> + #:directories? #t
>>> + #:stat stat)))
>>> + inputs)
>>> + ":")))
>>> + (setenv "TEXFORMATS"
>>> + (string-append (assoc-ref inputs "texlive-latex-base")
>>> + "/share/texmf-dist/web2c/"))
>>> + (setenv "LUAINPUTS"
>>> + (string-append (assoc-ref inputs "texlive-latex-base")
>>> + "/share/texmf-dist/tex/latex/base/"))
>>
>> Should these variables be declared as search paths somewhere?
>
> I don’t think they should. There are many more environment variables
> needed by a usual TeX Live installation, but they are usually configured
> in “texmf.cnf” and with special syntax e.g. to permit recursive
> traversal (ending on “//”). These three variables are just the bare
> minimum I needed to run “latex” or “luatex” on the packages up to this
> point.
>
> If we really do need more in the future it might be better to create a
> custom “texmf.cnf” and set the TEXMFCNF variable to use it.
OK, makes sense.
Ludo’.
- bug#27296: [PATCH 12/35] gnu: Add texlive-tex-plain., (continued)
- bug#27296: [PATCH 12/35] gnu: Add texlive-tex-plain., Ricardo Wurmus, 2017/06/09
- bug#27296: [PATCH 13/35] gnu: Add texlive-latex-base., Ricardo Wurmus, 2017/06/09
- bug#27296: [PATCH 16/35] gnu: Add texlive-generic-ifxetex., Ricardo Wurmus, 2017/06/09
- bug#27296: [PATCH 17/35] gnu: Add texlive-latex-fancyvrb., Ricardo Wurmus, 2017/06/09
- bug#27296: [PATCH 18/35] gnu: Add texlive-latex-graphics., Ricardo Wurmus, 2017/06/09
- bug#27296: [PATCH 19/35] gnu: Add texlive-latex-xcolor., Ricardo Wurmus, 2017/06/09
- bug#27296: [PATCH 20/35] gnu: Add texlive-latex-hyperref., Ricardo Wurmus, 2017/06/09
- bug#27296: [PATCH 14/35] build-system: Add 'texlive-build-system'., Ricardo Wurmus, 2017/06/09
bug#27296: [PATCH 21/35] gnu: Add texlive-latex-oberdiek., Ricardo Wurmus, 2017/06/09
bug#27296: [PATCH 22/35] gnu: Add texlive-latex-tools., Ricardo Wurmus, 2017/06/09
bug#27296: [PATCH 23/35] gnu: Add texlive-latex-url., Ricardo Wurmus, 2017/06/09
bug#27296: [PATCH 24/35] gnu: Add texlive-latex-l3kernel., Ricardo Wurmus, 2017/06/09
bug#27296: [PATCH 25/35] gnu: Add texlive-latex-l3packages., Ricardo Wurmus, 2017/06/09
bug#27296: [PATCH 26/35] gnu: Add texlive-latex-fontspec., Ricardo Wurmus, 2017/06/09
bug#27296: [PATCH 27/35] gnu: Add texlive-luatex-lualibs., Ricardo Wurmus, 2017/06/09
bug#27296: [PATCH 31/35] gnu: texlive-latex-cyrillic., Ricardo Wurmus, 2017/06/09
bug#27296: [PATCH 30/35] gnu: Add texlive-latex-babel., Ricardo Wurmus, 2017/06/09
bug#27296: [PATCH 28/35] gnu: Add texlive-latex-amsmath., Ricardo Wurmus, 2017/06/09