easyblock = 'ConfigureMake'

name = 'netCDF-C++4'
version = '4.2'

homepage = 'https://www.unidata.ucar.edu/software/netcdf/'
description = """NetCDF (network Common Data Form) is a set of software libraries
 and machine-independent data formats that support the creation, access, and sharing of array-oriented
 scientific data."""

toolchain = {'name': 'gompi', 'version': '2021b'}
toolchainopts = {'pic': True}

source_urls = ['https://www.unidata.ucar.edu/downloads/netcdf/ftp/']
sources = ['netcdf-cxx-%(version)s.tar.gz']

dependencies = [('netCDF', '4.8.0')]

sanity_check_paths = {
    'files': ['include/netcdf.hh', 'lib/libnetcdf_c++.a', 'lib/libnetcdf_c++.%s' % SHLIB_EXT],
    'dirs': [],
}

moduleclass = 'data'
