# 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 = 'ConfigureMake'

name = 'BLASR'
version = '2.1'

homepage = 'https://github.com/PacificBiosciences/blasr'
description = """ BLASR (Basic Local Alignment with Successive Refinement) rapidly maps 
 reads to genomes by finding the highest scoring local alignment or set of local alignments 
 between the read and the genome. Optimized for PacBio's extraordinarily long reads and 
 taking advantage of rich quality values, BLASR maps reads rapidly with high accuracy. """

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

source_urls = ['https://github.com/PacificBiosciences/blasr/archive/']
sources = ['smrtanalysis-%(version)s.tar.gz']

dependencies = [('HDF5', '1.8.11')]

skipsteps = ['configure']

# the STATIC= option is a workaround. Check details here:
# https://github.com/PacificBiosciences/blasr/issues/4#issuecomment-44142749
buildopts = ' STATIC= '

installopts = ' INSTALL_BIN_DIR=%(installdir)s/bin'

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

moduleclass = 'bio'
