# IT4Innovations 2018

easyblock = 'MakeCp'

name = 'BeoPEST'
version = '14.02'

homepage = 'http://www.prinmath.com/pest/'
description = """BeoPEST is a special version of John Doherty's PEST adapted for Beowulf clusters. BeoPEST is identical in operation to Parallel PEST, except that it instead of a master and slaves that communicate through the file system, BeoPEST uses a master and smart slaves that communicate via TCP/IP or MPI. BeoPEST also uses smart slaves which offloads much of the effort to the slaves which is important for BeoPEST to scale to hundreds or thousands of slaves.
More detail is provided in the BeoPEST Documentation."""

toolchain = {'name': 'GCC', 'version': '6.3.0-2.27'}
toolchainopts = {'pic': True}

source_urls = ['http://www.prinmath.com/pest/']
sources = ['%(namelower)s-%(version)s.zip']

dependencies = [('OpenMPI', '2.1.1')]

skipsteps = ['configure']

prebuildopts = 'mkdir bin && '
prebuildopts += 'cd bin && '
prebuildopts += 'cp ../src/makefile . && '

parallel = 1

files_to_copy = [
   ('bin'),
   'README'
]

sanity_check_paths = {
    'files': [
        'README'],
    'dirs': ['bin'],
}

moduleclass = 'tools'
