aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/maths.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2019-03-27 10:13:46 +0100
committerRicardo Wurmus <rekado@elephly.net>2019-03-27 10:13:46 +0100
commit64dc8b0bfd1cd2ab473ef23c06dde02dd4353cf5 (patch)
treefaf6963048be02f43cdc60242a26ac96cf913091 /gnu/packages/maths.scm
parent9286c0f7e83f9145ff98146a54edc4aaa803fb4b (diff)
downloadguix-64dc8b0bfd1cd2ab473ef23c06dde02dd4353cf5.tar
guix-64dc8b0bfd1cd2ab473ef23c06dde02dd4353cf5.tar.gz
gnu: hdf-java: Fix build.
* gnu/packages/maths.scm (hdf-java)[arguments]: Fix copying from automake; substitute embedded hdf5 version number.
Diffstat (limited to 'gnu/packages/maths.scm')
-rw-r--r--gnu/packages/maths.scm13
1 files changed, 11 insertions, 2 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 6dbb702929..6ebc82a200 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -953,10 +953,19 @@ extremely large and complex data collections.")
;; Replace outdated config.sub and config.guess:
(with-directory-excursion "config"
(for-each (lambda (file)
- (copy-file
+ (install-file
(string-append (assoc-ref inputs "automake")
- "/share/automake-1.15/" file) file))
+ "/share/automake-"
+ ,(version-major+minor (package-version automake))
+ "/" file) "."))
'("config.sub" "config.guess")))
+
+ ;; Fix embedded version number
+ (let ((hdf5version (list ,@(string-split (package-version hdf5) #\.))))
+ (substitute* "hdf/hdf5lib/H5.java"
+ (("1, 8, 19")
+ (string-join hdf5version ", "))))
+
(mkdir-p (string-append (assoc-ref outputs "out")))
;; Set classpath for tests
(let* ((build-dir (getcwd))