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

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. easyblock = 'CMakeMake'
  2. name = 'ecCodes'
  3. version = '2.24.2'
  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}
  10. source_urls = ['https://confluence.ecmwf.int/download/attachments/45757960/']
  11. sources = ['eccodes-%(version)s-Source.tar.gz']
  12. checksums = ['c60ad0fd89e11918ace0d84c01489f21222b11d6cad3ff7495856a0add610403']
  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 provided by a separate package 'eccodes-python'
  22. configopts = "-DENABLE_NETCDF=ON -DENABLE_PNG=ON -DENABLE_PYTHON=OFF "
  23. configopts += "-DENABLE_JPG=ON -DENABLE_JPG_LIBJASPER=ON "
  24. configopts += "-DENABLE_ECCODES_THREADS=ON" # multi-threading with pthreads
  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'