[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/55: gnu: texlive-lacheck: Build executable.
From: |
guix-commits |
Subject: |
14/55: gnu: texlive-lacheck: Build executable. |
Date: |
Sat, 18 May 2024 10:33:26 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit ac9213945a0ac92be74db7716b5789fadce7212f
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sat May 11 13:06:50 2024 +0200
gnu: texlive-lacheck: Build executable.
* gnu/packages/tex.scm (texlive-lacheck): Inherit from TEXLIVE-BIN.
[source]: Build from a trimmed TEXLIVE-SOURCE.
[arguments]: Build `lacheck' as a single package.
* gnu/packages/tex.scm (texlive-bin): Do not build lacheck.
Change-Id: I0a693ca80a932735a7a203dd64d7f51727947daa
---
gnu/packages/tex.scm | 48 +++++++++++++++++++++++++++++++++++++++---------
1 file changed, 39 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index da4cad7d25..b75a273e39 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -707,6 +707,7 @@ and should be preferred to it whenever a package would
otherwise depend on
"cjkutils"
"dvisvgm"
"kpathsea"
+ "lacheck"
"psutils"
"upmendex"
"xindy"))))
@@ -38356,16 +38357,45 @@ generated code can be included in any LaTeX
document.")
(define-public texlive-lacheck
(package
+ (inherit texlive-bin)
(name "texlive-lacheck")
- (version (number->string %texlive-revision))
- (source (texlive-origin
- name version
- (list "doc/man/man1/lacheck.1"
- "doc/man/man1/lacheck.man1.pdf")
- (base32
- "1hhx65yd800bl3y2sq20lix60wd2b2j3k7n9s788mlsn8b0p7yq3")))
- (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" '("lacheck"))
+ (delete-other-directories "texk" '())))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-all-pkgs"
+ "--enable-lacheck"
+ (delete "--disable-lacheck" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "utils/lacheck"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "utils/lacheck"
+ (invoke "make" "install"))))))))
+ (native-inputs '())
+ (inputs '())
(home-page "https://ctan.org/pkg/lacheck")
(synopsis "LaTeX checker")
(description
- 05/55: gnu: texlive-bin: Remove unnecessary phases., (continued)
- 05/55: gnu: texlive-bin: Remove unnecessary phases., guix-commits, 2024/05/18
- 06/55: gnu: texlive-bin: Remove conditional tests on some architectures., guix-commits, 2024/05/18
- 07/55: gnu: texlive-libkpathsea: Set sane values in "texmf.cnf"., guix-commits, 2024/05/18
- 08/55: gnu: texlive-dvisvgm: Build executables., guix-commits, 2024/05/18
- 09/55: gnu: texlive-upmendex: Build executable., guix-commits, 2024/05/18
- 10/55: gnu: texlive-xindy: Refactor package., guix-commits, 2024/05/18
- 12/55: gnu: texlive-bin: Skip building axodraw2., guix-commits, 2024/05/18
- 11/55: gnu: texlive-bin: Do not build Xindy., guix-commits, 2024/05/18
- 15/55: gnu: texlive-lcdftypetools: Build executables., guix-commits, 2024/05/18
- 13/55: gnu: texlive-cjkutils: Build executables., guix-commits, 2024/05/18
- 14/55: gnu: texlive-lacheck: Build executable.,
guix-commits <=
- 16/55: gnu: texlive-t1utils: Build executables., guix-commits, 2024/05/18
- 17/55: gnu: texlive-dvipng: Build executables., guix-commits, 2024/05/18
- 18/55: gnu: texlive-afm2pl: Build executable., guix-commits, 2024/05/18
- 20/55: gnu: texlive-dvi2tty: Build executables., guix-commits, 2024/05/18
- 21/55: gnu: texlive-autosp: Build executable., guix-commits, 2024/05/18
- 22/55: gnu: texlive-velthuis: Build executable., guix-commits, 2024/05/18
- 23/55: gnu: texlive-ps2eps: Build executables., guix-commits, 2024/05/18
- 25/55: gnu: texlive-libkpathsea: Tiny refactoring., guix-commits, 2024/05/18
- 19/55: gnu: Add texlive-libptexenc., guix-commits, 2024/05/18
- 26/55: gnu: texlive-texdoctk: Fix runtime error., guix-commits, 2024/05/18