gnu: casacore: Update to 3.6.1.

* gnu/packages/astronomy.scm (casacore): Update to 3.6.1.
[argument] <phases>: Add 'hide-gfortran.
[inputs]: Add gsl.

Change-Id: I702427857cf001d583b775189f9d8f5d35fc7183
This commit is contained in:
Sharlatan Hellseher 2025-02-03 16:24:53 +00:00
parent 751017da49
commit 11284f55f6
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -401,7 +401,7 @@ rendering of the atmosphere model and examine its properties.
(define-public casacore (define-public casacore
(package (package
(name "casacore") (name "casacore")
(version "3.4.0") (version "3.6.1")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -410,7 +410,7 @@ rendering of the atmosphere model and examine its properties.
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(sha256 (sha256
(base32 (base32
"05ar5gykgh4dm826xplj5ri5rw7znhxrvin2l67a3mjwfys7r2a0")) "0ja0ss1cjfx9j2pnmqzr51ipxrfij7i2c4bq4nqkgaxfk5q447i5"))
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
@ -458,7 +458,18 @@ rendering of the atmosphere model and examine its properties.
(lambda _ (lambda _
(substitute* "build-tools/casacore_assay" (substitute* "build-tools/casacore_assay"
(("QSUBP=.*$") "QSUBP=\n") (("QSUBP=.*$") "QSUBP=\n")
(("YODP=.*$") "YODP=\n"))))))) (("YODP=.*$") "YODP=\n"))))
;; XXX: It fails to find the stdlib types when the gfortran header
;; is used. Remove gfortran from CPLUS_INCLUDE_PATH as a
;; workaround. Taken from <https://issues.guix.gnu.org/73439#45>.
(add-after 'set-paths 'hide-gfortran
(lambda _
(let ((gfortran #$(this-package-input "gfortran")))
(setenv "CPLUS_INCLUDE_PATH"
(string-join
(delete (string-append gfortran "/include/c++")
(string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
":"))))))))
(native-inputs (native-inputs
(list bison (list bison
boost boost
@ -469,6 +480,7 @@ rendering of the atmosphere model and examine its properties.
fftw fftw
fftwf fftwf
gfortran gfortran
gsl
hdf5 hdf5
ncurses ncurses
openblas openblas