Add thunderbird-2.0 beta.
authorBryan Østergaard <kloeri@gentoo.org>
Sun, 10 Dec 2006 00:15:01 +0000 (00:15 +0000)
committerBryan Østergaard <kloeri@gentoo.org>
Sun, 10 Dec 2006 00:15:01 +0000 (00:15 +0000)
Package-Manager: portage-2.1.2_rc2-r5

mail-client/mozilla-thunderbird/ChangeLog
mail-client/mozilla-thunderbird/Manifest
mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-2.0_beta1 [new file with mode: 0644]
mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0_beta1.ebuild [new file with mode: 0644]

index f77a1039bbb927a40cffb5199e49fc913f4ff471..bf09d42191b7ec81f2988341b0506fd55da540b7 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for mail-client/mozilla-thunderbird
 # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.147 2006/12/09 23:21:54 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.148 2006/12/10 00:15:00 kloeri Exp $
+
+*mozilla-thunderbird-2.0_beta1 (10 Dec 2006)
+
+  10 Dec 2006; Bryan Østergaard <kloeri@gentoo.org>
+  +mozilla-thunderbird-2.0_beta1.ebuild:
+  Add thunderbird-2.0 beta.
 
   09 Dec 2006; Bryan Østergaard <kloeri@gentoo.org>
   mozilla-thunderbird-1.5.0.8.ebuild:
index 2d3f5b49eb4c5da58773b76ec0a9acb6c294a462..05d67f9fe4523321277dd1a4a79d5a4f3d5f2a0d 100644 (file)
@@ -81,6 +81,7 @@ DIST thunderbird-1.5.0.5-source.tar.bz2 35998778 RMD160 aa32d59efa7d55eb516d967c
 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
 DIST thunderbird-ca-1.5.0.7.xpi 183076 RMD160 952eadbb38b0d4ec73faa89ea4320ee71f510550 SHA1 6f1e1486ad2f781149cd50902b190399b20e0aca SHA256 742184613c949779bd8f4e530cb4e4559ba34d3a3c3988fb8d09e8fe3fd9a289
@@ -173,10 +174,14 @@ EBUILD mozilla-thunderbird-2.0_alpha1.ebuild 7764 RMD160 213ebfc724843c84d3a5d8c
 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
-MISC ChangeLog 23063 RMD160 7ba2b61ab9d15818e78f18c50c1d32655426ccc4 SHA1 b77f1f1767fdc73ffc9625993261b40bad839c40 SHA256 d0e541393310f31851e1494a82eacb6b34181bb6e9d180ebcdf8c9ddcf50f733
-MD5 279c1255e177914d1b7107f640842923 ChangeLog 23063
-RMD160 7ba2b61ab9d15818e78f18c50c1d32655426ccc4 ChangeLog 23063
-SHA256 d0e541393310f31851e1494a82eacb6b34181bb6e9d180ebcdf8c9ddcf50f733 ChangeLog 23063
+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 metadata.xml 160 RMD160 d5a9f0bf8989621c2bde30facb53bcae00aba709 SHA1 5015c07af2083f20f9552d7fb11afb5ea69af345 SHA256 0cc5126362a12cee42ec1197c528a804cf36859329dd2c6d9225726831d14b8b
 MD5 ce23390351fe8020387d93ee29e09a3d metadata.xml 160
 RMD160 d5a9f0bf8989621c2bde30facb53bcae00aba709 metadata.xml 160
@@ -202,3 +207,6 @@ SHA256 5ca5785d980c7bbf1b82cb578bccd3d2f5ef4b79f18a64fc0d9cd6e01a6e6c09 files/di
 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
diff --git a/mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-2.0_beta1 b/mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-2.0_beta1
new file mode 100644 (file)
index 0000000..2b995b3
--- /dev/null
@@ -0,0 +1,6 @@
+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 9cb9b8f3a3f76f608f8bba919c92e6d1 thunderbird-2.0b1-source.tar.bz2 37027006
+RMD160 f1efeba3181c20e283f530f70bfca76abfd6317d thunderbird-2.0b1-source.tar.bz2 37027006
+SHA256 da711ee9beaf0c1072ceb8e6e35984ae5b6c8f71cbe1255485a380ebde393f64 thunderbird-2.0b1-source.tar.bz2 37027006
diff --git a/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0_beta1.ebuild b/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0_beta1.ebuild
new file mode 100644 (file)
index 0000000..5a89e56
--- /dev/null
@@ -0,0 +1,254 @@
+# 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_beta1.ebuild,v 1.1 2006/12/10 00:15:00 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/_beta1/b1}
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="http://www.mozilla.org/projects/thunderbird/"
+SRC_URI="http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/${MY_PV}-candidates/rc2/thunderbird-${MY_PV}-source.tar.bz2
+       mirror://gentoo/${PN}-2.0_alpha1-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 ${PN}-2.0_alpha1-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
+}