1 |
tgurr 11/02/01 19:02:39 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ghostscript-gpl-9.00-r1.ebuild |
5 |
Removed: ghostscript-gpl-8.71-r1.ebuild |
6 |
Log: |
7 |
Revbump with upstream fixes, attempt to fix bug #223433. Remove old. |
8 |
|
9 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.108 app-text/ghostscript-gpl/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.108&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.108&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?r1=1.107&r2=1.108 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v |
21 |
retrieving revision 1.107 |
22 |
retrieving revision 1.108 |
23 |
diff -u -r1.107 -r1.108 |
24 |
--- ChangeLog 7 Nov 2010 19:17:54 -0000 1.107 |
25 |
+++ ChangeLog 1 Feb 2011 19:02:39 -0000 1.108 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for app-text/ghostscript-gpl |
28 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.107 2010/11/07 19:17:54 anarchy Exp $ |
30 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.108 2011/02/01 19:02:39 tgurr Exp $ |
32 |
+ |
33 |
+*ghostscript-gpl-9.00-r1 (01 Feb 2011) |
34 |
+ |
35 |
+ 01 Feb 2011; Timo Gurr <tgurr@g.o> -ghostscript-gpl-8.71-r1.ebuild, |
36 |
+ +ghostscript-gpl-9.00-r1.ebuild: |
37 |
+ Revbump with upstream fixes, attempt to fix bug #223433. Remove old. |
38 |
|
39 |
07 Nov 2010; Jory A. Pratt <anarchy@g.o> |
40 |
ghostscript-gpl-8.71-r1.ebuild, ghostscript-gpl-8.71-r6.ebuild, |
41 |
|
42 |
|
43 |
|
44 |
1.1 app-text/ghostscript-gpl/ghostscript-gpl-9.00-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.00-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.00-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: ghostscript-gpl-9.00-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2011 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.00-r1.ebuild,v 1.1 2011/02/01 19:02:39 tgurr Exp $ |
54 |
|
55 |
EAPI=3 |
56 |
inherit autotools eutils versionator flag-o-matic |
57 |
|
58 |
DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF" |
59 |
HOMEPAGE="http://ghostscript.com/" |
60 |
|
61 |
MY_P=${P/-gpl} |
62 |
GSDJVU_PV=1.4 |
63 |
PVM=$(get_version_component_range 1-2) |
64 |
SRC_URI="!bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) ) |
65 |
mirror://sourceforge/ghostscript/${MY_P}.tar.xz |
66 |
mirror://gentoo/${P}-patchset-2.tar.bz2" |
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 djvu gtk idn jpeg2k X" |
72 |
|
73 |
COMMON_DEPEND="app-text/libpaper |
74 |
media-libs/freetype:2 |
75 |
media-libs/fontconfig |
76 |
virtual/jpeg |
77 |
>=media-libs/libpng-1.2.42 |
78 |
>=media-libs/tiff-3.9.2 |
79 |
>=sys-libs/zlib-1.2.3 |
80 |
!bindist? ( djvu? ( app-text/djvu ) ) |
81 |
cups? ( >=net-print/cups-1.3.8 ) |
82 |
gtk? ( >=x11-libs/gtk+-2.0 ) |
83 |
idn? ( net-dns/libidn ) |
84 |
jpeg2k? ( media-libs/jasper ) |
85 |
X? ( x11-libs/libXt x11-libs/libXext )" |
86 |
|
87 |
DEPEND="${COMMON_DEPEND} |
88 |
app-arch/xz-utils |
89 |
dev-util/pkgconfig" |
90 |
|
91 |
RDEPEND="${COMMON_DEPEND} |
92 |
>=app-text/poppler-data-0.4.4 |
93 |
>=media-fonts/urw-fonts-2.4.9 |
94 |
linguas_ja? ( media-fonts/kochi-substitute ) |
95 |
linguas_ko? ( media-fonts/baekmuk-fonts ) |
96 |
linguas_zh_CN? ( media-fonts/arphicfonts ) |
97 |
linguas_zh_TW? ( media-fonts/arphicfonts )" |
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 |
if use bindist && use djvu; then |
108 |
ewarn "You have bindist in your USE, djvu support will NOT be compiled!" |
109 |
ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues." |
110 |
fi |
111 |
} |
112 |
|
113 |
src_prepare() { |
114 |
# remove internal copies of various libraries |
115 |
rm -rf "${S}/expat" |
116 |
rm -rf "${S}/jasper" |
117 |
rm -rf "${S}/jpeg" |
118 |
rm -rf "${S}/libpng" |
119 |
rm -rf "${S}/tiff" |
120 |
rm -rf "${S}/zlib" |
121 |
# remove internal urw-fonts |
122 |
rm -rf "${S}/Resource/Font" |
123 |
# remove internal CMaps (CMaps from poppler-data are used instead) |
124 |
rm -rf "${S}/Resource/CMap" |
125 |
|
126 |
# apply various patches, many borrowed from Fedora |
127 |
# http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git |
128 |
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" |
129 |
EPATCH_SOURCE="${WORKDIR}/patches/" |
130 |
epatch |
131 |
|
132 |
if ! use bindist && use djvu ; then |
133 |
unpack gsdjvu-${GSDJVU_PV}.tar.gz |
134 |
cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" |
135 |
cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}/base" |
136 |
epatch "${WORKDIR}/patches-gsdjvu/gsdjvu-1.3-${PN}-8.64.patch" |
137 |
epatch "${WORKDIR}/patches-gsdjvu/gsdjvu-1.4-${PN}-9.00-upstream-buildfixes.patch" |
138 |
cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}/lib" |
139 |
cp "${S}/base/contrib.mak" "${S}/base/contrib.mak.gsdjvu" |
140 |
grep -q djvusep "${S}/base/contrib.mak" || \ |
141 |
cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}/base/contrib.mak" |
142 |
|
143 |
# install ps2utf8.ps, bug #197818 |
144 |
sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' "${S}/base/unixinst.mak" \ |
145 |
|| die "sed failed" |
146 |
fi |
147 |
|
148 |
if ! use gtk ; then |
149 |
sed -i "s:\$(GSSOX)::" base/*.mak || die "gsx sed failed" |
150 |
sed -i "s:.*\$(GSSOX_XENAME)$::" base/*.mak || die "gsxso sed failed" |
151 |
fi |
152 |
|
153 |
# search path fix |
154 |
sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \ |
155 |
-e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \ |
156 |
-e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \ |
157 |
-e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \ |
158 |
base/Makefile.in base/*.mak || die "sed failed" |
159 |
|
160 |
cd "${S}" |
161 |
eautoreconf |
162 |
|
163 |
cd "${S}/jbig2dec" |
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 |
$(use_enable cups) \ |
187 |
$(use_enable gtk) \ |
188 |
$(use_with cups pdftoraster) \ |
189 |
$(use_with idn libidn) \ |
190 |
$(use_with jpeg2k jasper) \ |
191 |
$(use_with X x) \ |
192 |
--disable-compile-inits \ |
193 |
--enable-dynamic \ |
194 |
--enable-freetype \ |
195 |
--enable-fontconfig \ |
196 |
--with-drivers=ALL \ |
197 |
--with-fontpath="$FONTPATH" \ |
198 |
--with-ijs \ |
199 |
--with-jbig2dec \ |
200 |
--with-libpaper \ |
201 |
--with-system-libtiff |
202 |
|
203 |
if ! use bindist && use djvu ; then |
204 |
sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' Makefile |
205 |
fi |
206 |
|
207 |
cd "${S}/ijs" |
208 |
econf |
209 |
} |
210 |
|
211 |
src_compile() { |
212 |
emake -j1 so all || die "emake failed" |
213 |
|
214 |
cd "${S}/ijs" |
215 |
emake || die "ijs emake failed" |
216 |
} |
217 |
|
218 |
src_install() { |
219 |
emake DESTDIR="${D}" install-so install || die "emake install failed" |
220 |
|
221 |
if ! use bindist && use djvu ; then |
222 |
dobin gsdjvu || die "dobin gsdjvu install failed" |
223 |
fi |
224 |
|
225 |
# remove gsc in favor of gambit, bug #253064 |
226 |
rm -rf "${D}/usr/bin/gsc" |
227 |
|
228 |
rm -rf "${D}/usr/share/doc/${PF}/html/"{README,PUBLIC} |
229 |
dodoc doc/GS9_Color_Management.pdf || die "dodoc install failed" |
230 |
|
231 |
cd "${S}/ijs" |
232 |
emake DESTDIR="${D}" install || die "emake ijs install failed" |
233 |
|
234 |
# rename the original cidfmap to cidfmap.GS |
235 |
mv "${D}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die |
236 |
|
237 |
# install our own cidfmap to handle CJK fonts |
238 |
insinto "/usr/share/ghostscript/${PVM}/Resource/Init" |
239 |
doins "${WORKDIR}/fontmaps/CIDFnmap" || die "doins CIDFnmap failed" |
240 |
doins "${WORKDIR}/fontmaps/cidfmap" || die "doins cidfmap failed" |
241 |
for X in ${LANGS} ; do |
242 |
if use linguas_${X} ; then |
243 |
doins "${WORKDIR}/fontmaps/cidfmap.${X}" || die "doins cidfmap.${X} failed" |
244 |
fi |
245 |
done |
246 |
} |