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

easyblock = 'ConfigureMake'

name = 'HTSlib'
version = '1.3.1'

homepage = 'http://www.htslib.org/'
description = """A C library for reading/writing high-throughput sequencing data.
 HTSlib also provides the bgzip, htsfile, and tabix utilities"""

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

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

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

runtest = 'test'

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

moduleclass = 'bio'
