# IT4Innovations
# LK 2021

name = 'VTune'
version = '2021.9.0'

homepage = 'https://software.intel.com/en-us/vtune'
description = """Intel VTune Amplifier XE is the premier performance profiler for C, C++, C#, Fortran,
 Assembly and Java."""

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

# By downloading, you accept the Intel End User License Agreement
# (https://software.intel.com/content/www/us/en/develop/articles/end-user-license-agreement.html)
# accept_eula = True
# https://registrationcenter-download.intel.com/akdlm/irc_nas/tec/18302/l_oneapi_vtune_p_2021.9.0.545_offline.sh
source_urls = ['https://registrationcenter-download.intel.com/akdlm/irc_nas/18302/']
sources = ['l_oneapi_vtune_p_%(version)s.545_offline.sh']
checksums = ['ab1af3a83e13608f0bc78b102b75b9c2']

dependencies = [
   ('Pango', '1.47.0'),
   ('X11', '20201008'),
]

# Do necessary post-install steps to build VTune kernel modules
postinstallcmds = [
    'mkdir %(installdir)s/modules',
    'cd %(installdir)s/vtune/%(version)s/sepdk/src/ && '
#    './build-driver --install-dir=%(installdir)s/modules --non-interactive',
#    'sed "s|DEFAULT_GROUP=vtune|DEFAULT_GROUP=wheel|" %(installdir)s/modules/pax/insmod-pax -i',
#    'sed "s|DEFAULT_GROUP=vtune|DEFAULT_GROUP=wheel|" %(installdir)s/modules/vtsspp/insmod-vtsspp -i',
#    'sed "s|DEFAULT_GROUP=vtune|DEFAULT_GROUP=wheel|" %(installdir)s/modules/insmod-sep -i',
]

moduleclass = 'tools'
