# IT4Innovations 2019

easyblock = 'ConfigureMake'

name = 'Valgrind'
version = "3.15.0"

homepage = 'http://valgrind.org/downloads/'
description = "Valgrind: Debugging and profiling tools"

toolchain = {'name': 'foss', 'version': '2017b'}
toolchainopts = {'optarch': False}

source_urls = ['https://sourceware.org/pub/valgrind/']
sources = [SOURCELOWER_TAR_BZ2]

configopts = ' --with-mpicc="$MPICC"'

binaries = [
    'callgrind_annotate', 'callgrind_control', 'cg_annotate', 'cg_diff',
    'cg_merge', 'ms_print', 'valgrind', 'valgrind-listener', 'vgdb'
]

sanity_check_paths = {
    'files': ['bin/%s' % x for x in binaries],
    'dirs': []
}

moduleclass = 'debugger'
