diff options
author | Raúl Porcel <armin76@gentoo.org> | 2009-03-19 16:33:09 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2009-03-19 16:33:09 +0000 |
commit | 06349bfdc9c5fdbdb241f17a6d87502e99916012 (patch) | |
tree | 662594bc6569e6a4ca569880612888de4bc1e1ff /mail-client | |
parent | Revbump for thunderbird 2.0.0.21 (diff) | |
download | historical-06349bfdc9c5fdbdb241f17a6d87502e99916012.tar.gz historical-06349bfdc9c5fdbdb241f17a6d87502e99916012.tar.bz2 historical-06349bfdc9c5fdbdb241f17a6d87502e99916012.zip |
Version bump
Package-Manager: portage-2.1.6.7/cvs/Linux ia64
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/mozilla-thunderbird/ChangeLog | 8 | ||||
-rw-r--r-- | mail-client/mozilla-thunderbird/Manifest | 41 | ||||
-rw-r--r-- | mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.21.ebuild | 268 |
3 files changed, 315 insertions, 2 deletions
diff --git a/mail-client/mozilla-thunderbird/ChangeLog b/mail-client/mozilla-thunderbird/ChangeLog index 3bb4f43251bf..3678a4edb225 100644 --- a/mail-client/mozilla-thunderbird/ChangeLog +++ b/mail-client/mozilla-thunderbird/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for mail-client/mozilla-thunderbird # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.284 2009/02/15 19:00:55 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.285 2009/03/19 16:33:09 armin76 Exp $ + +*mozilla-thunderbird-2.0.0.21 (19 Mar 2009) + + 19 Mar 2009; Raúl Porcel <armin76@gentoo.org> + +mozilla-thunderbird-2.0.0.21.ebuild: + Version bump 15 Feb 2009; Raúl Porcel <armin76@gentoo.org> mozilla-thunderbird-2.0.0.19.ebuild: diff --git a/mail-client/mozilla-thunderbird/Manifest b/mail-client/mozilla-thunderbird/Manifest index bfb6d76e7b3b..fefbb704d0fd 100644 --- a/mail-client/mozilla-thunderbird/Manifest +++ b/mail-client/mozilla-thunderbird/Manifest @@ -73,9 +73,48 @@ DIST mozilla-thunderbird-2.0.0.19-tr.xpi 157710 RMD160 6ce1858be60102de5c9178269 DIST mozilla-thunderbird-2.0.0.19-uk.xpi 194506 RMD160 1570a606530d7dbb4ccad316d91b1f027619a018 SHA1 dfe28b1d66d28b5f849f50302c2a3055eb1ff67b SHA256 2df3a02dc87c35c464e8700ce228806d451344665c89ca5940161d9b2552aed9 DIST mozilla-thunderbird-2.0.0.19-zh-CN.xpi 147643 RMD160 eeffd2202bac5b5da30931e5b3f154dd48e97707 SHA1 b4c25d1fe667b91ce37d6579acd13c2c00f931c4 SHA256 68b4bf105f6275718e7024c6229802dd4952efb3af55158e505d9c5b082efaf2 DIST mozilla-thunderbird-2.0.0.19-zh-TW.xpi 153703 RMD160 493ecb11c6b34e4619c122b8a40b4c273b080df2 SHA1 922f551aad47f477bb2d6c77d3bb7508fb15a5de SHA256 8464770357cfaf18615874df8b128656b909337db089200895cb94d02389aaaf +DIST mozilla-thunderbird-2.0.0.21-af.xpi 177923 RMD160 d502a7a05dc275651d041e969d638749e68a179c SHA1 7e232f8d3eb6a6bd15fbcf987f53f6ea5c784792 SHA256 63462b7cab1ff88b61528df1608a18a19c90c4e03336565d8ddf611221708261 +DIST mozilla-thunderbird-2.0.0.21-be.xpi 184813 RMD160 319364d7e7526b10d846b3328aed4f160c30de8c SHA1 56e37d77d27e0efbc88bee8ffe3a9a8f2fd4c168 SHA256 1c0aab7efff0acb1ad2a1afd25570dafabadc0b3fd617df4df948341fa4ab718 +DIST mozilla-thunderbird-2.0.0.21-bg.xpi 196487 RMD160 67a3815766022aa22e3d66253df43384ed9d6ba3 SHA1 6bee1cf496b62afe8a80bd7360963353b92721bc SHA256 d80814b72f29348e6b427a7a3556af0828d34280e6f3cda7e98ef2e502997a22 +DIST mozilla-thunderbird-2.0.0.21-ca.xpi 184232 RMD160 dd323b66eb47397b657c1f72e2b54c855e76bdb2 SHA1 fed2804c23537bb271302cf19b5b6162a6ab7e3d SHA256 1ade6419bcd284a43d6ffcd68bea76ca82c5906395986dabca45a5589e57eacf +DIST mozilla-thunderbird-2.0.0.21-cs.xpi 186167 RMD160 fa563fc7328881b20a25a891046b89a965141da7 SHA1 a9bed9eac7d8c6902b40b5c67430e55aadae7760 SHA256 df7ab7fbaf85e16d61ae2d7eac5b3b55575ec84caf18df0db5208d873d93810e +DIST mozilla-thunderbird-2.0.0.21-da.xpi 179121 RMD160 9109daf578519d0d1f8a9735e9c4b6a47ad1a3ac SHA1 bf51fa09b90273d8875e2cade7957f86024fbc26 SHA256 0b1eca98fac58f9d0416051390db8e7a12d3de9026670bea0dc5df566634175f +DIST mozilla-thunderbird-2.0.0.21-de.xpi 159066 RMD160 63eeb87eb078bce3da14a099cc0f05d313ffb22f SHA1 086ccf659a83aca5346cd21e36baf9e48939738b SHA256 452a8129418043a2c38bac719ca7ecd0ac3711c07c6fd28649ff1e28a90ebee7 +DIST mozilla-thunderbird-2.0.0.21-el.xpi 183061 RMD160 afe10f569ad34c44cf80d57da2f406a81bde4f20 SHA1 f3d89e09025029640aafdf85039d338663e2523d SHA256 8f4ed1354faf1269e1ce8abf007e8be1a863c3d0c25f954d7bc4ba736bdadefe +DIST mozilla-thunderbird-2.0.0.21-en-GB.xpi 173049 RMD160 f28290756217f7f4be57e74c0e431f7eec57b7a3 SHA1 a67840ef735d24d9c846cc086846e352dc0524b1 SHA256 214884d277c31db1c1d06cd5046cad96df80a53e63e119c3063a5f8ad2babfc7 +DIST mozilla-thunderbird-2.0.0.21-es-AR.xpi 184680 RMD160 5772350f8d0a731a3ad5a2d8f3a0e8ec43096026 SHA1 786efbc7b17cffd67a811a67154b4505d640661a SHA256 8e899408eeb93052a0b75c736af022f50c0f0fb3d652930fe5213462ff9199d5 +DIST mozilla-thunderbird-2.0.0.21-es-ES.xpi 149560 RMD160 4d79f8706f0c63a36199ebe25e1cd7b2590977c2 SHA1 a942c537e8fee7770e848066173ff18d01d8fe6a SHA256 cecb9a2be0426ed855b121dde68b0032ff94c22ed61972340c8cfef31ab167d9 +DIST mozilla-thunderbird-2.0.0.21-eu.xpi 181799 RMD160 50e711818eeda6bf7a86bba898fc5c62a47bb0d5 SHA1 e6e82195783c32082213068bba567309c78c947a SHA256 904359036a5d6acde311fc3d37db6272253a4234beab7922cb39ad3fb3ece160 +DIST mozilla-thunderbird-2.0.0.21-fi.xpi 187734 RMD160 06048ae7ec33ab5e92bddf73134c54397f5a1149 SHA1 ebe325e619d34e9e4eced13c556a2c40cb5d9214 SHA256 af4d8e2d886b8ab646c2fb4b0d4ae132d4e379f11e06f4d1fe663a287ad5f93c +DIST mozilla-thunderbird-2.0.0.21-fr.xpi 190912 RMD160 711254e1e7a9d7daf461debd2b7c859f084586a6 SHA1 422b8e227b8cee5a2a7ae90687e0a7082122e567 SHA256 127110b0d73ab4b5164b681e9eeb93cf1fbb504506e57caae138966a49d5d68b +DIST mozilla-thunderbird-2.0.0.21-ga-IE.xpi 185959 RMD160 ddd009224c468bc2ced2cb34c87e772a73c508d4 SHA1 14cd75391e7bb268ccb1f5b0dedcd55469370fb6 SHA256 8b0cece09457b15e40653f60d1817549305e983eccc440afdd66f51cbab3a188 +DIST mozilla-thunderbird-2.0.0.21-he.xpi 157243 RMD160 3e22df47f4957f2cbcd8bc11dc6515772810419f SHA1 e78557ca43d53dfa649ee5e07fe76c12fee3c89d SHA256 272e88541ea79bbeb09933d0ac8fc1974a19c38495ed4f860830c7082934920e +DIST mozilla-thunderbird-2.0.0.21-hu.xpi 191694 RMD160 4f510c71fbe092b7be27ec02b0a584c76c1f40f1 SHA1 109ce38fef7afb11bd5d75a4313f4186768e50f1 SHA256 87c9541dc5f4d7361538234cbc3394c2010588eb1fe275174643607c7253d73d +DIST mozilla-thunderbird-2.0.0.21-it.xpi 152553 RMD160 83a5b151556e0647f5c002e66c925bd05b900c7b SHA1 6e6a214d88cfc2e5c84f323379257e0e753e85d5 SHA256 bb55d48685aae258edbc0cdd7ea79719026eebd7eada34a8cd267ce788599285 +DIST mozilla-thunderbird-2.0.0.21-ja.xpi 199411 RMD160 caff6848dcda59d267ed2660901ed50ee585c935 SHA1 edb5ef60b0f705b397d9c53194e4220233136cad SHA256 d331f648949445f022e41dfeb6f00296d227c8dda095ba444ac5653637b057b9 +DIST mozilla-thunderbird-2.0.0.21-ko.xpi 170143 RMD160 e8b0961d759af8a2df0494999fb872e1f0698bb4 SHA1 03dce58f477805854aa3d39d6385797844ff387b SHA256 954b597adc4b27e7c09ebd4b971f7fc18fa8ea3c7838bf8a82b9f07d8daa6018 +DIST mozilla-thunderbird-2.0.0.21-lt.xpi 189457 RMD160 25a671d4d61bce4ffb1cae0902fef03fb34db05a SHA1 3a952ed9de3fb0ae1db11a87b95462c51f4ca341 SHA256 c4421518fb21ed1b6098dc66603c89dad33a80e73f2aff47b59968d49b736975 +DIST mozilla-thunderbird-2.0.0.21-mk.xpi 196440 RMD160 5851b4b1b999435819d4dc712e75cfa4287f592c SHA1 0f346717bc64209526ef0c414d697e05fd6c4a5e SHA256 71bcb539f0eddc532a2b799869a0aac4c6d8b23b4f7623c29aaab8ab339a5756 +DIST mozilla-thunderbird-2.0.0.21-nb-NO.xpi 183238 RMD160 0d2983295db4845b085c31b36cab4eeee0a1202c SHA1 31c6124b2806ad0e2df582d1c0985151cbf368e3 SHA256 dc29aafe413ea25a7aad2dc42c0c9debcc23119b83f0d0d3a3714b89914ed743 +DIST mozilla-thunderbird-2.0.0.21-nl.xpi 184153 RMD160 36c7a9fc08171c89a653a5e9b62b6d78c188c02f SHA1 da14206b96a21422ce83ef58febe490feda4e4f0 SHA256 7014e4acceae63b72571ddbe0a059b98a74b3792c7995c329a66a8eef01d07b2 +DIST mozilla-thunderbird-2.0.0.21-nn-NO.xpi 184117 RMD160 84cbff42e2dbc178799db61e0999a7c95a224309 SHA1 10dca0ceee66e20f17b15c991c6e7b054619a149 SHA256 a6997d3a5b96af8de1b2b6f61bb82890621e8ec46e4227b8b9dd418d5ab2222e +DIST mozilla-thunderbird-2.0.0.21-pa-IN.xpi 205022 RMD160 dec75f6fc288b5537f577cc67ff416b310e7d1e0 SHA1 7fb5b81a180a701d340bc8f001633c719ee7be5c SHA256 528785becd1dba1be28d344eec334f14a84bf932c2186d4cbd748f32392724dd +DIST mozilla-thunderbird-2.0.0.21-pl.xpi 177417 RMD160 2bc00cff6b75ec40ac5b6a4745548101f06b6bb8 SHA1 bc24b50a5f557f9be3dee3131309189baddd5a42 SHA256 346a70c55a25afb869e39de8e82e0f95c05ec9358e66a803297ceb0b9925d231 +DIST mozilla-thunderbird-2.0.0.21-pt-BR.xpi 183071 RMD160 386f99dda6571fbe29463e27556795c45517f32b SHA1 a203cfd300a8d06eb534953892afea53dc92759b SHA256 5ea22c8d5b2a1ccdae886a03aced24704588babf011003ba4a3033785a03e6c9 +DIST mozilla-thunderbird-2.0.0.21-pt-PT.xpi 183924 RMD160 a183550e0fab71eb292ec1c8d0c3902695c83fd3 SHA1 870921dc156477b068b38dbf6de948128b06aee0 SHA256 5c64794b74ad467b01ed8b7ba0c59944f9c3a0bdac76e0ee20f6cfeaf365e80a +DIST mozilla-thunderbird-2.0.0.21-ru.xpi 174276 RMD160 de7d894f48d7cf61dd6045c088c7cbef601b5230 SHA1 bf97d6e5b02cd9f38bbc77564ed4bfafac640882 SHA256 6d2a313907a6fc9f0254cba398a0ffc7b6329d66b8f09c6c283e3271f7274aa4 +DIST mozilla-thunderbird-2.0.0.21-sk.xpi 191718 RMD160 451255e605d7c762c82ea8b4eb162fc8efd2d0b8 SHA1 7c78408edf4aa12131b2e013e52b848fc19a289c SHA256 343f13d33624c45e8eb9a9a4f20a18349175f7d7ffa66d6b01eb60439153adb3 +DIST mozilla-thunderbird-2.0.0.21-sl.xpi 188025 RMD160 28777095e3388811169b402403bc003f3889c8e7 SHA1 a6230be2d95d9a8b0c1ed419751fbca9e47f1aa1 SHA256 d0c01094507cf33f4ba9f89e0c34ba5327de92be61c59d0903f2165946eac09d +DIST mozilla-thunderbird-2.0.0.21-sv-SE.xpi 191928 RMD160 bde03abf125f288bc05b2408110ff6dec1670ab5 SHA1 4cd0a1967658b37042596dfd5733c45d466455b4 SHA256 e6069e6a029dbf744011b396e586a4a6414c00f65e0aa3b9d690aa75059eee50 +DIST mozilla-thunderbird-2.0.0.21-tr.xpi 157710 RMD160 df518b01440d684651b32c35b260ea312f7da75f SHA1 c6bba57bf8586dd4f27f15c10bca5c7fad3f03a5 SHA256 8f88ebbc400369fa78cc1a135d979a583f116aa17a8903449b9f7f9098352aa8 +DIST mozilla-thunderbird-2.0.0.21-uk.xpi 194506 RMD160 db712c7447e2671cb5d4b1670b2aeb605ca9003c SHA1 23bfe2c114209d6751782ae9f24c182501d3939f SHA256 533066f6ed0df977d8e44a096de0078ca07fd1c466927bb164cfba5670ff5719 +DIST mozilla-thunderbird-2.0.0.21-zh-CN.xpi 147643 RMD160 0b9c0c31999f91a28a283366605f3e0491e048f9 SHA1 49ee4194445cc8b9eada5305be5939a9020306c8 SHA256 20724d6ffab84fedc3212a18b80ce694beb6efef9d135c535b9dde2308ee8119 +DIST mozilla-thunderbird-2.0.0.21-zh-TW.xpi 153703 RMD160 a6b5cac63933056f2dc55d097912fdebc9e69626 SHA1 021808c64a12874e76e37fc85174d2e1a4c8098b SHA256 9070afb63a2a814292e3d1651edcffa98c2c880f3125f8ad7a5e8fd2b199b171 DIST thunderbird-1.5.0.14-source.tar.bz2 36183747 RMD160 28f16d7b9b86ad94f7deafc324266429e3708ac8 SHA1 e952ae6724cdd5558c73c9ada842157b155b0708 SHA256 e5cab7b16a7d47a4e9fe2f9361c69fe6dd0e94fda3ec70d27da1c65e1bf45d04 DIST thunderbird-2.0.0.19-source.tar.bz2 40452690 RMD160 7139fb27b1a236564ee6470c4be13e93b6ec9217 SHA1 4d2e0f8b405bb0ceab20a9f570ce91cf4640f456 SHA256 9a23d3a93c7646867227558727cf564eaba70da87e21e097eb46d951ed839f25 +DIST thunderbird-2.0.0.21-source.tar.bz2 40484246 RMD160 493e41013a91888d29647c126d4f2c5a547056dd SHA1 8bb2f7ce60635f6082c3c4542fff10c4b7445dc0 SHA256 a89d53f883eb7d4d57640ab51cda7bd181fec38a0e2df11689327cea779a92d2 EBUILD mozilla-thunderbird-1.5.0.14.ebuild 8126 RMD160 75af31f9e1e77946253d8510e58de626c682c8cd SHA1 c7ba28ef58e8eba04826cdd0b0797543e4b85c84 SHA256 846fd0658e0cf6ded21f83f241497c68638114678ff69a90d8f394d69bcd8103 EBUILD mozilla-thunderbird-2.0.0.19.ebuild 8284 RMD160 becba417508b9a19ac7d55cefa1a657055c6eda9 SHA1 4f4b67f8a1ab92440aad6936181a44e059381293 SHA256 72efab27758527ec679ffbf00b1100e8be332e161665144ffdd5c065fb38592b -MISC ChangeLog 43044 RMD160 d41c486936bbc4f1db61af91f885f2c38751f85b SHA1 ffa5440ab9d4e417cfe4ddd80122d9f511a4d47c SHA256 dd329c723ad9b581e0ba17e6f4828a77ffe67f828bcc4bf00d096c5c81bc4a99 +EBUILD mozilla-thunderbird-2.0.0.21.ebuild 8301 RMD160 03b44fd6f307f10e25b57cd724afbd324a05b38f SHA1 768d1e4f4a7734ac40dd29150cd2ab4bd1eacf45 SHA256 462e8abf6d713c8eb0dd812fffc1d8a068d185d1b5a89898f37836890182e4a0 +MISC ChangeLog 43194 RMD160 a2911edbf47fa15bb53b4a2f9819c7174c3dd6bb SHA1 352dce67310de9a77b0dd0431a840f9e72914044 SHA256 65e943c4890bf135a546cd5672bfb1335699fc6ae633e7cf102452c1562d7004 MISC metadata.xml 399 RMD160 c2bc8ef91c29025087629e46b575b607d854988d SHA1 59fca50081eb53b9f6167e95fa89f1933bb4d721 SHA256 d9788b19b766806196a3a1546c1ff2af8eb94b0c94917357979215ba161ca8df diff --git a/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.21.ebuild b/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.21.ebuild new file mode 100644 index 000000000000..ea3675962bda --- /dev/null +++ b/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.21.ebuild @@ -0,0 +1,268 @@ +# Copyright 1999-2009 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.0.21.ebuild,v 1.1 2009/03/19 16:33:09 armin76 Exp $ + +WANT_AUTOCONF="2.1" + +inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib mozextension autotools + +PATCH="${PN}-2.0.0.19-patches-0.1" +LANGS="af be bg ca cs da de el en-GB en-US es-AR es-ES eu fi fr ga-IE he hu it ja ko lt mk nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ru sk sl sv-SE tr uk zh-CN zh-TW" +NOSHORTLANGS="en-GB es-AR pt-BR zh-TW" + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/" + +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +SLOT="0" +LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" +IUSE="ldap crypt bindist mozdom replytolist" + +MOZ_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${PV}" +SRC_URI="${MOZ_URI}/source/thunderbird-${PV}-source.tar.bz2 + mirror://gentoo/${PATCH}.tar.bz2" + +# These are in +# +# http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${MY_PV}/linux-i686/xpi/ +# +# for i in $LANGS $SHORTLANGS; do wget $i.xpi -O ${P}-$i.xpi; done +for X in ${LANGS} ; do + if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then + SRC_URI="${SRC_URI} + linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )" + fi + IUSE="${IUSE} linguas_${X/-/_}" + # english is handled internally + if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then + if [ "${X}" != "en-US" ]; then + SRC_URI="${SRC_URI} + linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )" + fi + IUSE="${IUSE} linguas_${X%%-*}" + fi +done + +RDEPEND=">=www-client/mozilla-launcher-1.56 + >=dev-libs/nss-3.11.5 + >=dev-libs/nspr-4.6.5-r1" + +PDEPEND="crypt? ( >=x11-plugins/enigmail-0.95.7-r4 ) + 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 MOZ_CO_PROJECT=mail +export BUILD_OFFICIAL=1 +export MOZILLA_OFFICIAL=1 + +linguas() { + local LANG SLANG + for LANG in ${LINGUAS}; do + if has ${LANG} en en_US; then + has en ${linguas} || linguas="${linguas:+"${linguas} "}en" + continue + elif has ${LANG} ${LANGS//-/_}; then + has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" + continue + elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then + for X in ${LANGS}; do + if [[ "${X}" == "${LANG}-"* ]] && \ + [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then + has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" + continue 2 + fi + done + fi + ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" + done +} + +pkg_setup(){ + if ! built_with_use x11-libs/cairo X; then + eerror "Cairo is not built with X useflag." + eerror "Please add 'X' to your USE flags, and re-emerge cairo." + die "Cairo needs X" + fi + + if ! built_with_use --missing true x11-libs/pango X; then + eerror "Pango is not built with X useflag." + eerror "Please add 'X' to your USE flags, and re-emerge pango." + die "Pango needs X" + fi + + 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" + fi + + use moznopango && warn_mozilla_launcher_stub +} + +src_unpack() { + unpack thunderbird-${PV}-source.tar.bz2 ${PATCH}.tar.bz2 + + linguas + for X in ${linguas}; do + [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi" + done + if [[ ${linguas} != "" && ${linguas} != "en" ]]; then + elog "Selected language packs (first will be default): ${linguas}" + fi + + # Apply our patches + cd "${S}" || die "cd failed" + EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + epatch "${WORKDIR}"/patch + + eautoreconf +} + +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 223375, 217805 + # Breaks builds with gcc-4.3 + if [[ $(gcc-version) == "4.3" ]]; then + mozconfig_annotate 'gcc-4.3 breaks builds' --disable-optimize + fi + + # Bug #72667 + if use mozdom; then + mozconfig_annotate '' --enable-extensions=default,inspector + else + mozconfig_annotate '' --enable-extensions=default + fi + + if ! use bindist; then + mozconfig_annotate '' --enable-official-branding + fi + + # Finalize and report settings + mozconfig_final + + # -fstack-protector breaks us + if gcc-version ge 4 1; then + gcc-specs-ssp && append-flags -fno-stack-protector + else + gcc-specs-ssp && append-flags -fno-stack-protector-all + fi + filter-flags -fstack-protector -fstack-protector-all + + #################################### + # + # Configure and build + # + #################################### + + 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 || die +} + +pkg_preinst() { + declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + elog "Removing old installs with some really ugly code. It potentially" + elog "eliminates any problems during the install, however suggestions to" + elog "replace this are highly welcome. Send comments and suggestions to" + elog "mozilla@gentoo.org." + rm -rf "${ROOT}"/"${MOZILLA_FIVE_HOME}" +} + +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 "cp 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} + + if ! use bindist; then + doicon "${FILESDIR}"/icon/thunderbird-icon.png + domenu "${FILESDIR}"/icon/${PN}.desktop + else + doicon "${FILESDIR}"/icon/thunderbird-icon-unbranded.png + newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \ + ${PN}.desktop + fi + + # Install files necessary for applications to build against thunderbird + elog "Installing includes and idl files..." + cp -LfR "${S}"/dist/include "${D}"/"${MOZILLA_FIVE_HOME}" || die "cp failed" + cp -LfR "${S}"/dist/idl "${D}"/"${MOZILLA_FIVE_HOME}" || die "cp failed" + + # Dirty hack to get some applications using this header running + dosym "${MOZILLA_FIVE_HOME}"/include/necko/nsIURI.h \ + "${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 ${PN}." +} + +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 +} |