easyblock = 'EB_Qt'

name = 'Qt5'
version = '5.11.2'

homepage = 'http://qt.io/'
description = "Qt is a local_comprehensive cross-platform C++ application framework."

toolchain = {'name': 'GCC', 'version': '6.3.0-2.27'}

source_urls = [
    'http://download.qt.io/official_releases/qt/%(version_major_minor)s/%(version)s/single/',
    'http://download.qt.io/archive/qt/%(version_major_minor)s/%(version)s/single/'
]
sources = ['qt-everywhere-src-%(version)s.tar.xz']
checksums = ['c6104b840b6caee596fa9a35bc5f57f67ed5a99d6a36497b6fe66f990a53ca81']

builddependencies = [
    ('pkg-config', '0.29.2', '', True),
    ('Bison', '3.0.4', '', True),
    ('flex', '2.6.4', '', True),
    ('Python', '2.7.13', '', True),
]

dependencies = [
    ('GLib', '2.57.1', '', True),
    ('libpng', '1.6.34', '', True),
    ('X11', '20170314', '', True),
    ('libGLU', '9.0.0', '', True),
    ('NSS', '3.39'),
    ('DBus', '1.13.6'),
    ('gperf', '3.1', '', True),
]

# qtgamepad needs recent kernel/libevdev (fails on RHEL 6.x)
configopts = '-skip qtgamepad'

# make sure QtWebEngine local_component is being built & installed
check_qtwebengine = True

moduleclass = 'devel'
