CDO-1.9.2-foss-2017b.eb 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. easyblock = 'ConfigureMake'
  2. name = 'CDO'
  3. version = '1.9.2'
  4. homepage = 'https://code.zmaw.de/projects/cdo'
  5. description = """CDO is a collection of command line Operators to manipulate and analyse Climate and NWP model Data."""
  6. toolchain = {'name': 'foss', 'version': '2017b'}
  7. toolchainopts = {'opt': True, 'pic': True, 'usempi': True}
  8. sources = [SOURCELOWER_TAR_GZ]
  9. source_urls = ['https://code.mpimet.mpg.de/attachments/download/16035/']
  10. checksums = ['d1c5092167034a48e4b8ada24cf78a1d4b84e364ffbb08b9ca70d13f428f300c']
  11. hdf5_ver = '1.8.19'
  12. dependencies = [
  13. ('HDF5', hdf5_ver),
  14. ('netCDF', '4.4.1.1', '-HDF5-%s' % hdf5_ver),
  15. ('YAXT', '0.5.1'),
  16. ('grib_api', '1.24.0'),
  17. ]
  18. configopts = "--with-hdf5=$EBROOTHDF5 --with-netcdf=$EBROOTNETCDF --with-grib_api=$EBROOTGRIB_API"
  19. # fix for linking issues with HDF5 libraries for libcdi, should link with both -lnetcdf and -lhdf5_hl -lhdf5
  20. prebuildopts = "find libcdi -name Makefile | xargs sed -i 's/-lnetcdf -lnetcdf/-lnetcdf -lhdf5_hl -lhdf5/g' && "
  21. sanity_check_paths = {
  22. 'files': ["bin/cdo"],
  23. 'dirs': [],
  24. }
  25. moduleclass = 'data'