summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJosh Bowden <joshua-charles.bowden@inria.fr>2022-04-04 18:18:12 +0200
committerGitHub <noreply@github.com>2022-04-04 09:18:12 -0700
commit8ddaa08ed2aacb4b5e587a33c625492cbdd4886e (patch)
tree2723744f394730f67a2266761b38c7ee8b32c3b6 /var
parent6d42a1e0f0bedbbd576def7c7dba06d235690746 (diff)
downloadspack-8ddaa08ed2aacb4b5e587a33c625492cbdd4886e.tar.gz
spack-8ddaa08ed2aacb4b5e587a33c625492cbdd4886e.tar.bz2
spack-8ddaa08ed2aacb4b5e587a33c625492cbdd4886e.tar.xz
spack-8ddaa08ed2aacb4b5e587a33c625492cbdd4886e.zip
Damaris package: add version 1.6.0; master branch (#29083)
Also add options to build documentation and Python support.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/damaris/package.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/damaris/package.py b/var/spack/repos/builtin/packages/damaris/package.py
index b478656182..e87f03e4ee 100644
--- a/var/spack/repos/builtin/packages/damaris/package.py
+++ b/var/spack/repos/builtin/packages/damaris/package.py
@@ -3,17 +3,20 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
from spack import *
class Damaris(CMakePackage):
- """Damaris is a middleware for asynchronous I/O and in situ analytics
+ """Damaris is a middleware for I/O and in situ analytics
targeting large-scale, MPI-based HPC simulations."""
homepage = "https://project.inria.fr/damaris/"
git = "https://gitlab.inria.fr/Damaris/damaris.git"
maintainers = ['jcbowden']
+ version('master', branch='master')
+ version('1.6.0', tag='v1.6.0')
version('1.5.0', tag='v1.5.0')
version('1.3.3', tag='v1.3.3')
version('1.3.2', tag='v1.3.2')
@@ -25,6 +28,8 @@ class Damaris(CMakePackage):
variant('catalyst', default=False, description='Enables the Catalyst visualization plugin')
variant('visit', default=False, description='Enables the VisIt visualization plugin')
variant('examples', default=False, description='Enables compilation and installation of the examples code')
+ variant('docs', default=False, description='Enables the building of dOxygen documentation')
+ variant('python', default=False, description='Enables building of Python enabled Damaris library - boost::python boost::numpy needed')
depends_on('mpi')
depends_on('cmake@3.18.0:', type=('build'))
@@ -34,11 +39,14 @@ class Damaris(CMakePackage):
depends_on('hdf5@1.8.20:', when='+hdf5')
depends_on('paraview+python3', when='+catalyst')
depends_on('visit+mpi', when='+visit')
+ depends_on('boost+thread+log+filesystem+date_time+python+numpy @1.67:', when='+python')
def cmake_args(self):
+
args = []
if(not self.spec.variants['static'].value):
args.extend(['-DBUILD_SHARED_LIBS=ON'])
+
args.extend(['-DCMAKE_CXX_COMPILER=%s' % self.spec['mpi'].mpicxx])
args.extend(['-DCMAKE_C_COMPILER=%s' % self.spec['mpi'].mpicc])
args.extend(['-DBOOST_ROOT=%s' % self.spec['boost'].prefix])
@@ -58,10 +66,15 @@ class Damaris(CMakePackage):
args.extend(['-DENABLE_CATALYST:BOOL=ON'])
args.extend(['-DParaView_ROOT:PATH=%s'
% self.spec['catalyst'].prefix])
-
if (self.spec.variants['examples'].value):
args.extend(['-DENABLE_EXAMPLES:BOOL=ON'])
+ if (self.spec.variants['docs'].value):
+ args.extend(['-DENABLE_DOCS:BOOL=ON'])
+
+ if (self.spec.variants['python'].value):
+ args.extend(['-DENABLE_PYTHON:BOOL=ON'])
+
if (self.spec.variants['visit'].value):
args.extend(['-DENABLE_VISIT:BOOL=ON'])
args.extend(['-DVisIt_ROOT:PATH=%s' % self.spec['visit'].prefix])