ecCodes-2.22.1-gompi-2021b.eb 1.6 KB

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