easyblock = 'CmdCp'

name = 'FastTree'
version = '2.1.7'

homepage = 'http://www.microbesonline.org/fasttree/'
description = """FastTree infers approximately-maximum-likelihood phylogenetic trees from alignments of nucleotide
 or protein sequences. FastTree can handle alignments with up to a million of sequences in a reasonable amount of
 time and memory. """

toolchain = {'name': 'goolf', 'version': '1.4.10'}
toolchainopts = {'openmp': True}

source_urls = ['http://www.microbesonline.org/fasttree/']
sources = ['%(name)s-%(version)s.c']

skipsteps = ['source']

cmds_map = [('FastTree.*.c', '$CC -DOPENMP $CFLAGS $LIBS %%(source)s -o %(name)s')]

files_to_copy = [(['FastTree'], 'bin')]

sanity_check_paths = {
    'files': ['bin/FastTree'],
    'dirs': [],
}

moduleclass = 'bio'
