guix-commits
[Top][All Lists]
Advanced

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

19/71: gnu: Add julia-libvorbis-jll.


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

efraim pushed a commit to branch master
in repository guix.

commit 92e817ea15c08654f8961d75fbd879266c3c9dad
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun May 30 11:02:30 2021 +0300

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

diff --git a/gnu/packages/julia-jll.scm b/gnu/packages/julia-jll.scm
index 1cf9b7d..9e542fb 100644
--- a/gnu/packages/julia-jll.scm
+++ b/gnu/packages/julia-jll.scm
@@ -513,6 +513,44 @@ used in autogenerated packages via 
@code{BinaryBuilder.jl}.")
     (description "This package provides a wrapper for libtiff")
     (license license:expat)))
 
+(define-public julia-libvorbis-jll
+  (package
+    (name "julia-libvorbis-jll")
+    (version "1.3.6+4")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/JuliaBinaryWrappers/libvorbis_jll.jl";)
+               (commit (string-append "libvorbis-v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "1zmwhpjy6gr865psjn600g6ickskp4sq34qf1qg8ji6x4v09pzrh"))))
+    (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\"libvorbis\"")
+                    (string-append "\"" (assoc-ref inputs "libvorbis") "\""))))
+               ;; There's a Julia file for each platform, override them all
+               (find-files "src/wrappers/" "\\.jl$")))))))
+    (inputs
+     `(("libvorbis" ,libvorbis)))
+    (propagated-inputs
+     `(("julia-jllwrappers" ,julia-jllwrappers)
+       ("julia-ogg-jll" ,julia-ogg-jll)))
+    (home-page "https://github.com/JuliaBinaryWrappers/libvorbis_jll.jl";)
+    (synopsis "Libvorbis library wrappers")
+    (description
+     "This package provides a wrapper for the libvorbis audio library.")
+    (license license:expat)))
+
 (define-public julia-mbedtls-jll
   (package
     (name "julia-mbedtls-jll")



reply via email to

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