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

easyblock = 'Tarball'

name = 'Trimmomatic'
version = '0.32'

homepage = 'http://www.usadellab.org/cms/?page=trimmomatic'
description = """Trimmomatic performs a variety of useful trimming tasks for illumina
 paired-end and single ended data.The selection of trimming steps and their associated
 parameters are supplied on the command line. """

toolchain = SYSTEM

source_urls = [
    'http://www.usadellab.org/cms/uploads/supplementary/Trimmomatic/']
sources = [SOURCE_ZIP]

local_java = 'Java'
local_javaver = '1.7.0_80'
versionsuffix = '-%s-%s' % (local_java, local_javaver)
dependencies = [(local_java, local_javaver)]

modloadmsg = """To execute Trimmomatic run: local_java -jar \\$EBROOTTRIMMOMATIC/trimmomatic-%(version)s.jar"""

sanity_check_paths = {
    'files': ["trimmomatic-%(version)s.jar"],
    'dirs': [""],
}

moduleclass = 'bio'
