nodejs-16.15.1-GCCcore-11.2.0.eb 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. easyblock = 'ConfigureMake'
  2. name = 'nodejs'
  3. version = '16.15.1' # LTS on 2022-06-12
  4. local_libversion = '93'
  5. homepage = 'https://nodejs.org'
  6. description = """Node.js is a platform built on Chrome's JavaScript runtime
  7. for easily building fast, scalable network applications. Node.js uses an
  8. event-driven, non-blocking I/O model that makes it lightweight and efficient,
  9. perfect for data-intensive real-time applications that run across distributed devices."""
  10. toolchain = {'name': 'GCCcore', 'version': '11.2.0'}
  11. source_urls = ['https://nodejs.org/dist/v%(version)s/']
  12. sources = ['node-v%(version)s.tar.gz']
  13. checksums = ['308aee7149c4092a53c87c28ef49e23a8d1606119e79ae68333062e2a1f94208']
  14. builddependencies = [
  15. ('binutils', '2.37'),
  16. ('Python', '3.9.6', '-bare'),
  17. ]
  18. configopts = [
  19. '--with-intl=none', # Fully disable ICU to avoid issues with the embedded icu-small library
  20. '--shared --with-intl=none', # Build libnode.so in a second run
  21. ]
  22. # Link libv8 libs to libnode
  23. postinstallcmds = [
  24. "cd %%(installdir)s/lib; ln -s libnode.%s.%s libnode.%s" % (SHLIB_EXT, local_libversion, SHLIB_EXT),
  25. "cd %%(installdir)s/lib; ln -s libnode.%s.%s libv8.%s" % (SHLIB_EXT, local_libversion, SHLIB_EXT),
  26. "cd %%(installdir)s/lib; ln -s libnode.%s.%s libv8_libbase.%s" % (SHLIB_EXT, local_libversion, SHLIB_EXT),
  27. "cd %%(installdir)s/lib; ln -s libnode.%s.%s libv8_libplatform.%s" % (SHLIB_EXT, local_libversion, SHLIB_EXT),
  28. ]
  29. sanity_check_paths = {
  30. 'files': ['bin/node', 'bin/npm', 'lib/libnode.%s.%s' % (SHLIB_EXT, local_libversion)],
  31. 'dirs': ['lib/node_modules', 'include/node']
  32. }
  33. moduleclass = 'lang'