# IT4Innovations 2020
# LK

easyblock = 'Binary'

name = 'Vampir'
version = '9.6.1'
local_variant = 'linux-x86_64'

homepage = 'http://www.vampir.eu'
description = """The Vampir software tool provides an easy-to-use framework that enables
 developers to quickly display and analyze arbitrary program behavior at any level of detail.
 The tool suite implements optimized event analysis algorithms and customizable displays that
 enable fast and interactive rendering of very local_complex performance monitoring data."""

toolchain = SYSTEM

sources = ['vampir-%s-%s-setup.bin' % (version, local_variant)]

checksums = [
    '9aa16e23aef4d9798b2238b76aa6cc31',    # vampir-9.6.1-linux-x86_64-setup.bin
]

# Adjust this variable to point to the location of your Vampir license file
license_file = '/apps/licenses/vampir/vampir.license'

install_cmd = "./" + sources[0] + " --silent --instdir=%(installdir)s "
install_cmd += "--no-icon --no-menu-items --no-trace-file-association"

sanity_check_paths = {
    'files': ["bin/vampir", "doc/vampir-manual.pdf"],
    'dirs': []
}

# MS: Vampir does its own license activation thing...
# modextravars = {
#    'VAMPIR_LICENSE': license_file,
#}

moduleclass = 'perf'
