mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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
This commit is contained in:
parent
92f9c9975f
commit
b64307b38b
1 changed files with 47 additions and 0 deletions
|
@ -39699,12 +39699,59 @@ (define-public texlive-lacheck
|
|||
"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")
|
||||
|
|
Loading…
Reference in a new issue