From 8a41cbf813238cbb35b6cd9332ea1d6c39372576 Mon Sep 17 00:00:00 2001 From: dorier Date: Thu, 15 Nov 2018 03:39:35 +0000 Subject: Argobots: added @develop version and +valgrind variant (#9664) * added develop version in argobots package and added valgrind variant * made autotools required only for develop version * corrected style * Added --disable-valgrind Added --disable-valgrind to explicitly disable it when +valgrind isn't provided. --- var/spack/repos/builtin/packages/argobots/package.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/var/spack/repos/builtin/packages/argobots/package.py b/var/spack/repos/builtin/packages/argobots/package.py index 3df5a2039e..e2d9a64172 100644 --- a/var/spack/repos/builtin/packages/argobots/package.py +++ b/var/spack/repos/builtin/packages/argobots/package.py @@ -17,6 +17,25 @@ class Argobots(AutotoolsPackage): homepage = "http://www.argobots.org/" url = "https://github.com/pmodels/argobots/releases/download/v1.0b1/argobots-1.0b1.tar.gz" + git = "https://github.com/pmodels/argobots.git" + version("develop", branch="master") version("1.0b1", "5eeab7b2c639d08bbea22db3026cdf39") version("1.0a1", "9d29d57d14d718f93b505178f6ba3e08") + + variant("valgrind", default=False, description="Enable Valgrind") + + depends_on("m4", type=("build"), when="@develop") + depends_on("autoconf", type=("build"), when="@develop") + depends_on("automake", type=("build"), when="@develop") + depends_on("libtool", type=("build"), when="@develop") + depends_on("valgrind", when="+valgrind") + + def configure_args(self): + args = ["--enable-perf-opt"] + if '+valgrind' in self.spec: + args.append('--enable-valgrind') + else: + args.append('--disable-valgrind') + + return args -- cgit v1.2.3-70-g09d2