# IT4Innovations 2020

easyblock = 'ConfigureMake'

name = 'Octave'
version = '5.1.0'
versionsuffix = '-without-X11'

homepage = 'http://www.gnu.org/software/octave/'
description = """GNU Octave is a high-level interpreted language, primarily intended for numerical local_computations."""

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

source_urls = [GNU_SOURCE]
sources = [SOURCELOWER_TAR_GZ]

dependencies = [
    ('PCRE', '8.40', '', True),
    ('ncurses', '6.1', '', True),
    ('libreadline', '7.0', '', True),
    ('cURL', '7.65.3', '', True),
    ('zlib', '1.2.11', '', True),
    ('HDF5', '1.10.5'),
    ('FFTW', '3.3.8'),
    ('gnuplot', '5.2.8', '', True),
]

configopts = '--disable-docs --without-opengl --without-qhull '
configopts += '--with-blas="$LIBBLAS" --with-lapack="$LIBLAPACK" '
configopts += '--enable-fortran-calling-convention=gfortran'

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

sanity_check_commands = [('octave', '--eval "1+2"')]

moduleclass = 'math'
