# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
#
# Author: Adam Huffman
# adam.huffman@crick.ac.uk
# The Francis Crick Institute
#
# This is the version with the bundled libStatGen library

name = 'BamUtil'
version = '1.0.13'

easyblock = 'MakeCp'

homepage = 'http://genome.sph.umich.edu/wiki/BamUtil'
description = """BamUtil is a repository that contains several programs
  that perform operations on SAM/BAM files. All of these programs
  are built into a single executable, bam."""

toolchain = {'name': 'foss', 'version': '2015b'}

sources = ['%(name)sLibStatGen.%(version)s.tgz']
source_urls = ['http://genome.sph.umich.edu/w/images/7/70/']

files_to_copy = ["bamUtil/bin", "libStatGen"]

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

moduleclass = 'bio'
