gnu: sundials: Upgrade to 7.1.1.

* gnu/packages/maths.scm (sundials): Update to 7.1.1.
[native-inputs]: Add PKG-CONFIG.
(sundials-openmpi)[arguments]: Pass ‘-DPETSC_INCLUDE_DIRS’ instead of
‘-DPETSC_DIR’.

Change-Id: I750415109d69b53afbcf461dc98b2028af03c35a
This commit is contained in:
Ludovic Courtès 2024-08-29 16:37:07 +02:00 committed by Ludovic Courtès
parent 8d5d66887e
commit 0fcd05b044
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -8051,7 +8051,7 @@ and comparisons are supported.")
(define-public sundials (define-public sundials
(package (package
(name "sundials") (name "sundials")
(version "6.2.0") (version "7.1.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
@ -8059,10 +8059,10 @@ and comparisons are supported.")
version "/sundials-" version ".tar.gz")) version "/sundials-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"07gk9060xk3bzfqf8v4fqlp0rcxswiwlsy887zv87i1gfy9map8r")))) "1fwlgbcdxz30dzsqw3y1b6ic1rhzfadghj7cq7yxsj14npgnwzga"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(native-inputs (native-inputs
(list python-2)) ; For tests; syntax incompatible with Python 3. (list pkg-config python-2)) ;for tests; syntax incompatible with Python 3
(inputs (inputs
(list openblas suitesparse)) (list openblas suitesparse))
(arguments (arguments
@ -8115,8 +8115,9 @@ easily be incorporated into existing simulation codes.")
(assoc-ref %build-inputs "hypre-openmpi") (assoc-ref %build-inputs "hypre-openmpi")
"/lib") "/lib")
"-DENABLE_PETSC:BOOL=ON" "-DENABLE_PETSC:BOOL=ON"
(string-append "-DPETSC_DIR=" (string-append "-DPETSC_INCLUDE_DIRS="
(assoc-ref %build-inputs "petsc-openmpi")) (assoc-ref %build-inputs "petsc-openmpi")
"/include")
,flags)) ,flags))
((#:phases phases '%standard-phases) ((#:phases phases '%standard-phases)
`(modify-phases ,phases `(modify-phases ,phases