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