guix-commits
[Top][All Lists]
Advanced

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

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


From: guix-commits
Subject: 42/72: gnu: Add texlive-metapost-bin.
Date: Mon, 3 Jun 2024 09:00:06 -0400 (EDT)

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

commit 68fc8eefc786c1d9913fe11dfb08195d5627aafa
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 9d61ea352a..2849cc90c8 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -57813,7 +57813,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
@@ -57822,6 +57822,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]