# IT4Innovations 2018

name = 'ANSYS'
version = '19.0'
versionsuffix = '-X11'

homepage = 'http://www.ansys.com'
description = """ANSYS simulation software enables organizations to confidently predict
    how their products will operate in the real world. We believe that every product is
    a promise of something greater. """

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

# create a zip file from the 3 install iso files.
# make sure all files of the iso's are in the same directory.
sources = ['ANSYS-19.0.zip']

dependencies = [
    #   ('libpng', '1.2.59', '', True),
    #   ('libXrender', '0.9.9', '', True),
    ('X11', '20170314', '', True),
]

# modextrapaths = {
#   'LD_LIBRARY_PATH': ['$LD_LIBRARY_PATH:%(installdir)s/v190/Electronics/Linux64/defer:%(installdir)s/v190/Framework/bin/Linux64'],
#   'LD_LIBRARY_PATH': 'v190/Electronics/Linux64/defer',
#   'LD_LIBRARY_PATH': 'v190/Framework/bin/Linux64',
#}

import os
license_server = os.getenv('EB_ANSYS_LICENSE_SERVER', 'license.it4i.cz')
license_server_port = os.getenv('EB_ANSYS_LICENSE_SERVER_PORT', '2325:1055')

moduleclass = 'tools'