easyblock = 'ConfigureMake'

name = 'RAxML'
version = '7.7.5'
versionsuffix = '-seq-sse3'

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

toolchain = {'name': 'goolf', 'version': '1.4.10'}

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

skipsteps = ['configure', 'install']

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

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

moduleclass = 'bio'
