easyblock = 'ConfigureMake'

name = 'Octave'
version = '4.0.1'

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

toolchain = {'name': 'gimkl', 'version': '2.11.5'}

source_urls = [GNU_SOURCE]
sources = [SOURCELOWER_TAR_GZ]

dependencies = [
    ('PCRE', '8.37'),
    ('ncurses', '5.9'),
    ('libreadline', '6.3'),
]

configopts = '--with-blas="-fopenmp $LIBBLAS_MT"'

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

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

moduleclass = 'math'
