# IT4Innovations 2023
# JK

name = 'ANSYS'
version = '2022R2'

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': '2022a'}

sources = [
    {'filename': '%(name)s%(version)s_LINX64_Disk1.iso', 'extract_cmd': '7z x -aos %s'},
    {'filename': '%(name)s%(version)s_LINX64_Disk2.iso', 'extract_cmd': '7z x -aos %s'},
    {'filename': '%(name)s%(version)s_LINX64_Disk3.iso', 'extract_cmd': '7z x -aos %s'},
]

checksums = [
    {'ANSYS2022R2_LINX64_Disk1.iso': '7c9b2a57dd3b87c1dabcd84c913135c83aaac46bf75fbe3fae8da61c85e78198'},
    {'ANSYS2022R2_LINX64_Disk2.iso': '7962ef251e2edb7e999bfb6a857272597973d7ac4c17c2271cfd891347fd452a'},
    {'ANSYS2022R2_LINX64_Disk3.iso': '58d4b72e90a27fe11aee3cd7db251ecd1f80b2353441e7061543c0fc21c14dac'},
]

#dependencies = [
#   ('libGLU', '9.0.2'), # mame v systemu, pro jistotu zkusime bez protoze stary CentOS
#   ('libnsl', '2.0.0'), # moc nove pro CentOS 7!!!
#]

osdependencies = [('p7zip', 'p7zip-plugins')]

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')

moduleclass = 'tools'
