[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/97: gnu: Add texlive-xetex-bin.
From: |
guix-commits |
Subject: |
25/97: gnu: Add texlive-xetex-bin. |
Date: |
Fri, 21 Jun 2024 06:41:01 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 95c3407c9b4e8d059a9fb8499cb0d8260ba0c69f
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon May 27 18:39:32 2024 +0200
gnu: Add texlive-xetex-bin.
* gnu/packages/tex.scm (texlive-xetex-bin): New variable.
(texlive-xetex)[propagated-inputs]: Add TEXLIVE-XETEX-BIN.
Change-Id: Iafb5e1347f4ff054711f52fb70204a30ae065797
---
gnu/packages/tex.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index c018596556..cc24e972e9 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -74271,6 +74271,7 @@ that it will build with web2c out of the box.")
texlive-plain
texlive-tex-ini-files
texlive-unicode-data
+ texlive-xetex-bin
texlive-xetexconfig))
(home-page "https://ctan.org/pkg/xetex")
(synopsis "Extended variant of TeX for use with Unicode sources")
@@ -74286,6 +74287,48 @@ which is ordinarily processed by a tightly bound
processor (called
@code{xdvipdfmx}), that produces PDF.")
(license license:x11)))
+(define-public texlive-xetex-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-xetex-bin")
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-web2c"
+ "--enable-xetex"
+ (delete "--disable-xetex"
+ (delete "--enable-web2c" #$flags))))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (add-after 'unpack 'set-default-xetex-outputdriver
+ ;; XeTeX requires the "xdvipdfmx" binary to be available in the
+ ;; same tree, so as to use it as a safe default "outputdriver".
+ ;; Use the one from TEXLIVE-DVIPDFMX-BIN instead of reporting an
+ ;; error each time "xelatex" is invoked.
+ (lambda _
+ (substitute* "texk/web2c/xetexdir/XeTeX_ext.c"
+ (("(\\*outputdriver = \")xdvipdfmx " _ prefix)
+ (string-append prefix
+ #$(this-package-input "texlive-dvipdfmx-bin")
+ "/bin/xdvipdfmx ")))))
+ (replace 'install
+ (lambda _
+ (let ((bin (string-append #$output "/bin")))
+ (with-directory-excursion "texk/web2c"
+ (invoke "make" "xetex")
+ (install-file "xetex" bin))
+ (with-directory-excursion bin
+ (symlink "xetex" "xelatex")))))))))
+ (native-inputs (list pkg-config))
+ (inputs
+ (modify-inputs (package-inputs texlive-bin)
+ (append freetype teckit texlive-dvipdfmx-bin)))
+ (home-page (package-home-page texlive-xetex))
+ (synopsis "Binary for @code{texlive-xetex}")
+ (description
+ "This package provides the binary for @code{texlive-xetex}.")
+ (license (package-license texlive-xetex))))
+
(define-public texlive-xfor
(package
(name "texlive-xfor")
- 12/97: gnu: texlive-xcjk2uni: Fix build., (continued)
- 12/97: gnu: texlive-xcjk2uni: Fix build., guix-commits, 2024/06/21
- 20/97: gnu: Add texlive-uptex-bin., guix-commits, 2024/06/21
- 21/97: gnu: Add texlive-ptex-bin., guix-commits, 2024/06/21
- 16/97: gnu: Add texlive-omegaware-bin., guix-commits, 2024/06/21
- 24/97: gnu: Add texlive-dvipdfmx-bin., guix-commits, 2024/06/21
- 15/97: gnu: Add texlive-mfware-bin., guix-commits, 2024/06/21
- 18/97: gnu: Add texlive-texware-bin., guix-commits, 2024/06/21
- 22/97: gnu: Add texlive-bibtex-bin., guix-commits, 2024/06/21
- 23/97: gnu: Add texlive-dvicopy-bin., guix-commits, 2024/06/21
- 27/97: gnu: Add texlive-hitex-bin., guix-commits, 2024/06/21
- 25/97: gnu: Add texlive-xetex-bin.,
guix-commits <=
- 47/97: gnu: Add texlive-cjkutils-bin., guix-commits, 2024/06/21
- 19/97: gnu: Add texlive-patgen-bin., guix-commits, 2024/06/21
- 34/97: gnu: Add texlive-bibtex8-bin., guix-commits, 2024/06/21
- 32/97: gnu: Add texlive-pmx-bin., guix-commits, 2024/06/21
- 44/97: gnu: Add texlive-makeindex-bin., guix-commits, 2024/06/21
- 63/97: gnu: texlive-kpathsea: Propagate the binaries., guix-commits, 2024/06/21
- 68/97: gnu: texlive-ps2pk: Build binaries separately., guix-commits, 2024/06/21
- 77/97: gnu: texlive-texdirflatten: Add missing Perl input., guix-commits, 2024/06/21
- 90/97: gnu: TeX Live packages built from TEXLIVE-SOURCE use same version., guix-commits, 2024/06/21
- 92/97: gnu: texlive-scripts: Fix typo in description., guix-commits, 2024/06/21