# IT4Innovations 2021
# LK

easyblock = 'ConfigureMake'

name = 'Valgrind'
version = "3.16.1"

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

toolchain = {'name': 'intel', 'version': '2020b'}
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'