mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: Add texlive-cjkutils-bin.
* gnu/packages/tex.scm (texlive-cjkutils-bin): New variable. (texlive-cjkutils)[propagated-inputs]: Add TEXLIVE-CJKUTILS-BIN. Change-Id: I0790442c9295a00fdb7024d844a75dcac2f9ad3a
This commit is contained in:
parent
f16db7fd1b
commit
102a3a3a04
1 changed files with 47 additions and 0 deletions
|
@ -9446,6 +9446,7 @@ (define-public texlive-cjkutils
|
|||
"0by2g05xv5dndnd78jz9y73fyswqhfvcbzcw8rzhvpvd6inrcdq8")))
|
||||
(outputs '("out" "doc"))
|
||||
(build-system texlive-build-system)
|
||||
(propagated-inputs (list texlive-cjkutils-bin))
|
||||
(home-page "https://ctan.org/pkg/cjk")
|
||||
(synopsis "CJK language support")
|
||||
(description
|
||||
|
@ -9458,6 +9459,52 @@ (define-public texlive-cjkutils
|
|||
supported.")
|
||||
(license license:gpl2)))
|
||||
|
||||
(define-public texlive-cjkutils-bin
|
||||
(package
|
||||
(inherit texlive-bin)
|
||||
(name "texlive-cjkutils-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/" '())
|
||||
(delete-other-directories "texk/" '("cjkutils"))))))
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments texlive-bin)
|
||||
((#:configure-flags flags)
|
||||
#~(cons "--enable-cjkutils-x" (delete "--enable-web2c" #$flags)))
|
||||
((#:phases phases)
|
||||
#~(modify-phases #$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"))))))))
|
||||
(native-inputs (list pkg-config))
|
||||
(inputs (list texlive-libkpathsea))
|
||||
(propagated-inputs '())
|
||||
(home-page (package-home-page texlive-cjkutils))
|
||||
(synopsis "Binaries for @code{texlive-cjkutils}")
|
||||
(description
|
||||
"This package provides the binaries for @code{texlive-cjkutils}.")
|
||||
(license (package-license texlive-cjkutils))))
|
||||
|
||||
(define-public texlive-clara
|
||||
(package
|
||||
(name "texlive-clara")
|
||||
|
|
Loading…
Reference in a new issue