[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27/53: gnu: texlive-xml2pmx: Build executable.
From: |
guix-commits |
Subject: |
27/53: gnu: texlive-xml2pmx: Build executable. |
Date: |
Mon, 13 May 2024 04:50:08 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit fd39b29754ed6831fe3d4b0d6eb259d9c40f9f22
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sat May 11 18:01:15 2024 +0200
gnu: texlive-xml2pmx: Build executable.
* gnu/packages/tex.scm (texlive-xml2pmx): Inherit from TEXLIVE-BIN.
[source]: Build from a trimmed TEXLIVE-SOURCE.
[arguments]: Build `xml2pmx' as a single package.
* gnu/packages/tex.scm (texlive-bin): Do not build xml2pmx.
Change-Id: I4dc626a4f03266750cbe1a55a6197695ff8512bd
---
gnu/packages/tex.scm | 46 +++++++++++++++++++++++++++++++++++++---------
1 file changed, 37 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 826fbebdbb..ce858c27c2 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -776,6 +776,7 @@ and should be preferred to it whenever a package would
otherwise depend on
"texdoctk"
"upmendex"
"xindy"
+ "xml2pmx"
"xpdfopen"))))
#:phases
#~(modify-phases %standard-phases
@@ -47270,16 +47271,43 @@ correctly; and define two extra commands:
@code{\\vfrac} and
(define-public texlive-xml2pmx
(package
+ (inherit texlive-bin)
(name "texlive-xml2pmx")
- (version (number->string %texlive-revision))
- (source (texlive-origin
- name version
- (list "doc/man/man1/xml2pmx.1"
- "doc/man/man1/xml2pmx.man1.pdf")
- (base32
- "1d3ralqh0b71scd59b4hmm707yfrz1rj28ni2lzkhbb1ql73bvah")))
- (outputs '("out" "doc"))
- (build-system texlive-build-system)
+ (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" '("xml2pmx"))
+ (delete-other-directories "texk" '())))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-all-pkgs"
+ "--enable-xml2pmx"
+ (delete "--disable-xml2pmx" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "utils/xml2pmx"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "utils/xml2pmx"
+ (invoke "make" "install"))))))))
(home-page "https://ctan.org/pkg/xml2pmx")
(synopsis "Convert MusicXML to PMX and MusiXTeX")
(description
- 08/53: gnu: texlive-dvisvgm: Build executables., (continued)
- 08/53: gnu: texlive-dvisvgm: Build executables., guix-commits, 2024/05/13
- 13/53: gnu: texlive-cjkutils: Build executables., guix-commits, 2024/05/13
- 14/53: gnu: texlive-lacheck: Build executable., guix-commits, 2024/05/13
- 12/53: gnu: texlive-bin: Skip building axodraw2., guix-commits, 2024/05/13
- 16/53: gnu: texlive-t1utils: Build executables., guix-commits, 2024/05/13
- 18/53: gnu: texlive-afm2pl: Build executable., guix-commits, 2024/05/13
- 20/53: gnu: texlive-dvi2tty: Build executables., guix-commits, 2024/05/13
- 35/53: gnu: texlive-tex4ht: Build executables., guix-commits, 2024/05/13
- 23/53: gnu: texlive-ps2eps: Build executables., guix-commits, 2024/05/13
- 31/53: gnu: texlive-m-tx: Build executable., guix-commits, 2024/05/13
- 27/53: gnu: texlive-xml2pmx: Build executable.,
guix-commits <=
- 41/53: gnu: texlive-gregoriotex: Build executables., guix-commits, 2024/05/13
- 43/53: gnu: texlive-dvipos: Build executables., guix-commits, 2024/05/13
- 22/53: gnu: texlive-velthuis: Build executable., guix-commits, 2024/05/13
- 40/53: gnu: texlive-gsftopk: Build executables., guix-commits, 2024/05/13
- 21/53: gnu: texlive-autosp: Build executable., guix-commits, 2024/05/13
- 24/53: gnu: texlive-xpdfopen: Build executables., guix-commits, 2024/05/13
- 26/53: gnu: texlive-texdoctk: Fix runtime error., guix-commits, 2024/05/13
- 25/53: gnu: texlive-libkpathsea: Tiny refactoring., guix-commits, 2024/05/13
- 32/53: gnu: texlive-bin: Ignore "utils" directory., guix-commits, 2024/05/13
- 36/53: gnu: texlive-seetexk: Build executables., guix-commits, 2024/05/13