##
# This file is an EasyBuild reciPY as per https://github.com/hpcugent/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
# $Id$
#
##

name = 'SAMtools'
version = '1.2'

homepage = 'http://www.htslib.org/'
description = """Samtools is a suite of programs for interacting with high-throughput sequencing data.
 SAMtools - Reading/writing/editing/indexing/viewing SAM/BAM/CRAM format"""

toolchain = {'name': 'intel', 'version': '2015a'}
toolchainopts = {'optarch': True, 'pic': True}

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

patches = ['%(name)s-%(version)s_extHTSlib_Makefile.patch']

htslib = 'HTSlib'
htsver = '1.2.1'
versionsuffix = '-%s-%s' % (htslib, htsver)

dependencies = [
    (htslib, htsver),
    ('ncurses', '5.9'),
    ('zlib', '1.2.8'),
]

parallel = 1

moduleclass = 'bio'
