name = 'MPI_NET'
version = '1.2.0'

easyblock = 'ConfigureMake'

homepage = 'http://www.osl.iu.edu/research/mpi.net/'
description = """MPI.NET is a high-performance, easy-to-use implementation of the Message Passing Interface (MPI)
for Microsoft's .NET environment"""

toolchain = {'name': 'gompi', 'version': '2015e'}

dependencies = [('Mono', '3.12.1', '', ('GCC', '4.4.7-system')),
                ('OpenMPI', '1.8.6', '', ('GCC', '4.4.7-system'))
                ]

patches = [('mpi.net-1.2.0-unsafe.patch', 1)]

preconfigopts = 'sh ./autogen.sh && '

sources = ['MPI.NET-%(version)s.tar.gz']
source_urls = ['https://github.com/jmp75/%(name)s/archive/']

sanity_check_paths = {
    'files': ['lib/libmpinet.%s' % SHLIB_EXT],
    'dirs': ['lib'],
}

maxparallel = 4

moduleclass = 'mpi'
