1 |
polynomial-c 10/10/28 15:19:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: seamonkey-2.0.10.ebuild |
5 |
Removed: seamonkey-2.0.8-r1.ebuild |
6 |
Log: |
7 |
Security bump (bug #342847). |
8 |
|
9 |
(Portage version: 2.2.0_alpha2/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.268 www-client/seamonkey/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.268&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.268&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?r1=1.267&r2=1.268 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v |
21 |
retrieving revision 1.267 |
22 |
retrieving revision 1.268 |
23 |
diff -u -r1.267 -r1.268 |
24 |
--- ChangeLog 25 Oct 2010 00:33:01 -0000 1.267 |
25 |
+++ ChangeLog 28 Oct 2010 15:19:22 -0000 1.268 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for www-client/seamonkey |
28 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.267 2010/10/25 00:33:01 fauli Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.268 2010/10/28 15:19:22 polynomial-c Exp $ |
31 |
+ |
32 |
+*seamonkey-2.0.10 (28 Oct 2010) |
33 |
+ |
34 |
+ 28 Oct 2010; Lars Wendler <polynomial-c@g.o> |
35 |
+ +files/seamonkey-2.0-gtk+-2.21.patch, -seamonkey-2.0.8-r1.ebuild, |
36 |
+ +seamonkey-2.0.10.ebuild: |
37 |
+ Security bump (bug #342847). |
38 |
|
39 |
25 Oct 2010; Christian Faulhammer <fauli@g.o> |
40 |
seamonkey-2.0.9.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 www-client/seamonkey/seamonkey-2.0.10.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.0.10.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.0.10.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: seamonkey-2.0.10.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2010 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/seamonkey-2.0.10.ebuild,v 1.1 2010/10/28 15:19:22 polynomial-c Exp $ |
54 |
|
55 |
EAPI="2" |
56 |
WANT_AUTOCONF="2.1" |
57 |
|
58 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib fdo-mime autotools mozextension java-pkg-opt-2 |
59 |
|
60 |
PATCH="${PN}-2.0.7-patches-01" |
61 |
EMVER="1.0.1" |
62 |
|
63 |
LANGS="be ca cs de en-GB en-US es-AR es-ES fr gl hu it ja ka lt nb-NO nl pl pt-PT ru sk sv-SE tr zh-CN" |
64 |
NOSHORTLANGS="en-GB es-AR es-ES nb-NO pt-PT sv-SE zh-CN" |
65 |
|
66 |
MY_PV="${PV/_pre*}" |
67 |
MY_PV="${MY_PV/_alpha/a}" |
68 |
MY_PV="${MY_PV/_beta/b}" |
69 |
MY_PV="${MY_PV/_rc/rc}" |
70 |
MY_P="${PN}-${MY_PV}" |
71 |
|
72 |
# release versions usually have language packs. So be careful with changing this. |
73 |
HAS_LANGS="true" |
74 |
if [[ ${PV} == *_pre* ]] ; then |
75 |
# pre-releases. No need for arch teams to change KEYWORDS here. |
76 |
|
77 |
REL_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${PN}/nightly/${MY_PV}-candidates/build${PV##*_pre}" |
78 |
#KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
79 |
KEYWORDS="" |
80 |
#HAS_LANGS="false" |
81 |
else |
82 |
# This is where arch teams should change the KEYWORDS. |
83 |
|
84 |
REL_URI="http://releases.mozilla.org/pub/mozilla.org/${PN}/releases/${MY_PV}" |
85 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
86 |
[[ ${PV} == *alpha* ]] && HAS_LANGS="false" |
87 |
fi |
88 |
|
89 |
DESCRIPTION="Seamonkey Web Browser" |
90 |
HOMEPAGE="http://www.seamonkey-project.org" |
91 |
|
92 |
SLOT="0" |
93 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
94 |
IUSE="+alsa +chatzilla +composer +crypt java ldap +mailclient +roaming system-sqlite" |
95 |
|
96 |
SRC_URI="${REL_URI}/source/${MY_P}.source.tar.bz2 |
97 |
http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.bz2 |
98 |
crypt? ( mailclient? ( http://www.mozilla-enigmail.org/download/source/enigmail-${EMVER}.tar.gz ) )" |
99 |
|
100 |
if ${HAS_LANGS} ; then |
101 |
for X in ${LANGS} ; do |
102 |
if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then |
103 |
SRC_URI="${SRC_URI} |
104 |
linguas_${X/-/_}? ( ${REL_URI}/langpack/${MY_P}.${X}.langpack.xpi -> ${MY_P}-${X}.xpi )" |
105 |
fi |
106 |
IUSE="${IUSE} linguas_${X/-/_}" |
107 |
# english is handled internally |
108 |
if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then |
109 |
if [ "${X}" != "en-US" ]; then |
110 |
SRC_URI="${SRC_URI} |
111 |
linguas_${X%%-*}? ( ${REL_URI}/langpack/${MY_P}.${X}.langpack.xpi -> ${MY_P}-${X}.xpi )" |
112 |
fi |
113 |
IUSE="${IUSE} linguas_${X%%-*}" |
114 |
fi |
115 |
done |
116 |
fi |
117 |
|
118 |
RDEPEND="java? ( virtual/jre ) |
119 |
>=sys-devel/binutils-2.16.1 |
120 |
>=dev-libs/nss-3.12.8 |
121 |
>=dev-libs/nspr-4.8.6 |
122 |
alsa? ( media-libs/alsa-lib ) |
123 |
system-sqlite? ( >=dev-db/sqlite-3.6.22-r2[fts3,secure-delete] ) |
124 |
>=app-text/hunspell-1.2 |
125 |
>=x11-libs/gtk+-2.10.0 |
126 |
>=x11-libs/pango-1.14.0[X] |
127 |
crypt? ( mailclient? ( >=app-crypt/gnupg-1.4 ) )" |
128 |
|
129 |
DEPEND="${RDEPEND} |
130 |
dev-util/pkgconfig |
131 |
java? ( >=virtual/jdk-1.4 )" |
132 |
|
133 |
S="${WORKDIR}/comm-1.9.1" |
134 |
|
135 |
linguas() { |
136 |
local LANG SLANG |
137 |
for LANG in ${LINGUAS}; do |
138 |
if has ${LANG} en en_US; then |
139 |
has en ${linguas} || linguas="${linguas:+"${linguas} "}en" |
140 |
continue |
141 |
elif has ${LANG} ${LANGS//-/_}; then |
142 |
has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" |
143 |
continue |
144 |
elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then |
145 |
for X in ${LANGS}; do |
146 |
if [[ "${X}" == "${LANG}-"* ]] && \ |
147 |
[[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then |
148 |
has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" |
149 |
continue 2 |
150 |
fi |
151 |
done |
152 |
fi |
153 |
ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" |
154 |
done |
155 |
} |
156 |
|
157 |
src_unpack() { |
158 |
unpack ${A} |
159 |
|
160 |
if ${HAS_LANGS} ; then |
161 |
linguas |
162 |
for X in ${linguas}; do |
163 |
# FIXME: Add support for unpacking xpis to portage |
164 |
[[ ${X} != "en" ]] && xpi_unpack "${MY_P}-${X}.xpi" |
165 |
done |
166 |
if [[ ${linguas} != "" && ${linguas} != "en" ]]; then |
167 |
einfo "Selected language packs (first will be default): ${linguas}" |
168 |
fi |
169 |
fi |
170 |
} |
171 |
|
172 |
pkg_setup() { |
173 |
if [[ ${PV} == *_pre* ]] ; then |
174 |
ewarn "You're using an unofficial release of ${PN}. Don't file any bug in" |
175 |
ewarn "Gentoo's Bugtracker against this package in case it breaks for you." |
176 |
ewarn "Those belong to upstream: https://bugzilla.mozilla.org" |
177 |
fi |
178 |
|
179 |
# Ensure we always build with C locale. |
180 |
export LANG="C" |
181 |
export LC_ALL="C" |
182 |
export LC_MESSAGES="C" |
183 |
export LC_CTYPE="C" |
184 |
|
185 |
export BUILD_OFFICIAL=1 |
186 |
export MOZILLA_OFFICIAL=1 |
187 |
|
188 |
java-pkg-opt-2_pkg_setup |
189 |
} |
190 |
|
191 |
src_prepare() { |
192 |
java-pkg-opt-2_src_prepare |
193 |
|
194 |
# Apply our patches |
195 |
EPATCH_SUFFIX="patch" \ |
196 |
EPATCH_FORCE="yes" \ |
197 |
epatch "${WORKDIR}/patch" |
198 |
|
199 |
epatch "${FILESDIR}"/bug-606109.patch |
200 |
epatch "${FILESDIR}"/${PN}-2.0-gtk+-2.21.patch |
201 |
|
202 |
if use crypt && use mailclient ; then |
203 |
mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail |
204 |
cd "${S}"/mailnews/extensions/enigmail || die |
205 |
epatch "${FILESDIR}"/enigmail/70_enigmail-fix.patch |
206 |
makemake2 |
207 |
cd "${S}" |
208 |
fi |
209 |
|
210 |
eautoreconf |
211 |
} |
212 |
|
213 |
src_configure() { |
214 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
215 |
MEXTENSIONS="" |
216 |
|
217 |
#################################### |
218 |
# |
219 |
# mozconfig, CFLAGS and CXXFLAGS setup |
220 |
# |
221 |
#################################### |
222 |
|
223 |
mozconfig_init |
224 |
mozconfig_config |
225 |
|
226 |
# seamonkey has issues with >=x11-libs/cairo-1.10.0 (bug #337813). |
227 |
# If you don't like this blame upstream as they don't care about |
228 |
# anything than their damned bundled shit!!! |
229 |
sed '/--enable-system-cairo/s:enable:disable:' -i "${S}"/.mozconfig \ |
230 |
|| die |
231 |
|
232 |
# It doesn't compile on alpha without this LDFLAGS |
233 |
use alpha && append-ldflags "-Wl,--no-relax" |
234 |
|
235 |
if ! use chatzilla ; then |
236 |
MEXTENSIONS="${MEXTENSIONS},-irc" |
237 |
fi |
238 |
if ! use roaming ; then |
239 |
MEXTENSIONS="${MEXTENSIONS},-sroaming" |
240 |
fi |
241 |
|
242 |
if ! use gnome ; then |
243 |
MEXTENSIONS="${MEXTENSIONS},-gnomevfs" |
244 |
fi |
245 |
|
246 |
if ! use composer ; then |
247 |
if ! use chatzilla && ! use mailclient ; then |
248 |
mozconfig_annotate '-composer' --disable-composer |
249 |
fi |
250 |
fi |
251 |
|
252 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
253 |
mozconfig_annotate '' --enable-application=suite |
254 |
mozconfig_annotate 'broken' --disable-mochitest |
255 |
mozconfig_annotate 'broken' --disable-crashreporter |
256 |
mozconfig_annotate '' --enable-system-hunspell |
257 |
mozconfig_annotate '' --enable-jsd |
258 |
mozconfig_annotate '' --enable-image-encoder=all |
259 |
mozconfig_annotate '' --enable-canvas |
260 |
mozconfig_annotate '' --with-system-nspr |
261 |
mozconfig_annotate '' --with-system-nss |
262 |
mozconfig_annotate '' --with-system-bz2 |
263 |
mozconfig_annotate '' --enable-oji --enable-mathml |
264 |
mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks |
265 |
mozconfig_annotate '' --disable-installer |
266 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
267 |
mozconfig_annotate '' --enable-printing |
268 |
|
269 |
# Enable/Disable based on USE flags |
270 |
mozconfig_use_enable alsa ogg |
271 |
mozconfig_use_enable alsa wave |
272 |
mozconfig_use_enable java javaxpcom |
273 |
mozconfig_use_enable ldap |
274 |
mozconfig_use_enable ldap ldap-experimental |
275 |
mozconfig_use_enable mailclient mailnews |
276 |
mozconfig_use_enable system-sqlite |
277 |
|
278 |
# Finalize and report settings |
279 |
mozconfig_final |
280 |
|
281 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
282 |
append-cxxflags -fno-stack-protector |
283 |
fi |
284 |
|
285 |
#################################### |
286 |
# |
287 |
# Configure and build |
288 |
# |
289 |
#################################### |
290 |
|
291 |
# Work around breakage in makeopts with --no-print-directory |
292 |
MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
293 |
|
294 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf |
295 |
} |
296 |
|
297 |
src_compile() { |
298 |
# Should the build use multiprocessing? Not enabled by default, as it tends to break. |
299 |
[ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1" |
300 |
emake ${jobs} || die |
301 |
|
302 |
# Only build enigmail extension if conditions are met. |
303 |
if use crypt && use mailclient ; then |
304 |
emake -C "${S}"/mailnews/extensions/enigmail || die "make enigmail failed" |
305 |
emake -j1 -C "${S}"/mailnews/extensions/enigmail xpi || die "make enigmail xpi failed" |
306 |
fi |
307 |
} |
308 |
|
309 |
src_install() { |
310 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
311 |
declare emid |
312 |
|
313 |
emake DESTDIR="${D}" install || die "emake install failed" |
314 |
|
315 |
if use crypt && use mailclient ; then |
316 |
cd "${T}" || die |
317 |
unzip "${S}"/mozilla/dist/bin/enigmail*.xpi install.rdf || die |
318 |
emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
319 |
|
320 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
321 |
cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
322 |
unzip "${S}"/mozilla/dist/bin/enigmail*.xpi || die |
323 |
fi |
324 |
|
325 |
if ${HAS_LANGS} ; then |
326 |
linguas |
327 |
for X in ${linguas}; do |
328 |
[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${MY_P}-${X}" |
329 |
done |
330 |
fi |
331 |
|
332 |
# Install icon and .desktop for menu entry |
333 |
newicon "${S}"/suite/branding/content/icon64.png seamonkey.png || die |
334 |
domenu "${FILESDIR}"/icon/seamonkey.desktop || die |
335 |
|
336 |
# Add StartupNotify=true bug 290401 |
337 |
if use startup-notification ; then |
338 |
echo "StartupNotify=true" >> "${D}"/usr/share/applications/seamonkey.desktop |
339 |
fi |
340 |
|
341 |
# Add our default prefs |
342 |
sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo.js \ |
343 |
> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js |
344 |
|
345 |
# Plugins dir |
346 |
rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins || die "failed to remove existing plugins dir" |
347 |
dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins || die |
348 |
|
349 |
# shiny new man page |
350 |
doman "${S}"/suite/app/${PN}.1 || die |
351 |
} |
352 |
|
353 |
pkg_preinst() { |
354 |
declare MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}" |
355 |
|
356 |
if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then |
357 |
rm ${MOZILLA_FIVE_HOME}/plugins -rf |
358 |
fi |
359 |
} |
360 |
|
361 |
pkg_postinst() { |
362 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
363 |
|
364 |
# Update mimedb for the new .desktop file |
365 |
fdo-mime_desktop_database_update |
366 |
|
367 |
if use chatzilla ; then |
368 |
elog "chatzilla is now an extension which can be en-/disabled and configured via" |
369 |
elog "the Add-on manager." |
370 |
fi |
371 |
} |