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

easyblock = 'MakeCp'

name = 'tabix'
version = '0.2.6'

homepage = 'http://samtools.sourceforge.net'
description = """ Generic indexer for TAB-delimited genome position files """

toolchain = {'name': 'intel', 'version': '2014b'}

source_urls = [('http://sourceforge.net/projects/samtools/files/', 'download')]
sources = [SOURCE_TAR_BZ2]

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

buildopts = 'CFLAGS="-L$EBROOTZLIB/lib"'

files_to_copy = [
    (["tabix", "bgzip", "tabix.py"], "bin"),
    (["tabix.1"], "man/man1"),
    "example.gtf.gz",
    "example.gtf.gz.tbi",
    "NEWS",
    "ChangeLog"
]

sanity_check_paths = {
    'files': ["bin/tabix", "bin/bgzip", "bin/tabix.py"],
    'dirs': [""],
}

moduleclass = 'bio'
