gnu: Add texlive-metapost-bin.

* gnu/packages/tex.scm (texlive-metapost-bin): New variable.
(texlive-metapost)[propagated-inputs]: Add TEXLIVE-METAPOST-BIN.

Change-Id: I6826d2c74d107ef5d58651b1bb6838aec0fdb6aa
This commit is contained in:
Nicolas Goaziou 2024-05-28 07:20:20 +02:00 committed by Ludovic Courtès
parent c0b05e765f
commit 9ccd4f8dd4
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -57843,7 +57843,7 @@ (define-public texlive-metapost
"0i6mjq59n7vll81m7r2k83x0q6xx7cg6qcia46298zqc0b0l3qb0")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
(propagated-inputs (list texlive-kpathsea))
(propagated-inputs (list texlive-kpathsea texlive-metapost-bin))
(home-page "https://ctan.org/pkg/metapost")
(synopsis "Create scalable illustrations")
(description
@ -57852,6 +57852,34 @@ (define-public texlive-metapost
than the bitmaps Metafont creates.")
(license license:lppl)))
(define-public texlive-metapost-bin
(package
(inherit texlive-bin)
(name "texlive-metapost-bin")
(arguments
(substitute-keyword-arguments (package-arguments texlive-bin)
((#:configure-flags flags)
#~(delete "--enable-web2c" #$flags))
((#:phases phases)
#~(modify-phases #$phases
(replace 'install
(lambda _
(let ((bin (string-append #$output "/bin")))
(with-directory-excursion "texk/web2c"
(invoke "make" "mpost")
(install-file "mpost" bin))
(with-directory-excursion bin
(for-each (lambda (link) (symlink "mpost" link))
'("dvitomp" "mfplain" "r-mpost"))))))))))
(native-inputs (list pkg-config))
(inputs (modify-inputs (package-inputs texlive-bin)
(append cairo mpfr)))
(home-page (package-home-page texlive-metapost))
(synopsis "Binary for @code{texlive-metapost}")
(description
"This package provides the binary for @code{texlive-metapost}.")
(license (package-license texlive-metapost))))
(define-public texlive-acmart
(package
(name "texlive-acmart")