unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add hdf5.
@ 2014-02-16 11:21 John Darrington
  2014-02-16 21:18 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: John Darrington @ 2014-02-16 11:21 UTC (permalink / raw)
  To: guix-devel; +Cc: John Darrington

* gnu/packages/maths.scm (hdf5): New variable.
* gnu/packages/maths.scm (octave): New input hdf5.
---
 gnu/packages/maths.scm |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index f5bd1d1..d91039f 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -236,6 +236,37 @@ plotting engine by third-party applications like Octave.")
     (license (license:fsf-free
 	      "http://gnuplot.cvs.sourceforge.net/gnuplot/gnuplot/Copyright"))))
 
+(define-public hdf5
+  (package
+    (name "hdf5")
+    (version "1.8.12")
+    (source
+     (origin
+      (method url-fetch)
+      (uri (string-append "http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-"
+                          version ".tar.bz2"))
+      (sha256
+       (base32 "0f9n0v3p3lwc7564791a39c6cn1d3dbrn7d1j3ikqsi27a8hy23d"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+        (alist-replace
+         'configure
+         (lambda* (#:key target system outputs #:allow-other-keys #:rest args)
+           (let ((configure (assoc-ref %standard-phases 'configure)))
+             (substitute* "configure"
+                   (("/bin/mv") "mv"))
+             (apply configure args)))
+         %standard-phases)))
+    (outputs '("out" "bin" "lib" "include"))
+    (native-inputs `(("inetutils" ,inetutils))) ;; the configure script calls `hostname'
+    (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
+extremely large and complex data collections.") 
+    (license (license:x11-style "http://www.hdfgroup.org/ftp/HDF5/current/src/unpacked/COPYING"))))
+
+
 ;; For a fully featured Octave, users  are strongly recommended also to install
 ;; the following packages: texinfo, less, ghostscript, gnuplot.
 (define-public octave
@@ -260,6 +291,8 @@ plotting engine by third-party applications like Octave.")
        ("fltk" ,fltk)
        ("fontconfig" ,fontconfig)
        ("freetype" ,freetype)
+       ("hdf5-lib" ,hdf5 "lib")
+       ("hdf5-include" ,hdf5 "include")
        ("libxft" ,libxft)
        ("mesa" ,mesa)
        ("zlib" ,zlib)))
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] gnu: Add hdf5.
  2014-02-16 11:21 [PATCH] gnu: Add hdf5 John Darrington
@ 2014-02-16 21:18 ` Ludovic Courtès
  2014-02-16 22:36   ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2014-02-16 21:18 UTC (permalink / raw)
  To: John Darrington; +Cc: guix-devel

John Darrington <jmd@gnu.org> skribis:

> * gnu/packages/maths.scm (hdf5): New variable.
> * gnu/packages/maths.scm (octave): New input hdf5.

Applied, thanks!

> +    (native-inputs `(("inetutils" ,inetutils))) ;; the configure script calls `hostname'

All/most Autoconf-generated do that, but usually it doesn’t matter if
it’s missing.  Is the result actually used?  If yes, that’s an impurity,
so we might be better off patching the invocation.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gnu: Add hdf5.
  2014-02-16 21:18 ` Ludovic Courtès
@ 2014-02-16 22:36   ` Ludovic Courtès
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2014-02-16 22:36 UTC (permalink / raw)
  To: John Darrington; +Cc: guix-devel

ludo@gnu.org (Ludovic Courtès) skribis:

> John Darrington <jmd@gnu.org> skribis:

[...]

>> +    (native-inputs `(("inetutils" ,inetutils))) ;; the configure script calls `hostname'
>
> All/most Autoconf-generated do that, but usually it doesn’t matter if
> it’s missing.  Is the result actually used?

I figured the answer is ‘no’, so I removed this line.

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-16 22:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-16 11:21 [PATCH] gnu: Add hdf5 John Darrington
2014-02-16 21:18 ` Ludovic Courtès
2014-02-16 22:36   ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).