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