all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#60793] [PATCH] gnu: Add julia-cfitsio-jll.
@ 2023-01-13 22:16 Sharlatan Hellseher
  2023-01-16 17:08 ` Simon Tournier
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Sharlatan Hellseher @ 2023-01-13 22:16 UTC (permalink / raw)
  To: 60793; +Cc: Sharlatan Hellseher

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

diff --git a/gnu/packages/julia-jll.scm b/gnu/packages/julia-jll.scm
index 2b0f644736..364088c4b0 100644
--- a/gnu/packages/julia-jll.scm
+++ b/gnu/packages/julia-jll.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
 ;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2021 Jean-Baptiste Volatier <jbv@pm.me>
+;;; Copyright © 2023 Sharlatan Hellseher <sharlatanus@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -21,12 +22,14 @@
 
 (define-module (gnu packages julia-jll)
   #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix gexp)
   #:use-module (guix packages)
   #:use-module (guix git-download)
   #:use-module (guix utils)
   #:use-module (guix build-system julia)
   #:use-module (gnu packages)
   #:use-module (gnu packages audio)
+  #:use-module (gnu packages astronomy)
   #:use-module (gnu packages base)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages fontutils)
@@ -146,6 +149,48 @@ (define-public julia-cairo-jll
     (description "This package provides a wrapper for the cairo library.")
     (license license:expat)))
 
+(define-public julia-cfitsio-jll
+  (package
+    (name "julia-cfitsio-jll")
+    (version "4.0.0+0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/JuliaBinaryWrappers/CFITSIO_jll.jl")
+             (commit (string-append "CFITSIO-v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1k0mqmpyfjr3ibcmda08llw8m166zw0n3lh5y5aj81q37lrxw990"))))
+    (build-system julia-build-system)
+    (arguments
+     (list
+      #:tests? #f ; no runtests
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'link-depot 'override-binary-path
+            (lambda* (#:key inputs #:allow-other-keys)
+              (map
+               (lambda (wrapper)
+                 (substitute* wrapper
+                   (("using LibCURL_jll") "") ; Not require to download cfitsio.
+                   (("using Zlib_jll") "") ; Not require to upnpack not donwloaded archvie.
+                   (("generate_init_header.*") "generate_init_header()\n" )
+                   (("generate_wrapper_header.*")
+                    (string-append
+                     "generate_wrapper_header(\"CFITSIO\", \""
+                     (assoc-ref inputs "cfitsio") "\")\n"))))
+               ;; There's a Julia file for each platform, override them all
+               (find-files "src/wrappers/" "\\.jl$")))))))
+    (inputs
+     (list cfitsio))
+    (propagated-inputs
+     (list julia-jllwrappers))
+    (home-page "https://github.com/JuliaBinaryWrappers/CFITSIO_jll.jl")
+    (synopsis "cfitsio library wrappers")
+    (description "This package provides a wrapper for the cfitsio library.")
+    (license license:expat)))
+
 (define-public julia-compilersupportlibraries-jll
   (package
     (name "julia-compilersupportlibraries-jll")
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-02-08 10:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-13 22:16 [bug#60793] [PATCH] gnu: Add julia-cfitsio-jll Sharlatan Hellseher
2023-01-16 17:08 ` Simon Tournier
2023-01-16 20:36   ` Sharlatan Hellseher
2023-01-17  8:03     ` Simon Tournier
2023-01-29 22:26       ` Sharlatan Hellseher
2023-01-30 11:11         ` Simon Tournier
2023-01-29 22:29 ` [bug#60793] [PATCH 1/3] " Sharlatan Hellseher
2023-01-29 22:29   ` [bug#60793] [PATCH 2/3] gnu: Add julia-cfitsio Sharlatan Hellseher
2023-01-29 22:29   ` [bug#60793] [PATCH 3/3] gnu: Add julia-fitsio Sharlatan Hellseher
2023-01-30 10:59   ` [bug#60793] [PATCH 1/3] gnu: Add julia-cfitsio-jll Simon Tournier
2023-01-30 11:12 ` [bug#60793] [PATCH v2 " Simon Tournier
2023-01-30 11:12   ` [bug#60793] [PATCH v2 2/3] gnu: Add julia-cfitsio Simon Tournier
2023-01-30 11:12   ` [bug#60793] [PATCH v2 3/3] gnu: Add julia-fitsio Simon Tournier
2023-02-08 10:13   ` bug#60793: [PATCH v2 1/3] gnu: Add julia-cfitsio-jll Efraim Flashner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.