# IT4Innovations 2022
# JK

name = 'ANSYS'
version = '22.2'
versionsuffix = '-electronics'

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': '2020b'}

# 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-22.2-ELECTRONICS.tar.gz']
checksums = ['2f245229a5823dbcc606dd77393d8f40771a00eb0b9ae22d481507ee10784b6a']

dependencies = [
   ('libGLU', '9.0.1'),
#   ('libnsl', '1.3.0'), # moc nove pro CentOS 7!!!
]

postinstallcmds = ['./install -silent -install_dir %(installdir)s -licserverinfo 2325:1055:10.5.8.13']

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

skipsteps = ['install']

moduleclass = 'tools'
