easyblock = 'ConfigureMake'

name = 'Blitz++'
version = '0.10'

homepage = 'http://blitz.sourceforge.net/'

description = """
 Blitz++ is a (LGPLv3+) licensed meta-template library for array manipulation
 in C++ with a speed comparable to Fortran implementations, while preserving an
 object-oriented interface
"""

toolchain = {'name': 'GCCcore', 'version': '7.3.0'}
toolchainopts = {'pic': True}

source_urls = [('https://sourceforge.net/projects/blitz/files/blitz/Blitz%2B%2B%20%(version)s/blitz-%(version)s.tar.gz/', 'download')]
sources = ['blitz-%(version)s.tar.gz']
checksums = ['804ef0e6911d43642a2ea1894e47c6007e4c185c866a7d68bad1e4c8ac4e6f94']

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

configopts = '--enable-shared'

sanity_check_paths = {
    'files': ['lib/libblitz.a'],
    'dirs': ['include/blitz/array', 'include/blitz/gnu', 'include/blitz/meta',
             'include/random', 'lib/pkgconfig'],
}

moduleclass = 'lib'
