-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathghostscript.yaml
127 lines (109 loc) · 2.82 KB
/
ghostscript.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
package:
name: ghostscript
version: 10.02.1
epoch: 0
description: Interpreter for the PostScript language and for PDF
copyright:
- license: AGPL-3.0-or-later
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
- cups-dev
- expat-dev
- freetype-dev
- gtk-2.0-dev
- jbig2dec-dev
- lcms2-dev
- libjpeg-turbo
- libpng-dev
- libtool
- openjpeg-dev
- tiff-dev
- zlib-dev
var-transforms:
- from: ${{package.version}}
match: \.
replace: ''
to: mangled-package-version
pipeline:
- uses: fetch
with:
expected-sha512: 24eeff047a24085413283ee42539a2feea4d3de81077664861399055a9d30349a0ef0950746bb0b0ee2237b4b9ee215340204ab0e33347b53dc2acee85fcfc19
uri: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${{vars.mangled-package-version}}/ghostscript-${{package.version}}.tar.gz
- uses: patch
with:
patches: fix-sprintf.patch
- uses: patch
with:
patches: ghostscript-system-zlib.patch
- runs: |
rm -r jpeg libpng zlib tiff lcms2mt cups/libs jbig2dec \
freetype
# fix parallel builds
sed -i -e 's/ECHO_XE/ECHOGS_XE/g' \
-e 's/^\($(GLOBJ)md5.$(OBJ) :.*\)/\1 $(ECHOGS_XE)/' \
base/lib.mak
aclocal && autoconf --force
cd ./ijs
libtoolize --force && aclocal && autoconf && automake --add-missing
- uses: autoconf/configure
with:
dir: ijs
opts: |
CFLAGS="$CFLAGS -flto=auto" \
--enable-shared \
--disable-static
- uses: autoconf/make
with:
dir: ijs
- uses: autoconf/make-install
with:
dir: ijs
- uses: autoconf/configure
with:
dir: .
opts: |
--docdir=/usr/share/doc/ghostscript \
--with-system-libtiff \
--with-ijs \
--with-jbig2dec \
--without-libpaper \
--without-versioned-path \
--enable-gtk \
--with-drivers=ALL \
--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \
--disable-compile-inits
- runs: |
make so all
make -j1 DESTDIR="${{targets.destdir}}" install soinstall
# create empty dir for future fonts
mkdir -p "${{targets.destdir}}"/usr/share/fonts/Type1
- uses: strip
subpackages:
- name: ghostscript-doc
pipeline:
- uses: split/manpages
description: ghostscript manpages
- name: "ghostscript-dbg"
description: "ghostscript Debug Symbols"
pipeline:
- uses: split/debug
dependencies:
runtime:
- ghostscript
- name: ghostscript-dev
pipeline:
- uses: split/dev
description: ghostscript dev
dependencies:
runtime:
- ghostscript
update:
enabled: true
release-monitor:
identifier: 1157