##
# This is an easyconfig file for EasyBuild, see https://github.com/hpcugent/easybuild
#
# Copyright:: Copyright 2016 Juelich Superlocal_computing Centre, Germany
# Authors::   Markus Geimer <m.geimer@fz-juelich.de>
# License::   3-clause BSD
##

easyblock = 'ConfigureMake'

name = 'SIONlib'
version = '1.6.1'
# Provide a stripped-down version with renamed symbols for tools,
# see description for further details
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': 'intel', 'version': '2015b'}
toolchainopts = {'pic': True}

sources = ['sionlib-%(version)sl.tar.gz']
source_urls = [
    'http://apps.fz-juelich.de/jsc/sionlib/download.php?version=%(version)sl']

checksums = [
    '57208e08309cf8892fe3daee90567d21',     # sionlib-1.6.1l.tar.gz
]

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

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

moduleclass = 'lib'
