Xvfb-1.20.9-GCCcore-10.2.0.eb 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. easyblock = 'Bundle'
  2. name = 'Xvfb'
  3. version = '1.20.9'
  4. homepage = 'https://www.x.org/releases/X11R7.6/doc/man/man1/Xvfb.1.xhtml'
  5. description = """Xvfb is an X server that can run on machines with no display hardware and no physical input devices.
  6. It emulates a dumb framebuffer using virtual memory."""
  7. toolchain = {'name': 'GCCcore', 'version': '10.2.0'}
  8. builddependencies = [
  9. ('binutils', '2.35'),
  10. ('pkg-config', '0.29.2'),
  11. ('Python', '3.8.6'),
  12. ]
  13. dependencies = [
  14. ('X11', '20201008'),
  15. ('pixman', '0.40.0'),
  16. ('libdrm', '2.4.102'),
  17. ('Mesa', '20.2.1'),
  18. ('nettle', '3.6'),
  19. ('libunwind', '1.4.0'),
  20. ('XZ', '5.2.5'),
  21. ]
  22. default_easyblock = 'ConfigureMake'
  23. local_xvfb_configopts = "--enable-xvfb --disable-xorg --disable-xnest --disable-xwin "
  24. local_xvfb_configopts += "--disable-dri --disable-dri2 --disable-dri3 --disable-libunwind "
  25. local_xvfb_configopts += "--with-fontrootdir=%(installdir)s/share/fonts/X11"
  26. # use 'make V=1' to see compiler commands
  27. local_xvfb_buildopts = "V=1 "
  28. # use static libraries for nettle & libunwind, so avoid errors like "No rule to make target '-lnettle'"
  29. local_xvfb_buildopts += 'SHA1_LIBS="$EBROOTNETTLE/lib*/libnettle.a" '
  30. local_xvfb_buildopts += 'LIBUNWIND_LIBS="$EBROOTLIBUNWIND/lib*/libunwind.a $EBROOTXZ/lib*/liblzma.a"'
  31. default_component_specs = {
  32. 'source_urls': ['https://www.x.org/archive//individual/font/'],
  33. 'sources': [SOURCE_TAR_GZ],
  34. 'start_dir': '%(name)s-%(version)s',
  35. }
  36. local_font_misc_preconfigopts = "export PKG_CONFIG_PATH=%(installdir)s/lib/pkgconfig:$PKG_CONFIG_PATH && "
  37. local_font_misc_preconfigopts += "export PATH=%(installdir)s/bin:$PATH && "
  38. components = [
  39. ('mkfontscale', '1.2.1', {
  40. 'source_urls': ['https://www.x.org/archive//individual/app/'],
  41. 'checksums': ['e5b687029e44d0bd3ccd254a4da6a5cbfc40350aa8b43fcca16ef6e9b9bb9f22'],
  42. }),
  43. ('mkfontdir', '1.0.7', {
  44. 'source_urls': ['https://www.x.org/archive//individual/app/'],
  45. 'checksums': ['bccc5fb7af1b614eabe4a22766758c87bfc36d66191d08c19d2fa97674b7b5b7'],
  46. }),
  47. ('bdftopcf', '1.1', {
  48. 'source_urls': ['https://www.x.org/archive//individual/app/'],
  49. 'checksums': ['699d1a62012035b1461c7f8e3f05a51c8bd6f28f348983249fb89bbff7309b47'],
  50. }),
  51. ('font-util', '1.3.2', {
  52. 'checksums': ['f115a3735604de1e852a4bf669be0269d8ce8f21f8e0e74ec5934b31dadc1e76'],
  53. }),
  54. ('font-misc-misc', '1.1.2', {
  55. 'checksums': ['46142c876e176036c61c0c24c0a689079704d5ca5b510d48c025861ee2dbf829'],
  56. 'preconfigopts': local_font_misc_preconfigopts,
  57. }),
  58. ('xkbcomp', '1.4.4', {
  59. 'source_urls': ['https://www.x.org/archive//individual/app/'],
  60. 'checksums': ['159fba6b62ef4a3fb16ef7fc4eb4fc26f3888652471ceb604c495783dda020bc'],
  61. }),
  62. ('xkeyboard-config', '2.31', {
  63. 'source_urls': ['https://www.x.org/archive//individual/data/xkeyboard-config/'],
  64. 'checksums': ['5ac6b5b661aeb9d0ea84ad961cbbdd8fdf2503d6e8ca65ca1b1c5d9aea2ddc52'],
  65. 'configopts': '--with-xkb-rules-symlink=xorg',
  66. }),
  67. ('xauth', '1.1', {
  68. 'source_urls': ['https://www.x.org/releases/individual/app/'],
  69. 'checksums': ['e9fce796c8c5c9368594b9e8bbba237fb54b6615f5fd60e8d0a5b3c52a92c5ef'],
  70. }),
  71. (name, version, {
  72. 'source_urls': ['https://www.x.org/releases/individual//xserver/'],
  73. 'sources': ['xorg-server-%(version)s.tar.gz'],
  74. 'patches': [('xvfb-run', '.')],
  75. 'checksums': [
  76. '067c348fe1a86a1924010354c1c7cf1eaa9e43866e48540aa56a465f2a341ddc', # xorg-server-1.20.9.tar.gz
  77. 'fd6d13182b77871d4f65fccdaebb8a72387a726426066d3f8e6aa26b010ea0e8', # xvfb-run
  78. ],
  79. 'start_dir': 'xorg-server-%(version)s',
  80. 'configopts': local_xvfb_configopts,
  81. 'buildopts': local_xvfb_buildopts,
  82. 'installopts': local_xvfb_buildopts,
  83. }),
  84. ]
  85. postinstallcmds = ["cp -a xvfb-run %(installdir)s/bin/ && chmod u+x %(installdir)s/bin/xvfb-run"]
  86. sanity_check_paths = {
  87. 'files': ['bin/Xvfb', 'bin/xvfb-run'],
  88. 'dirs': ['lib/xorg', 'share/fonts/X11/misc', 'share/fonts/X11/util'],
  89. }
  90. sanity_check_commands = [
  91. "xvfb-run --help",
  92. "xvfb-run --error-file %(builddir)s/xvfb-run-test.err echo hello",
  93. ]
  94. moduleclass = 'vis'