all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 73399@debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus@gmail.com>,
	Andreas Enge <andreas@enge.fr>, Eric Bavier <bavier@posteo.net>,
	Sharlatan Hellseher <sharlatanus@gmail.com>
Subject: [bug#73399] [PATCH v2 18/25] gnu: Add healpix.
Date: Sat, 21 Sep 2024 14:55:50 +0100	[thread overview]
Message-ID: <a8cc440a2cc80ccccd3ad5534d5d0f0b44c12a68.1726926634.git.sharlatanus@gmail.com> (raw)
In-Reply-To: <cover.1726926633.git.sharlatanus@gmail.com>

* 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





  parent reply	other threads:[~2024-09-21 13:59 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-20 23:29 [bug#73399] [PATCH 00/26] Astronomy update 2024/09 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 01/26] gnu: calcmysky: Update to 0.3.3 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 02/26] gnu: cfitsio: Update to 4.5.0 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 03/26] gnu: siril: Update to 1.2.4 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 04/26] gnu: python-astropy-iers-data: Update to 0.2024.9.16.0.32.21 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 05/26] gnu: python-astropy: Update to 6.1.3 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 06/26] gnu: python-ndcube: Disable failing tests Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 07/26] gnu: python-ginga: Fix tests Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 08/26] gnu: python-crds: Update to 11.18.4 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 09/26] gnu: python-drizzle: Update to 1.15.3 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 10/26] gnu: python-jwst: Update to 1.16.0 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 11/26] gnu: python-pysiaf: Update to 0.23.3 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 12/26] gnu: Add python-sep-pjw Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 13/26] gnu: python-regularizepsf: Update to 0.4.0 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 14/26] gnu: python-sbpy: Update to 0.5.0 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 15/26] gnu: python-stcal: Update to 1.9.0 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 16/26] gnu: python-stdatamodels: Update to 2.1.0 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 17/26] gnu: python-sunpy: Update to 6.0.2 Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 18/26] gnu: Add healpix Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 19/26] gnu: Add libsharp Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 20/26] gnu: Add healpix-cxx Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 21/26] gnu: Add python-metrics-logger Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 22/26] gnu: Add webbpsf-data Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 23/26] gnu: Add python-webbpsf Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 24/26] gnu: Add python-ci-watson Sharlatan Hellseher
2024-09-20 23:31 ` [bug#73399] [PATCH 25/26] gnu: Add python-pytest-cython Sharlatan Hellseher
2024-09-21  4:47   ` jgart via Guix-patches via
2024-09-20 23:31 ` [bug#73399] [PATCH 26/26] gnu: Add python-healpy Sharlatan Hellseher
2024-09-21 13:55 ` [bug#73399] [PATCH v2 00/25] Astronomy update 2024/09 Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 01/25] gnu: calcmysky: Update to 0.3.3 Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 02/25] gnu: cfitsio: Update to 4.5.0 Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 03/25] gnu: siril: Update to 1.2.4 Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 04/25] gnu: python-astropy-iers-data: Update to 0.2024.9.16.0.32.21 Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 05/25] gnu: python-astropy: Update to 6.1.3 Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 06/25] gnu: python-ndcube: Disable failing tests Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 07/25] gnu: python-ginga: Fix tests Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 08/25] gnu: python-crds: Update to 11.18.4 Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 09/25] gnu: python-drizzle: Update to 1.15.3 Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 10/25] gnu: python-jwst: Update to 1.16.0 Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 11/25] gnu: python-pysiaf: Update to 0.23.3 Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 12/25] gnu: Add python-sep-pjw Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 13/25] gnu: python-regularizepsf: Update to 0.4.0 Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 14/25] gnu: python-sbpy: Update to 0.5.0 Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 15/25] gnu: python-stcal: Update to 1.9.0 Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 16/25] gnu: python-stdatamodels: Update to 2.1.0 Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 17/25] gnu: python-sunpy: Update to 6.0.2 Sharlatan Hellseher
2024-09-21 13:55   ` Sharlatan Hellseher [this message]
2024-09-21 13:55   ` [bug#73399] [PATCH v2 19/25] gnu: Add libsharp Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 20/25] gnu: Add healpix-cxx Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 21/25] gnu: Add webbpsf-data Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 22/25] gnu: Add python-webbpsf Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 23/25] gnu: Add python-ci-watson Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 24/25] gnu: Add python-pytest-cython Sharlatan Hellseher
2024-09-21 13:55   ` [bug#73399] [PATCH v2 25/25] gnu: Add python-healpy Sharlatan Hellseher

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a8cc440a2cc80ccccd3ad5534d5d0f0b44c12a68.1726926634.git.sharlatanus@gmail.com \
    --to=sharlatanus@gmail.com \
    --cc=73399@debbugs.gnu.org \
    --cc=andreas@enge.fr \
    --cc=bavier@posteo.net \
    /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 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.