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:
parent
10e066f410
commit
b0d1e60fff
1 changed files with 5 additions and 2 deletions
|
@ -814,8 +814,11 @@ (define-public 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))))
|
||||
|
|
Loading…
Reference in a new issue