easyblock = 'ConfigureMake'

name = 'FGSL'
version = '1.1.0'

homepage = 'https://www.lrz.de/services/software/mathematik/gsl/fortran/'
description = """FGSL: A Fortran interface to the GNU Scientific Library"""

toolchain = {'name': 'intel', 'version': '2016b'}

sources = ['v%(version)s.tar.gz']
source_urls = ['https://github.com/reinh-bader/fgsl/archive/']

dependencies = [('GSL', '2.1')]

builddependencies = [
    ('Autotools', '20150215'),
    ('pkg-config', '0.29.1'),
]

preconfigopts = 'autoreconf -fvi && '

runtest = 'check'

sanity_check_paths = {
    'files': ['lib/libfgsl.%s' % SHLIB_EXT, 'lib/libfgsl.a'],
    'dirs': ['include/fgsl', 'lib/pkgconfig']
}

moduleclass = 'numlib'
