##
# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
#
# Copyright:: Copyright 2012-2013 The Cyprus Institute
# Authors::   Andreas Panteli <a.panteli@cyi.ac.cy>, Fotis Georgatos <fotis@cern.ch>
# License::   MIT/GPL
#
##

easyblock = "MakeCp"

name = 'Oases'
version = '0.2.08'

homepage = 'http://www.ebi.ac.uk/~zerbino/oases/'
description = """Oases is a de novo transcriptome assembler designed to produce transcripts from
 short read sequencing technologies, such as Illumina, SOLiD, or 454 in the absence of any genomic assembly."""

toolchain = {'name': 'intel', 'version': '2015a'}

velvetver = '1.2.09'

sources = [
    '%(namelower)s_%(version)s.tgz',
    'velvet_%s.tgz' % velvetver,
]

source_urls = [
    'http://www.ebi.ac.uk/~zerbino/%(namelower)s',
    'http://www.ebi.ac.uk/~zerbino/velvet',
]

# listed make targets exclude 'doc' on purpose
buildopts = ['VELVET_DIR=../velvet_%s cleanobj velvet oases' % velvetver]
parallel = 1

files_to_copy = [(["oases"], 'bin'), "data", "scripts", "src", "doc", "LICENSE.txt", "README.txt"]

sanity_check_paths = {
    'files': ["bin/oases", "LICENSE.txt", "README.txt"],
    'dirs': ["data", "scripts", "src", "doc"]
}

moduleclass = 'bio'
