# IT4Innovations
# LK 2023

name = 'ANSYS'
version = '2023R2'
versionsuffix = '-alamerini'

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': '2022.12'}

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 = [
    {'ANSYS2023R2_LINX64_DISK1.iso': '4f952592f1f95a6f3715dbaeb6e56b2625f6826a80c5842234406c7741f29e1f'},
    {'ANSYS2023R2_LINX64_DISK2.iso': 'd02fd9e4db1a08dc867b771979f5d9ffa4d69fd94740e60444e856911fb89ce0'},
    {'ANSYS2023R2_LINX64_DISK3.iso': 'd167f30a3cf632a234111e9a398dae6f824cb0eae5a7cb7afa1453474726de4a'},
]

#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', '150.217.19.70')
license_server_port = os.getenv('EB_ANSYS_LICENSE_SERVER_PORT', '2335:1085')

moduleclass = 'tools'
