easyblock = 'ConfigureMake'

name = 'ABySS'
version = '2.0.3'

homepage = 'http://www.bcgsc.ca/platform/bioinfo/software/abyss'
description = """Assembly By Short Sequences - a de novo, parallel, paired-end sequence assembler"""

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

source_urls = ['https://github.com/bcgsc/abyss/releases/download/%(version)s/']
sources = [SOURCELOWER_TAR_GZ]

dependencies = [
    ('Boost', '1.66.0', '-Py-2.7'),
    ('sparsehash', '2.0.3'),
    ('SQLite', '3.21.0', '', True),
    ('pigz', '2.4', '', ('GCC', '6.3.0-2.27')),
    ('zsh', '5.2'),
]

configopts = '--enable-maxk=256 --with-boost=$EBROOTBOOST/include '
configopts += '--with-mpi=$EBROOTOPENMPI --with-sqlite=$EBROOTSQLITE3'

sanity_check_paths = {
    'files': ["bin/ABYSS", "bin/ABYSS-P"],
    'dirs': []
}

moduleclass = 'bio'
