1 |
tgurr 11/12/21 21:13:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ghostscript-gpl-9.04-r5.ebuild |
5 |
Log: |
6 |
Revbump adding upstream fixes, resolves bug #389309 thanks to László Szalma. Also fixing bug #391749. |
7 |
|
8 |
(Portage version: 2.2.0_alpha81/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.130 app-text/ghostscript-gpl/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.130&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.130&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?r1=1.129&r2=1.130 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v |
20 |
retrieving revision 1.129 |
21 |
retrieving revision 1.130 |
22 |
diff -u -r1.129 -r1.130 |
23 |
--- ChangeLog 12 Nov 2011 10:23:33 -0000 1.129 |
24 |
+++ ChangeLog 21 Dec 2011 21:13:34 -0000 1.130 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for app-text/ghostscript-gpl |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.129 2011/11/12 10:23:33 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.130 2011/12/21 21:13:34 tgurr Exp $ |
30 |
+ |
31 |
+*ghostscript-gpl-9.04-r5 (21 Dec 2011) |
32 |
+ |
33 |
+ 21 Dec 2011; Timo Gurr <tgurr@g.o> +ghostscript-gpl-9.04-r5.ebuild: |
34 |
+ Revbump adding upstream fixes, resolves bug #389309 thanks to László |
35 |
+ Szalma. Also fixing bug #391749. |
36 |
|
37 |
12 Nov 2011; Justin Lecher <jlec@g.o> ghostscript-gpl-9.04-r4.ebuild: |
38 |
Fixed slotting for media-libs/libpng |
39 |
|
40 |
|
41 |
|
42 |
1.1 app-text/ghostscript-gpl/ghostscript-gpl-9.04-r5.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.04-r5.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.04-r5.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: ghostscript-gpl-9.04-r5.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.04-r5.ebuild,v 1.1 2011/12/21 21:13:34 tgurr Exp $ |
52 |
|
53 |
EAPI=3 |
54 |
|
55 |
inherit autotools eutils versionator flag-o-matic |
56 |
|
57 |
DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF" |
58 |
HOMEPAGE="http://ghostscript.com/" |
59 |
|
60 |
MY_P=${P/-gpl} |
61 |
GSDJVU_PV=1.5 |
62 |
PVM=$(get_version_component_range 1-2) |
63 |
SRC_URI=" |
64 |
mirror://sourceforge/ghostscript/${MY_P}.tar.bz2 |
65 |
mirror://gentoo/${P}-patchset-4.tar.bz2 |
66 |
!bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) )" |
67 |
|
68 |
LICENSE="GPL-3 CPL-1.0" |
69 |
SLOT="0" |
70 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
71 |
IUSE="bindist cups dbus djvu gtk idn jpeg2k static-libs X" |
72 |
|
73 |
COMMON_DEPEND=" |
74 |
app-text/libpaper |
75 |
media-libs/fontconfig |
76 |
media-libs/freetype:2 |
77 |
media-libs/lcms:0 |
78 |
media-libs/libpng:0 |
79 |
media-libs/tiff:0 |
80 |
>=sys-libs/zlib-1.2.3 |
81 |
virtual/jpeg |
82 |
!bindist? ( djvu? ( app-text/djvu ) ) |
83 |
cups? ( >=net-print/cups-1.3.8 ) |
84 |
dbus? ( sys-apps/dbus ) |
85 |
gtk? ( x11-libs/gtk+:2 ) |
86 |
idn? ( net-dns/libidn ) |
87 |
jpeg2k? ( media-libs/jasper ) |
88 |
X? ( x11-libs/libXt x11-libs/libXext )" |
89 |
|
90 |
DEPEND="${COMMON_DEPEND} |
91 |
dev-util/pkgconfig" |
92 |
|
93 |
RDEPEND="${COMMON_DEPEND} |
94 |
>=app-text/poppler-data-0.4.4 |
95 |
>=media-fonts/urw-fonts-2.4.9 |
96 |
linguas_ja? ( media-fonts/kochi-substitute ) |
97 |
linguas_ko? ( media-fonts/baekmuk-fonts ) |
98 |
linguas_zh_CN? ( media-fonts/arphicfonts ) |
99 |
linguas_zh_TW? ( media-fonts/arphicfonts )" |
100 |
|
101 |
S="${WORKDIR}/${MY_P}" |
102 |
|
103 |
LANGS="ja ko zh_CN zh_TW" |
104 |
for X in ${LANGS} ; do |
105 |
IUSE="${IUSE} linguas_${X}" |
106 |
done |
107 |
|
108 |
pkg_setup() { |
109 |
if use bindist && use djvu; then |
110 |
ewarn "You have bindist in your USE, djvu support will NOT be compiled!" |
111 |
ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues." |
112 |
fi |
113 |
} |
114 |
|
115 |
src_prepare() { |
116 |
# remove internal copies of various libraries |
117 |
rm -rf "${S}"/expat |
118 |
rm -rf "${S}"/freetype |
119 |
rm -rf "${S}"/jasper |
120 |
rm -rf "${S}"/jpeg |
121 |
rm -rf "${S}"/lcms{,2} |
122 |
rm -rf "${S}"/libpng |
123 |
rm -rf "${S}"/tiff |
124 |
rm -rf "${S}"/zlib |
125 |
# remove internal urw-fonts |
126 |
rm -rf "${S}"/Resource/Font |
127 |
# remove internal CMaps (CMaps from poppler-data are used instead) |
128 |
rm -rf "${S}"/Resource/CMap |
129 |
|
130 |
# apply various patches, many borrowed from Fedora |
131 |
# http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git |
132 |
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" |
133 |
EPATCH_SOURCE="${WORKDIR}/patches/" |
134 |
epatch |
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-gsdjvu/gsdjvu-1.3-${PN}-8.64.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:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \ |
159 |
-e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \ |
160 |
-e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \ |
161 |
-e 's:-L$(BINDIR):$(LDFLAGS) &:g' \ |
162 |
base/Makefile.in base/*.mak || die "sed failed" |
163 |
|
164 |
cd "${S}" |
165 |
eautoreconf |
166 |
|
167 |
cd "${S}/ijs" |
168 |
eautoreconf |
169 |
} |
170 |
|
171 |
src_configure() { |
172 |
local FONTPATH |
173 |
for path in \ |
174 |
/usr/share/fonts/urw-fonts \ |
175 |
/usr/share/fonts/Type1 \ |
176 |
/usr/share/fonts \ |
177 |
/usr/share/poppler/cMap/Adobe-CNS1 \ |
178 |
/usr/share/poppler/cMap/Adobe-GB1 \ |
179 |
/usr/share/poppler/cMap/Adobe-Japan1 \ |
180 |
/usr/share/poppler/cMap/Adobe-Japan2 \ |
181 |
/usr/share/poppler/cMap/Adobe-Korea1 |
182 |
do |
183 |
FONTPATH="$FONTPATH${FONTPATH:+:}$path" |
184 |
done |
185 |
|
186 |
econf \ |
187 |
--enable-dynamic \ |
188 |
--enable-freetype \ |
189 |
--enable-fontconfig \ |
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-luratech \ |
198 |
$(use_enable cups) \ |
199 |
$(use_enable dbus) \ |
200 |
$(use_enable gtk) \ |
201 |
$(use_with cups install-cups) \ |
202 |
$(use_with cups pdftoraster) \ |
203 |
$(use_with idn libidn) \ |
204 |
$(use_with jpeg2k jasper) \ |
205 |
$(use_with X x) |
206 |
|
207 |
if ! use bindist && use djvu ; then |
208 |
sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' Makefile |
209 |
fi |
210 |
|
211 |
cd "${S}/ijs" |
212 |
econf \ |
213 |
--enable-shared \ |
214 |
$(use_enable static-libs static) |
215 |
} |
216 |
|
217 |
src_compile() { |
218 |
emake -j1 so all || die "emake failed" |
219 |
|
220 |
cd "${S}/ijs" |
221 |
emake || die "ijs emake failed" |
222 |
} |
223 |
|
224 |
src_install() { |
225 |
# -j1 -> see bug #356303 |
226 |
emake -j1 DESTDIR="${D}" install-so install || die "emake install failed" |
227 |
|
228 |
# some printer drivers still require pstoraster, bug #383831 |
229 |
use cups && dosym /usr/libexec/cups/filter/gstoraster /usr/libexec/cups/filter/pstoraster |
230 |
|
231 |
if ! use bindist && use djvu ; then |
232 |
dobin gsdjvu || die "dobin gsdjvu install failed" |
233 |
fi |
234 |
|
235 |
# remove gsc in favor of gambit, bug #253064 |
236 |
rm -rf "${D}/usr/bin/gsc" |
237 |
|
238 |
rm -rf "${D}/usr/share/doc/${PF}/html/"{README,PUBLIC} |
239 |
dodoc doc/GS9_Color_Management.pdf || die "dodoc install failed" |
240 |
|
241 |
cd "${S}/ijs" |
242 |
emake DESTDIR="${D}" install || die "emake ijs install failed" |
243 |
|
244 |
# rename the original cidfmap to cidfmap.GS |
245 |
mv "${D}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die |
246 |
|
247 |
# install our own cidfmap to handle CJK fonts |
248 |
insinto "/usr/share/ghostscript/${PVM}/Resource/Init" |
249 |
doins "${WORKDIR}/fontmaps/CIDFnmap" || die "doins CIDFnmap failed" |
250 |
doins "${WORKDIR}/fontmaps/cidfmap" || die "doins cidfmap failed" |
251 |
for X in ${LANGS} ; do |
252 |
if use linguas_${X} ; then |
253 |
doins "${WORKDIR}/fontmaps/cidfmap.${X}" || die "doins cidfmap.${X} failed" |
254 |
fi |
255 |
done |
256 |
|
257 |
use static-libs || find "${D}" -name '*.la' -delete |
258 |
} |