Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/ghostscript-gpl/
Date: Sat, 28 Jan 2017 13:08:49
Message-Id: 1485608918.b241ca8c7c66663374a5729ed82927f0b169c5b8.dilfridge@gentoo
1 commit: b241ca8c7c66663374a5729ed82927f0b169c5b8
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 28 13:08:13 2017 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 28 13:08:38 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b241ca8c
7
8 app-text/ghostscript-gpl: Remove old
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 app-text/ghostscript-gpl/Manifest | 3 -
13 .../ghostscript-gpl/ghostscript-gpl-9.10-r2.ebuild | 220 -------------------
14 .../ghostscript-gpl/ghostscript-gpl-9.10-r4.ebuild | 220 -------------------
15 .../ghostscript-gpl/ghostscript-gpl-9.18.ebuild | 240 ---------------------
16 4 files changed, 683 deletions(-)
17
18 diff --git a/app-text/ghostscript-gpl/Manifest b/app-text/ghostscript-gpl/Manifest
19 index e2f79d7..e7cb3af 100644
20 --- a/app-text/ghostscript-gpl/Manifest
21 +++ b/app-text/ghostscript-gpl/Manifest
22 @@ -1,9 +1,6 @@
23 -DIST ghostscript-9.10.tar.bz2 30983380 SHA256 6c8d9d1b23bd8ffd238274e342a40ab21762b0aab6355083ca0db673267dd580 SHA512 59f380e52c84b69819ef7d321f323950c22306119cfa7b38809a23e83f9a3af1e35b5d66d9b9e9adef32131aa283a235deec346acced330d7ad7d1201fe7ca04 WHIRLPOOL e4471563d57882bc111f6a0d48a003ee56692f7ae94c53776be4a5f14fe0d43e2671bc04f8af04d65f3e73bd2e7d68961f9d77cbf644cdd327186ee3ed9ed4c2
24 DIST ghostscript-9.15.tar.bz2 28826065 SHA256 e65daf25059e2f3dabd3535df3d936a42ca4933d36473a03095e39adcdd5315c SHA512 5c800615bb813f827c218145eb3238773e01f0941efca51abf4233ac6fdb96154b362c65a9567dc6b22794cb2caff69a58eb436c7f9c8e5370a4a64087e50c7e WHIRLPOOL 9e434278560af8fcc92119309eaaf80d615571d971b06d6e26f40317224bd7af49f2115eda4c914ed9c0bd4755439c91929fa3884eca5beb968c73377eab5f28
25 -DIST ghostscript-9.18.tar.bz2 29460941 SHA256 83daf5bbbb5afbc32cab944a1afa7ceca046dbf0c3712cd5f2bd21a13e484da1 SHA512 1ea0911cbdd6861ddadf4d4ff3b0fa043885162a8a3ce730e3cec2402cc591c1c3abc31680c7444b7e5b59e56d0d567649ac7394dda94ab830fb197b4d277e1f WHIRLPOOL 203ac2628124700180fbb99ac7c91aeb894bc3badbce0f4dfe9397364ddbe0e480035783368ab06fbc65061f2f5aba1b417d7c7d98154c371ca05f8b7870aeae
26 DIST ghostscript-9.19.tar.bz2 29616270 SHA256 f67acdcfcde1f86757ff3553cd719f12eac2d7681a0e96d8bdd1f40a0f47b45b SHA512 d92d05c90ab4849ccca0d8aa0c583d41da3fe6089fd724a84f1fbddb3e65e116ee064ae0933b77019609332f765840146b62607e2f94dbfff90aa0597e1271ea WHIRLPOOL fff901a4c9e83a5adffd53a45a767e95eaf7eb407aa07009003bda59ddfcda5934dc070d7845e1a46addda97219e70fa1464d1de8e41d2070288938d91515f20
27 DIST ghostscript-9.20.tar.xz 26387028 SHA256 3c0f3dc5df6f784850fa4ce7dcc3d6c56ef543af1fbaedd1d9f8d9f8b66de0ab SHA512 3e636f9746303f0d0fbcdfed22e8da4cc2cfd87c2afde38ffef67acb6a9fc2416aaca691d64355294e70f699bcf4acf33b09d3493dc24bc3c368387f066357fd WHIRLPOOL 0c58d8a860093ae856339839aa5012f5e47d87891fc16890cf7730979cb6506c1b686a6c1ca5dfbdcaafc614d989fec09b665d9eacc784f0dc31bca50d341f7f
28 -DIST ghostscript-gpl-9.10-patchset-1.tar.bz2 5099 SHA256 f5b515295db2ad70a196ff2aee382d1a01c471ba64671f5b05f504f1109c97c1 SHA512 ae984dae5c426c488480c7c3f0e2eaf473c521c47b968ee91880264f5dbf1df8d992398bbf4dfdc82763953a9ad681c098da3561b203e596ed1ac0edc35d84da WHIRLPOOL c3b353f6f102dd79e229a92770720e50729228baaea950a2b5364541631958616b2d3d55c584875efd75f6c31a5b787bdba87ce452779ec9040966e6019a463d
29 DIST ghostscript-gpl-9.12-patchset-1.tar.bz2 4940 SHA256 5c0e99a192a6d0e142c4c5f38a2d80ceeeb4a8e2265264d31360b06f3d94e0b5 SHA512 e3daf758c75ecb6a38dbece91b0f44ae06985920080b376384a9b3ad2ad35295530c144832158af2933d5fc49782c1fc6733efc60106193499c615a502f5e656 WHIRLPOOL e9436e1681e95a4b578a9de577d9b487ad119893c141baf840cd5dae0b89f5eedbde6d2f1225fb97c425a6dc3f3fb7f1ea6a02ab02b799438c3002fb933575c6
30 DIST ghostscript-gpl-9.20-patchset-1.tar.xz 3048 SHA256 c61152a457d00418bea5586094b26a496f891e7150d6a1e3fe041e0d34301530 SHA512 b8b0a39d715f2c054d71710c870514af5a9494017ae35393e3c4323357d72411630de0c6ac50ea4a84a9e4537455e21742c6317b3354d5db1769fe5d39392f35 WHIRLPOOL 0ad329ff8262cc5719bc31f995381d15777a7b293573dc50ce75274a2a6809819ffe5cf4fba679333d981c136bc4f01055de797d6bfa917a7fb4708c8ebeda61
31 DIST gsdjvu-1.6.tar.gz 207122 SHA256 6236b14b79345eda87cce9ba22387e166e7614cca2ca86b1c6f0d611c26005df SHA512 57f3866f1f863fa31f066b45ee679cfbdf2c6a9bec922f24fa9f50dd3ea52f192b4c9889b0c9657e96ca9e3528d3fea7dcc53b4d1ea87dd49d138ce9c9684884 WHIRLPOOL 66e5222412d9da2d616ba0a3f73548d031b3e6726eff7bc60bea703b02ce4d22e100adad1faf3fabaac379b4ef8324324eabb8b5320f74ebafe929b577dd6c8d
32
33 diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.10-r2.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.10-r2.ebuild
34 deleted file mode 100644
35 index 695e9ac..00000000
36 --- a/app-text/ghostscript-gpl/ghostscript-gpl-9.10-r2.ebuild
37 +++ /dev/null
38 @@ -1,220 +0,0 @@
39 -# Copyright 1999-2016 Gentoo Foundation
40 -# Distributed under the terms of the GNU General Public License v2
41 -# $Id$
42 -
43 -EAPI=5
44 -
45 -inherit autotools eutils multilib versionator flag-o-matic
46 -
47 -DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF"
48 -HOMEPAGE="http://ghostscript.com/"
49 -
50 -MY_P=${P/-gpl}
51 -GSDJVU_PV=1.6
52 -PVM=$(get_version_component_range 1-2)
53 -SRC_URI="
54 - mirror://sourceforge/ghostscript/${MY_P}.tar.bz2
55 - mirror://gentoo/${PN}-9.10-patchset-1.tar.bz2
56 - djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz )"
57 -
58 -LICENSE="AGPL-3 CPL-1.0"
59 -SLOT="0"
60 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
61 -IUSE="cups dbus djvu gtk idn l10n_de static-libs X"
62 -RESTRICT="djvu? ( bindist )"
63 -
64 -COMMON_DEPEND="
65 - app-text/libpaper
66 - media-libs/fontconfig
67 - >=media-libs/freetype-2.4.9:2=
68 - media-libs/jbig2dec
69 - >=media-libs/lcms-2.5:2
70 - >=media-libs/libpng-1.6.2:0=
71 - >=media-libs/tiff-4.0.1:0=
72 - >=sys-libs/zlib-1.2.7:=
73 - virtual/jpeg:0
74 - cups? ( >=net-print/cups-1.3.8 )
75 - dbus? ( sys-apps/dbus )
76 - djvu? ( app-text/djvu )
77 - gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) )
78 - idn? ( net-dns/libidn )
79 - X? ( x11-libs/libXt x11-libs/libXext )
80 -"
81 -
82 -DEPEND="${COMMON_DEPEND}
83 - virtual/pkgconfig
84 -"
85 -
86 -RDEPEND="${COMMON_DEPEND}
87 - >=app-text/poppler-data-0.4.5-r1
88 - >=media-fonts/urw-fonts-2.4.9
89 - l10n_ja? ( media-fonts/kochi-substitute )
90 - l10n_ko? ( media-fonts/baekmuk-fonts )
91 - l10n_zh-CN? ( media-fonts/arphicfonts )
92 - l10n_zh-TW? ( media-fonts/arphicfonts )
93 - !!media-fonts/gnu-gs-fonts-std
94 - !!media-fonts/gnu-gs-fonts-other
95 - !<net-print/cups-filters-1.0.36-r2
96 -"
97 -
98 -S="${WORKDIR}/${MY_P}"
99 -
100 -LANGS="ja ko zh-CN zh-TW"
101 -for X in ${LANGS} ; do
102 - IUSE="${IUSE} l10n_${X}"
103 -done
104 -
105 -pkg_setup() {
106 - if use djvu; then
107 - ewarn "With USE=\"djvu\", distribution of binaries is restricted!"
108 - ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues."
109 - fi
110 -}
111 -
112 -src_prepare() {
113 - # remove internal copies of various libraries
114 - rm -rf "${S}"/cups/libs
115 - rm -rf "${S}"/expat
116 - rm -rf "${S}"/freetype
117 - rm -rf "${S}"/jbig2dec
118 - rm -rf "${S}"/jpeg{,xr}
119 - rm -rf "${S}"/lcms{,2}
120 - rm -rf "${S}"/libpng
121 - rm -rf "${S}"/tiff
122 - rm -rf "${S}"/zlib
123 - # remove internal urw-fonts
124 - rm -rf "${S}"/Resource/Font
125 - # remove internal CMaps (CMaps from poppler-data are used instead)
126 - rm -rf "${S}"/Resource/CMap
127 -
128 - # apply various patches, many borrowed from Fedora
129 - # http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git
130 - EPATCH_SUFFIX="patch" EPATCH_FORCE="yes"
131 - EPATCH_SOURCE="${WORKDIR}/patches/"
132 - epatch
133 -
134 - if use djvu ; then
135 - unpack gsdjvu-${GSDJVU_PV}.tar.gz
136 - cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}"
137 - cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}"/base
138 - epatch "${WORKDIR}"/patches-gsdjvu/gsdjvu-1.3-${PN}-8.64.patch
139 - cp "${S}"/contrib/contrib.mak "${S}"/base/contrib.mak.gsdjvu
140 - grep -q djvusep "${S}"/contrib/contrib.mak || \
141 - cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}"/contrib/contrib.mak
142 -
143 - # install ps2utf8.ps, bug #197818
144 - cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}"/lib
145 - sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' \
146 - "${S}"/base/unixinst.mak || die "sed failed"
147 - fi
148 -
149 - if ! use gtk ; then
150 - sed -i -e "s:\$(GSSOX)::" \
151 - -e "s:.*\$(GSSOX_XENAME)$::" \
152 - "${S}"/base/unix-dll.mak || die "sed failed"
153 - fi
154 -
155 - # search path fix
156 - sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \
157 - -e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \
158 - -e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \
159 - -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \
160 - -e 's:-L$(BINDIR):$(LDFLAGS) &:g' \
161 - "${S}"/Makefile.in "${S}"/base/*.mak || die "sed failed"
162 -
163 - cd "${S}"
164 - eautoreconf
165 -
166 - cd "${S}/ijs"
167 - eautoreconf
168 -}
169 -
170 -src_configure() {
171 - local FONTPATH
172 - for path in \
173 - /usr/share/fonts/urw-fonts \
174 - /usr/share/fonts/Type1 \
175 - /usr/share/fonts \
176 - /usr/share/poppler/cMap/Adobe-CNS1 \
177 - /usr/share/poppler/cMap/Adobe-GB1 \
178 - /usr/share/poppler/cMap/Adobe-Japan1 \
179 - /usr/share/poppler/cMap/Adobe-Japan2 \
180 - /usr/share/poppler/cMap/Adobe-Korea1
181 - do
182 - FONTPATH="$FONTPATH${FONTPATH:+:}$path"
183 - done
184 -
185 - econf \
186 - --enable-dynamic \
187 - --enable-freetype \
188 - --enable-fontconfig \
189 - --enable-openjpeg \
190 - --disable-compile-inits \
191 - --with-drivers=ALL \
192 - --with-fontpath="$FONTPATH" \
193 - --with-ijs \
194 - --with-jbig2dec \
195 - --with-libpaper \
196 - --with-system-libtiff \
197 - --without-lcms \
198 - --without-luratech \
199 - $(use_enable cups) \
200 - $(use_enable dbus) \
201 - $(use_enable gtk) \
202 - $(use_with cups pdftoraster) \
203 - $(use_with idn libidn) \
204 - $(use_with X x)
205 -
206 - if use djvu ; then
207 - sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' \
208 - "${S}"/Makefile || die "sed failed"
209 - fi
210 -
211 - cd "${S}/ijs"
212 - econf \
213 - --enable-shared \
214 - $(use_enable static-libs static)
215 -}
216 -
217 -src_compile() {
218 - # workaround: -j1 -> see bug #234378
219 - emake -j1 so all
220 -
221 - cd "${S}/ijs"
222 - emake
223 -}
224 -
225 -src_install() {
226 - # workaround: -j1 -> see bug #356303
227 - emake -j1 DESTDIR="${D}" install-so install
228 -
229 - if use djvu ; then
230 - dobin gsdjvu
231 - fi
232 -
233 - # remove gsc in favor of gambit, bug #253064
234 - rm -rf "${D}/usr/bin/gsc"
235 -
236 - cd "${S}/ijs"
237 - emake DESTDIR="${D}" install
238 -
239 - # rename the original cidfmap to cidfmap.GS
240 - mv "${D}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die
241 -
242 - # install our own cidfmap to handle CJK fonts
243 - insinto "/usr/share/ghostscript/${PVM}/Resource/Init"
244 - doins "${WORKDIR}/fontmaps/CIDFnmap"
245 - doins "${WORKDIR}/fontmaps/cidfmap"
246 - for X in ${LANGS} ; do
247 - if use l10n_${X} ; then
248 - doins "${WORKDIR}/fontmaps/cidfmap.${X/-/_}"
249 - fi
250 - done
251 -
252 - # install the CMaps from poppler-data properly, bug 409361
253 - dosym /usr/share/poppler/cMaps /usr/share/ghostscript/${PVM}/Resource/CMap
254 -
255 - use static-libs || find "${D}" -name '*.la' -delete
256 -
257 - use l10n_de || rm -r "${D}"/usr/share/man/de
258 -}
259
260 diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.10-r4.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.10-r4.ebuild
261 deleted file mode 100644
262 index 14580db..00000000
263 --- a/app-text/ghostscript-gpl/ghostscript-gpl-9.10-r4.ebuild
264 +++ /dev/null
265 @@ -1,220 +0,0 @@
266 -# Copyright 1999-2016 Gentoo Foundation
267 -# Distributed under the terms of the GNU General Public License v2
268 -# $Id$
269 -
270 -EAPI=5
271 -
272 -inherit autotools eutils multilib versionator flag-o-matic
273 -
274 -DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF"
275 -HOMEPAGE="http://ghostscript.com/"
276 -
277 -MY_P=${P/-gpl}
278 -GSDJVU_PV=1.6
279 -PVM=$(get_version_component_range 1-2)
280 -SRC_URI="
281 - mirror://sourceforge/ghostscript/${MY_P}.tar.bz2
282 - mirror://gentoo/${PN}-9.10-patchset-1.tar.bz2
283 - djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz )"
284 -
285 -LICENSE="AGPL-3 CPL-1.0"
286 -SLOT="0"
287 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
288 -IUSE="cups dbus djvu gtk idn l10n_de static-libs X"
289 -RESTRICT="djvu? ( bindist )"
290 -
291 -COMMON_DEPEND="
292 - app-text/libpaper
293 - media-libs/fontconfig
294 - >=media-libs/freetype-2.4.9:2=
295 - media-libs/jbig2dec
296 - >=media-libs/lcms-2.5:2
297 - >=media-libs/libpng-1.6.2:0=
298 - >=media-libs/tiff-4.0.1:0=
299 - >=sys-libs/zlib-1.2.7:=
300 - virtual/jpeg:0
301 - cups? ( >=net-print/cups-1.3.8 )
302 - dbus? ( sys-apps/dbus )
303 - djvu? ( app-text/djvu )
304 - gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) )
305 - idn? ( net-dns/libidn )
306 - X? ( x11-libs/libXt x11-libs/libXext )
307 -"
308 -
309 -DEPEND="${COMMON_DEPEND}
310 - virtual/pkgconfig
311 -"
312 -
313 -RDEPEND="${COMMON_DEPEND}
314 - >=app-text/poppler-data-0.4.5-r1
315 - >=media-fonts/urw-fonts-2.4.9
316 - l10n_ja? ( media-fonts/kochi-substitute )
317 - l10n_ko? ( media-fonts/baekmuk-fonts )
318 - l10n_zh-CN? ( media-fonts/arphicfonts )
319 - l10n_zh-TW? ( media-fonts/arphicfonts )
320 - !!media-fonts/gnu-gs-fonts-std
321 - !!media-fonts/gnu-gs-fonts-other
322 - !<net-print/cups-filters-1.0.36-r2
323 -"
324 -
325 -S="${WORKDIR}/${MY_P}"
326 -
327 -LANGS="ja ko zh-CN zh-TW"
328 -for X in ${LANGS} ; do
329 - IUSE="${IUSE} l10n_${X}"
330 -done
331 -
332 -pkg_setup() {
333 - if use djvu; then
334 - ewarn "With USE=\"djvu\", distribution of binaries is restricted!"
335 - ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues."
336 - fi
337 -}
338 -
339 -src_prepare() {
340 - # remove internal copies of various libraries
341 - rm -rf "${S}"/cups/libs
342 - rm -rf "${S}"/expat
343 - rm -rf "${S}"/freetype
344 - rm -rf "${S}"/jbig2dec
345 - rm -rf "${S}"/jpeg{,xr}
346 - rm -rf "${S}"/lcms{,2}
347 - rm -rf "${S}"/libpng
348 - rm -rf "${S}"/tiff
349 - rm -rf "${S}"/zlib
350 - # remove internal CMaps (CMaps from poppler-data are used instead)
351 - rm -rf "${S}"/Resource/CMap
352 -
353 - # apply various patches, many borrowed from Fedora
354 - # http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git
355 - EPATCH_SUFFIX="patch" EPATCH_FORCE="yes"
356 - EPATCH_SOURCE="${WORKDIR}/patches/"
357 - epatch
358 -
359 - if use djvu ; then
360 - unpack gsdjvu-${GSDJVU_PV}.tar.gz
361 - cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}"
362 - cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}"/base
363 - epatch "${WORKDIR}"/patches-gsdjvu/gsdjvu-1.3-${PN}-8.64.patch
364 - cp "${S}"/contrib/contrib.mak "${S}"/base/contrib.mak.gsdjvu
365 - grep -q djvusep "${S}"/contrib/contrib.mak || \
366 - cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}"/contrib/contrib.mak
367 -
368 - # install ps2utf8.ps, bug #197818
369 - cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}"/lib
370 - sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' \
371 - "${S}"/base/unixinst.mak || die "sed failed"
372 - fi
373 -
374 - if ! use gtk ; then
375 - sed -i -e "s:\$(GSSOX)::" \
376 - -e "s:.*\$(GSSOX_XENAME)$::" \
377 - "${S}"/base/unix-dll.mak || die "sed failed"
378 - fi
379 -
380 - # search path fix
381 - # put LDFLAGS after BINDIR, bug #383447
382 - sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \
383 - -e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \
384 - -e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \
385 - -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \
386 - -e 's:-L$(BINDIR):& $(LDFLAGS):g' \
387 - "${S}"/Makefile.in "${S}"/base/*.mak || die "sed failed"
388 -
389 - cd "${S}"
390 - eautoreconf
391 -
392 - cd "${S}/ijs"
393 - eautoreconf
394 -}
395 -
396 -src_configure() {
397 - local FONTPATH
398 - for path in \
399 - /usr/share/fonts/urw-fonts \
400 - /usr/share/fonts/Type1 \
401 - /usr/share/fonts \
402 - /usr/share/poppler/cMap/Adobe-CNS1 \
403 - /usr/share/poppler/cMap/Adobe-GB1 \
404 - /usr/share/poppler/cMap/Adobe-Japan1 \
405 - /usr/share/poppler/cMap/Adobe-Japan2 \
406 - /usr/share/poppler/cMap/Adobe-Korea1
407 - do
408 - FONTPATH="$FONTPATH${FONTPATH:+:}$path"
409 - done
410 -
411 - econf \
412 - --enable-dynamic \
413 - --enable-freetype \
414 - --enable-fontconfig \
415 - --enable-openjpeg \
416 - --disable-compile-inits \
417 - --with-drivers=ALL \
418 - --with-fontpath="$FONTPATH" \
419 - --with-ijs \
420 - --with-jbig2dec \
421 - --with-libpaper \
422 - --with-system-libtiff \
423 - --without-lcms \
424 - --without-luratech \
425 - $(use_enable cups) \
426 - $(use_enable dbus) \
427 - $(use_enable gtk) \
428 - $(use_with cups pdftoraster) \
429 - $(use_with idn libidn) \
430 - $(use_with X x)
431 -
432 - if use djvu ; then
433 - sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' \
434 - "${S}"/Makefile || die "sed failed"
435 - fi
436 -
437 - cd "${S}/ijs"
438 - econf \
439 - --enable-shared \
440 - $(use_enable static-libs static)
441 -}
442 -
443 -src_compile() {
444 - # workaround: -j1 -> see bug #234378
445 - emake -j1 so all
446 -
447 - cd "${S}/ijs"
448 - emake
449 -}
450 -
451 -src_install() {
452 - # workaround: -j1 -> see bug #356303
453 - emake -j1 DESTDIR="${D}" install-so install
454 -
455 - if use djvu ; then
456 - dobin gsdjvu
457 - fi
458 -
459 - # move gsc to gs, bug #343447
460 - # gsc collides with gambit, bug #253064
461 - mv -f "${D}/usr/bin/gsc" "${D}/usr/bin/gs" || die
462 -
463 - cd "${S}/ijs"
464 - emake DESTDIR="${D}" install
465 -
466 - # rename the original cidfmap to cidfmap.GS
467 - mv "${D}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die
468 -
469 - # install our own cidfmap to handle CJK fonts
470 - insinto "/usr/share/ghostscript/${PVM}/Resource/Init"
471 - doins "${WORKDIR}/fontmaps/CIDFnmap"
472 - doins "${WORKDIR}/fontmaps/cidfmap"
473 - for X in ${LANGS} ; do
474 - if use l10n_${X} ; then
475 - doins "${WORKDIR}/fontmaps/cidfmap.${X/-/_}"
476 - fi
477 - done
478 -
479 - # install the CMaps from poppler-data properly, bug #409361
480 - dosym /usr/share/poppler/cMaps /usr/share/ghostscript/${PVM}/Resource/CMap
481 -
482 - use static-libs || find "${D}" -name '*.la' -delete
483 -
484 - use l10n_de || rm -r "${D}"/usr/share/man/de
485 -}
486
487 diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.18.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.18.ebuild
488 deleted file mode 100644
489 index 909e82b..00000000
490 --- a/app-text/ghostscript-gpl/ghostscript-gpl-9.18.ebuild
491 +++ /dev/null
492 @@ -1,240 +0,0 @@
493 -# Copyright 1999-2016 Gentoo Foundation
494 -# Distributed under the terms of the GNU General Public License v2
495 -# $Id$
496 -
497 -EAPI=5
498 -
499 -inherit autotools eutils multilib versionator flag-o-matic toolchain-funcs
500 -
501 -DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF"
502 -HOMEPAGE="http://ghostscript.com/"
503 -
504 -MY_P=${P/-gpl}
505 -GSDJVU_PV=1.6
506 -PVM=$(get_version_component_range 1-2)
507 -SRC_URI="
508 - http://downloads.ghostscript.com/public/${MY_P}.tar.bz2
509 - mirror://gentoo/${PN}-9.12-patchset-1.tar.bz2
510 - djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz )"
511 -
512 -LICENSE="AGPL-3 CPL-1.0"
513 -SLOT="0"
514 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
515 -IUSE="cups dbus djvu gtk idn l10n_de static-libs tiff X"
516 -RESTRICT="djvu? ( bindist )"
517 -
518 -COMMON_DEPEND="
519 - app-text/libpaper
520 - media-libs/fontconfig
521 - >=media-libs/freetype-2.4.9:2=
522 - media-libs/jbig2dec
523 - >=media-libs/lcms-2.6:2
524 - >=media-libs/libpng-1.6.2:0=
525 - >=sys-libs/zlib-1.2.7:=
526 - virtual/jpeg:0
527 - cups? ( >=net-print/cups-1.3.8 )
528 - dbus? ( sys-apps/dbus )
529 - djvu? ( app-text/djvu )
530 - gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) )
531 - idn? ( net-dns/libidn )
532 - tiff? ( >=media-libs/tiff-4.0.1:0= )
533 - X? ( x11-libs/libXt x11-libs/libXext )
534 -"
535 -
536 -DEPEND="${COMMON_DEPEND}
537 - virtual/pkgconfig
538 -"
539 -
540 -RDEPEND="${COMMON_DEPEND}
541 - >=app-text/poppler-data-0.4.5-r1
542 - >=media-fonts/urw-fonts-2.4.9
543 - l10n_ja? ( media-fonts/kochi-substitute )
544 - l10n_ko? ( media-fonts/baekmuk-fonts )
545 - l10n_zh-CN? ( media-fonts/arphicfonts )
546 - l10n_zh-TW? ( media-fonts/arphicfonts )
547 - !!media-fonts/gnu-gs-fonts-std
548 - !!media-fonts/gnu-gs-fonts-other
549 - !<net-print/cups-filters-1.0.36-r2
550 -"
551 -
552 -S="${WORKDIR}/${MY_P}"
553 -
554 -LANGS="ja ko zh-CN zh-TW"
555 -for X in ${LANGS} ; do
556 - IUSE="${IUSE} l10n_${X}"
557 -done
558 -
559 -pkg_setup() {
560 - if use djvu; then
561 - ewarn "With USE=\"djvu\", distribution of binaries is restricted!"
562 - ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues."
563 - fi
564 -}
565 -
566 -src_prepare() {
567 - # remove internal copies of various libraries
568 - rm -rf "${S}"/cups/libs || die
569 - rm -rf "${S}"/expat || die
570 - rm -rf "${S}"/freetype || die
571 - rm -rf "${S}"/jbig2dec || die
572 - rm -rf "${S}"/jpeg{,xr} || die
573 - rm -rf "${S}"/lcms{,2} || die
574 - rm -rf "${S}"/libpng || die
575 - rm -rf "${S}"/tiff || die
576 - rm -rf "${S}"/zlib || die
577 - # remove internal CMaps (CMaps from poppler-data are used instead)
578 - rm -rf "${S}"/Resource/CMap || die
579 -
580 - # apply various patches, many borrowed from Fedora
581 - # http://pkgs.fedoraproject.org/cgit/ghostscript.git
582 - EPATCH_SUFFIX="patch" EPATCH_FORCE="yes"
583 - EPATCH_SOURCE="${WORKDIR}/patches/"
584 - EPATCH_EXCLUDE="
585 - ghostscript-gpl-8.64-noopt.patch
586 - ghostscript-gpl-9.07-wrf-snprintf.patch
587 - ghostscript-gpl-9.12-icc-missing-check.patch
588 - ghostscript-gpl-9.12-sys-zlib.patch
589 - "
590 - epatch
591 -
592 - epatch "${FILESDIR}"/${P}-gserrors.h-backport.patch
593 -
594 - if use djvu ; then
595 - unpack gsdjvu-${GSDJVU_PV}.tar.gz
596 - cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" || die
597 - cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}"/base || die
598 - epatch "${WORKDIR}"/patches-gsdjvu/gsdjvu-1.3-${PN}-8.64.patch
599 - cp "${S}"/contrib/contrib.mak "${S}"/base/contrib.mak.gsdjvu || die
600 - grep -q djvusep "${S}"/contrib/contrib.mak || \
601 - cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}"/contrib/contrib.mak || die
602 -
603 - # install ps2utf8.ps, bug #197818
604 - cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}"/lib || die
605 - sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' \
606 - "${S}"/base/unixinst.mak || die "sed failed"
607 - fi
608 -
609 - if ! use gtk ; then
610 - sed -i -e "s:\$(GSSOX)::" \
611 - -e "s:.*\$(GSSOX_XENAME)$::" \
612 - "${S}"/base/unix-dll.mak || die "sed failed"
613 - fi
614 -
615 - # Force the include dirs to a neutral location.
616 - sed -i \
617 - -e "/^ZLIBDIR=/s:=.*:=${T}:" \
618 - configure.ac || die
619 - # Some files depend on zlib.h directly. Redirect them. #573248
620 - sed -i \
621 - -e '/^zlib_h/s:=.*:=:' \
622 - base/lib.mak || die
623 -
624 - # search path fix
625 - # put LDFLAGS after BINDIR, bug #383447
626 - sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \
627 - -e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \
628 - -e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \
629 - -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \
630 - -e 's:-L$(BINDIR):& $(LDFLAGS):g' \
631 - "${S}"/Makefile.in "${S}"/base/*.mak || die "sed failed"
632 -
633 - cd "${S}" || die
634 - eautoreconf
635 -
636 - cd "${S}/ijs" || die
637 - eautoreconf
638 -}
639 -
640 -src_configure() {
641 - local FONTPATH
642 - for path in \
643 - /usr/share/fonts/urw-fonts \
644 - /usr/share/fonts/Type1 \
645 - /usr/share/fonts \
646 - /usr/share/poppler/cMap/Adobe-CNS1 \
647 - /usr/share/poppler/cMap/Adobe-GB1 \
648 - /usr/share/poppler/cMap/Adobe-Japan1 \
649 - /usr/share/poppler/cMap/Adobe-Japan2 \
650 - /usr/share/poppler/cMap/Adobe-Korea1
651 - do
652 - FONTPATH="$FONTPATH${FONTPATH:+:}$path"
653 - done
654 -
655 - # We force the endian configure flags until this is fixed:
656 - # http://bugs.ghostscript.com/show_bug.cgi?id=696498
657 - PKGCONFIG=$(type -P $(tc-getPKG_CONFIG)) \
658 - econf \
659 - --enable-dynamic \
660 - --enable-freetype \
661 - --enable-fontconfig \
662 - --enable-openjpeg \
663 - --enable-$(tc-endian)-endian \
664 - --disable-compile-inits \
665 - --with-drivers=ALL \
666 - --with-fontpath="$FONTPATH" \
667 - --with-ijs \
668 - --with-jbig2dec \
669 - --with-libpaper \
670 - --without-luratech \
671 - $(use_enable cups) \
672 - $(use_enable dbus) \
673 - $(use_enable gtk) \
674 - $(use_with cups pdftoraster) \
675 - $(use_with idn libidn) \
676 - $(use_with tiff system-libtiff) \
677 - $(use_with X x)
678 -
679 - if use djvu ; then
680 - sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' \
681 - "${S}"/Makefile || die "sed failed"
682 - fi
683 -
684 - cd "${S}/ijs" || die
685 - econf \
686 - --enable-shared \
687 - $(use_enable static-libs static)
688 -}
689 -
690 -src_compile() {
691 - # -j1 needed because of bug #550926
692 - emake -j1 so all
693 -
694 - cd "${S}/ijs" || die
695 - emake
696 -}
697 -
698 -src_install() {
699 - emake -j1 DESTDIR="${D}" install-so install
700 -
701 - use djvu && dobin gsdjvu
702 -
703 - # move gsc to gs, bug #343447
704 - # gsc collides with gambit, bug #253064
705 - mv -f "${ED}"/usr/bin/{gsc,gs} || die
706 -
707 - cd "${S}/ijs" || die
708 - emake -j1 DESTDIR="${D}" install
709 -
710 - # rename the original cidfmap to cidfmap.GS
711 - mv "${ED}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die
712 -
713 - # install our own cidfmap to handle CJK fonts
714 - insinto /usr/share/ghostscript/${PVM}/Resource/Init
715 - doins \
716 - "${WORKDIR}/fontmaps/CIDFnmap" \
717 - "${WORKDIR}/fontmaps/cidfmap"
718 - for X in ${LANGS} ; do
719 - if use l10n_${X} ; then
720 - doins "${WORKDIR}/fontmaps/cidfmap.${X/-/_}"
721 - fi
722 - done
723 -
724 - # install the CMaps from poppler-data properly, bug #409361
725 - dosym /usr/share/poppler/cMaps /usr/share/ghostscript/${PVM}/Resource/CMap
726 -
727 - use static-libs || prune_libtool_files --all
728 -
729 - if ! use l10n_de; then
730 - rm -r "${ED}"/usr/share/man/de || die
731 - fi
732 -}