guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

42/69: gnu: Add texlive-metapost-bin.


From: guix-commits
Subject: 42/69: gnu: Add texlive-metapost-bin.
Date: Fri, 31 May 2024 19:04:50 -0400 (EDT)

ngz pushed a commit to branch tex-team
in repository guix.

commit 47305ad03ad8d401937f2115b06460e1d6dd484e
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue May 28 07:20:20 2024 +0200

    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
---
 gnu/packages/tex.scm | 30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 738662d99c..5a2aa95d26 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -57816,7 +57816,7 @@ The package contains both the original TrueType font 
and the derived Type
               "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
@@ -57825,6 +57825,34 @@ technical illustrations.  Its output is scalable 
PostScript or SVG, rather
 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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]