Gentoo Archives: gentoo-commits

From: "Timo Gurr (tgurr)" <tgurr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/ghostscript-gpl: ChangeLog ghostscript-gpl-9.14.ebuild ghostscript-gpl-9.10.ebuild ghostscript-gpl-9.07.ebuild ghostscript-gpl-9.04-r4.ebuild ghostscript-gpl-9.05-r1.ebuild ghostscript-gpl-9.05-r2.ebuild ghostscript-gpl-9.06.ebuild
Date: Wed, 26 Mar 2014 17:31:56
Message-Id: 20140326173152.87CE62004E@flycatcher.gentoo.org
1 tgurr 14/03/26 17:31:52
2
3 Modified: ChangeLog
4 Added: ghostscript-gpl-9.14.ebuild
5 Removed: ghostscript-gpl-9.10.ebuild
6 ghostscript-gpl-9.07.ebuild
7 ghostscript-gpl-9.04-r4.ebuild
8 ghostscript-gpl-9.05-r1.ebuild
9 ghostscript-gpl-9.05-r2.ebuild
10 ghostscript-gpl-9.06.ebuild
11 Log:
12 Version bump. Remove old and vulnerable versions. Upstream doesn't mirror new versions on sourceforge anymore.
13
14 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 5270BA51)
15
16 Revision Changes Path
17 1.173 app-text/ghostscript-gpl/ChangeLog
18
19 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.173&view=markup
20 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.173&content-type=text/plain
21 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?r1=1.172&r2=1.173
22
23 Index: ChangeLog
24 ===================================================================
25 RCS file: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v
26 retrieving revision 1.172
27 retrieving revision 1.173
28 diff -u -r1.172 -r1.173
29 --- ChangeLog 20 Feb 2014 14:21:06 -0000 1.172
30 +++ ChangeLog 26 Mar 2014 17:31:52 -0000 1.173
31 @@ -1,6 +1,15 @@
32 # ChangeLog for app-text/ghostscript-gpl
33 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
34 -# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.172 2014/02/20 14:21:06 ago Exp $
35 +# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.173 2014/03/26 17:31:52 tgurr Exp $
36 +
37 +*ghostscript-gpl-9.14 (26 Mar 2014)
38 +
39 + 26 Mar 2014; Timo Gurr <tgurr@g.o> -ghostscript-gpl-9.04-r4.ebuild,
40 + -ghostscript-gpl-9.05-r1.ebuild, -ghostscript-gpl-9.05-r2.ebuild,
41 + -ghostscript-gpl-9.06.ebuild, -ghostscript-gpl-9.07.ebuild,
42 + -ghostscript-gpl-9.10.ebuild, +ghostscript-gpl-9.14.ebuild:
43 + Version bump. Remove old and vulnerable versions. Upstream doesn't mirror new
44 + versions on sourceforge anymore.
45
46 20 Feb 2014; Agostino Sarubbo <ago@g.o> ghostscript-gpl-9.10-r2.ebuild:
47 Stable for sparc, wrt bug #437654
48
49
50
51 1.1 app-text/ghostscript-gpl/ghostscript-gpl-9.14.ebuild
52
53 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.14.ebuild?rev=1.1&view=markup
54 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.14.ebuild?rev=1.1&content-type=text/plain
55
56 Index: ghostscript-gpl-9.14.ebuild
57 ===================================================================
58 # Copyright 1999-2014 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 # $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.14.ebuild,v 1.1 2014/03/26 17:31:52 tgurr Exp $
61
62 EAPI=5
63
64 inherit autotools eutils multilib versionator flag-o-matic
65
66 DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF"
67 HOMEPAGE="http://ghostscript.com/"
68
69 MY_P=${P/-gpl}
70 GSDJVU_PV=1.6
71 PVM=$(get_version_component_range 1-2)
72 SRC_URI="
73 http://downloads.ghostscript.com/public/${MY_P}.tar.bz2
74 mirror://gentoo/${PN}-9.12-patchset-1.tar.bz2
75 !bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) )"
76
77 LICENSE="AGPL-3 CPL-1.0"
78 SLOT="0"
79 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
80 IUSE="bindist cups dbus djvu gtk idn linguas_de static-libs X"
81
82 COMMON_DEPEND="
83 app-text/libpaper
84 media-libs/fontconfig
85 >=media-libs/freetype-2.4.9:2=
86 media-libs/jbig2dec
87 >=media-libs/lcms-2.5:2
88 >=media-libs/libpng-1.6.2:0=
89 >=media-libs/tiff-4.0.1:0=
90 >=sys-libs/zlib-1.2.7:=
91 virtual/jpeg:0
92 !bindist? ( djvu? ( app-text/djvu ) )
93 cups? ( >=net-print/cups-1.3.8 )
94 dbus? ( sys-apps/dbus )
95 gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) )
96 idn? ( net-dns/libidn )
97 X? ( x11-libs/libXt x11-libs/libXext )
98 "
99
100 DEPEND="${COMMON_DEPEND}
101 virtual/pkgconfig
102 "
103
104 RDEPEND="${COMMON_DEPEND}
105 >=app-text/poppler-data-0.4.5-r1
106 >=media-fonts/urw-fonts-2.4.9
107 linguas_ja? ( media-fonts/kochi-substitute )
108 linguas_ko? ( media-fonts/baekmuk-fonts )
109 linguas_zh_CN? ( media-fonts/arphicfonts )
110 linguas_zh_TW? ( media-fonts/arphicfonts )
111 !!media-fonts/gnu-gs-fonts-std
112 !!media-fonts/gnu-gs-fonts-other
113 !<net-print/cups-filters-1.0.36-r2
114 "
115
116 S="${WORKDIR}/${MY_P}"
117
118 LANGS="ja ko zh_CN zh_TW"
119 for X in ${LANGS} ; do
120 IUSE="${IUSE} linguas_${X}"
121 done
122
123 pkg_setup() {
124 if use bindist && use djvu; then
125 ewarn "You have bindist in your USE, djvu support will NOT be compiled!"
126 ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues."
127 fi
128 }
129
130 src_prepare() {
131 # remove internal copies of various libraries
132 rm -rf "${S}"/cups/libs
133 rm -rf "${S}"/expat
134 rm -rf "${S}"/freetype
135 rm -rf "${S}"/jbig2dec
136 rm -rf "${S}"/jpeg{,xr}
137 rm -rf "${S}"/lcms{,2}
138 rm -rf "${S}"/libpng
139 rm -rf "${S}"/tiff
140 rm -rf "${S}"/zlib
141 # remove internal urw-fonts
142 rm -rf "${S}"/Resource/Font
143 # remove internal CMaps (CMaps from poppler-data are used instead)
144 rm -rf "${S}"/Resource/CMap
145
146 # apply various patches, many borrowed from Fedora
147 # http://pkgs.fedoraproject.org/cgit/ghostscript.git
148 EPATCH_SUFFIX="patch" EPATCH_FORCE="yes"
149 EPATCH_SOURCE="${WORKDIR}/patches/"
150 epatch
151
152 if ! use bindist && use djvu ; then
153 unpack gsdjvu-${GSDJVU_PV}.tar.gz
154 cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}"
155 cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}"/base
156 epatch "${WORKDIR}"/patches-gsdjvu/gsdjvu-1.3-${PN}-8.64.patch
157 cp "${S}"/contrib/contrib.mak "${S}"/base/contrib.mak.gsdjvu
158 grep -q djvusep "${S}"/contrib/contrib.mak || \
159 cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}"/contrib/contrib.mak
160
161 # install ps2utf8.ps, bug #197818
162 cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}"/lib
163 sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' \
164 "${S}"/base/unixinst.mak || die "sed failed"
165 fi
166
167 if ! use gtk ; then
168 sed -i -e "s:\$(GSSOX)::" \
169 -e "s:.*\$(GSSOX_XENAME)$::" \
170 "${S}"/base/unix-dll.mak || die "sed failed"
171 fi
172
173 # search path fix
174 # put LDFLAGS after BINDIR, bug #383447
175 sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \
176 -e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \
177 -e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \
178 -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \
179 -e 's:-L$(BINDIR):& $(LDFLAGS):g' \
180 "${S}"/Makefile.in "${S}"/base/*.mak || die "sed failed"
181
182 cd "${S}"
183 eautoreconf
184
185 cd "${S}/ijs"
186 eautoreconf
187 }
188
189 src_configure() {
190 local FONTPATH
191 for path in \
192 /usr/share/fonts/urw-fonts \
193 /usr/share/fonts/Type1 \
194 /usr/share/fonts \
195 /usr/share/poppler/cMap/Adobe-CNS1 \
196 /usr/share/poppler/cMap/Adobe-GB1 \
197 /usr/share/poppler/cMap/Adobe-Japan1 \
198 /usr/share/poppler/cMap/Adobe-Japan2 \
199 /usr/share/poppler/cMap/Adobe-Korea1
200 do
201 FONTPATH="$FONTPATH${FONTPATH:+:}$path"
202 done
203
204 econf \
205 --enable-dynamic \
206 --enable-freetype \
207 --enable-fontconfig \
208 --enable-openjpeg \
209 --disable-compile-inits \
210 --with-drivers=ALL \
211 --with-fontpath="$FONTPATH" \
212 --with-ijs \
213 --with-jbig2dec \
214 --with-libpaper \
215 --with-system-libtiff \
216 --without-lcms \
217 --without-luratech \
218 $(use_enable cups) \
219 $(use_enable dbus) \
220 $(use_enable gtk) \
221 $(use_with cups pdftoraster) \
222 $(use_with idn libidn) \
223 $(use_with X x)
224
225 if ! use bindist && use djvu ; then
226 sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' \
227 "${S}"/Makefile || die "sed failed"
228 fi
229
230 cd "${S}/ijs"
231 econf \
232 --enable-shared \
233 $(use_enable static-libs static)
234 }
235
236 src_compile() {
237 # workaround: -j1 -> see bug #234378
238 emake -j1 so all
239
240 cd "${S}/ijs"
241 emake
242 }
243
244 src_install() {
245 # workaround: -j1 -> see bug #356303
246 emake -j1 DESTDIR="${D}" install-so install
247
248 if ! use bindist && use djvu ; then
249 dobin gsdjvu
250 fi
251
252 # move gsc to gs, bug #343447
253 # gsc collides with gambit, bug #253064
254 mv -f "${D}/usr/bin/gsc" "${D}/usr/bin/gs" || die
255
256 cd "${S}/ijs"
257 emake DESTDIR="${D}" install
258
259 # rename the original cidfmap to cidfmap.GS
260 mv "${D}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die
261
262 # install our own cidfmap to handle CJK fonts
263 insinto "/usr/share/ghostscript/${PVM}/Resource/Init"
264 doins "${WORKDIR}/fontmaps/CIDFnmap"
265 doins "${WORKDIR}/fontmaps/cidfmap"
266 for X in ${LANGS} ; do
267 if use linguas_${X} ; then
268 doins "${WORKDIR}/fontmaps/cidfmap.${X}"
269 fi
270 done
271
272 # install the CMaps from poppler-data properly, bug #409361
273 dosym /usr/share/poppler/cMaps /usr/share/ghostscript/${PVM}/Resource/CMap
274
275 use static-libs || find "${D}" -name '*.la' -delete
276
277 use linguas_de || rm -r "${D}"/usr/share/man/de
278 }