diff options
author | 2008-11-20 19:48:24 +0000 | |
---|---|---|
committer | 2008-11-20 19:48:24 +0000 | |
commit | ae4e6c72801480e926b8b4baec96c1bbc4e30501 (patch) | |
tree | 5534f894e325da10ba2611d9cb9b510d4d1320b9 /mail-client/mozilla-thunderbird | |
parent | Version bump (diff) | |
download | historical-ae4e6c72801480e926b8b4baec96c1bbc4e30501.tar.gz historical-ae4e6c72801480e926b8b4baec96c1bbc4e30501.tar.bz2 historical-ae4e6c72801480e926b8b4baec96c1bbc4e30501.zip |
Version bump
Package-Manager: portage-2.1.4.5
Diffstat (limited to 'mail-client/mozilla-thunderbird')
-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.18.ebuild | 268 |
3 files changed, 315 insertions, 2 deletions
diff --git a/mail-client/mozilla-thunderbird/ChangeLog b/mail-client/mozilla-thunderbird/ChangeLog index 0e80c1161e8d..a9ea103c1a1b 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-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.273 2008/10/31 10:22:16 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.274 2008/11/20 19:48:24 armin76 Exp $ + +*mozilla-thunderbird-2.0.0.18 (20 Nov 2008) + + 20 Nov 2008; Raúl Porcel <armin76@gentoo.org> + +mozilla-thunderbird-2.0.0.18.ebuild: + Version bump 31 Oct 2008; Raúl Porcel <armin76@gentoo.org> -mozilla-thunderbird-1.5.0.8.ebuild: diff --git a/mail-client/mozilla-thunderbird/Manifest b/mail-client/mozilla-thunderbird/Manifest index 3dfbe96cdcdb..f0a2152c7922 100644 --- a/mail-client/mozilla-thunderbird/Manifest +++ b/mail-client/mozilla-thunderbird/Manifest @@ -73,9 +73,48 @@ DIST mozilla-thunderbird-2.0.0.17-tr.xpi 157710 RMD160 ddcb2bd5cba9fbae75b894dfc DIST mozilla-thunderbird-2.0.0.17-uk.xpi 194506 RMD160 724e6f6fcbb94d148390a157ad921636270f3db3 SHA1 5258024ca45aa6b870b366ebe3e15e525f686a5d SHA256 3f03c2bb5cd4c30ffc82aa216bd5e5ac87dbfb3adbe2ec2c0e3113920b9de2a1 DIST mozilla-thunderbird-2.0.0.17-zh-CN.xpi 147644 RMD160 968ccfae6901c5276508409da907912896a27aa7 SHA1 ba1340002161e19f3745c82a441e5bc5243a53e7 SHA256 0e91b0b9752712b3a0706cb1e059000d87baf774cdf09272ee5567a505ed1aac DIST mozilla-thunderbird-2.0.0.17-zh-TW.xpi 153703 RMD160 77e43b4e2ddc241152466cd734683542aa990633 SHA1 42678f1a1993cbf969b77e042b5df8a870807208 SHA256 eb5cfc336b343f978253e3003e578f8cbf14b5d5ed16615ad504cb78d0f5be6e +DIST mozilla-thunderbird-2.0.0.18-af.xpi 177922 RMD160 9f2555bec95c4024630d686c54fa52defb6028a4 SHA1 531661c336f1bdefe7a2433a628a26031c1007bc SHA256 7ac3c0bf44a448ae4b815f3f994a2906df52c077e057c58df2f0a1d3cdef9550 +DIST mozilla-thunderbird-2.0.0.18-be.xpi 184812 RMD160 e7bb3f049363746242feccf95ecbdd8c5cf3e539 SHA1 567f1457e2e4efe73813d9dc64e9163b1f8b8169 SHA256 2b3a968b206918d9e884701989496e0da82722c4bd682c3fb9f9c0d6559d0d06 +DIST mozilla-thunderbird-2.0.0.18-bg.xpi 196486 RMD160 70158fde81a0cc0a49a7071d20d98611fef04328 SHA1 6e933a567acd58a238b627139b211b657f855cbc SHA256 6bbffc51a3ce0e62a160287e4ac4a8a02de854a3f3441e2185f61270120dbc6b +DIST mozilla-thunderbird-2.0.0.18-ca.xpi 184231 RMD160 cab1d0b516852fe42368d7b13d8bbb93faa9a3bb SHA1 0115d2be7752a1c7addcbe3ecd76cf1152e29db2 SHA256 13e588806069b58594d74669d3d329383ecc3340c8724ad94118baf85b9fc584 +DIST mozilla-thunderbird-2.0.0.18-cs.xpi 186166 RMD160 dad44ec6ea39df03365ffb2facdc635078e5cb94 SHA1 151acbb54a87e360ec2a945dff84590718c9ef22 SHA256 9a682b699978aef0ced016f4a27d270f6c1457bf1674b335234a9b9d4dadfec2 +DIST mozilla-thunderbird-2.0.0.18-da.xpi 179120 RMD160 4709b65b9aae3737fa2ff6932ce5db4abb9acd37 SHA1 53be914faa08478c97be2dd7e776a635aa46b6d2 SHA256 fe73f3f19477e3a6a1a8c630f190035bd87b5601bfceb5b54a2a658c8a2e28bc +DIST mozilla-thunderbird-2.0.0.18-de.xpi 159065 RMD160 623e367b616fcdab41f2e8b6a5b797cc9170848c SHA1 a2f293af2272242b98858a598468b7b1782c2da1 SHA256 d13ecf6d99d283b99d12da88f3c0838c93c338265008802bf236bf70b0d0dc45 +DIST mozilla-thunderbird-2.0.0.18-el.xpi 183060 RMD160 3aad67e81233883d36ca2acdba0308d2a0e22841 SHA1 84cb5892c461945f68b3989095c04c2c9e59795f SHA256 bd4bfdd5cbebe82850995d43600ea47d67680213272bb3af88d9065fc24380e0 +DIST mozilla-thunderbird-2.0.0.18-en-GB.xpi 173049 RMD160 57cea29bdb8a48cc7f6fe793d76cb0b56e003f18 SHA1 4690e10b920ca794ff4b6c420223ea5a1d6e8ee3 SHA256 86d7a03deb53e6943a23c3db4dd06cd30f18f0105cb3fdd17b18ed127b919e49 +DIST mozilla-thunderbird-2.0.0.18-es-AR.xpi 184679 RMD160 33d3a8fbb9c293286a1bd008c7c44ab80919f35d SHA1 c38c806f1dc338476abe28c54ea8dab0755b7a9c SHA256 492f0c176de6f29863a59fa2fd051263691afbfc45cf201a2752b6689c7bca0c +DIST mozilla-thunderbird-2.0.0.18-es-ES.xpi 149560 RMD160 c986db02a8966d6d216bfc8de2f19ba9d1749b17 SHA1 4b5c1be4dbeec06d6999828f1ff43366cbfd89e4 SHA256 29be78eb93a382505ab569b74d23dd282bf8e2c1c87c362ca3fab0642211d385 +DIST mozilla-thunderbird-2.0.0.18-eu.xpi 181798 RMD160 e4cfd45d7bd6e7322e3c6b24d48c3144cca9e614 SHA1 02145357c8f6dbb70bae96055457ca400b5722e9 SHA256 60412f8d31fcf459db8e3b959a5b8c0e2657cffe8b7fe3bc2b5b8b8cee6bf2ea +DIST mozilla-thunderbird-2.0.0.18-fi.xpi 187733 RMD160 1fae0098bd27853fda9c767628596b126ecb381b SHA1 0edd71621449c5f0d7adbb74a6c3392e4ff6e386 SHA256 133e3bb13a17b1e18e80ebcb8c10da202c7ee6b28a159dcc41b2c5d0594d76ec +DIST mozilla-thunderbird-2.0.0.18-fr.xpi 190911 RMD160 39934d99ab284328eeebbf841a8a44515c8aef41 SHA1 77a2c386363fdc99052fe89414e9c784d679d8af SHA256 e1f7a6c86b3964a0325b8b9c56c4a810eac9a02627ff2cda2b1b055f1bb79645 +DIST mozilla-thunderbird-2.0.0.18-ga-IE.xpi 185958 RMD160 598b36a7e6ae96bbf56297ec7d8e1e7b036ba06a SHA1 ae4553e9b9ff58974a747477c9d18544cb87a054 SHA256 ebdbe37acc6ac2a08b3c31909f6e5411b866b2a1bf90fbaaaafeebb88e5e81f5 +DIST mozilla-thunderbird-2.0.0.18-he.xpi 157242 RMD160 744e12bd116d72ce0a28f7b693b587a4ea963124 SHA1 378a37085faf4c53ea590206e459021c4b1a4b5c SHA256 5da03591427fab566c7ccf86a5b62b072bdc710f7ef0beca3d3c6b395731c6c2 +DIST mozilla-thunderbird-2.0.0.18-hu.xpi 191693 RMD160 e476be66dc5ed40d361490fc4a7260aaccd17c43 SHA1 de7f16e1a43c384e1fe812b240505fbcae06ef76 SHA256 0bf6a020efdb63fe24a871587df042dbdfc2e3b4a637a09f272079f9f1a0a1d5 +DIST mozilla-thunderbird-2.0.0.18-it.xpi 152553 RMD160 aa4569be09e0cf110584311ea9990837fdcb4bbb SHA1 8f9ca2e9c494644c05a08aa74d050aea75f5049b SHA256 3f6747e0b7736ab0a67295adde30e04f943e24fc281a420101fe2b0337384d50 +DIST mozilla-thunderbird-2.0.0.18-ja.xpi 199410 RMD160 3f571a019b7519f5e514f4b56c360c5f0ffb83d6 SHA1 c8ba61cda0f561c6bcda88a52a2e3cd4bb2e24ab SHA256 8c80e8799198fda43f66f9c17135d6ec80dc341d8fd88517d64802d27695f412 +DIST mozilla-thunderbird-2.0.0.18-ko.xpi 170142 RMD160 9370e5c2dbcc4e8d286fbf68fbf492763c7711b2 SHA1 dc00c1d5e9a74978e2e1df0e5dff37acbfab7a8b SHA256 5b56b9925fc425a72106dec2ebaee02e50b4e0935917f8b56a15d3aecb89b2dd +DIST mozilla-thunderbird-2.0.0.18-lt.xpi 189456 RMD160 2cb2831935188b13e501483e946fae1fe5ee9725 SHA1 34301d6a69ade3d05cd7b0922050d87c4e59fd48 SHA256 daf3fe2a6119357212898ff9172af8b7da148f2aa679d8da276d72bb38761624 +DIST mozilla-thunderbird-2.0.0.18-mk.xpi 196440 RMD160 ccc656c2c3b00d12b3c136294396c9877851c73d SHA1 0269e66b932942e7ded2460c069c7aa146a71580 SHA256 87d1191a4508cd33cbb5d5e50fa54941ed29b303f1436550483996c488a51e59 +DIST mozilla-thunderbird-2.0.0.18-nb-NO.xpi 183237 RMD160 310c02ceb6e4253248729d18ecdc97b53a5825b5 SHA1 a3d195bb1d2ad542d162973278171a72eb23eac9 SHA256 e2a04a0e5cb3c8e3c41bb8e4670d2a2b29b36e89452f3ef0cafadd6e2ae47b10 +DIST mozilla-thunderbird-2.0.0.18-nl.xpi 184152 RMD160 db1784fe7b840308d137e17a8da3569931ec6b44 SHA1 89a5b43d987c46db0d7ad7be547d242c20a6733c SHA256 c438f14c6d977404e05e31ac52cef168c40d65d13534003abceb7deefff8b2fd +DIST mozilla-thunderbird-2.0.0.18-nn-NO.xpi 184116 RMD160 1b8f1785e4ee01084b769ac55df2b027e9af7369 SHA1 b8710de4a0249dead1532ba235a9822136f62b36 SHA256 9e58e375e2d46b8eeed02a6aec51ab76a67952e366a4ed50cd80cca99d3673a9 +DIST mozilla-thunderbird-2.0.0.18-pa-IN.xpi 205022 RMD160 60b68115df4a16abbc6071c388d0d18270e00084 SHA1 71292ab68c04f4c3dd32e164f06a961178732c08 SHA256 a62424bb3fceec95b19defdcd3d494a5979262bc0f9ce30ba7212a5c3a8517c2 +DIST mozilla-thunderbird-2.0.0.18-pl.xpi 177417 RMD160 2db27a8efcf39ddf38bcd5e877102d412cc90bbf SHA1 5c899df42016e39e8f3ea343678e7ec1af77a328 SHA256 829fb294a3648555ede1479430b25d1b5ac9b6dfb98f35766fc4b91d2ab1291b +DIST mozilla-thunderbird-2.0.0.18-pt-BR.xpi 183071 RMD160 3f0f73cca265aa5173cd8d2e5994e0022cbe8a71 SHA1 232631e3832c956d795ec168d99b25a097ebac0c SHA256 64ad261ea7ab946041d946b7798f98938657812df80e26b99199f81ca0c42c00 +DIST mozilla-thunderbird-2.0.0.18-pt-PT.xpi 183924 RMD160 90beff39294a56d37c846eda634ac4536ab7a8d6 SHA1 d8e1ac4944a033c9fae24c9246f13772625e6654 SHA256 0c1e1a19e007fa6cac2451abcbd786d20cb782ec5bad0bb1932cf2f6b961cc45 +DIST mozilla-thunderbird-2.0.0.18-ru.xpi 174239 RMD160 88491e29776dea5f10f6c0006e49cb9aae35b8e2 SHA1 4a515d72b6c92133fb98fafdaeb6be6d9b17683b SHA256 ea5389a16ce37c184d5d0cf898da1e6ee16a27ffa8f89989fd46288b447c9856 +DIST mozilla-thunderbird-2.0.0.18-sk.xpi 191717 RMD160 0a2f2531c4ef50c2973be21eb6aefda33069de09 SHA1 452ce3ab92bad9d162640bebcecab45650a57818 SHA256 8cfe541a3d9111963e0be8c991a41c04f6b13d55cbbec452306df110fe2e6569 +DIST mozilla-thunderbird-2.0.0.18-sl.xpi 188025 RMD160 5c653361cc031b73e78791455e2f4c136cc0da54 SHA1 487c2de0fc64a374301388af944152f24671afd3 SHA256 31ceb2bc676bf1c6f1adac58c2693dfc56d003cc8b64695d70e1ad5a8cb24f13 +DIST mozilla-thunderbird-2.0.0.18-sv-SE.xpi 191928 RMD160 e7175510a27f31da42900ba2798a3c22ef6c231b SHA1 cd476807e4528c3e639d7018454a0706991e5810 SHA256 0b64f928b5969fb638f3044bc494acca9f53871952089a17dbff8cbf396096e1 +DIST mozilla-thunderbird-2.0.0.18-tr.xpi 157710 RMD160 c5cddca3b52478cfac2fce690cbacbda9861a7c5 SHA1 75dd300ddc109437ac58a6223a4f5908b6920f6e SHA256 558b641ebefeae29d9b209e301b1afbdc133b0198bfb9ea118a90d0f376145ad +DIST mozilla-thunderbird-2.0.0.18-uk.xpi 194505 RMD160 9efdb1297f48a3cc1a8631790858ec437daa56f0 SHA1 b6892a8441cc97344bf7397584f3279b318dc9f6 SHA256 c9c7c380b376abb958fe776559c8eaa73fa5736ea2d68072ae4f85d76ee70265 +DIST mozilla-thunderbird-2.0.0.18-zh-CN.xpi 147643 RMD160 5390e4000beda61bcba52dc98b8f1c60f856e086 SHA1 0351d34d5f922548a0963d658e863045940af8f4 SHA256 ea19f698e783400e9b15ed106b62329b12d5b620d3af5252fdaf07865359b195 +DIST mozilla-thunderbird-2.0.0.18-zh-TW.xpi 153702 RMD160 f013f009fab714d0908ecf064d2eb36058fa061a SHA1 47071b5646015789eb59c5ebc3eeee5ff0c20e51 SHA256 e89f5347a58cb302dd4d51eafe5ba9c48c3a29a8c2c30203b284def83dbbe1cd DIST thunderbird-1.5.0.14-source.tar.bz2 36183747 RMD160 28f16d7b9b86ad94f7deafc324266429e3708ac8 SHA1 e952ae6724cdd5558c73c9ada842157b155b0708 SHA256 e5cab7b16a7d47a4e9fe2f9361c69fe6dd0e94fda3ec70d27da1c65e1bf45d04 DIST thunderbird-2.0.0.17-source.tar.bz2 40444452 RMD160 983ee59312b2dabdebfed2751ab38168a0bfb6fc SHA1 98a7ff5206fe1bddcb895dc2276e348229af99d9 SHA256 526eda34654499e7838b4fc47a3329905b643b30241e599bf4bf3ab609ff1aec +DIST thunderbird-2.0.0.18-source.tar.bz2 40455125 RMD160 093b2328a000f18494fd552cce58fa2ec55085a1 SHA1 4d05300280763e34c7a115835523ed2805f7733c SHA256 f18f97833661b260d819161080329f857e489b3c934f4648012b8728b7f3d597 EBUILD mozilla-thunderbird-1.5.0.14.ebuild 8126 RMD160 75af31f9e1e77946253d8510e58de626c682c8cd SHA1 c7ba28ef58e8eba04826cdd0b0797543e4b85c84 SHA256 846fd0658e0cf6ded21f83f241497c68638114678ff69a90d8f394d69bcd8103 EBUILD mozilla-thunderbird-2.0.0.17.ebuild 8293 RMD160 583fb0ae3a76381dd4e421b55fb9e17a288250f7 SHA1 4d3d1fc9355d6830963e906bdc0009502c6793ff SHA256 4da1961bd0890f228e82ae67d2451c3613d0b71353e5ed5e887076c4af587850 -MISC ChangeLog 41547 RMD160 59a1f6788fdb849672c26e7edd3a4ad09e28363c SHA1 d826329f20e152c1a2c09a8641fa188736404bdc SHA256 da5f6a86cab9727f086a375ce61fa2fee91d2c0133915505b1e31829d5e9d3dc +EBUILD mozilla-thunderbird-2.0.0.18.ebuild 8301 RMD160 a0423568c85751e689e2b751650620e2da649df3 SHA1 e85cd34688d7ad66ea50a39cd9db09235a4bf4a7 SHA256 632a6222f64f1d170beecd3b9fb4463b822fd87c69d0c91d73e3ced3a21af073 +MISC ChangeLog 41697 RMD160 fa35edea139bf6f04c0554511f7c0a4f429a1cc1 SHA1 6322f5c363adf7520269a2b373e599133af576c6 SHA256 9139db7ef20cff50c17616c4add3c97869ab0eb88bb9514714bbea3f39cfcd5c MISC metadata.xml 399 RMD160 c2bc8ef91c29025087629e46b575b607d854988d SHA1 59fca50081eb53b9f6167e95fa89f1933bb4d721 SHA256 d9788b19b766806196a3a1546c1ff2af8eb94b0c94917357979215ba161ca8df diff --git a/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.18.ebuild b/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.18.ebuild new file mode 100644 index 000000000000..3185a3502ee8 --- /dev/null +++ b/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.18.ebuild @@ -0,0 +1,268 @@ +# Copyright 1999-2008 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.18.ebuild,v 1.1 2008/11/20 19:48:24 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.16-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-r1 ) + 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 +} |