ecCodes-2.31.0-gompi-2022b.eb 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. easyblock = 'CMakeMake'
  2. name = 'ecCodes'
  3. version = '2.31.0'
  4. homepage = 'https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home'
  5. description = """ecCodes is a package developed by ECMWF which provides an application programming interface and
  6. a set of tools for decoding and encoding messages in the following formats: WMO FM-92 GRIB edition 1 and edition 2,
  7. WMO FM-94 BUFR edition 3 and edition 4, WMO GTS abbreviated header (only decoding)."""
  8. toolchain = {'name': 'gompi', 'version': '2022b'}
  9. toolchainopts = {'usempi': False}
  10. source_urls = ['https://github.com/ecmwf/eccodes/archive/refs/tags/']
  11. sources = [{'download_filename': '%(version)s.tar.gz', 'filename': '%(namelower)s-%(version)s.tar.gz'}]
  12. checksums = ['cb4cd3bab9cebd85a00397e12ce8e4a579b2f0a25aaf6df763436cf37db063e1']
  13. builddependencies = [
  14. ('CMake', '3.24.3'),
  15. ('ecBuild', '3.8.0', '', SYSTEM),
  16. ]
  17. dependencies = [
  18. ('netCDF', '4.9.0'),
  19. ('JasPer', '4.0.0'),
  20. ('libjpeg-turbo', '2.1.4'),
  21. ('libpng', '1.6.38'),
  22. ('zlib', '1.2.12'),
  23. ('libaec', '1.0.6'),
  24. ]
  25. # Python bindings are provided by a separate package 'eccodes-python'
  26. configopts = "-DENABLE_NETCDF=ON -DENABLE_PNG=ON -DENABLE_PYTHON=OFF -DENABLE_JPG=ON "
  27. configopts += "-DENABLE_JPG_LIBJASPER=ON -DENABLE_ECCODES_THREADS=ON"
  28. sanity_check_paths = {
  29. 'files': ['bin/bufr_compare', 'bin/bufr_copy', 'bin/bufr_dump', 'bin/bufr_filter', 'bin/bufr_get', 'bin/bufr_ls',
  30. 'bin/grib_compare', 'bin/grib_copy', 'bin/grib_dump', 'bin/grib_filter', 'bin/grib_get', 'bin/grib_ls',
  31. 'bin/gts_compare', 'bin/gts_copy', 'bin/gts_dump', 'bin/gts_filter', 'bin/gts_get', 'bin/gts_ls',
  32. 'bin/metar_compare', 'bin/metar_copy', 'bin/metar_dump', 'bin/metar_filter', 'bin/metar_get',
  33. 'bin/metar_ls', 'bin/codes_count', 'bin/codes_info', 'bin/codes_split_file',
  34. 'lib/libeccodes_f90.%s' % SHLIB_EXT, 'lib/libeccodes.%s' % SHLIB_EXT],
  35. 'dirs': ['include'],
  36. }
  37. moduleclass = 'tools'