# IT$Innovations
# LK 2023

easyblock = 'ConfigureMake'

name = 'arpack-ng'
version = "3.8.0"

homepage = 'https://github.com/opencollab/arpack-ng'
description = """ARPACK is a collection of Fortran77 subroutines designed to solve large scale eigenvalue problems."""

toolchain = {'name': 'intel', 'version': '2022a'}
toolchainopts = {'pic': True, 'usempi': True}

github_account = 'opencollab'
source_urls = [GITHUB_SOURCE]
sources = ['%(version)s.tar.gz']
checksums = ['ada5aeb3878874383307239c9235b716a8a170c6d096a6625bfd529844df003d']

builddependencies = [
    ('Autotools', '20220317'),
    ('pkg-config', '0.29.2'),
]

dependencies = [
    ('Eigen', '3.4.0')
]

preconfigopts = "sh bootstrap && "
configopts = '--enable-mpi --with-pic --with-blas="$LIBBLAS" --with-lapack="$LIBLAPACK"'

sanity_check_paths = {
    'files': ["lib64/libarpack.la", "lib64/libarpack.%s" % SHLIB_EXT,
              "lib64/libparpack.la", "lib64/libparpack.%s" % SHLIB_EXT],
    'dirs': []
}

moduleclass = 'numlib'
