# JH 2020

easyblock = 'ConfigureMake'

name = 'gperftools'
version = '2.8'

homepage = 'https://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': 'GCCcore', 'version': '9.3.0'}

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

builddependencies = [('binutils', '2.34')]
dependencies = [('libunwind', '1.3.1')]

configopts = '--enable-libunwind'

sanity_check_paths = {
    'files': ['bin/pprof', 'lib/libprofiler.a', 'lib/libprofiler.%s' % SHLIB_EXT,
              'lib/libtcmalloc.a', 'lib/libtcmalloc.%s' % SHLIB_EXT],
    'dirs': []
}

moduleclass = 'tools'
