Ghostscript-9.53.3-GCCcore-10.2.0.eb 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. easyblock = 'ConfigureMake'
  2. name = 'Ghostscript'
  3. version = '9.53.3'
  4. homepage = 'https://ghostscript.com'
  5. description = """Ghostscript is a versatile processor for PostScript data with the ability to render PostScript to
  6. different targets. It used to be part of the cups printing stack, but is no longer used for that."""
  7. toolchain = {'name': 'GCCcore', 'version': '10.2.0'}
  8. toolchainopts = {'pic': True}
  9. source_urls = [
  10. 'https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs%s/' % version.replace('.', ''),
  11. ]
  12. sources = [SOURCELOWER_TAR_GZ]
  13. patches = ['Ghostscript-9.53.3_fix-freetype-callback.patch']
  14. checksums = [
  15. '6eaf422f26a81854a230b80fd18aaef7e8d94d661485bd2e97e695b9dce7bf7f', # ghostscript-9.53.3.tar.gz
  16. # Ghostscript-9.53.3_fix-freetype-callback.patch
  17. 'c539e6c9e1ddaeee132e12265a6918eb6c4c71aec20e8c0e7b703159c13dc12f',
  18. ]
  19. dependencies = [
  20. ('zlib', '1.2.11'),
  21. ('libpng', '1.6.37'),
  22. ('freetype', '2.10.3'),
  23. ('libjpeg-turbo', '2.0.5'),
  24. ('expat', '2.2.9'),
  25. ('GLib', '2.66.1'),
  26. ('cairo', '1.16.0'),
  27. ('LibTIFF', '4.1.0'),
  28. ]
  29. builddependencies = [
  30. # use same binutils version that was used when building GCCcore toolchain
  31. ('binutils', '2.35'),
  32. ('pkg-config', '0.29.2'),
  33. ]
  34. # Do not use local copies of zlib, jpeg, freetype, and png
  35. preconfigopts = "mv zlib zlib.no && mv jpeg jpeg.no && mv freetype freetype.no && mv libpng libpng.no && "
  36. preconfigopts += 'export LIBS="$LIBS -L$EBROOTZLIB/lib -lz" && '
  37. configopts = "--with-system-libtiff --enable-dynamic"
  38. postinstallcmds = [
  39. # build and install shared libs
  40. "make so && make soinstall",
  41. # install header files
  42. "mkdir -p %(installdir)s/include/ghostscript",
  43. "install -v -m644 base/*.h %(installdir)s/include/ghostscript",
  44. "install -v -m644 psi/*.h %(installdir)s/include/ghostscript",
  45. ]
  46. sanity_check_paths = {
  47. 'files': ['bin/gs', 'lib/libgs.%s' % SHLIB_EXT],
  48. 'dirs': ['lib/ghostscript', 'include/ghostscript', 'share/man'],
  49. }
  50. moduleclass = 'tools'