summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2006-12-19 18:52:04 +0000
committerStefan Schweizer <genstef@gentoo.org>2006-12-19 18:52:04 +0000
commitecc5eeecf630ce296d675bf0b013a5433f86cbb6 (patch)
treefe7aff7d2bca194046ee0fb4b17c0cc42dd1b36b /mail-client
parentVersion Bump. Remove macosx and freebsd patches that is included in this rele... (diff)
downloadgentoo-2-ecc5eeecf630ce296d675bf0b013a5433f86cbb6.tar.gz
gentoo-2-ecc5eeecf630ce296d675bf0b013a5433f86cbb6.tar.bz2
gentoo-2-ecc5eeecf630ce296d675bf0b013a5433f86cbb6.zip
version bump thanks anarchy
(Portage version: 2.1.2_rc3-r7)
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-1.5.0.9102
-rw-r--r--mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.9.ebuild248
2 files changed, 350 insertions, 0 deletions
diff --git a/mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-1.5.0.9 b/mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-1.5.0.9
new file mode 100644
index 000000000000..f4d4c9371a74
--- /dev/null
+++ b/mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-1.5.0.9
@@ -0,0 +1,102 @@
+MD5 cc770b5e5f8081a8ab94a36b7526269b mozilla-thunderbird-1.5.0.8-patches-0.1.tar.bz2 30722
+RMD160 d9ddc81daa4f87e3c64ce12d03e79fc3ea1a2549 mozilla-thunderbird-1.5.0.8-patches-0.1.tar.bz2 30722
+SHA256 144bfee7862df5229628710c45943d4ca33423cc68a51484a99c56318071950d mozilla-thunderbird-1.5.0.8-patches-0.1.tar.bz2 30722
+MD5 87f3b03f0ee918b9794627e662a01927 mozilla-thunderbird-1.5.0.9-bg.xpi 220781
+RMD160 ebb51f3c0b187b18c804aa93a5d477c4e55a4bfb mozilla-thunderbird-1.5.0.9-bg.xpi 220781
+SHA256 23488d9e32bc17f41b7e0fda5fc389d88a17c15decd31e5b7312762f60a8653a mozilla-thunderbird-1.5.0.9-bg.xpi 220781
+MD5 0a4909d5346e398b43f859d40061e914 mozilla-thunderbird-1.5.0.9-ca.xpi 183258
+RMD160 b74766969302f66db5e115fd0a852d0976079feb mozilla-thunderbird-1.5.0.9-ca.xpi 183258
+SHA256 4eba3b161d7acf292173a13ebe9abfdba77dc165dedb3181dfcf9fa2f3e62a56 mozilla-thunderbird-1.5.0.9-ca.xpi 183258
+MD5 390118dd49fbbcb30e3eb6950095857d mozilla-thunderbird-1.5.0.9-cs.xpi 191480
+RMD160 08c8cba31e09c26a73b20bb63a4c35a05c6e1805 mozilla-thunderbird-1.5.0.9-cs.xpi 191480
+SHA256 efb352a61eaa478638d5efe2e8fc8f937b32733eb9a4b58ae5fd7f0ab2b8ebed mozilla-thunderbird-1.5.0.9-cs.xpi 191480
+MD5 592a85e9ce445732d28e40aa709db3ac mozilla-thunderbird-1.5.0.9-da.xpi 155065
+RMD160 45b91ffc8e8368e221d5fb7e1b3027713b7ca7ea mozilla-thunderbird-1.5.0.9-da.xpi 155065
+SHA256 fcebdd77939577a4599fd8f1423a266aa8fe388e7e21a1a9e43bdf0ed127bb5b mozilla-thunderbird-1.5.0.9-da.xpi 155065
+MD5 62dc4ebd79e3ab4dcabf9cd85d086473 mozilla-thunderbird-1.5.0.9-de.xpi 154498
+RMD160 55c95a1942dc2dabb74ea3037d11c4bb81afa9c6 mozilla-thunderbird-1.5.0.9-de.xpi 154498
+SHA256 5afecf36a46537fc714a7698f4be0733288f09b5e61fce4635b01d8fef492fa6 mozilla-thunderbird-1.5.0.9-de.xpi 154498
+MD5 1c75777d2b042e20cc06171cdbb43a24 mozilla-thunderbird-1.5.0.9-el.xpi 180138
+RMD160 b1fdcc3f1b7143ae9d165dff88db0e4529bdfb42 mozilla-thunderbird-1.5.0.9-el.xpi 180138
+SHA256 113ed056023b7d9c41f052bdc910934e0cd0057ee1d3d78c01e9e597eaea018e mozilla-thunderbird-1.5.0.9-el.xpi 180138
+MD5 f90a7f129a7f1e5184ced8b47559d2c7 mozilla-thunderbird-1.5.0.9-en-GB.xpi 172340
+RMD160 b6de4e54bca8676009992bbf1e9e356ccc389fa6 mozilla-thunderbird-1.5.0.9-en-GB.xpi 172340
+SHA256 6eadcc02e627871972e8fb203837bde61c709d99a24d7689da32724bff3d063d mozilla-thunderbird-1.5.0.9-en-GB.xpi 172340
+MD5 2b0bedffd7c552e004bd498d72a2bdbf mozilla-thunderbird-1.5.0.9-es-AR.xpi 183642
+RMD160 05f29cc2b3fd644a8bf5d9ab3a5338de0ea20de5 mozilla-thunderbird-1.5.0.9-es-AR.xpi 183642
+SHA256 260bf57d31bc3a37d700a2c4147039726fd312e637d88092b2ffe5256c7912b5 mozilla-thunderbird-1.5.0.9-es-AR.xpi 183642
+MD5 89f6b552d599d247d6b3de28c05fa469 mozilla-thunderbird-1.5.0.9-es-ES.xpi 145446
+RMD160 67db0c61d4fd64f53bfc970263ff7061a9953a22 mozilla-thunderbird-1.5.0.9-es-ES.xpi 145446
+SHA256 c8733a0a85e46cbed602016d61beec3680214554506e1bfb136095653a74f676 mozilla-thunderbird-1.5.0.9-es-ES.xpi 145446
+MD5 94399983e151a81ae23322fad34373a3 mozilla-thunderbird-1.5.0.9-eu.xpi 180844
+RMD160 5e10798a254d4de7fdd482b808a584d9fb323b4f mozilla-thunderbird-1.5.0.9-eu.xpi 180844
+SHA256 81f33d360a5458cbc369df465823d28a2cd297d360880064202a4369643c5c35 mozilla-thunderbird-1.5.0.9-eu.xpi 180844
+MD5 5c511fbba69eb4de44eeae1c96a1cacc mozilla-thunderbird-1.5.0.9-fi.xpi 186703
+RMD160 cc0176f541f5b7fbd7b278467f505f43e8b6781a mozilla-thunderbird-1.5.0.9-fi.xpi 186703
+SHA256 136434beba723b1794e23f971e04b76c874d3194bd38bb0d476b40570c8c8d80 mozilla-thunderbird-1.5.0.9-fi.xpi 186703
+MD5 2683514f0a906b6458676109fe7587aa mozilla-thunderbird-1.5.0.9-fr.xpi 190924
+RMD160 98600f809a0df5b5f4f324f15737b16915060837 mozilla-thunderbird-1.5.0.9-fr.xpi 190924
+SHA256 70ddcf83328d4c0ddbd4c648964a183eb7c12de714a9fbab5af3a524985bed8c mozilla-thunderbird-1.5.0.9-fr.xpi 190924
+MD5 c984fc173ab7bb332a43ef30f383c1f2 mozilla-thunderbird-1.5.0.9-ga-IE.xpi 190228
+RMD160 f1223aae2f1ddbe98aa4007979baca5505887627 mozilla-thunderbird-1.5.0.9-ga-IE.xpi 190228
+SHA256 5e87bb7b94dfdff820425cba57d72209c4e559edbf808df15c3743774345371e mozilla-thunderbird-1.5.0.9-ga-IE.xpi 190228
+MD5 9d0c0a556e62d4607ea1c8ec6362a849 mozilla-thunderbird-1.5.0.9-gu-IN.xpi 212048
+RMD160 07690b68b8339a27d3ba31846277aab02f921747 mozilla-thunderbird-1.5.0.9-gu-IN.xpi 212048
+SHA256 45bff4983f39992805d78490041e6a2beb4f511bebb85cf148322d89e12d63e2 mozilla-thunderbird-1.5.0.9-gu-IN.xpi 212048
+MD5 490945e37b6ba2277a6c0ee4e73e116b mozilla-thunderbird-1.5.0.9-he.xpi 164779
+RMD160 8ce136bd7d60827a8d47d60f686c11d2b109471f mozilla-thunderbird-1.5.0.9-he.xpi 164779
+SHA256 30176ccc3596f408d9f7d7c655b66b195f856c8b9fb62ed92efdf9811608ac8c mozilla-thunderbird-1.5.0.9-he.xpi 164779
+MD5 e7fe043e3f1cc56a9f8fafbe9c144ade mozilla-thunderbird-1.5.0.9-hu.xpi 197663
+RMD160 4eaccc42d14d6fcb2df43b4ea1d2d0fb77c686b5 mozilla-thunderbird-1.5.0.9-hu.xpi 197663
+SHA256 562ed7057b0b03bf2b1d897b74174956937e298b878a4c07120d8632c050f5b0 mozilla-thunderbird-1.5.0.9-hu.xpi 197663
+MD5 013e8f2a508496d369970dc87c697523 mozilla-thunderbird-1.5.0.9-it.xpi 144839
+RMD160 6d3c53fbf54e3f8d618c495b49f7bb937bd30c42 mozilla-thunderbird-1.5.0.9-it.xpi 144839
+SHA256 118400ca3a8ea0739ccc6aabf7c09a6f91a5d208e89a8c064783ff6116f501f9 mozilla-thunderbird-1.5.0.9-it.xpi 144839
+MD5 da32ab0bc3198542a653891036ce10c3 mozilla-thunderbird-1.5.0.9-ja.xpi 216583
+RMD160 29d64a4608cd26e824d0b38531c37c9b1ac30807 mozilla-thunderbird-1.5.0.9-ja.xpi 216583
+SHA256 1affc49b687db05c7587e8c47b8ac15db4973a8fd962fae393c7e29ae142760d mozilla-thunderbird-1.5.0.9-ja.xpi 216583
+MD5 40214ed83d8fb5c5e43e2ace62f442fc mozilla-thunderbird-1.5.0.9-ko.xpi 192247
+RMD160 81a8bf47a5aedfec312a4a7d31fad8b567db8e37 mozilla-thunderbird-1.5.0.9-ko.xpi 192247
+SHA256 1e09c25b680c774531e7c6cf4d0e17078751e6f86c4de1ff5b818d705ac0fc8a mozilla-thunderbird-1.5.0.9-ko.xpi 192247
+MD5 3c08ec4718444f34b8f2195e4e8d92bc mozilla-thunderbird-1.5.0.9-lt.xpi 193866
+RMD160 551ca17f2e677414c4384428d3813d927000244a mozilla-thunderbird-1.5.0.9-lt.xpi 193866
+SHA256 efdebe45bc0e6d8f9f358d617e319acf5cd4d7b4fbce4db3d935f1d6c80c8209 mozilla-thunderbird-1.5.0.9-lt.xpi 193866
+MD5 7b65c4eae00d2672ee8baed56ea413bf mozilla-thunderbird-1.5.0.9-mk.xpi 219449
+RMD160 65029040666e139bd4331cc5bbdc56246bf55462 mozilla-thunderbird-1.5.0.9-mk.xpi 219449
+SHA256 93e1c70a12b8afa1b00ef6c410b93b4ae7c11d24bd9dac3eab5f194844fb17be mozilla-thunderbird-1.5.0.9-mk.xpi 219449
+MD5 444f3ba00d64aedec09867afee88a25b mozilla-thunderbird-1.5.0.9-nb-NO.xpi 182578
+RMD160 8a90964fa452e316ba41eaf02529ef0ddd293a39 mozilla-thunderbird-1.5.0.9-nb-NO.xpi 182578
+SHA256 b03e43664369e0105b7ebbcadb94fe754510355dd958cbdbc3c8776c06e599a8 mozilla-thunderbird-1.5.0.9-nb-NO.xpi 182578
+MD5 66745ac2251934a46a61bfc92729006c mozilla-thunderbird-1.5.0.9-nl.xpi 182551
+RMD160 8af67c18a4892236cc31764d282f0c628685ab10 mozilla-thunderbird-1.5.0.9-nl.xpi 182551
+SHA256 dbbbb3ec7b1e9e67cd42ba1f5644eaab8bcccf21ebf639f298e2a2a54af35f35 mozilla-thunderbird-1.5.0.9-nl.xpi 182551
+MD5 bdd642065bd170c847213fe0a351b00b mozilla-thunderbird-1.5.0.9-pa-IN.xpi 201902
+RMD160 2568cfe480e258f34378d5e87d5e21f956c6e232 mozilla-thunderbird-1.5.0.9-pa-IN.xpi 201902
+SHA256 9a84f9ba2e76f59bfcc539a08ec64a0a579f66282bf41ff38f7f6cda325aa4ca mozilla-thunderbird-1.5.0.9-pa-IN.xpi 201902
+MD5 fb4e6aeca8141f170367fe5f91707b33 mozilla-thunderbird-1.5.0.9-pl.xpi 180257
+RMD160 9925db61f0be3f3c0b02f4904cac3ce3c5d6998c mozilla-thunderbird-1.5.0.9-pl.xpi 180257
+SHA256 e8f13ef3a0c754b00f2945b785af9a4a87330310d50da54a5e0c908bf658c2ad mozilla-thunderbird-1.5.0.9-pl.xpi 180257
+MD5 9244eb8fcc6d8548dacaacc8a57a390f mozilla-thunderbird-1.5.0.9-pt-BR.xpi 184496
+RMD160 6c99d2bd379db5832cbf97c4cadc3281420776bd mozilla-thunderbird-1.5.0.9-pt-BR.xpi 184496
+SHA256 f808dcb5c9efd77e8c1f1820b68925e1e0f60b7e05b395fd58412ae0e8422a22 mozilla-thunderbird-1.5.0.9-pt-BR.xpi 184496
+MD5 14887ae1994c5aa35bf61f87047cdc1a mozilla-thunderbird-1.5.0.9-ru.xpi 190600
+RMD160 41f987a8aae176fbd563fffd2a89dd6b4a5a492c mozilla-thunderbird-1.5.0.9-ru.xpi 190600
+SHA256 6b96a336d7b7ba532e0edc9a54e70c32941c849c3bbf923091c356a8756e19bd mozilla-thunderbird-1.5.0.9-ru.xpi 190600
+MD5 168b407059331c8af307b85a1825631e mozilla-thunderbird-1.5.0.9-sk.xpi 193834
+RMD160 fbaa1d30339d84097df04f2419f5f17488725f68 mozilla-thunderbird-1.5.0.9-sk.xpi 193834
+SHA256 be9e70f40f55e94a53575abe97478586f2395c882df98edca107a93cd23a97ab mozilla-thunderbird-1.5.0.9-sk.xpi 193834
+MD5 0ae730e6579151baf127d2e6da728090 mozilla-thunderbird-1.5.0.9-sl.xpi 187718
+RMD160 c201ff14f58a809c829adef3358652eb35f27072 mozilla-thunderbird-1.5.0.9-sl.xpi 187718
+SHA256 ced1c79d1e41392a5ce294cfa388dd7915d8d079a22208ea8c593b31517ea3db mozilla-thunderbird-1.5.0.9-sl.xpi 187718
+MD5 a6c48aae0f556772a7c6141d113deb00 mozilla-thunderbird-1.5.0.9-sv-SE.xpi 191056
+RMD160 6dc72c31b91654d49147b3e855bdd1048289c2c8 mozilla-thunderbird-1.5.0.9-sv-SE.xpi 191056
+SHA256 824e9236b2bf53483e2848b1f4dd84c6087e0362ec78ec3f529b4e34d69d0bad mozilla-thunderbird-1.5.0.9-sv-SE.xpi 191056
+MD5 3aff8a7fe6cdf002a8af2bf5fc142217 mozilla-thunderbird-1.5.0.9-tr.xpi 155699
+RMD160 bafcede36083016ae2162bfa4d1b11a2965db585 mozilla-thunderbird-1.5.0.9-tr.xpi 155699
+SHA256 8b926cb8daf516697025cf81d5a9f0e2b89dcb8f74c4771e84300e8d11c91618 mozilla-thunderbird-1.5.0.9-tr.xpi 155699
+MD5 332e1922b20e179aa82667c7e7158218 mozilla-thunderbird-1.5.0.9-zh-CN.xpi 155476
+RMD160 244b1652982d6bb27a83fcf948b747de2bc068c7 mozilla-thunderbird-1.5.0.9-zh-CN.xpi 155476
+SHA256 b977acf12e07b39751ea10dae7668bbf3b476f5efe73ed4c5cb9d337f4e71d98 mozilla-thunderbird-1.5.0.9-zh-CN.xpi 155476
+MD5 bb74629a8d99a6653c5ab978cf9c6227 thunderbird-1.5.0.9-source.tar.bz2 35970591
+RMD160 d1efc6bd0585ce2222d0bc3065a4f748a2f0f635 thunderbird-1.5.0.9-source.tar.bz2 35970591
+SHA256 db61537e9fa38cf00f2c28cbda48b2f6885571b9b171b543963c3ae1a3b6dffe thunderbird-1.5.0.9-source.tar.bz2 35970591
diff --git a/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.9.ebuild b/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.9.ebuild
new file mode 100644
index 000000000000..c7df911e5040
--- /dev/null
+++ b/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.9.ebuild
@@ -0,0 +1,248 @@
+# Copyright 1999-2006 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.9.ebuild,v 1.1 2006/12/19 18:52:04 genstef 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.8-patches-0.1"
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="http://www.mozilla.org/projects/thunderbird/"
+SRC_URI="http://ftp.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 NPL-1.1"
+IUSE="ldap crypt"
+
+for X in ${LANGS} ; do
+ SRC_URI="${SRC_URI} linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~anarchy/${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/~anarchy/${P}-xpi//${P}-${X}.xpi )"
+ IUSE="${IUSE} linguas_${X%%-*}"
+done
+
+RDEPEND=">=www-client/mozilla-launcher-1.39
+ >=dev-libs/nss-3.10
+ >=dev-libs/nspr-4.6.1"
+
+PDEPEND="crypt? ( x11-plugins/enigmail )"
+
+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() {
+ use moznopango && warn_mozilla_launcher_stub
+}
+
+src_unpack() {
+ unpack ${A}
+
+ linguas
+ for X in ${linguas}; do
+ [[ ${X} != en ]] && xpi_unpack ${P}-${X}.xpi
+ done
+
+ cd ${S} || die "cd failed"
+ # Apply our patches
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ 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
+
+ # 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 ""
+ einfo "Removing old installs though some really ugly code. It potentially"
+ einfo "eliminates any problems during the install, however suggestions to"
+ einfo "replace this are highly welcome. Send comments and suggestions to"
+ einfo "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/mozillathunderbird.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
+}