easyblock = 'ConfigureMake'

name = 'gnuplot'
version = '5.0.6'

homepage = 'http://gnuplot.sourceforge.net/'
description = """Portable interactive, function plotting utility"""

toolchain = {'name': 'intel', 'version': '2017a'}

sources = [SOURCE_TAR_GZ]
source_urls = [('http://sourceforge.net/projects/gnuplot/files', 'download')]

dependencies = [
    ('cairo', '1.14.8', '', True),
    ('libjpeg-turbo', '1.5.1', '', True),
    ('libpng', '1.6.29', '', True),
    ('libgd', '2.2.4'),
    ('Pango', '1.40.5', '', True),
    ('libcerf', '1.5', '', True),
    ('Qt', '4.8.7', '', True),
]

configopts = '--with-qt=qt4 '

sanity_check_paths = {
    'files': ['bin/gnuplot'],
    'dirs': []
}

moduleclass = 'vis'
