1 |
axs 14/04/30 17:46:03 |
2 |
|
3 |
Modified: thunderbird-17.0.9.ebuild ChangeLog |
4 |
Added: thunderbird-24.5.0.ebuild |
5 |
Removed: thunderbird-24.3.0.ebuild |
6 |
Log: |
7 |
version bump, security bug 509050 ; also fixed a deptree resolution issue on uclibc profiles for 17.x |
8 |
|
9 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED) |
10 |
|
11 |
Revision Changes Path |
12 |
1.8 mail-client/thunderbird/thunderbird-17.0.9.ebuild |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-17.0.9.ebuild?rev=1.8&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-17.0.9.ebuild?rev=1.8&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-17.0.9.ebuild?r1=1.7&r2=1.8 |
17 |
|
18 |
Index: thunderbird-17.0.9.ebuild |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-17.0.9.ebuild,v |
21 |
retrieving revision 1.7 |
22 |
retrieving revision 1.8 |
23 |
diff -u -r1.7 -r1.8 |
24 |
--- thunderbird-17.0.9.ebuild 22 Sep 2013 06:58:33 -0000 1.7 |
25 |
+++ thunderbird-17.0.9.ebuild 30 Apr 2014 17:46:03 -0000 1.8 |
26 |
@@ -1,6 +1,6 @@ |
27 |
-# Copyright 1999-2013 Gentoo Foundation |
28 |
+# Copyright 1999-2014 Gentoo Foundation |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-17.0.9.ebuild,v 1.7 2013/09/22 06:58:33 ago Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-17.0.9.ebuild,v 1.8 2014/04/30 17:46:03 axs Exp $ |
32 |
|
33 |
EAPI="3" |
34 |
WANT_AUTOCONF="2.1" |
35 |
@@ -82,7 +82,7 @@ |
36 |
) )" |
37 |
|
38 |
DEPEND="${RDEPEND} |
39 |
- !elibc_glibc? ( dev-libs/libexecinfo ) |
40 |
+ !elibc_glibc? ( !elibc_uclibc? ( dev-libs/libexecinfo ) ) |
41 |
virtual/pkgconfig |
42 |
amd64? ( ${ASM_DEPEND} |
43 |
virtual/opengl ) |
44 |
|
45 |
|
46 |
|
47 |
1.277 mail-client/thunderbird/ChangeLog |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.277&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.277&content-type=text/plain |
51 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?r1=1.276&r2=1.277 |
52 |
|
53 |
Index: ChangeLog |
54 |
=================================================================== |
55 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v |
56 |
retrieving revision 1.276 |
57 |
retrieving revision 1.277 |
58 |
diff -u -r1.276 -r1.277 |
59 |
--- ChangeLog 24 Mar 2014 14:33:55 -0000 1.276 |
60 |
+++ ChangeLog 30 Apr 2014 17:46:03 -0000 1.277 |
61 |
@@ -1,6 +1,14 @@ |
62 |
# ChangeLog for mail-client/thunderbird |
63 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
64 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.276 2014/03/24 14:33:55 ago Exp $ |
65 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.277 2014/04/30 17:46:03 axs Exp $ |
66 |
+ |
67 |
+*thunderbird-24.5.0 (30 Apr 2014) |
68 |
+ |
69 |
+ 30 Apr 2014; Ian Stakenvicius (_AxS_) <axs@g.o> |
70 |
+ +thunderbird-24.5.0.ebuild, -thunderbird-24.3.0.ebuild, |
71 |
+ thunderbird-17.0.9.ebuild: |
72 |
+ version bump, security bug 509050 ; also fixed a deptree resolution issue on |
73 |
+ uclibc profiles for 17.x |
74 |
|
75 |
24 Mar 2014; Agostino Sarubbo <ago@g.o> thunderbird-24.4.0.ebuild: |
76 |
Stable for ppc64, wrt bug #505072 |
77 |
|
78 |
|
79 |
|
80 |
1.1 mail-client/thunderbird/thunderbird-24.5.0.ebuild |
81 |
|
82 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-24.5.0.ebuild?rev=1.1&view=markup |
83 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-24.5.0.ebuild?rev=1.1&content-type=text/plain |
84 |
|
85 |
Index: thunderbird-24.5.0.ebuild |
86 |
=================================================================== |
87 |
# Copyright 1999-2014 Gentoo Foundation |
88 |
# Distributed under the terms of the GNU General Public License v2 |
89 |
# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-24.5.0.ebuild,v 1.1 2014/04/30 17:46:03 axs Exp $ |
90 |
|
91 |
EAPI=5 |
92 |
WANT_AUTOCONF="2.1" |
93 |
MOZ_ESR="" |
94 |
MOZ_LIGHTNING_VER="2.6.2" |
95 |
|
96 |
# This list can be updated using scripts/get_langs.sh from the mozilla overlay |
97 |
MOZ_LANGS=(ar ast be bg bn-BD br ca cs da de el en en-GB en-US es-AR |
98 |
es-ES et eu fi fr fy-NL ga-IE gd gl he hr hu hy-AM id is it ja ko lt nb-NO |
99 |
nl nn-NO pa-IN pl pt-BR pt-PT rm ro ru si sk sl sq sr sv-SE ta-LK tr uk vi |
100 |
zh-CN zh-TW ) |
101 |
|
102 |
# Convert the ebuild version to th firefox-24.0-patches-0.4.tar.xze upstream mozilla version, used by mozlinguas |
103 |
MOZ_PV="${PV/_beta/b}" |
104 |
# ESR releases have slightly version numbers |
105 |
if [[ ${MOZ_ESR} == 1 ]]; then |
106 |
MOZ_PV="${MOZ_PV}esr" |
107 |
fi |
108 |
MOZ_P="${PN}-${MOZ_PV}" |
109 |
|
110 |
# Enigmail version |
111 |
EMVER="1.6" |
112 |
# Upstream ftp release URI that's used by mozlinguas.eclass |
113 |
# We don't use the http mirror because it deletes old tarballs. |
114 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/" |
115 |
MOZ_HTTP_URI="http://ftp.mozilla.org/pub/${PN}/releases/" |
116 |
|
117 |
inherit flag-o-matic toolchain-funcs mozconfig-3 makeedit multilib autotools pax-utils check-reqs nsplugins mozlinguas |
118 |
|
119 |
DESCRIPTION="Thunderbird Mail Client" |
120 |
HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/" |
121 |
|
122 |
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
123 |
SLOT="0" |
124 |
LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
125 |
IUSE="bindist crypt gstreamer +jit ldap +lightning +minimal mozdom pulseaudio selinux system-cairo system-icu system-jpeg system-sqlite" |
126 |
|
127 |
PATCH="thunderbird-24.0-patches-0.1" |
128 |
PATCHFF="firefox-24.0-patches-0.9" |
129 |
|
130 |
SRC_URI="${SRC_URI} |
131 |
${MOZ_FTP_URI}${MOZ_PV}/source/${MOZ_P}.source.tar.bz2 |
132 |
${MOZ_HTTP_URI}${MOZ_PV}/source/${MOZ_P}.source.tar.bz2 |
133 |
crypt? ( http://www.enigmail.net/download/source/enigmail-${EMVER}.tar.gz ) |
134 |
lightning? ( |
135 |
${MOZ_HTTP_URI/${PN}/calendar/lightning}/${MOZ_LIGHTNING_VER}/linux/lightning.xpi -> lightning-${MOZ_LIGHTNING_VER}.xpi |
136 |
${MOZ_HTTP_URI/${PN}/calendar/lightning}/${MOZ_LIGHTNING_VER}/linux/gdata-provider.xpi -> gdata-provider-${MOZ_LIGHTNING_VER}.xpi |
137 |
) |
138 |
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.xz |
139 |
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz |
140 |
http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz" |
141 |
|
142 |
ASM_DEPEND=">=dev-lang/yasm-1.1" |
143 |
|
144 |
RDEPEND=" |
145 |
>=dev-libs/nss-3.16 |
146 |
>=dev-libs/nspr-4.10.4 |
147 |
>=dev-libs/glib-2.26:2 |
148 |
>=media-libs/mesa-7.10 |
149 |
>=media-libs/libpng-1.6.6[apng] |
150 |
virtual/libffi |
151 |
gstreamer? ( media-plugins/gst-plugins-meta:0.10[ffmpeg] ) |
152 |
pulseaudio? ( media-sound/pulseaudio ) |
153 |
system-cairo? ( >=x11-libs/cairo-1.12[X] ) |
154 |
system-icu? ( >=dev-libs/icu-51.1 ) |
155 |
system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) |
156 |
system-sqlite? ( >=dev-db/sqlite-3.8.0.2:3[secure-delete,debug=] ) |
157 |
>=media-libs/libvpx-1.0.0 |
158 |
kernel_linux? ( media-libs/alsa-lib ) |
159 |
selinux? ( sec-policy/selinux-thunderbird ) |
160 |
!x11-plugins/enigmail |
161 |
crypt? ( || ( |
162 |
( >=app-crypt/gnupg-2.0 |
163 |
|| ( |
164 |
app-crypt/pinentry[gtk] |
165 |
app-crypt/pinentry[qt4] |
166 |
) |
167 |
) |
168 |
=app-crypt/gnupg-1.4* |
169 |
) )" |
170 |
|
171 |
DEPEND="${RDEPEND} |
172 |
>=sys-devel/binutils-2.16.1 |
173 |
virtual/pkgconfig |
174 |
amd64? ( ${ASM_DEPEND} |
175 |
virtual/opengl ) |
176 |
x86? ( ${ASM_DEPEND} |
177 |
virtual/opengl )" |
178 |
|
179 |
if [[ ${PV} =~ beta ]]; then |
180 |
S="${WORKDIR}/comm-beta" |
181 |
else |
182 |
S="${WORKDIR}/comm-esr${PV%%.*}" |
183 |
fi |
184 |
|
185 |
pkg_setup() { |
186 |
moz_pkgsetup |
187 |
|
188 |
export MOZILLA_DIR="${S}/mozilla" |
189 |
|
190 |
if ! use bindist ; then |
191 |
elog "You are enabling official branding. You may not redistribute this build" |
192 |
elog "to any users on your network or the internet. Doing so puts yourself into" |
193 |
elog "a legal problem with Mozilla Foundation" |
194 |
elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" |
195 |
elog |
196 |
fi |
197 |
} |
198 |
|
199 |
pkg_pretend() { |
200 |
# Ensure we have enough disk space to compile |
201 |
CHECKREQS_DISK_BUILD="4G" |
202 |
check-reqs_pkg_setup |
203 |
} |
204 |
|
205 |
src_unpack() { |
206 |
unpack ${A} |
207 |
|
208 |
# Unpack language packs |
209 |
mozlinguas_src_unpack |
210 |
|
211 |
# Unpack lightning for calendar locales |
212 |
if use lightning ; then |
213 |
xpi_unpack lightning-${MOZ_LIGHTNING_VER}.xpi |
214 |
xpi_unpack gdata-provider-${MOZ_LIGHTNING_VER}.xpi |
215 |
fi |
216 |
} |
217 |
|
218 |
src_prepare() { |
219 |
# Apply our Thunderbird patchset |
220 |
EPATCH_SUFFIX="patch" \ |
221 |
EPATCH_FORCE="yes" \ |
222 |
epatch "${WORKDIR}/thunderbird" |
223 |
|
224 |
# Apply our patchset from firefox to thunderbird as well |
225 |
pushd "${S}"/mozilla &>/dev/null || die |
226 |
EPATCH_SUFFIX="patch" \ |
227 |
EPATCH_FORCE="yes" \ |
228 |
epatch "${WORKDIR}/firefox" |
229 |
popd &>/dev/null || die |
230 |
|
231 |
if use crypt ; then |
232 |
mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail |
233 |
pushd "${S}"/mailnews/extensions/enigmail &>/dev/null || die |
234 |
epatch "${FILESDIR}"/enigmail-1.6.0-parallel-fix.patch |
235 |
popd &>/dev/null || die |
236 |
fi |
237 |
|
238 |
# Ensure that are plugins dir is enabled as default |
239 |
sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \ |
240 |
"${S}"/mozilla/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!" |
241 |
sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \ |
242 |
"${S}"/mozilla/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!" |
243 |
|
244 |
# Don't exit with error when some libs are missing which we have in |
245 |
# system. |
246 |
sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \ |
247 |
-i "${S}"/mail/installer/Makefile.in || die |
248 |
|
249 |
# Don't error out when there's no files to be removed: |
250 |
sed 's@\(xargs rm\)$@\1 -f@' \ |
251 |
-i "${S}"/mozilla/toolkit/mozapps/installer/packager.mk || die |
252 |
|
253 |
# Shell scripts sometimes contain DOS line endings; bug 391889 |
254 |
grep -rlZ --include="*.sh" $'\r$' . | |
255 |
while read -r -d $'\0' file ; do |
256 |
einfo edos2unix "${file}" |
257 |
edos2unix "${file}" |
258 |
done |
259 |
|
260 |
# Confirm the version of lightning being grabbed for langpacks is the same |
261 |
# as that used in thunderbird |
262 |
local THIS_MOZ_LIGHTNING_VER=$(cat "${S}"/calendar/sunbird/config/version.txt) |
263 |
if [[ ${MOZ_LIGHTNING_VER} != ${THIS_MOZ_LIGHTNING_VER} ]]; then |
264 |
eqawarn "The version of lightning used for localization differs from the version" |
265 |
eqawarn "in thunderbird. Please update MOZ_LIGHTNING_VER in the ebuild from ${MOZ_LIGHTNING_VER}" |
266 |
eqawarn "to ${THIS_MOZ_LIGHTNING_VER}" |
267 |
fi |
268 |
|
269 |
# Allow user to apply any additional patches without modifing ebuild |
270 |
epatch_user |
271 |
|
272 |
eautoreconf |
273 |
# Ensure we run eautoreconf in mozilla to regenerate configure |
274 |
cd "${S}"/mozilla |
275 |
eautoconf |
276 |
} |
277 |
|
278 |
src_configure() { |
279 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
280 |
MEXTENSIONS="default" |
281 |
|
282 |
#################################### |
283 |
# |
284 |
# mozconfig, CFLAGS and CXXFLAGS setup |
285 |
# |
286 |
#################################### |
287 |
|
288 |
mozconfig_init |
289 |
mozconfig_config |
290 |
|
291 |
# It doesn't compile on alpha without this LDFLAGS |
292 |
use alpha && append-ldflags "-Wl,--no-relax" |
293 |
|
294 |
# We must force enable jemalloc 3 threw .mozconfig |
295 |
echo "export MOZ_JEMALLOC=1" >> ${S}/.mozconfig |
296 |
|
297 |
mozconfig_annotate '' --enable-jemalloc |
298 |
mozconfig_annotate '' --enable-replace-malloc |
299 |
mozconfig_annotate '' --prefix="${EPREFIX}"/usr |
300 |
mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir) |
301 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
302 |
mozconfig_annotate '' --disable-gconf |
303 |
mozconfig_annotate '' --disable-mailnews |
304 |
mozconfig_annotate '' --with-system-png |
305 |
mozconfig_annotate '' --enable-system-ffi |
306 |
|
307 |
# Other ff-specific settings |
308 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
309 |
mozconfig_annotate '' --with-user-appdir=.thunderbird |
310 |
mozconfig_annotate '' --target="${CTARGET:-${CHOST}}" |
311 |
mozconfig_annotate '' --build="${CTARGET:-${CHOST}}" |
312 |
|
313 |
# Use enable features |
314 |
mozconfig_use_enable gstreamer |
315 |
mozconfig_use_enable pulseaudio |
316 |
mozconfig_use_enable system-cairo |
317 |
mozconfig_use_enable system-sqlite |
318 |
mozconfig_use_with system-jpeg |
319 |
mozconfig_use_with system-icu |
320 |
mozconfig_use_enable system-icu intl-api |
321 |
mozconfig_use_enable lightning calendar |
322 |
mozconfig_use_enable ldap |
323 |
# Feature is know to cause problems on hardened |
324 |
mozconfig_use_enable jit ion |
325 |
|
326 |
# Bug #72667 |
327 |
if use mozdom; then |
328 |
MEXTENSIONS="${MEXTENSIONS},inspector" |
329 |
fi |
330 |
|
331 |
# Use an objdir to keep things organized. |
332 |
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/tbird" >> "${S}"/.mozconfig |
333 |
|
334 |
# Finalize and report settings |
335 |
mozconfig_final |
336 |
|
337 |
#################################### |
338 |
# |
339 |
# Configure and build |
340 |
# |
341 |
#################################### |
342 |
|
343 |
# Disable no-print-directory |
344 |
MAKEOPTS=${MAKEOPTS/--no-print-directory/} |
345 |
|
346 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
347 |
append-cxxflags -fno-stack-protector |
348 |
elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]]; then |
349 |
if use amd64 || use x86; then |
350 |
append-flags -mno-avx |
351 |
fi |
352 |
fi |
353 |
} |
354 |
|
355 |
src_compile() { |
356 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
357 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \ |
358 |
emake -f client.mk |
359 |
|
360 |
# Only build enigmail extension if crypt enabled. |
361 |
if use crypt ; then |
362 |
cd "${S}"/mailnews/extensions/enigmail || die |
363 |
./makemake -r 2&> /dev/null |
364 |
cd "${S}"/tbird/mailnews/extensions/enigmail |
365 |
emake |
366 |
emake xpi |
367 |
fi |
368 |
} |
369 |
|
370 |
src_install() { |
371 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
372 |
DICTPATH="\"${EPREFIX}/usr/share/myspell\"" |
373 |
|
374 |
declare emid |
375 |
local obj_dir="tbird" |
376 |
cd "${S}/${obj_dir}" |
377 |
|
378 |
# Copy our preference before omnijar is created. |
379 |
cp "${FILESDIR}"/thunderbird-gentoo-default-prefs-1.js-1 \ |
380 |
"${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \ |
381 |
|| die |
382 |
|
383 |
# Set default path to search for dictionaries. |
384 |
echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \ |
385 |
>> "${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \ |
386 |
|| die |
387 |
|
388 |
# Pax mark xpcshell for hardened support, only used for startupcache creation. |
389 |
pax-mark m "${S}"/${obj_dir}/mozilla/dist/bin/xpcshell |
390 |
|
391 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" \ |
392 |
emake DESTDIR="${D}" install |
393 |
|
394 |
# Install language packs |
395 |
mozlinguas_src_install |
396 |
|
397 |
if ! use bindist; then |
398 |
newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png |
399 |
domenu "${FILESDIR}"/icon/${PN}.desktop |
400 |
else |
401 |
newicon "${S}"/mail/branding/aurora/content/icon48.png thunderbird-icon-unbranded.png |
402 |
newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \ |
403 |
${PN}.desktop |
404 |
|
405 |
sed -i -e "s:Mozilla\ Thunderbird:EarlyBird:g" \ |
406 |
"${ED}"/usr/share/applications/${PN}.desktop |
407 |
fi |
408 |
|
409 |
if use crypt ; then |
410 |
cd "${T}" || die |
411 |
unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi install.rdf \ |
412 |
|| die |
413 |
emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
414 |
|
415 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
416 |
cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
417 |
unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi || die |
418 |
fi |
419 |
|
420 |
if use lightning ; then |
421 |
local l c |
422 |
mozlinguas_export |
423 |
|
424 |
emid="{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}" |
425 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} |
426 |
cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid} |
427 |
unzip "${S}"/${obj_dir}/mozilla/dist/xpi-stage/gdata-provider-*.xpi |
428 |
# Install locales for gdata-provider -- each locale is a directory tree |
429 |
insinto ${MOZILLA_FIVE_HOME}/extensions/${emid}/chrome |
430 |
cd "${WORKDIR}"/gdata-provider-${MOZ_LIGHTNING_VER}/chrome |
431 |
for l in "${mozlinguas[@]}"; do if [[ -d gdata-provider-${l} ]]; then |
432 |
doins -r gdata-provider-${l} |
433 |
echo "locale gdata-provider ${l} chrome/gdata-provider-${l}/locale/${l}/" \ |
434 |
>> "${ED}"/${MOZILLA_FIVE_HOME}/extensions/${emid}/chrome.manifest \ |
435 |
|| die "Error adding gdata-provider-${l} to chrome.manifest" |
436 |
else |
437 |
ewarn "Sorry, but lightning gdata-provider in ${P} does not support the ${l} locale" |
438 |
fi; done |
439 |
|
440 |
emid="{e2fda1a4-762b-4020-b5ad-a41df1933103}" |
441 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} |
442 |
cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
443 |
unzip "${S}"/${obj_dir}/mozilla/dist/xpi-stage/lightning-*.xpi \ |
444 |
|| die |
445 |
# Install locales for lightning - each locale is a jar file |
446 |
insinto ${MOZILLA_FIVE_HOME}/extensions/${emid}/chrome |
447 |
cd "${WORKDIR}"/lightning-${MOZ_LIGHTNING_VER}/chrome || die |
448 |
for l in "${mozlinguas[@]}"; do if [[ -e calendar-${l}.jar ]]; then |
449 |
for c in calendar lightning; do |
450 |
doins ${c}-${l}.jar |
451 |
echo "locale ${c} $l jar:chrome/${c}-${l}.jar!/locale/${l}/${c}/" \ |
452 |
>> "${ED}"/${MOZILLA_FIVE_HOME}/extensions/${emid}/chrome.manifest \ |
453 |
|| die "Error adding ${c}-${l} to chrome.manifest" |
454 |
done |
455 |
else |
456 |
ewarn "Sorry, but lightning calendar in ${P} does not support the ${l} locale" |
457 |
fi; done |
458 |
|
459 |
# Fix mimetype so it shows up as a calendar application in GNOME 3 |
460 |
# This requires that the .desktop file was already installed earlier |
461 |
sed -e "s:^\(MimeType=\):\1text/calendar;:" \ |
462 |
-e "s:^\(Categories=\):\1Calendar;:" \ |
463 |
-i "${ED}"/usr/share/applications/${PN}.desktop || die |
464 |
fi |
465 |
|
466 |
pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/{thunderbird-bin,thunderbird} |
467 |
|
468 |
# Plugin-container needs to be pax-marked for hardened to ensure plugins such as flash |
469 |
# continue to work as expected. |
470 |
pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/plugin-container |
471 |
|
472 |
if use minimal; then |
473 |
rm -r "${ED}"/usr/include "${ED}"${MOZILLA_FIVE_HOME}/{idl,include,lib,sdk} || \ |
474 |
die "Failed to remove sdk and headers" |
475 |
fi |
476 |
} |
477 |
|
478 |
pkg_postinst() { |
479 |
elog |
480 |
elog "If you experience problems with plugins please issue the" |
481 |
elog "following command : rm \${HOME}/.thunderbird/*/extensions.sqlite ," |
482 |
elog "then restart thunderbird" |
483 |
} |