[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/07: gnu: cfitsio: Update to 4.2.0.
From: |
guix-commits |
Subject: |
02/07: gnu: cfitsio: Update to 4.2.0. |
Date: |
Fri, 6 Jan 2023 17:49:06 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 96df67e0688da235c267dec33a588f08cca5c567
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Dec 11 22:25:40 2022 +0000
gnu: cfitsio: Update to 4.2.0.
Fix build on aarch64-linux as reported in:
- https://issues.guix.gnu.org/59323
- https://github.com/rwesson/ALFA/issues/29
The latest version passed build on aarch64-linux system with curl and
gfortran enabled. wcslib@7.5 passed build with curl enabled (was marked
as failing in cements).
* gnu/packages/astronomy.scm (cfitsio): Update to 4.2.0.
[arguments]: Use Gexp, enable tests.
[arguments](phases): Delete check and add post-install-check phases.
[native-inputs]: Add gfortran.
[inputs]: Add curl, zlib.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/astronomy.scm | 33 +++++++++++++++++++++------------
1 file changed, 21 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index 5f19fc4764..0b8f9385ca 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -356,7 +356,7 @@ made to get a better separation of core libraries and
applications.
(define-public cfitsio
(package
(name "cfitsio")
- (version "3.49")
+ (version "4.2.0")
(source
(origin
(method url-fetch)
@@ -364,18 +364,27 @@ made to get a better separation of core libraries and
applications.
"http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/"
"cfitsio-" version ".tar.gz"))
(sha256
- (base32 "1cyl1qksnkl3cq1fzl4dmjvkd6329b57y9iqyv44wjakbh6s4rav"))))
+ (base32 "128qsv2q0f0g714ahlsixiikvvbwxi9bg9q9pcr5cd3f7wdkv9gb"))))
(build-system gnu-build-system)
- ;; XXX Building with curl currently breaks wcslib. It doesn't use
- ;; pkg-config and hence won't link with -lcurl.
(arguments
- `(#:tests? #f ; no tests
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-paths
- (lambda _
- (substitute* "Makefile.in" (("/bin/") ""))
- #t)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-paths
+ (lambda _
+ (substitute* "Makefile.in" (("/bin/") ""))))
+ (delete 'check)
+ ;; TODO: Testing steps are sourced from docs/fitsio.pdf, implement
+ ;; the logic in Guile in the future.
+ (add-after 'install 'post-install-check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "make" "testprog")
+ (with-output-to-file "testprog.lis" (lambda _(invoke
"./testprog")))
+ (invoke "diff" "-r" "testprog.lis" "testprog.out")
+ (invoke "cmp" "-l" "testprog.fit" "testprog.std")))))))
+ (native-inputs (list gfortran))
+ (inputs (list curl zlib))
(home-page "https://heasarc.gsfc.nasa.gov/fitsio/fitsio.html")
(synopsis "Library for reading and writing FITS files")
(description "CFITSIO provides simple high-level routines for reading and
@@ -384,7 +393,7 @@ programmer from the internal complexities of the FITS
format. CFITSIO also
provides many advanced features for manipulating and filtering the information
in FITS files.")
(license (license:non-copyleft "file://License.txt"
- "See License.txt in the distribution."))))
+ "See License.txt in the distribution."))))
(define-public python-fitsio
(package
- branch master updated (38086021b8 -> cce9ff2d5a), guix-commits, 2023/01/06
- 03/07: gnu: cfitsio: Build with bzip2 support., guix-commits, 2023/01/06
- 02/07: gnu: cfitsio: Update to 4.2.0.,
guix-commits <=
- 05/07: gnu: wcslib: Update to 7.12., guix-commits, 2023/01/06
- 07/07: gnu: indi: Update to 1.9.9., guix-commits, 2023/01/06
- 04/07: gnu: python-fitsio: Update to 1.1.8., guix-commits, 2023/01/06
- 01/07: doc: cookbook: Remove 404 link to mitpress.mit.edu., guix-commits, 2023/01/06
- 06/07: gnu: python-astropy: Update to 5.1.1., guix-commits, 2023/01/06