easyblock = 'CMakeMake'

name = 'FANN'
version = '2.2.0'

homepage = 'http://leenissen.dk'
description = """Fast Artificial Neural Network Library is a free open source neural network library,
 which implements multilayer artificial neural networks in C with support for both fully connected
 and sparsely connected networks."""

toolchain = {'name': 'GCCcore', 'version': '7.3.0'}

source_urls = ['https://github.com/lib%(namelower)s/%(namelower)s/archive']
sources = ['%(version)s.tar.gz']
checksums = ['f31c92c1589996f97d855939b37293478ac03d24b4e1c08ff21e0bd093449c3c']

builddependencies = [
    ('binutils', '2.30'),
    ('CMake', '3.12.1'),
]

sanity_check_paths = {
    'files': ['include/fann.h', 'lib/libfann.%s' % SHLIB_EXT],
    'dirs': ['include', 'lib'],
}

moduleclass = 'lib'
