summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2009-08-26 13:33:49 +0000
committerRaúl Porcel <armin76@gentoo.org>2009-08-26 13:33:49 +0000
commit2761b373d09b3959f8cfd5efae7e740bd770e5dc (patch)
treed9597a8a3b9812c6f41e511981b6acd0dfd0d8fe
parentStable for HPPA (bug #282698). (diff)
downloadhistorical-2761b373d09b3959f8cfd5efae7e740bd770e5dc.tar.gz
historical-2761b373d09b3959f8cfd5efae7e740bd770e5dc.tar.bz2
historical-2761b373d09b3959f8cfd5efae7e740bd770e5dc.zip
Version bump
Package-Manager: portage-2.1.6.13/cvs/Linux ia64
-rw-r--r--mail-client/mozilla-thunderbird/ChangeLog8
-rw-r--r--mail-client/mozilla-thunderbird/Manifest41
-rw-r--r--mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.23.ebuild254
3 files changed, 301 insertions, 2 deletions
diff --git a/mail-client/mozilla-thunderbird/ChangeLog b/mail-client/mozilla-thunderbird/ChangeLog
index 3a68ff661309..f81a878d1e23 100644
--- a/mail-client/mozilla-thunderbird/ChangeLog
+++ b/mail-client/mozilla-thunderbird/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-client/mozilla-thunderbird
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.298 2009/06/29 18:39:26 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.299 2009/08/26 13:33:49 armin76 Exp $
+
+*mozilla-thunderbird-2.0.0.23 (26 Aug 2009)
+
+ 26 Aug 2009; Raúl Porcel <armin76@gentoo.org>
+ +mozilla-thunderbird-2.0.0.23.ebuild:
+ Version bump
29 Jun 2009; Raúl Porcel <armin76@gentoo.org>
-mozilla-thunderbird-2.0.0.21.ebuild, mozilla-thunderbird-2.0.0.22.ebuild:
diff --git a/mail-client/mozilla-thunderbird/Manifest b/mail-client/mozilla-thunderbird/Manifest
index 806ba1cd112f..e36d5e4436ed 100644
--- a/mail-client/mozilla-thunderbird/Manifest
+++ b/mail-client/mozilla-thunderbird/Manifest
@@ -73,9 +73,48 @@ DIST mozilla-thunderbird-2.0.0.22-tr.xpi 157710 RMD160 ed2e382db6364d49aa7879f1c
DIST mozilla-thunderbird-2.0.0.22-uk.xpi 194506 RMD160 3ed0178630d595f1214062204d8af00f2864a6b4 SHA1 d3abae128b86383deae8d3295ce46305644bc2ba SHA256 61d41bd3fa46463b25e19b5ac0811573ae806ade98ac78cb9db64e3d726154c0
DIST mozilla-thunderbird-2.0.0.22-zh-CN.xpi 147643 RMD160 8cf40d20bc81165ba45c9a58e357f2b189f5d02a SHA1 ef913d0c5803857d12bb7b9579cd2e153fbc2e1d SHA256 8e6abe3ef7516fff71ba7a03bbb19eb8c470cf32429599775fa6ccea324e4f4e
DIST mozilla-thunderbird-2.0.0.22-zh-TW.xpi 153702 RMD160 58f8b9c424a8be58844a71c248a9039f5c561431 SHA1 667cde83275e9da584ca1d2da3c04258f246f46a SHA256 6d27bbf85ee3e55fb2ee4c3315d754ad13f8510893bf0a3967ea69e002627c7a
+DIST mozilla-thunderbird-2.0.0.23-af.xpi 177924 RMD160 2af1ca7eb5cebe1cf274588b9b2b9bb9a0e19c5b SHA1 c93d993b250d5be6319d4137799356b49a0ce8d6 SHA256 7abb12aff4cbc267b65da15d4b5c617f94ba4f0f179e0b9f6c483f441da2942d
+DIST mozilla-thunderbird-2.0.0.23-be.xpi 184813 RMD160 033d83690af0fc7d5525b40e23928ebdd6af2abb SHA1 3e4b7a0c3d0b5a069a1e446f30fe7657d6b6cf41 SHA256 6e99a2975ea7f808fb34bf49033a607093ab4ec260381898a7edd7e10fcf6453
+DIST mozilla-thunderbird-2.0.0.23-bg.xpi 196486 RMD160 cbe1256e4ea7149cebc2934a46423992704e6639 SHA1 38763c9994a78c8a5bc8847c55ba90ad94b6f9f5 SHA256 de1f9e4d6790a036cb60b24068adb5727c3ace88b7747761aa4bd43466bc8541
+DIST mozilla-thunderbird-2.0.0.23-ca.xpi 184232 RMD160 a0a564724a687192aca6a9a22d243a32fc37bf47 SHA1 a943ffe3ccafda33dd2dae5ea2e75ea4256edbb2 SHA256 16aac100c46d42ce31e8a99a060ca1488d7adb863d5164a37b210b5f82d39e2d
+DIST mozilla-thunderbird-2.0.0.23-cs.xpi 186167 RMD160 b679cf9a5f15c9017070b2c598dd7c27f8d235d6 SHA1 dba4c3e00d3ae3e9defbb86153c973b00099822d SHA256 87c13456f546ebd5c83053ca4d54f1e5e05bb9ecb7d264def232294137972870
+DIST mozilla-thunderbird-2.0.0.23-da.xpi 179121 RMD160 da9794aa0fb1c53188bb0b99bb3695e4b3db225e SHA1 30b68cff6c294809c729e3edf3e9c6e1545ad0c0 SHA256 c0b35b5694c30d1eea1320c508df6c20dce22a3b60543863f79b7aab40c261f2
+DIST mozilla-thunderbird-2.0.0.23-de.xpi 159065 RMD160 23308ed81804467683d5de893c90592ecafd8bdc SHA1 dc0c0755567b3ac828d26120137248ecf56195c9 SHA256 39a980134ba83b4f31cd4db4b68337a85e0fda4f32f3c218ebc522fcb11cbc67
+DIST mozilla-thunderbird-2.0.0.23-el.xpi 183061 RMD160 817fb37122c1f8d0e1dbd0f3a887eb0dc42997d8 SHA1 b421ee7f74a3a36cec68d6d4211c33bce1336dd5 SHA256 f5e3e28426568b49effc73f12c937a62f5ad87dfa17de209d21f741f1a52eddb
+DIST mozilla-thunderbird-2.0.0.23-en-GB.xpi 173049 RMD160 580b5f131a8cb222952618176154cf3aa2272312 SHA1 845e1e7a5ed8ba3ff51f7549515fc9aecfa6ca0d SHA256 4ca8fad2bd96d17c7dc538abfd0d7ef0043eb9f901a7281b07c4f9cf0331ca12
+DIST mozilla-thunderbird-2.0.0.23-es-AR.xpi 184680 RMD160 6d2de6183e2991b506671d80d34ef48d0312f7bd SHA1 9cf9144dba066eda4fe85c8fe7601949a851bd0f SHA256 fa1d01fb2456731ea84cb8bc453d7cf6402914918680fa9b4f706685ec15a60e
+DIST mozilla-thunderbird-2.0.0.23-es-ES.xpi 149560 RMD160 6f56da765ac22b7d3262fe9b431e2fd210564bb4 SHA1 39b54ceac881afe2f9ee9e89c7ff8bb4f4ab38e7 SHA256 126052c223ac00c5f84b709af9123aa2ff99fff9f1adb68a02e142d5a18a6c5f
+DIST mozilla-thunderbird-2.0.0.23-eu.xpi 181799 RMD160 501827f563753411987908de975bbcc82c67ce38 SHA1 630b23ea6711124dfe4b84cf965b0c1b42c1f96e SHA256 37b8417e026b0dae905f0ecb500525614f1c7f89ae997e70656fffcad2b0aa50
+DIST mozilla-thunderbird-2.0.0.23-fi.xpi 187734 RMD160 61e685df39c44cdd4877a070dafe26b5cc855130 SHA1 84673565e05706ba570e3652fbd495ece8d18d74 SHA256 9d2a6b568a7e4d3d9ed65f2c2f1d66b296bfd25c4f64408dc0de56d437e3b3ad
+DIST mozilla-thunderbird-2.0.0.23-fr.xpi 190912 RMD160 033134ff61db922e5286e90da388abcfac8b6649 SHA1 9f3a9a306615a1a85b2b3b51e68543c24a69f1c2 SHA256 a16f800f465a19e18cced25ddcf15d637ecb7726d45db755690e2e2a11212e42
+DIST mozilla-thunderbird-2.0.0.23-ga-IE.xpi 185960 RMD160 7691356b56a3483c572e305b5435374c8c08c768 SHA1 0cfd2735e397cc14d27f44854eec9e6d624f8082 SHA256 69b6be9adf00582b25d45f9f4ad49fc61ae966190384ad338b089be4ff037f76
+DIST mozilla-thunderbird-2.0.0.23-he.xpi 157243 RMD160 fba6f3ab04fc234937e4d16ed5eb1a4a4da5652c SHA1 c441415cf689d7e3f5683e27df0414cb8e94d7cb SHA256 ffd18a2f1a1947f817a90ef8f6e78fc7e18ad879bdcf437267379d366ed0aa74
+DIST mozilla-thunderbird-2.0.0.23-hu.xpi 191693 RMD160 4d0a6f3efe886952c2ab04fe97f2189daf21acf7 SHA1 d5e58940ebf83300eb7f26ef6d51b32e1f53cbbc SHA256 d9182041e7713dfcfa816787a042d3f0eac8b860cfe6a9723643287598018540
+DIST mozilla-thunderbird-2.0.0.23-it.xpi 152554 RMD160 180456c013ff0c51c1273334ddd8d835d58b4ccc SHA1 4e721f3a37e35e88e057c122da5db400f8a684aa SHA256 998da33ca0be103393e1c4cff3cadba5a4043dd6c7e357e1b2b81a29b3b46590
+DIST mozilla-thunderbird-2.0.0.23-ja.xpi 199411 RMD160 18d698738d667ff4c8a317e2490c72c26656fac0 SHA1 de2b699087e09fae13a45d2caf7e2b138f231080 SHA256 9aef2bbb9aa1b37a47160cc4415af8c32a95c9331d6dac161ca1f3aebde1c799
+DIST mozilla-thunderbird-2.0.0.23-ko.xpi 170142 RMD160 5da72a21afcda69b277fde565d945239c8d941b4 SHA1 16ed5657ccd46edfd8f35bbcbf3e9aed79e39e2b SHA256 27b3c77d6124ff6714c337a3f02da21eb5ce44e444691c990bdefe934771fc2a
+DIST mozilla-thunderbird-2.0.0.23-lt.xpi 189457 RMD160 93ecb65e5bf2926cfd0325ed20ecd6e476ad951b SHA1 f04d1870ba9965ed0fd5d9892a618ad256ca24c2 SHA256 7d18ee2ec1ad7f583537192f3284cea39ec0c14999c99e65de8df145e4ea5647
+DIST mozilla-thunderbird-2.0.0.23-mk.xpi 196440 RMD160 681f9eb44c467cf866f3c06ccf2432493127a764 SHA1 d2c0e9c57ef2c293fe657f298e16d9ca07dcec5b SHA256 dcaf0d05a4f37c639c455a11f37ea6bb6c5b0418dfaa3d706fc99e94137d24f6
+DIST mozilla-thunderbird-2.0.0.23-nb-NO.xpi 183238 RMD160 c3432714f2001489c0bc64f10d70845cf87d94ce SHA1 cdcec4a1ca51a912aad9da84a4085b3053246799 SHA256 abb1109ce2d6da18eb7902860564189ae28139e4ba183d85fc9c5f7472b3a9c9
+DIST mozilla-thunderbird-2.0.0.23-nl.xpi 184153 RMD160 9abb0f29b2b97c669bb29f867a1bcd54e3fc8944 SHA1 5b50e16746e7015298ab93b473a3c2fdda031883 SHA256 184832940fa33e22157bc9fb4472d542508a13b5fa0cce349bf118b9e26b11e4
+DIST mozilla-thunderbird-2.0.0.23-nn-NO.xpi 184117 RMD160 ab5a49f3a15138d2afedecca7c8fc618e383ba4a SHA1 ae51bdfce8f03cd6030ee3a3e2b6b2a5fbf68709 SHA256 a15cf71808aee60dff5570a568aaf4dcadf4eafb4fb08b9c0d99a7d2fa2a6eeb
+DIST mozilla-thunderbird-2.0.0.23-pa-IN.xpi 205022 RMD160 5d91ff3be7de2dba5b73d5f3a2e2f5ee95238981 SHA1 a195db60b6ab82faaf057d43ed8e9b8440454ee0 SHA256 e297b1feb54c58cf7cbbfd1181122ae2b7ed32dd5ebe1cfad15f54e21c76e23c
+DIST mozilla-thunderbird-2.0.0.23-pl.xpi 177417 RMD160 01cc5d7deee50921c1c8964b0c84ce36478582ed SHA1 74205c90881bda3e322d606ee0d3899ffec32f76 SHA256 2e23592730a1390e25db2604c5fcff912c3e775d2204fe3e145d8c61d7869566
+DIST mozilla-thunderbird-2.0.0.23-pt-BR.xpi 183071 RMD160 fb5630232f40d3696a47adc3773b6149ed0f5261 SHA1 d9d829abb63a7a70e1a7307d7867c6acd107a92f SHA256 0ae4860a8ee5f10d0f4611276f53c1abe228fbc1d4aa1d7bee39c72327ae905b
+DIST mozilla-thunderbird-2.0.0.23-pt-PT.xpi 183924 RMD160 871ed729bce2616003fce1574747592bc7f245a6 SHA1 f7115b0743a636ce1b5c17a7795b4ba85ea21da0 SHA256 9fcf9ec7dce795ca237f77cbdfc3654cf03a2d90e6a0760c195beea7797c1917
+DIST mozilla-thunderbird-2.0.0.23-ru.xpi 174281 RMD160 0bc18fdcd7c0a2aa1d34f7129b2e2b6c0998c59d SHA1 9e5477088fcb6c59989d22a83dd5eb137f1b6cd8 SHA256 b593c6fd06340dbd36598127e75192c734d15796f58b64d00459d5de711a08b0
+DIST mozilla-thunderbird-2.0.0.23-sk.xpi 191717 RMD160 72f7810501aee51abfbfe534d3ec1e3a3c1cb95e SHA1 d2f434fef27e14c417d8050fb7fd44095091f14a SHA256 ed12698471c769c5030058e00f59637a187e2b368dd7feec8fea747dfb8786b4
+DIST mozilla-thunderbird-2.0.0.23-sl.xpi 188025 RMD160 0ba308355484ffb4a545d0b04f1b94aa81d360bb SHA1 92b290b3ee5367b5a9f83045d472adc00bf68e02 SHA256 b1bff97861ad298a6c0d7124b00f3f5d5d4cdd001400d7b1e11e18330906901c
+DIST mozilla-thunderbird-2.0.0.23-sv-SE.xpi 191928 RMD160 8a505b294681fc0dabd421d806b90b62cd770e75 SHA1 004fc03880a853857b209301b1917adc4d6748ba SHA256 38abbb4ec8b46457f6ab7713811d628a28bb73a6fa140a623eb18dde00294eb3
+DIST mozilla-thunderbird-2.0.0.23-tr.xpi 157710 RMD160 696fa89a95fea4f80d1a874e371ba5b558beaabd SHA1 6612befc77c32b5cf316b2828574f9d6b6fb8385 SHA256 d4243ab5750a46f8c2e0a8bf6e8dc4a892b8112dd65c221ae90f94368882c8c0
+DIST mozilla-thunderbird-2.0.0.23-uk.xpi 194506 RMD160 674ac29d85fa862a824fb126873f26dc922a9c75 SHA1 c9d24580e22a9f7f2d20061da1cc4605636b6d12 SHA256 dc7287c010d7d58abb39b94a542ab21b9a7b29fd3ed1de0bc0ba07112183ca86
+DIST mozilla-thunderbird-2.0.0.23-zh-CN.xpi 147643 RMD160 c3583dd26ec46af990799bcfbf3626b518a3f627 SHA1 18f8e6ebbd89b8bc234bb9f68843bde1dfc97f32 SHA256 463582f33d0b8e49890f982e1908dd91548f25e34c06ac20c1c8bc5647a13e58
+DIST mozilla-thunderbird-2.0.0.23-zh-TW.xpi 153702 RMD160 09ec0fe2116f18a8fbed40cfa387ffede8a343ec SHA1 e6a3fe1a6e704609e312970ac267a4073c7ba44b SHA256 57ede81d222c480dbac72995e1dd73a5b0c9b6feddb66e6c79020c23204e0b8d
DIST thunderbird-1.5.0.14-source.tar.bz2 36183747 RMD160 28f16d7b9b86ad94f7deafc324266429e3708ac8 SHA1 e952ae6724cdd5558c73c9ada842157b155b0708 SHA256 e5cab7b16a7d47a4e9fe2f9361c69fe6dd0e94fda3ec70d27da1c65e1bf45d04
DIST thunderbird-2.0.0.22-source.tar.bz2 40489725 RMD160 6f9693c0b7f5af0c60d245c96492f11a4c286efd SHA1 a9da470ff090dfd049cae6b0c3b1a4e95c3f2022 SHA256 e364e5e1a96521b98b8391c5028207408d3d285ab40e091fa503b87a19d24d04
+DIST thunderbird-2.0.0.23-source.tar.bz2 38860245 RMD160 a1ef4af80121cdd8000c796e0c5fb575bea30348 SHA1 a237bfb92ec9c4b2bed7ea744e95d01ec43e07f1 SHA256 2c5007dfa1d094d8f089d42208e77d673e811a49980b7df77b04ed1606d30d21
EBUILD mozilla-thunderbird-1.5.0.14.ebuild 8126 RMD160 75af31f9e1e77946253d8510e58de626c682c8cd SHA1 c7ba28ef58e8eba04826cdd0b0797543e4b85c84 SHA256 846fd0658e0cf6ded21f83f241497c68638114678ff69a90d8f394d69bcd8103
EBUILD mozilla-thunderbird-2.0.0.22.ebuild 7778 RMD160 4bcd6832ef89535c24bc6d6a33f64d4ced038e1a SHA1 83ac4ab87d0ded321c637d46f2edb147c5cc5fc3 SHA256 f60871fd5c8eda65dc2fcaa17869a4c6e4c842d6473ccc304e1bcf756e3541cf
-MISC ChangeLog 45030 RMD160 e35775ceeb1482caabddc380584a8971d1f814be SHA1 d2495d65f91c534afc14d67bab59f86ceb1d2837 SHA256 d6b80bac79735c0e6f83a62e94d625737e5c2e99554baae13ada4247bc6ac71b
+EBUILD mozilla-thunderbird-2.0.0.23.ebuild 7785 RMD160 46cdc5861a0f17278da78712fb49e63961e863eb SHA1 29cc1d24763cb7eeb276b9b539a29bdb05ea5810 SHA256 fcb7b22661542ef693dc2888dc48d3bebeff72921a2f8912cf3cc8ec64ad2d34
+MISC ChangeLog 45180 RMD160 5ae24a9dee996d15b763c70b12e3f7d848c38e1a SHA1 935ca550dface4337c70578f74bb1cf36da6915d SHA256 5cc3590a31c77f4c8cd189b0738a5dca8f2cab61221660a16c9e160d81425991
MISC metadata.xml 399 RMD160 c2bc8ef91c29025087629e46b575b607d854988d SHA1 59fca50081eb53b9f6167e95fa89f1933bb4d721 SHA256 d9788b19b766806196a3a1546c1ff2af8eb94b0c94917357979215ba161ca8df
diff --git a/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.23.ebuild b/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.23.ebuild
new file mode 100644
index 000000000000..d5884861d851
--- /dev/null
+++ b/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.23.ebuild
@@ -0,0 +1,254 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.23.ebuild,v 1.1 2009/08/26 13:33:49 armin76 Exp $
+
+WANT_AUTOCONF="2.1"
+
+inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib mozextension autotools
+
+PATCH="${PN}-2.0.0.21-patches-0.1"
+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 mk nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ru sk sl sv-SE tr uk zh-CN zh-TW"
+NOSHORTLANGS="en-GB es-AR pt-BR zh-TW"
+
+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 mozdom replytolist"
+
+MOZ_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${PV}"
+SRC_URI="${MOZ_URI}/source/thunderbird-${PV}-source.tar.bz2
+ mirror://gentoo/${PATCH}.tar.bz2"
+
+# These are in
+#
+# http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${MY_PV}/linux-i686/xpi/
+#
+# for i in $LANGS $SHORTLANGS; do wget $i.xpi -O ${P}-$i.xpi; done
+for X in ${LANGS} ; do
+ if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
+ SRC_URI="${SRC_URI}
+ linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-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%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )"
+ fi
+ IUSE="${IUSE} linguas_${X%%-*}"
+ fi
+done
+
+RDEPEND=">=www-client/mozilla-launcher-1.56
+ >=dev-libs/nss-3.11.5
+ >=dev-libs/nspr-4.6.5-r1"
+
+PDEPEND="crypt? ( >=x11-plugins/enigmail-0.95.7-r5 )
+ replytolist? ( x11-plugins/replytolist )"
+
+S="${WORKDIR}/mozilla"
+
+# Needed by src_compile() and src_install().
+# Would do in pkg_setup but that loses the export attribute, they
+# become pure shell variables.
+export MOZ_CO_PROJECT=mail
+export BUILD_OFFICIAL=1
+export MOZILLA_OFFICIAL=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(){
+ if ! built_with_use x11-libs/cairo X; then
+ eerror "Cairo is not built with X useflag."
+ eerror "Please add 'X' to your USE flags, and re-emerge cairo."
+ die "Cairo needs X"
+ fi
+
+ if ! built_with_use --missing true x11-libs/pango X; then
+ eerror "Pango is not built with X useflag."
+ eerror "Please add 'X' to your USE flags, and re-emerge pango."
+ die "Pango needs X"
+ fi
+
+ 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
+
+ use moznopango && warn_mozilla_launcher_stub
+}
+
+src_unpack() {
+ unpack thunderbird-${PV}-source.tar.bz2 ${PATCH}.tar.bz2
+
+ linguas
+ for X in ${linguas}; do
+ [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
+ done
+ if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
+ elog "Selected language packs (first will be default): ${linguas}"
+ fi
+
+ # Apply our patches
+ cd "${S}" || die "cd failed"
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ epatch "${WORKDIR}"/patch
+
+ eautoreconf
+}
+
+src_compile() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ ####################################
+ #
+ # mozconfig, CFLAGS and CXXFLAGS setup
+ #
+ ####################################
+
+ mozconfig_init
+ mozconfig_config
+
+ # tb-specific settings
+ 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
+
+ # Bug 223375, 217805
+ # Breaks builds with gcc-4.3
+ if [[ $(gcc-version) == "4.3" ]]; then
+ mozconfig_annotate 'gcc-4.3 breaks builds' --disable-optimize
+ fi
+
+ # Bug #72667
+ if use mozdom; then
+ mozconfig_annotate '' --enable-extensions=default,inspector
+ else
+ mozconfig_annotate '' --enable-extensions=default
+ fi
+
+ if ! use bindist; then
+ mozconfig_annotate '' --enable-official-branding
+ fi
+
+ # Finalize and report settings
+ mozconfig_final
+
+ if [[ $(gcc-major-version) -lt 4 ]]; then
+ append-cxxflags -fno-stack-protector
+ fi
+
+ ####################################
+ #
+ # Configure and build
+ #
+ ####################################
+
+ CPPFLAGS="${CPPFLAGS}" \
+ CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
+ econf || die
+
+ # This removes extraneous CFLAGS from the Makefiles to reduce RAM
+ # requirements while compiling
+ edit_makefiles
+
+ emake || die
+}
+
+src_install() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # Most of the installation happens here
+ dodir "${MOZILLA_FIVE_HOME}"
+ cp -RL "${S}"/dist/bin/* "${D}"/"${MOZILLA_FIVE_HOME}"/ || die "cp failed"
+
+ linguas
+ for X in ${linguas}; do
+ [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}"
+ done
+
+ local LANG=${linguas%% *}
+ if [[ ${LANG} != "" && ${LANG} != "en" ]]; then
+ ebegin "Setting default locale to ${LANG}"
+ sed -i "s:pref(\"general.useragent.locale\", \"en-US\"):pref(\"general.useragent.locale\", \"${LANG}\"):" \
+ "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-thunderbird.js \
+ "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-l10n.js
+ eend $? || die "sed failed to change locale"
+ fi
+
+ # Create directory structure to support portage-installed extensions.
+ # See update_chrome() in mozilla-launcher
+ keepdir ${MOZILLA_FIVE_HOME}/chrome.d
+ keepdir ${MOZILLA_FIVE_HOME}/extensions.d
+ cp "${D}"${MOZILLA_FIVE_HOME}/chrome/installed-chrome.txt \
+ "${D}"${MOZILLA_FIVE_HOME}/chrome.d/0_base-chrome.txt
+
+ # Create /usr/bin/thunderbird
+ install_mozilla_launcher_stub thunderbird ${MOZILLA_FIVE_HOME}
+
+ if ! use bindist; then
+ doicon "${FILESDIR}"/icon/thunderbird-icon.png
+ domenu "${FILESDIR}"/icon/${PN}.desktop
+ else
+ doicon "${FILESDIR}"/icon/thunderbird-icon-unbranded.png
+ newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \
+ ${PN}.desktop
+ fi
+
+ # Install files necessary for applications to build against thunderbird
+ elog "Installing includes and idl files..."
+ cp -LfR "${S}"/dist/include "${D}"/"${MOZILLA_FIVE_HOME}" || die "cp failed"
+ cp -LfR "${S}"/dist/idl "${D}"/"${MOZILLA_FIVE_HOME}" || die "cp failed"
+
+ # Dirty hack to get some applications using this header running
+ dosym "${MOZILLA_FIVE_HOME}"/include/necko/nsIURI.h \
+ "${MOZILLA_FIVE_HOME}"/include/nsIURI.h
+
+ # Warn user that remerging enigmail is neccessary on USE=crypt
+ use crypt && ewarn "Please remerge x11-plugins/enigmail after updating ${PN}."
+}
+
+pkg_postinst() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # This should be called in the postinst and postrm of all the
+ # mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and
+ # thunderbird-bin ebuilds.
+ update_mozilla_launcher_symlinks
+}
+
+pkg_postrm() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ update_mozilla_launcher_symlinks
+}