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

easyblock = 'MakeCp'

name = 'BCFtools'
version = '1.3.1'

homepage = 'http://www.htslib.org/'
description = """BCFtools is a set of utilities that manipulate variant calls in the
 Variant Call Format (VCF) and its binary counterpart BCF"""

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

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

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

buildopts = " USE_GPL=1 GSL_LIBS='-lgsl -lgslcblas'"

runtest = 'test'

files_to_copy = [(["bcftools", "plot-vcfstats", "vcfutils.pl"], "bin"),
                 "doc", "plugins", "test", "LICENSE", "README", "AUTHORS"]

sanity_check_paths = {
    'files': ["bin/bcftools"],
    'dirs': [],
}

moduleclass = 'bio'
