Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
66038ef7
Commit
66038ef7
authored
9 years ago
by
Adam J. Stewart
Browse files
Options
Downloads
Patches
Plain Diff
Add url_for_version function and gtk variant
parent
1f93c39c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/qt/package.py
+44
-26
44 additions, 26 deletions
var/spack/repos/builtin/packages/qt/package.py
with
44 additions
and
26 deletions
var/spack/repos/builtin/packages/qt/package.py
+
44
−
26
View file @
66038ef7
import
os
from
spack
import
*
from
spack
import
*
import
os
import
os
class
Qt
(
Package
):
class
Qt
(
Package
):
"""
Qt is a comprehensive cross-platform C++ application framework.
"""
"""
Qt is a comprehensive cross-platform C++ application framework.
"""
homepage
=
"
http://qt.io
"
homepage
=
'
http://qt.io
'
list_url
=
'
http://download.qt-project.org/official_releases/qt/
'
url
=
'
http://download.qt.io/archive/qt/5.5/5.5.1/single/qt-everywhere-opensource-src-5.5.1.tar.gz
'
list_depth
=
2
version
(
'
5.4.2
'
,
'
fa1c4d819b401b267eb246a543a63ea5
'
,
url
=
'
http://download.qt-project.org/official_releases/qt/5.4/5.4.2/single/qt-everywhere-opensource-src-5.4.2.tar.gz
'
)
version
(
'
5.4.0
'
,
'
e8654e4b37dd98039ba20da7a53877e6
'
,
url
=
'
http://download.qt-project.org/official_releases/qt/5.4/5.4.0/single/qt-everywhere-opensource-src-5.4.0.tar.gz
'
)
version
(
'
5.3.2
'
,
'
febb001129927a70174467ecb508a682
'
,
url
=
'
http://download.qt.io/archive/qt/5.3/5.3.2/single/qt-everywhere-opensource-src-5.3.2.tar.gz
'
)
version
(
'
5.2.1
'
,
'
a78408c887c04c34ce615da690e0b4c8
'
,
url
=
'
http://download.qt.io/archive/qt/5.2/5.2.1/single/qt-everywhere-opensource-src-5.2.1.tar.gz
'
)
version
(
'
4.8.6
'
,
'
2edbe4d6c2eff33ef91732602f3518eb
'
,
url
=
"
http://download.qt-project.org/official_releases/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz
"
)
version
(
'
3.3.8b
'
,
'
9f05b4125cfe477cc52c9742c3c09009
'
,
version
(
'
5.5.1
'
,
'
59f0216819152b77536cf660b015d784
'
)
url
=
"
http://download.qt.io/archive/qt/3/qt-x11-free-3.3.8b.tar.gz
"
)
version
(
'
5.4.2
'
,
'
fa1c4d819b401b267eb246a543a63ea5
'
)
version
(
'
5.4.0
'
,
'
e8654e4b37dd98039ba20da7a53877e6
'
)
version
(
'
5.3.2
'
,
'
febb001129927a70174467ecb508a682
'
)
version
(
'
5.2.1
'
,
'
a78408c887c04c34ce615da690e0b4c8
'
)
version
(
'
4.8.6
'
,
'
2edbe4d6c2eff33ef91732602f3518eb
'
)
version
(
'
3.3.8b
'
,
'
9f05b4125cfe477cc52c9742c3c09009
'
)
variant
(
'
mesa
'
,
default
=
False
,
description
=
'
depend on mesa
'
)
# Add patch for compile issues with qt3 found with use in the OpenSpeedShop project
# 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
(
'
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.
"
)
patch
(
'
qt3krell.patch
'
,
when
=
'
@3.3.8b+krellpatch
'
)
patch
(
'
qt3krell.patch
'
,
when
=
'
@3.3.8b+krellpatch
'
)
# Use system openssl for security.
# Use system openssl for security.
#depends_on("openssl")
#depends_on("openssl")
depends_on
(
"
glib
"
)
depends_on
(
"
glib
"
)
depends_on
(
"
gtkplus
"
)
depends_on
(
"
gtkplus
"
,
when
=
'
+gtk
'
)
depends_on
(
"
libxml2
"
)
depends_on
(
"
libxml2
"
)
depends_on
(
"
zlib
"
)
depends_on
(
"
zlib
"
)
depends_on
(
"
dbus
"
,
when
=
'
@4:
'
)
depends_on
(
"
dbus
"
,
when
=
'
@4:
'
)
...
@@ -56,6 +46,34 @@ class Qt(Package):
...
@@ -56,6 +46,34 @@ class Qt(Package):
depends_on
(
"
libxcb
"
)
depends_on
(
"
libxcb
"
)
def
url_for_version
(
self
,
version
):
url
=
"
http://download.qt.io/archive/qt/
"
if
version
>=
Version
(
'
5
'
):
url
+=
"
%s/%s/single/qt-everywhere-opensource-src-%s.tar.gz
"
%
\
(
version
.
up_to
(
2
),
version
,
version
)
elif
version
>=
Version
(
'
4.8
'
):
url
+=
"
%s/%s/qt-everywhere-opensource-src-%s.tar.gz
"
%
\
(
version
.
up_to
(
2
),
version
,
version
)
elif
version
>=
Version
(
'
4.6
'
):
url
+=
"
%s/qt-everywhere-opensource-src-%s.tar.gz
"
%
\
(
version
.
up_to
(
2
),
version
)
elif
version
>=
Version
(
'
4.0
'
):
url
+=
"
%s/qt-x11-opensource-src-%s.tar.gz
"
%
\
(
version
.
up_to
(
2
),
version
)
elif
version
>=
Version
(
'
3
'
):
url
+=
"
%s/qt-x11-free-%s.tar.gz
"
%
\
(
version
.
up_to
(
1
),
version
)
elif
version
>=
Version
(
'
2.1
'
):
url
+=
"
%s/qt-x11-%s.tar.gz
"
%
\
(
version
.
up_to
(
1
),
version
)
else
:
url
+=
"
%s/qt-%s.tar.gz
"
%
\
(
version
.
up_to
(
1
),
version
)
return
url
def
setup_environment
(
self
,
spack_env
,
env
):
def
setup_environment
(
self
,
spack_env
,
env
):
env
.
set
(
'
QTDIR
'
,
self
.
prefix
)
env
.
set
(
'
QTDIR
'
,
self
.
prefix
)
...
@@ -88,7 +106,7 @@ def common_config_args(self):
...
@@ -88,7 +106,7 @@ def common_config_args(self):
'
-v
'
,
'
-v
'
,
'
-opensource
'
,
'
-opensource
'
,
'
-opengl
'
,
'
-opengl
'
,
"
-release
"
,
'
-release
'
,
'
-shared
'
,
'
-shared
'
,
'
-confirm-license
'
,
'
-confirm-license
'
,
'
-openssl-linked
'
,
'
-openssl-linked
'
,
...
@@ -97,7 +115,7 @@ def common_config_args(self):
...
@@ -97,7 +115,7 @@ def common_config_args(self):
'
-no-openvg
'
,
'
-no-openvg
'
,
'
-no-pch
'
,
'
-no-pch
'
,
# NIS is deprecated in more recent glibc
# NIS is deprecated in more recent glibc
"
-no-nis
"
]
'
-no-nis
'
]
# Don't disable all the database drivers, but should
# Don't disable all the database drivers, but should
# really get them into spack at some point.
# really get them into spack at some point.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment