guix-commits
[Top][All Lists]
Advanced

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

38/71: gnu: Add julia-libgpg-error-jll.


From: guix-commits
Subject: 38/71: gnu: Add julia-libgpg-error-jll.
Date: Sun, 30 May 2021 05:57:40 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

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

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

diff --git a/gnu/packages/julia-jll.scm b/gnu/packages/julia-jll.scm
index 6d8230b..87cd840 100644
--- a/gnu/packages/julia-jll.scm
+++ b/gnu/packages/julia-jll.scm
@@ -33,6 +33,7 @@
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages glib)
+  #:use-module (gnu packages gnupg)
   #:use-module (gnu packages image)
   #:use-module (gnu packages imagemagick)
   #:use-module (gnu packages julia)
@@ -695,6 +696,44 @@ used in autogenerated packages via 
@code{BinaryBuilder.jl}.")
     (description "This package provides a wrapper for the libffi library.")
     (license license:expat)))
 
+(define-public julia-libgpg-error-jll
+  (package
+    (name "julia-libgpg-error-jll")
+    (version "1.42.0+0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url 
"https://github.com/JuliaBinaryWrappers/Libgpg_error_jll.jl";)
+               (commit (string-append "Libgpg_error-v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "0jmsn0mhn6b35b5awbrlpjjszknsplr62li574fkgwfxlfixb8iy"))))
+    (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
+                  (("generate_wrapper_header.*")
+                   (string-append
+                     "generate_wrapper_header(\"Libgpg_error\", \""
+                     (assoc-ref inputs "libgpg-error") "\")\n"))))
+               ;; There's a Julia file for each platform, override them all
+               (find-files "src/wrappers/" "\\.jl$")))))))
+    (inputs
+     `(("libgpg-error" ,libgpg-error)))
+    (propagated-inputs
+     `(("julia-jllwrappers" ,julia-jllwrappers)))
+    (home-page "https://github.com/JuliaBinaryWrappers/Libgpg_error_jll.jl";)
+    (synopsis "libgpg-error library wrappers")
+    (description "This package provides a wrapper for the libgpg-error 
library.")
+    (license license:expat)))
+
 (define-public julia-libiconv-jll
   (package
     (name "julia-libiconv-jll")



reply via email to

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