easyblock = 'ConfigureMake'

name = 'HTSlib'
version = '1.8'

homepage = "http://www.htslib.org/"
description = """ A C library for reading/writing high-throughput sequencing data.
 This package includes the utilities bgzip and tabix """

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

source_urls = [
    'https://github.com/samtools/%(namelower)s/releases/download/%(version)s/']
sources = [SOURCELOWER_TAR_BZ2]

dependencies = [
    ('zlib', '1.2.11', '', True),
    ('XZ', '5.2.3', '', True),
]

sanity_check_paths = {
    'files': ["bin/bgzip", "bin/tabix", "lib/libhts.%s" % SHLIB_EXT],
    'dirs': [],
}

moduleclass = 'bio'
