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

easyblock = 'MakeCp'

name = 'CONTRAlign'
version = '2.01'
versionsuffix = '-rna'

homepage = 'http://contra.stanford.edu/contralign/'
description = """CONditional TRAining for Protein Sequence Alignment"""

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

source_urls = [homepage]
sources = ['%%(namelower)s_v%s.tar.gz' % version.replace('.', '_')]

patches = ['CONTRAlign-%(version)s_gcc47.patch']

start_dir = 'src'

# this option determines whether the program is being compiled for protein or RNA sequence input. 
# Here we are compiling for RNA input. Check docs for details
buildopts = 'MODEL_TYPE="-DRNA=1"'

files_to_copy = [(['contralign', 'score_directory.pl', 'roc_area.pl', 'MakeDefaults.pl'], 'bin'), '../doc']

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

moduleclass = 'bio'
