mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: hdf5: Patch output references to zlib.
* gnu/packages/maths.scm (hdf5)[arguments]: Use modify-phases. Add 'patch-references' phase.
This commit is contained in:
parent
04b7a7cd10
commit
f622e2123b
1 changed files with 13 additions and 6 deletions
|
@ -420,12 +420,19 @@ (define-public hdf5
|
|||
`(("zlib" ,zlib)))
|
||||
(arguments
|
||||
`(#:phases
|
||||
(alist-cons-before
|
||||
'configure 'patch-configure
|
||||
(lambda _
|
||||
(substitute* "configure"
|
||||
(("/bin/mv") "mv")))
|
||||
%standard-phases)))
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'configure 'patch-configure
|
||||
(lambda _
|
||||
(substitute* "configure"
|
||||
(("/bin/mv") "mv"))))
|
||||
(add-after 'install 'patch-references
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let ((bin (string-append (assoc-ref outputs "out") "/bin"))
|
||||
(zlib (assoc-ref inputs "zlib")))
|
||||
(substitute* (find-files bin "h5p?cc")
|
||||
(("-lz" lib)
|
||||
(string-append "-L" zlib "/lib " lib)))
|
||||
#t))))))
|
||||
(home-page "http://www.hdfgroup.org")
|
||||
(synopsis "Management suite for extremely large and complex data")
|
||||
(description "HDF5 is a suite that makes possible the management of
|
||||
|
|
Loading…
Reference in a new issue