easyblock = 'ConfigureMake'

name = 'grib_api'
version = '1.24.0'

homepage = 'https://software.ecmwf.int/wiki/display/GRIB/Home'
description = """The ECMWF GRIB API is an application program interface accessible from C, FORTRAN and Python
 programs developed for encoding and decoding WMO FM-92 GRIB edition 1 and edition 2 messages. A useful set of
 command line tools is also provided to give quick access to GRIB messages."""

toolchain = {'name': 'iimpi', 'version': '2022.06'}

source_urls = ['https://software.ecmwf.int/wiki/download/attachments/3473437/']
sources = ['grib_api-%(version)s-Source.tar.gz']
checksums = ['6b0d443cb0802c5de652e5816c5b88734cb3ead454eb932c5ec12ef8d4f77bcd']

dependencies = [
    ('JasPer', '1.900.1'),  # 2.x doesn't work
]

configopts = '--with-jasper=$EBROOTJASPER'

parallel = 1

moduleclass = 'data'
