guix-commits
[Top][All Lists]
Advanced

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

18/71: gnu: Add julia-ogg-jll.


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

efraim pushed a commit to branch master
in repository guix.

commit 75ea06d8db27fb58fcf7a673af367b8805598d52
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun May 30 11:00:20 2021 +0300

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

diff --git a/gnu/packages/julia-jll.scm b/gnu/packages/julia-jll.scm
index ec3253c..1cf9b7d 100644
--- a/gnu/packages/julia-jll.scm
+++ b/gnu/packages/julia-jll.scm
@@ -37,7 +37,8 @@
   #:use-module (gnu packages mp3)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages video)
-  #:use-module (gnu packages web))
+  #:use-module (gnu packages web)
+  #:use-module (gnu packages xiph))
 
 ;;; TODO: Remove this autogenerated source package
 ;;; and build it from realse source using 
<https://github.com/JuliaPackaging/Yggdrasil/>
@@ -552,6 +553,42 @@ used in autogenerated packages via 
@code{BinaryBuilder.jl}.")
 wrappers.")
     (license license:expat)))
 
+(define-public julia-ogg-jll
+  (package
+    (name "julia-ogg-jll")
+    (version "1.3.4+0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/JuliaBinaryWrappers/Ogg_jll.jl";)
+               (commit (string-append "Ogg-v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "0p27wgy48gfw8g0hzlvcxrp0346nqnyxa88pydm87ll3sfx9b4ww"))))
+    (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\"Ogg\"")
+                    (string-append "\"" (assoc-ref inputs "libogg") "\""))))
+               ;; There's a Julia file for each platform, override them all
+               (find-files "src/wrappers/" "\\.jl$")))))))
+    (inputs
+     `(("libogg" ,libogg)))
+    (propagated-inputs
+     `(("julia-jllwrappers" ,julia-jllwrappers)))
+    (home-page "https://github.com/JuliaBinaryWrappers/Ogg_jll.jl";)
+    (synopsis "Libogg library wrappers")
+    (description "This package provides a wrapper for the libogg library.")
+    (license license:expat)))
+
 (define-public julia-openspecfun-jll
   (let ((commit "6c505cce3bdcd9cd2b15b4f9362ec3a42c4da71c"))
     (package



reply via email to

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