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

name = 'jModelTest'
version = '2.1.10r20160303'
versionsuffix = '-Java-%(javaver)s'

homepage = 'https://github.com/ddarriba/jmodeltest2'
description="""jModelTest is a tool to carry out statistical selection of best-fit models of nucleotide substitution."""

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

source_urls = ['https://github.com/ddarriba/jmodeltest2/archive/']
sources = ['v%(version)s.tar.gz']

builddependencies = [('ant', '1.9.7', versionsuffix)]

dependencies = [
    ('MPJ-Express', '0.44', versionsuffix, ('foss', '2016a')),
    ('Java', '1.8.0_92'),
]

install_cmd = "cd jmodeltest2-%(version)s && ant -Ddist.dir=%(installdir)s jar"

modloadmsg = """To execute jModelTest run: java -jar \\$EBROOTJMODELTEST/jModelTest.jar"""

sanity_check_paths = {
    'files': ['jModelTest.jar'], 
    'dirs': [],
}

moduleclass = 'bio'
