# EasyBuild easyconfig 
#
# John Dey jfdey@fredhutch.org 
# Fred Hutchenson Cancer Research Center 

easyblock = 'Tarball'

name = 'prokka'
version = '1.11'
bioperl_ver = '1.7.0'
versionsuffix = '-BioPerl-%s' % bioperl_ver

homepage = 'http://www.vicbioinformatics.com/software.prokka.shtml'
description = """Prokka is a software tool for the rapid annotation of prokaryotic genomes."""

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

source_urls = ['https://github.com/tseemann/prokka/archive/']
sources = ['v%(version)s.zip']

dependencies = [('BioPerl', bioperl_ver, '-Perl-5.24.0')]

modextrapaths = {
    'PATH': '',
}

bin_files = ['prokka', 'prokka-cdd_to_hmm', 'prokka-genpept_to_fasta_db', 'prokka-tigrfams_to_hmm',
             'prokka-biocyc_to_fasta_db', 'prokka-clusters_to_hmm', 'prokka-hamap_to_hmm',
             'prokka-uniprot_to_fasta_db', 'prokka-build_kingdom_dbs', 'prokka-genbank_to_fasta_db',
             'prokka-make_tarball']

sanity_check_paths = {
    'files': ['bin/%s' % x for x in bin_files] + ['binaries/linux/aragorn', 'db/cm/Bacteria', 'doc/ToDoList.txt'],
    'dirs': ['bin', 'binaries', 'db',  'db/cm', 'db/genus', 'db/hmm', 'db/kingdom', 'doc'],
}

modloadmsg = "prokka scripts are located in \\$EBROOTPROKKA/bin; databases are located in \\$EBROOTPROKKA/db"

moduleclass = 'bio'
