easyblock = 'EB_Score_minus_P'

name = 'CubeWriter'
version = '4.4.3'

homepage = 'https://www.scalasca.org/software/cube-4.x/download.html'
description = """
 Cube, which is used as performance report explorer for Scalasca and Score-P,
 is a generic tool for displaying a multi-dimensional performance space
 consisting of the dimensions (i) performance metric, (ii) call path, and
 (iii) system resource. Each dimension can be represented as a tree, where
 non-leaf nodes of the tree can be collapsed or expanded to achieve the
 desired level of granularity.

 This module provides the Cube high-performance C writer library component.
"""

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

source_urls = ['https://apps.fz-juelich.de/scalasca/releases/cube/%(version_major_minor)s/dist']
sources = ['cubew-%(version)s.tar.gz']
checksums = [
    '93fff6cc1e8b0780f0171ef5302a2e1a257f99b6383fbfc1b9b82f925ceff501',  # cubew-4.4.3.tar.gz
]

builddependencies = [
    ('binutils', '2.32'),
    ('pkg-config', '0.29.2'),
]

dependencies = [
    ('zlib', '1.2.11'),
]

configopts = '--enable-shared'

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

moduleclass = 'perf'
