summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.