[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
54/69: gnu: Add texlive-lacheck-bin.
From: |
guix-commits |
Subject: |
54/69: gnu: Add texlive-lacheck-bin. |
Date: |
Fri, 31 May 2024 19:04:55 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit fc3612d40d232701b6598c0c9b16afa4ff50358f
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue May 28 16:19:31 2024 +0200
gnu: Add texlive-lacheck-bin.
* gnu/packages/tex.scm (texlive-lacheck-bin): New variable.
(texlive-lacheck)[propagated-inputs]: Add TEXLIVE-LACHECK-BIN.
Change-Id: Ibc2032c323f7631469d00291d9769327620b82de
---
gnu/packages/tex.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index e9d7d78638..b84bf1364a 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -39686,12 +39686,59 @@ generated code can be included in any LaTeX
document.")
"1hhx65yd800bl3y2sq20lix60wd2b2j3k7n9s788mlsn8b0p7yq3")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
+ (propagated-inputs (list texlive-lacheck-bin))
(home-page "https://ctan.org/pkg/lacheck")
(synopsis "LaTeX checker")
(description
"Lacheck is a tool for finding common mistakes in LaTeX documents.")
(license license:gpl3+)))
+(define-public texlive-lacheck-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-lacheck-bin")
+ (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 "--enable-lacheck" (delete "--enable-web2c" #$flags)))
+ ((#:phases phases)
+ #~(modify-phases #$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 '())
+ (propagated-inputs '())
+ (home-page (package-home-page texlive-lacheck))
+ (synopsis "Binary for @code{texlive-lacheck}")
+ (description
+ "This package provides the binary for @code{texlive-lacheck}.")
+ (license (package-license texlive-lacheck))))
+
(define-public texlive-latex-git-log
(package
(name "texlive-latex-git-log")
- 51/69: gnu: Add texlive-dvipng-bin., (continued)
- 51/69: gnu: Add texlive-dvipng-bin., guix-commits, 2024/05/31
- 38/69: gnu: Add texlive-ttfutils-bin., guix-commits, 2024/05/31
- 46/69: gnu: Add texlive-detex-bin., guix-commits, 2024/05/31
- 47/69: gnu: Add texlive-dtl-bin., guix-commits, 2024/05/31
- 41/69: gnu: Add texlive-makeindex-bin., guix-commits, 2024/05/31
- 44/69: gnu: Add texlive-cjkutils-bin., guix-commits, 2024/05/31
- 43/69: gnu: Add texlive-vlna-bin., guix-commits, 2024/05/31
- 42/69: gnu: Add texlive-metapost-bin., guix-commits, 2024/05/31
- 52/69: gnu: Add texlive-dvisvgm-bin., guix-commits, 2024/05/31
- 53/69: gnu: Add texlive-lcdftypetools-bin., guix-commits, 2024/05/31
- 54/69: gnu: Add texlive-lacheck-bin.,
guix-commits <=
- 49/69: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/05/31
- 55/69: gnu: Add texlive-seetexk-bin., guix-commits, 2024/05/31
- 56/69: gnu: Add texlive-ps2eps-bin., guix-commits, 2024/05/31
- 58/69: gnu: texlive-texdoctk: Fix runtime error., guix-commits, 2024/05/31
- 66/69: gnu: texlive-axodraw2: Build binary separately., guix-commits, 2024/05/31
- 69/69: gnu: Update commentary section in "tex.scm"., guix-commits, 2024/05/31
- 61/69: gnu: Add texlive-xml2pmx-bin., guix-commits, 2024/05/31
- 60/69: gnu: texlive-kpathsea: Propagate the binaries., guix-commits, 2024/05/31
- 62/69: gnu: texlive-dviout-util: Build binaries separately., guix-commits, 2024/05/31
- 64/69: gnu: texlive-dvipos: Build binaries separately., guix-commits, 2024/05/31