1 |
tgurr 10/07/30 22:09:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ghostscript-gpl-8.71-r5.ebuild |
5 |
Removed: ghostscript-gpl-8.71-r4.ebuild |
6 |
ghostscript-gpl-8.64-r3.ebuild |
7 |
ghostscript-gpl-8.70-r1.ebuild |
8 |
Log: |
9 |
Revbump for CVE-2010-1628, add upstream libpng patch and remove old versions. |
10 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.98 app-text/ghostscript-gpl/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.98&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.98&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?r1=1.97&r2=1.98 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v |
22 |
retrieving revision 1.97 |
23 |
retrieving revision 1.98 |
24 |
diff -u -r1.97 -r1.98 |
25 |
--- ChangeLog 11 Jul 2010 17:34:25 -0000 1.97 |
26 |
+++ ChangeLog 30 Jul 2010 22:09:04 -0000 1.98 |
27 |
@@ -1,6 +1,14 @@ |
28 |
# ChangeLog for app-text/ghostscript-gpl |
29 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.97 2010/07/11 17:34:25 armin76 Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.98 2010/07/30 22:09:04 tgurr Exp $ |
32 |
+ |
33 |
+*ghostscript-gpl-8.71-r5 (30 Jul 2010) |
34 |
+ |
35 |
+ 30 Jul 2010; Timo Gurr <tgurr@g.o> -ghostscript-gpl-8.64-r3.ebuild, |
36 |
+ -ghostscript-gpl-8.70-r1.ebuild, -ghostscript-gpl-8.71-r4.ebuild, |
37 |
+ +ghostscript-gpl-8.71-r5.ebuild: |
38 |
+ Revbump for CVE-2010-1628, add upstream libpng patch and remove old |
39 |
+ versions. |
40 |
|
41 |
11 Jul 2010; Raúl Porcel <armin76@g.o> |
42 |
ghostscript-gpl-8.71-r1.ebuild: |
43 |
|
44 |
|
45 |
|
46 |
1.1 app-text/ghostscript-gpl/ghostscript-gpl-8.71-r5.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-8.71-r5.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-8.71-r5.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: ghostscript-gpl-8.71-r5.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2010 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-8.71-r5.ebuild,v 1.1 2010/07/30 22:09:04 tgurr Exp $ |
56 |
|
57 |
EAPI=3 |
58 |
inherit autotools eutils versionator flag-o-matic |
59 |
|
60 |
DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF" |
61 |
HOMEPAGE="http://ghostscript.com/" |
62 |
|
63 |
MY_P=${P/-gpl} |
64 |
GSDJVU_PV=1.4 |
65 |
PVM=$(get_version_component_range 1-2) |
66 |
SRC_URI="!bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) ) |
67 |
mirror://sourceforge/ghostscript/${MY_P}.tar.xz |
68 |
mirror://gentoo/${P}-patchset-3.tar.bz2" |
69 |
|
70 |
LICENSE="GPL-3 CPL-1.0" |
71 |
SLOT="0" |
72 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
73 |
IUSE="bindist cairo cups djvu gtk jpeg2k X" |
74 |
|
75 |
COMMON_DEPEND="app-text/libpaper |
76 |
media-libs/fontconfig |
77 |
>=media-libs/jpeg-6b |
78 |
>=media-libs/libpng-1.2.42 |
79 |
>=media-libs/tiff-3.9.2 |
80 |
>=sys-libs/zlib-1.2.3 |
81 |
!bindist? ( djvu? ( app-text/djvu ) ) |
82 |
cairo? ( >=x11-libs/cairo-1.2.0 ) |
83 |
cups? ( >=net-print/cups-1.3.8 ) |
84 |
gtk? ( >=x11-libs/gtk+-2.0 ) |
85 |
jpeg2k? ( media-libs/jasper ) |
86 |
X? ( x11-libs/libXt x11-libs/libXext )" |
87 |
|
88 |
DEPEND="${COMMON_DEPEND} |
89 |
app-arch/xz-utils |
90 |
dev-util/pkgconfig" |
91 |
|
92 |
RDEPEND="${COMMON_DEPEND} |
93 |
linguas_ja? ( media-fonts/kochi-substitute ) |
94 |
linguas_ko? ( media-fonts/baekmuk-fonts ) |
95 |
linguas_zh_CN? ( media-fonts/arphicfonts ) |
96 |
linguas_zh_TW? ( media-fonts/arphicfonts ) |
97 |
>=media-fonts/urw-fonts-2.4.9" |
98 |
|
99 |
S="${WORKDIR}/${MY_P}" |
100 |
|
101 |
LANGS="ja ko zh_CN zh_TW" |
102 |
for X in ${LANGS} ; do |
103 |
IUSE="${IUSE} linguas_${X}" |
104 |
done |
105 |
|
106 |
pkg_setup() { |
107 |
local p="/usr/share/fonts/default/ghostscript" |
108 |
# die if path exists and is not a symbolic link so that |
109 |
# installation of symbolic link doesn't fail, bug 311923 |
110 |
if [[ -e ${p} && ! -L ${p} ]]; then |
111 |
eerror "The path ${p} exists and is not a" |
112 |
eerror "symlink. It must be removed for ${CATEGORY}/${PN} to be installed." |
113 |
eerror "Use the following command to check to which packages it belongs:" |
114 |
eerror " emerge gentoolkit ; equery belongs ${p}" |
115 |
eerror |
116 |
eerror "And remove packages listed. If it doesn't belong to any package, remove" |
117 |
eerror "it manually and then re-emerge ${CATEGORY}/${PN}." |
118 |
eerror "See bug 311923 for more details." |
119 |
eerror |
120 |
die "Path ${p} is not a symlink" |
121 |
fi |
122 |
|
123 |
if use bindist && use djvu; then |
124 |
ewarn "You have bindist in your USE, djvu support will NOT be compiled!" |
125 |
ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues." |
126 |
fi |
127 |
} |
128 |
|
129 |
src_prepare() { |
130 |
# remove internal copies of expat, jasper, jpeg, libpng and zlib |
131 |
rm -rf "${S}/expat" |
132 |
rm -rf "${S}/jasper" |
133 |
rm -rf "${S}/jpeg" |
134 |
rm -rf "${S}/libpng" |
135 |
rm -rf "${S}/tiff" |
136 |
rm -rf "${S}/zlib" |
137 |
# remove internal urw-fonts |
138 |
rm -rf "${S}/Resource/Font" |
139 |
|
140 |
# Apply various patches, many borrowed from Fedora |
141 |
# http://cvs.fedoraproject.org/viewvc/devel/ghostscript/ |
142 |
EPATCH_EXCLUDE="${PN}-8.64-gsdjvu-1.3.patch" |
143 |
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" |
144 |
EPATCH_SOURCE="${WORKDIR}/patches/" |
145 |
epatch |
146 |
|
147 |
if ! use bindist && use djvu ; then |
148 |
unpack gsdjvu-${GSDJVU_PV}.tar.gz |
149 |
cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" |
150 |
cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}/base" |
151 |
epatch "${WORKDIR}/patches/${PN}-8.64-gsdjvu-1.3.patch" |
152 |
cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}/lib" |
153 |
cp "${S}/base/contrib.mak" "${S}/base/contrib.mak.gsdjvu" |
154 |
grep -q djvusep "${S}/base/contrib.mak" || \ |
155 |
cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}/base/contrib.mak" |
156 |
|
157 |
# install ps2utf8.ps, bug #197818 |
158 |
sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' "${S}/base/unixinst.mak" \ |
159 |
|| die "sed failed" |
160 |
fi |
161 |
|
162 |
if ! use gtk ; then |
163 |
sed -i "s:\$(GSSOX)::" base/*.mak || die "gsx sed failed" |
164 |
sed -i "s:.*\$(GSSOX_XENAME)$::" base/*.mak || die "gsxso sed failed" |
165 |
fi |
166 |
|
167 |
# search path fix |
168 |
sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \ |
169 |
-e 's:$(gsdir)/fonts:/usr/share/fonts/default/ghostscript/:' \ |
170 |
-e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \ |
171 |
-e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \ |
172 |
-e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \ |
173 |
base/Makefile.in base/*.mak || die "sed failed" |
174 |
|
175 |
cd "${S}" |
176 |
eautoreconf |
177 |
|
178 |
cd "${S}/jbig2dec" |
179 |
eautoreconf |
180 |
|
181 |
cd "${S}/ijs" |
182 |
eautoreconf |
183 |
} |
184 |
|
185 |
src_configure() { |
186 |
econf \ |
187 |
$(use_enable cairo) \ |
188 |
$(use_enable cups) \ |
189 |
$(use_enable gtk) \ |
190 |
$(use_with jpeg2k jasper) \ |
191 |
$(use_with X x) \ |
192 |
--disable-compile-inits \ |
193 |
--enable-dynamic \ |
194 |
--enable-fontconfig \ |
195 |
--with-drivers=ALL \ |
196 |
--with-ijs \ |
197 |
--with-jbig2dec \ |
198 |
--with-libpaper |
199 |
|
200 |
if ! use bindist && use djvu ; then |
201 |
sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' Makefile |
202 |
fi |
203 |
|
204 |
cd "${S}/ijs" |
205 |
econf |
206 |
} |
207 |
|
208 |
src_compile() { |
209 |
emake -j1 so all || die "emake failed" |
210 |
|
211 |
cd "${S}/ijs" |
212 |
emake || die "ijs emake failed" |
213 |
} |
214 |
|
215 |
src_install() { |
216 |
# parallel install is broken, bug #251066 |
217 |
emake -j1 DESTDIR="${D}" install-so install || die "emake install failed" |
218 |
|
219 |
if ! use bindist && use djvu ; then |
220 |
dobin gsdjvu || die "dobin gsdjvu install failed" |
221 |
fi |
222 |
|
223 |
# remove gsc in favor of gambit, bug #253064 |
224 |
rm -rf "${D}/usr/bin/gsc" |
225 |
|
226 |
rm -rf "${D}/usr/share/doc/${PF}/html/"{README,PUBLIC} |
227 |
dodoc doc/README || die "dodoc install failed" |
228 |
|
229 |
cd "${S}/ijs" |
230 |
emake DESTDIR="${D}" install || die "emake ijs install failed" |
231 |
|
232 |
# Rename an original cidfmap to cidfmap.GS |
233 |
mv "${D}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die |
234 |
|
235 |
# Install our own cidfmap to allow the separated cidfmap |
236 |
insinto "/usr/share/ghostscript/${PVM}/Resource/Init" |
237 |
doins "${WORKDIR}/fontmaps/CIDFnmap" || die "doins CIDFnmap failed" |
238 |
doins "${WORKDIR}/fontmaps/cidfmap" || die "doins cidfmap failed" |
239 |
for X in ${LANGS} ; do |
240 |
if use linguas_${X} ; then |
241 |
doins "${WORKDIR}/fontmaps/cidfmap.${X}" || die "doins cidfmap.${X} failed" |
242 |
fi |
243 |
done |
244 |
|
245 |
dosym /usr/share/fonts/urw-fonts /usr/share/fonts/default/ghostscript || die |
246 |
} |