# JH 2020 easyblock = 'ConfigureMake' name = 'Ghostscript' version = '9.52' homepage = 'https://ghostscript.com' description = """Ghostscript is a versatile processor for PostScript data with the ability to render PostScript to different targets. It used to be part of the cups printing stack, but is no longer used for that.""" toolchain = {'name': 'GCCcore', 'version': '8.3.0'} toolchainopts = {'pic': True} source_urls = [ 'https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs%(version_major)s%(version_minor)s/', ] sources = [SOURCELOWER_TAR_GZ] checksums = ['c2501d8e8e0814c4a5aa7e443e230e73d7af7f70287546f7b697e5ef49e32176'] dependencies = [ ('zlib', '1.2.11'), ('libpng', '1.6.37'), ('freetype', '2.10.1'), ('libjpeg-turbo', '2.0.4'), ('expat', '2.2.7'), ('GLib', '2.64.0'), ('cairo', '1.17.2'), ('LibTIFF', '4.1.0'), ] builddependencies = [ # use same binutils version that was used when building GCCcore toolchain ('binutils', '2.32'), ] # Do not use local copies of zlib, jpeg, freetype, and png preconfigopts = "mv zlib zlib.no && mv jpeg jpeg.no && mv freetype freetype.no && mv libpng libpng.no && " preconfigopts += 'export LIBS="$LIBS -lz" && ' configopts = "--with-system-libtiff --enable-dynamic" sanity_check_paths = { 'files': ['bin/gs'], 'dirs': ['lib/ghostscript', 'share/man'], } moduleclass = 'tools'