easyblock = 'AllineaBase'

name = 'PerformanceReports'
version = '7.0.6'

homepage = 'http://www.allinea.com/products/allinea-performance-reports'
description = """Allinea Performance Reports are the most effective way
to characterize and understand the performance of HPC application runs.
One single-page HTML report elegantly answers a range of vital questions for any HPC site.
 - Is this application well-optimized for the system and the processors it is running on?
 - Does it benefit from running at this scale?
 - Are there I/O, networking or threading bottlenecks affecting performance?
 - Which hardware, software or configuration changes can we make to improve performance further.
 - How much energy did this application use?
"""

toolchain = SYSTEM

source_urls = [
    # Use manually downloaded sources
]

sources = [SOURCELOWER_TAR]

skipsteps = ['configure', 'build']

postinstallcmds = [
    'ln -s /apps/licenses/PerformanceReports/Licence %(installdir)s/licences/Licence',
]

sanity_check_paths = {
    'files': ['bin/perf-report'],
    'dirs': ['lib'],
}

moduleclass = 'debugger'