summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorCameron Stanavige <stanavige1@llnl.gov>2021-04-16 15:32:38 -0700
committerGitHub <noreply@github.com>2021-04-16 15:32:38 -0700
commitc69b750a52e813353e261e7d1f3a49ac3d1e0a81 (patch)
tree81d72960a6650db87befb69aa1b7f2e4ac705add /var
parent1a85c3cd43499baec65f157f5a7d5fd4325b7733 (diff)
downloadspack-c69b750a52e813353e261e7d1f3a49ac3d1e0a81.tar.gz
spack-c69b750a52e813353e261e7d1f3a49ac3d1e0a81.tar.bz2
spack-c69b750a52e813353e261e7d1f3a49ac3d1e0a81.tar.xz
spack-c69b750a52e813353e261e7d1f3a49ac3d1e0a81.zip
kvtree: add variant and new releases (#22852)
This updates the url and adds three versions to the package. This also adds a variant for the KVTree "file_lock" cmake option.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/kvtree/package.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/kvtree/package.py b/var/spack/repos/builtin/packages/kvtree/package.py
index a7661c0aae..f5eef66e71 100644
--- a/var/spack/repos/builtin/packages/kvtree/package.py
+++ b/var/spack/repos/builtin/packages/kvtree/package.py
@@ -11,17 +11,25 @@ class Kvtree(CMakePackage):
hashes."""
homepage = "https://github.com/ecp-veloc/KVTree"
- url = "https://github.com/ecp-veloc/KVTree/archive/v1.0.2.zip"
+ url = "https://github.com/ecp-veloc/KVTree/archive/v1.1.1.tar.gz"
git = "https://github.com/ecp-veloc/kvtree.git"
tags = ['ecp']
version('master', branch='master')
+ version('1.1.1', sha256='e3c652fa69e6f31da48fab57c302a9deb3e33ea41f96b6b4480a78eeb71e7659')
+ version('1.1.0', sha256='34182f8e6c8f3c089376579cce3d18cfd93b59caf83649b204ed8456ac97400f')
+ version('1.0.3', sha256='b892cf6c270ca6c15c0a816549bd5f8575a9ad2fca287d36e1116bd4cfe5c391')
version('1.0.2', sha256='6b54f4658e5ebab747c0c2472b1505ac1905eefc8a0b2a97d8776f800ee737a3')
variant('mpi', default=True, description="Build with MPI message packing")
depends_on('mpi', when='+mpi')
+ variant('file_lock', default='FLOCK',
+ values=('FLOCK', 'FNCTL', 'NONE'),
+ multi=False,
+ description='File locking style for KVTree.')
+
def cmake_args(self):
args = []
if self.spec.satisfies('+mpi'):
@@ -29,6 +37,10 @@ class Kvtree(CMakePackage):
args.append("-DMPI_C_COMPILER=%s" % self.spec['mpi'].mpicc)
else:
args.append("-DMPI=OFF")
+
+ args.append('-DKVTREE_FILE_LOCK={0}'.format(
+ spec.variants['file_lock'].value.upper()))
+
if self.spec.satisfies('platform=cray'):
args.append("-DKVTREE_LINK_STATIC=ON")
return args