[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/10: gnu: hdf5: Patch output references to zlib.
From: |
Eric Bavier |
Subject: |
05/10: gnu: hdf5: Patch output references to zlib. |
Date: |
Thu, 12 May 2016 20:02:43 +0000 (UTC) |
bavier pushed a commit to branch master
in repository guix.
commit f622e2123b578d9fea6d967a69492cc2041ce348
Author: Eric Bavier <address@hidden>
Date: Tue Apr 12 10:02:22 2016 -0500
gnu: hdf5: Patch output references to zlib.
* gnu/packages/maths.scm (hdf5)[arguments]: Use modify-phases. Add
'patch-references' phase.
---
gnu/packages/maths.scm | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 877bfd4..4a10f6f 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -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
- branch master updated (f6292ba -> 889187a), Eric Bavier, 2016/05/12
- 05/10: gnu: hdf5: Patch output references to zlib.,
Eric Bavier <=
- 04/10: gnu: hdf5: Update to 1.8.17., Eric Bavier, 2016/05/12
- 07/10: gnu: Add hdf5-openmpi., Eric Bavier, 2016/05/12
- 09/10: gnu: Add Matio., Eric Bavier, 2016/05/12
- 06/10: gnu: hdf5: Have configure honor SOURCE_DATE_EPOCH., Eric Bavier, 2016/05/12
- 10/10: gnu: Add NetCDF., Eric Bavier, 2016/05/12
- 08/10: gnu: Add h5check., Eric Bavier, 2016/05/12
- 02/10: gnu: Add doc++., Eric Bavier, 2016/05/12
- 03/10: gnu: Add HYPRE., Eric Bavier, 2016/05/12
- 01/10: gnu: Move asciidoc and doxygen to new module., Eric Bavier, 2016/05/12