# IT4Innovations 2019

easyblock = 'CMakeMake'

name = 'PLplot'
version = '5.11.1'
#versionsuffix = '-Java-%(javaver)s-Python-%(pyver)s'

homepage = 'http://plplot.sourceforge.net'
description = """PLplot is a cross-platform software package for creating scientific plots whose (UTF-8) plot symbols
 and text are limited in practice only by what Unicode-aware system fonts are installed on a user's computer."""

toolchain = SYSTEM
toolchainopts = {'pic': True}

source_urls = [SOURCEFORGE_SOURCE]
sources = [SOURCELOWER_TAR_GZ]

builddependencies = [
    ('CMake', '3.16.0', '-rc3'),
#    ('SWIG', '3.0.10', '-Python-%(pyver)s-PCRE-8.39'),
#    ('libtool', '2.4.6'),
]

dependencies = [
    ('zlib', '1.2.11'),
#    ('Java', '1.7.0_80', '', True),
#    ('Python', '2.7.12'),
#    ('Perl', '5.24.0'),
#    ('cairo', '1.14.6'),
#    ('expat', '2.2.0'),
#    ('GLib', '2.49.5'),
#    ('X11', '20160819'),
#    ('Pango', '1.40.3'),
#    ('pixman', '0.34.0'),
#    ('Tcl', '8.6.5'),
#    ('Tk', '8.6.5'),
]

separate_build_dir = True

#modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}

sanity_check_paths = {
    'files': ['lib/libplplot.so', 'lib/pkgconfig/plplot-f95.pc'],
    'dirs': ['bin', 'include/plplot', 'lib/fortran/modules/plplot', 'lib/pkgconfig', 'share/man/man1'],
}

moduleclass = 'vis'
