summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@gentoo.org>2012-03-24 23:57:36 +0000
committerNirbheek Chauhan <nirbheek@gentoo.org>2012-03-24 23:57:36 +0000
commit8fb8992815de309e63f040134b73af31efd2a5b1 (patch)
tree2c5174c0146f60d00622fa99941995159445a844 /mail-client
parentUpdate live build. (diff)
downloadhistorical-8fb8992815de309e63f040134b73af31efd2a5b1.tar.gz
historical-8fb8992815de309e63f040134b73af31efd2a5b1.tar.bz2
historical-8fb8992815de309e63f040134b73af31efd2a5b1.zip
Move over Anarchy's changes from the overlay, fixes bug 408613 and bug 408799
Package-Manager: portage-2.2.0_alpha90/cvs/Linux x86_64
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/thunderbird/ChangeLog8
-rw-r--r--mail-client/thunderbird/Manifest26
-rw-r--r--mail-client/thunderbird/thunderbird-11.0-r1.ebuild298
3 files changed, 322 insertions, 10 deletions
diff --git a/mail-client/thunderbird/ChangeLog b/mail-client/thunderbird/ChangeLog
index 886c5fabb3e3..8ebeb14da743 100644
--- a/mail-client/thunderbird/ChangeLog
+++ b/mail-client/thunderbird/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-client/thunderbird
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.130 2012/03/24 03:07:27 anarchy Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.131 2012/03/24 23:57:36 nirbheek Exp $
+
+*thunderbird-11.0-r1 (24 Mar 2012)
+
+ 24 Mar 2012; Nirbheek Chauhan <nirbheek@gentoo.org>
+ +thunderbird-11.0-r1.ebuild:
+ Move over Anarchy's changes from the overlay, fixes bug 408613 and bug 408799
24 Mar 2012; Jory A. Pratt <anarchy@gentoo.org> thunderbird-10.0.3.ebuild:
Fix bug #409331
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 8ace112d32fc..f5c312f7214c 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -32,6 +32,7 @@ DIST firefox-10.0-patches-0.5.tar.xz 16708 RMD160 40ccd212e16d4e5dd389db95aa7be0
DIST firefox-10.0-patches-0.6.tar.xz 17400 RMD160 aef02ec0471a0136a0f60ad08874f688afa66d15 SHA1 48d8a41370c052e7efaa9af25c9da95e03d38f2e SHA256 7cd959597a45fdbd6acbb8092c63d1fcf58beb32b99140f6c05109005a0db05d
DIST firefox-10.0-patches-0.7.tar.xz 17792 RMD160 0944a903821af98617b29fda4fb0f6fcecf28040 SHA1 6d67d372b8f4935114a8d0c72e369e55114373a1 SHA256 81b78f4ee19a70b4190484be0b6938c05a799202b6de35cfcad66eb79dc44bf9
DIST firefox-11.0-patches-0.1.tar.xz 12632 RMD160 2e579ed97910225eb42670b299177128374e9493 SHA1 c1a5a8cc3110406e7b1913cc99e7d1b601e88bf6 SHA256 0e073f0394d631346e273592e2c89879f6d47ecd58e7c8a25ff58d8510db4364
+DIST firefox-11.0-patches-0.3.tar.xz 15948 RMD160 f8e2a4e16800cc1c91812ca0f2bc7e1429f6d90d SHA1 a574bb5d39929ec7d78ae481af5c7bf5d2c6dcf3 SHA256 3be860dc7f82ef20814a259bdb731cc7c06956646b8de1fb48e88b0640dcf1f8
DIST firefox-7.0-patches-0.5.tar.xz 14652 RMD160 94593a3e01247b4e5fe9c01a80e902937ed3b32b SHA1 c9cfd5e46a18e4e6adfa8334936f854c3e14a687 SHA256 e2f1de9cfbb87cd982ed205b3b5f33e3bcd952b2093a9969281a761cc0a9e293
DIST firefox-8.0-patches-0.2.tar.xz 8032 RMD160 221500ed4f56e9c139f563d598bf38df448e5652 SHA1 f41c04c659a253d464ab9bb2c169c1b99b22d443 SHA256 52d351133187dfb7b367950f4da543b06b9f0666f6c07b8bbb5b21cd3d40b0c3
DIST firefox-9.0-patches-0.5.tar.xz 18580 RMD160 66870e2e194454cda309458d3793bfbe659d0598 SHA1 9f1f60e68330462e24eb81b27f2e3348689321ef SHA256 dc88f027f73bc6352da0dc873bc5ed63e72ea4d7db0aebfc44834f0b967ecd4f
@@ -531,6 +532,7 @@ EBUILD thunderbird-10.0.1-r1.ebuild 8719 RMD160 575ebccbf5e7ee6117a9b43be1ec03d8
EBUILD thunderbird-10.0.1.ebuild 8687 RMD160 7e24d672729e02959e1a450ec7c65864fe3bd944 SHA1 1769acd84e719bf5f337cad59b3b46c210c4a646 SHA256 789c1a73032ab0c8ae3cde18b24bd9aeaef3c2d24cef52ea54b45a937840eb8f
EBUILD thunderbird-10.0.3.ebuild 8908 RMD160 e68d27b28a3ebaf57b7db9e9dbaaf864279a38ca SHA1 30c155690d6f59f6e6fa968ffda4646a41702ba9 SHA256 d82c9e0e9c18e440d85e152f38e7ae65911b84c24e27499446dc9d0f95abd780
EBUILD thunderbird-10.0.ebuild 8419 RMD160 dd148c2893f674aae743b65c330bb7a84e9717d1 SHA1 e53d2578017924b1d16b94d1ec5012e83e2a2767 SHA256 1195d363de82246f850db10da02b147c3f1ddc74590d6582552d9249a6e80601
+EBUILD thunderbird-11.0-r1.ebuild 9046 RMD160 3cbdb8459d9d3b1540e6abdb1038c645a922884a SHA1 60576461e199bd1a554f0b03ffeb27bea794156c SHA256 7d2c05f2f69ac25b79001d546306deb0a6a72a08284b7bfeb247e7edfba1526d
EBUILD thunderbird-11.0.ebuild 9055 RMD160 441f9b6cb60c24f2879ccfbbb64cd0510fa4b92b SHA1 8c5f400119b45de52a3ee1f97336d3d627ea8eed SHA256 f60a078d2de78a21975f3783a467826b657a959c2032569dd275833f856ddf5a
EBUILD thunderbird-3.1.12.ebuild 8075 RMD160 2d883f455650b5c1d1a5388241b36b5b4ac28e87 SHA1 2e335bd19fe7205ebfe2f7020bb0db42431b5b08 SHA256 2f234bf655d1b533104e2fb46cedea9c9b61b5f4f5df8ea27d754c83aa8ec385
EBUILD thunderbird-3.1.13.ebuild 8082 RMD160 f56e2d3259289ecb2c5cf5b646f90b69bd10b27d SHA1 c3b072a6d9233c7feaf66d92734516b2b60555d9 SHA256 5603fe37594e4e8a3c74e1393e244550e3711cfa78d60197baf9add37b17429e
@@ -538,16 +540,22 @@ EBUILD thunderbird-3.1.14.ebuild 8082 RMD160 140c386b6ee48b9526fc4dfcc7b556752a0
EBUILD thunderbird-7.0.1-r1.ebuild 9078 RMD160 08b11d7d9b9b766909f81864e207723743090f8c SHA1 12da3854d321a5ea859ae12bcbd4b93cfb6ea272 SHA256 3ec97264dbe0beabe991632b58c0cd3b42de119d2643bcbbc1a6c74c70029410
EBUILD thunderbird-8.0-r1.ebuild 9921 RMD160 5ef83da31f3d2379d90f201addb63d0cd38ac17f SHA1 8d4659616eddcdd70892a69d414e3ee86dc7359f SHA256 b832be0c528a9a0a4fa966c2bcb8b0e3d672daf59b5f46ef0e0961de0062b562
EBUILD thunderbird-9.0.ebuild 10036 RMD160 0c5c7cd574cc2aba2bcf337bd8889425f20ec415 SHA1 2b417849aa917ed14985555e120c69f9203fb849 SHA256 bf90243ddf17364798e3dc7203a442463a5d090731dfe999048daeab0fefaf00
-MISC ChangeLog 70649 RMD160 bd723225f0bac85b3ccd56e8342a62fa6404573a SHA1 3068df0f198f8dbac6520ccc285d039d62a5ca18 SHA256 df9f27959e11966ec864ddd6dd7212c82598b71701205fecf8ce835d4355a3fa
+MISC ChangeLog 70852 RMD160 540e7fce4b857b6161194a7f1a535ffc29b36911 SHA1 a8462743005ca205011e8ca5a1e21324da376c29 SHA256 b9521f09d8e1136eff2c63041f5eea6117bf3ce2dbd748ccee43da519ef6f482
MISC metadata.xml 1115 RMD160 b5671b22eef5dc7eb948a98ff32144d0edbff008 SHA1 a566c73c286e01fcc59c6c6ee1117b4df891671f SHA256 08f047bd344a5e947e84e794a20c2d0bddcb476edb5ca4867ab26dd865d682b5
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.18 (GNU/Linux)
+Version: GnuPG v2.0.17 (GNU/Linux)
-iQEcBAEBAgAGBQJPbTpXAAoJEIXV9xahDnCo0T0H/ipab3pSXCW6c6NdFKjiASag
-PxJiqSQVzHsYbCl7wEUtqhnyZDKdHn3obYSI0w1i1m7ZqMFYP7t5L0tdYPZpPvHB
-bKXng0oyi6SppRbCEj22RMwNzDUIja63Dp+CcViUjwb8pEbg3vV3KywNu62WiyDN
-jZcSIUs+pJe1u0LMPRrbjIAST1ryTgeZ11rh3/UuoCaIwjfGdI+0441kMwDKj61K
-wSESxnf2YRb2wX0R/ek03RTtynwr14kBKa+Gmw2wlQdxBjdM2WAH/NZucEr4z5J9
-BytDFsopJ5K3tsbYcqo9wQGES1LCpb5US4BDmFbcm8M4YF+B0WJIcpGFBScIYjc=
-=/30m
+iQIcBAEBAgAGBQJPbl95AAoJEO/kOhxWD91kvGYP/0aXWSiyKuk2TXP6j/e/sC8T
+upJummXFzhrHATzrYgsuSI53OvnEyImwFjGSCr1plblw4sswsa2iwrTEB8V6tSez
+Bc/nyUNyxNg09li/glngiDGy05I0KfFTNJbhXDkR7bnFqJZjlwhi1b3uLShi460W
+pOG8I30wPzTno5MJy7qRKYrVQ1Z8J5aSnRNCzqbyo3Ho2SKy/dygSNPqwlqdH9+2
+fzrAF2tKnvGvmMi46tTZCOV37UcAhKhclT8yxOVCdDjLFoCf76tEW04znis90Z0D
+LxbimzVLcr6DszUuVres9WcqtZdCwq6X8Ahru4sUKtLEU02AmQzG6A4PMYIlUsTX
+phFYP0zk/d6Eiea2xD0pqzx9FEAxYVD85CxWWkw/zqtXBqihAuBLaX8K5Sd0ptgp
+qjk/FxRrnwyCBq2RheCML6Uupv1a1rhn3KvC+MIvnh6vswJ/5v3dUza2VMOTS6xq
+f8WZKuI+7o84QQ1VdNQshEfPv8stxzBe1ymz3NpfXoe/JKiJVSa46Fne5TAzQm02
+oq5keaQEcMCuzJvj5DkZimU8QbC8rbfjgg3zggaRXaaQC6SZYnoC2XQPAztxia8v
+ZYideTjd8QCR/hEVhKJxf1prxFf/jIzPKJj3EUJ5+fGAW6sQJRxeEGd6sV5MCDei
+4EXtVo4yOrQ3FIVmyDkI
+=4/Pf
-----END PGP SIGNATURE-----
diff --git a/mail-client/thunderbird/thunderbird-11.0-r1.ebuild b/mail-client/thunderbird/thunderbird-11.0-r1.ebuild
new file mode 100644
index 000000000000..b187fccd38f5
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-11.0-r1.ebuild
@@ -0,0 +1,298 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-11.0-r1.ebuild,v 1.1 2012/03/24 23:57:36 nirbheek Exp $
+
+EAPI="3"
+WANT_AUTOCONF="2.1"
+MOZ_ESR=""
+
+# This list can be updated using scripts/get_langs.sh from the mozilla overlay
+MOZ_LANGS=(ar ast be bg bn-BD br ca cs da de el en en-GB en-US es-AR es-ES et eu fi
+fr fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT
+rm ro ru si sk sl sq sr sv-SE ta-LK tr uk vi zh-CN zh-TW)
+
+# Convert the ebuild version to the upstream mozilla version, used by mozlinguas
+MOZ_PV="${PV/_beta/b}"
+# ESR releases have slightly version numbers
+if [[ ${MOZ_ESR} == 1 ]]; then
+ MOZ_PV="${MOZ_PV}esr"
+fi
+MOZ_P="${PN}-${MOZ_PV}"
+
+# Enigmail version
+EMVER="1.4"
+# Upstream ftp release URI that's used by mozlinguas.eclass
+# We don't use the http mirror because it deletes old tarballs.
+MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/"
+
+inherit flag-o-matic toolchain-funcs mozconfig-3 makeedit multilib autotools pax-utils python check-reqs nsplugins mozlinguas
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/"
+
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+SLOT="0"
+LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
+IUSE="bindist gconf +crashreporter +crypt +ipc +lightning +minimal mozdom +webm"
+
+PATCH="thunderbird-10.0-patches-0.1"
+PATCHFF="firefox-11.0-patches-0.3"
+
+SRC_URI="${SRC_URI}
+ ${MOZ_FTP_URI}${MOZ_PV}/source/${MOZ_P}.source.tar.bz2
+ crypt? ( http://www.mozilla-enigmail.org/download/source/enigmail-${EMVER}.tar.gz )
+ http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.xz
+ http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz"
+
+ASM_DEPEND=">=dev-lang/yasm-1.1"
+
+RDEPEND=">=sys-devel/binutils-2.16.1
+ >=dev-libs/nss-3.13.3
+ >=dev-libs/nspr-4.9
+ >=dev-libs/glib-2.26
+ crashreporter? ( net-misc/curl )
+ gconf? ( >=gnome-base/gconf-1.2.1:2 )
+ media-libs/libpng[apng]
+ >=x11-libs/cairo-1.10
+ >=x11-libs/pango-1.14.0
+ >=x11-libs/gtk+-2.14
+ webm? ( >=media-libs/libvpx-1.0.0
+ media-libs/alsa-lib )
+ virtual/libffi
+ !x11-plugins/enigmail
+ system-sqlite? ( >=dev-db/sqlite-3.7.7.1[fts3,secure-delete,unlock-notify,debug=] )
+ crypt? ( || (
+ ( >=app-crypt/gnupg-2.0
+ || (
+ app-crypt/pinentry[gtk]
+ app-crypt/pinentry[qt4]
+ )
+ )
+ =app-crypt/gnupg-1.4*
+ ) )"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ webm? ( x86? ( ${ASM_DEPEND} )
+ amd64? ( ${ASM_DEPEND} )
+ virtual/opengl )"
+
+if [[ ${PV} =~ beta ]]; then
+ S="${WORKDIR}/comm-beta"
+elif [[ ${MOZ_ESR} == 1 ]]; then
+ S="${WORKDIR}/comm-esr${PV%%.*}"
+else
+ S="${WORKDIR}/comm-release"
+fi
+
+pkg_setup() {
+ moz_pkgsetup
+
+ export MOZILLA_DIR="${S}/mozilla"
+
+ 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"
+ elog
+ fi
+
+ # Ensure we have enough disk space to compile
+ CHECKREQS_DISK_BUILD="4G"
+ check-reqs_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+
+ # Unpack language packs
+ mozlinguas_src_unpack
+}
+
+src_prepare() {
+ # Apply our Thunderbird patchset
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ epatch "${WORKDIR}/thunderbird"
+
+ # Apply our patchset from firefox to thunderbird as well
+ pushd "${S}"/mozilla &>/dev/null || die
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ epatch "${WORKDIR}/firefox"
+ popd &>/dev/null || die
+
+ if use crypt ; then
+ mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail
+ cd "${S}"
+ fi
+
+ #Fix compilation with curl-7.21.7 bug 376027
+ sed -e '/#include <curl\/types.h>/d' \
+ -i "${S}"/mozilla/toolkit/crashreporter/google-breakpad/src/common/linux/http_upload.cc \
+ -i "${S}"/mozilla/toolkit/crashreporter/google-breakpad/src/common/linux/libcurl_wrapper.cc \
+ -i "${S}"/mozilla/config/system-headers \
+ -i "${S}"/mozilla/js/src/config/system-headers || die "Sed failed"
+
+ # Allow user to apply any additional patches without modifing ebuild
+ epatch_user
+
+ eautoreconf
+ # Ensure we run eautoreconf in mozilla to regenerate configure
+ cd "${S}"/mozilla
+ eautoconf
+}
+
+src_configure() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ MEXTENSIONS="default"
+
+ ####################################
+ #
+ # mozconfig, CFLAGS and CXXFLAGS setup
+ #
+ ####################################
+
+ mozconfig_init
+ mozconfig_config
+
+ # It doesn't compile on alpha without this LDFLAGS
+ use alpha && append-ldflags "-Wl,--no-relax"
+
+ mozconfig_annotate '' --prefix="${EPREFIX}"/usr
+ mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir)
+ mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
+ mozconfig_annotate '' --with-default-mozilla-five-home="${EPREFIX}${MOZILLA_FIVE_HOME}"
+ mozconfig_annotate '' --with-user-appdir=.thunderbird
+ mozconfig_annotate '' --with-system-png
+ mozconfig_annotate '' --enable-system-ffi
+ mozconfig_annotate '' --target="${CTARGET:-${CHOST}}"
+
+ # Use enable features
+ mozconfig_use_enable lightning calendar
+ mozconfig_use_enable gconf
+
+ # Bug #72667
+ if use mozdom; then
+ MEXTENSIONS="${MEXTENSIONS},inspector"
+ fi
+
+ # Use an objdir to keep things organized.
+ echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/tbird" >> "${S}"/.mozconfig
+
+ # Finalize and report settings
+ mozconfig_final
+
+ ####################################
+ #
+ # Configure and build
+ #
+ ####################################
+
+ # Disable no-print-directory
+ MAKEOPTS=${MAKEOPTS/--no-print-directory/}
+
+ if [[ $(gcc-major-version) -lt 4 ]]; then
+ append-cxxflags -fno-stack-protector
+ elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]]; then
+ if use amd64 || use x86; then
+ append-flags -mno-avx
+ fi
+ fi
+}
+
+src_compile() {
+ CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
+ MOZ_MAKE_FLAGS="${MAKEOPTS}" \
+ emake -f client.mk || die
+
+ # Only build enigmail extension if crypt enabled.
+ if use crypt ; then
+ cd "${S}"/mailnews/extensions/enigmail || die
+ ./makemake -r 2&> /dev/null
+ cd "${S}"/tbird/mailnews/extensions/enigmail
+ emake || die "make enigmail failed"
+ emake xpi || die "make enigmail xpi failed"
+ fi
+}
+
+src_install() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ declare emid
+ local obj_dir="tbird"
+ cd "${S}/${obj_dir}"
+
+ # Copy our preference before omnijar is created.
+ cp "${FILESDIR}"/thunderbird-gentoo-default-prefs-1.js-1 \
+ "${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" || die
+
+ # Pax mark xpcshell for hardened support, only used for startupcache creation.
+ pax-mark m "${S}"/${obj_dir}/mozilla/dist/bin/xpcshell
+
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ # Install language packs
+ mozlinguas_src_install
+
+ if ! use bindist; then
+ newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png
+ domenu "${FILESDIR}"/icon/${PN}.desktop
+ else
+ newicon "${S}"/mail/branding/aurora/content/icon48.png thunderbird-icon-unbranded.png
+ newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \
+ ${PN}.desktop
+
+ sed -i -e "s:Mozilla\ Thunderbird:EarlyBird:g" \
+ "${ED}"/usr/share/applications/${PN}.desktop
+ fi
+
+ if use crypt ; then
+ cd "${T}" || die
+ unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi install.rdf || die
+ emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
+
+ dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die
+ cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die
+ unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi || die
+ fi
+
+ if use lightning ; then
+ emid="{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}"
+ dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
+ cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid}
+ unzip "${S}"/${obj_dir}/mozilla/dist/xpi-stage/gdata-provider.xpi
+
+ emid="calendar-timezones@mozilla.org"
+ dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
+ cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid}
+ unzip "${S}"/${obj_dir}/mozilla/dist/xpi-stage/calendar-timezones.xpi
+
+ emid="{e2fda1a4-762b-4020-b5ad-a41df1933103}"
+ dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
+ cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid}
+ unzip "${S}"/${obj_dir}/mozilla/dist/xpi-stage/lightning.xpi
+
+ # Fix mimetype so it shows up as a calendar application in GNOME 3
+ # This requires that the .desktop file was already installed earlier
+ sed -e "s:^\(MimeType=\):\1text/calendar;:" \
+ -e "s:^\(Categories=\):\1Calendar;:" \
+ -i "${ED}"/usr/share/applications/${PN}.desktop
+ fi
+
+ pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/thunderbird-bin
+
+ share_plugins_dir
+
+ if use minimal; then
+ rm -rf "${ED}"/usr/include "${ED}${MOZILLA_FIVE_HOME}"/{idl,include,lib,sdk} || \
+ die "Failed to remove sdk and headers"
+ fi
+}
+
+pkg_postinst() {
+ elog
+ elog "If you are experience problems with plugins please issue the"
+ elog "following command : rm \${HOME}/.thunderbird/*/extensions.sqlite ,"
+ elog "then restart thunderbird"
+}