summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Olesen <Mark.Olesen@gmx.net>2017-03-27 15:29:33 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2017-03-27 08:29:33 -0500
commitf3ee4ec5bde6b16aed5aaf73ee340e34f47f789c (patch)
tree98f2e731db7358b09be93d1269bbb6365004bffb
parenta623a146def813c50a4a0721ead80d89e54828b4 (diff)
downloadspack-f3ee4ec5bde6b16aed5aaf73ee340e34f47f789c.tar.gz
spack-f3ee4ec5bde6b16aed5aaf73ee340e34f47f789c.tar.bz2
spack-f3ee4ec5bde6b16aed5aaf73ee340e34f47f789c.tar.xz
spack-f3ee4ec5bde6b16aed5aaf73ee340e34f47f789c.zip
CONFIG: update qt package to build qt-5.7.1 (#3535)
- adjusted formatting to reduce some flake8 complaints
-rw-r--r--var/spack/repos/builtin/packages/qt/package.py34
1 files changed, 25 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py
index 6d77f28846..60c5f15ece 100644
--- a/var/spack/repos/builtin/packages/qt/package.py
+++ b/var/spack/repos/builtin/packages/qt/package.py
@@ -35,6 +35,7 @@ class Qt(Package):
list_url = 'http://download.qt.io/archive/qt/'
list_depth = 4
+ version('5.7.1', '031fb3fd0c3cc0f1082644492683f18d')
version('5.7.0', '9a46cce61fc64c20c3ac0a0e0fa41b42')
version('5.5.1', '59f0216819152b77536cf660b015d784')
version('5.4.2', 'fa1c4d819b401b267eb246a543a63ea5')
@@ -46,13 +47,20 @@ class Qt(Package):
# Add patch for compile issues with qt3 found with use in the
# OpenSpeedShop project
- 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('webkit', default=False, description="Build the Webkit extension")
- variant('examples', default=False, description="Build examples.")
- variant('dbus', default=False, description="Build with D-Bus support.")
- variant('phonon', default=False, description="Build with phonon support.")
+ 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('webkit', default=False,
+ description="Build the Webkit extension")
+ variant('examples', default=False,
+ description="Build examples.")
+ variant('dbus', default=False,
+ description="Build with D-Bus support.")
+ variant('phonon', default=False,
+ description="Build with phonon support.")
patch('qt3krell.patch', when='@3.3.8b+krellpatch')
@@ -77,6 +85,9 @@ class Qt(Package):
depends_on("jpeg")
depends_on("icu4c")
+ # QtQml
+ depends_on("python", when='@5.7.0:', type='build')
+
# OpenGL hardware acceleration
depends_on("mesa", when='@4:+mesa')
depends_on("libxcb", when=sys.platform != 'darwin')
@@ -176,10 +187,15 @@ class Qt(Package):
'-optimized-qmake',
'-no-openvg',
'-no-pch',
- # NIS is deprecated in more recent glibc
- '-no-nis'
]
+ if '@:5.7.0' in self.spec:
+ config_args.extend([
+ # NIS is deprecated in more recent glibc,
+ # but qt-5.7.1 does not recognize this option
+ '-no-nis',
+ ])
+
if '~examples' in self.spec:
config_args.extend(['-nomake', 'examples'])