ELIC_R-1-foss-2021b.eb 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. easyblock = 'Bundle'
  2. name = 'ELIC_R'
  3. version = '1'
  4. homepage = 'https://gogs.elic.ucl.ac.be'
  5. description = """This repo provides additional Python and R extensions for ELIC ecosystem."""
  6. toolchain = {'name': 'foss', 'version': '2021b'}
  7. dependencies = [
  8. ('R', '4.1.0'),
  9. ('GDAL', '3.3.0'),
  10. ('PostgreSQL', '13.3'),
  11. ]
  12. exts_default_options = {
  13. 'source_urls': [
  14. 'https://cran.r-project.org/src/contrib/Archive/%(name)s', # package archive
  15. 'https://cran.r-project.org/src/contrib/', # current version of packages
  16. 'https://cran.freestatistics.org/src/contrib', # mirror alternative for current packages
  17. ],
  18. 'source_tmpl': '%(name)s_%(version)s.tar.gz'
  19. }
  20. exts_defaultclass = 'RPackage'
  21. exts_filter = ("R -q --no-save", "library(%(ext_name)s)")
  22. modextrapaths = {'R_LIBS': ''}
  23. postinstallcmds = [
  24. "cd %(installdir)s && " +
  25. 'Rscript -e "library(remotes); install_github(\'myllym/GET\', lib=\'%(installdir)s\')" && ' +
  26. 'Rscript -e "install.packages(c(\'rgdal\', \'gdalUtils\', \'ncdf4\', \'RPostgreSQL\', \'RPostgres\'), repos=\'https://www.freestatistics.org/cran/\', lib=\'%(installdir)s\')"'
  27. ]
  28. sanity_check_paths = {
  29. 'files': [],
  30. 'dirs': ['RPostgreSQL'],
  31. }
  32. moduleclass = 'numlib'