easyblock = 'Bundle'

name = 'GCC'
version = '5.3.1'
snapshot = '20160419'
binutilsver = '2.25'
versionsuffix = '-snapshot-%s-%s' % (snapshot, binutilsver)

homepage = 'http://gcc.gnu.org/'
description = """The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Java, and Ada,
 as well as libraries for these languages (libstdc++, libgcj,...)."""

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

dependencies = [
    ('GCCcore', version, '-snapshot-%s' % snapshot),
    # binutils built on top of GCCcore, which was built on top of
    # (dummy-built) binutils
    ('binutils', binutilsver, '', ('GCCcore', '%s-snapshot-%s' % (version, snapshot))),
]

altroot = 'GCCcore'
altversion = 'GCCcore'

# this bundle serves as a compiler-only toolchain, so it should be marked
# as compiler (important for HMNS)
moduleclass = 'compiler'
