easyblock = 'Tarball'

name = 'Julia'
version = '1.12.4'

homepage = 'https://julialang.org'
description = "Julia is a high-level, high-performance dynamic programming language for numerical computing"

toolchain = SYSTEM

source_urls = ['https://julialang-s3.julialang.org/bin/linux/x64/%(version_major_minor)s/',
               'https://julialang-s3.julialang.org/bin/linux/%(arch)s/%(version_major_minor)s/']
sources = ['%(namelower)s-%(version)s-linux-%(arch)s.tar.gz']
checksums = [
    {
        'julia-1.12.4-linux-x86_64.tar.gz':
            'c57baf178fe140926acb1a25396d482f325af9d7908d9b066d2fbc0d6639985d',
        'julia-1.12.4-linux-aarch64.tar.gz':
            'a602a2dfee931224fd68e47567dc672743e2fd9e80f39d84cf3c99afc9663ddd',
    }
]
sanity_check_paths = {
    'files': ['bin/julia', 'include/julia/julia.h', 'lib/libjulia.%s' % SHLIB_EXT],
    'dirs': ['bin', 'etc', 'include', 'lib', 'share']
}

sanity_check_commands = ['julia --help']

modextravars = {
    # Use default DEPOT_PATH where first entry is user's depot
    # JULIA_DEPOT_PATH must be set to be able to load other JuliaPackage modules and have
    # those installations appended to DEPOT_PATH without disabling any of the default paths
    'JULIA_DEPOT_PATH': ':',
}

moduleclass = 'lang'
