easyblock = 'ConfigureMake'

name = 'RAxML'
version = '7.2.6'
versionsuffix = '-hybrid-sse3'

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

toolchain = {'name': 'ictce', 'version': '5.3.0'}
toolchainopts = {'usempi': True}

source_urls = ['http://sco.h-its.org/exelixis/resource/download/software']
sources = [SOURCE_TAR_BZ2]

skipsteps = ['configure', 'install']

buildopts = '-f Makefile.SSE3.HYBRID.gcc CC="$CC" && mkdir -p %(installdir)s/bin && cp raxmlHPC-HYBRID-SSE3 %(installdir)s/bin'

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

moduleclass = 'bio'