Add cube variant for building GUI component with qt, parallel built supported (#1525)

This commit is contained in:
Pramod Kumbhar 2016-09-29 21:37:35 +02:00 committed by Todd Gamblin
parent 6ec46ca802
commit 6c627dbac9

View file

@ -43,14 +43,19 @@ class Cube(Package):
version('4.2.3', '8f95b9531f5a8f8134f279c2767c9b20', version('4.2.3', '8f95b9531f5a8f8134f279c2767c9b20',
url="http://apps.fz-juelich.de/scalasca/releases/cube/4.2/dist/cube-4.2.3.tar.gz") 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('zlib')
depends_on('qt@4.6:', when='+gui')
def install(self, spec, prefix): def install(self, spec, prefix):
configure_args = ["--prefix=%s" % prefix, configure_args = ["--prefix=%s" % prefix,
"--without-paraver", "--without-paraver"]
"--without-gui"]
# TODO : need to handle cross compiling build
if '+gui' not in spec:
configure_args.append('--without-gui')
configure(*configure_args) configure(*configure_args)
make(parallel=False) make()
make("install", parallel=False) make("install", parallel=False)