# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild
# Author: Pablo Escobar Lopez
# sciCORE - University of Basel
# SIB Swiss Institute of Bioinformatics 

easyblock = "CMakeMake"

name = 'SPAdes'
version = '3.6.2'

homepage = 'http://bioinf.spbau.ru/en/spades'
description = """Genome assembler for single-cell and isolates data sets"""

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

source_urls = ['http://spades.bioinf.spbau.ru/release%(version)s/']
sources = [SOURCE_TAR_GZ]

builddependencies = [('CMake', '3.5.2')]

dependencies = [
    ('zlib', '1.2.8'),
    ('bzip2', '1.0.6'),
]

start_dir = 'src'

separate_build_dir = True

configopts = ' -DBoost_NO_BOOST_CMAKE=ON'

sanity_check_commands = [('spades.py', '--test')]

sanity_check_paths = {
    'files': ["bin/%s" % x for x in ["bwa-spades", "dipspades", "dipspades.py",
                                     "hammer", "ionhammer", "spades",  "spades.py"]],
    'dirs': [],
}

moduleclass = 'bio'
