Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/ghostscript-gpl/files/, app-text/ghostscript-gpl/
Date: Sat, 15 Jan 2022 14:15:14
Message-Id: 1642256099.215fe07aa9dba7d2732a8a62836f7493927ccbbb.asturm@gentoo
1 commit: 215fe07aa9dba7d2732a8a62836f7493927ccbbb
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 15 12:37:10 2022 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 15 14:14:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=215fe07a
7
8 app-text/ghostscript-gpl: Cleanup vulnerable 9.52-r1, 9.53.3-r5, 9.54.0
9
10 Bug: https://bugs.gentoo.org/812509
11 Package-Manager: Portage-3.0.30, Repoman-3.0.3
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 app-text/ghostscript-gpl/Manifest | 4 -
15 .../files/ghostscript-gpl-9.53.3-fix-ps2epsi.patch | 16 --
16 .../ghostscript-gpl-9.53.3-freetype-2.10.3.patch | 20 ---
17 .../ghostscript-gpl/ghostscript-gpl-9.52-r1.ebuild | 197 ---------------------
18 .../ghostscript-gpl-9.53.3-r5.ebuild | 196 --------------------
19 .../ghostscript-gpl/ghostscript-gpl-9.54.0.ebuild | 189 --------------------
20 6 files changed, 622 deletions(-)
21
22 diff --git a/app-text/ghostscript-gpl/Manifest b/app-text/ghostscript-gpl/Manifest
23 index c4e41390ab87..7715946cfaaf 100644
24 --- a/app-text/ghostscript-gpl/Manifest
25 +++ b/app-text/ghostscript-gpl/Manifest
26 @@ -1,8 +1,4 @@
27 -DIST ghostscript-9.52.tar.xz 39711040 BLAKE2B 317042ae7e2bfdeded2ae9d9a1bd1521422d1ce1dd6b9b2cdedf4c503cce1285684d5329663dc8ee7263591761c33254827d16b1a93f8c10aad4baab1d859f93 SHA512 4c4a33884e1138bad553eee61fac1a72158297ad5c2ce46a4b36150848dea8158affaf2b902f4ff03e4f72ebc8154c198b618112624f409230a610b7648faa67
28 -DIST ghostscript-9.53.3.tar.xz 41368160 BLAKE2B 6b5840a420d7527c7155bfb707fe19b3412bdd3a6707f44d058c20f607e6695cfc878cf5df4c4528686c1c1f488b2dbdb81ef5fdf38b950eb15751d2ebafb0a9 SHA512 eb832c27eecd30f15e346408c592d7096fd23ef0a6fa59bd50ca327578915434530a4868e69249c2594def0910c527302e99d54f0877f726a8ca8bea6f0f17b7
29 DIST ghostscript-9.54.0.tar.xz 56001768 BLAKE2B 4a98b1af74c4b4caf8d263cd5529059304a76884418c90401b0fc9a89e0f5de5417a439f6e08b95374e62158eec65528ef5f949497d5050a6408fb7c87e54aa9 SHA512 a3c96925f4dbf5e276fc543b88df185a0435c68166db15ac532094329ba8db314d739a292da18be7954daaafeeb290e641ea03edf888854d7e752998ec6062cc
30 DIST ghostscript-9.55.0.tar.xz 67417724 BLAKE2B 87827856aa60c2c4a4ed209bc4203a837107df0404af036a48e5baa23fccfc945a97fe328a80b15c7357fc71acb82721d4b96e5f726d8c9d836fee031916aef7 SHA512 42c7e05ba72e9fdd626c5412187b13fc3c9459cae57dfe49ddd3011bf4e2cbd10bc88f09068a9f777c2ec6ae881cd737fd700ab62ec5108f2aca69152588f38e
31 -DIST ghostscript-gpl-9.52-patchset-01.tar.xz 3292 BLAKE2B b6ac4f06c149301b07f57a5dd1f4507cc1e6d17ea60132b64177972ca58a29b2f6ff2f034b20b8ac083b60ea999f50ff75b74f86eec0cd73179741ed8a1486a8 SHA512 2498c5f396807a282727a7a9bd678e2008a1e4112722745aab48a12601661b08557c5d49f0a5ee67fb636f8c2b00c737640e894523b904ef3600f66d107999cb
32 -DIST ghostscript-gpl-9.53-patchset-01.tar.xz 2340 BLAKE2B 55d82c88f1b57c084318839e1382ffa112461d074411b1f6586a5a9ace37772b144abdda9f742defd077ce937df590d63bd7a2306bad52438949d1036bb7900c SHA512 ab58485df9152bb32c6f0eb25bd45689089bd17ffb0323c54e1977c5f810ec5eb09f358637251c428591749bfb42c6f8489c74d4bd0a7ae5d696eb2346503c44
33 DIST ghostscript-gpl-9.54-patchset-01.tar.xz 2600 BLAKE2B e89f16f149ba3c46b1e81d774a3dca8345dfb60ec959249292cc0f3d8bc811ac169e232e3fb85de9d0ce65dd41453f90461798007b8b9fdd2c6e44d55e7a9d10 SHA512 0c49fbe6ece86b0c7729421cf06a6a210341fbe676efd89c0f97c96a426d3156e6a8ee596e050b8ee6a1af7a94ea8d1d54a6166f020a7d40fec95949cd7f3b12
34 DIST ghostscript-gpl-9.55-patchset-01.tar.xz 2940 BLAKE2B 450498f0bd191d5936de1c2bdff659f075c39f7f7fefaf85b438f51967c4a8c294c6c887b36d5c0429d3677fb06e171e77da4b81ec911efea96df5b107d489dc SHA512 87411e68a078f77171128392962a9cd7a639bf6082447c658a50017cbf3f4e3ebce63af46eb9befdf2c1317de3a7a17e389f4de6e3aeae83d519b1c7b36de3c8
35
36 diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.53.3-fix-ps2epsi.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.53.3-fix-ps2epsi.patch
37 deleted file mode 100644
38 index 9d7f53e2fd1f..000000000000
39 --- a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.53.3-fix-ps2epsi.patch
40 +++ /dev/null
41 @@ -1,16 +0,0 @@
42 -https://bugs.ghostscript.com/show_bug.cgi?id=703270
43 -
44 ---- a/lib/ps2epsi
45 -+++ b/lib/ps2epsi
46 -@@ -40,8 +40,8 @@ else
47 - outfile=$2
48 - fi
49 -
50 --# Note, we expect 'ps2epsi.ps' to be in the same directory as 'ps2epsi'
51 -+# Note, we expect 'ps2epsi.ps' to be on one of the search paths which can be seen by: gs -h
52 - "$GS_EXECUTABLE" -q -dNOOUTERSAVE -dNODISPLAY -dLastPage=1 -sOutputFile="${outfile}" \
53 -- --permit-file-all="${infile}" -- "$LIBDIR/ps2epsi.ps" "${infile}" 1>&2
54 -+ --permit-file-all="${infile}" -- ps2epsi.ps "${infile}" 1>&2
55 -
56 - exit 0
57 -
58
59 diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.53.3-freetype-2.10.3.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.53.3-freetype-2.10.3.patch
60 deleted file mode 100644
61 index 59d9ae0095f7..000000000000
62 --- a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.53.3-freetype-2.10.3.patch
63 +++ /dev/null
64 @@ -1,20 +0,0 @@
65 -https://bugs.ghostscript.com/show_bug.cgi?id=702985
66 -https://bugs.gentoo.org/747808
67 -
68 ---- ghostscript-9.53.3/base/fapi_ft.c
69 -+++ ghostscript-9.53.3/base/fapi_ft.c
70 -@@ -125,6 +125,14 @@
71 - delete_inc_int_info(gs_fapi_server * a_server,
72 - FT_IncrementalRec * a_inc_int_info);
73 -
74 -+#ifndef FT_CALLBACK_DEF
75 -+#ifdef __cplusplus
76 -+#define FT_CALLBACK_DEF( x ) extern "C" x
77 -+#else
78 -+#define FT_CALLBACK_DEF( x ) static x
79 -+#endif
80 -+#endif
81 -+
82 - FT_CALLBACK_DEF(void *)
83 - FF_alloc(FT_Memory memory, long size)
84 - {
85
86 diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.52-r1.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.52-r1.ebuild
87 deleted file mode 100644
88 index 29656ad43154..000000000000
89 --- a/app-text/ghostscript-gpl/ghostscript-gpl-9.52-r1.ebuild
90 +++ /dev/null
91 @@ -1,197 +0,0 @@
92 -# Copyright 1999-2021 Gentoo Authors
93 -# Distributed under the terms of the GNU General Public License v2
94 -
95 -EAPI=7
96 -
97 -inherit autotools flag-o-matic toolchain-funcs
98 -
99 -DESCRIPTION="Interpreter for the PostScript language and PDF"
100 -HOMEPAGE="https://ghostscript.com/"
101 -
102 -MY_PN=${PN/-gpl}
103 -MY_P="${MY_PN}-${PV/_}"
104 -PVM=$(ver_cut 1-2)
105 -PVM_S=$(ver_rs 1-2 "")
106 -
107 -MY_PATCHSET="ghostscript-gpl-9.52-patchset-01.tar.xz"
108 -
109 -SRC_URI="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${PVM_S}/${MY_P}.tar.xz"
110 -
111 -if [[ -n "${MY_PATCHSET}" ]] ; then
112 - SRC_URI+=" https://dev.gentoo.org/~whissi/dist/ghostscript-gpl/${MY_PATCHSET}"
113 -fi
114 -
115 -LICENSE="AGPL-3 CPL-1.0"
116 -SLOT="0"
117 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86"
118 -IUSE="cups dbus gtk l10n_de static-libs tiff unicode X"
119 -
120 -LANGS="ja ko zh-CN zh-TW"
121 -for X in ${LANGS} ; do
122 - IUSE="${IUSE} l10n_${X}"
123 -done
124 -
125 -DEPEND="
126 - app-text/libpaper
127 - media-libs/fontconfig
128 - >=media-libs/freetype-2.4.9:2=
129 - >=media-libs/jbig2dec-0.16:=
130 - >=media-libs/lcms-2.6:2
131 - >=media-libs/libpng-1.6.2:0=
132 - >=media-libs/openjpeg-2.1.0:2=
133 - >=sys-libs/zlib-1.2.7
134 - virtual/jpeg:0
135 - cups? ( >=net-print/cups-1.3.8 )
136 - dbus? ( sys-apps/dbus )
137 - gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) )
138 - unicode? ( net-dns/libidn:0= )
139 - tiff? ( >=media-libs/tiff-4.0.1:0= )
140 - X? ( x11-libs/libXt x11-libs/libXext )
141 -"
142 -BDEPEND="virtual/pkgconfig"
143 -RDEPEND="${DEPEND}
144 - app-text/poppler-data
145 - >=media-fonts/urw-fonts-2.4.9
146 - l10n_ja? ( media-fonts/kochi-substitute )
147 - l10n_ko? ( media-fonts/baekmuk-fonts )
148 - l10n_zh-CN? ( media-fonts/arphicfonts )
149 - l10n_zh-TW? ( media-fonts/arphicfonts )
150 -"
151 -
152 -S="${WORKDIR}/${MY_P}"
153 -
154 -PATCHES=(
155 - # bug #747808
156 - "${FILESDIR}/${PN}-9.53.3-freetype-2.10.3.patch"
157 -)
158 -
159 -src_prepare() {
160 - if [[ -n "${MY_PATCHSET}" ]] ; then
161 - # apply various patches, many borrowed from Fedora
162 - # https://src.fedoraproject.org/rpms/ghostscript
163 - # and Debian
164 - # https://salsa.debian.org/printing-team/ghostscript/tree/debian/master/debian/patches
165 - eapply "${WORKDIR}/patches/"*.patch
166 - fi
167 -
168 - default
169 -
170 - # remove internal copies of various libraries
171 - rm -r cups/libs || die
172 - rm -r freetype || die
173 - rm -r jbig2dec || die
174 - rm -r jpeg || die
175 - rm -r lcms2mt || die
176 - rm -r libpng || die
177 - rm -r tiff || die
178 - rm -r zlib || die
179 - rm -r openjpeg || die
180 - # remove internal CMaps (CMaps from poppler-data are used instead)
181 - rm -r Resource/CMap || die
182 -
183 - if ! use gtk ; then
184 - sed -e "s:\$(GSSOX)::" \
185 - -e "s:.*\$(GSSOX_XENAME)$::" \
186 - -i base/unix-dll.mak || die "sed failed"
187 - fi
188 -
189 - # Force the include dirs to a neutral location.
190 - sed -e "/^ZLIBDIR=/s:=.*:=${T}:" \
191 - -i configure.ac || die
192 - # Some files depend on zlib.h directly. Redirect them. #573248
193 - # Also make sure to not define OPJ_STATIC to avoid linker errors due to
194 - # hidden symbols (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203327#c1)
195 - sed -e '/^zlib_h/s:=.*:=:' \
196 - -e 's|-DOPJ_STATIC ||' \
197 - -i base/lib.mak || die
198 -
199 - # search path fix
200 - # put LDFLAGS after BINDIR, bug #383447
201 - sed -e "s:\$\(gsdatadir\)/lib:@datarootdir@/ghostscript/${PVM}/$(get_libdir):" \
202 - -e "s:exdir=.*:exdir=@datarootdir@/doc/${PF}/examples:" \
203 - -e "s:docdir=.*:docdir=@datarootdir@/doc/${PF}/html:" \
204 - -e "s:GS_DOCDIR=.*:GS_DOCDIR=@datarootdir@/doc/${PF}/html:" \
205 - -e 's:-L$(BINDIR):& $(LDFLAGS):g' \
206 - -i Makefile.in base/*.mak || die "sed failed"
207 -
208 - # remove incorrect symlink, bug 590384
209 - rm ijs/ltmain.sh || die
210 - eautoreconf
211 -
212 - cd ijs || die
213 - eautoreconf
214 -}
215 -
216 -src_configure() {
217 - local FONTPATH
218 - for path in \
219 - "${EPREFIX}"/usr/share/fonts/urw-fonts \
220 - "${EPREFIX}"/usr/share/fonts/Type1 \
221 - "${EPREFIX}"/usr/share/fonts \
222 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-CNS1 \
223 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-GB1 \
224 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-Japan1 \
225 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-Japan2 \
226 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-Korea1
227 - do
228 - FONTPATH="$FONTPATH${FONTPATH:+:}${EPREFIX}$path"
229 - done
230 -
231 - PKGCONFIG=$(type -P $(tc-getPKG_CONFIG)) \
232 - econf \
233 - --enable-dynamic \
234 - --enable-freetype \
235 - --enable-fontconfig \
236 - --enable-openjpeg \
237 - --disable-compile-inits \
238 - --with-drivers=ALL \
239 - --with-fontpath="$FONTPATH" \
240 - --with-ijs \
241 - --with-jbig2dec \
242 - --with-libpaper \
243 - --without-luratech \
244 - $(use_enable cups) \
245 - $(use_enable dbus) \
246 - $(use_enable gtk) \
247 - $(use_with cups pdftoraster) \
248 - $(use_with unicode libidn) \
249 - $(use_with tiff system-libtiff) \
250 - $(use_with X x)
251 -
252 - cd "${S}/ijs" || die
253 - econf \
254 - --enable-shared \
255 - $(use_enable static-libs static)
256 -}
257 -
258 -src_compile() {
259 - emake so all
260 -
261 - cd ijs || die
262 - emake
263 -}
264 -
265 -src_install() {
266 - emake DESTDIR="${D}" install-so install
267 -
268 - # move gsc to gs, bug #343447
269 - # gsc collides with gambit, bug #253064
270 - mv -f "${ED}"/usr/bin/{gsc,gs} || die
271 -
272 - cd "${S}/ijs" || die
273 - emake DESTDIR="${D}" install
274 -
275 - # rename the original cidfmap to cidfmap.GS
276 - mv "${ED}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die
277 -
278 - # install the CMaps from poppler-data properly, bug #409361
279 - dosym ../../../poppler/cMaps "/usr/share/ghostscript/${PVM}/Resource/CMap"
280 -
281 - if ! use static-libs; then
282 - find "${ED}" -name '*.la' -delete || die
283 - fi
284 -
285 - if ! use l10n_de; then
286 - rm -r "${ED}"/usr/share/man/de || die
287 - fi
288 -}
289
290 diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.53.3-r5.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.53.3-r5.ebuild
291 deleted file mode 100644
292 index cdb280036d23..000000000000
293 --- a/app-text/ghostscript-gpl/ghostscript-gpl-9.53.3-r5.ebuild
294 +++ /dev/null
295 @@ -1,196 +0,0 @@
296 -# Copyright 1999-2021 Gentoo Authors
297 -# Distributed under the terms of the GNU General Public License v2
298 -
299 -EAPI=7
300 -
301 -inherit autotools flag-o-matic toolchain-funcs
302 -
303 -DESCRIPTION="Interpreter for the PostScript language and PDF"
304 -HOMEPAGE="https://ghostscript.com/"
305 -
306 -MY_PN=${PN/-gpl}
307 -MY_P="${MY_PN}-${PV/_}"
308 -PVM=$(ver_cut 1-2)
309 -PVM_S=$(ver_rs 1-2 "")
310 -
311 -MY_PATCHSET="ghostscript-gpl-9.53-patchset-01.tar.xz"
312 -
313 -SRC_URI="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${PVM_S}/${MY_P}.tar.xz"
314 -
315 -if [[ -n "${MY_PATCHSET}" ]] ; then
316 - SRC_URI+=" https://dev.gentoo.org/~whissi/dist/ghostscript-gpl/${MY_PATCHSET}"
317 -fi
318 -
319 -LICENSE="AGPL-3 CPL-1.0"
320 -SLOT="0/$(ver_cut 1-2)"
321 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
322 -IUSE="cups dbus gtk +jpeg2k l10n_de static-libs unicode X"
323 -
324 -LANGS="ja ko zh-CN zh-TW"
325 -for X in ${LANGS} ; do
326 - IUSE="${IUSE} l10n_${X}"
327 -done
328 -
329 -DEPEND="
330 - app-text/libpaper
331 - media-libs/fontconfig
332 - >=media-libs/freetype-2.4.9:2=
333 - >=media-libs/jbig2dec-0.19:=
334 - >=media-libs/lcms-2.6:2
335 - >=media-libs/libpng-1.6.2:0=
336 - >=media-libs/tiff-4.0.1:0=
337 - >=sys-libs/zlib-1.2.7
338 - virtual/jpeg:0
339 - cups? ( >=net-print/cups-1.3.8 )
340 - dbus? ( sys-apps/dbus )
341 - gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) )
342 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2= )
343 - unicode? ( net-dns/libidn:0= )
344 - X? ( x11-libs/libXt x11-libs/libXext )
345 -"
346 -BDEPEND="virtual/pkgconfig"
347 -RDEPEND="${DEPEND}
348 - app-text/poppler-data
349 - >=media-fonts/urw-fonts-2.4.9
350 - l10n_ja? ( media-fonts/kochi-substitute )
351 - l10n_ko? ( media-fonts/baekmuk-fonts )
352 - l10n_zh-CN? ( media-fonts/arphicfonts )
353 - l10n_zh-TW? ( media-fonts/arphicfonts )
354 -"
355 -
356 -S="${WORKDIR}/${MY_P}"
357 -
358 -PATCHES=(
359 - "${FILESDIR}/${PN}-9.53.3-freetype-2.10.3.patch" # bug #747808
360 - "${FILESDIR}/${P}-fix-ps2epsi.patch"
361 -)
362 -
363 -src_prepare() {
364 - if [[ -n "${MY_PATCHSET}" ]] ; then
365 - # apply various patches, many borrowed from Fedora
366 - # https://src.fedoraproject.org/rpms/ghostscript
367 - # and Debian
368 - # https://salsa.debian.org/printing-team/ghostscript/tree/debian/master/debian/patches
369 - eapply "${WORKDIR}/patches/"*.patch
370 - fi
371 -
372 - default
373 -
374 - # remove internal copies of various libraries
375 - rm -r cups/libs || die
376 - rm -r freetype || die
377 - rm -r jbig2dec || die
378 - rm -r jpeg || die
379 - rm -r lcms2mt || die
380 - rm -r libpng || die
381 - rm -r tiff || die
382 - rm -r zlib || die
383 - rm -r openjpeg || die
384 - # remove internal CMaps (CMaps from poppler-data are used instead)
385 - rm -r Resource/CMap || die
386 -
387 - if ! use gtk ; then
388 - sed -e "s:\$(GSSOX)::" \
389 - -e "s:.*\$(GSSOX_XENAME)$::" \
390 - -i base/unix-dll.mak || die "sed failed"
391 - fi
392 -
393 - # Force the include dirs to a neutral location.
394 - sed -e "/^ZLIBDIR=/s:=.*:=${T}:" \
395 - -i configure.ac || die
396 - # Some files depend on zlib.h directly. Redirect them. #573248
397 - # Also make sure to not define OPJ_STATIC to avoid linker errors due to
398 - # hidden symbols (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203327#c1)
399 - sed -e '/^zlib_h/s:=.*:=:' \
400 - -e 's|-DOPJ_STATIC ||' \
401 - -i base/lib.mak || die
402 -
403 - # search path fix
404 - # put LDFLAGS after BINDIR, bug #383447
405 - sed -e "s:\$\(gsdatadir\)/lib:@datarootdir@/ghostscript/${PV}/$(get_libdir):" \
406 - -e "s:exdir=.*:exdir=@datarootdir@/doc/${PF}/examples:" \
407 - -e "s:docdir=.*:docdir=@datarootdir@/doc/${PF}/html:" \
408 - -e "s:GS_DOCDIR=.*:GS_DOCDIR=@datarootdir@/doc/${PF}/html:" \
409 - -e 's:-L$(BINDIR):& $(LDFLAGS):g' \
410 - -i Makefile.in base/*.mak || die "sed failed"
411 -
412 - # remove incorrect symlink, bug 590384
413 - rm ijs/ltmain.sh || die
414 - eautoreconf
415 -
416 - cd ijs || die
417 - eautoreconf
418 -}
419 -
420 -src_configure() {
421 - local FONTPATH
422 - for path in \
423 - "${EPREFIX}"/usr/share/fonts/urw-fonts \
424 - "${EPREFIX}"/usr/share/fonts/Type1 \
425 - "${EPREFIX}"/usr/share/fonts \
426 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-CNS1 \
427 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-GB1 \
428 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-Japan1 \
429 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-Japan2 \
430 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-Korea1
431 - do
432 - FONTPATH="$FONTPATH${FONTPATH:+:}${EPREFIX}$path"
433 - done
434 -
435 - PKGCONFIG=$(type -P $(tc-getPKG_CONFIG)) \
436 - econf \
437 - --enable-dynamic \
438 - --enable-freetype \
439 - --enable-fontconfig \
440 - $(use_enable jpeg2k openjpeg) \
441 - --disable-compile-inits \
442 - --with-drivers=ALL \
443 - --with-fontpath="$FONTPATH" \
444 - --with-ijs \
445 - --with-jbig2dec \
446 - --with-libpaper \
447 - --with-openprinting \
448 - --with-system-libtiff \
449 - --without-luratech \
450 - $(use_enable cups) \
451 - $(use_enable dbus) \
452 - $(use_enable gtk) \
453 - $(use_with cups pdftoraster) \
454 - $(use_with unicode libidn) \
455 - $(use_with X x) \
456 - DARWIN_LDFLAGS_SO_PREFIX="${EPREFIX}/usr/lib/"
457 -
458 - cd "${S}/ijs" || die
459 - econf \
460 - --enable-shared \
461 - $(use_enable static-libs static)
462 -}
463 -
464 -src_compile() {
465 - emake so all
466 -
467 - cd ijs || die
468 - emake
469 -}
470 -
471 -src_install() {
472 - emake DESTDIR="${D}" install-so install
473 -
474 - # move gsc to gs, bug #343447
475 - # gsc collides with gambit, bug #253064
476 - mv -f "${ED}"/usr/bin/{gsc,gs} || die
477 -
478 - cd "${S}/ijs" || die
479 - emake DESTDIR="${D}" install
480 -
481 - # install the CMaps from poppler-data properly, bug #409361
482 - dosym ../../../poppler/cMaps "/usr/share/ghostscript/${PV}/Resource/CMap"
483 -
484 - if ! use static-libs; then
485 - find "${ED}" -name '*.la' -delete || die
486 - fi
487 -
488 - if ! use l10n_de; then
489 - rm -r "${ED}"/usr/share/man/de || die
490 - fi
491 -}
492
493 diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.54.0.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.54.0.ebuild
494 deleted file mode 100644
495 index 6b35ee1d7bda..000000000000
496 --- a/app-text/ghostscript-gpl/ghostscript-gpl-9.54.0.ebuild
497 +++ /dev/null
498 @@ -1,189 +0,0 @@
499 -# Copyright 1999-2021 Gentoo Authors
500 -# Distributed under the terms of the GNU General Public License v2
501 -
502 -EAPI=7
503 -
504 -inherit autotools flag-o-matic toolchain-funcs
505 -
506 -DESCRIPTION="Interpreter for the PostScript language and PDF"
507 -HOMEPAGE="https://ghostscript.com/"
508 -
509 -MY_PN=${PN/-gpl}
510 -MY_P="${MY_PN}-${PV/_}"
511 -PVM=$(ver_cut 1-2)
512 -PVM_S=$(ver_rs 1-2 "")
513 -
514 -MY_PATCHSET="ghostscript-gpl-9.54-patchset-01.tar.xz"
515 -
516 -SRC_URI="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${PVM_S}/${MY_P}.tar.xz"
517 -
518 -if [[ -n "${MY_PATCHSET}" ]] ; then
519 - SRC_URI+=" https://dev.gentoo.org/~whissi/dist/ghostscript-gpl/${MY_PATCHSET}"
520 -fi
521 -
522 -LICENSE="AGPL-3 CPL-1.0"
523 -SLOT="0/$(ver_cut 1-2)"
524 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
525 -IUSE="cups dbus gtk +jpeg2k l10n_de static-libs unicode X"
526 -
527 -LANGS="ja ko zh-CN zh-TW"
528 -for X in ${LANGS} ; do
529 - IUSE="${IUSE} l10n_${X}"
530 -done
531 -
532 -DEPEND="
533 - app-text/libpaper
534 - media-libs/fontconfig
535 - >=media-libs/freetype-2.4.9:2=
536 - >=media-libs/jbig2dec-0.19:=
537 - >=media-libs/lcms-2.6:2
538 - >=media-libs/libpng-1.6.2:0=
539 - >=media-libs/tiff-4.0.1:0=
540 - >=sys-libs/zlib-1.2.7
541 - virtual/jpeg:0
542 - cups? ( >=net-print/cups-1.3.8 )
543 - dbus? ( sys-apps/dbus )
544 - gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) )
545 - jpeg2k? ( >=media-libs/openjpeg-2.1.0:2= )
546 - unicode? ( net-dns/libidn:0= )
547 - X? ( x11-libs/libXt x11-libs/libXext )
548 -"
549 -BDEPEND="virtual/pkgconfig"
550 -RDEPEND="${DEPEND}
551 - app-text/poppler-data
552 - >=media-fonts/urw-fonts-2.4.9
553 - l10n_ja? ( media-fonts/kochi-substitute )
554 - l10n_ko? ( media-fonts/baekmuk-fonts )
555 - l10n_zh-CN? ( media-fonts/arphicfonts )
556 - l10n_zh-TW? ( media-fonts/arphicfonts )
557 -"
558 -
559 -S="${WORKDIR}/${MY_P}"
560 -
561 -src_prepare() {
562 - if [[ -n "${MY_PATCHSET}" ]] ; then
563 - # apply various patches, many borrowed from Fedora
564 - # https://src.fedoraproject.org/rpms/ghostscript
565 - # and Debian
566 - # https://salsa.debian.org/printing-team/ghostscript/tree/debian/master/debian/patches
567 - eapply "${WORKDIR}/patches/"*.patch
568 - fi
569 -
570 - default
571 -
572 - # remove internal copies of various libraries
573 - rm -r cups/libs || die
574 - rm -r freetype || die
575 - rm -r jbig2dec || die
576 - rm -r jpeg || die
577 - rm -r lcms2mt || die
578 - rm -r libpng || die
579 - rm -r tiff || die
580 - rm -r zlib || die
581 - rm -r openjpeg || die
582 - # remove internal CMaps (CMaps from poppler-data are used instead)
583 - rm -r Resource/CMap || die
584 -
585 - if ! use gtk ; then
586 - sed -e "s:\$(GSSOX)::" \
587 - -e "s:.*\$(GSSOX_XENAME)$::" \
588 - -i base/unix-dll.mak || die "sed failed"
589 - fi
590 -
591 - # Force the include dirs to a neutral location.
592 - sed -e "/^ZLIBDIR=/s:=.*:=${T}:" \
593 - -i configure.ac || die
594 - # Some files depend on zlib.h directly. Redirect them. #573248
595 - # Also make sure to not define OPJ_STATIC to avoid linker errors due to
596 - # hidden symbols (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203327#c1)
597 - sed -e '/^zlib_h/s:=.*:=:' \
598 - -e 's|-DOPJ_STATIC ||' \
599 - -i base/lib.mak || die
600 -
601 - # search path fix
602 - # put LDFLAGS after BINDIR, bug #383447
603 - sed -e "s:\$\(gsdatadir\)/lib:@datarootdir@/ghostscript/${PV}/$(get_libdir):" \
604 - -e "s:exdir=.*:exdir=@datarootdir@/doc/${PF}/examples:" \
605 - -e "s:docdir=.*:docdir=@datarootdir@/doc/${PF}/html:" \
606 - -e "s:GS_DOCDIR=.*:GS_DOCDIR=@datarootdir@/doc/${PF}/html:" \
607 - -e 's:-L$(BINDIR):& $(LDFLAGS):g' \
608 - -i Makefile.in base/*.mak || die "sed failed"
609 -
610 - # remove incorrect symlink, bug 590384
611 - rm ijs/ltmain.sh || die
612 - eautoreconf
613 -
614 - cd ijs || die
615 - eautoreconf
616 -}
617 -
618 -src_configure() {
619 - local FONTPATH
620 - for path in \
621 - "${EPREFIX}"/usr/share/fonts/urw-fonts \
622 - "${EPREFIX}"/usr/share/fonts/Type1 \
623 - "${EPREFIX}"/usr/share/fonts \
624 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-CNS1 \
625 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-GB1 \
626 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-Japan1 \
627 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-Japan2 \
628 - "${EPREFIX}"/usr/share/poppler/cMap/Adobe-Korea1
629 - do
630 - FONTPATH="$FONTPATH${FONTPATH:+:}${EPREFIX}$path"
631 - done
632 -
633 - PKGCONFIG=$(type -P $(tc-getPKG_CONFIG)) \
634 - econf \
635 - --enable-dynamic \
636 - --enable-freetype \
637 - --enable-fontconfig \
638 - $(use_enable jpeg2k openjpeg) \
639 - --disable-compile-inits \
640 - --with-drivers=ALL \
641 - --with-fontpath="$FONTPATH" \
642 - --with-ijs \
643 - --with-jbig2dec \
644 - --with-libpaper \
645 - --with-system-libtiff \
646 - $(use_enable cups) \
647 - $(use_enable dbus) \
648 - $(use_enable gtk) \
649 - $(use_with cups pdftoraster) \
650 - $(use_with unicode libidn) \
651 - $(use_with X x) \
652 - DARWIN_LDFLAGS_SO_PREFIX="${EPREFIX}/usr/lib/"
653 -
654 - cd "${S}/ijs" || die
655 - econf \
656 - --enable-shared \
657 - $(use_enable static-libs static)
658 -}
659 -
660 -src_compile() {
661 - emake so all
662 -
663 - cd ijs || die
664 - emake
665 -}
666 -
667 -src_install() {
668 - emake DESTDIR="${D}" install-so install
669 -
670 - # move gsc to gs, bug #343447
671 - # gsc collides with gambit, bug #253064
672 - mv -f "${ED}"/usr/bin/{gsc,gs} || die
673 -
674 - cd "${S}/ijs" || die
675 - emake DESTDIR="${D}" install
676 -
677 - # install the CMaps from poppler-data properly, bug #409361
678 - dosym ../../../poppler/cMaps "/usr/share/ghostscript/${PV}/Resource/CMap"
679 -
680 - if ! use static-libs; then
681 - find "${ED}" -name '*.la' -delete || die
682 - fi
683 -
684 - if ! use l10n_de; then
685 - rm -r "${ED}"/usr/share/man/de || die
686 - fi
687 -}