diff options
author | Dmitriy <dmitriy@mrzv.org> | 2018-11-01 10:15:12 -0700 |
---|---|---|
committer | Axel Huebl <axel.huebl@plasma.ninja> | 2018-11-01 18:15:12 +0100 |
commit | 36ddcc2e9763af6a479627d0f1344153db8b946a (patch) | |
tree | 22135b34729562aaf49540bbb83ea5d4013f5ea0 /var | |
parent | 6a3552274f6c67439a7da58832fbb3535bf4d966 (diff) | |
download | spack-36ddcc2e9763af6a479627d0f1344153db8b946a.tar.gz spack-36ddcc2e9763af6a479627d0f1344153db8b946a.tar.bz2 spack-36ddcc2e9763af6a479627d0f1344153db8b946a.tar.xz spack-36ddcc2e9763af6a479627d0f1344153db8b946a.zip |
henson: new package (#9657)
* henson: new package
* henson: change github path to henson-insitu
* henson: make mpi-wrappers=off by default
* henson: remove unsued variable and spaces to make linter happy
* henson: rename version master to develop
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/henson/package.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/henson/package.py b/var/spack/repos/builtin/packages/henson/package.py new file mode 100644 index 0000000000..b41fb080fe --- /dev/null +++ b/var/spack/repos/builtin/packages/henson/package.py @@ -0,0 +1,38 @@ +# Copyright 2013-2018 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 Henson(CMakePackage): + """Cooperative multitasking for in situ processing.""" + + homepage = "https://github.com/henson-insitu/henson" + url = "https://github.com/henson-insitu/henson" + git = "https://github.com/henson-insitu/henson.git" + + version('develop', branch='master') + + depends_on('mpi') + + variant('python', default=False, description='Build Python bindings') + extends('python', when='+python') + variant('mpi-wrappers', default=False, description='Build MPI wrappers (PMPI)') + + conflicts('^openmpi', when='+mpi-wrappers') + + def cmake_args(self): + args = [] + if '+python' in self.spec: + args += ['-Dpython=on'] + else: + args += ['-Dpython=off'] + + if '+mpi-wrappers' in self.spec: + args += ['-Dmpi-wrappers=on'] + else: + args += ['-Dmpi-wrappers=off'] + + return args |