#    With <3 for EasyBuild
#
#    EasyConfig for SOAPdenovo2:
#    ----------------------------------------------------------------------------
#    Copyright: 2013 - Gregor Mendel Institute of Molecular Plant Biology GmBH
#    License: MIT
#    Authors: Petar <petar.forai@gmi.oeaw.ac.at> Forai
#    ----------------------------------------------------------------------------

easyblock = "MakeCp"

name = 'SOAPdenovo2'
version = 'r240'

homepage = 'http://soap.genomics.org.cn/index.html'
description = """SOAPdenovo is a novel short-read assembly method that can build a 
 de novo draft assembly for human-sized genomes. The program is specially designed to 
 assemble Illumina short reads. It creates new opportunities for building reference 
 sequences and carrying out accurate analyses of unexplored genomes in a cost effective way. 
 SOAPdenovo2 is the successor of SOAPdenovo."""

toolchain = {'name': 'ictce', 'version': '5.3.0'}
toolchainopts = {'optarch': True, 'pic': True}

source_urls = [SOURCEFORGE_SOURCE]
sources = ['%(name)s-src-%(version)s.tgz']

patches = ['SOAPdenovo2-fix-unistd-includes.patch']

# parallel build is broken
maxparallel = 1

files_to_copy = [(['SOAPdenovo-127mer', 'SOAPdenovo-63mer'], 'bin')]

sanity_check_paths = {
    'files': ['bin/SOAPdenovo-63mer', 'bin/SOAPdenovo-127mer'],
    'dirs': [],
}

moduleclass = 'bio'
