Gentoo Archives: gentoo-commits

From: "Ian Stakenvicius (axs)" <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/thunderbird: metadata.xml thunderbird-31.3.0.ebuild thunderbird-31.5.0.ebuild thunderbird-31.4.0.ebuild thunderbird-24.8.0.ebuild ChangeLog thunderbird-17.0.9.ebuild
Date: Thu, 26 Feb 2015 15:14:49
Message-Id: 20150226151439.93F3D12998@oystercatcher.gentoo.org
1 axs 15/02/26 15:14:39
2
3 Modified: metadata.xml thunderbird-31.3.0.ebuild
4 thunderbird-31.4.0.ebuild thunderbird-24.8.0.ebuild
5 ChangeLog
6 Added: thunderbird-31.5.0.ebuild
7 Removed: thunderbird-17.0.9.ebuild
8 Log:
9 version bump; fixed bug 541416; dropped 17.x as it has missing deps despite being the only stable arm package
10
11 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
12
13 Revision Changes Path
14 1.13 mail-client/thunderbird/metadata.xml
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/metadata.xml?rev=1.13&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/metadata.xml?rev=1.13&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/metadata.xml?r1=1.12&r2=1.13
19
20 Index: metadata.xml
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/metadata.xml,v
23 retrieving revision 1.12
24 retrieving revision 1.13
25 diff -u -r1.12 -r1.13
26 --- metadata.xml 14 Oct 2014 20:05:59 -0000 1.12
27 +++ metadata.xml 26 Feb 2015 15:14:39 -0000 1.13
28 @@ -20,9 +20,6 @@
29 instead of bundled.</flag>
30 <flag name="system-sqlite">Use the system-wide <pkg>dev-db/sqlite</pkg>
31 installation with secure-delete enabled</flag>
32 - <flag name="ipc">Use inter-process communication between tabs and plugins.
33 - Allows for greater stability in case of plugin crashes</flag>
34 - <flag name="gconf">Enable gnome2 gconf support</flag>
35 <flag name="minimal">Remove the software development kit and headers</flag>
36 </use>
37 </pkgmetadata>
38
39
40
41 1.7 mail-client/thunderbird/thunderbird-31.3.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-31.3.0.ebuild?rev=1.7&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-31.3.0.ebuild?rev=1.7&content-type=text/plain
45 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-31.3.0.ebuild?r1=1.6&r2=1.7
46
47 Index: thunderbird-31.3.0.ebuild
48 ===================================================================
49 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-31.3.0.ebuild,v
50 retrieving revision 1.6
51 retrieving revision 1.7
52 diff -u -r1.6 -r1.7
53 --- thunderbird-31.3.0.ebuild 24 Dec 2014 14:55:42 -0000 1.6
54 +++ thunderbird-31.3.0.ebuild 26 Feb 2015 15:14:39 -0000 1.7
55 @@ -1,6 +1,6 @@
56 -# Copyright 1999-2014 Gentoo Foundation
57 +# Copyright 1999-2015 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 -# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-31.3.0.ebuild,v 1.6 2014/12/24 14:55:42 ago Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-31.3.0.ebuild,v 1.7 2015/02/26 15:14:39 axs Exp $
61
62 EAPI=5
63 WANT_AUTOCONF="2.1"
64 @@ -40,6 +40,7 @@
65 SLOT="0"
66 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
67 IUSE="bindist crypt ldap +lightning +minimal mozdom selinux"
68 +RESTRICT="!bindist? ( bindist )"
69
70 PATCH="thunderbird-31.0-patches-0.1"
71 PATCHFF="firefox-31.0-patches-0.2"
72
73
74
75 1.6 mail-client/thunderbird/thunderbird-31.4.0.ebuild
76
77 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-31.4.0.ebuild?rev=1.6&view=markup
78 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-31.4.0.ebuild?rev=1.6&content-type=text/plain
79 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-31.4.0.ebuild?r1=1.5&r2=1.6
80
81 Index: thunderbird-31.4.0.ebuild
82 ===================================================================
83 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-31.4.0.ebuild,v
84 retrieving revision 1.5
85 retrieving revision 1.6
86 diff -u -r1.5 -r1.6
87 --- thunderbird-31.4.0.ebuild 18 Feb 2015 09:16:13 -0000 1.5
88 +++ thunderbird-31.4.0.ebuild 26 Feb 2015 15:14:39 -0000 1.6
89 @@ -1,6 +1,6 @@
90 # Copyright 1999-2015 Gentoo Foundation
91 # Distributed under the terms of the GNU General Public License v2
92 -# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-31.4.0.ebuild,v 1.5 2015/02/18 09:16:13 ago Exp $
93 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-31.4.0.ebuild,v 1.6 2015/02/26 15:14:39 axs Exp $
94
95 EAPI=5
96 WANT_AUTOCONF="2.1"
97 @@ -40,6 +40,7 @@
98 SLOT="0"
99 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
100 IUSE="bindist crypt hardened ldap +lightning +minimal mozdom selinux"
101 +RESTRICT="!bindist? ( bindist )"
102
103 PATCH="thunderbird-31.0-patches-0.1"
104 PATCHFF="firefox-31.0-patches-0.2"
105
106
107
108 1.7 mail-client/thunderbird/thunderbird-24.8.0.ebuild
109
110 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-24.8.0.ebuild?rev=1.7&view=markup
111 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-24.8.0.ebuild?rev=1.7&content-type=text/plain
112 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-24.8.0.ebuild?r1=1.6&r2=1.7
113
114 Index: thunderbird-24.8.0.ebuild
115 ===================================================================
116 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-24.8.0.ebuild,v
117 retrieving revision 1.6
118 retrieving revision 1.7
119 diff -u -r1.6 -r1.7
120 --- thunderbird-24.8.0.ebuild 2 Nov 2014 08:33:52 -0000 1.6
121 +++ thunderbird-24.8.0.ebuild 26 Feb 2015 15:14:39 -0000 1.7
122 @@ -1,6 +1,6 @@
123 -# Copyright 1999-2014 Gentoo Foundation
124 +# Copyright 1999-2015 Gentoo Foundation
125 # Distributed under the terms of the GNU General Public License v2
126 -# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-24.8.0.ebuild,v 1.6 2014/11/02 08:33:52 swift Exp $
127 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-24.8.0.ebuild,v 1.7 2015/02/26 15:14:39 axs Exp $
128
129 EAPI=5
130 WANT_AUTOCONF="2.1"
131 @@ -38,6 +38,7 @@
132 SLOT="0"
133 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
134 IUSE="bindist crypt gstreamer +jit ldap +lightning +minimal mozdom pulseaudio selinux system-cairo system-icu system-jpeg system-sqlite"
135 +RESTRICT="!bindist? ( bindist )"
136
137 PATCH="thunderbird-24.0-patches-0.1"
138 PATCHFF="firefox-24.0-patches-0.9"
139
140
141
142 1.316 mail-client/thunderbird/ChangeLog
143
144 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.316&view=markup
145 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.316&content-type=text/plain
146 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?r1=1.315&r2=1.316
147
148 Index: ChangeLog
149 ===================================================================
150 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v
151 retrieving revision 1.315
152 retrieving revision 1.316
153 diff -u -r1.315 -r1.316
154 --- ChangeLog 18 Feb 2015 09:16:13 -0000 1.315
155 +++ ChangeLog 26 Feb 2015 15:14:39 -0000 1.316
156 @@ -1,6 +1,15 @@
157 # ChangeLog for mail-client/thunderbird
158 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
159 -# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.315 2015/02/18 09:16:13 ago Exp $
160 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.316 2015/02/26 15:14:39 axs Exp $
161 +
162 +*thunderbird-31.5.0 (26 Feb 2015)
163 +
164 + 26 Feb 2015; Ian Stakenvicius (_AxS_) <axs@g.o>
165 + +thunderbird-31.5.0.ebuild, -thunderbird-17.0.9.ebuild, metadata.xml,
166 + thunderbird-24.8.0.ebuild, thunderbird-31.3.0.ebuild,
167 + thunderbird-31.4.0.ebuild:
168 + version bump; fixed bug 541416; dropped 17.x as it has missing deps despite
169 + being the only stable arm package
170
171 18 Feb 2015; Agostino Sarubbo <ago@g.o> thunderbird-31.4.0.ebuild:
172 Stable for ppc, wrt bug #536564
173
174
175
176 1.1 mail-client/thunderbird/thunderbird-31.5.0.ebuild
177
178 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-31.5.0.ebuild?rev=1.1&view=markup
179 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-31.5.0.ebuild?rev=1.1&content-type=text/plain
180
181 Index: thunderbird-31.5.0.ebuild
182 ===================================================================
183 # Copyright 1999-2015 Gentoo Foundation
184 # Distributed under the terms of the GNU General Public License v2
185 # $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-31.5.0.ebuild,v 1.1 2015/02/26 15:14:39 axs Exp $
186
187 EAPI=5
188 WANT_AUTOCONF="2.1"
189 MOZ_ESR=""
190 MOZ_LIGHTNING_VER="3.3"
191 #MOZ_LIGHTNING_GDATA_VER="2.6.3"
192 MOZ_LIGHTNING_GDATA_VER="1.0.3"
193
194 # This list can be updated using scripts/get_langs.sh from the mozilla overlay
195 MOZ_LANGS=(ar ast be bg bn-BD br ca cs da de el en en-GB en-US es-AR
196 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
197 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
198 zh-CN zh-TW )
199
200 # Convert the ebuild version to th firefox-24.0-patches-0.4.tar.xze upstream mozilla version, used by mozlinguas
201 MOZ_PV="${PV/_beta/b}"
202 # ESR releases have slightly version numbers
203 if [[ ${MOZ_ESR} == 1 ]]; then
204 MOZ_PV="${MOZ_PV}esr"
205 fi
206 MOZ_P="${PN}-${MOZ_PV}"
207
208 # Enigmail version
209 EMVER="1.7.2"
210 # Upstream ftp release URI that's used by mozlinguas.eclass
211 # We don't use the http mirror because it deletes old tarballs.
212 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/"
213 MOZ_HTTP_URI="http://ftp.mozilla.org/pub/${PN}/releases/"
214
215 MOZCONFIG_OPTIONAL_JIT="enabled"
216 inherit flag-o-matic toolchain-funcs mozconfig-v5.31 makeedit multilib autotools pax-utils check-reqs nsplugins mozlinguas
217
218 DESCRIPTION="Thunderbird Mail Client"
219 HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/"
220
221 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
222 SLOT="0"
223 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
224 IUSE="bindist crypt hardened ldap +lightning +minimal mozdom selinux"
225 RESTRICT="!bindist? ( bindist )"
226
227 PATCH="thunderbird-31.0-patches-0.1"
228 PATCHFF="firefox-31.0-patches-0.2"
229
230 SRC_URI="${SRC_URI}
231 ${MOZ_FTP_URI}${MOZ_PV}/source/${MOZ_P}.source.tar.bz2
232 ${MOZ_HTTP_URI}${MOZ_PV}/source/${MOZ_P}.source.tar.bz2
233 crypt? ( http://www.enigmail.net/download/source/enigmail-${EMVER}.tar.gz )
234 lightning? (
235 ${MOZ_HTTP_URI/${PN}/calendar/lightning}${MOZ_LIGHTNING_VER}/linux/lightning.xpi -> lightning-${MOZ_LIGHTNING_VER}.xpi
236 http://dev.gentoo.org/~axs/distfiles/gdata-provider-${MOZ_LIGHTNING_GDATA_VER}.tar.xz
237 )
238 http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.xz
239 http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz
240 http://dev.gentoo.org/~axs/distfiles/${PATCH}.tar.xz
241 http://dev.gentoo.org/~axs/distfiles/${PATCHFF}.tar.xz
242 http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz"
243
244 ASM_DEPEND=">=dev-lang/yasm-1.1"
245
246 CDEPEND="
247 >=dev-libs/nss-3.17.1
248 >=dev-libs/nspr-4.10.6
249 !x11-plugins/enigmail
250 crypt? ( || (
251 ( >=app-crypt/gnupg-2.0
252 || (
253 app-crypt/pinentry[gtk]
254 app-crypt/pinentry[qt4]
255 )
256 )
257 =app-crypt/gnupg-1.4*
258 ) )"
259
260 DEPEND="${CDEPEND}
261 amd64? ( ${ASM_DEPEND}
262 virtual/opengl )
263 x86? ( ${ASM_DEPEND}
264 virtual/opengl )"
265
266 RDEPEND="${CDEPEND}
267 selinux? ( sec-policy/selinux-thunderbird )
268 "
269
270 if [[ ${PV} =~ beta ]]; then
271 S="${WORKDIR}/comm-beta"
272 else
273 S="${WORKDIR}/comm-esr${PV%%.*}"
274 fi
275
276 BUILD_OBJ_DIR="${S}/tbird"
277
278 pkg_setup() {
279 moz_pkgsetup
280
281 export MOZILLA_DIR="${S}/mozilla"
282
283 if ! use bindist ; then
284 elog "You are enabling official branding. You may not redistribute this build"
285 elog "to any users on your network or the internet. Doing so puts yourself into"
286 elog "a legal problem with Mozilla Foundation"
287 elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag"
288 elog
289 fi
290 }
291
292 pkg_pretend() {
293 # Ensure we have enough disk space to compile
294 CHECKREQS_DISK_BUILD="4G"
295 check-reqs_pkg_setup
296
297 if use jit && [[ -n ${PROFILE_IS_HARDENED} ]]; then
298 ewarn "You are emerging this package on a hardened profile with USE=jit enabled."
299 ewarn "This is horribly insecure as it disables all PAGEEXEC restrictions."
300 ewarn "Please ensure you know what you are doing. If you don't, please consider"
301 ewarn "emerging the package with USE=-jit"
302 fi
303 }
304
305 src_unpack() {
306 unpack ${A}
307
308 # Unpack language packs
309 mozlinguas_src_unpack
310
311 # Unpack lightning for calendar locales
312 if use lightning ; then
313 xpi_unpack lightning-${MOZ_LIGHTNING_VER}.xpi
314 fi
315 }
316
317 src_prepare() {
318 # Apply our Thunderbird patchset
319 EPATCH_SUFFIX="patch" \
320 EPATCH_FORCE="yes" \
321 epatch "${WORKDIR}/thunderbird"
322
323 # Apply our patchset from firefox to thunderbird as well
324 pushd "${S}"/mozilla &>/dev/null || die
325 EPATCH_SUFFIX="patch" \
326 EPATCH_FORCE="yes" \
327 epatch "${WORKDIR}/firefox"
328 popd &>/dev/null || die
329
330 # Ensure that are plugins dir is enabled as default
331 sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \
332 "${S}"/mozilla/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!"
333 sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \
334 "${S}"/mozilla/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!"
335
336 # Don't exit with error when some libs are missing which we have in
337 # system.
338 sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \
339 -i "${S}"/mail/installer/Makefile.in || die
340
341 # Don't error out when there's no files to be removed:
342 sed 's@\(xargs rm\)$@\1 -f@' \
343 -i "${S}"/mozilla/toolkit/mozapps/installer/packager.mk || die
344
345 # Shell scripts sometimes contain DOS line endings; bug 391889
346 grep -rlZ --include="*.sh" $'\r$' . |
347 while read -r -d $'\0' file ; do
348 einfo edos2unix "${file}"
349 edos2unix "${file}"
350 done
351
352 # Confirm the version of lightning being grabbed for langpacks is the same
353 # as that used in thunderbird
354 local THIS_MOZ_LIGHTNING_VER=$(python "${S}"/calendar/lightning/build/makeversion.py ${PV})
355 if [[ ${MOZ_LIGHTNING_VER} != ${THIS_MOZ_LIGHTNING_VER} ]]; then
356 eqawarn "The version of lightning used for localization differs from the version"
357 eqawarn "in thunderbird. Please update MOZ_LIGHTNING_VER in the ebuild from ${MOZ_LIGHTNING_VER}"
358 eqawarn "to ${THIS_MOZ_LIGHTNING_VER}"
359 fi
360
361 # Allow user to apply any additional patches without modifing ebuild
362 epatch_user
363
364 eautoreconf
365 # Ensure we run eautoreconf in mozilla to regenerate configure
366 cd "${S}"/mozilla || die
367 eautoconf
368 cd "${S}"/mozilla/js/src || die
369 eautoconf
370 }
371
372 src_configure() {
373 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
374 MEXTENSIONS="default"
375
376 ####################################
377 #
378 # mozconfig, CFLAGS and CXXFLAGS setup
379 #
380 ####################################
381
382 mozconfig_init
383 mozconfig_config
384
385 # It doesn't compile on alpha without this LDFLAGS
386 use alpha && append-ldflags "-Wl,--no-relax"
387
388 # Add full relro support for hardened
389 use hardened && append-ldflags "-Wl,-z,relro,-z,now"
390
391 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
392 mozconfig_annotate '' --disable-mailnews
393
394 # Other tb-specific settings
395 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
396 mozconfig_annotate '' --with-user-appdir=.thunderbird
397
398 mozconfig_use_enable lightning calendar
399 mozconfig_use_enable ldap
400
401 # Bug #72667
402 if use mozdom; then
403 MEXTENSIONS="${MEXTENSIONS},inspector"
404 fi
405
406 # Use an objdir to keep things organized.
407 echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig
408
409 # Finalize and report settings
410 mozconfig_final
411
412 ####################################
413 #
414 # Configure and build
415 #
416 ####################################
417
418 # Disable no-print-directory
419 MAKEOPTS=${MAKEOPTS/--no-print-directory/}
420
421 if [[ $(gcc-major-version) -lt 4 ]]; then
422 append-cxxflags -fno-stack-protector
423 elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]]; then
424 if use amd64 || use x86; then
425 append-flags -mno-avx
426 fi
427 fi
428
429 if use crypt; then
430 pushd "${WORKDIR}"/enigmail &>/dev/null ||die
431 econf
432 popd &>/dev/null ||die
433 fi
434 }
435
436 src_compile() {
437 mkdir -p "${BUILD_OBJ_DIR}" && cd "${BUILD_OBJ_DIR}" || die
438
439 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
440 MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \
441 emake -f "${S}"/client.mk
442
443 # Only build enigmail extension if crypt enabled.
444 if use crypt ; then
445 einfo "Building enigmail"
446 pushd "${WORKDIR}"/enigmail &>/dev/null || die
447 emake -j1
448 emake -j1 xpi
449 popd &>/dev/null || die
450 fi
451 }
452
453 src_install() {
454 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
455 DICTPATH="\"${EPREFIX}/usr/share/myspell\""
456
457 declare emid
458 cd "${BUILD_OBJ_DIR}" || die
459
460 # Copy our preference before omnijar is created.
461 cp "${FILESDIR}"/thunderbird-gentoo-default-prefs-1.js-1 \
462 "${BUILD_OBJ_DIR}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \
463 || die
464
465 # Set default path to search for dictionaries.
466 echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \
467 >> "${BUILD_OBJ_DIR}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \
468 || die
469
470 # Pax mark xpcshell for hardened support, only used for startupcache creation.
471 pax-mark m "${BUILD_OBJ_DIR}"/mozilla/dist/bin/xpcshell
472
473 MOZ_MAKE_FLAGS="${MAKEOPTS}" \
474 emake DESTDIR="${D}" install
475
476 # Install language packs
477 mozlinguas_src_install
478
479 if ! use bindist; then
480 newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png
481 domenu "${FILESDIR}"/icon/${PN}.desktop
482 else
483 newicon "${S}"/mail/branding/aurora/content/icon48.png thunderbird-icon-unbranded.png
484 newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \
485 ${PN}.desktop
486
487 sed -i -e "s:Mozilla\ Thunderbird:EarlyBird:g" \
488 "${ED}"/usr/share/applications/${PN}.desktop
489 fi
490
491 if use crypt ; then
492 local enigmail_xpipath="${WORKDIR}/enigmail/build"
493 cd "${T}" || die
494 unzip "${enigmail_xpipath}"/enigmail*.xpi install.rdf || die
495 emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
496
497 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die
498 cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die
499 unzip "${enigmail_xpipath}"/enigmail*.xpi || die
500 fi
501
502 if use lightning ; then
503 local l c
504 mozlinguas_export
505
506 emid="{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}"
507 # just for ESR31, install custom-rolled gdata-provider
508 cd "${WORKDIR}/gdata-provider-${MOZ_LIGHTNING_GDATA_VER}" || die
509 insinto ${MOZILLA_FIVE_HOME}/extensions/${emid}
510 if [[ -e chrome.manifest.original ]]; then
511 cp chrome.manifest.original chrome.manifest || die
512 fi
513 doins -r chrome.manifest components defaults modules install.rdf
514 cd "${WORKDIR}/gdata-provider-${MOZ_LIGHTNING_GDATA_VER}/chrome" || die
515 insinto ${MOZILLA_FIVE_HOME}/extensions/${emid}/chrome
516 doins -r gdata-provider gdata-provider-en-US
517 # Install locales for gdata-provider -- each locale is a directory tree
518 for l in "${mozlinguas[@]}"; do if [[ -d gdata-provider-${l} ]]; then
519 doins -r gdata-provider-${l}
520 echo "locale gdata-provider ${l} chrome/gdata-provider-${l}/locale/${l}/" \
521 >> "${ED}"/${MOZILLA_FIVE_HOME}/extensions/${emid}/chrome.manifest \
522 || die "Error adding gdata-provider-${l} to chrome.manifest"
523 else
524 ewarn "Sorry, but lightning gdata-provider in ${P} does not support the ${l} locale"
525 fi; done
526
527 emid="{e2fda1a4-762b-4020-b5ad-a41df1933103}"
528 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
529 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die
530 unzip "${BUILD_OBJ_DIR}"/mozilla/dist/xpi-stage/lightning-*.xpi || die
531 # Install locales for lightning - each locale is a jar file
532 insinto ${MOZILLA_FIVE_HOME}/extensions/${emid}/chrome
533 cd "${WORKDIR}"/lightning-${MOZ_LIGHTNING_VER}/chrome || die
534 for l in "${mozlinguas[@]}"; do if [[ -e calendar-${l}.jar ]]; then
535 for c in calendar lightning; do
536 doins ${c}-${l}.jar
537 echo "locale ${c} $l jar:chrome/${c}-${l}.jar!/locale/${l}/${c}/" \
538 >> "${ED}"/${MOZILLA_FIVE_HOME}/extensions/${emid}/chrome.manifest \
539 || die "Error adding ${c}-${l} to chrome.manifest"
540 done
541 else
542 ewarn "Sorry, but lightning calendar in ${P} does not support the ${l} locale"
543 fi; done
544
545 # Fix mimetype so it shows up as a calendar application in GNOME 3
546 # This requires that the .desktop file was already installed earlier
547 sed -e "s:^\(MimeType=\):\1text/calendar;:" \
548 -e "s:^\(Categories=\):\1Calendar;:" \
549 -i "${ED}"/usr/share/applications/${PN}.desktop || die
550 fi
551
552 # Required in order for jit to work on hardened, for mozilla-31
553 use jit && pax-mark pm "${ED}"${MOZILLA_FIVE_HOME}/{thunderbird,thunderbird-bin}
554
555 # Plugin-container needs to be pax-marked for hardened to ensure plugins such as flash
556 # continue to work as expected.
557 pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/plugin-container
558
559 if use minimal; then
560 rm -r "${ED}"/usr/include "${ED}"${MOZILLA_FIVE_HOME}/{idl,include,lib,sdk} || \
561 die "Failed to remove sdk and headers"
562 fi
563 }
564
565 pkg_postinst() {
566 if use crypt; then
567 local peimpl=$(eselect --brief --colour=no pinentry show)
568 case "${peimpl}" in
569 *gtk*|*qt*) ;;
570 *) ewarn "The pinentry front-end currently selected is not one supported by thunderbird."
571 ewarn "You may be prompted for your password in an inaccessible shell!!"
572 ewarn "Please use 'eselect pinentry' to select either the gtk or qt front-end"
573 ;;
574 esac
575 fi
576 elog
577 elog "If you experience problems with plugins please issue the"
578 elog "following command : rm \${HOME}/.thunderbird/*/extensions.sqlite ,"
579 elog "then restart thunderbird"
580 }