~ruther/guix-local

f622e2123b578d9fea6d967a69492cc2041ce348 — Eric Bavier 10 years ago 04b7a7c
gnu: hdf5: Patch output references to zlib.

* gnu/packages/maths.scm (hdf5)[arguments]: Use modify-phases.  Add
'patch-references' phase.
1 files changed, 13 insertions(+), 6 deletions(-)

M gnu/packages/maths.scm
M gnu/packages/maths.scm => gnu/packages/maths.scm +13 -6
@@ 420,12 420,19 @@ plotting engine by third-party applications like Octave.")
     `(("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