DIST mozilla-thunderbird-1.5.0.5-patches-0.1.tar.bz2 30684 RMD160 82a4da8cf5dad04c1bedc9425d31f33a8eedf31f SHA1 2fa562bbd2ad69a56af57e02e85c2bc697c29ec6 SHA256 6f707b64a4e1ca1b36287f45f018cb70b6e04d7e0580cba7805b403ae1092f93
DIST mozilla-thunderbird-1.5.0.7-patches-0.1.tar.bz2 30715 RMD160 a86a745963ad911da7c4e30eb9a673f1b657c5af SHA1 8e6f9fff11d06ee5f9f441527d466e6e1862263b SHA256 1f7af196a2342a27ebd37c1deed0ec6fb2e028d4b55faa9e3c5e761716b3352d
DIST mozilla-thunderbird-1.5.0.8-patches-0.1.tar.bz2 30722 RMD160 d9ddc81daa4f87e3c64ce12d03e79fc3ea1a2549 SHA1 d80950316e1c8d2f64c92f471fc4ed14fb4da576 SHA256 144bfee7862df5229628710c45943d4ca33423cc68a51484a99c56318071950d
-DIST mozilla-thunderbird-2.0_alpha1-patches-1.0.tar.bz2 23402 RMD160 28aa536c70aacedafaf8a136e6b390ec08f08229 SHA1 5d718f217891983752418e2f1a7ba7b632fcdfde SHA256 a3d0fc16b8d0f87e8e34dc8849e6b481a4ee2b4635a22bec3a46ede9e7b1bb76
DIST mozilla-thunderbird-2.0_alpha1-patches-1.1.tar.bz2 56499 RMD160 c531bc3dd01607d2c995f7d1f3b0a18aca4e0fac SHA1 001690cba6edc9fb772c33e50a3d67e3b951504c SHA256 5c6621e7855e86e1c8c1c81753de52e49a2a08000207e0c778803229c44dbb9a
DIST thunderbird-1.0.7-source.tar.bz2 33385665 RMD160 4f040dfe2468ee33d69ccffe3abc31eccc59899e SHA256 6b964fb220a46438adf6ec37082da66332a3ce74ca4913b863b17d9ab720681f
DIST thunderbird-1.5.0.4-source.tar.bz2 35872600 RMD160 27e88578d8857e48b46ee4dff2900f27b8a0f447 SHA1 492dd76460fc14543a70349263b64b0a2803bee9 SHA256 b665c89bfc18a84c57d85370889973cfc547e1e942aba5798321ea34e4ddbca7
DIST thunderbird-1.5.0.5-source.tar.bz2 35998778 RMD160 aa32d59efa7d55eb516d967c1fb4cc6cc13f874b SHA1 475ae30ead41847120c36f432b3359f0d60ea9da SHA256 b6fc27b79d0a4dabb30011cc6ba6161080f991ccadae12e5214cac86d009b005
DIST thunderbird-1.5.0.7-source.tar.bz2 35994957 RMD160 b8948723e4a96e22409e6a2cb3cd1b6512bef189 SHA1 9e5acff9bd098979dd798c0111805dc8d67479ad SHA256 99f67c50a94af48bc738c19cda390561ec518b5fec4bc4f1f43e65337b645fc9
DIST thunderbird-1.5.0.8-source.tar.bz2 35984263 RMD160 b383c05050fba58f922eb897687f2be86f70c39a SHA1 25dd00161e2b4a5bc2968ef4b9547e4431296a33 SHA256 dbe85085d627875f44984529f160bd53e9b7667a134b42c295cba2e6d4691bcb
-DIST thunderbird-2.0a1-source.tar.bz2 36476408 RMD160 40e6552f5dd397ddbd37f07852d87346b1b25c45 SHA1 63c91d9fda28c283d53a9b146fbb92c622580b52 SHA256 f62eb7e40d76df3001f6a46e3ffee0c83fad75887fb87007cf3ecc251cb16078
DIST thunderbird-2.0b1-source.tar.bz2 37027006 RMD160 f1efeba3181c20e283f530f70bfca76abfd6317d SHA1 0edfe00dd32454b7e03c01c0eb773339fd74707a SHA256 da711ee9beaf0c1072ceb8e6e35984ae5b6c8f71cbe1255485a380ebde393f64
DIST thunderbird-bg-1.5.0.7.xpi 220540 RMD160 25e64e5772832917f28a6b685941c3834bb7ca44 SHA1 dd9098c8810a61dcf0755e327cec83f64de553c7 SHA256 349ba0d030793371d30327c15e939bcd92066311ac31a4f3f1cafa800422cc45
DIST thunderbird-bg-1.5.0.8.xpi 220781 RMD160 445c0ddd8484fee0a47665ecd8bb1ec56b98de0f SHA1 6c5579a5266fa13b9c0ec16534e7fc18e4b5009f SHA256 570287d21cfd7be8f4d3b5033bcd3f823e4ea8847bca0cb93729fa0f364256c2
MD5 894510259d188a364e95d7ed5deb70a3 mozilla-thunderbird-1.5.0.8.ebuild 7692
RMD160 921330a9e82dfabfaf952c1e049e23fdf9040383 mozilla-thunderbird-1.5.0.8.ebuild 7692
SHA256 42b9e4a125c2fbb5c9236ca9baf6749dd1e75f28983f0de98caf61ed29cd545f mozilla-thunderbird-1.5.0.8.ebuild 7692
-EBUILD mozilla-thunderbird-2.0_alpha1-r1.ebuild 7764 RMD160 8c4858ef9ce442a18e0da0afe58507e9546eaefc SHA1 a31853907bc76725a6f941ce46f750967960b5c8 SHA256 534db6c2afe9fb145120f012e2a3d63602cfe513034594aca6ad8cb28873c1da
-MD5 279c15b120f4051391f649b128748989 mozilla-thunderbird-2.0_alpha1-r1.ebuild 7764
-RMD160 8c4858ef9ce442a18e0da0afe58507e9546eaefc mozilla-thunderbird-2.0_alpha1-r1.ebuild 7764
-SHA256 534db6c2afe9fb145120f012e2a3d63602cfe513034594aca6ad8cb28873c1da mozilla-thunderbird-2.0_alpha1-r1.ebuild 7764
-EBUILD mozilla-thunderbird-2.0_alpha1.ebuild 7764 RMD160 213ebfc724843c84d3a5d8cdfeb444d5f6efb265 SHA1 ed78454a4b5a87edc2bc2868ac3a4e1fe4bcfbe1 SHA256 30d8348cb5f7356ecb429a2eee0c1085de151febcf8b20b65aa07b30459d1876
-MD5 4314a641514236bfd75ed3ba6ad73dd2 mozilla-thunderbird-2.0_alpha1.ebuild 7764
-RMD160 213ebfc724843c84d3a5d8cdfeb444d5f6efb265 mozilla-thunderbird-2.0_alpha1.ebuild 7764
-SHA256 30d8348cb5f7356ecb429a2eee0c1085de151febcf8b20b65aa07b30459d1876 mozilla-thunderbird-2.0_alpha1.ebuild 7764
EBUILD mozilla-thunderbird-2.0_beta1.ebuild 7790 RMD160 29ddfc92b8185a8696b973a395321eed4bd33639 SHA1 312dd5f29099f5282cdbd5c3604a3884c0f0f383 SHA256 e9eced23e0afa81966209b085177b300ce3f8815f3b0a79ff4de8ade82506616
MD5 1bddf1283ed9bd22646e02f15452f581 mozilla-thunderbird-2.0_beta1.ebuild 7790
RMD160 29ddfc92b8185a8696b973a395321eed4bd33639 mozilla-thunderbird-2.0_beta1.ebuild 7790
SHA256 e9eced23e0afa81966209b085177b300ce3f8815f3b0a79ff4de8ade82506616 mozilla-thunderbird-2.0_beta1.ebuild 7790
-MISC ChangeLog 23232 RMD160 c353d2fda3a7d9e026c110d6a53bc945f71e4f50 SHA1 606d8dd0e6cd08c6740efa6ab0ea6deecef0e289 SHA256 daf14f5c8cf3b97f1862b0a4ef841ad5836165f6b85f16b62a23447c25705ff3
-MD5 a51c3f60ea37eaea08a7f82d0c48aaa9 ChangeLog 23232
-RMD160 c353d2fda3a7d9e026c110d6a53bc945f71e4f50 ChangeLog 23232
-SHA256 daf14f5c8cf3b97f1862b0a4ef841ad5836165f6b85f16b62a23447c25705ff3 ChangeLog 23232
+MISC ChangeLog 23400 RMD160 e0b5eaff1112fb6159bfe2ac9521bf070d18338a SHA1 9074627e394c4961ac15358d20a41e7c1f097286 SHA256 9318e5511465445eb2bb00f825af6a066b68ca553fe6823b37c6d523fdba6d02
+MD5 dc2fab4af0751f851a01f4d62d5cf045 ChangeLog 23400
+RMD160 e0b5eaff1112fb6159bfe2ac9521bf070d18338a ChangeLog 23400
+SHA256 9318e5511465445eb2bb00f825af6a066b68ca553fe6823b37c6d523fdba6d02 ChangeLog 23400
MISC metadata.xml 160 RMD160 d5a9f0bf8989621c2bde30facb53bcae00aba709 SHA1 5015c07af2083f20f9552d7fb11afb5ea69af345 SHA256 0cc5126362a12cee42ec1197c528a804cf36859329dd2c6d9225726831d14b8b
MD5 ce23390351fe8020387d93ee29e09a3d metadata.xml 160
RMD160 d5a9f0bf8989621c2bde30facb53bcae00aba709 metadata.xml 160
MD5 977a4e1b0669cef3756647099b384059 files/digest-mozilla-thunderbird-1.5.0.8 8986
RMD160 17db564afef2e77b3a9268affdc187cc86542f63 files/digest-mozilla-thunderbird-1.5.0.8 8986
SHA256 06225888dbccef70140220a43a35f722e32594f333a02007d188ce658edd3d4f files/digest-mozilla-thunderbird-1.5.0.8 8986
-MD5 a3bec770b467ab10fce673a8384bb5aa files/digest-mozilla-thunderbird-2.0_alpha1 611
-RMD160 2fb783ba32db5c2d5628229d3e86bed68b871dc9 files/digest-mozilla-thunderbird-2.0_alpha1 611
-SHA256 5ca5785d980c7bbf1b82cb578bccd3d2f5ef4b79f18a64fc0d9cd6e01a6e6c09 files/digest-mozilla-thunderbird-2.0_alpha1 611
-MD5 bd480c79adc796491bf60aa1ce95e7ee files/digest-mozilla-thunderbird-2.0_alpha1-r1 611
-RMD160 71b8fcb4cd286c7b43e65e4ff78692fbd12c3a9d files/digest-mozilla-thunderbird-2.0_alpha1-r1 611
-SHA256 6d5975b2c6fae311ebc819b04fcafca77b5d5c79f010e4cade7c0bc26afd7b77 files/digest-mozilla-thunderbird-2.0_alpha1-r1 611
MD5 66985b10ca6f5fc3a9ed7a924cf05f16 files/digest-mozilla-thunderbird-2.0_beta1 611
RMD160 a3eb0bb44992a939f1f895fdeda19ca001543026 files/digest-mozilla-thunderbird-2.0_beta1 611
SHA256 16f31fea5fa6e2c00b8f082c19157c5593ee25b25b8c7287cfc97bcb6f07ba47 files/digest-mozilla-thunderbird-2.0_beta1 611
+++ /dev/null
-MD5 3dc083017f58607b4704278455559540 mozilla-thunderbird-2.0_alpha1-patches-1.0.tar.bz2 23402
-RMD160 28aa536c70aacedafaf8a136e6b390ec08f08229 mozilla-thunderbird-2.0_alpha1-patches-1.0.tar.bz2 23402
-SHA256 a3d0fc16b8d0f87e8e34dc8849e6b481a4ee2b4635a22bec3a46ede9e7b1bb76 mozilla-thunderbird-2.0_alpha1-patches-1.0.tar.bz2 23402
-MD5 70adf3ca4838d114f8b6dffc6e004388 thunderbird-2.0a1-source.tar.bz2 36476408
-RMD160 40e6552f5dd397ddbd37f07852d87346b1b25c45 thunderbird-2.0a1-source.tar.bz2 36476408
-SHA256 f62eb7e40d76df3001f6a46e3ffee0c83fad75887fb87007cf3ecc251cb16078 thunderbird-2.0a1-source.tar.bz2 36476408
+++ /dev/null
-MD5 55d9b150f0acb7f03c4c1cabd034537e mozilla-thunderbird-2.0_alpha1-patches-1.1.tar.bz2 56499
-RMD160 c531bc3dd01607d2c995f7d1f3b0a18aca4e0fac mozilla-thunderbird-2.0_alpha1-patches-1.1.tar.bz2 56499
-SHA256 5c6621e7855e86e1c8c1c81753de52e49a2a08000207e0c778803229c44dbb9a mozilla-thunderbird-2.0_alpha1-patches-1.1.tar.bz2 56499
-MD5 70adf3ca4838d114f8b6dffc6e004388 thunderbird-2.0a1-source.tar.bz2 36476408
-RMD160 40e6552f5dd397ddbd37f07852d87346b1b25c45 thunderbird-2.0a1-source.tar.bz2 36476408
-SHA256 f62eb7e40d76df3001f6a46e3ffee0c83fad75887fb87007cf3ecc251cb16078 thunderbird-2.0a1-source.tar.bz2 36476408
+++ /dev/null
-# 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-2.0_alpha1-r1.ebuild,v 1.2 2006/11/11 00:51:57 kloeri Exp $
-
-#
-# There are no linguas supported in alpha builds
-# Anarchy ( Jory A. Pratt )
-#
-
-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"
-PVER="1.1"
-MY_PV=${PV/_alpha1/a1}
-
-DESCRIPTION="Thunderbird Mail Client"
-HOMEPAGE="http://www.mozilla.org/projects/thunderbird/"
-SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${MY_PV}/source/thunderbird-${MY_PV}-source.tar.bz2
- mirror://gentoo/${P}-patches-${PVER}.tar.bz2"
-
-KEYWORDS="~amd64 ~ia64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd"
-SLOT="0"
-LICENSE="MPL-1.1 NPL-1.1"
-IUSE="ldap crypt branding mozdom replytolist"
-
-#for X in ${LANGS} ; do
-# SRC_URI="${SRC_URI} linguas_${X/-/_}? ( mirror://gentoo/thunderbird-${X}-${PV}.xpi )"
-# IUSE="${IUSE} linguas_${X/-/_}"
-#done
-
-#for X in ${SHORTLANGS} ; do
-# SRC_URI="${SRC_URI} linguas_${X%%-*}? ( mirror://gentoo/thunderbird-${X}-${PV}.xpi )"
-# IUSE="${IUSE} linguas_${X%%-*}"
-#done
-
-RDEPEND=">=www-client/mozilla-launcher-1.39
- >=dev-libs/nss-3.10
- >=dev-libs/nspr-4.6.1
- ~sys-devel/autoconf-2.13"
-
-PDEPEND="crypt? ( x11-plugins/enigmail )
- 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 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 thunderbird-${MY_PV}-source.tar.bz2 ${P}-patches-${PVER}.tar.bz2
-
-# linguas
-# for X in ${linguas}; do
-# [[ ${X} != en ]] && xpi_unpack thunderbird-${X}-${PV}.xpi
-# done
-
- cd ${S} || die "cd failed"
-
- # Apply our patches
- 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
-
- WANT_AUTOCONF="2.1" \
- 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 '' --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 #72667
- if use mozdom; then
- mozconfig_annotate '' --enable-extensions=default,inspector
- else
- mozconfig_annotate '' --enable-extensions=default
- fi
-
- if use branding; then
- mozconfig_annotate '' --enable-official-branding
- 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
-
- 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}/thunderbird-${X}-${PV}
-# 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
-}
+++ /dev/null
-# 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-2.0_alpha1.ebuild,v 1.3 2006/11/11 00:51:57 kloeri Exp $
-
-#
-# There are no linguas supported in alpha builds
-# Anarchy ( Jory A. Pratt )
-#
-
-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"
-PVER="1.0"
-MY_PV=${PV/_alpha1/a1}
-
-DESCRIPTION="Thunderbird Mail Client"
-HOMEPAGE="http://www.mozilla.org/projects/thunderbird/"
-SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${MY_PV}/source/thunderbird-${MY_PV}-source.tar.bz2
- http://gentooexperimental.org/~genstef/dist/${P}-patches-${PVER}.tar.bz2"
-
-KEYWORDS="~amd64 ~ia64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd"
-SLOT="0"
-LICENSE="MPL-1.1 NPL-1.1"
-IUSE="ldap crypt branding mozdom"
-
-#for X in ${LANGS} ; do
-# SRC_URI="${SRC_URI} linguas_${X/-/_}? ( mirror://gentoo/thunderbird-${X}-${PV}.xpi )"
-# IUSE="${IUSE} linguas_${X/-/_}"
-#done
-
-#for X in ${SHORTLANGS} ; do
-# SRC_URI="${SRC_URI} linguas_${X%%-*}? ( mirror://gentoo/thunderbird-${X}-${PV}.xpi )"
-# IUSE="${IUSE} linguas_${X%%-*}"
-#done
-
-RDEPEND=">=www-client/mozilla-launcher-1.39
- >=dev-libs/nss-3.10
- >=dev-libs/nspr-4.6.1
- ~sys-devel/autoconf-2.13"
-
-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 thunderbird-${MY_PV}-source.tar.bz2 ${P}-patches-${PVER}.tar.bz2
-
-# linguas
-# for X in ${linguas}; do
-# [[ ${X} != en ]] && xpi_unpack thunderbird-${X}-${PV}.xpi
-# done
-
- cd ${S} || die "cd failed"
-
- # Apply our patches
- 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
-
- WANT_AUTOCONF="2.1" \
- 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 '' --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 #72667
- if use mozdom; then
- mozconfig_annotate '' --enable-extensions=default,inspector
- else
- mozconfig_annotate '' --enable-extensions=default
- fi
-
- if use branding; then
- mozconfig_annotate '' --enable-official-branding
- 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
-
- CPPFLAGS="${CPPFLAGS}" \
- CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
- econf || die "econf failed"
-
- # This removes extraneous CFLAGS from the Makefiles to reduce RAM
- # requirements while compiling
- edit_makefiles
-
- emake -j1 || die "emake failed"
-}
-
-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}/thunderbird-${X}-${PV}
-# 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
-}