easyblock = 'ConfigureMake'

name = 'Qwt'
version = '6.1.3'

homepage = 'http://qwt.sourceforge.net/'
description = """The Qwt library contains GUI Components and utility classes which are primarily useful for programs
 with a technical background."""

toolchain = {'name': 'foss', 'version': '2016b'}

source_urls = [SOURCEFORGE_SOURCE]
sources = [SOURCELOWER_TAR_BZ2]

dependencies = [
    ('Qt', '4.8.7'),
]

skipsteps = ['configure']

prebuildopts = "sed -i 's@QWT_INSTALL_PREFIX[ ]*=.*@QWT_INSTALL_PREFIX = %(installdir)s@g' qwtconfig.pri && "
prebuildopts += "qmake qwt.pro && "

sanity_check_paths = {
    'files': ['lib/libqwt.%s' % SHLIB_EXT],
    'dirs': ['doc', 'features', 'include', 'plugins'],
}

moduleclass = 'lib'
