easyblock = 'CmdCp'

name = 'TaskSim_SRC'
version = '3.1'

homepage = 'https://github.com/dchasap/MUSA/releases/download/deepsea'

description = """TaskSim is a trace driven architectural simulator that can simulate high level 
OpenMP/OmpSs runtime events as well as low level instructions (This only install the source 
files required by Nanos++ for instrumentation)."""

source_urls = ['https://github.com/dchasap/MUSA/releases/download/deepsea']
sources = ['tasksim-3.1_profet.tar.gz']
checksums = ['0e3fc16814e11787397df84702d473dc15f3252c4d2f954217100d7d0e04231a']

toolchain = {'name': 'gpsmpi', 'version': '2022a'}

cmds_map = [
    ('tasksim-3.1_profet.tar.gz', "mkdir -p %(installdir)s/include/nextsim"),
]

files_to_copy = [
    (['%(builddir)s/tasksim-musa-3.1_profet/src/*'], '%(installdir)s/include/nextsim/'),
]

sanity_check_paths = {
    'files': ['include/nextsim/core/trace/Trace.h'],
    'dirs': ['include/nextsim']
}

moduleclass = 'tools'