summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/h5hut/package.py70
-rw-r--r--var/spack/repos/builtin/packages/hdf5/package.py1
2 files changed, 71 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/h5hut/package.py b/var/spack/repos/builtin/packages/h5hut/package.py
new file mode 100644
index 0000000000..1501384493
--- /dev/null
+++ b/var/spack/repos/builtin/packages/h5hut/package.py
@@ -0,0 +1,70 @@
+##############################################################################
+# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
+# Produced at the Lawrence Livermore National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/llnl/spack
+# Please also see the LICENSE file for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+
+from spack import *
+
+
+class H5hut(Package):
+ """H5hut (HDF5 Utility Toolkit)
+ High-Performance I/O Library for Particle-based Simulations
+ """
+
+ homepage = "https://amas.psi.ch/H5hut/"
+ url = "https://amas.psi.ch/H5hut/raw-attachment/wiki/DownloadSources/H5hut-1.99.13.tar.gz"
+
+ version("1.99.13", "2a07a449afe50534de006ac6954a421a")
+
+ variant("fortran", default=True, description="Enable Fortran support")
+ variant("mpi", default=False, description="Enable MPI support")
+
+ depends_on("autoconf @2.60:", type="build")
+ depends_on("automake", type="build")
+ depends_on("hdf5 +mpi", when="+mpi")
+ depends_on("hdf5 @1.8:")
+ # h5hut +mpi uses the obsolete function H5Pset_fapl_mpiposix:
+ depends_on("hdf5 @:1.8.12", when="+mpi")
+ depends_on("libtool", type="build")
+ depends_on("mpi", when="+mpi")
+
+ def install(self, spec, prefix):
+ autogen = Executable("./autogen.sh")
+ autogen()
+ configopts = ["--prefix={0}".format(prefix)]
+ if "+fortran" in spec:
+ if not self.compiler.fc:
+ raise RuntimeError(
+ "Cannot build Fortran variant without a Fortran compiler")
+ configopts.append("--enable-fortran")
+ if "+mpi" in spec:
+ configopts.extend([
+ "--enable-parallel",
+ "CC=%s" % spec["mpi"].mpicc,
+ "CXX=%s" % spec["mpi"].mpicxx])
+ if "+fortran" in spec:
+ configopts.append("FC=%s" % spec["mpi"].mpifc)
+ configure(*configopts)
+
+ make()
+ make("install")
diff --git a/var/spack/repos/builtin/packages/hdf5/package.py b/var/spack/repos/builtin/packages/hdf5/package.py
index 70cd168cc0..5984e50f42 100644
--- a/var/spack/repos/builtin/packages/hdf5/package.py
+++ b/var/spack/repos/builtin/packages/hdf5/package.py
@@ -43,6 +43,7 @@ class Hdf5(Package):
version('1.8.16', 'b8ed9a36ae142317f88b0c7ef4b9c618')
version('1.8.15', '03cccb5b33dbe975fdcd8ae9dc021f24')
version('1.8.13', 'c03426e9e77d7766944654280b467289')
+ version('1.8.12', 'd804802feb99b87fc668a90e6fa34411')
variant('debug', default=False,
description='Builds a debug version of the library')