easyblock = 'CMakeMake'

name = 'Blitz++'
version = '1.0.2'

homepage = 'https://github.com/blitzpp/blitz'

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': '10.2.0'}
toolchainopts = {'pic': True}

source_urls = [('https://github.com/blitzpp/blitz/archive/')]
sources = ['%(version)s.tar.gz']
checksums = ['500db9c3b2617e1f03d0e548977aec10d36811ba1c43bb5ef250c0e3853ae1c2']

builddependencies = [('CMake', '3.18.4'), ('binutils', '2.35')]

separate_build_dir = True

sanity_check_paths = {
    'files': ['lib64/libblitz.a', 'lib64/libblitz.%s' % SHLIB_EXT],
    'dirs': ['include/blitz/array', 'include/blitz/meta',
             'include/random', 'lib64/pkgconfig'],
}

moduleclass = 'lib'
