# 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 = 'SOAPaligner'
version = '2.21'
versionsuffix = '_Linux-x86_64'

homepage = 'http://soap.genomics.org.cn/soapaligner.html'
description = """ SOAPaligner/soap2 is a member of the SOAP (Short Oligonucleotide 
 Analysis Package). It is an updated version of SOAP software for short oligonucleotide 
 alignment. """

toolchain = {'name': 'dummy', 'version': 'dummy'}

source_urls = ['http://soap.genomics.org.cn/down/']
sources = ['soap%(version)srelease.tar.gz']

# 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
skipsteps = ['build']

files_to_copy = [
    (["soap", "2bwt-builder"], 'bin'),
    (["soap.1", "soap.man"], 'man/man1'),
    "NOTE", "release"
]

sanity_check_paths = {
    'files': ["bin/soap", "bin/2bwt-builder"],
    'dirs': [],
}

moduleclass = 'bio'
