easyblock = "Toolchain"

name = 'gompi'
version = '2015b'

homepage = '(none)'
description = """GNU Compiler Collection (GCC) based compiler toolchain,
 including OpenMPI for MPI support."""

toolchain = {'name': 'dummy', 'version': 'dummy'}

gccver = '5.1.0'
binutilsver = '2.25'
tcver = '%s-binutils-%s' % (gccver, binutilsver)

# compiler toolchain dependencies
dependencies = [
    ('GCC', gccver, '-binutils-%s' % binutilsver),
    ('binutils', binutilsver, '', ('GCC', tcver)),
    ('OpenMPI', '1.8.8', '', ('GNU', '%s-%s' % (gccver, binutilsver))),
]

modextravars = {
         'CC':  'gcc',
         'OMPI_CC':  'gcc',
         'CXX': 'g++',
         'OPMI_CXX': 'g++',
         'F90': 'gfortran',
         'OMPI_F90': 'gfortran',
         'F77': 'gfortran',
         'OMPI_F77': 'gfortran',
         'FC':  'gfortran',
         'OMPI_FC':  'gfortran',
}

moduleclass = 'toolchain'
