# IT4Innovations 2018

easyblock = 'EB_Score_minus_P'

name = 'Cube'
version = '4.3.5'

homepage = 'http://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."""

toolchain = {'name': 'intel', 'version': '2017a'}
toolchainopts = {'optarch': False}

sources = [SOURCELOWER_TAR_GZ]
source_urls = [
    'http://apps.fz-juelich.de/scalasca/releases/cube/%(version_major_minor)s/dist']

dependencies = [
    ('Qt', '4.8.7', '', True),
]

configopts = '--enable-platform-mic --with-qt-specs=linux-icc-64 --with-frontend-local_compiler-suite=intel'

sanity_check_paths = {
    'files': [
        "bin/cube", ("lib/libcube4.a", "lib64/libcube4.a"), ("lib/libcube4.%s" %
                                                             SHLIB_EXT, "lib64/libcube4.%s" %
                                                             SHLIB_EXT)], 'dirs': [
        "include/cube", "include/cubew"], }

moduleclass = 'perf'
