# IT4Innovations 2018

# Original file:
# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild
# Author: Bart Verleye
# Center for eResearch, Auckland

easyblock = 'ConfigureMakePythonPackage'

name = 'PyQt'
version = '4.12'

homepage = 'http://www.riverbanklocal_computing.co.uk/software/pyqt'
description = """PyQt is a set of Python v2 and v3 bindings for Digia's Qt application framework."""

toolchain = {'name': 'Py', 'version': '3.6'}

source_urls = [
    'http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-%(version)s']
sources = ['PyQt4_gpl_x11-%(version)s.tar.gz']

dependencies = [
    ('SIP', '4.19.6'),
    ('Qt', '4.8.7', '', True),
]

configopts = "configure-ng.py --confirm-license"
configopts += " --destdir=%(installdir)s/lib/python36/site-packages "
configopts += " --sipdir=%(installdir)s/share/sip/PyQt%(version_major)s"

options = {'modulename': '%(name)s%(version_major)s'}

modextrapaths = {'PYTHONPATH': 'lib/python36/site-packages'}

sanity_check_paths = {
    'files': [],
    'dirs': ['lib/python36/site-packages/%(name)s%(version_major)s'],
}

moduleclass = 'python'