diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2024-05-28 00:39:50 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:45:25 +0200 |
commit | 9a9a45449534295af91d1dd1f1076d1a60a0d639 (patch) | |
tree | 2287e4d962e84204499983755387a7ee0a9689f0 /gnu/packages | |
parent | a3756547f5c33f53525ca727980da370c2a5839c (diff) | |
download | guix-9a9a45449534295af91d1dd1f1076d1a60a0d639.tar.gz guix-9a9a45449534295af91d1dd1f1076d1a60a0d639.zip |
gnu: Add texlive-upmendex-bin.
* gnu/packages/tex.scm (texlive-upmendex-bin): New variable.
(texlive-upmendex)[propagated-inputs]: Add TEXLIVE-UPMENDEX-BIN.
Change-Id: I4212732a116800942577fc2e1fa7b8179fe094b0
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/tex.scm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 5955c8c64b..7b91e9c53f 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -46063,6 +46063,7 @@ chosen and developed with an emphasis on drawing graphs in economics.") "0mj8nmqr3z7b802kvjmnkckq89l694an7s639yghf3b9b5v7xihx"))) (outputs '("out" "doc")) (build-system texlive-build-system) + (propagated-inputs (list texlive-upmendex-bin)) (home-page "https://ctan.org/pkg/upmendex") (synopsis "Multilingual index processor") (description @@ -46088,6 +46089,52 @@ Zhuyin) for Chinese Han scripts (Hanzi ideographs). @end itemize") (license license:bsd-3))) +(define-public texlive-upmendex-bin + (package + (inherit texlive-bin) + (name "texlive-upmendex-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/" '("upmendex")))))) + (arguments + (substitute-keyword-arguments (package-arguments texlive-bin) + ((#:configure-flags flags) + #~(cons "--enable-upmendex" (delete "--enable-web2c" #$flags))) + ((#:phases phases) + #~(modify-phases #$phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "texk/upmendex" + (invoke "make" "check"))))) + (replace 'install + (lambda* (#:key inputs native-inputs #:allow-other-keys) + (with-directory-excursion "texk/upmendex" + (invoke "make" "install")))))))) + (native-inputs (list pkg-config)) + (inputs (list icu4c texlive-libkpathsea)) + (propagated-inputs '()) + (home-page (package-home-page texlive-upmendex)) + (synopsis "Binary for @code{texlive-upmendex}") + (description + "This package provides the binary for @code{texlive-upmendex}.") + (license (package-license texlive-upmendex)))) + (define-public texlive-utf8mex (package (name "texlive-utf8mex") |