easyblock = 'Tarball'

name = 'cramtools'
version = '3.0'
versionsuffix = "-Java-%(javaver)s"

homepage = 'https://github.com/enasequence/cramtools/'
description = """CRAMTools is a set of Java tools and APIs for efficient local_compression of sequence
read data. Although this is intended as a stable version the code is released as
early access. Parts of the CRAMTools are experimental and may not be supported
in the future."""

toolchain = SYSTEM

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

dependencies = [('Java', '1.7.0_80')]

modloadmsg = "To execute cramtools run: java -jar \\${EBROOTCRAMTOOLS}/%(name)s-%(version)s.jar"

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

moduleclass = 'bio'