guix-commits
[Top][All Lists]
Advanced

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

14/71: gnu: Add julia-fribidi-jll.


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

efraim pushed a commit to branch master
in repository guix.

commit a1b7d59ca61f687804bc5958e1fa08fda27d43c5
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun May 30 10:50:21 2021 +0300

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

diff --git a/gnu/packages/julia-jll.scm b/gnu/packages/julia-jll.scm
index 05f5d2a..fc3e5ab 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 fribidi)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages image)
   #:use-module (gnu packages imagemagick)
@@ -120,6 +121,42 @@ originating @code{build_tarballs.jl} script can be found 
on the community
 build tree Yggdrasil.")
     (license license:expat)))
 
+(define-public julia-fribidi-jll
+  (package
+    (name "julia-fribidi-jll")
+    (version "1.0.5+5")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/JuliaBinaryWrappers/FriBidi_jll.jl";)
+               (commit (string-append "FriBidi-v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "1nmaqhsnm51hyvnbr9riqfp3f636xyxn2ybych598xpkhhjqldwh"))))
+    (build-system julia-build-system)
+    (arguments
+     '(#:tests? #f ; no runtests
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'override-binary-path
+           (lambda* (#:key inputs #:allow-other-keys)
+             (map
+               (lambda (wrapper)
+                 (substitute* wrapper
+                   (("artifact\"FriBidi\"")
+                    (string-append "\"" (assoc-ref inputs "fribidi") "\""))))
+               ;; There's a Julia file for each platform, override them all
+               (find-files "src/wrappers/" "\\.jl$")))))))
+    (inputs
+     `(("fribidi" ,fribidi)))
+    (propagated-inputs
+     `(("julia-jllwrappers" ,julia-jllwrappers)))
+    (home-page "https://github.com/JuliaBinaryWrappers/FriBidi_jll.jl";)
+    (synopsis "Fribidi library wrappers")
+    (description "This package provides a wrapper for the fribidi library.")
+    (license license:expat)))
+
 (define-public julia-gumbo-jll
   (package
     (name "julia-gumbo-jll")



reply via email to

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