easyblock = 'CMakeMake'

name = 'PragTic'
version = '0.1'
versionsuffix = '-GCC-5.3.0-2.25'

homepage = 'http://permon.it4i.cz/pragtic'
description = """PragTic is a module for massively parallel runs of the PragTic library. Homepage: http://permon.it4i.cz/pragtic. Module created by Jiri Tomcala from the PERMON Team (http://permon.it4i.cz)"""

toolchain = SYSTEM

source_urls = ['http://permon.it4i.cz/pragtic/']
sources = ['PragTic-%(version)s.tar.gz']

builddependencies = [('CMake', '3.5.2', '', True)]

dependencies = [('MPICH', '3.2', '-GCC-5.3.0-2.25', True), ]

skipsteps = ['install']

srcdir = '%(installdir)s/src/permon_fatigue'

start_dir = '%(installdir)s'

buildininstalldir = True

sanity_check_paths = {
    'files': [
        'src/permon_fatigue/playground/bin/pragtic.x',
        'src/permon_fatigue/playground/bin/pragtic'],
    'dirs': [],
}

modextrapaths = {
    'PATH': ['src/permon_fatigue/playground/bin']
}

moduleclass = 'phys'
