[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
31/53: gnu: texlive-m-tx: Build executable.
From: |
guix-commits |
Subject: |
31/53: gnu: texlive-m-tx: Build executable. |
Date: |
Mon, 13 May 2024 10:02:23 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 29d4630ba88ec637d44e37e5016519112a38ad25
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun May 12 12:28:45 2024 +0200
gnu: texlive-m-tx: Build executable.
* gnu/packages/tex.scm (texlive-m-tx-bin): New variable.
(texlive-m-tx)[arguments]<#:phases>: Include executables.
[native-inputs]: Add TEXLIVE-M-TX-BIN.
* gnu/packages/tex.scm (texlive-bin): Do not build m-tx.
Change-Id: Ibc3689da654a752d68bf5f412f3bdba0d282baf1
---
gnu/packages/tex.scm | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 59 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 17f28ab9a4..dd2a92324b 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -770,6 +770,7 @@ and should be preferred to it whenever a package would
otherwise depend on
"kpathsea"
"lacheck"
"lcdf-typetools"
+ "m-tx"
"pmx"
"ps2eps"
"psutils"
@@ -20981,6 +20982,48 @@ LuaLaTeX. It calls LilyPond to compile scores, then
includes the produced
files.")
(license license:expat)))
+(define 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* "--disable-all-pkgs"
+ "--enable-m-tx"
+ (delete "--disable-m-tx" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-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 '())))
+
(define-public texlive-m-tx
(package
(name "texlive-m-tx")
@@ -20997,7 +21040,22 @@ files.")
"1sakzv7r6mybx0k7k0fi1qb789nf7lvbl0ns8s0hhc9fz37b0br5")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
- (arguments (list #:link-scripts #~(list "m-tx.lua")))
+ (arguments
+ (list
+ #:link-scripts #~(list "m-tx.lua")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'link-scripts 'install-bin
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ (let ((source #$(this-package-native-input "texlive-m-tx-bin")))
+ (with-directory-excursion (string-append #$output "/bin")
+ ;; Install non-scripts, already taken care of with
+ ;; `link-scripts' phase.
+ (for-each (lambda (f) (install-file f "."))
+ (find-files (string-append source "/bin")
+ (lambda (_ s)
+ (eq? 'regular (stat:type
s))))))))))))
+ (native-inputs (list texlive-m-tx-bin))
(home-page "https://ctan.org/pkg/m-tx")
(synopsis "Preprocessor for @command{pmx}")
(description
- 05/53: gnu: texlive-bin: Remove unnecessary phases., (continued)
- 05/53: gnu: texlive-bin: Remove unnecessary phases., guix-commits, 2024/05/13
- 06/53: gnu: texlive-bin: Remove conditional tests on some architectures., guix-commits, 2024/05/13
- 07/53: gnu: texlive-libkpathsea: Set sane values in "texmf.cnf"., guix-commits, 2024/05/13
- 02/53: gnu: texlive-chktex: Fix runtime error., guix-commits, 2024/05/13
- 24/53: gnu: texlive-xpdfopen: Build executables., guix-commits, 2024/05/13
- 09/53: gnu: texlive-upmendex: Build executable., guix-commits, 2024/05/13
- 17/53: gnu: texlive-dvipng: Build executables., guix-commits, 2024/05/13
- 27/53: gnu: texlive-xml2pmx: Build executable., guix-commits, 2024/05/13
- 23/53: gnu: texlive-ps2eps: Build executables., guix-commits, 2024/05/13
- 29/53: gnu: texlive-vlna: Build executable., guix-commits, 2024/05/13
- 31/53: gnu: texlive-m-tx: Build executable.,
guix-commits <=
- 33/53: gnu: texlive-xdvi: Build executables., guix-commits, 2024/05/13
- 28/53: gnu: texlive-tpic2pdftex: Build executable., guix-commits, 2024/05/13
- 40/53: gnu: texlive-gsftopk: Build executables., guix-commits, 2024/05/13
- 41/53: gnu: texlive-gregoriotex: Build executables., guix-commits, 2024/05/13
- 42/53: gnu: texlive-dvips: Build executables., guix-commits, 2024/05/13
- 49/53: gnu: texlive-detex: Build executable., guix-commits, 2024/05/13
- 52/53: gnu: texlive-bibtexu: Build executable., guix-commits, 2024/05/13
- 46/53: gnu: texlive-dviljk: Build executables., guix-commits, 2024/05/13
- 47/53: gnu: texlive-dvidvi: Build executable., guix-commits, 2024/05/13
- 50/53: gnu: texlive-bin: Only build "web2c" package., guix-commits, 2024/05/13