easyblock = 'EB_Score_minus_P'

name = 'OTF2'
version = '2.2'

homepage = 'https://www.score-p.org'
description = """
 The Open Trace Format 2 is a highly scalable, memory efficient event trace
 data format plus support library. It is the new standard trace format for
 Scalasca, Vampir, and TAU and is open for other tools.
"""

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

source_urls = ['https://www.vi-hps.org/cms/upload/packages/otf2/']
sources = [SOURCELOWER_TAR_GZ]
checksums = [
    'd0519af93839dc778eddca2ce1447b1ee23002c41e60beac41ea7fe43117172d',  # otf2-2.2.tar.gz
]

builddependencies = [
    ('binutils', '2.32'),
    # SIONlib container support (optional):
    ('SIONlib', '1.7.4', '-tools'),
]

configopts = '--enable-shared'

sanity_check_paths = {
    'files': ['bin/otf2-config', 'include/otf2/otf2.h',
              'lib/libotf2.a', 'lib/libotf2.%s' % SHLIB_EXT],
    'dirs': [],
}

moduleclass = 'perf'