CDO-2.2.2-gompi-2022b.eb 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # updated to version 2.0.6, based on the previous 2.0.5 version
  2. # J. Sassmannshausen (Imperial College London, UK)
  3. # Alex Domingo (Vrije Universiteit Brussel, BE)
  4. # Maxim Masterov (SURF, NL)
  5. easyblock = 'ConfigureMake'
  6. name = 'CDO'
  7. version = '2.2.2'
  8. homepage = 'https://code.zmaw.de/projects/cdo'
  9. description = """CDO is a collection of command line Operators to manipulate and analyse Climate and NWP model Data."""
  10. toolchain = {'name': 'gompi', 'version': '2022b'}
  11. toolchainopts = {'cstd': 'c++17', 'usempi': True}
  12. source_urls = ['https://code.mpimet.mpg.de/attachments/download/28882/']
  13. sources = [SOURCELOWER_TAR_GZ]
  14. checksums = ['419c77315244019af41a296c05066f474cccbf94debfaae9e2106da51bc7c937']
  15. builddependencies = [
  16. ('pkgconf', '1.9.3'),
  17. ]
  18. dependencies = [
  19. ('cURL', '7.86.0'),
  20. ('ecCodes', '2.31.0'),
  21. ('FFTW', '3.3.10'),
  22. ('HDF5', '1.14.0'),
  23. ('libxml2', '2.10.3'),
  24. ('netCDF', '4.9.0'),
  25. ('PROJ', '9.1.1'),
  26. ('Szip', '2.1.1'),
  27. ('UDUNITS', '2.2.28'),
  28. ('util-linux', '2.38.1'),
  29. ]
  30. # Build libcdi
  31. configopts = "--enable-cdi-lib "
  32. # Use dependencies from EasyBuild
  33. configopts += "--with-curl=$EBROOTCURL --with-eccodes=$EBROOTECCODES --with-fftw3 --with-hdf5=$EBROOTHDF5 "
  34. configopts += "--with-netcdf=$EBROOTNETCDF --with-proj=$EBROOTPROJ --with-szlib=$EBROOTSZIP "
  35. configopts += "--with-udunits2=$EBROOTUDUNITS --with-util-linux-uuid=$EBROOTUTILMINLINUX "
  36. sanity_check_paths = {
  37. 'files': ['bin/cdo', 'lib/libcdi.a', 'lib/libcdi.%s' % SHLIB_EXT],
  38. 'dirs': ['include'],
  39. }
  40. sanity_check_commands = ["cdo --version 2>&1 | grep 'Climate Data Operators version %(version)s'"]
  41. moduleclass = 'data'