1 |
tgurr 09/02/28 19:19:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ghostscript-gpl-8.64-r1.ebuild |
5 |
Log: |
6 |
Revbump applying upstream regression fix (bug #259774) and ldflags patches which went upstream (bug #215913 and #258313, thanks to Kevin Pyle and Hanno Boeck). |
7 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.64 app-text/ghostscript-gpl/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.64&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.64&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?r1=1.63&r2=1.64 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v |
19 |
retrieving revision 1.63 |
20 |
retrieving revision 1.64 |
21 |
diff -u -r1.63 -r1.64 |
22 |
--- ChangeLog 6 Feb 2009 00:06:30 -0000 1.63 |
23 |
+++ ChangeLog 28 Feb 2009 19:19:10 -0000 1.64 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for app-text/ghostscript-gpl |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.63 2009/02/06 00:06:30 tgurr Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.64 2009/02/28 19:19:10 tgurr Exp $ |
29 |
+ |
30 |
+*ghostscript-gpl-8.64-r1 (28 Feb 2009) |
31 |
+ |
32 |
+ 28 Feb 2009; Timo Gurr <tgurr@g.o> +ghostscript-gpl-8.64-r1.ebuild: |
33 |
+ Revbump applying upstream regression fix (bug #259774) and ldflags patches |
34 |
+ which went upstream (bug #215913 and #258313, thanks to Kevin Pyle and |
35 |
+ Hanno Boeck). |
36 |
|
37 |
*ghostscript-gpl-8.64 (06 Feb 2009) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 app-text/ghostscript-gpl/ghostscript-gpl-8.64-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-8.64-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-8.64-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: ghostscript-gpl-8.64-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 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-8.64-r1.ebuild,v 1.1 2009/02/28 19:19:10 tgurr Exp $ |
52 |
|
53 |
inherit autotools eutils versionator flag-o-matic |
54 |
|
55 |
DESCRIPTION="GPL Ghostscript - the most current Ghostscript, AFPL, relicensed." |
56 |
HOMEPAGE="http://ghostscript.com/" |
57 |
|
58 |
MY_P=${P/-gpl} |
59 |
GSDJVU_PV=1.3 |
60 |
PVM=$(get_version_component_range 1-2) |
61 |
SRC_URI="cjk? ( ftp://ftp.gyve.org/pub/gs-cjk/adobe-cmaps-200406.tar.gz |
62 |
ftp://ftp.gyve.org/pub/gs-cjk/acro5-cmaps-2001.tar.gz ) |
63 |
!bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) ) |
64 |
mirror://sourceforge/ghostscript/${MY_P}.tar.bz2 |
65 |
mirror://gentoo/${P}-patchset-2.tar.bz2" |
66 |
|
67 |
LICENSE="GPL-2 CPL-1.0" |
68 |
SLOT="0" |
69 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
70 |
IUSE="bindist cairo cjk cups djvu gtk jpeg2k X" |
71 |
|
72 |
COMMON_DEPEND="app-text/libpaper |
73 |
media-libs/fontconfig |
74 |
>=media-libs/jpeg-6b |
75 |
>=media-libs/libpng-1.2.5 |
76 |
>=media-libs/tiff-3.7 |
77 |
>=sys-libs/zlib-1.1.4 |
78 |
!bindist? ( djvu? ( app-text/djvu ) ) |
79 |
cairo? ( >=x11-libs/cairo-1.2.0 ) |
80 |
cups? ( >=net-print/cups-1.3.8 ) |
81 |
gtk? ( >=x11-libs/gtk+-2.0 ) |
82 |
jpeg2k? ( media-libs/jasper ) |
83 |
X? ( x11-libs/libXt x11-libs/libXext ) |
84 |
!app-text/ghostscript-esp |
85 |
!app-text/ghostscript-gnu" |
86 |
|
87 |
DEPEND="${COMMON_DEPEND} |
88 |
dev-util/pkgconfig" |
89 |
|
90 |
RDEPEND="${COMMON_DEPEND} |
91 |
cjk? ( media-fonts/arphicfonts |
92 |
media-fonts/kochi-substitute |
93 |
media-fonts/baekmuk-fonts ) |
94 |
media-fonts/gnu-gs-fonts-std" |
95 |
|
96 |
S="${WORKDIR}/${MY_P}" |
97 |
|
98 |
src_unpack() { |
99 |
unpack ${A/adobe-cmaps-200406.tar.gz acro5-cmaps-2001.tar.gz} |
100 |
if use cjk ; then |
101 |
cat "${WORKDIR}/patches/ghostscript-esp-8.15.2-cidfmap.cjk" >> "${S}/lib/cidfmap" |
102 |
cat "${WORKDIR}/patches/ghostscript-esp-8.15.2-FAPIcidfmap.cjk" >> "${S}/lib/FAPIcidfmap" |
103 |
cd "${S}/Resource" |
104 |
unpack adobe-cmaps-200406.tar.gz |
105 |
unpack acro5-cmaps-2001.tar.gz |
106 |
cd "${WORKDIR}" |
107 |
fi |
108 |
|
109 |
cd "${S}" |
110 |
|
111 |
# remove internal copies of expat, jasper, jpeg, libpng and zlib |
112 |
rm -rf "${S}/expat" |
113 |
rm -rf "${S}/jasper" |
114 |
rm -rf "${S}/jpeg" |
115 |
rm -rf "${S}/libpng" |
116 |
rm -rf "${S}/zlib" |
117 |
# remove internal urw-fonts |
118 |
rm -rf "${S}/Resource/Font" |
119 |
|
120 |
# Fedora patches |
121 |
# http://cvs.fedora.redhat.com/viewcvs/devel/ghostscript/ |
122 |
epatch "${WORKDIR}/patches/${PN}-8.64-fPIC.patch" |
123 |
epatch "${WORKDIR}/patches/${PN}-8.61-multilib.patch" |
124 |
epatch "${WORKDIR}/patches/${PN}-8.64-noopt.patch" |
125 |
epatch "${WORKDIR}/patches/${PN}-8.64-scripts.patch" |
126 |
epatch "${WORKDIR}/patches/${PN}-8.64-system-jasper.patch" |
127 |
epatch "${WORKDIR}/patches/${PN}-8.64-pksmraw.patch" |
128 |
|
129 |
# Fixes which are already applied in ghostscript trunk |
130 |
epatch "${WORKDIR}/patches/${PN}-8.64-bitcmyk-regression-r9452.patch" |
131 |
epatch "${WORKDIR}/patches/${PN}-8.64-respect-ldflags-r9461.patch" |
132 |
epatch "${WORKDIR}/patches/${PN}-8.64-respect-ldflags-r9476.patch" |
133 |
|
134 |
if use bindist && use djvu ; then |
135 |
ewarn "You have bindist in your USE, djvu support will NOT be compiled!" |
136 |
ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues." |
137 |
fi |
138 |
|
139 |
if ! use bindist && use djvu ; then |
140 |
unpack gsdjvu-${GSDJVU_PV}.tar.gz |
141 |
cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" |
142 |
cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}/base" |
143 |
epatch "${WORKDIR}/patches/${PN}-8.64-gsdjvu-1.3.patch" |
144 |
cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}/lib" |
145 |
cp "${S}/base/contrib.mak" "${S}/base/contrib.mak.gsdjvu" |
146 |
grep -q djvusep "${S}/base/contrib.mak" || \ |
147 |
cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}/base/contrib.mak" |
148 |
|
149 |
# install ps2utf8.ps, bug #197818 |
150 |
sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' "${S}/base/unixinst.mak" \ |
151 |
|| die "sed failed" |
152 |
fi |
153 |
|
154 |
if ! use gtk ; then |
155 |
sed -i "s:\$(GSSOX)::" base/*.mak || die "gsx sed failed" |
156 |
sed -i "s:.*\$(GSSOX_XENAME)$::" base/*.mak || die "gsxso sed failed" |
157 |
fi |
158 |
|
159 |
# search path fix |
160 |
sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \ |
161 |
-e 's:$(gsdir)/fonts:/usr/share/fonts/default/ghostscript/:' \ |
162 |
-e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \ |
163 |
-e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \ |
164 |
-e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \ |
165 |
base/Makefile.in base/*.mak || die "sed failed" |
166 |
|
167 |
cd "${S}" |
168 |
eautoreconf |
169 |
|
170 |
cd "${S}/ijs" |
171 |
eautoreconf |
172 |
} |
173 |
|
174 |
src_compile() { |
175 |
econf \ |
176 |
$(use_enable cairo) \ |
177 |
$(use_enable cups) \ |
178 |
$(use_enable gtk) \ |
179 |
$(use_with jpeg2k jasper) \ |
180 |
$(use_with X x) \ |
181 |
--disable-compile-inits \ |
182 |
--enable-dynamic \ |
183 |
--enable-fontconfig \ |
184 |
--with-drivers=ALL \ |
185 |
--with-ijs \ |
186 |
--with-jbig2dec \ |
187 |
--with-libpaper |
188 |
|
189 |
if ! use bindist && use djvu ; then |
190 |
sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' Makefile |
191 |
fi |
192 |
|
193 |
emake -j1 so all || die "emake failed" |
194 |
|
195 |
cd "${S}/ijs" |
196 |
econf || die "ijs econf failed" |
197 |
emake || die "ijs emake failed" |
198 |
} |
199 |
|
200 |
src_install() { |
201 |
# parallel install is broken, bug #251066 |
202 |
emake -j1 DESTDIR="${D}" install-so install || die "emake install failed" |
203 |
|
204 |
if ! use bindist && use djvu ; then |
205 |
dobin gsdjvu || die "dobin gsdjvu install failed" |
206 |
fi |
207 |
|
208 |
# remove gsc in favor of gambit, bug #253064 |
209 |
rm -rf "${D}/usr/bin/gsc" |
210 |
|
211 |
rm -rf "${D}/usr/share/doc/${PF}/html/"{README,PUBLIC} |
212 |
dodoc doc/README || die "dodoc install failed" |
213 |
|
214 |
cd "${S}/ijs" |
215 |
emake DESTDIR="${D}" install || die "emake ijs install failed" |
216 |
} |