easyblock = 'MakeCp'

name = 'PhyloBayes-MPI'
version = '20161021'
commit = 'e4ea1ca'

homepage = 'https://github.com/bayesiancook/pbmpi'
description = "A Bayesian software for phylogenetic reconstruction using mixture models"

toolchain = {'name': 'intel', 'version': '2016b'}

source_urls = ['https://github.com/bayesiancook/pbmpi/archive/']
sources = ['%s.tar.gz' % commit]

start_dir = 'sources'

# get rid of included binaries to ensur they're recompiled
prebuildopts = "rm -f data/* &&"

buildopts = 'CC="$MPICXX" CPPFLAGS="$CXXFLAGS -c" LDFLAGS="$CXXFLAGS"'

files_to_copy = [(['data/*'], 'bin')]

sanity_check_paths = {
    'files': ['bin/bpcomp', 'bin/cvrep', 'bin/pb_mpi', 'bin/readpb_mpi', 'bin/tracecomp'],
    'dirs': [],
}

moduleclass = 'bio'
