#IT4Innovations
# LK 2024

name = 'XALT'
version = '3.0.1'

homepage = 'https://github.com/xalt/xalt'
description = """XALT is a tool to allow a site to track user executables
  and library usage on a cluster. When installed it can tell a site what are
  the top executables by Node-Hours or by the number of users or the number
  of times it is run. XALT 2 also tracks library usage as well. XALT 2 can
  also track package use by R, MATLAB or Python. It tracks both MPI and
  non-MPI programs."""

toolchain = SYSTEM

# The location of XALT configuration file must be specified via
# 'config_py' easyconfig parameter.  You can edit the easyconfig file,
# or use 'eb --try-amend=config_py=<path>'. " See
# https://xalt.readthedocs.io/en/latest/030_site_filtering.html for
# more information.
config_py = "/apps/.xalt/IT4I_config.py" 

# The name of the system must be specified via the 'syshost'
# easyconfig parameter.  You can edit the easyconfig file, or use 'eb
# --try-amend=syshost=<string>'.  See
# https://xalt.readthedocs.io/en/latest/020_site_configuration.html
# for more information.
syshost = "env_var:CLUSTERNAME"

# The XALT transmission method must be specified via the
# 'transmission' easyconfig parameter.  You can edit the easyconfig
# file, or use 'eb --try-amend=transmission=<string>'.  See
# https://xalt.readthedocs.io/en/latest/020_site_configuration.html
# for more information.
transmission = "file"
file_prefix = "/ramdisk/.xalt"

# Additional options
executable_tracking = True
gpu_tracking = False
logging_url = None
mysql = True
scalar_sampling = True
static_cxx = False

source_urls = ['https://github.com/xalt/xalt/archive/']
sources = [SOURCELOWER_TAR_GZ]
checksums = ['c20bbd9d4fd2e80bba615f51caf4d3493ae97a64228b392cfe637eebbe824539']

builddependencies = [
    ('cURL', '7.76.0'),
    ('flex', '2.6.4'),
    ('util-linux', '2.36'),
]

osdependencies = [
    ('bc'),
    ('coreutils'),
    ('libelf-dev', 'elfutils-libelf-devel'),
    OS_PKG_OPENSSL_DEV,
]

moduleclass = 'lib'