From 3dad3b8dcd4f19992327d956d5baacfa068d7b33 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 10 Jul 2023 11:43:46 -0400 Subject: [PATCH 1/5] +ghostscript Closes #248 --- projects/ghostscript.com/fixture.ps | Bin 0 -> 71 bytes projects/ghostscript.com/package.yml | 79 +++++++++++++++++++++++++++ 2 files changed, 79 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 0000000000000000000000000000000000000000..68aae0621421a624f0cb1709e594a82b0dac2eab GIT binary patch literal 71 zcmY#Y3<&1Zcg`;@%1kZdGBQvoPR&V8E=kMJE8#LXQZO|zP{_?MOD)Og((p*l$;np; X&o9bJQPfl@&d4w40ucp?>8V@*3xF1k literal 0 HcmV?d00001 diff --git a/projects/ghostscript.com/package.yml b/projects/ghostscript.com/package.yml new file mode 100644 index 0000000000..601074946a --- /dev/null +++ b/projects/ghostscript.com/package.yml @@ -0,0 +1,79 @@ +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 / + +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 + +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 From 0a3ef9a116c40fa202b2abaeb5832c15ef3b8b86 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 12 Jul 2023 10:15:32 -0400 Subject: [PATCH 2/5] wip --- projects/ghostscript.com/package.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/ghostscript.com/package.yml b/projects/ghostscript.com/package.yml index 601074946a..26c0c6392f 100644 --- a/projects/ghostscript.com/package.yml +++ b/projects/ghostscript.com/package.yml @@ -7,6 +7,11 @@ versions: strip: - /^Ghostscript\/GhostPDL / +runtime: + env: + GS_LIB_DEFAULT: > + {{prefix}}/share/ghostscript/Resource/Init + dependencies: zlib.net: ^1.2 libpng.org: ^1.6 @@ -39,6 +44,7 @@ build: - --disable-gtk - --with-system-libtiff - --without-x + - --without-versioned-path test: ps2ascii fixture.ps | grep 'Hello World!' From 60e6b7933d1d82025059456b4908571957f785e2 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 14 Jul 2023 08:25:22 -0400 Subject: [PATCH 3/5] wip --- projects/ghostscript.com/package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/ghostscript.com/package.yml b/projects/ghostscript.com/package.yml index 26c0c6392f..d321e6cb09 100644 --- a/projects/ghostscript.com/package.yml +++ b/projects/ghostscript.com/package.yml @@ -9,8 +9,8 @@ versions: runtime: env: - GS_LIB_DEFAULT: > - {{prefix}}/share/ghostscript/Resource/Init + GS_LIB: > + $GS_LIB:{{prefix}}/share/ghostscript/Resource/Init dependencies: zlib.net: ^1.2 From 7b2c0ed2bc9ba12ed8ab8a55d131f3104ed256e0 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 17 Jul 2023 14:02:43 -0400 Subject: [PATCH 4/5] wip --- projects/ghostscript.com/package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/ghostscript.com/package.yml b/projects/ghostscript.com/package.yml index d321e6cb09..58cabf7257 100644 --- a/projects/ghostscript.com/package.yml +++ b/projects/ghostscript.com/package.yml @@ -10,7 +10,7 @@ versions: runtime: env: GS_LIB: > - $GS_LIB:{{prefix}}/share/ghostscript/Resource/Init + {{prefix}}/share/ghostscript/Resource/Init dependencies: zlib.net: ^1.2 From c0893d9b9ab5319805e211677c92b2f6e29931ba Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 17 Jul 2023 15:06:29 -0400 Subject: [PATCH 5/5] wip --- projects/ghostscript.com/package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/ghostscript.com/package.yml b/projects/ghostscript.com/package.yml index 58cabf7257..be39e53042 100644 --- a/projects/ghostscript.com/package.yml +++ b/projects/ghostscript.com/package.yml @@ -9,8 +9,8 @@ versions: runtime: env: - GS_LIB: > - {{prefix}}/share/ghostscript/Resource/Init + #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