# 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 = "MakeCp"

name = 'GEM-library'
version = '20130406-045632'
versionsuffix = '_pre-release-3_Linux-x86_64'

homepage = 'http://algorithms.cnag.cat/wiki/The_GEM_library'
description = """ Next-generation sequencing platforms (Illumina/Solexa, ABI/SOLiD, etc.)
 call for powerful and very optimized tools to index/analyze huge genomes. The GEM library
 strives to be a true "next-generation" tool for handling any kind of sequence data, offering
 state-of-the-art algorithms and data structures specifically tailored to this demanding task.
 At the moment, efficient indexing and searching algorithms based on the Burrows-Wheeler
 transform (BWT) have been implemented. The library core is written in C for maximum speed,
 with concise interfaces to higher-level programming languages like OCaml and Python.
 Many high-performance standalone programs (mapper, splice mapper, etc.) are provided along
 with the library; in general, new algorithms and tools can be easily implemented on the top of it. """

toolchain = SYSTEM

source_urls = [
    ('http://sourceforge.net/projects/gemlibrary/files/gem-library/Binary%20pre-release%203/',
     'download')]
# core_i3 is the recommended version by developers. Better performance
sources = ['GEM-binaries-Linux-x86_64-core_i3-20130406-045632.tbz2']
# if core_i3 version doesn't work for you, try core_2 version below
#sources = ['GEM-binaries-Linux-x86_64-core_2-20130406-045632.tbz2']

# only Linux_x86-64 binaries are provided so we skip build_step.
# We just use the MakeCp block to copy each file to the right destination
# folder (mainly the man files)
skipsteps = ['build']

# glob support in MakeCp easyblock is required so EasyBuild-1.12 or higher
# is required
easybuild_version = '1.12.0'

files_to_copy = [(["man/*"], 'man/man1/'), "bin"]

sanity_check_paths = {
    'files': ["bin/gem-indexer", "bin/gem-mapper", "bin/gem-rna-mapper"],
    'dirs': ["man"],
}

moduleclass = 'bio'
