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

easyblock = 'ConfigureMake'

name = 'BCFtools'
version = '1.1'

homepage = 'http://www.htslib.org/'
description = """ Reading/writing BCF2/VCF/gVCF files and calling/filtering/summarising
  SNP and short indel sequence variants """

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

source_urls = [('http://sourceforge.net/projects/samtools/files/samtools/%(version)s', 'download')]
sources = [SOURCELOWER_TAR_BZ2]

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

parallel = 1

skipsteps = ['configure']

installopts = ' prefix=%(installdir)s'

sanity_check_paths = {
    'files': ["bin/%s" % x for x in ["bcftools", "plot-vcfstats", "vcfutils.pl"]],
    'dirs': [],
}

moduleclass = 'bio'
