[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
29/97: gnu: Add texlive-m-tx-bin.
From: |
guix-commits |
Subject: |
29/97: gnu: Add texlive-m-tx-bin. |
Date: |
Fri, 21 Jun 2024 08:22:55 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 33d3649ee5868bb95f267fc4b3711a18d14f604e
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon May 27 22:55:19 2024 +0200
gnu: Add texlive-m-tx-bin.
* gnu/packages/tex.scm (texlive-m-tx-bin): New variable.
(texlive-m-tx)[propagated-inputs]: Add TEXLIVE-M-TX-BIN.
Change-Id: Ia068b4062dd1e7d5c4af8011abf9435611c84fa1
---
gnu/packages/tex.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 9a97bd56c7..d8e2cda09e 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -20985,6 +20985,7 @@ files.")
(outputs '("out" "doc"))
(build-system texlive-build-system)
(arguments (list #:link-scripts #~(list "m-tx.lua")))
+ (propagated-inputs (list texlive-m-tx-bin))
(home-page "https://ctan.org/pkg/m-tx")
(synopsis "Preprocessor for @command{pmx}")
(description
@@ -20995,6 +20996,52 @@ development of M-Tx was to provide lyrics for music to
be typeset. In fact,
those who prefer its language.")
(license license:expat)))
+(define-public texlive-m-tx-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-m-tx-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" '("m-tx"))
+ (delete-other-directories "texk" '())))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons "--enable-m-tx" (delete "--enable-web2c" #$flags)))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "utils/m-tx"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "utils/m-tx"
+ (invoke "make" "install"))))))))
+ (native-inputs '())
+ (inputs '())
+ (propagated-inputs '())
+ (home-page (package-home-page texlive-m-tx))
+ (synopsis "Binary for @code{texlive-m-tx}")
+ (description
+ "This package provides the binary for @code{texlive-m-tx}.")
+ (license (package-license texlive-m-tx))))
+
(define-public texlive-macros2e
(package
(name "texlive-macros2e")
- 44/97: gnu: Add texlive-makeindex-bin., (continued)
- 44/97: gnu: Add texlive-makeindex-bin., guix-commits, 2024/06/21
- 45/97: gnu: Add texlive-metapost-bin., guix-commits, 2024/06/21
- 53/97: gnu: Add texlive-dviljk-bin., guix-commits, 2024/06/21
- 02/97: gnu: texlive-libkpathsea: Remove duplicate documentation., guix-commits, 2024/06/21
- 14/97: gnu: texlive-latex-bin: Create symlinks for "latex" variants., guix-commits, 2024/06/21
- 19/97: gnu: Add texlive-patgen-bin., guix-commits, 2024/06/21
- 24/97: gnu: Add texlive-dvipdfmx-bin., guix-commits, 2024/06/21
- 25/97: gnu: Add texlive-xetex-bin., guix-commits, 2024/06/21
- 27/97: gnu: Add texlive-hitex-bin., guix-commits, 2024/06/21
- 28/97: gnu: Add texlive-afm2pl-bin., guix-commits, 2024/06/21
- 29/97: gnu: Add texlive-m-tx-bin.,
guix-commits <=
- 33/97: gnu: Add texlive-velthuis-bin., guix-commits, 2024/06/21
- 35/97: gnu: Add texlive-bibtexu-bin., guix-commits, 2024/06/21
- 39/97: gnu: Add texlive-xdvi-bin., guix-commits, 2024/06/21
- 50/97: gnu: Add texlive-dtl-bin., guix-commits, 2024/06/21
- 52/97: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/06/21
- 54/97: gnu: Add texlive-dvipng-bin., guix-commits, 2024/06/21
- 56/97: gnu: Add texlive-lcdftypetools-bin., guix-commits, 2024/06/21
- 47/97: gnu: Add texlive-cjkutils-bin., guix-commits, 2024/06/21
- 55/97: gnu: Add texlive-dvisvgm-bin., guix-commits, 2024/06/21
- 80/97: gnu: texlive-hyphen-complete: Fix locations., guix-commits, 2024/06/21