easyblock = 'MakeCp'

name = 'RAxML'
version = '8.2.9'
versionsuffix = '-hybrid-avx2'

homepage = 'https://github.com/stamatak/standard-RAxML'
description = "RAxML search algorithm for maximum likelihood based inference of phylogenetic trees."

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

sources = ['v%(version)s.zip']
source_urls = ['https://github.com/stamatak/standard-RAxML/archive/']

buildopts = '-f Makefile.AVX2.HYBRID.gcc CC="$CC"'

files_to_copy = [(["raxmlHPC-HYBRID-AVX2"], "bin"), "usefulScripts", "README", "manual"]

sanity_check_paths = {
    'files': ["bin/raxmlHPC-HYBRID-AVX2"],
    'dirs': [],
}

moduleclass = 'bio'
