[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/54: gnu: texlive-cjkutils: Build executables.
From: |
guix-commits |
Subject: |
13/54: gnu: texlive-cjkutils: Build executables. |
Date: |
Tue, 14 May 2024 15:34:15 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit a85d71b3a4dae0ae7dd4554f9617776bda64a532
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sat May 11 12:53:56 2024 +0200
gnu: texlive-cjkutils: Build executables.
* gnu/packages/tex.scm (texlive-cjkutils): Inherit from TEXLIVE-BIN.
[source]: Build from a trimmed TEXLIVE-SOURCE.
[arguments]: Build `cjkutils' as a single package.
[description]: Add Texinfo markup.
* gnu/packages/tex.scm (texlive-bin): Do not build cjkutils.
Change-Id: I5a14c98715940d27efbc6c31131d71351921542b
---
gnu/packages/tex.scm | 70 +++++++++++++++++++++++++++++++++-------------------
1 file changed, 45 insertions(+), 25 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index e86316b568..da4cad7d25 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -702,8 +702,14 @@ and should be preferred to it whenever a package would
otherwise depend on
'())
;; Disable tools built in other packages.
#$@(map (lambda (p) (string-append "--disable-" p))
- '("axodraw2" "chktex" "dvisvgm" "kpathsea" "psutils"
- "upmendex" "xindy"))))
+ '("axodraw2"
+ "chktex"
+ "cjkutils"
+ "dvisvgm"
+ "kpathsea"
+ "psutils"
+ "upmendex"
+ "xindy"))))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'locate-external-kpathsea
@@ -9222,36 +9228,50 @@ adjust locations and kerning of CJK punctuation marks.")
(define-public texlive-cjkutils
(package
+ (inherit texlive-bin)
(name "texlive-cjkutils")
- (version (number->string %texlive-revision))
- (source (texlive-origin
- name version
- (list "doc/man/man1/bg5conv.1"
- "doc/man/man1/bg5conv.man1.pdf"
- "doc/man/man1/cef5conv.1"
- "doc/man/man1/cef5conv.man1.pdf"
- "doc/man/man1/cefconv.1"
- "doc/man/man1/cefconv.man1.pdf"
- "doc/man/man1/cefsconv.1"
- "doc/man/man1/cefsconv.man1.pdf"
- "doc/man/man1/extconv.1"
- "doc/man/man1/extconv.man1.pdf"
- "doc/man/man1/hbf2gf.1"
- "doc/man/man1/hbf2gf.man1.pdf"
- "doc/man/man1/sjisconv.1"
- "doc/man/man1/sjisconv.man1.pdf"
- "hbf2gf/")
- (base32
- "0by2g05xv5dndnd78jz9y73fyswqhfvcbzcw8rzhvpvd6inrcdq8")))
- (outputs '("out" "doc"))
- (build-system texlive-build-system)
+ (source
+ (origin
+ (inherit texlive-source)
+ (modules '((guix build utils)
+ (ice-9 ftw)))
+ (snippet
+ #~(let ((delete-other-directories
+ (lambda (root dirs)
+ (with-directory-excursion root
+ (for-each
+ delete-file-recursively
+ (scandir "."
+ (lambda (file)
+ (and (not (member file (append '("." "..")
dirs)))
+ (eq? 'directory (stat:type (stat
file)))))))))))
+ (delete-other-directories "libs/" '())
+ (delete-other-directories "utils/" '())
+ (delete-other-directories "texk/" '("cjkutils"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-all-pkgs"
+ "--enable-cjkutils-x"
+ (delete "--disable-cjkutils" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/cjkutils"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/cjkutils"
+ (invoke "make" "install"))))))))
(home-page "https://ctan.org/pkg/cjk")
(synopsis "CJK language support")
(description
"CJK is a macro package for LaTeX, providing simultaneous support for
various Asian scripts in many encodings (including Unicode): Chinese (both
traditional and simplified), Japanese, Korean and Thai. A special add-on
-feature is an interface to the Emacs editor (cjk-enc.el) which gives
+feature is an interface to the Emacs editor (@file{cjk-enc.el}) which gives
simultaneous, easy-to-use support to a bunch of other scripts in addition to
the above --- Cyrillic, Greek, Latin-based scripts, Russian and Vietnamese are
supported.")
- 06/54: gnu: texlive-bin: Remove conditional tests on some architectures., (continued)
- 06/54: gnu: texlive-bin: Remove conditional tests on some architectures., guix-commits, 2024/05/14
- 04/54: gnu: texlive-bin, texlive-kpathsea: Refer to TEXLIVE-SOURCE., guix-commits, 2024/05/14
- 07/54: gnu: texlive-libkpathsea: Set sane values in "texmf.cnf"., guix-commits, 2024/05/14
- 12/54: gnu: texlive-bin: Skip building axodraw2., guix-commits, 2024/05/14
- 03/54: gnu: texlive-psutils: Build executables., guix-commits, 2024/05/14
- 09/54: gnu: texlive-upmendex: Build executable., guix-commits, 2024/05/14
- 08/54: gnu: texlive-dvisvgm: Build executables., guix-commits, 2024/05/14
- 14/54: gnu: texlive-lacheck: Build executable., guix-commits, 2024/05/14
- 15/54: gnu: texlive-lcdftypetools: Build executables., guix-commits, 2024/05/14
- 10/54: gnu: texlive-xindy: Refactor package., guix-commits, 2024/05/14
- 13/54: gnu: texlive-cjkutils: Build executables.,
guix-commits <=
- 11/54: gnu: texlive-bin: Do not build Xindy., guix-commits, 2024/05/14
- 17/54: gnu: texlive-dvipng: Build executables., guix-commits, 2024/05/14
- 23/54: gnu: texlive-ps2eps: Build executables., guix-commits, 2024/05/14
- 16/54: gnu: texlive-t1utils: Build executables., guix-commits, 2024/05/14
- 18/54: gnu: texlive-afm2pl: Build executable., guix-commits, 2024/05/14
- 19/54: gnu: Add texlive-libptexenc., guix-commits, 2024/05/14
- 22/54: gnu: texlive-velthuis: Build executable., guix-commits, 2024/05/14
- 24/54: gnu: texlive-xpdfopen: Build executables., guix-commits, 2024/05/14
- 25/54: gnu: texlive-libkpathsea: Tiny refactoring., guix-commits, 2024/05/14
- 21/54: gnu: texlive-autosp: Build executable., guix-commits, 2024/05/14