From: Simon Tournier <zimon.toutoune@gmail.com>
To: 60793@debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus@gmail.com>, efraim@flashner.co.il
Subject: [bug#60793] [PATCH v2 1/3] gnu: Add julia-cfitsio-jll.
Date: Mon, 30 Jan 2023 12:12:09 +0100 [thread overview]
Message-ID: <20230130111211.372932-1-zimon.toutoune@gmail.com> (raw)
In-Reply-To: <20230113221658.8158-1-sharlatanus@gmail.com>
From: Sharlatan Hellseher <sharlatanus@gmail.com>
* gnu/packages/julia-jll.scm (julia-cfitsio-jll): New variable.
---
gnu/packages/julia-jll.scm | 43 ++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/julia-jll.scm b/gnu/packages/julia-jll.scm
index 2b0f644736..80e4508196 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.
;;;
@@ -26,6 +27,7 @@ (define-module (gnu packages julia-jll)
#:use-module (guix utils)
#:use-module (guix build-system julia)
#:use-module (gnu packages)
+ #:use-module (gnu packages astronomy)
#:use-module (gnu packages audio)
#:use-module (gnu packages base)
#:use-module (gnu packages compression)
@@ -146,6 +148,47 @@ (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
+ '(#: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") "") ; We use Guix's cfitsio
+ (("using Zlib_jll") "") ; Not require to unpack 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")
base-commit: 595b53b74e3ef57a1c0c96108ba86d38a170a241
--
2.38.1
next prev parent reply other threads:[~2023-01-30 11:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Simon Tournier [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230130111211.372932-1-zimon.toutoune@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=60793@debbugs.gnu.org \
--cc=efraim@flashner.co.il \
--cc=sharlatanus@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).