##
# This is an easyconfig file for EasyBuild, see https://github.com/hpcugent/easybuild
#
# Copyright:: Copyright 2013-2015 Juelich Supercomputing Centre, Germany
# Authors::   Bernd Mohr <b.mohr@fz-juelich.de>
#             Markus Geimer <m.geimer@fz-juelich.de>
# License::   3-clause BSD
#
# This work is based on experiences from the UNITE project
# http://apps.fz-juelich.de/unite/
##

easyblock = 'Binary'

name = 'Vampir'
version = '8.5.0'
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 complex performance monitoring data."""

toolchain = {'name': 'system', 'version': ''}

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

checksums = [
    '6d949e37a095a70a6fc61fa2eeae9389',    # vampir-8.5.0-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'
