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

easyblock = 'MakeCp'

name = 'MOSAIK'
version = '2.2.28'
# first six digits of the commit id we will download from github
local_git_commit_id = '24cf06'
versionsuffix = '-20140425-%s' % local_git_commit_id

homepage = 'https://code.google.com/p/mosaik-aligner/'
description = """ MOSAIK is a reference-guided aligner for next-generation
 sequencing technologies """

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

source_urls = ['https://github.com/wanpinglee/MOSAIK/archive/']
sources = ['%s.tar.gz' % (local_git_commit_id)]

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

parallel = 1

start_dir = "src"

buildopts = ' BIN_DIR="./bin" OBJ_DIR="./obj"'

files_to_copy = ["bin", "../README", "demo"]

sanity_check_paths = {
    'files': [
        "bin/%s" %
        x for x in [
            "MosaikAligner",
            "MosaikBuild",
            "MosaikJump",
            "MosaikText"]],
    'dirs': [],
}

moduleclass = 'bio'