summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Kosukhin <skosukhin@gmail.com>2016-09-21 09:25:14 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2016-09-21 00:25:14 -0700
commit746495896cff3f1c43ef306afac3fd3e63695d62 (patch)
treec7a32e6e984cfe6b3aa905f574aeb7107fc2b653
parente6dc448f1843078f922d9ff018cc4bd0c9a19967 (diff)
downloadspack-746495896cff3f1c43ef306afac3fd3e63695d62.tar.gz
spack-746495896cff3f1c43ef306afac3fd3e63695d62.tar.bz2
spack-746495896cff3f1c43ef306afac3fd3e63695d62.tar.xz
spack-746495896cff3f1c43ef306afac3fd3e63695d62.zip
Qt library: added variant to enable/disable compilation of examples (#1763)
-rw-r--r--var/spack/repos/builtin/packages/qt/package.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py
index 436702fa4e..0534c43a7c 100644
--- a/var/spack/repos/builtin/packages/qt/package.py
+++ b/var/spack/repos/builtin/packages/qt/package.py
@@ -47,6 +47,7 @@ class Qt(Package):
variant('krellpatch', default=False, description="Build with openspeedshop based patch.")
variant('mesa', default=False, description="Depend on mesa.")
variant('gtk', default=False, description="Build with gtkplus.")
+ variant('examples', default=False, description="Build examples.")
patch('qt3krell.patch', when='@3.3.8b+krellpatch')
@@ -143,7 +144,7 @@ class Qt(Package):
@property
def common_config_args(self):
- return [
+ common_arg_list = [
'-prefix', self.prefix,
'-v',
'-opensource',
@@ -160,6 +161,11 @@ class Qt(Package):
'-no-nis'
]
+ if '~examples' in self.spec:
+ common_arg_list.extend(['-nomake', 'examples'])
+
+ return common_arg_list
+
# Don't disable all the database drivers, but should
# really get them into spack at some point.