mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: Add texlive-pmx-bin.
* gnu/packages/tex.scm (texlive-pmx-bin): New variable. (texlive-pmx)[propagated-inputs]: Add TEXLIVE-PMX-BIN. Change-Id: Ie392c5735f495d724e44ab1e3a88e19be00edaf5
This commit is contained in:
parent
a19631329b
commit
e2515315a2
1 changed files with 47 additions and 0 deletions
|
@ -25655,6 +25655,7 @@ (define-public texlive-pmx
|
|||
"1p9js9izv50vg7qqqmyg5jz4am4phhscqdfnn4nszlyfv3zkg7p3")))
|
||||
(outputs '("out" "doc"))
|
||||
(build-system texlive-build-system)
|
||||
(propagated-inputs (list texlive-pmx-bin))
|
||||
(home-page "https://ctan.org/pkg/pmx")
|
||||
(synopsis "Preprocessor for MusiXTeX")
|
||||
(description
|
||||
|
@ -25667,6 +25668,52 @@ (define-public texlive-pmx
|
|||
a score.")
|
||||
(license license:gpl2)))
|
||||
|
||||
(define-public texlive-pmx-bin
|
||||
(package
|
||||
(inherit texlive-bin)
|
||||
(name "texlive-pmx-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" '("pmx"))
|
||||
(delete-other-directories "texk" '())))))
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments texlive-bin)
|
||||
((#:configure-flags flags)
|
||||
#~(cons "--enable-pmx" (delete "--enable-web2c" #$flags)))
|
||||
((#:phases phases)
|
||||
#~(modify-phases #$phases
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(with-directory-excursion "utils/pmx"
|
||||
(invoke "make" "check")))))
|
||||
(replace 'install
|
||||
(lambda _
|
||||
(with-directory-excursion "utils/pmx"
|
||||
(invoke "make" "install"))))))))
|
||||
(native-inputs '())
|
||||
(inputs '())
|
||||
(propagated-inputs '())
|
||||
(home-page (package-home-page texlive-pmx))
|
||||
(synopsis "Binaries for @code{texlive-pmx}")
|
||||
(description
|
||||
"This package provides the binaries for @code{texlive-pmx}.")
|
||||
(license (package-license texlive-pmx))))
|
||||
|
||||
(define-public texlive-pmxchords
|
||||
(package
|
||||
(name "texlive-pmxchords")
|
||||
|
|
Loading…
Reference in a new issue