From 0ae315edb6d225549f3c0938468381e8d54e1372 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 17 Jul 2023 15:28:08 -0400 Subject: [PATCH] +ghostscript (#2549) Closes #248 --- projects/ghostscript.com/fixture.ps | 6 ++ projects/ghostscript.com/package.yml | 85 ++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 projects/ghostscript.com/fixture.ps create mode 100644 projects/ghostscript.com/package.yml diff --git a/projects/ghostscript.com/fixture.ps b/projects/ghostscript.com/fixture.ps new file mode 100644 index 00000000..68aae062 --- /dev/null +++ b/projects/ghostscript.com/fixture.ps @@ -0,0 +1,6 @@ +%!PS +/Courier +20 selectfont +72 500 moveto +(Hello World!) show +showpage diff --git a/projects/ghostscript.com/package.yml b/projects/ghostscript.com/package.yml new file mode 100644 index 00000000..be39e530 --- /dev/null +++ b/projects/ghostscript.com/package.yml @@ -0,0 +1,85 @@ +distributable: + url: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/{{version.tag}}/ghostpdl-{{version.raw}}.tar.xz + strip-components: 1 + +versions: + github: ArtifexSoftware/ghostpdl-downloads/releases + strip: + - /^Ghostscript\/GhostPDL / + +runtime: + env: + #FIXME order is wrong but tea/cli needs to not prefix if GS_LIB is not set as that breaks here + GS_LIB: ${{prefix}}/share/ghostscript/Resource/Init:$GS_LIB + +dependencies: + zlib.net: ^1.2 + libpng.org: ^1.6 + libjpeg-turbo.org: ^2 + simplesystems.org/libtiff: ^4 + littlecms.com: ^2.15 + gnu.org/libidn: ^1.41 + freedesktop.org/fontconfig: ^2.14 + jbig2dec.com: ^0.19 + libexpat.github.io: ^2.5 + openjpeg.org: ^2.5 + freetype.org: ^2.13 + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + freedesktop.org/pkg-config: ^0.29 + script: + - rm -rf expat freetype jbig2dec jpeg lcms2mt libpng openjpeg tiff zlib + # ^^ ensure our libs are used and nothing is vendored + - ./configure $ARGS + - make --jobs {{ hw.concurrency }} install + - make install-so + env: + ARGS: + - --prefix="{{prefix}}" + - --disable-compile-inits + - --disable-cups + - --disable-gtk + - --with-system-libtiff + - --without-x + - --without-versioned-path + +test: + ps2ascii fixture.ps | grep 'Hello World!' + +provides: + - bin/dvipdf + - bin/eps2eps + - bin/gpcl6 + - bin/gpcl6c + - bin/gpdlc + - bin/gs + - bin/gsbj + - bin/gsc + - bin/gsdj + - bin/gsdj500 + - bin/gslj + - bin/gslp + - bin/gsnd + - bin/gsx + - bin/gxps + - bin/gxpsc + - bin/lprsetup.sh + - bin/pdf2dsc + - bin/pdf2ps + - bin/pf2afm + - bin/pfbtopfa + - bin/pphs + - bin/printafm + - bin/ps2ascii + - bin/ps2epsi + - bin/ps2pdf + - bin/ps2pdf12 + - bin/ps2pdf13 + - bin/ps2pdf14 + - bin/ps2pdfwr + - bin/ps2ps + - bin/ps2ps2 + - bin/unix-lpr.sh