aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-06-15 17:08:31 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-06-15 17:24:46 -0400
commit1cde647cc05c640fbfa6f9779a0d7854bb90e153 (patch)
treed84bcbe49449645fd12f7e2ea9982898abc799df /doc
parent5c0ef02db94ccb90a4fe43edc538f3239c10b095 (diff)
downloadguix-1cde647cc05c640fbfa6f9779a0d7854bb90e153.tar
guix-1cde647cc05c640fbfa6f9779a0d7854bb90e153.tar.gz
doc: Use a minimal texlive profile in build.scm.
* doc/build.scm (pdf-manual) <texinfo-profile>: New variable. <PATH>: Define in terms of the above. <GUIX_TEXMF>: New environment variable.
Diffstat (limited to 'doc')
-rw-r--r--doc/build.scm45
1 files changed, 23 insertions, 22 deletions
diff --git a/doc/build.scm b/doc/build.scm
index cf3e5d2830..7d0db8621f 100644
--- a/doc/build.scm
+++ b/doc/build.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019-2022 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
+;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -30,6 +31,7 @@
(guix gexp)
(guix git)
(guix git-download)
+ (guix profiles)
(guix utils)
(git)
(gnu packages base)
@@ -890,14 +892,22 @@ makeinfo OPTIONS."
#:languages languages
#:date date))
- ;; FIXME: This union works, except for the table of contents of non-English
- ;; manuals, which contains escape sequences like "^^ca^^fe" instead of
- ;; accented letters.
- ;;
- ;; (define texlive
- ;; (texlive-updmap.cfg (list texlive-tex-texinfo
- ;; texlive-generic-epsf
- ;; texlive-fonts-ec)))
+ (define texinfo-profile
+ (profile
+ (content (packages->manifest
+ ;; texi2dvi requires various command line tools.
+ (list coreutils
+ diffutils
+ gawk
+ grep
+ sed
+ tar
+ texinfo
+ texlive-base
+ texlive-bin ;for GUIX_TEXMF
+ texlive-epsf
+ texlive-fonts-ec
+ texlive-tex-texinfo)))))
(define build
(with-imported-modules '((guix build utils))
@@ -914,21 +924,12 @@ makeinfo OPTIONS."
(string-downcase language)))
;; Install a UTF-8 locale so that 'makeinfo' is at ease.
- (setenv "GUIX_LOCPATH"
- #+(file-append glibc-utf8-locales "/lib/locale"))
+ (setenv "GUIX_LOCPATH" #+(file-append glibc-utf8-locales
+ "/lib/locale"))
(setenv "LC_ALL" "en_US.utf8")
- (setenv "PATH"
- (string-append #+(file-append texlive "/bin") ":"
- #+(file-append texinfo "/bin") ":"
-
- ;; Below are command-line tools needed by
- ;; 'texi2dvi' and friends.
- #+(file-append sed "/bin") ":"
- #+(file-append grep "/bin") ":"
- #+(file-append coreutils "/bin") ":"
- #+(file-append gawk "/bin") ":"
- #+(file-append tar "/bin") ":"
- #+(file-append diffutils "/bin")))
+ (setenv "PATH" #+(file-append texinfo-profile "/bin"))
+ (setenv "GUIX_TEXMF" #+(file-append texinfo-profile
+ "/share/texmf-dist"))
(setvbuf (current-output-port) 'line)
(setvbuf (current-error-port) 'line)