guix-commits
[Top][All Lists]
Advanced

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

16/71: gnu: Add julia-libfdk-aac-jll.


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

efraim pushed a commit to branch master
in repository guix.

commit 6e07d698d2e395bdb085ccc3806739854c235946
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun May 30 10:56:05 2021 +0300

    gnu: Add julia-libfdk-aac-jll.
    
    * gnu/packages/julia-jll.scm (julia-libfdk-aac-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 26df3ee..2fbad4f 100644
--- a/gnu/packages/julia-jll.scm
+++ b/gnu/packages/julia-jll.scm
@@ -25,6 +25,7 @@
   #:use-module (guix utils)
   #:use-module (guix build-system julia)
   #:use-module (gnu packages)
+  #:use-module (gnu packages audio)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages fribidi)
@@ -362,6 +363,42 @@ used in autogenerated packages via 
@code{BinaryBuilder.jl}.")
     (description "This package provides a wrapper for the libjpeg-turbo 
library.")
     (license license:expat)))
 
+(define-public julia-libfdk-aac-jll
+  (package
+    (name "julia-libfdk-aac-jll")
+    (version "0.1.6+2")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/JuliaBinaryWrappers/libfdk_aac_jll.jl";)
+               (commit (string-append "libfdk_aac-v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "0jinb205dn1yfvl0mx7dsah4xj3r8vc3ig8yl72langjc7vrwdn0"))))
+    (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\"libfdk_aac\"")
+                    (string-append "\"" (assoc-ref inputs "libfdk") "\""))))
+               ;; There's a Julia file for each platform, override them all
+               (find-files "src/wrappers/" "\\.jl$")))))))
+    (inputs
+     `(("libfdk" ,libfdk)))
+    (propagated-inputs
+     `(("julia-jllwrappers" ,julia-jllwrappers)))
+    (home-page "https://github.com/JuliaBinaryWrappers/libfdk_aac_jll.jl";)
+    (synopsis "FDK library wrappers")
+    (description "This package provides a wrapper for the libfdk audio 
library.")
+    (license license:expat)))
+
 (define-public julia-libpng-jll
   (package
     (name "julia-libpng-jll")



reply via email to

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