# IT4Innovations
# # LK 2021

easyblock = 'ConfigureMake'

name = 'gnuplot'
version = '5.4.1'

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

toolchain = {'name': 'GCCcore', 'version': '10.2.0'}

source_urls = [('https://sourceforge.net/projects/gnuplot/files/gnuplot/%(version)s', 'download')]
sources = [SOURCE_TAR_GZ]
checksums = ['6b690485567eaeb938c26936e5e0681cf70c856d273cc2c45fabf64d8bc6590e']

builddependencies = [
    ('binutils', '2.35'),
    ('pkg-config', '0.29.2'),
    ('Autotools', '20200321'),
]

dependencies = [
    ('ncurses', '6.2'),
    ('cairo', '1.16.0'),
    ('libjpeg-turbo', '2.0.5'),
    ('libpng', '1.6.37'),
    ('libgd', '2.3.0'),
    ('Pango', '1.47.0'),
    ('libcerf', '1.14'),
    ('X11', '20201008'),
    ('Qt5', '5.14.2'),
    ('Lua', '5.4.2'),
]

preconfigopts = 'autoreconf && '

configopts = '--with-qt=qt5 --without-latex '

sanity_check_paths = {
    'files': ['bin/gnuplot'],
    'dirs': []
}
# make sure that pdf terminal type is available
sanity_check_commands = ["gnuplot -e 'set terminal pdf'"]

moduleclass = 'vis'
