gnu: hdf5: Allow for absence of utility script.

* gnu/packages/maths.scm (hdf5)[arguments]: Add condition to 'split'
phase to check for existence of h5fc script.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Paul Garlick 2018-09-20 18:59:56 +01:00 committed by Ludovic Courtès
parent 10e066f410
commit b0d1e60fff
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 5 additions and 2 deletions

View File

@ -814,8 +814,11 @@ incompatible with HDF5.")
(mkdir-p flib)
(mkdir-p finc)
(mkdir-p fex)
(rename-file (string-append bin "/h5fc")
(string-append fbin "/h5fc"))
;; Note: When built with --enable-parallel, the 'h5fc' file
;; doesn't exist, hence this condition.
(when (file-exists? (string-append bin "/h5fc"))
(rename-file (string-append bin "/h5fc")
(string-append fbin "/h5fc")))
(for-each (lambda (file)
(rename-file file
(string-append flib "/" (basename file))))