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

easyblock = 'Tarball'

name = 'SelEstim'
version = '1.1.4'
versionsuffix = '-Linux-64bits'

homepage = 'http://www1.montpellier.inra.fr/CBGP/software/selestim/index.html'
description = """SelEstim is aimed at distinguishing neutral from selected polymorphisms and estimate 
 the intensity of selection at the latter. The SelEstim model accounts explicitly for positive selection, 
 and it is assumed that all marker loci in the dataset are responding to selection, to some extent"""

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

source_urls = ['http://www1.montpellier.inra.fr/CBGP/software/selestim/files/']
sources = ['%(name)s_%(version)s.zip']

postinstallcmds = [
    "rm -fr %(installdir)s/__MACOSX/ ",
    "mv %(installdir)s/SelEstim_%(version)s/* %(installdir)s ",
    "rm %(installdir)s/bin/SelEstim_1.1.4_OSX64bits ",
    "rm %(installdir)s/bin/SelEstim_1.1.4_Linux32bits ",
    "cd %(installdir)s/bin/ && ln -s SelEstim_%(version)s_Linux64bits SelEstim ",
]

sanity_check_paths = {
    'files': ['bin/SelEstim_%(version)s_Linux64bits'],
    'dirs': [],
}

moduleclass = 'bio'
