From c942ab65f16ae4207faebcc1b153c88166940d2c Mon Sep 17 00:00:00 2001 From: John Soo Date: Sun, 7 Jul 2019 10:13:17 -0700 Subject: [PATCH 10/11] gnu: Add libmedfile. --- gnu/packages/engineering.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 8e36354862..dd7f15abe1 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -2065,6 +2065,35 @@ simulation.") (license license:gpl3+))) +(define-public libmedfile + (package + (name "libmedfile") + (version "3.3.1") + (source + (origin + (method url-fetch) + (uri (string-append + "http://files.salome-platform.org/Salome/other/med-" + version ".tar.gz")) + (sha256 + (base32 + "1215sal10xp6xirgggdszay2bmx0sxhn9pgh7x0wg2w32gw1wqyx")))) + (build-system cmake-build-system) + (inputs `(("hdf5" ,hdf5))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'remove-test-output + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (delete-file-recursively + (string-append out "/bin/testc")) + #t)))))) + (home-page "https://www.salome-platform.org") + (synopsis "Library to read and write MED files") + (description "Library to read and write MED files") + (license license:lgpl2.1))) + ;; TODO: Try the google archive version with gplv3 ;; subversion url: ;; svn checkout http://libarea.googlecode.com/svn/trunk/ libarea -- 2.22.0