summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2019-09-16 12:02:07 -0400
committerGitHub <noreply@github.com>2019-09-16 12:02:07 -0400
commit76b79c125a71fb582a4a8fc8527063dabef0f4cc (patch)
tree4dc0e2a23ae29275e1e5fb035cea580d78b4fc08 /var
parent9675db4e7f626a14007f743baccaa9e062868432 (diff)
downloadspack-76b79c125a71fb582a4a8fc8527063dabef0f4cc.tar.gz
spack-76b79c125a71fb582a4a8fc8527063dabef0f4cc.tar.bz2
spack-76b79c125a71fb582a4a8fc8527063dabef0f4cc.tar.xz
spack-76b79c125a71fb582a4a8fc8527063dabef0f4cc.zip
xdmf3: new package (#12778)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/xdmf3/package.py44
1 files changed, 44 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/xdmf3/package.py b/var/spack/repos/builtin/packages/xdmf3/package.py
new file mode 100644
index 0000000000..c14560816f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/xdmf3/package.py
@@ -0,0 +1,44 @@
+# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Xdmf3(CMakePackage):
+ """XDMF, or eXtensible Data Model and Format (XDMF), is a common data model
+ format to exchange scientific data between High Performance Computing
+ codes and tools.
+ """
+
+ homepage = "http://xdmf.org"
+ url = "https://gitlab.kitware.com/xdmf/xdmf/-/archive/master/xdmf-master.tar.bz2"
+ git = "https://gitlab.kitware.com/xdmf/xdmf.git"
+
+ # There is no official release of XDMF and development has largely ceased,
+ # but the current version, 3.x, is maintained on the master branch.
+ version('2019-01-14', '8d9c98081d89ac77a132d56bc8bef53581db4078')
+
+ variant('shared', default=True, description='Enable shared libraries')
+ variant('mpi', default=True, description='Enable MPI')
+
+ depends_on('libxml2')
+ depends_on('boost')
+ depends_on('mpi', when='+mpi')
+ depends_on('hdf5+mpi', when='+mpi')
+ depends_on('hdf5~mpi', when='~mpi')
+
+ def cmake_args(self):
+ """Populate cmake arguments for XDMF."""
+ spec = self.spec
+
+ cmake_args = [
+ '-DBUILD_SHARED_LIBS=%s' % str('+shared' in spec),
+ '-DXDMF_BUILD_UTILS=ON',
+ '-DXDMF_WRAP_JAVA=OFF',
+ '-DXDMF_WRAP_PYTHON=OFF',
+ '-DXDMF_BUILD_TESTING=ON'
+ ]
+
+ return cmake_args