easyblock = 'ConfigureMake'

name = 'grib_api'
version = '1.9.18'

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': 'ictce', 'version': '4.1.13'}

source_urls = ['https://software.ecmwf.int/wiki/download/attachments/3473437/']
sources = [SOURCE_TAR_GZ]

dependencies = [
    ('JasPer', '1.900.1'),
]

preconfigopts = 'env FC=$F90'
configopts = '--with-jasper=$EBROOTJASPER'

parallel = 1

moduleclass = 'data'
