diff options
author | Jory Pratt <anarchy@gentoo.org> | 2010-03-07 20:51:54 +0000 |
---|---|---|
committer | Jory Pratt <anarchy@gentoo.org> | 2010-03-07 20:51:54 +0000 |
commit | ce4a201c914b51415299200e5b795cbc0fbda2df (patch) | |
tree | 67af7dd6e130b70069c97fbd2d80a75ddba8b154 /mail-client | |
parent | Remove deprecated 'Version' and 'Encoding' from eclass-generated .desktop files (diff) | |
download | historical-ce4a201c914b51415299200e5b795cbc0fbda2df.tar.gz historical-ce4a201c914b51415299200e5b795cbc0fbda2df.tar.bz2 historical-ce4a201c914b51415299200e5b795cbc0fbda2df.zip |
Re-add a few missing locales
Package-Manager: portage-2.1.8.1/cvs/Linux x86_64
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/mozilla-thunderbird/ChangeLog | 7 | ||||
-rw-r--r-- | mail-client/mozilla-thunderbird/Manifest | 19 | ||||
-rw-r--r-- | mail-client/mozilla-thunderbird/mozilla-thunderbird-3.0.3-r1.ebuild | 226 |
3 files changed, 240 insertions, 12 deletions
diff --git a/mail-client/mozilla-thunderbird/ChangeLog b/mail-client/mozilla-thunderbird/ChangeLog index f5a82ed31ffe..e34518090e21 100644 --- a/mail-client/mozilla-thunderbird/ChangeLog +++ b/mail-client/mozilla-thunderbird/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for mail-client/mozilla-thunderbird # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.318 2010/03/07 19:22:03 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.319 2010/03/07 20:51:54 anarchy Exp $ + +*mozilla-thunderbird-3.0.3-r1 (07 Mar 2010) + + 07 Mar 2010; <anarchy@gentoo.org> +mozilla-thunderbird-3.0.3-r1.ebuild: + re-added a few of the missing locales 07 Mar 2010; Markus Meier <maekke@gentoo.org> mozilla-thunderbird-3.0.3.ebuild: diff --git a/mail-client/mozilla-thunderbird/Manifest b/mail-client/mozilla-thunderbird/Manifest index 409366902a07..67cd55e483a7 100644 --- a/mail-client/mozilla-thunderbird/Manifest +++ b/mail-client/mozilla-thunderbird/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX 1000_fix-menus-gentoo.patch 584 RMD160 5de352211941f11d7eb24763667d2ad9cbbc1017 SHA1 30c2ba82764a8c3837ebc4419b734fc999791394 SHA256 5ab1d65ea9d581b89332ad34e3b2f88646e2c2d9181ae90110495d87240986fc AUX icon/mozilla-thunderbird-unbranded.desktop 183 RMD160 2aeecc5f6127adee0c9ab1e1c83a29bafb82f41e SHA1 3c7533d73abf8208e2117de1601ac31935994021 SHA256 b42bda8d82722d069049889f14887aabc9f3e139a023186780ffff222ca5722d AUX icon/mozilla-thunderbird.desktop 173 RMD160 03faca4ba9ff401e5d5ffc6ebb0a27ddbd9dd36c SHA1 cfdaa810fda5599a2e8454933157d5c2e590bd7f SHA256 1990dde085dbb37be74766a39eab72c0a0812cb1fde6f1c3fd10ce64dc8f5623 @@ -49,8 +46,10 @@ DIST mozilla-thunderbird-3.0-patches-0.3.tar.bz2 3241 RMD160 bc3b163b9c5bd7c7fb4 DIST mozilla-thunderbird-3.0.3-af.xpi 200287 RMD160 6371def1fdb39ddce8c8d7fa52b7369de0bf32f4 SHA1 98701231a628d5883cf01881382dd382eb0aebff SHA256 a7a45095c9a420efae5b068e09811b28cff46f1bf2fb27b126ac2f57ff9065ab DIST mozilla-thunderbird-3.0.3-ar.xpi 218226 RMD160 fc11a527d38e29ebf5aa07c23b34c8791c521f7b SHA1 c77cf957974ff02a0a9ff615ce85e6d4855e399c SHA256 d9ed86eda80dc38fee16aae01fa3082a7445e9e5840bda4a5806ef6360778734 DIST mozilla-thunderbird-3.0.3-be.xpi 189220 RMD160 04a476cd0628382d214496e0f29c57ab911def36 SHA1 b56cac82a6a27acf762c7c2e1b5704d13341da11 SHA256 0387a677b8ed3fa2ae0da15d18bfbe86b047026257fa8870846370971774028b +DIST mozilla-thunderbird-3.0.3-bg.xpi 222527 RMD160 e3d567c17dc805a36a80e595bed4bbdcc85ae2d8 SHA1 23a7256eaba734b87287607f3279a741abf830d9 SHA256 857165576eca4d36af71f0c2410e16d66d9ce005d8f99a789bd0eb8ce477af81 DIST mozilla-thunderbird-3.0.3-ca.xpi 207524 RMD160 ca780a1a443d6c19c25508530c15dc51373acf51 SHA1 18d2be902a8f87667aa25306684ca4a166022b47 SHA256 81b95409ead587aeea86ad644cb5c107960e21862f016b6767c0b43542c078c2 DIST mozilla-thunderbird-3.0.3-cs.xpi 207789 RMD160 af548e759ef3bb9df18f0dabd9bb4744931bddfa SHA1 6b4d62d039251db25decdf5dfaeb6c2ddfba41ac SHA256 ea4b85e8ac30abfc987ab62ec4e4b6ad4e4956ac42b247d03a1b5173b4d93814 +DIST mozilla-thunderbird-3.0.3-da.xpi 192313 RMD160 a229aec618c224afafd2a6aa831ccdb2008a2afe SHA1 0171d6a87f2cf274343c2e76fb8be44187650af4 SHA256 41dc64a531758aa793a0689cbda69c869597adb377f373bdffe62f3d77eb561f DIST mozilla-thunderbird-3.0.3-de.xpi 211362 RMD160 14be8a358ff1e7b5ab971197b40aeb00dea2fb78 SHA1 e57da45d4a7274d6f123b5c49096739edc4bd3f9 SHA256 6a844e4bf396d0dbf6a98ed5c89521a38fc74001d4fc281d5cd7a44bc2288a9a DIST mozilla-thunderbird-3.0.3-el.xpi 226855 RMD160 4d142f4c86d25990c900c93c5837774aed033775 SHA1 23ca9cd007362d92c2cb6e42e44ef26c156beb91 SHA256 1a29987f8de53ffe485267ce4fffd5e96f52704404f600471906043bb58acaa1 DIST mozilla-thunderbird-3.0.3-en-GB.xpi 193366 RMD160 894f68e3b821e6af2a41f1d23c481ff04887a839 SHA1 5bf1cbb750850b22e96a61e7b90bbd3ea52ff1f5 SHA256 0a045603cf032aee955ce8335bd633107f05f7a6bb7059781355d7c85ef210b0 @@ -62,6 +61,7 @@ DIST mozilla-thunderbird-3.0.3-fi.xpi 208379 RMD160 c347bded77530f9d17f85ca09332 DIST mozilla-thunderbird-3.0.3-fr.xpi 210311 RMD160 6a07419db6414fe748585acd79dcb3d11ab6bbf5 SHA1 b9e54f710f8a36b8aeb80802e2d6879d0110b958 SHA256 e8b1c4d8d94556a767366447930c1411d96b45d0b32e615e7d54e0eca1e1a377 DIST mozilla-thunderbird-3.0.3-fy-NL.xpi 209926 RMD160 ee61c454fa50ec617fe6b02126220bea9e564c91 SHA1 9df414e5dac40ce09bbff5a476ee46b22b047a83 SHA256 ff3d634ed599ddb416f936370f32453bd29a9c6a9378e7f2fa3c69ab443dff93 DIST mozilla-thunderbird-3.0.3-ga-IE.xpi 208839 RMD160 4a65773a5c35f92b613061c39374faafad6be307 SHA1 82b1676e22d834d62d1b7dfd3922e4f0527e29ca SHA256 ad76bda001e275af67c40840974213bd83679369221306dc922ef74a5c2225de +DIST mozilla-thunderbird-3.0.3-he.xpi 192217 RMD160 9d930e32444b934afedd178d71da191f366b23ac SHA1 1553ec4e58c8e85f6cf5d6f5b43e024d0fc5ec8a SHA256 234f909eac20e406a2aceb26530fcb80a6efac69fb64aa69e36fc2ea625ee194 DIST mozilla-thunderbird-3.0.3-hu.xpi 215538 RMD160 b53cb0b79aad971ff3f8e37eac556a9beee1af2d SHA1 fd5e80d7199d3aeb192ac411fc7ab29024f8448f SHA256 8402e5f4436e959174f1398a16ff60637bc1a94bdb3c44adb86ccb3cf0e69463 DIST mozilla-thunderbird-3.0.3-id.xpi 168249 RMD160 e95f9fc3180d2eb83d9a29492aa82fe37c3456c6 SHA1 ed4fa5aebf3ad55cebc727d185786245ccda530a SHA256 ec0ec7b77dc6066a5c6689243ac678425536e4247cf2c3c665e5c691e17a2fdd DIST mozilla-thunderbird-3.0.3-is.xpi 203460 RMD160 da1cd5e3dc6503590c2d871a6f2dd2dc386752ae SHA1 51272eb8e6a4c9d1f850d802d51ce1de24b6c95e SHA256 618b61ae3463fa7e1249e527b3f6234e2a917e67074d2798acee5a79cf1621e0 @@ -75,6 +75,7 @@ DIST mozilla-thunderbird-3.0.3-nn-NO.xpi 204510 RMD160 83dfbe95630a69f97432199d3 DIST mozilla-thunderbird-3.0.3-pa-IN.xpi 230432 RMD160 5be4f8d5d89dde6228367cc1d9caa90d5cdc399f SHA1 f28b3bbf7317efded6d4ed48865ca8e3a506bc62 SHA256 837f8402e9987c030ddf21ecda68f7b9ca5f29a41078fd09551eb0e0aa19e255 DIST mozilla-thunderbird-3.0.3-pl.xpi 197807 RMD160 c7b1dccf535ab17941e4ddd63ddb2396317634a1 SHA1 cf0866f63aa1b7b819f29f80b0e459fb5769da85 SHA256 9a05f095d8266ec7c6e95bfcdba47724c96b6df2e98674a0ff7faacf097eeef6 DIST mozilla-thunderbird-3.0.3-pt-BR.xpi 204030 RMD160 4b6e832f5061c65258a45193f9703fbd52fb08e6 SHA1 8bcbfed4077861f59ff4cd9f3631f90cc4cd6109 SHA256 8fef18f2e4e6347b51db8d607fbf85bd593764a904f03aa566cf2c99f88fac81 +DIST mozilla-thunderbird-3.0.3-pt-PT.xpi 204146 RMD160 74f7f9e7aa40474f75fae60ac478e6f128d8d24c SHA1 1ac0c9fab217cda9616a90c2ac2ac3399224547c SHA256 0a417665bb0d94a8e077edb4607d8bebc093c56e4eb5c29d48f6d77f6d289809 DIST mozilla-thunderbird-3.0.3-ro.xpi 210133 RMD160 3c05226511cf4327c873e86485586694c1c00c4a SHA1 f4f06cb585557de51458b8d7ed5781bcffa2758b SHA256 b41ae62260992e01fdc26c9672d5710b43c70f35f072c664c7ee8766219f2064 DIST mozilla-thunderbird-3.0.3-ru.xpi 192112 RMD160 29839a2c5a7c7f9de10b6e25e22817bc73b52fd8 SHA1 fb2a4d215175ca99dcd8096bed1fc7f0c065b68e SHA256 628edf65b299d61742620059551564258b1c6ec237b11dbdcea4bb5db614c249 DIST mozilla-thunderbird-3.0.3-si.xpi 233860 RMD160 81b6ef25815bcd819d76bd2fb1f2eeda5dfc5942 SHA1 c13770f8d64062112073729a3606e7b130cc8395 SHA256 2e13c88713c0c6da211544a7604eca104aac2427ae41eacbde244bb27d0738e5 @@ -83,16 +84,12 @@ DIST mozilla-thunderbird-3.0.3-sv-SE.xpi 210602 RMD160 9acf9070b1a98e061bd068f5a DIST mozilla-thunderbird-3.0.3-ta-LK.xpi 240885 RMD160 8fb6e56eb8259f29e7764aad6f6072a531c55468 SHA1 c7089f086e9a15d25ff5e10a906508c7dc10341f SHA256 171c8590672769e790ec4659e39bba92db19f62c9bafe2e871484ee461ceec78 DIST mozilla-thunderbird-3.0.3-tr.xpi 205351 RMD160 48576c53026628f11801b9da16e1aaf5a517acd0 SHA1 e3a65ca0dd5805cdaaa262a49d63b7f671913cab SHA256 c3602075143d5e4c2a3d4f48abd94c7569e95381a5cd63eca6416b4dc4867d3b DIST mozilla-thunderbird-3.0.3-uk.xpi 231320 RMD160 24d4507a933326d92c839290f069528a8231c6f4 SHA1 127c16575bb94f115fe5b0fdb1c812f590fff976 SHA256 96274ac226462ad9cb12e8898cccea6e17066da13ca1f59c485f109abe62db3e +DIST mozilla-thunderbird-3.0.3-zh-CN.xpi 208235 RMD160 ab0ba5dc1c49fb36d591e557d72927408cef3d88 SHA1 e7bbc514d78b19b9836e983ced633fa0ce7e43d2 SHA256 0099416a08911919ac2a18ed72591a7ca199c3ba5c1a08a7654c5901e9fce26e +DIST mozilla-thunderbird-3.0.3-zh-TW.xpi 208655 RMD160 3ad3cc109f29ac28ea159d9dbbb5c2584df94a60 SHA1 abfdddb28d07be2addf999e0b3a71cc5eb0c450f SHA256 900d605a6c96f61e608a6eb460172b2b40b7ecb916e2ead266c3621dc85495b7 DIST thunderbird-2.0.0.23-source.tar.bz2 38860245 RMD160 a1ef4af80121cdd8000c796e0c5fb575bea30348 SHA1 a237bfb92ec9c4b2bed7ea744e95d01ec43e07f1 SHA256 2c5007dfa1d094d8f089d42208e77d673e811a49980b7df77b04ed1606d30d21 DIST thunderbird-3.0.3.source.tar.bz2 59938891 RMD160 53612faa4d0c5c63801217e16e76d3d75f86fbb5 SHA1 e4bd34fa4a55c04cd0982e7717f4e811902b9a3c SHA256 d567b7aee5c4f224da2c77d9f8be558a3855d6e970eb70485865827ef94cf1a6 EBUILD mozilla-thunderbird-2.0.0.23.ebuild 7778 RMD160 f290a913aa014b6dd7dc17793ff1bf23b8cd5c4f SHA1 07aa45c6e167bce56f66a8295405587ecb5335ca SHA256 bc64e142a94a3c8e138312e8ccd2b76ebb405f53e60319d7dd3e6d92c0ce2fed +EBUILD mozilla-thunderbird-3.0.3-r1.ebuild 6553 RMD160 d59a77cc8d34b4ff6805cb7f47c1dac48b3ba8f4 SHA1 700588ec32b006046524120484c004f3d5a7f8bd SHA256 1a36a50fcba75ee4f98aee789e97750b00be8ec0e2b383c148a148312a4c447a EBUILD mozilla-thunderbird-3.0.3.ebuild 6571 RMD160 4ffb82721179ec7d380e82f0343f3357955f3ec1 SHA1 59c2c7c1cae6d40ffc8e60c6af2d72f8b8531761 SHA256 77621b5aba7e1fe159827930cadb49812a7fdab4d248a153a835ccff0611122a -MISC ChangeLog 48007 RMD160 46680db3672544661e18427ea462954948f2749f SHA1 191ded1f910cd864f244a14f94e9d6dbb5d172d0 SHA256 065d72dd709e46d97e55e1e4f54ab84bee1dd13be93795c38033f7603cd7701a +MISC ChangeLog 48168 RMD160 ca489b8addfa9bf7ede38a1687b2e3a39663bc4b SHA1 2200c898771fe201b0de4b55ac39b63868d36e98 SHA256 38ad599cad87fc83dd3ee3c10ce159251c48b8d0c91ebb076ae11eee4acc4cdb MISC metadata.xml 638 RMD160 69ece61a118b4331cbf38dfeb658871963d29357 SHA1 f5a4acb54857595ad73793e9347321453712591a SHA256 7c168cc39644dad0cba0c7362d472c56a233b26c9c10959cfaf432e4b1f2efaf ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.14 (GNU/Linux) - -iEYEARECAAYFAkuT/JwACgkQkKaRLQcq0GLLRQCgmPtbjtLSR0bR0JgkpwU1CJP4 -mEUAn1utwrRFLzzFv4/pIq2g3JxbxMzD -=CtcS ------END PGP SIGNATURE----- diff --git a/mail-client/mozilla-thunderbird/mozilla-thunderbird-3.0.3-r1.ebuild b/mail-client/mozilla-thunderbird/mozilla-thunderbird-3.0.3-r1.ebuild new file mode 100644 index 000000000000..2fa7f7371a1c --- /dev/null +++ b/mail-client/mozilla-thunderbird/mozilla-thunderbird-3.0.3-r1.ebuild @@ -0,0 +1,226 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-3.0.3-r1.ebuild,v 1.1 2010/03/07 20:51:54 anarchy Exp $ +EAPI="2" +WANT_AUTOCONF="2.1" + +inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib mozextension autotools + +LANGS="af be bg ca cs da de el en-GB en-US es-AR es-ES eu fi fr ga-IE he hu it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ru sk sv-SE tr uk zh-CN zh-TW" +# Languages not rebuilt for "sl mk" +NOSHORTLANGS="en-GB es-AR pt-BR zh-TW" + +MY_PV2="${PV/_rc/rc}" +MY_P="${P/_rc/rc}" + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/" + +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +SLOT="0" +LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" +IUSE="ldap crypt bindist lightning mozdom system-sqlite" +PATCH="${PN}-3.0-patches-0.3" + +REL_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases" +SRC_URI="${REL_URI}/${MY_PV2}/source/thunderbird-${MY_PV2}.source.tar.bz2 + http://dev.gentoo.org/~anarchy/dist/${PATCH}.tar.bz2" + +for X in ${LANGS} ; do + if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then + SRC_URI="${SRC_URI} + linguas_${X/-/_}? ( ${REL_URI}/${MY_PV2}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )" + fi + IUSE="${IUSE} linguas_${X/-/_}" + # english is handled internally + if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then + if [ "${X}" != "en-US" ]; then + SRC_URI="${SRC_URI} + linguas_${X%%-*}? ( ${REL_URI}/${PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )" + fi + IUSE="${IUSE} linguas_${X%%-*}" + fi +done + +RDEPEND=">=sys-devel/binutils-2.16.1 + >=dev-libs/nss-3.12.3 + >=dev-libs/nspr-4.8 + system-sqlite? ( >=dev-db/sqlite-3.6.22-r2[fts3,secure-delete] ) + >=media-libs/lcms-1.17 + >=app-text/hunspell-1.2 + x11-libs/cairo[X] + x11-libs/pango[X] + !x11-plugins/lightning" + +PDEPEND="crypt? ( >=x11-plugins/enigmail-1.0 )" + +S="${WORKDIR}"/comm-1.9.1 + +linguas() { + local LANG SLANG + for LANG in ${LINGUAS}; do + if has ${LANG} en en_US; then + has en ${linguas} || linguas="${linguas:+"${linguas} "}en" + continue + elif has ${LANG} ${LANGS//-/_}; then + has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" + continue + elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then + for X in ${LANGS}; do + if [[ "${X}" == "${LANG}-"* ]] && \ + [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then + has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" + continue 2 + fi + done + fi + ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" + done +} + +pkg_setup() { + export BUILD_OFFICIAL=1 + export MOZILLA_OFFICIAL=1 + + if ! use bindist; then + elog "You are enabling official branding. You may not redistribute this build" + elog "to any users on your network or the internet. Doing so puts yourself into" + elog "a legal problem with Mozilla Foundation" + elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" + fi +} + +src_unpack() { + unpack ${A} + + linguas + for X in ${linguas}; do + # FIXME: Add support for unpacking xpis to portage + [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi" + done + if [[ ${linguas} != "" && ${linguas} != "en" ]]; then + einfo "Selected language packs (first will be default): ${linguas}" + fi +} + +src_prepare() { + # Apply our patches + EPATCH_EXCLUDE="106-bz466250_att349521_fix_ftbfs_with_cairo_fb.patch" + EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + epatch "${WORKDIR}" + + eautoreconf + + cd mozilla + eautoreconf + cd js/src + eautoreconf +} + +src_configure() { + declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + MEXTENSIONS="default" + + #################################### + # + # mozconfig, CFLAGS and CXXFLAGS setup + # + #################################### + + touch mail/config/mozconfig + mozconfig_init + mozconfig_config + + # It doesn't compile on alpha without this LDFLAGS + use alpha && append-ldflags "-Wl,--no-relax" + + mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" + mozconfig_annotate '' --enable-application=mail + mozconfig_use_enable ldap + mozconfig_use_enable ldap ldap-experimental + mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} + mozconfig_annotate '' --with-user-appdir=.thunderbird + mozconfig_annotate '' --with-system-nspr + mozconfig_annotate '' --with-system-nss + mozconfig_annotate 'broken' --disable-crashreporter + + # Use enable features + mozconfig_use_enable lightning calendar + mozconfig_use_enable system-sqlite + + # Bug #72667 + if use mozdom; then + MEXTENSIONS="${MEXTENSIONS},inspector" + fi + + if ! use bindist; then + mozconfig_annotate '' --enable-official-branding + fi + + # Finalize and report settings + mozconfig_final + + #################################### + # + # Configure and build + # + #################################### + + # Disable no-print-directory + MAKEOPTS=${MAKEOPTS/--no-print-directory/} + + if [[ $(gcc-major-version) -lt 4 ]]; then + append-cxxflags -fno-stack-protector + fi + + CPPFLAGS="${CPPFLAGS}" \ + CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ + econf || die +} + +src_compile() { + # Should the build use multiprocessing? Not enabled by default, as it tends to break + [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1" + emake ${jobs} || die +} + +src_install() { + declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + emake DESTDIR="${D}" install || die "emake install failed" + + if use lightning ; then + declare emid + + cd "${T}" + unzip "${S}"/mozilla/dist/xpi-stage/gdata-provider.xpi install.rdf + emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) + + dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} + cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} + unzip "${S}"/mozilla/dist/xpi-stage/gdata-provider.xpi + fi + + linguas + for X in ${linguas}; do + [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}" + done + + if ! use bindist; then + newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png + domenu "${FILESDIR}"/icon/${PN}.desktop + else + newicon "${S}"/mail/branding/nightly/content/icon48.png thunderbird-icon-unbranded.png + newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \ + ${PN}.desktop + fi + + # Warn user that remerging enigmail is neccessary on USE=crypt + use crypt && ewarn "Please remerge x11-plugins/enigmail after updating ${PN}." + + # Enable very specific settings for thunderbird-3 + cp "${FILESDIR}"/thunderbird-gentoo-default-prefs.js \ + "${D}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \ + die "failed to cp thunderbird-gentoo-default-prefs.js" +} |