##
# This is a contribution from Phoenix HPC Service, The University of Adelaide, Australia
# Homepage: https://www.adelaide.edu.au/phoenix/
#
# Copyright::   adelaide.edu.au/phoenix
# Authors::	Robert Qiao <robert.qiao@adelaide.edu.au>, Exe Escobedo <exequiel.sepulvedaescobedo@adelaide.edu.au>
# License::
#
# Acknowledgement::  	
# 		Original Author: Pablo Escobar Lopez
# 		Swiss Institute of Bioinformatics
# 		Biozentrum - University of Basel
##

easyblock = 'ConfigureMake'

name = 'HTSlib'
version = '1.2.1'

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': 'foss', 'version': '2016b'}

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

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

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

moduleclass = 'bio'
