From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E74E1138200 for ; Mon, 24 Sep 2012 22:19:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 20CD821C03C; Mon, 24 Sep 2012 22:19:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id D5EB821C03C for ; Mon, 24 Sep 2012 22:19:39 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 20C5733CBE3 for ; Mon, 24 Sep 2012 22:19:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id D8351E5444 for ; Mon, 24 Sep 2012 22:19:36 +0000 (UTC) From: "Jory Pratt" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jory Pratt" Message-ID: <1348525087.09b2aeff599354b43936aa104bdcaef6e0b1f10b.anarchy@gentoo> Subject: [gentoo-commits] proj/mozilla:master commit in: mail-client/thunderbird/ X-VCS-Repository: proj/mozilla X-VCS-Files: mail-client/thunderbird/Manifest mail-client/thunderbird/thunderbird-16.0_beta2.ebuild X-VCS-Directories: mail-client/thunderbird/ X-VCS-Committer: anarchy X-VCS-Committer-Name: Jory Pratt X-VCS-Revision: 09b2aeff599354b43936aa104bdcaef6e0b1f10b X-VCS-Branch: master Date: Mon, 24 Sep 2012 22:19:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5980b759-4d73-439e-9911-80a526cc6509 X-Archives-Hash: 4f2ec629a9648054e575a1a50bff99bd commit: 09b2aeff599354b43936aa104bdcaef6e0b1f10b Author: Jory A. Pratt gentoo org> AuthorDate: Mon Sep 24 22:18:07 2012 +0000 Commit: Jory Pratt gentoo org> CommitDate: Mon Sep 24 22:18:07 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=09b2aeff thunderbird-16.0_beta2 update --- mail-client/thunderbird/Manifest | 3 + .../thunderbird/thunderbird-16.0_beta2.ebuild | 332 ++++++++++++++++++++ 2 files changed, 335 insertions(+), 0 deletions(-) diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 55ac337..91757eb 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -3,6 +3,7 @@ AUX icon/thunderbird.desktop 270 SHA256 e8756ac8a421ac18f28b3620b2a021199f3bc4a3 AUX thunderbird-gentoo-default-prefs-1.js-1 426 SHA256 b5aba51045c700ae4d465e079f3e776600d4950806212f7c2fe1841fa25cf9d6 SHA512 b40e7b4789b7f43c382589f7d0eaa6043072bce86ab79fb3dda4800e9ab6a43af11f43b0cb3b6ab1c71d887aa1cf9356ac858f0a81dad013cef5b8a4b2107983 WHIRLPOOL cc3535e9a710d55c5386db51d7bd6ca24f6b36685a54e42d049a806fe99fd0b08afe7998d1478036bfa306129616778b8ac1386e14649646fc0a7ae4d37b830d DIST enigmail-1.4.4.tar.gz 1269444 SHA256 ec62bb701968f72ad35546660132e6e47d4ebe684df1d27fc615cb9010a203b8 SHA512 5c1ed521626d524c887d7ee1043c6610f68c583ab419abc7eedede3e76194ea47dfe8b952945333efc6fbf10ab1b9a69eef24f5767edc12d8277a04ebe8ee930 WHIRLPOOL 6b9b11fbfb055d3b1d008bd40aa9aa725279d9aacb81eeb591a42394c194ad58f67420f3544faaf58699c0da5e4d10d63fe8d55a4e3d03147f2fe0ad3e63d687 DIST firefox-15.0-patches-0.2.tar.xz 8240 SHA256 bf423c92ddde2cc60a70585104bb97ec951b633ce4cf3a64f3c187447d526d31 SHA512 1f3fab3988750a5fd93f26293a9bff4cd2ee2ad83bfaad9667eefb6f7987899601969c6697640b3cbec4e7c2bfb7f1da1895fa8bce4fa825cba4269b6d7e7b84 WHIRLPOOL 76a8e5ba4cc45d2e4016cdec37b08a7d491b02fdd3b697c5c4dc7c241b140a49dedf0d5566715bb0aa0460ece4bf4bfc5256c9f541611bb8d6c0eee2aa9673b4 +DIST firefox-16.0-patches-0.3.tar.xz 7220 SHA256 223d41d7aff806d326bcffc2c2a692113e35c1a143a62b9b90849384ff93ac7e SHA512 3b369f97253fe6b2fe848d5e2d6581ca463a19991f21c7d568d25e6c415f8f4867beefbd03d0d4f8a46346d6497a0d9979de66d5b63e505613295b4eaafd4f29 WHIRLPOOL f6c3e90e1d6187790204bed199a3afb2b23d7a8a957ab107765d8435056866a1d1f0d9206f868f8c4ed599655a1fc34fd7d125dad847dc713e1bdd1edd6af0be DIST thunderbird-13.0-patches-0.1.tar.xz 864 SHA256 b57549f70ec903f1e0ff55bac2c2464fba8526145118f32606db557295d2cb99 SHA512 4d74083567ba751d4921c9d59d10d97eda2432de30bf33d843561fe1537064ddda0cc4a4a5faa7ff7c5a6794bcb2cfffd5c14bd1854d068711a6fe491eaef646 WHIRLPOOL 9d5ed2c05566eb5c6696e5061cb40fc5021a54a30e7e3617548c1932378ba1b06a03915f5626f790b74ae30c981ade045d92f3c73c4e86a1c8c7862aefa3b516 DIST thunderbird-15.0.1-ar.xpi 435262 SHA256 9af683a899abd10a3a4ff17bd5a797c60641c9da58cf01a4019b7c7c4f445194 SHA512 49706b973469df81f69ecd2157b1d71dcd6a727d85af07044bd1cd6cf214865e03c874790d757b525aad1189fa006f493d8134289217a5950577ff47ba366ce7 WHIRLPOOL d8a55f4b3e1ca8b7b6f5ac88f73eba2ef59168fd73bd4ea46e8fdd90be0dde507141452c7d4722988e785f82a5553143a4282c21dbe914d62ac8d52bc7ff3f38 DIST thunderbird-15.0.1-ast.xpi 378849 SHA256 3746bf313cd04d7b66a7bd8896fe6368b1d1c9618607af254bda10706a282367 SHA512 2f37a73d8506ff38b3b8bf48750c72e615e92d46c8ab4449f13c0705ba3701b2b2978718e0e891053446fdd1537379c250a8a5886daf6e52078eca593fc96b81 WHIRLPOOL c8785faa9c5aec99ed6caa3088915bf37b0f2531e5f0958f4e39f2506cf12c5639205586df457012498f46823ca3a8c60038b72ae86b214998bb80e17bb1701d @@ -59,4 +60,6 @@ DIST thunderbird-15.0.1-vi.xpi 465962 SHA256 6e1844efffc95e7f6517203c3d979ed1f91 DIST thunderbird-15.0.1-zh-CN.xpi 425297 SHA256 370c979dc51c1ce4ae59b7fa4f95597fbb497da5994405572b83735f0bf3f18d SHA512 fbd765167e48e180fe057689e59a722304aa26d567bf75376db7449029e1c57cfd1539e5d94ce90eddcf654328b64d95e97e541b474fa34242af62fb0be73cc2 WHIRLPOOL ba960974551e942643ce9ab7c4537273018f3fbb5f8c52e8c17932cc6514a0369892b429e9c918884b09236c725c93efc8d82b54b26eed6157b24789658743b0 DIST thunderbird-15.0.1-zh-TW.xpi 426399 SHA256 6d1b2e937d4aa4fa07f7654ea38725bd3c461915d8f3d297da748571cb5bf2bb SHA512 ce32adedcccba38b1d078e13ecbbc06351c100ed3a7af6d7ec8f85f7b6af34ac29d2295e2ce810234788b2f1bb4efe71c87e3093ac89e325ee109e9e8a73fb11 WHIRLPOOL 506bd65762952fecf89edff42d8c989a7c6c6782680c307784b90fa6a7803741c9015d5a0281dfe107a4a71742e8dddb84f0520cbf76c71cdeaebe7783bc1f99 DIST thunderbird-15.0.1.source.tar.bz2 105942872 SHA256 bfa24c3595dae6c3ee3cbaca789e8b81bb47096127a7149c571d553f538cefc7 SHA512 5f5f71e121eb9eaf5b4f986c424c9ba2c774a31e17cfbedbeed77e65a4c5efd3a8c2c83dac474adce1001d36ca40bb8a6d7b0a2a54724d56ebb48a08239bf684 WHIRLPOOL 9e5cf11f591f18bb01f31ead03b57407443ca11bc0839c518af4761198d6de8c5b2d932859d80984f6a710bbc4d48826157a9901f4734307b9f0c4cdab8b8509 +DIST thunderbird-16.0b2.source.tar.bz2 111787029 SHA256 bba7d79e2939806c027ac82592c408ea815d3094a70f8f277b959966d1baa511 SHA512 9c61771af2fcd2eca1f712e303693f098877f57d052fe5cdb727ae2d5bcac7902e35c4fb230fe03e168eed5375d187b2ba76019e5b360eb9c778bc08ab9fb322 WHIRLPOOL 7317af969abfb6c11a99ae8d6bb99ec5ef5c0f437106a0a5071147bc9fb15b3bb85fa5ee55fd08170d820961ca8d43dcee0d4b4dc163dac0873e9557ff98cb49 EBUILD thunderbird-15.0.1.ebuild 10183 SHA256 3a498721aee30e5310254f346c696be7332b37270e5ba5cb94668b12088ea85a SHA512 b73b744f82cc262ed42047220f8966feb3f3ec70aa895102fa753721d5cf0d6c174a7ea3dd7101ddebb3673119d421b0f3aa7a427cc1a5c9caabecf54ca7e4d9 WHIRLPOOL 67483bc7dfad7012296ff2c2a624a1f5f0ca441bcd4c66f5dbae6196f75283b8b0892266b01ebda92323628b651645ead7ccb9db826e2f406d69972878952788 +EBUILD thunderbird-16.0_beta2.ebuild 10276 SHA256 2ad88f4992b4034fce5c95203bb3072ea145b2b0b0221414ff6660124b39b0d3 SHA512 b76e5657349e1c8877731cd5331d30778e19181edd2d93d71cb26a794e03857a385312fa98ed0af998ac5a000cbec6d5eb76ea3d6a071ccb533b55ead709c1eb WHIRLPOOL 618c14c4295963ef00634286a5b57ed527e223042ff1511b962c8dc279f3bbee8d256bd3dbe6cc3190b8f5bc49d6011e1fe9a668e6fc51d2a98b8b7a741e38ab diff --git a/mail-client/thunderbird/thunderbird-16.0_beta2.ebuild b/mail-client/thunderbird/thunderbird-16.0_beta2.ebuild new file mode 100644 index 0000000..1b3d95a --- /dev/null +++ b/mail-client/thunderbird/thunderbird-16.0_beta2.ebuild @@ -0,0 +1,332 @@ +# 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-12.0.1-r1.ebuild,v 1.3 2012/05/24 22:06:14 floppym 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 hr hu hy-AM 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.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-2.0 GPL-2 LGPL-2.1" +IUSE="bindist gconf +crypt +ipc +jit +lightning +minimal mozdom +webm selinux" + +PATCH="thunderbird-13.0-patches-0.1" +PATCHFF="firefox-16.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 + http://dev.gentoo.org/~nirbheek/mozilla/patchsets/${PATCHFF}.tar.xz" + +ASM_DEPEND=">=dev-lang/yasm-1.1" + +RDEPEND=">=sys-devel/binutils-2.16.1 + >=dev-libs/nss-3.13.6 + >=dev-libs/nspr-4.9.2 + >=dev-libs/glib-2.26 + gconf? ( >=gnome-base/gconf-1.2.1:2 ) + >=media-libs/libpng-1.5.9[apng] + >=x11-libs/cairo-1.10 + >=x11-libs/pango-1.14.0 + >=x11-libs/gtk+-2.14 + webm? ( >=media-libs/libvpx-1.0.0 + kernel_linux? ( media-libs/alsa-lib ) ) + virtual/libffi + !x11-plugins/enigmail + system-sqlite? ( >=dev-db/sqlite-3.7.10[fts3,secure-delete,threadsafe,unlock-notify,debug=] ) + selinux? ( sec-policy/selinux-thunderbird ) + crypt? ( || ( + ( >=app-crypt/gnupg-2.0 + || ( + app-crypt/pinentry[gtk] + app-crypt/pinentry[qt4] + ) + ) + =app-crypt/gnupg-1.4* + ) )" + +DEPEND="${RDEPEND} + !elibc_glibc? ( dev-libs/libexecinfo ) + virtual/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}"/mailnews/extensions/enigmail/package + sed -i -e "s:16.0pre:16.0.*:" install.rdf + cd "${S}" + fi + + # Disable gnomevfs extension + sed -i -e "s:gnomevfs::" "${S}/"mozilla/browser/confvars.sh \ + -e "s:gnomevfs::" "${S}/"mozilla/xulrunner/confvars.sh \ + || die "Failed to remove gnomevfs extension" + + #Fix compilation with curl-7.21.7 bug 376027 + sed -e '/#include /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" + + # Don't error out when there's no files to be removed: + sed 's@\(xargs rm\)$@\1 -f@' \ + -i "${S}"/mozilla/toolkit/mozapps/installer/packager.mk || die + + # Shell scripts sometimes contain DOS line endings; bug 391889 + grep -rlZ --include="*.sh" $'\r$' . | + while read -r -d $'\0' file ; do + einfo edos2unix "${file}" + edos2unix "${file}" + done + + # 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 + # Both methodjit and tracejit conflict with PaX + mozconfig_use_enable jit methodjit + mozconfig_use_enable jit tracejit + + # 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 + + # Without methodjit and tracejit there's no conflict with PaX + if use jit; then + # Pax mark xpcshell for hardened support, only used for startupcache creation. + pax-mark m "${S}"/${obj_dir}/mozilla/dist/bin/xpcshell + fi + + 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 '//!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 + + if use jit ; then + pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/thunderbird-bin + fi + + # Plugin-container needs to be pax-marked for hardened to ensure plugins such as flash + # continue to work as expected. + pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/plugin-container + + # Plugins dir + 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" +}