easyblock = 'PackedBinary'

name = 'MATSim'
version = '0.8.1'
versionsuffix = '-Java-%(javaver)s'

homepage = 'http://www.matsim.org/'
description = """MATSim is an open-source framework to implement large-scale agent-based transport simulations."""

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

source_urls = ['https://github.com/matsim-org/matsim/releases/download/%(namelower)s-%(version)s/']
sources = ['%(namelower)s-%(version)s.zip']

dependencies = [
    ('Java', '1.8.0_112', '', True),
    ('X11', '20160819'),
]

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

modextrapaths = {'CLASSPATH': 'libs/*'}

modloadmsg = """To execute MATSim GUI: java -jar \\${EBROOTMATSIM}/%(namelower)s-%(version)s.jar
To execute MATSim in batch mode: java org.matsim.run.Controller <myconfig.xml>
You might have to adjust the requested memory"""

moduleclass = 'cae'
