##
# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild
#
# Copyright:: Copyright 2012-2014 Uni.Lu/LCSB, NTUA
# Authors::   Robert Schmidt <roschmidt@ohri.ca>, Cedric Laczny <cedric.laczny@uni.lu>, Fotis Georgatos <fotis@cern.ch>
# License::   MIT/GPL
# 
# Modified::  Robert Qiao <robert.qiao@adelaide.edu.au> 
#             @ adelaide.edu.au/phoenix	
##

name = 'SAMtools'
version = '1.2'

homepage = 'http://www.htslib.org/'
description = """SAM Tools provide various utilities for manipulating alignments in the SAM format, 
 including sorting, merging, indexing and generating alignments in a per-position format."""

toolchain = {'name': 'foss', 'version': '2016b'}
toolchainopts = {'optarch': True, 'pic': True}

sources = [SOURCELOWER_TAR_BZ2]
source_urls = ['https://github.com/samtools/%(namelower)s/releases/download/%(version)s']
patches = ['SAMtools-1.1_Makefile.patch']
checksums = [
    '420e7a4a107fe37619b9d300b6379452eb8eb04a4a9b65c3ec69de82ccc26daa',  # samtools-1.2.tar.bz2
    'd0d6796db7edb9ceb0c410001c3b00b521d97bcf908650c8f7528a4438f765e1',  # SAMtools-1.1_Makefile.patch
]

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

parallel = 1

moduleclass = 'bio'
