easyblock = 'ConfigureMake'

name ='IMa2p'
version = '20151123'
commit = '66e7ac7bc5e4c5bbadbd7de943465afeb4641770'

homepage = 'https://github.com/arunsethuraman/ima2p'
description = """
IMa2p is a parallel implementation of IMa2, using OpenMPI-C++ - a Bayesian MCMC 
based method for inferring population demography under the IM (Isolation with 
Migration) model. http://dx.doi.org/10.1111/1755-0998.12437
"""

toolchain = {'name': 'foss', 'version': '2016a'}
toolchainopts = {'usempi': True}

source_urls = ['https://github.com/arunsethuraman/ima2p/archive/']
sources = ['%s.zip' % commit]

# The configure script needs to be made executable
preconfigopts = 'chmod +x configure && '
configopts = '--with-mpi=auto'

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

moduleclass = 'bio'
