Subject: [PATCH] gnu: hdf5-parallel-openmpi: Add Fortran support.

From: Romain GARBAGE <[email-masked]>
Date: Tue, 6 May 2025 14:42:14 +0200

Fortran support was removed by commit 8eeb04e205a, but was present before.

* gnu/packages/maths.scm (hdf5-parallel-openmpi) [arguments]: Add Fortran
support. Switch to G-exps. Fix path for CMake files as done by parent hdf5
package.

Change-Id: I1d7c8adea6e8cadc4d8a16d8313f65388ead009d
---
 gnu/packages/maths.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index eb23a375b4..b873cf2c5d 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -2193,8 +2193,11 @@ (define-public hdf5-parallel-openmpi
     (arguments
      (substitute-keyword-arguments (package-arguments hdf5)
        ((#:configure-flags _ #f)
-        ''("-DHDF5_ENABLE_THREADSAFE=OFF"
+        #~(list
+           (string-append "-DHDF5_INSTALL_CMAKE_DIR=" #$output "/lib/cmake")
+           "-DHDF5_ENABLE_THREADSAFE=OFF"
            "-DHDF5_ENABLE_PARALLEL=ON"
+           "-DHDF5_BUILD_FORTRAN=ON"
            "-DHDF5_BUILD_CPP_LIB=OFF"
            "-DHDF5_BUILD_DOC=ON"))
        ((#:phases phases)

base-commit: a824edd45e8dca9377ff38284d4df5dbcd3be6c3
-- 
2.49.0