easyblock = 'Tarball'

name = 'OrthoMCL'
version = '1.4'
versionsuffix = '-Perl-%(perlver)s'

homepage = 'http://orthomcl.org/'
description = """OrthoMCL is a genome-scale algorithm for grouping orthologous protein sequences."""

toolchain = {'name': 'intel', 'version': '2016b'}

mcl_majver = '02'
mcl_minver = '063'
sources = ['ORTHOMCL_V%%(version)s_mcl-%s-%s.tar' % (mcl_majver, mcl_minver)]
source_urls = ['http://orthomcl.org/common/downloads/software/unsupported/v%(version)s']

dependencies = [
    # a Perl installation providing the DBI module is required
    ('Perl', '5.24.0'),
    ('MCL', '%s.%s' % (mcl_majver, mcl_minver)),
    ('BioPerl', '1.7.1', versionsuffix),
]

start_dir = 'ORTHOMCLV%(version)s'

sanity_check_paths = {
    'files': ['orthomcl_module.pm', 'orthomcl.pl', 'README'],
    'dirs': ['sample_data'],
}

modextrapaths = {'PERL5LIB': ''}

sanity_check_commands = [('perl', '-e "use orthomcl_module;"')]

moduleclass = 'bio'
