easyblock = 'ConfigureMake'

name = 'SIONlib'
version = '1.7.4'
versionsuffix = '-tools'

homepage = 'http://www.fz-juelich.de/ias/jsc/EN/Expertise/Support/Software/SIONlib/_node.html'
description = """
 SIONlib is a scalable I/O library for parallel access to task-local files.
 The library not only supports writing and reading binary data to or from
 several thousands of processors into a single or a small number of physical
 files, but also provides global open and close functions to access SIONlib
 files in parallel. This package provides a stripped-down installation of
 SIONlib for use with performance tools (e.g., Score-P), with renamed symbols
 to avoid conflicts when an application using SIONlib itself is linked against
 a tool requiring a different SIONlib version.
"""

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

source_urls = ['http://apps.fz-juelich.de/jsc/sionlib/download.php?version=%(version)sl']
sources = ['sionlib-%(version)sl.tar.gz']
checksums = [
    '3dcb61ea6c2bfa765c44c2407aba7d4f91f39b93549e81a60b26782feab51dfe',  # sionlib-1.7.4l.tar.gz
]

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

configopts = '--disable-cxx --disable-fortran --disable-ompi'

sanity_check_paths = {
    'files': ['bin/sionconfig'] +
             ['lib/lib%s_64.a' % x for x in ['lsioncom', 'lsiongen', 'lsionser']],
    'dirs': []
}

moduleclass = 'lib'
