summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2007-12-31 14:02:50 +0000
committerRaúl Porcel <armin76@gentoo.org>2007-12-31 14:02:50 +0000
commit81a95459070b4af0d86f43fb7163b0a266eedc03 (patch)
tree1f4672cf9ef9e9cc9cc0433bd8a8d181d7feaa7b /mail-client/mozilla-thunderbird
parentInitial import; bug 201853 (diff)
downloadgentoo-2-81a95459070b4af0d86f43fb7163b0a266eedc03.tar.gz
gentoo-2-81a95459070b4af0d86f43fb7163b0a266eedc03.tar.bz2
gentoo-2-81a95459070b4af0d86f43fb7163b0a266eedc03.zip
Version bump, stable on alpha/ia64/sparc/x86 since it contains security fixes
(Portage version: 2.1.3.19, RepoMan options: --force)
Diffstat (limited to 'mail-client/mozilla-thunderbird')
-rw-r--r--mail-client/mozilla-thunderbird/ChangeLog8
-rw-r--r--mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-1.5.0.14102
-rw-r--r--mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.14.ebuild265
3 files changed, 374 insertions, 1 deletions
diff --git a/mail-client/mozilla-thunderbird/ChangeLog b/mail-client/mozilla-thunderbird/ChangeLog
index 82ee1bebfba0..d204ae71f8eb 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-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.240 2007/11/19 10:34:40 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.241 2007/12/31 14:02:49 armin76 Exp $
+
+*mozilla-thunderbird-1.5.0.14 (31 Dec 2007)
+
+ 31 Dec 2007; Raúl Porcel <armin76@gentoo.org>
+ +mozilla-thunderbird-1.5.0.14.ebuild:
+ Version bump, stable on alpha/ia64/sparc/x86 since it contains security fixes
19 Nov 2007; Raúl Porcel <armin76@gentoo.org>
-mozilla-thunderbird-2.0.0.6.ebuild:
diff --git a/mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-1.5.0.14 b/mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-1.5.0.14
new file mode 100644
index 000000000000..05ebeb2ef48e
--- /dev/null
+++ b/mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-1.5.0.14
@@ -0,0 +1,102 @@
+MD5 ea829250fd83f61fb9d5c19643c20ee2 mozilla-thunderbird-1.5.0.10-patches-0.1.tar.bz2 30777
+RMD160 08da7a7dadfc731e5e18d86ca9aa2679eb14fa1d mozilla-thunderbird-1.5.0.10-patches-0.1.tar.bz2 30777
+SHA256 7bf7d7abe757cc1dc0ce67fe083c6663fedbcc6e6bdd65cc09ce543ac8e54b9c mozilla-thunderbird-1.5.0.10-patches-0.1.tar.bz2 30777
+MD5 5ae845871c49ead36363b4e86f06788c mozilla-thunderbird-1.5.0.14-bg.xpi 220783
+RMD160 72272077ade36c555f53a2a55e2ca7ee9453be8e mozilla-thunderbird-1.5.0.14-bg.xpi 220783
+SHA256 804b3af920e9a31c41e436a94fc78fbddff3e6b17ef92675ae936668f63711f8 mozilla-thunderbird-1.5.0.14-bg.xpi 220783
+MD5 4a9ed175599f350d073ac761041f6ea2 mozilla-thunderbird-1.5.0.14-ca.xpi 183259
+RMD160 3d2a9beaee785c799198ec744949ff13a914663f mozilla-thunderbird-1.5.0.14-ca.xpi 183259
+SHA256 5202c0171e93d3d69ac840e9658635bd50042510244f930b658b9bb33dd23fe2 mozilla-thunderbird-1.5.0.14-ca.xpi 183259
+MD5 5d53629a4c8484eeb81a345459ba4657 mozilla-thunderbird-1.5.0.14-cs.xpi 191481
+RMD160 63b734d384b5c4410c80e0955dfce6e520503976 mozilla-thunderbird-1.5.0.14-cs.xpi 191481
+SHA256 7c60281e24a2c268082f4dd222297a20c6584c982a91b651d14537ecb3f01a2f mozilla-thunderbird-1.5.0.14-cs.xpi 191481
+MD5 c29c8e36ae78dd643fc703acc63e8411 mozilla-thunderbird-1.5.0.14-da.xpi 155064
+RMD160 4ec4c5c1dd5aa40bc2bb1069ef53583012d2fc76 mozilla-thunderbird-1.5.0.14-da.xpi 155064
+SHA256 af78b0391e39b04194e154f8d5a5dfa27b9edaecc3ac9b5342f97ee77f55156c mozilla-thunderbird-1.5.0.14-da.xpi 155064
+MD5 e9eff22478fef341bfe6610e3b25da51 mozilla-thunderbird-1.5.0.14-de.xpi 154500
+RMD160 c9bc01468ef6c3da2e94d9d4eada974b022e761c mozilla-thunderbird-1.5.0.14-de.xpi 154500
+SHA256 795bdc00dd558abe98dd24131c952c7564897fe9ed40255b19a6b729a383c832 mozilla-thunderbird-1.5.0.14-de.xpi 154500
+MD5 b7e91fbee83438204a12bff624abb752 mozilla-thunderbird-1.5.0.14-el.xpi 180139
+RMD160 c7a7f7e00bbe6296568e9977c1c59e3aa31479f6 mozilla-thunderbird-1.5.0.14-el.xpi 180139
+SHA256 e507a194642030c65661b5a0f335953cf64ff42513774145f49c189a7ed08a48 mozilla-thunderbird-1.5.0.14-el.xpi 180139
+MD5 df049b5e93e561d94d3d2113bc174280 mozilla-thunderbird-1.5.0.14-en-GB.xpi 172342
+RMD160 06a347f95a750eae35b2a01a4325eebd914af8ba mozilla-thunderbird-1.5.0.14-en-GB.xpi 172342
+SHA256 df52ebd783b0b1e10c1b0a43ff85a45753e69e1768ce45976ca9bfedd7be7827 mozilla-thunderbird-1.5.0.14-en-GB.xpi 172342
+MD5 e4fa05613c0046a43ea8d7f2971597a7 mozilla-thunderbird-1.5.0.14-es-AR.xpi 183644
+RMD160 31ae5dc40c59608dd9a307558daa88a7acb3a920 mozilla-thunderbird-1.5.0.14-es-AR.xpi 183644
+SHA256 ca6f08d6f1b0f6228e0e162caa291cbafbbc6abe1b42e1da3892c4473761e97d mozilla-thunderbird-1.5.0.14-es-AR.xpi 183644
+MD5 09bbf228be059c30f914513ea0f7b46e mozilla-thunderbird-1.5.0.14-es-ES.xpi 145447
+RMD160 9a9502462f4ba453ad3e6a8aa5456c6fda7b2af4 mozilla-thunderbird-1.5.0.14-es-ES.xpi 145447
+SHA256 9e53bbfc87a75e8f895c05a261580274a8c6229dcb779c6c735629a931d70226 mozilla-thunderbird-1.5.0.14-es-ES.xpi 145447
+MD5 8c91c9e5d3987bb2894ca7c8b130e7b0 mozilla-thunderbird-1.5.0.14-eu.xpi 180846
+RMD160 474c6b4603086aaadbdd4d16de21bcea09fa3f03 mozilla-thunderbird-1.5.0.14-eu.xpi 180846
+SHA256 d13e43b5b39ffea5b1cfc233cbc11dcdacc15822c79c546973b0d155cd7ec9fb mozilla-thunderbird-1.5.0.14-eu.xpi 180846
+MD5 dc72c641110abb3239c195c3df0709ff mozilla-thunderbird-1.5.0.14-fi.xpi 186704
+RMD160 840544ad00ed21a4509a013342c6237dea98139b mozilla-thunderbird-1.5.0.14-fi.xpi 186704
+SHA256 c9a61062c93e7a21dcf09573610755278fc442248e51ca2ab6ca0ac007f4bce6 mozilla-thunderbird-1.5.0.14-fi.xpi 186704
+MD5 f03d2f1ebf047e014b0c67b11c237ff6 mozilla-thunderbird-1.5.0.14-fr.xpi 190931
+RMD160 5d71426e607a8d48cbca509b54359ce6980c0214 mozilla-thunderbird-1.5.0.14-fr.xpi 190931
+SHA256 74d5c287c20d64c9cffc04dd542149ec5043e31289503b31f7466403ae9e7de1 mozilla-thunderbird-1.5.0.14-fr.xpi 190931
+MD5 783c2920845ec2de1cbd0f686ea18122 mozilla-thunderbird-1.5.0.14-ga-IE.xpi 190229
+RMD160 947be42589b667ca460fda1af6605797ddc105c7 mozilla-thunderbird-1.5.0.14-ga-IE.xpi 190229
+SHA256 a00125c6ab4219d721cfd8abd9ba3e335bff1a43d9ae69677f1a0518c958e8f2 mozilla-thunderbird-1.5.0.14-ga-IE.xpi 190229
+MD5 d691d7e06bb29700cb725d071ac7b25d mozilla-thunderbird-1.5.0.14-gu-IN.xpi 212049
+RMD160 04078a3f65a8f999fbf38a1fa3a38816df2fb587 mozilla-thunderbird-1.5.0.14-gu-IN.xpi 212049
+SHA256 b3a16cd622765a051ff92e87e144fddcc5831386b3676f4b25c4ba9c4ce1d504 mozilla-thunderbird-1.5.0.14-gu-IN.xpi 212049
+MD5 07644b9f22ea9e42fb3c4b29694333cf mozilla-thunderbird-1.5.0.14-he.xpi 164780
+RMD160 3e230afab327fab84aa9ad99bda39d941b9dce08 mozilla-thunderbird-1.5.0.14-he.xpi 164780
+SHA256 a59e744bd0ee7bdd7334ff890414bd30561954d8f786279dbe0a932d5aaedda3 mozilla-thunderbird-1.5.0.14-he.xpi 164780
+MD5 6266c67de16e2d9fbe97ddfcf1878cf9 mozilla-thunderbird-1.5.0.14-hu.xpi 197664
+RMD160 18871b2285696e9013267901376df3c18fff602c mozilla-thunderbird-1.5.0.14-hu.xpi 197664
+SHA256 ef4257ba46eae1ff544be388553d3fc6fb794f88f1f75c3a8ec5720e1edea1c0 mozilla-thunderbird-1.5.0.14-hu.xpi 197664
+MD5 890ec67a78d5f538f99dd2d3a1933dae mozilla-thunderbird-1.5.0.14-it.xpi 144839
+RMD160 4186311c10029728d0c69c8ca18dd4ae248ad6a5 mozilla-thunderbird-1.5.0.14-it.xpi 144839
+SHA256 cc21ec6c1edee03de9413c915759ff1a814215e6d4a15266ca1c2f00904e0347 mozilla-thunderbird-1.5.0.14-it.xpi 144839
+MD5 350f0cb0000e6cfcf4a7d65240f1325a mozilla-thunderbird-1.5.0.14-ja.xpi 216584
+RMD160 b08071b37903abeb81d7077f4402c34503324937 mozilla-thunderbird-1.5.0.14-ja.xpi 216584
+SHA256 fdb9b1275e87568f20be9df8a0f8a092ec692e2331e150f615149acddc8ec7cc mozilla-thunderbird-1.5.0.14-ja.xpi 216584
+MD5 1c02871e4308f6af3e8c3ece385df22c mozilla-thunderbird-1.5.0.14-ko.xpi 192248
+RMD160 9f7bbc173a5d436fa30383d881d2f24d004f2e4b mozilla-thunderbird-1.5.0.14-ko.xpi 192248
+SHA256 e9741a0e770aaa6d1c7c8197886a95c6c466a98ec6244e00a12d85a9dad23f4a mozilla-thunderbird-1.5.0.14-ko.xpi 192248
+MD5 a0b57e5d7fa0928b03b1c4e3b59de218 mozilla-thunderbird-1.5.0.14-lt.xpi 193867
+RMD160 528abf76379e400e0223412994b12ef0bc11960f mozilla-thunderbird-1.5.0.14-lt.xpi 193867
+SHA256 afde12825c3489fae2f99b630d3dd7ca63f3021e27e5907041c65bceba6f0a32 mozilla-thunderbird-1.5.0.14-lt.xpi 193867
+MD5 89f400c5f9906d8fb07b4b4d37d454aa mozilla-thunderbird-1.5.0.14-mk.xpi 219450
+RMD160 88692f5ce39f6919db36f52881baee1f87e8f5c6 mozilla-thunderbird-1.5.0.14-mk.xpi 219450
+SHA256 d0edeb5465477909f02d6f6831fe00c1fe3e63b5007084c1c3ebd38b60120737 mozilla-thunderbird-1.5.0.14-mk.xpi 219450
+MD5 b4d45f24926ae6ecf91370b9653b79b9 mozilla-thunderbird-1.5.0.14-nb-NO.xpi 182579
+RMD160 11a94f2e1629dfc49a9fed645ac60561655128f8 mozilla-thunderbird-1.5.0.14-nb-NO.xpi 182579
+SHA256 bd88cf427084569707b7910550f99b114340376a55090e001a7abd3e2cad6d04 mozilla-thunderbird-1.5.0.14-nb-NO.xpi 182579
+MD5 bb4c75dba9a9f12ef339b835480cec67 mozilla-thunderbird-1.5.0.14-nl.xpi 182552
+RMD160 080f68fadfd7843d0cc1661882a9810eb737e79e mozilla-thunderbird-1.5.0.14-nl.xpi 182552
+SHA256 fb9f1020358a1eabdf7e3266de8478846b73871584c535ed8682c3ebdb730038 mozilla-thunderbird-1.5.0.14-nl.xpi 182552
+MD5 d1341f6dff1ba5a4cf9526100e3c4ece mozilla-thunderbird-1.5.0.14-pa-IN.xpi 201904
+RMD160 e98b87d4a282b6b71dff59b679380d617d75a836 mozilla-thunderbird-1.5.0.14-pa-IN.xpi 201904
+SHA256 5205cf9578d446f31b08290617ebf922ae0edbb79829d263afe5dc77d49e63b7 mozilla-thunderbird-1.5.0.14-pa-IN.xpi 201904
+MD5 dce288cd7b2d1d67bbf6ac934c79a539 mozilla-thunderbird-1.5.0.14-pl.xpi 180258
+RMD160 fd4b17dff855ab23c8ba7f69b9ac26bde9ad37e4 mozilla-thunderbird-1.5.0.14-pl.xpi 180258
+SHA256 5aa0bf3a091d622d285112a3af3bf553265df12c6d6087c6a4f65ae3cce69f5a mozilla-thunderbird-1.5.0.14-pl.xpi 180258
+MD5 98c6391d2032805df0f1a5a54346a5be mozilla-thunderbird-1.5.0.14-pt-BR.xpi 184497
+RMD160 8b5c7ae06e039d4a7671515087cde837f750b317 mozilla-thunderbird-1.5.0.14-pt-BR.xpi 184497
+SHA256 e87aa8f34b820235b174a19d0da65d613a919601329c57145562cce4df1aeaab mozilla-thunderbird-1.5.0.14-pt-BR.xpi 184497
+MD5 bc562a434439956818dc0c1ec9441316 mozilla-thunderbird-1.5.0.14-ru.xpi 190599
+RMD160 ff42f14c5f2afd26fe06d16a054afc114570ddf7 mozilla-thunderbird-1.5.0.14-ru.xpi 190599
+SHA256 e5d37a7927bdc24fa944982c282ef00d3402867660219923c39265896420244d mozilla-thunderbird-1.5.0.14-ru.xpi 190599
+MD5 89ea2b23a6a52acb5a61e391aedf55e9 mozilla-thunderbird-1.5.0.14-sk.xpi 193834
+RMD160 db47e4d141aae2a2d4a84c87226f45de0a455e26 mozilla-thunderbird-1.5.0.14-sk.xpi 193834
+SHA256 e7959095136f8b9b174d85602241bf98ae2223b53e29d28f44f9ea9e7cef5220 mozilla-thunderbird-1.5.0.14-sk.xpi 193834
+MD5 2acf2a57a453d9fd969dfd6d793ef205 mozilla-thunderbird-1.5.0.14-sl.xpi 187719
+RMD160 43e38929ab5376b7f27daededdf6d5f3288cd7f8 mozilla-thunderbird-1.5.0.14-sl.xpi 187719
+SHA256 3394759bf87075138848a6480c12f7a6a99009d18037e3380d4f5af247d1452e mozilla-thunderbird-1.5.0.14-sl.xpi 187719
+MD5 73a59236cff5e5ae723e981e96d43d38 mozilla-thunderbird-1.5.0.14-sv-SE.xpi 191058
+RMD160 0bae852025801bffe74b0303c0e6fc31b57efa50 mozilla-thunderbird-1.5.0.14-sv-SE.xpi 191058
+SHA256 453709cf7649655313b11f8069f15dbde95790843f174f2819ee9ca6511a14d1 mozilla-thunderbird-1.5.0.14-sv-SE.xpi 191058
+MD5 762752f702a5a06b2cc042d64e9036db mozilla-thunderbird-1.5.0.14-tr.xpi 155700
+RMD160 0ea83de263828a41711e85d4e06e328e6dbeb098 mozilla-thunderbird-1.5.0.14-tr.xpi 155700
+SHA256 f8f06c84d09e01bf2145acc22845414accdfda585c2a2b7454bcba554e060af0 mozilla-thunderbird-1.5.0.14-tr.xpi 155700
+MD5 d159d0492db9a32c1d386201f627b77f mozilla-thunderbird-1.5.0.14-zh-CN.xpi 155477
+RMD160 883b95f7535ee25d35c0a49a5f32d52b50ee7aff mozilla-thunderbird-1.5.0.14-zh-CN.xpi 155477
+SHA256 c531bc927ba8326a76351a5f8ca0e0a1cb991751d954053801f0176e4a7cb7df mozilla-thunderbird-1.5.0.14-zh-CN.xpi 155477
+MD5 1b09a45a8287db092e64f705277b4ea6 thunderbird-1.5.0.14-source.tar.bz2 36183747
+RMD160 28f16d7b9b86ad94f7deafc324266429e3708ac8 thunderbird-1.5.0.14-source.tar.bz2 36183747
+SHA256 e5cab7b16a7d47a4e9fe2f9361c69fe6dd0e94fda3ec70d27da1c65e1bf45d04 thunderbird-1.5.0.14-source.tar.bz2 36183747
diff --git a/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.14.ebuild b/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.14.ebuild
new file mode 100644
index 000000000000..6c08e1c9eec0
--- /dev/null
+++ b/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.14.ebuild
@@ -0,0 +1,265 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.14.ebuild,v 1.1 2007/12/31 14:02:49 armin76 Exp $
+
+WANT_AUTOCONF="2.1"
+
+unset ALLOWED_FLAGS # stupid extra-functions.sh ... bug 49179
+inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib autotools mozextension
+
+LANGS="bg ca cs da de el en-GB es-AR es-ES eu fi fr ga-IE gu-IN he hu it ja ko lt mk nb-NO nl pa-IN pl pt-BR ru sk sl sv-SE tr zh-CN"
+SHORTLANGS="es-ES ga-IE nb-NO sv-SE"
+PATCH="${PN}-1.5.0.10-patches-0.1"
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="http://www.mozilla.com/thunderbird/"
+SRC_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${PV}/source/thunderbird-${PV}-source.tar.bz2
+ mirror://gentoo/${PATCH}.tar.bz2"
+
+KEYWORDS="alpha ~amd64 ia64 ~mips ~ppc sparc x86 ~x86-fbsd"
+SLOT="0"
+LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
+IUSE="ldap crypt"
+
+for X in ${LANGS} ; do
+ SRC_URI="${SRC_URI} linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )"
+ IUSE="${IUSE} linguas_${X/-/_}"
+done
+
+for X in ${SHORTLANGS} ; do
+ SRC_URI="${SRC_URI} linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )"
+ IUSE="${IUSE} linguas_${X%%-*}"
+done
+
+RDEPEND=">=www-client/mozilla-launcher-1.55
+ >=dev-libs/nss-3.11.7
+ >=dev-libs/nspr-4.6.7"
+PDEPEND="crypt? ( <x11-plugins/enigmail-0.95.0 )"
+
+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 BUILD_OFFICIAL=1
+export MOZILLA_OFFICIAL=1
+export MOZ_CO_PROJECT=mail
+
+linguas() {
+ linguas=
+ local LANG
+ for LANG in ${LINGUAS}; do
+ if hasq ${LANG} en en_US; then
+ hasq en ${linguas} || \
+ linguas="${linguas:+"${linguas} "}en"
+ continue
+ elif hasq ${LANG} ${LANGS//-/_}; then
+ hasq ${LANG//_/-} ${linguas} || \
+ linguas="${linguas:+"${linguas} "}${LANG//_/-}"
+ continue
+ else
+ local SLANG
+ for SLANG in ${SHORTLANGS}; do
+ if [[ ${LANG} == ${SLANG%%-*} ]]; then
+ hasq ${SLANG} ${linguas} || \
+ linguas="${linguas:+"${linguas} "}${SLANG}"
+ continue 2
+ fi
+ done
+ fi
+ ewarn "Sorry, but mozilla-thunderbird 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
+
+ use moznopango && warn_mozilla_launcher_stub
+}
+
+src_unpack() {
+ unpack ${A}
+
+ linguas
+ for X in ${linguas}; do
+ [[ ${X} != en ]] && xpi_unpack ${P}-${X}.xpi
+ done
+ if [[ ${linguas} != "" ]]; then
+ einfo "Selected language packs (first will be default): ${linguas}"
+ fi
+
+ cd ${S} || die "cd failed"
+ # Apply our patches
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+
+ if use alpha || use ia64; then
+ EPATCH_EXCLUDE="002_firefox-1.5-visibility-check.patch 009_firefox-1.5-no-textrels.patch"
+ fi
+
+ epatch ${WORKDIR}/patch
+
+ # Fix a compilation issue using the 32-bit userland with 64-bit kernel on
+ # PowerPC, because with that configuration, it detects a ppc64 system.
+ # -- hansmi, 2005-11-13
+ if use ppc && [[ "${PROFILE_ARCH}" == ppc64 ]]; then
+ sed -i -e "s#OS_TEST=\`uname -m\`\$#OS_TEST=${ARCH}#" \
+ ${S}/configure
+ sed -i -e "s#OS_TEST :=.*uname -m.*\$#OS_TEST:=${ARCH}#" \
+ ${S}/security/coreconf/arch.mk
+ fi
+
+ eautoreconf || die "failed running autoreconf"
+}
+
+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 '' --enable-extensions=default
+ 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 '' --enable-official-branding
+
+ if use alpha || use ia64; then
+ echo "ac_cv_visibility_pragma=no" >> "${S}/.mozconfig"
+ fi
+
+ # Finalize and report settings
+ mozconfig_final
+
+ # hardened GCC uses -fstack-protector-all by default, which breaks us
+ gcc-specs-ssp && append-flags -fno-stack-protector-all
+ replace-flags -fstack-protector-all -fstack-protector
+
+ ####################################
+ #
+ # Configure and build
+ #
+ ####################################
+ append-flags -freorder-blocks -fno-reorder-functions
+
+ # Export CPU_ARCH_TEST as it is not exported by default.
+ case $(tc-arch) in
+ amd64) [[ ${ABI} == "x86" ]] && CPU_ARCH_TEST="x86" || CPU_ARCH_TEST="x86_64" ;;
+ ia64) CPU_ARCH_TEST="ia64" ;;
+ ppc) CPU_ARCH_TEST="ppc" ;;
+ *) CPU_ARCH_TEST=$(tc-arch) ;;
+ esac
+
+ export CPU_ARCH_TEST
+
+ 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 -j1 || die
+}
+
+pkg_preinst() {
+ declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN}
+
+ echo ""
+ elog "Removing old installs though some really ugly code. It potentially"
+ elog "eliminates any problems during the install, however suggestions to"
+ elog "replace this are highly welcome. Send comments and suggestions to"
+ elog "mozilla@gentoo.org"
+ rm -rf ${ROOT}${MOZILLA_FIVE_HOME}
+ echo ""
+}
+
+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 "Copy of files 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}
+
+ # Install icon and .desktop for menu entry
+ insinto /usr/share/pixmaps
+ doins ${FILESDIR}/icon/thunderbird-icon.png
+
+ # Fix bug 54179: Install .desktop file into /usr/share/applications
+ # instead of /usr/share/gnome/apps/Internet (18 Jun 2004 agriffis)
+ insinto /usr/share/applications
+ doins ${FILESDIR}/icon/${PN}.desktop
+
+ ####################################
+ #
+ # Install files necessary for applications to build against firefox
+ #
+ ####################################
+
+ ewarn "Installing includes and idl files..."
+ dodir ${MOZILLA_FIVE_HOME}/idl ${MOZILLA_FIVE_HOME}/include
+ cd ${S}/dist
+ cp -LfR include/* ${D}${MOZILLA_FIVE_HOME}/include || die "failed to copy"
+ cp -LfR idl/* ${D}${MOZILLA_FIVE_HOME}/idl || die "failed to copy"
+
+ # Dirty hack to get some applications using this header running
+ dosym ${MOZILLA_FIVE_HOME}/include/necko/nsIURI.h \
+ /usr/$(get_libdir)/${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 mozilla-thunderbird."
+}
+
+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
+}