[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/66: gnu: Add texlive-xetex-bin.
From: |
guix-commits |
Subject: |
20/66: gnu: Add texlive-xetex-bin. |
Date: |
Wed, 29 May 2024 10:17:19 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 92325075f0246c11218aff896b1ad4941b6ed340
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 | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 14b3c24f79..9d99281ed6 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -74228,6 +74228,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")
@@ -74243,6 +74244,50 @@ 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 ")))))
+ (add-after 'build 'build-engine
+ (lambda _
+ (with-directory-excursion "texk/web2c"
+ (invoke "make" "xetex"))))
+ (replace 'install
+ (lambda _
+ (let ((bin (string-append #$output "/bin")))
+ (install-file "texk/web2c/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")
- 08/66: gnu: texlive-bin: Minimize build surface., (continued)
- 08/66: gnu: texlive-bin: Minimize build surface., guix-commits, 2024/05/29
- 11/66: gnu: Add texlive-omegaware-bin., guix-commits, 2024/05/29
- 17/66: gnu: Add texlive-bibtex-bin., guix-commits, 2024/05/29
- 18/66: gnu: Add texlive-dvicopy-bin., guix-commits, 2024/05/29
- 21/66: gnu: Add texlive-aleph-bin., guix-commits, 2024/05/29
- 15/66: gnu: Add texlive-uptex-bin., guix-commits, 2024/05/29
- 19/66: gnu: Add texlive-dvipdfmx-bin., guix-commits, 2024/05/29
- 22/66: gnu: Add texlive-hitex-bin., guix-commits, 2024/05/29
- 23/66: gnu: Add texlive-afm2pl-bin., guix-commits, 2024/05/29
- 16/66: gnu: Add texlive-ptex-bin., guix-commits, 2024/05/29
- 20/66: gnu: Add texlive-xetex-bin.,
guix-commits <=
- 24/66: gnu: Add texlive-m-tx-bin., guix-commits, 2024/05/29
- 26/66: gnu: Add texlive-gregoriotex-bin., guix-commits, 2024/05/29
- 27/66: gnu: Add texlive-pmx-bin., guix-commits, 2024/05/29
- 28/66: gnu: Add texlive-velthuis-bin., guix-commits, 2024/05/29
- 31/66: gnu: Add texlive-dvips-bin., guix-commits, 2024/05/29
- 32/66: gnu: Add texlive-psutils-bin., guix-commits, 2024/05/29
- 25/66: gnu: Add texlive-autosp-bin., guix-commits, 2024/05/29
- 29/66: gnu: Add texlive-bibtex8-bin., guix-commits, 2024/05/29
- 30/66: gnu: Add texlive-bibtexu-bin., guix-commits, 2024/05/29
- 33/66: gnu: Add texlive-tex4ht-bin., guix-commits, 2024/05/29