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