1 |
dilfridge 12/02/01 21:15:56 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ghostscript-gpl-9.04-r6.ebuild |
5 |
Log: |
6 |
Unbundle media-libs/jbig2dec, bug 206893. Dropped some keywords until jbig2dec is keyworded in bug 401853. |
7 |
|
8 |
(Portage version: 2.1.10.44/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.132 app-text/ghostscript-gpl/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.132&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.132&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?r1=1.131&r2=1.132 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v |
20 |
retrieving revision 1.131 |
21 |
retrieving revision 1.132 |
22 |
diff -u -r1.131 -r1.132 |
23 |
--- ChangeLog 14 Jan 2012 22:43:33 -0000 1.131 |
24 |
+++ ChangeLog 1 Feb 2012 21:15:56 -0000 1.132 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for app-text/ghostscript-gpl |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.131 2012/01/14 22:43:33 dilfridge Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.132 2012/02/01 21:15:56 dilfridge Exp $ |
30 |
+ |
31 |
+*ghostscript-gpl-9.04-r6 (01 Feb 2012) |
32 |
+ |
33 |
+ 01 Feb 2012; Andreas K. Huettel <dilfridge@g.o> |
34 |
+ +ghostscript-gpl-9.04-r6.ebuild: |
35 |
+ Unbundle media-libs/jbig2dec, bug 206893. Dropped some keywords until |
36 |
+ jbig2dec is keyworded in bug 401853. |
37 |
|
38 |
14 Jan 2012; Andreas K. Huettel <dilfridge@g.o> |
39 |
ghostscript-gpl-9.04-r4.ebuild, ghostscript-gpl-9.04-r5.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-text/ghostscript-gpl/ghostscript-gpl-9.04-r6.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.04-r6.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.04-r6.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: ghostscript-gpl-9.04-r6.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 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.04-r6.ebuild,v 1.1 2012/02/01 21:15:56 dilfridge Exp $ |
53 |
|
54 |
EAPI=3 |
55 |
|
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.5 |
63 |
PVM=$(get_version_component_range 1-2) |
64 |
SRC_URI=" |
65 |
mirror://sourceforge/ghostscript/${MY_P}.tar.bz2 |
66 |
mirror://gentoo/${P}-patchset-4.tar.bz2 |
67 |
!bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) )" |
68 |
|
69 |
LICENSE="GPL-3 CPL-1.0" |
70 |
SLOT="0" |
71 |
KEYWORDS="~amd64 ~mips ~ppc ~s390 ~sh ~x86 ~sparc-fbsd ~x86-fbsd" |
72 |
IUSE="bindist cups dbus djvu gtk idn jpeg2k static-libs X" |
73 |
|
74 |
COMMON_DEPEND=" |
75 |
app-text/libpaper |
76 |
media-libs/fontconfig |
77 |
media-libs/freetype:2 |
78 |
media-libs/jbig2dec |
79 |
media-libs/lcms:0 |
80 |
media-libs/libpng:0 |
81 |
media-libs/tiff:0 |
82 |
>=sys-libs/zlib-1.2.3 |
83 |
virtual/jpeg |
84 |
!bindist? ( djvu? ( app-text/djvu ) ) |
85 |
cups? ( >=net-print/cups-1.3.8 ) |
86 |
dbus? ( sys-apps/dbus ) |
87 |
gtk? ( x11-libs/gtk+:2 ) |
88 |
idn? ( net-dns/libidn ) |
89 |
jpeg2k? ( media-libs/jasper ) |
90 |
X? ( x11-libs/libXt x11-libs/libXext )" |
91 |
|
92 |
DEPEND="${COMMON_DEPEND} |
93 |
dev-util/pkgconfig" |
94 |
|
95 |
RDEPEND="${COMMON_DEPEND} |
96 |
>=app-text/poppler-data-0.4.4 |
97 |
>=media-fonts/urw-fonts-2.4.9 |
98 |
linguas_ja? ( media-fonts/kochi-substitute ) |
99 |
linguas_ko? ( media-fonts/baekmuk-fonts ) |
100 |
linguas_zh_CN? ( media-fonts/arphicfonts ) |
101 |
linguas_zh_TW? ( media-fonts/arphicfonts ) |
102 |
!!media-fonts/gnu-gs-fonts-std |
103 |
!!media-fonts/gnu-gs-fonts-other |
104 |
" |
105 |
|
106 |
S="${WORKDIR}/${MY_P}" |
107 |
|
108 |
LANGS="ja ko zh_CN zh_TW" |
109 |
for X in ${LANGS} ; do |
110 |
IUSE="${IUSE} linguas_${X}" |
111 |
done |
112 |
|
113 |
pkg_setup() { |
114 |
if use bindist && use djvu; then |
115 |
ewarn "You have bindist in your USE, djvu support will NOT be compiled!" |
116 |
ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues." |
117 |
fi |
118 |
} |
119 |
|
120 |
src_prepare() { |
121 |
# remove internal copies of various libraries |
122 |
rm -rf "${S}"/expat |
123 |
rm -rf "${S}"/freetype |
124 |
rm -rf "${S}"/jasper |
125 |
rm -rf "${S}"/jpeg |
126 |
rm -rf "${S}"/lcms{,2} |
127 |
rm -rf "${S}"/libpng |
128 |
rm -rf "${S}"/tiff |
129 |
rm -rf "${S}"/zlib |
130 |
|
131 |
rm -rf "${S}"/jbig2dec |
132 |
rm -f "${WORKDIR}"/patches/ghostscript-gpl-8.71-jbig2dec-nullderef.patch |
133 |
|
134 |
# remove internal urw-fonts |
135 |
rm -rf "${S}"/Resource/Font |
136 |
# remove internal CMaps (CMaps from poppler-data are used instead) |
137 |
rm -rf "${S}"/Resource/CMap |
138 |
|
139 |
# apply various patches, many borrowed from Fedora |
140 |
# http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git |
141 |
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" |
142 |
EPATCH_SOURCE="${WORKDIR}/patches/" |
143 |
epatch |
144 |
|
145 |
if ! use bindist && use djvu ; then |
146 |
unpack gsdjvu-${GSDJVU_PV}.tar.gz |
147 |
cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" |
148 |
cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}/base" |
149 |
epatch "${WORKDIR}/patches-gsdjvu/gsdjvu-1.3-${PN}-8.64.patch" |
150 |
cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}/lib" |
151 |
cp "${S}/base/contrib.mak" "${S}/base/contrib.mak.gsdjvu" |
152 |
grep -q djvusep "${S}/base/contrib.mak" || \ |
153 |
cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}/base/contrib.mak" |
154 |
|
155 |
# install ps2utf8.ps, bug #197818 |
156 |
sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' "${S}/base/unixinst.mak" \ |
157 |
|| die "sed failed" |
158 |
fi |
159 |
|
160 |
if ! use gtk ; then |
161 |
sed -i "s:\$(GSSOX)::" base/*.mak || die "gsx sed failed" |
162 |
sed -i "s:.*\$(GSSOX_XENAME)$::" base/*.mak || die "gsxso 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 |
base/Makefile.in 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 |
--disable-compile-inits \ |
200 |
--with-drivers=ALL \ |
201 |
--with-fontpath="$FONTPATH" \ |
202 |
--with-ijs \ |
203 |
--with-jbig2dec \ |
204 |
--with-libpaper \ |
205 |
--with-system-libtiff \ |
206 |
--without-luratech \ |
207 |
$(use_enable cups) \ |
208 |
$(use_enable dbus) \ |
209 |
$(use_enable gtk) \ |
210 |
$(use_with cups install-cups) \ |
211 |
$(use_with cups pdftoraster) \ |
212 |
$(use_with idn libidn) \ |
213 |
$(use_with jpeg2k jasper) \ |
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' Makefile |
218 |
fi |
219 |
|
220 |
cd "${S}/ijs" |
221 |
econf \ |
222 |
--enable-shared \ |
223 |
$(use_enable static-libs static) |
224 |
} |
225 |
|
226 |
src_compile() { |
227 |
emake -j1 so all || die "emake failed" |
228 |
|
229 |
cd "${S}/ijs" |
230 |
emake || die "ijs emake failed" |
231 |
} |
232 |
|
233 |
src_install() { |
234 |
# -j1 -> see bug #356303 |
235 |
emake -j1 DESTDIR="${D}" install-so install || die "emake install failed" |
236 |
|
237 |
# some printer drivers still require pstoraster, bug #383831 |
238 |
use cups && dosym /usr/libexec/cups/filter/gstoraster /usr/libexec/cups/filter/pstoraster |
239 |
|
240 |
if ! use bindist && use djvu ; then |
241 |
dobin gsdjvu || die "dobin gsdjvu install failed" |
242 |
fi |
243 |
|
244 |
# remove gsc in favor of gambit, bug #253064 |
245 |
rm -rf "${D}/usr/bin/gsc" |
246 |
|
247 |
rm -rf "${D}/usr/share/doc/${PF}/html/"{README,PUBLIC} |
248 |
dodoc doc/GS9_Color_Management.pdf || die "dodoc install failed" |
249 |
|
250 |
cd "${S}/ijs" |
251 |
emake DESTDIR="${D}" install || die "emake ijs install failed" |
252 |
|
253 |
# rename the original cidfmap to cidfmap.GS |
254 |
mv "${D}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die |
255 |
|
256 |
# install our own cidfmap to handle CJK fonts |
257 |
insinto "/usr/share/ghostscript/${PVM}/Resource/Init" |
258 |
doins "${WORKDIR}/fontmaps/CIDFnmap" || die "doins CIDFnmap failed" |
259 |
doins "${WORKDIR}/fontmaps/cidfmap" || die "doins cidfmap failed" |
260 |
for X in ${LANGS} ; do |
261 |
if use linguas_${X} ; then |
262 |
doins "${WORKDIR}/fontmaps/cidfmap.${X}" || die "doins cidfmap.${X} failed" |
263 |
fi |
264 |
done |
265 |
|
266 |
use static-libs || find "${D}" -name '*.la' -delete |
267 |
} |