summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Stanavige <stanavige1@llnl.gov>2021-04-23 05:46:18 -0700
committerGitHub <noreply@github.com>2021-04-23 06:46:18 -0600
commit93976d018dfe648bcab30c191106843b67a1f701 (patch)
tree4138981e3205bddf4a94169370bc70df39c211ef
parent5641923dfa9b4b7b9e2158f2969c48cb6c216640 (diff)
downloadspack-93976d018dfe648bcab30c191106843b67a1f701.tar.gz
spack-93976d018dfe648bcab30c191106843b67a1f701.tar.bz2
spack-93976d018dfe648bcab30c191106843b67a1f701.tar.xz
spack-93976d018dfe648bcab30c191106843b67a1f701.zip
er: add v0.0.4 (#23022)
This adds that new version to the package, updates the url, and updates the hash of v0.0.3 for the new url. This also updates the KVTree dependency as MPI is required to be enabled in KVTree for er to work. rankstr is now also required by er for recently added tests.
-rw-r--r--var/spack/repos/builtin/packages/er/package.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/er/package.py b/var/spack/repos/builtin/packages/er/package.py
index e8306e273d..358ea66ec9 100644
--- a/var/spack/repos/builtin/packages/er/package.py
+++ b/var/spack/repos/builtin/packages/er/package.py
@@ -10,25 +10,30 @@ class Er(CMakePackage):
"""Encoding and redundancy on a file set"""
homepage = "https://github.com/ecp-veloc/er"
- url = "https://github.com/ecp-veloc/er/archive/v0.0.3.zip"
+ url = "https://github.com/ecp-veloc/er/archive/v0.0.3.tar.gz"
git = "https://github.com/ecp-veloc/er.git"
tags = ['ecp']
version('master', branch='master')
- version('0.0.3', sha256='9aa08f9fe70e42f0da27a5d90d4643b520d61f24742303bf016322823b3c4d26')
+ version('0.0.4', sha256='c456d34719bb57774adf6d7bc2fa9917ecb4a9de442091023c931a2cb83dfd37')
+ version('0.0.3', sha256='243b2b46ea274e17417ef5873c3ed7ba16dacdfdaf7053d1de5434e300de796b')
depends_on('mpi')
- depends_on('kvtree')
+ depends_on('kvtree+mpi')
+ depends_on('rankstr', when='@0.0.4:')
depends_on('redset')
depends_on('shuffile')
def cmake_args(self):
+ spec = self.spec
args = []
- args.append("-DMPI_C_COMPILER=%s" % self.spec['mpi'].mpicc)
- if self.spec.satisfies('platform=cray'):
+ args.append("-DMPI_C_COMPILER=%s" % spec['mpi'].mpicc)
+ if spec.satisfies('platform=cray'):
args.append("-DER_LINK_STATIC=ON")
- args.append("-DWITH_KVTREE_PREFIX=%s" % self.spec['kvtree'].prefix)
- args.append("-DWITH_REDSET_PREFIX=%s" % self.spec['redset'].prefix)
- args.append("-DWITH_SHUFFILE_PREFIX=%s" % self.spec['shuffile'].prefix)
+ args.append("-DWITH_KVTREE_PREFIX=%s" % spec['kvtree'].prefix)
+ args.append("-DWITH_REDSET_PREFIX=%s" % spec['redset'].prefix)
+ args.append("-DWITH_SHUFFILE_PREFIX=%s" % spec['shuffile'].prefix)
+ if spec.satisfies('@0.0.4:'):
+ args.append("-DWITH_RANKSTR_PREFIX=%s" % spec['rankstr'].prefix)
return args