easyblock = 'ConfigureMake'

name = "gperftools"
version = "2.5"

homepage = 'http://github.com/gperftools/gperftools'
description = """gperftools are for use by developers so that they can create more robust applications.
 Especially of use to those developing multi-threaded applications in C++ with templates.
 Includes TCMalloc, heap-checker, heap-profiler and cpu-profiler."""

toolchain = {'name': 'intel', 'version': '2016b'}

sources = [SOURCE_TAR_GZ]
source_urls = ['https://github.com/gperftools/gperftools/releases/download/%(namelower)s-%(version)s']

dependencies = [('libunwind', '1.1')]

configopts = '--enable-libunwind'

sanity_check_paths = {
    'files': ["bin/pprof"],
    'dirs': []
}

moduleclass = 'tools'
