easyblock = 'ConfigureMake'

name = 'grib_api'
version = '1.26.1'

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': 'intel', 'version': '2018'}

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

dependencies = [
    ('openjpeg', '1.5.2'),
]

configopts = '--with-openjpeg=$EBROOTOPENJPEG'

parallel = 1

moduleclass = 'data'