# This is an easyconfig file for EasyBuild, see http://easybuilders.github.io/easybuild

name = 'ifort'
version = '2019.1.144'

homepage = 'https://software.intel.com/en-us/intel-compilers/'
description = "Intel Fortran compiler"

toolchain = SYSTEM

source_urls = ['https://registrationcenter-download.intel.com/akdlm/irc_nas/tec/14866/']
sources = ['parallel_studio_xe_%(version_major)s_update%(version_minor)s_composer_edition_for_fortran.tgz']
patches = ['ifort-%(version)s_no_mpi_mic_dependency.patch']
checksums = [
    # parallel_studio_xe_2019_update1_composer_edition_for_fortran.tgz
    '55a5a3d1edb92faff76d7af5522803590247afef9dec6cc9b9f211ba385b0c23',
    '12910d18c9f0560aeed80e6425903039d4b3198134155b47e99ff0c03a693ecd',  # ifort-2019.1.144_no_mpi_mic_dependency.patch
]

local_gccver = '8.2.0'
local_binutilsver = '2.31.1'
versionsuffix = '-GCC-%s-%s' % (local_gccver, local_binutilsver)

dependencies = [
    ('GCCcore', local_gccver),
    ('binutils', local_binutilsver, '', ('GCCcore', local_gccver)),
]

# list of regex for components to install
# full list of components can be obtained from pset/mediaconfig.xml in unpacked sources
# cfr. https://software.intel.com/en-us/articles/intel-composer-xe-2015-silent-installation-guide
components = ['intel-comp', 'intel-fcomp', 'intel-ifort', 'intel-openmp', 'intel-ipsf?_', 'intel-gdb(?!.*mic)']

dontcreateinstalldir = True

license_file = '/apps/licenses/intel/license.lic'

moduleclass = 'compiler'
