diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2024-05-28 15:37:22 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:45:26 +0200 |
commit | 08f55f34fea8c774df18ea6c61e8e9cf913ac039 (patch) | |
tree | f67b08756dcac3b5ba35f435e9bd041b03a35c50 | |
parent | 0823bab5f439d4979a8a2284be3ac2e00244c8d1 (diff) | |
download | guix-08f55f34fea8c774df18ea6c61e8e9cf913ac039.tar guix-08f55f34fea8c774df18ea6c61e8e9cf913ac039.tar.gz |
gnu: Add texlive-dtl-bin.
* gnu/packages/tex.scm (texlive-dtl-bin): New variable.
(texlive-dtl)[propagated-inputs]: Add TEXLIVE-DTL-BIN.
Change-Id: I27ea9d82451f96f3548f6556e9260736c96137c9
-rw-r--r-- | gnu/packages/tex.scm | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 00241e8e9f..6e9eafe931 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -34578,6 +34578,7 @@ information on creating packages and documentation.") "0kvnsr8nxrys99rp74wlxnisfripx6jpjjkqy38d3d4gw13cvb5g"))) (outputs '("out" "doc")) (build-system texlive-build-system) + (propagated-inputs (list texlive-dtl-bin)) (home-page "https://ctan.org/pkg/dtl") (synopsis "Tools to dis-assemble and re-assemble DVI files") (description @@ -34587,6 +34588,53 @@ which is readily readable by humans. The DTL bundle contains an assembler @command{dv2dt}, which produces DTL files from DVI files.") (license license:public-domain))) +(define-public texlive-dtl-bin + (package + (inherit texlive-bin) + (name "texlive-dtl-bin") + (source + (origin + (inherit texlive-source) + (modules '((guix build utils) + (ice-9 ftw))) + (snippet + #~(let ((delete-other-directories + (lambda (root keep) + (with-directory-excursion root + (for-each + delete-file-recursively + (scandir + "." + (lambda (file) + (and (not (member file (append keep '("." "..")))) + (eq? 'directory (stat:type (stat file))))))))))) + (delete-other-directories "libs" '()) + (delete-other-directories "utils" '()) + (delete-other-directories "texk" '("dtl")))))) + (arguments + (substitute-keyword-arguments (package-arguments texlive-bin) + ((#:configure-flags flags) + #~(cons "--enable-dtl" (delete "--enable-web2c" #$flags))) + ((#:phases phases) + #~(modify-phases #$phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "texk/dtl" + (invoke "make" "check"))))) + (replace 'install + (lambda _ + (with-directory-excursion "texk/dtl" + (invoke "make" "install")))))))) + (native-inputs (list pkg-config)) + (inputs (list texlive-libkpathsea)) + (propagated-inputs '()) + (home-page (package-home-page texlive-dtl)) + (synopsis "Binaries for @code{texlive-dtl}") + (description + "This package provides the binaries for @code{texlive-dtl}.") + (license (package-license texlive-dtl)))) + (define-public texlive-dtxgen (package (name "texlive-dtxgen") |