NCO-5.3.6-foss-2025b.eb 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. easyblock = 'ConfigureMake'
  2. name = 'NCO'
  3. version = '5.3.6'
  4. homepage = "https://github.com/nco/nco"
  5. description = """The NCO toolkit manipulates and analyzes data stored in netCDF-accessible formats,
  6. including DAP, HDF4, and HDF5."""
  7. toolchain = {'name': 'foss', 'version': '2025b'}
  8. source_urls = ['https://github.com/nco/nco/archive/']
  9. sources = ['%(version)s.tar.gz']
  10. checksums = ['70d64f461a0d5262274495ee1a9d85735aa3115281fdf01df4f946a919f9f6ae']
  11. builddependencies = [
  12. ('Bison', '3.8.2'),
  13. ('flex', '2.6.4'),
  14. ]
  15. dependencies = [
  16. ('UDUNITS', '2.2.28'),
  17. ('expat', '2.7.1'),
  18. ('ANTLR', '2.7.7'),
  19. ('libdap', '3.21.1'),
  20. ('GSL', '2.8'),
  21. ('netCDF', '4.9.3'),
  22. ('ESMF', '8.9.0'), # ncremap needs ESMF_RegridWeightGen
  23. ]
  24. configopts = "--enable-nco_cplusplus"
  25. sanity_check_paths = {
  26. 'files': ['bin/nc%s' % x for x in ('ap2', 'atted', 'bo', 'diff', 'ea', 'ecat', 'es',
  27. 'flint', 'ks', 'pdq', 'ra', 'rcat', 'rename', 'wa')] +
  28. ['lib/libnco.a', 'lib/libnco.%s' % SHLIB_EXT, 'lib/libnco_c++.a', 'lib/libnco_c++.%s' % SHLIB_EXT],
  29. 'dirs': ['include'],
  30. }
  31. sanity_check_commands = [
  32. "ncks -O -7 --cnk_dmn time,10 "
  33. "%(builddir)s/%(namelower)s-%(version)s/data/in.nc %(builddir)s/%(namelower)s-%(version)s/data/in4.cdl"
  34. ]
  35. moduleclass = 'tools'