diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-08-16 21:11:43 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-09-01 18:34:25 +0100 |
| commit | 497365e296b92e9f6df362f6efec337511355c4b (patch) | |
| tree | 87c0cacfba416fed849c2ffeac4cd29b38b54dad | |
| parent | 3c4e0ef7e7ed07f36e8d21a6933e412f2d085ecf (diff) | |
gnu: cfitsio: Update to 4.7.0.
* gnu/packages/astronomy.scm (cfitsio): Update to 4.7.0.
[source]: Switch to git-fetch.
[phases]{patch-paths, post-install-check}: Remove phases.
{check}: Use default check which passes well now.
[properties]: Remove release-monitoring-url property.
(cfitsio-4.4)[arguments]: Port old arguments from cfitsio.
Relates-to: guix/guix!10702
| -rw-r--r-- | gnu/packages/astronomy.scm | 56 |
1 files changed, 30 insertions, 26 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index d85423ba117..d5dee69312d 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm | |||
| @@ -703,36 +703,23 @@ on-line reference manual.") | |||
| 703 | (define-public cfitsio | 703 | (define-public cfitsio |
| 704 | (package | 704 | (package |
| 705 | (name "cfitsio") | 705 | (name "cfitsio") |
| 706 | (version "4.6.4") | 706 | (version "4.7.0") |
| 707 | (source | 707 | (source |
| 708 | (origin | 708 | (origin |
| 709 | (method url-fetch) | 709 | (method git-fetch) |
| 710 | (uri (string-append | 710 | (uri (git-reference |
| 711 | "https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/" | 711 | ;; FTP: https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/ |
| 712 | "cfitsio-" version ".tar.gz")) | 712 | (url "https://github.com/HEASARC/cfitsio") |
| 713 | (commit (string-append name "-" version)))) | ||
| 714 | (file-name (git-file-name name version)) | ||
| 713 | (sha256 | 715 | (sha256 |
| 714 | (base32 "0m9w33w27wc452737x42gmbdwlzhhyq5x9irdylhx0n9j5xn6yr2")))) | 716 | (base32 "1a7fgsvyv3zgi5ni1c3brxrq7ivq63881hdxp8c1pyhzqsa74klk")))) |
| 715 | (build-system gnu-build-system) | 717 | (build-system gnu-build-system) |
| 716 | (arguments | 718 | (arguments |
| 717 | (list | 719 | (list |
| 718 | #:configure-flags | 720 | #:configure-flags |
| 719 | #~(list "--enable-reentrant" | 721 | #~(list "--enable-reentrant" |
| 720 | (string-append "--with-bzip2=" #$(this-package-input "bzip2"))) | 722 | (string-append "--with-bzip2=" #$(this-package-input "bzip2"))))) |
| 721 | #:phases | ||
| 722 | #~(modify-phases %standard-phases | ||
| 723 | (add-after 'unpack 'patch-paths | ||
| 724 | (lambda _ | ||
| 725 | (substitute* "Makefile.in" (("/bin/") "")))) | ||
| 726 | (delete 'check) | ||
| 727 | ;; TODO: Testing steps are sourced from docs/fitsio.pdf, implement | ||
| 728 | ;; the logic in Guile in the future. | ||
| 729 | (add-after 'install 'post-install-check | ||
| 730 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 731 | (when tests? | ||
| 732 | (invoke "make" "testprog") | ||
| 733 | (with-output-to-file "testprog.lis" (lambda _(invoke "./testprog"))) | ||
| 734 | (invoke "diff" "-r" "testprog.lis" "testprog.out") | ||
| 735 | (invoke "cmp" "-l" "testprog.fit" "testprog.std"))))))) | ||
| 736 | (native-inputs (list gfortran)) | 723 | (native-inputs (list gfortran)) |
| 737 | (inputs (list bzip2 curl zlib)) | 724 | (inputs (list bzip2 curl zlib)) |
| 738 | (home-page "https://heasarc.gsfc.nasa.gov/fitsio/fitsio.html") | 725 | (home-page "https://heasarc.gsfc.nasa.gov/fitsio/fitsio.html") |
| @@ -743,9 +730,6 @@ on-line reference manual.") | |||
| 743 | programmer from the internal complexities of the FITS format. CFITSIO also | 730 | programmer from the internal complexities of the FITS format. CFITSIO also |
| 744 | provides many advanced features for manipulating and filtering the information | 731 | provides many advanced features for manipulating and filtering the information |
| 745 | in FITS files.") | 732 | in FITS files.") |
| 746 | (properties | ||
| 747 | '((release-monitoring-url . | ||
| 748 | "https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html"))) | ||
| 749 | (license (license:non-copyleft "file://License.txt" | 733 | (license (license:non-copyleft "file://License.txt" |
| 750 | "See License.txt in the distribution.")))) | 734 | "See License.txt in the distribution.")))) |
| 751 | 735 | ||
| @@ -762,7 +746,27 @@ in FITS files.") | |||
| 762 | "https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/" | 746 | "https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/" |
| 763 | "cfitsio-" version ".tar.gz")) | 747 | "cfitsio-" version ".tar.gz")) |
| 764 | (sha256 | 748 | (sha256 |
| 765 | (base32 "098x1l8ijwsjp2ivp3v7pamrmpgwj5xmgb4yppm9w3w044zxr8b6")))))) | 749 | (base32 "098x1l8ijwsjp2ivp3v7pamrmpgwj5xmgb4yppm9w3w044zxr8b6")))) |
| 750 | (arguments | ||
| 751 | (list | ||
| 752 | #:configure-flags | ||
| 753 | #~(list "--enable-reentrant" | ||
| 754 | (string-append "--with-bzip2=" #$(this-package-input "bzip2"))) | ||
| 755 | #:phases | ||
| 756 | #~(modify-phases %standard-phases | ||
| 757 | (add-after 'unpack 'patch-paths | ||
| 758 | (lambda _ | ||
| 759 | (substitute* "Makefile.in" (("/bin/") "")))) | ||
| 760 | (delete 'check) | ||
| 761 | ;; TODO: Testing steps are sourced from docs/fitsio.pdf, implement | ||
| 762 | ;; the logic in Guile in the future. | ||
| 763 | (add-after 'install 'post-install-check | ||
| 764 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 765 | (when tests? | ||
| 766 | (invoke "make" "testprog") | ||
| 767 | (with-output-to-file "testprog.lis" (lambda _(invoke "./testprog"))) | ||
| 768 | (invoke "diff" "-r" "testprog.lis" "testprog.out") | ||
| 769 | (invoke "cmp" "-l" "testprog.fit" "testprog.std"))))))))) | ||
| 766 | 770 | ||
| 767 | (define-public cianna | 771 | (define-public cianna |
| 768 | (package | 772 | (package |
