diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index c44a863587..8ae6f02c86 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -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")