# 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.9r20160115'

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': 'goolf', 'version': '1.4.10'}

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

java = 'Java'
javaver = '1.7.0_75'
versionsuffix = '-%s-%s' % (java, javaver)

builddependencies = [('ant', '1.9.6', '-Java-1.7.0_75', True)]

dependencies = [('MPJ-Express', '0.44', '%(versionsuffix)s')]

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'