easyblock = 'AllineaBase'

name = 'Forge'
version = "7.0.5"

homepage = 'http://www.allinea.com/products/develop-allinea-forge'
description = """Allinea Forge is the complete toolsuite for software development
- with everything needed to debug, profile, optimize, edit and build C, C++
and FORTRAN applications on Linux for high performance - from single threads through
to complex parallel HPC codes with MPI, OpenMP, threads or CUDA.
"""

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

source_urls = [
    # Use manually downloaded sources
    # http://content.allinea.com/downloads/allinea-reports-latest-Redhat-6.0-x86_64.tar
    # and rename it to format %(namelower)s-%(version)s.tar, so
    # forge-7.0.4.tar.
]
sources = [SOURCELOWER_TAR]

skipsteps = ['configure', 'build']

postinstallcmds = [
    'ln -s /apps/licenses/Allinea/Licence %(installdir)s/licences/Licence',
]

sanity_check_paths = {
    'files': [
        'bin/ddt-client',
        'bin/map',
        'bin/ddt',
        'bin/ddt-debugger',
        'bin/ddt-debugger-ll',
        'bin/ddt-debugger-mps',
        'bin/ddt-mpirun',
        'bin/forge',
        'bin/make-profiler-libraries'],
    'dirs': ['lib'],
}

moduleclass = 'debugger'