easyblock = 'CMakeMake'

name = 'QJson'
version = '0.9.0'

homepage = 'http://qjson.sourceforge.net/'
description = "QJson is a Qt-based library that maps JSON data to QVariant objects and vice versa."

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

source_urls = ['https://github.com/flavio/qjson/archive/']
sources = ['%(version)s.tar.gz']

dependencies = [
    ('Qt', '4.8.7'),
]
builddependencies = [
    ('CMake', '3.7.1'),
]

separate_build_dir = True

sanity_check_paths = {
    'files': ['lib/libqjson.%s' % SHLIB_EXT],
    'dirs': ['include/qjson', 'lib/cmake', 'lib/pkgconfig'],
}

moduleclass = 'tools'
