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

easyblock = "CMakeMake"

name = 'SPAdes'
version = '3.0.0'

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

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

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

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

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

start_dir = 'src'

separate_build_dir = True

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'
