summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPramod Kumbhar <pramod.s.kumbhar@gmail.com>2016-09-29 21:37:35 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2016-09-29 15:37:35 -0400
commit6c627dbac92ee044884b0f6c32ced5cb510909cf (patch)
tree516d955bb3a86126ae4a5066439befdf0aeed038
parent6ec46ca802d4726b59b3e3fb16a7676afb24a2e2 (diff)
downloadspack-6c627dbac92ee044884b0f6c32ced5cb510909cf.tar.gz
spack-6c627dbac92ee044884b0f6c32ced5cb510909cf.tar.bz2
spack-6c627dbac92ee044884b0f6c32ced5cb510909cf.tar.xz
spack-6c627dbac92ee044884b0f6c32ced5cb510909cf.zip
Add cube variant for building GUI component with qt, parallel built supported (#1525)
-rw-r--r--var/spack/repos/builtin/packages/cube/package.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/cube/package.py b/var/spack/repos/builtin/packages/cube/package.py
index 8c835b3886..9cea3c40e8 100644
--- a/var/spack/repos/builtin/packages/cube/package.py
+++ b/var/spack/repos/builtin/packages/cube/package.py
@@ -43,14 +43,19 @@ class Cube(Package):
version('4.2.3', '8f95b9531f5a8f8134f279c2767c9b20',
url="http://apps.fz-juelich.de/scalasca/releases/cube/4.2/dist/cube-4.2.3.tar.gz")
- # TODO : add variant that builds GUI on top of Qt
+ variant('gui', default=False, description='Build CUBE GUI')
depends_on('zlib')
+ depends_on('qt@4.6:', when='+gui')
def install(self, spec, prefix):
configure_args = ["--prefix=%s" % prefix,
- "--without-paraver",
- "--without-gui"]
+ "--without-paraver"]
+
+ # TODO : need to handle cross compiling build
+ if '+gui' not in spec:
+ configure_args.append('--without-gui')
+
configure(*configure_args)
- make(parallel=False)
+ make()
make("install", parallel=False)