summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2017-05-10 10:47:56 -0400
committerAdam J. Stewart <ajstewart426@gmail.com>2017-05-10 09:47:56 -0500
commitc422b33d77c13cc6e7cc0aa16fcaf6de6ce6452c (patch)
tree3de868d649be436e83fe7743f894109be8462151
parent94c1651bce82cc1c7052571bf02724c1b2a142bb (diff)
downloadspack-c422b33d77c13cc6e7cc0aa16fcaf6de6ce6452c.tar.gz
spack-c422b33d77c13cc6e7cc0aa16fcaf6de6ce6452c.tar.bz2
spack-c422b33d77c13cc6e7cc0aa16fcaf6de6ce6452c.tar.xz
spack-c422b33d77c13cc6e7cc0aa16fcaf6de6ce6452c.zip
highfive: New package; this is a C++ wrapper for the HDF5 library (#4173)
* highfive: New package; this is a C++ wrapper for the HDF5 library The C++ wrapper that is shipped with the HDF5 library has several shortcomings. The highfive library seems to avoid these. * highfive: Make MPI variant default to true
-rw-r--r--var/spack/repos/builtin/packages/highfive/package.py52
1 files changed, 52 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/highfive/package.py b/var/spack/repos/builtin/packages/highfive/package.py
new file mode 100644
index 0000000000..3ee9cfeba0
--- /dev/null
+++ b/var/spack/repos/builtin/packages/highfive/package.py
@@ -0,0 +1,52 @@
+##############################################################################
+# 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 Highfive(CMakePackage):
+ """HighFive - Header only C++ HDF5 interface"""
+
+ homepage = "https://github.com/BlueBrain/HighFive"
+ url = "https://github.com/BlueBrain/HighFive/archive/v1.2.tar.gz"
+
+ version('1.2', '030728d53519c7e13b5a522d34240301')
+ version('1.1', '986f0bd18c5264709688a536c02d2b2a')
+ version('1.0', 'e44e548560ea92afdb244c223b7655b6')
+
+ variant('boost', default=False, description='Support Boost')
+ variant('mpi', default=True, description='Support MPI')
+
+ depends_on('boost @1.41:', when='+boost')
+ depends_on('hdf5')
+ depends_on('hdf5 +mpi', when='+mpi')
+
+ def cmake_args(self):
+ args = [
+ '-DUSE_BOOST:Bool={0}'.format('+boost' in self.spec),
+ '-DHIGHFIVE_PARALLEL_HDF5:Bool={0}'.format('+mpi' in self.spec),
+ '-DUNIT_TESTS:Bool=false',
+ '-DHIGHFIVE_EXAMPLES:Bool=false']
+ return args