guix-commits
[Top][All Lists]
Advanced

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

15/71: gnu: Add julia-freetype2-jll.


From: guix-commits
Subject: 15/71: gnu: Add julia-freetype2-jll.
Date: Sun, 30 May 2021 05:57:33 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 741aab4c424732d2c052d873a660f94c676e9f92
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun May 30 10:53:06 2021 +0300

    gnu: Add julia-freetype2-jll.
    
    * gnu/packages/julia-jll.scm (julia-freetype2-jll): New variable.
---
 gnu/packages/julia-jll.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/julia-jll.scm b/gnu/packages/julia-jll.scm
index fc3e5ab..26df3ee 100644
--- a/gnu/packages/julia-jll.scm
+++ b/gnu/packages/julia-jll.scm
@@ -26,6 +26,7 @@
   #:use-module (guix build-system julia)
   #:use-module (gnu packages)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages fontutils)
   #:use-module (gnu packages fribidi)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages image)
@@ -121,6 +122,48 @@ originating @code{build_tarballs.jl} script can be found 
on the community
 build tree Yggdrasil.")
     (license license:expat)))
 
+(define-public julia-freetype2-jll
+  (package
+    (name "julia-freetype2-jll")
+    (version "2.10.4+0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/JuliaBinaryWrappers/FreeType2_jll.jl";)
+             (commit (string-append "FreeType2-v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "03lgmb59lipc3bi7z22j4a53bbjmcwkf0xzpwan889p1ix3ry1lr"))))
+    (build-system julia-build-system)
+    (arguments
+     '(#:tests? #f                      ; No runtests.jl
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'override-binary-path
+           (lambda* (#:key inputs #:allow-other-keys)
+             (map
+              (lambda (wrapper)
+                (substitute* wrapper
+                  (("generate_wrapper_header.*")
+                   (string-append
+                    "generate_wrapper_header(\"FreeType2\", \""
+                    (assoc-ref inputs "freetype") "\")\n"))))
+              ;; There's a Julia file for each platform, override them all
+              (find-files "src/wrappers/" "\\.jl$"))
+             #t)))))
+    (inputs
+     `(("freetype" ,freetype)))
+    (propagated-inputs
+     `(("julia-jllwrappers" ,julia-jllwrappers)
+       ("julia-bzip2-jll" ,julia-bzip2-jll)
+       ("julia-zlib-jll" ,julia-zlib-jll)))
+    (home-page "https://github.com/JuliaBinaryWrappers/FreeType2_jll.jl";)
+    (synopsis "Freetype2 binary wrappers")
+    (description "This Julia module provides a wrapper for the freetype font
+rendering library.")
+    (license license:expat)))
+
 (define-public julia-fribidi-jll
   (package
     (name "julia-fribidi-jll")



reply via email to

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