[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#73399] [PATCH 18/26] gnu: Add healpix.
From: |
Sharlatan Hellseher |
Subject: |
[bug#73399] [PATCH 18/26] gnu: Add healpix. |
Date: |
Sat, 21 Sep 2024 00:31:43 +0100 |
* gnu/packages/astronomy.scm (healpix): New variable.
Change-Id: I41dcee1ba9df1988dd9c4ee40b07daab5418e001
---
gnu/packages/astronomy.scm | 62 ++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 6fab4491d6..3f1b70196a 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -111,6 +111,7 @@ (define-module (gnu packages astronomy)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (ice-9 match)
+ #:use-module (ice-9 format)
#:use-module (srfi srfi-1))
(define-public alfa
@@ -586,6 +587,67 @@ (define-public cfitsio
(license (license:non-copyleft "file://License.txt"
"See License.txt in the distribution."))))
+(define* (healpix-source #:key version sha256-base32-hash)
+ ;; The sources of HEALPix containing 6 independent packages (Fortran90,
+ ;; IDL, C, C++, java and python) and distributed togather libsharp.
+ (origin
+ (method url-fetch)
+ (uri
+ (let* ((name "Healpix")
+ (version-list (string-split version #\.))
+ (name+version (format #f "~a_~{~a.~a~a~}" name version-list)))
+ (string-append "mirror://sourceforge/healpix/"
+ name+version "/" name+version "_"
"2022Jul28.tar.gz")))
+ (sha256
+ (base32 sha256-base32-hash ))))
+
+(define-public healpix
+ (package
+ (name "healpix")
+ (version "3.8.2")
+ (source
+ (healpix-source
+ #:version version
+ #:sha256-base32-hash
"09x1lafq01gzk16yvmz2pdhrxnqfjp3b2p9hlgy0dbrdg82ryqj7"))
+ (build-system gnu-build-system)
+ (arguments
+ (list
+ #:tests? #f ; no tests
+ #:make-flags
+ #~(list "shared"
+ "AR=ar -rsv"
+ "OPT=-O2 -Wall"
+ "PIC=-fPIC"
+ (string-append "CC=" #$(cc-for-target))
+ (string-append "CFITSIO_INCDIR="
+ #$(this-package-input "cfitsio") "/include")
+ (string-append "CFITSIO_LIBDIR="
+ #$(this-package-input "cfitsio") "/lib")
+ (string-append "INCDIR=" #$output "/include")
+ (string-append "LIBDIR=" #$output "/lib"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure) ; no configure
+ (add-after 'unpack 'chdir-c
+ (lambda _
+ (chdir "src/C/subs")))
+ (add-before 'install 'set-output-directories
+ (lambda _
+ (mkdir-p (string-append #$output "/include"))
+ (mkdir-p (string-append #$output "/lib")))))))
+ (native-inputs
+ (list pkg-config autoconf automake))
+ (inputs
+ (list cfitsio))
+ (home-page "https://healpix.jpl.nasa.gov/")
+ (synopsis "Representation of spherical data")
+ (description
+ "@acronym{HEALPix, Hierarchical Equal Area isoLatitude Pixelation} of a
+sphere produces a subdivision of a spherical surface in which each pixel
+covers the same surface area as every other pixel. This package provides the
+dynamic library for the C language implementation of HEALPix.")
+ (license license:gpl2+)))
+
(define-public erfa
(package
(name "erfa")
--
2.46.0
- [bug#73399] [PATCH 13/26] gnu: python-regularizepsf: Update to 0.4.0., (continued)
- [bug#73399] [PATCH 13/26] gnu: python-regularizepsf: Update to 0.4.0., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH 17/26] gnu: python-sunpy: Update to 6.0.2., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH 15/26] gnu: python-stcal: Update to 1.9.0., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH 09/26] gnu: python-drizzle: Update to 1.15.3., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH 16/26] gnu: python-stdatamodels: Update to 2.1.0., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH 14/26] gnu: python-sbpy: Update to 0.5.0., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH 12/26] gnu: Add python-sep-pjw., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH 20/26] gnu: Add healpix-cxx., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH 19/26] gnu: Add libsharp., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH 22/26] gnu: Add webbpsf-data., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH 18/26] gnu: Add healpix.,
Sharlatan Hellseher <=
- [bug#73399] [PATCH 24/26] gnu: Add python-ci-watson., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH 23/26] gnu: Add python-webbpsf., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH 21/26] gnu: Add python-metrics-logger., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH 26/26] gnu: Add python-healpy., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH 25/26] gnu: Add python-pytest-cython., Sharlatan Hellseher, 2024/09/20
- [bug#73399] [PATCH v2 00/25] Astronomy update 2024/09, Sharlatan Hellseher, 2024/09/21