# 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

easyblock = 'ConfigureMake'

name = 'MaCH'
version = '1.0.18.c'

homepage = 'http://www.sph.umich.edu/csg/abecasis/MaCH/'
description = """ MaCH 1.0 is a Markov Chain based haplotyper. It can resolve long
 haplotypes or infer missing genotypes in samples of unrelated individuals. The
 current version is a pre-release. """

toolchain = {'name': 'ictce', 'version': '6.2.5'}

source_urls = ['http://www.sph.umich.edu/csg/abecasis/MaCH/download/']
sources = ['%s.%s.source.tgz' % (name.lower(), version.replace(".c", ""))]

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

skipsteps = ['configure']

parallel = 1

buildopts = ' all CXX="$CXX $CXXFLAGS"'

installopts = ' INSTALLDIR=%(installdir)s/bin CXX="$CXX $CXXFLAGS"'

sanity_check_paths = {
    'files': ['bin/mach1', 'bin/thunder'],
    'dirs': []
}

moduleclass = 'bio'
