# 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
# 1.4 modified by:
# Adam Huffman
# The Francis Crick Institute

easyblock = 'ConfigureMake'

name = 'HTSlib'
version = '20160107'
commit = '6b6c813'
versionsuffix = '-PacBio'

homepage = 'https://github.com/PacificBiosciences/htslib'
description = """PacBio fork of 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/PacificBiosciences/htslib/archive/']
sources = ['%s.tar.gz' % commit]

dependencies = [
    ('zlib', '1.2.11'),
    ('bzip2', '1.0.6'),
    ('XZ', '5.2.3'),
    ('cURL', '7.54.0'),
]

skipsteps = ['configure']

installopts = ' prefix=%(installdir)s'

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

moduleclass = 'bio'
