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

easyblock = "CMakeMake"

name = "eXpress"
version = "1.5.1"

homepage = 'http://bio.math.berkeley.edu/eXpress/index.html'
description = """ eXpress is a streaming tool for quantifying the abundances of a set 
 of target sequences from sampled subsequences. Example applications include transcript-level 
 RNA-Seq quantification, allele-specific/haplotype expression analysis (from RNA-Seq), 
 transcription factor binding quantification in ChIP-Seq, and analysis of metagenomic data."""

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

sources = ['%(namelower)s-%(version)s-src.tgz']
source_urls = ['http://bio.math.berkeley.edu/eXpress/downloads/%(namelower)s-%(version)s/']

builddependencies = [
    ('CMake', '2.8.12'),
    ('BamTools', '2.2.3')
]

dependencies = [
    ('Boost', '1.51.0'),  # Boost-1.53.0 not working?
    ('gperftools', '2.1'),
    ('protobuf', '2.5.0')
]

separate_build_dir = True

patches = ['eXpress-1.5.1-libbamtools.patch']

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

moduleclass = 'bio'
