From 36f18626a9f8e9ba287e0fd3f1d0400345ca5ee7 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 1 Dec 2021 23:11:50 +0100 Subject: gnu: petsc-{complex,openmpi,complex-openmpi}: Use gexps. This is a followup to 07ac13a26a0d7c8319afb42c55fc2116ec44668f, which omitted to switch to gexps in packages that inherit from 'petsc'. Reported by Mathieu Othacehe . * gnu/packages/maths.scm (petsc-complex)[arguments]: Use gexps. (petsc-openmpi)[arguments]: Likewise. (petsc-complex-openmpi)[arguments]: Likewise. --- gnu/packages/maths.scm | 57 ++++++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 5d56f00095..14aecb955d 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -2984,16 +2984,18 @@ scientific applications modeled by partial differential equations.") "https://www.mcs.anl.gov/petsc/documentation/copyright.html")))) (define-public petsc-complex - (package (inherit petsc) + (package + (inherit petsc) (name "petsc-complex") (arguments (substitute-keyword-arguments (package-arguments petsc) ((#:configure-flags cf) - `(cons "--with-scalar-type=complex" ,cf)))) + #~(cons "--with-scalar-type=complex" #$cf)))) (synopsis "Library to solve PDEs (with complex scalars)"))) (define-public petsc-openmpi - (package (inherit petsc) + (package + (inherit petsc) (name "petsc-openmpi") (inputs `(("hdf5" ,hdf5-parallel-openmpi) @@ -3007,27 +3009,28 @@ scientific applications modeled by partial differential equations.") (arguments (substitute-keyword-arguments (package-arguments petsc) ((#:configure-flags cf) - ``("--with-hypre=1" - "--with-mpiexec=mpirun" - "--with-metis=1" - "--with-mumps=1" - "--with-scalapack=1" - "--with-ptscotch=1" - ,(string-append "--with-mpi-dir=" - (assoc-ref %build-inputs "openmpi")) - ,(string-append "--with-hdf5-include=" - (assoc-ref %build-inputs "hdf5") "/include") - ,(string-append "--with-hdf5-lib=" - (assoc-ref %build-inputs "hdf5") "/lib/libhdf5.a") - ,@(delete "--with-mpi=0" ,cf))) + #~`("--with-hypre=1" + "--with-mpiexec=mpirun" + "--with-metis=1" + "--with-mumps=1" + "--with-scalapack=1" + "--with-ptscotch=1" + ,(string-append "--with-mpi-dir=" + #$(this-package-input "openmpi")) + ,(string-append "--with-hdf5-include=" + #$(this-package-input "hdf5") "/include") + ,(string-append "--with-hdf5-lib=" + #$(this-package-input "hdf5") "/lib/libhdf5.a") + ,@(delete "--with-mpi=0" #$cf))) ((#:phases phases) - `(modify-phases ,phases - (add-before 'configure 'mpi-setup - ,%openmpi-setup))))) + #~(modify-phases #$phases + (add-before 'configure 'mpi-setup + #$%openmpi-setup))))) (synopsis "Library to solve PDEs (with MUMPS and MPI support)"))) (define-public petsc-complex-openmpi - (package (inherit petsc-complex) + (package + (inherit petsc-complex) (name "petsc-complex-openmpi") (inputs `(("openmpi" ,openmpi) @@ -3035,14 +3038,14 @@ scientific applications modeled by partial differential equations.") (arguments (substitute-keyword-arguments (package-arguments petsc-complex) ((#:configure-flags cf) - ``("--with-mpiexec=mpirun" - ,(string-append "--with-mpi-dir=" - (assoc-ref %build-inputs "openmpi")) - ,@(delete "--with-mpi=0" ,cf))) + #~`("--with-mpiexec=mpirun" + ,(string-append "--with-mpi-dir=" + #$(this-package-input "openmpi")) + ,@(delete "--with-mpi=0" #$cf))) ((#:phases phases) - `(modify-phases ,phases - (add-before 'configure 'mpi-setup - ,%openmpi-setup))))) + #~(modify-phases #$phases + (add-before 'configure 'mpi-setup + #$%openmpi-setup))))) (synopsis "Library to solve PDEs (with complex scalars and MPI support)"))) (define-public python-petsc4py -- cgit 1.4.1