easyblock = 'CMakeMake'
name = 'IQ-TREE'
version = '1.5.5'
versionsuffix = "-mpi"

homepage = 'http://www.iqtree.org/'
description = """Efficient phylogenomic software by maximum likelihood"""

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

github_account = 'Cibiv'

source_urls = [GITHUB_SOURCE]
sources = ['v%(version)s.tar.gz']

configopts = '-DIQTREE_FLAGS="mpi omp" -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx'

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

sanity_check_paths = {
    'files': ["bin/iqtree-omp-mpi"],
    'dirs': ["bin"],
}

moduleclass = 'bio'
