# IT4Innovations
# LK 2022

easyblock = 'ConfigureMake'

name = 'Octave'
version = '6.4.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': '2020b'}

source_urls = [GNU_SOURCE]
sources = [SOURCELOWER_TAR_GZ]

dependencies = [
    ('PCRE', '8.40', '', True),
    ('ncurses', '6.2', '', True),
#    ('libreadline', '7.0', '', True),
#    ('cURL', '7.65.3', '', True),
#    ('zlib', '1.2.11', '', True),
    ('HDF5', '1.10.6', '-parallel'),
#    ('FFTW', '3.3.8', '', True),
    ('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 --disable-readline '

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

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

moduleclass = 'math'