Gentoo Archives: gentoo-commits

From: "Timo Gurr (tgurr)" <tgurr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/ghostscript-gpl: ChangeLog ghostscript-gpl-8.61.ebuild ghostscript-gpl-8.60.ebuild
Date: Fri, 30 Nov 2007 22:37:59
Message-Id: E1IyEUY-0005eA-PJ@stork.gentoo.org
1 tgurr 07/11/30 22:37:50
2
3 Modified: ChangeLog
4 Added: ghostscript-gpl-8.61.ebuild
5 Removed: ghostscript-gpl-8.60.ebuild
6 Log:
7 Add ghostscript-gpl-8.61.ebuild, fixes bug #200383. Remove a vulnerable 8.60 version.
8 (Portage version: 2.1.4_rc4)
9
10 Revision Changes Path
11 1.32 app-text/ghostscript-gpl/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.32&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?rev=1.32&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ChangeLog?r1=1.31&r2=1.32
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v
20 retrieving revision 1.31
21 retrieving revision 1.32
22 diff -u -r1.31 -r1.32
23 --- ChangeLog 10 Nov 2007 21:38:50 -0000 1.31
24 +++ ChangeLog 30 Nov 2007 22:37:50 -0000 1.32
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-text/ghostscript-gpl
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.31 2007/11/10 21:38:50 corsair Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ChangeLog,v 1.32 2007/11/30 22:37:50 tgurr Exp $
30 +
31 +*ghostscript-gpl-8.61 (30 Nov 2007)
32 +
33 + 30 Nov 2007; Timo Gurr <tgurr@g.o> -ghostscript-gpl-8.60.ebuild,
34 + +ghostscript-gpl-8.61.ebuild:
35 + Add ghostscript-gpl-8.61.ebuild, fixes bug #200383. Remove a vulnerable 8.60
36 + version.
37
38 10 Nov 2007; Markus Rothe <corsair@g.o>
39 ghostscript-gpl-8.60-r1.ebuild:
40
41
42
43 1.1 app-text/ghostscript-gpl/ghostscript-gpl-8.61.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-8.61.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-8.61.ebuild?rev=1.1&content-type=text/plain
47
48 Index: ghostscript-gpl-8.61.ebuild
49 ===================================================================
50 # Copyright 1999-2007 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-8.61.ebuild,v 1.1 2007/11/30 22:37:50 tgurr Exp $
53
54 inherit autotools elisp-common eutils versionator flag-o-matic
55
56 DESCRIPTION="GPL Ghostscript - the most current Ghostscript, AFPL, relicensed"
57 HOMEPAGE="http://ghostscript.com/"
58
59 MY_P=${P/-gpl}
60 GSDJVU_PV=1.3
61 PVM=$(get_version_component_range 1-2)
62 SRC_URI="cjk? ( ftp://ftp.gyve.org/pub/gs-cjk/adobe-cmaps-200406.tar.gz
63 ftp://ftp.gyve.org/pub/gs-cjk/acro5-cmaps-2001.tar.gz )
64 !bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) )
65 mirror://sourceforge/ghostscript/${MY_P}.tar.bz2
66 mirror://gentoo/${P}-patchset-1.tar.bz2"
67
68 LICENSE="GPL-2 CPL-1.0"
69 SLOT="0"
70 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
71 IUSE="bindist cjk cups djvu gtk jpeg2k X"
72
73 COMMON_DEPEND="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 cups? ( >=net-print/cups-1.1.20 )
80 gtk? ( >=x11-libs/gtk+-2.0 )
81 jpeg2k? ( media-libs/jasper )
82 X? ( x11-libs/libXt x11-libs/libXext )
83 !app-text/ghostscript-esp
84 !app-text/ghostscript-gnu"
85
86 DEPEND="${COMMON_DEPEND}
87 dev-util/pkgconfig"
88
89 RDEPEND="${COMMON_DEPEND}
90 cjk? ( media-fonts/arphicfonts
91 media-fonts/kochi-substitute
92 media-fonts/baekmuk-fonts )
93 media-fonts/gnu-gs-fonts-std"
94
95 S="${WORKDIR}/${MY_P}"
96
97 src_unpack() {
98 unpack ${A/adobe-cmaps-200406.tar.gz acro5-cmaps-2001.tar.gz}
99 if use cjk ; then
100 cat "${WORKDIR}/patches/ghostscript-esp-8.15.2-cidfmap.cjk" >> "${S}/lib/cidfmap"
101 cat "${WORKDIR}/patches/ghostscript-esp-8.15.2-FAPIcidfmap.cjk" >> "${S}/lib/FAPIcidfmap"
102 cd "${S}/Resource"
103 unpack adobe-cmaps-200406.tar.gz
104 unpack acro5-cmaps-2001.tar.gz
105 cd "${WORKDIR}"
106 fi
107
108 cd "${S}"
109
110 # Fedora patches
111 # upstream bug http://bugs.ghostscript.com/show_bug.cgi?id=689393
112 epatch "${WORKDIR}/patches/${PN}-8.61-ijs-krgb.patch"
113 epatch "${WORKDIR}/patches/${PN}-8.60-fPIC.patch"
114 epatch "${WORKDIR}/patches/${PN}-8.61-multilib.patch"
115 epatch "${WORKDIR}/patches/${PN}-8.60-noopt.patch"
116 epatch "${WORKDIR}/patches/${PN}-8.60-scripts.patch"
117
118 # additional Gentoo patches, compilation fixes
119 epatch "${WORKDIR}/patches/${PN}-8.61-rinkj.patch"
120
121 if use bindist && use djvu ; then
122 ewarn "You have bindist in your USE, djvu support will NOT be compiled!"
123 ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues."
124 fi
125
126 if ! use bindist && use djvu ; then
127 unpack gsdjvu-${GSDJVU_PV}.tar.gz
128 cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}"
129 cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}/src"
130 epatch "${WORKDIR}/patches/${PN}-8.61-gsdjvu-1.3.patch"
131 cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}/lib"
132 cp "${S}/src/contrib.mak" "${S}/src/contrib.mak.gsdjvu"
133 grep -q djvusep "${S}/src/contrib.mak" || \
134 cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}/src/contrib.mak"
135
136 # install ps2utf8.ps, bug #197818
137 sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' "${S}/src/unixinst.mak" \
138 || die "sed failed"
139 fi
140
141 if ! use gtk ; then
142 sed -i "s:\$(GSSOX)::" src/*.mak || die "gsx sed failed"
143 sed -i "s:.*\$(GSSOX_XENAME)$::" src/*.mak || die "gsxso sed failed"
144 fi
145
146 # search path fix
147 sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \
148 -e 's:$(gsdir)/fonts:/usr/share/fonts/default/ghostscript/:' \
149 -e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \
150 -e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \
151 -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \
152 src/Makefile.in src/*.mak || die "sed failed"
153
154 cd "${S}"
155 eautoreconf
156 }
157
158 src_compile() {
159 econf \
160 $(use_enable cups) \
161 $(use_enable gtk) \
162 $(use_with jpeg2k jasper) \
163 $(use_with X x) \
164 --enable-dynamic \
165 --enable-fontconfig \
166 --with-drivers=ALL,rinkj \
167 --with-ijs \
168 --with-jbig2dec \
169 || die "econf failed"
170
171 if ! use bindist && use djvu ; then
172 sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' Makefile
173 fi
174
175 emake -j1 so all || die "emake failed"
176
177 cd "${S}/ijs"
178 ./autogen.sh || die "ijs autogen failed"
179 emake || die "ijs emake failed"
180 }
181
182 src_install() {
183 emake DESTDIR="${D}" install-so install || die "emake install failed"
184
185 if ! use bindist && use djvu ; then
186 dobin gsdjvu || die "dobin gsdjvu install failed"
187 fi
188
189 rm -rf "${D}/usr/share/doc/${PF}/html/"{README,PUBLIC}
190 dodoc doc/README || die "dodoc install failed"
191
192 cd "${S}/ijs"
193 emake DESTDIR="${D}" install || die "emake ijs install failed"
194 }
195
196
197
198 --
199 gentoo-commits@g.o mailing list