ecCodes-2.22.0-iimpi-2021.02.eb 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. easyblock = 'CMakeMake'
  2. name = 'ecCodes'
  3. version = '2.22.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': 'iimpi', 'version': '2021.02'}
  9. toolchainopts = {'usempi': False}
  10. source_urls = ['https://confluence.ecmwf.int/download/attachments/45757960/']
  11. sources = ['eccodes-%(version)s-Source.tar.gz']
  12. builddependencies = [('CMake', '3.20.1')]
  13. dependencies = [
  14. ('netCDF', '4.8.0'),
  15. ('JasPer', '2.0.28'),
  16. ('libjpeg-turbo', '2.0.6'),
  17. ('libpng', '1.6.37'),
  18. ('zlib', '1.2.11'),
  19. ]
  20. # Python bindings are now provided by a separate package 'eccodes-python'
  21. configopts = "-DENABLE_NETCDF=ON -DENABLE_PNG=ON "
  22. configopts += "-DENABLE_JPG=ON -DENABLE_JPG_LIBJASPER=ON "
  23. configopts += "-DENABLE_ECCODES_THREADS=ON" # multi-threading with pthreads
  24. local_exes = ['%s_%s' % (a, b)
  25. for a in ['bufr', 'grib', 'gts', 'metar']
  26. for b in ['compare', 'copy', 'dump', 'filter', 'get', 'ls']]
  27. local_exes += ['codes_%s' % c for c in ['count', 'info', 'split_file']]
  28. sanity_check_paths = {
  29. 'files': ['bin/%s' % x for x in local_exes] +
  30. ['lib/libeccodes_f90.%s' % SHLIB_EXT, 'lib/libeccodes.%s' % SHLIB_EXT],
  31. 'dirs': ['include'],
  32. }
  33. moduleclass = 'tools'