diff options
author | 2008-12-31 15:26:14 +0000 | |
---|---|---|
committer | 2008-12-31 15:26:14 +0000 | |
commit | 3e43fceb8b8e5cfff52b84e2ea8d802be010531e (patch) | |
tree | 9c519d52c1939de35b6d822511ba338ff44f3603 /mail-client/mozilla-thunderbird | |
parent | Version bumped, bug #236101. (diff) | |
download | historical-3e43fceb8b8e5cfff52b84e2ea8d802be010531e.tar.gz historical-3e43fceb8b8e5cfff52b84e2ea8d802be010531e.tar.bz2 historical-3e43fceb8b8e5cfff52b84e2ea8d802be010531e.zip |
Version bump
Package-Manager: portage-2.1.6.4/cvs/Linux 2.6.26-gentoo-r2 ia64
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.19.ebuild | 268 |
3 files changed, 315 insertions, 2 deletions
diff --git a/mail-client/mozilla-thunderbird/ChangeLog b/mail-client/mozilla-thunderbird/ChangeLog index e651409c16a5..67b26d6588c2 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.278 2008/11/24 20:34:39 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.279 2008/12/31 15:26:14 armin76 Exp $ + +*mozilla-thunderbird-2.0.0.19 (31 Dec 2008) + + 31 Dec 2008; Raúl Porcel <armin76@gentoo.org> + +mozilla-thunderbird-2.0.0.19.ebuild: + Version bump 24 Nov 2008; Brent Baude <ranger@gentoo.org> mozilla-thunderbird-2.0.0.18.ebuild: diff --git a/mail-client/mozilla-thunderbird/Manifest b/mail-client/mozilla-thunderbird/Manifest index 006088c8aaf7..e7970bba848f 100644 --- a/mail-client/mozilla-thunderbird/Manifest +++ b/mail-client/mozilla-thunderbird/Manifest @@ -73,9 +73,48 @@ DIST mozilla-thunderbird-2.0.0.18-tr.xpi 157710 RMD160 c5cddca3b52478cfac2fce690 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 mozilla-thunderbird-2.0.0.19-af.xpi 177923 RMD160 cc66a1d8576561fd76ee49f8b2502f0d3dedc3fa SHA1 904358009e157ed791fe48d1dad41eb42ff53f69 SHA256 ab5e1a1265450dbcc41d38e633aead4e72341966b48465b49de4d8c442760172 +DIST mozilla-thunderbird-2.0.0.19-be.xpi 184813 RMD160 2aae12710cad61f3f6a5e795ba4fcd4b283b5707 SHA1 3983e3f65332929f04522373c3a56d89bab4074a SHA256 3901066d9b80fb5d4d364b855cce45764823a1d32c264d23eda2338b7d4f980c +DIST mozilla-thunderbird-2.0.0.19-bg.xpi 196487 RMD160 c0a3094dff6f2289b35fef7231090d09d5fdf53f SHA1 96d00d807056e165e9d487da194e36a7b3c94778 SHA256 0173fb121a3d2b30635e52c2a2610465afc5f311cd57f56e0a1b3acc75a3ed82 +DIST mozilla-thunderbird-2.0.0.19-ca.xpi 184232 RMD160 8e30070d8cd83a0fc69242a8c78e588d14df5c11 SHA1 f293b13f80d85d52c0186f9cf47c0b59e74f6365 SHA256 19804592cff2c0a1d3c641c4eea0b5b263c5e1022fceea438dbc1c3ddffc4b4f +DIST mozilla-thunderbird-2.0.0.19-cs.xpi 186167 RMD160 9cdc5f14f7ba5e530eb3abfe92311ec0c434364e SHA1 0d908077f2919752fad4c2fb6cff29ef8c1c7193 SHA256 ff03ef8e19999e3cc7f32e70ba1c776e4a6172d647b46640585168e00737e550 +DIST mozilla-thunderbird-2.0.0.19-da.xpi 179121 RMD160 b5f51f8f3eaccfadd33df9ce9e7c8b3ceaa55e8a SHA1 20ab6f874227e3e9784fdde7c327380bf86b293f SHA256 462190a9f0fd7e203d5ae84afaec6a15a75058d29f1e21dde66c7fdb436e867a +DIST mozilla-thunderbird-2.0.0.19-de.xpi 159066 RMD160 e3af49f9dfac265d40cb16b2e3db5a8dfc49a801 SHA1 c3b5c4eacc4d22bc57cc3f87eae180def1c2f406 SHA256 af153c3506aa110696fa122424f80543544d0206848a30294285f0ccbe6b88ba +DIST mozilla-thunderbird-2.0.0.19-el.xpi 183061 RMD160 2e9738c35a615e2238e041ac714c975d4e6ed9a9 SHA1 4bc3168a927757fdb7d7d85dd4a1b0b622f23dd7 SHA256 94ada876d920665648f28a5d3dd326f33158f71984c44e360f9ee2f0c20a1ab1 +DIST mozilla-thunderbird-2.0.0.19-en-GB.xpi 173049 RMD160 61aab62f3b3093cc7d2a13849b237773aba92305 SHA1 930243b0468c078ca2bf41b8a6d7f29cb990a435 SHA256 afe2ed26ba9c58798285b58532a57187e0bda3dff40fe01a5241ddd276a10195 +DIST mozilla-thunderbird-2.0.0.19-es-AR.xpi 184680 RMD160 b6311d0d3c7de8aa713961bac5e548fb6b6a9abc SHA1 8c93ff68ad728fa0965e5ad378d367bab3b3ccea SHA256 97337e2e6c07413fb162af151e5d55e40cd7346889188025d772042b245348b5 +DIST mozilla-thunderbird-2.0.0.19-es-ES.xpi 149560 RMD160 a0ed0c9057abda1bbebcb563b968d1ed911a6c46 SHA1 aae73c4865291c34dedbf3b8589d4c3d45ffbe4c SHA256 4859574062506c450e7e0d5ee1af95326abfca025801291c1a20dbe00d9f6c4d +DIST mozilla-thunderbird-2.0.0.19-eu.xpi 181799 RMD160 5317cafa5efb1360e212d31cb67ea4aa8bf3760b SHA1 30a8bfb50c29f73f9e061b3991bd8235cb6a917f SHA256 cfbd2690c35b23ed1e2d9b8a12539a71085530a47446c2d20b96ce283fb5861e +DIST mozilla-thunderbird-2.0.0.19-fi.xpi 187734 RMD160 499d42fe4b15f5454ccbf9b5cab68daf1e0ac526 SHA1 043adfa4f3852766bc822dc6049668c31adb2a5d SHA256 f4a1761a16a99912d3753634ac03456d0dc251e902f61d7c22287f942f844967 +DIST mozilla-thunderbird-2.0.0.19-fr.xpi 190912 RMD160 f4864ace4cd1dc814f73f8d8501166dc9969aeed SHA1 9c5fc060c05e49b5cb7b19760a7ea5665daa3aae SHA256 c92beb222bb1c0f45a81229f08695d1236699e75a6ef44509b5dd764383bed95 +DIST mozilla-thunderbird-2.0.0.19-ga-IE.xpi 185959 RMD160 dc98c76fa644c8e95b261d34f797bd2c93a7e750 SHA1 2f05d978f15a4d250e3daaee9f8352464bb51416 SHA256 af75c18c3ccf56d6f2bdcf3574a3575302de54033ed7db96f2992a76553eb081 +DIST mozilla-thunderbird-2.0.0.19-he.xpi 157243 RMD160 32b0b66f703adf0eb6d001a0b953b7578956371d SHA1 a73f12c667f44828c1723d7be38393e8f1b36364 SHA256 8cae6cb5e4cb0475658e98d340b15faabc0e6c3073185983cb58ce5adab202b0 +DIST mozilla-thunderbird-2.0.0.19-hu.xpi 191694 RMD160 bd63cf9308316522fbfa8eb926ee2a1c4ab35771 SHA1 f4895e02d320e32e2a2c6fa15b514e6a39f5c298 SHA256 7951d654f91e84a3282ccd877738b66c19956bc0818aa942a0054e3fb483e5dd +DIST mozilla-thunderbird-2.0.0.19-it.xpi 152553 RMD160 5b78cb1fc8e6d17b42191983e635d49e40be806f SHA1 3a834fd9b7c57bb74e81d45cb299430e37b2fd0c SHA256 94eb23efd80b85b973e5c108d55c6a5b084ce4727670d6ee52ee34040e69946d +DIST mozilla-thunderbird-2.0.0.19-ja.xpi 199411 RMD160 9486dc4ec6aee8288d4473aea1ddab4c2ac8900f SHA1 7a122742afd5083968848e25a3354eedbab25abc SHA256 b7871251fd995480462b85612cdf7a3b5f920c7aa2a8875420d3b99a5880cd28 +DIST mozilla-thunderbird-2.0.0.19-ko.xpi 170143 RMD160 d0fbf2562ed44536f81eff3e78331534514bd778 SHA1 12039548b1e027ab8782fbf375fdf0233c99618b SHA256 9368ef94ada3f8fa5514e35a882e85f4becd6fe774674f32a06c0c77d22fc7a2 +DIST mozilla-thunderbird-2.0.0.19-lt.xpi 189457 RMD160 87d8fe1c446c9f47ab744d33e93b7ad668cb31fe SHA1 894b0b5e44244a2603a49298774139701a5ab5f8 SHA256 fab200180329c233ea724d4ec1a13f26a7b968edac84a184ea3ca407d017f3f0 +DIST mozilla-thunderbird-2.0.0.19-mk.xpi 196440 RMD160 31b46d36d697f04a45f04428c5f4e98d2753c2ab SHA1 c5d81e37aa0b3d6758dc84dba478292d64011880 SHA256 fd7a8cd14f643d02e54e891d5616bb8ff54178c1ae7a960c358285d39cab9d9f +DIST mozilla-thunderbird-2.0.0.19-nb-NO.xpi 183238 RMD160 e52f54f5205bad6ed7ce56954dd19c131b800319 SHA1 b3188f4b8c5261d1b6e72d1a0fb12ea2874e495a SHA256 1628f5aa272fb564df2bedce4dee3c5fe2770956d5245305ad5f3a91b067f5ee +DIST mozilla-thunderbird-2.0.0.19-nl.xpi 184153 RMD160 bd3a7b619901ea805c6cde0d1c56e5ca70c80492 SHA1 68bf7a43f2358c4aac60c7afa4d83c344bcfe9be SHA256 94e6e11f9fd77a03fe0c6f841bd48e5300757fdb382a23ff29c76b64664789c6 +DIST mozilla-thunderbird-2.0.0.19-nn-NO.xpi 184117 RMD160 b0478f090e09337c817dc4e68cfa881a502f2986 SHA1 c718800124a5de0bd7cec43db2baac6fa392f919 SHA256 8d6298816eb42a1587547093098a2f104f987501a69241913904b16e08c5d1b0 +DIST mozilla-thunderbird-2.0.0.19-pa-IN.xpi 205022 RMD160 061fc51087fc368f771a8aadad7b95686e16b28e SHA1 950abf2d0bf1fb9d3ce75b24bb01909f51eb3f92 SHA256 6cd555cbdac48440bf7f6ad240d9221c14cce3621e98199411db703762e34a2c +DIST mozilla-thunderbird-2.0.0.19-pl.xpi 177417 RMD160 7f64695155f776a755ff078629681e41e0eded83 SHA1 590336c95460da18cfcdcf3ab59374f3b7d36789 SHA256 7dc2511b3c5acfeb0d7057dc2fbf482eb8145cacf6902b95ac32cfb5bf225fa1 +DIST mozilla-thunderbird-2.0.0.19-pt-BR.xpi 183071 RMD160 6e0911759978489f1bc0ecaafcdcdf7ff987b540 SHA1 caca2003622fe3ab9ef5e4f6e98547d61316d9a3 SHA256 310bdd579c4df7bdb44362af9c466b1e4d61a28bc2dcfae89fc3d2d516c630d9 +DIST mozilla-thunderbird-2.0.0.19-pt-PT.xpi 183924 RMD160 2e89a3f2f3c79ebee299963b2c6ac1f1723def11 SHA1 23677c0ca945b467b98068d3485e87d80b558cf4 SHA256 8ac81f57a420921c68f07e056878fd9944e92cbf22189b42a2e8d0fff1ac7f30 +DIST mozilla-thunderbird-2.0.0.19-ru.xpi 174229 RMD160 ab17396865a5e9ac11fbf52e3f55f652a5912153 SHA1 1d20c443ca9c27ad0f37155ac743eef40eb4f77c SHA256 6b4c37036ca685ea9b58365ab5aa35c1bb9b82cd2105bc8422b3091eaaa09ed1 +DIST mozilla-thunderbird-2.0.0.19-sk.xpi 191718 RMD160 661afb25524b11401ab40009d03c5d2f2e6b01a5 SHA1 0fe446289b5c72e651ee23696e8b9fc8746c8cd7 SHA256 9a0eeaa9ebc3cd01e3330d9b98ed4180db1cd630afd1e61c71d756a05c9be4e5 +DIST mozilla-thunderbird-2.0.0.19-sl.xpi 188025 RMD160 c7c96bd18bdf983566408b9c2bd85aee60a135cd SHA1 219f2c331ea61e758b4421bebb69356bce113306 SHA256 1b81e3828a791c65b9ef1b2a07b250b40ffada3f492424ddf705cd2e1b0760c1 +DIST mozilla-thunderbird-2.0.0.19-sv-SE.xpi 191928 RMD160 a361dd378dbd03bdfdfdf5506fbea25608053024 SHA1 5c064f9fdf040ff8599bca6ec34e49867733110f SHA256 10dc69029b7395c22b95adbff44d63968a81761088a8632737395c0ab48788d7 +DIST mozilla-thunderbird-2.0.0.19-tr.xpi 157710 RMD160 6ce1858be60102de5c917826928af383fe75aea8 SHA1 552289e3825f814dd220b5b4b15951279b09b91e SHA256 415c8c491e65b528cdfbcc0a358c1cbf889e6fa04a5529012c610a67bb8f21c6 +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 thunderbird-1.5.0.14-source.tar.bz2 36183747 RMD160 28f16d7b9b86ad94f7deafc324266429e3708ac8 SHA1 e952ae6724cdd5558c73c9ada842157b155b0708 SHA256 e5cab7b16a7d47a4e9fe2f9361c69fe6dd0e94fda3ec70d27da1c65e1bf45d04 DIST thunderbird-2.0.0.18-source.tar.bz2 40455125 RMD160 093b2328a000f18494fd552cce58fa2ec55085a1 SHA1 4d05300280763e34c7a115835523ed2805f7733c SHA256 f18f97833661b260d819161080329f857e489b3c934f4648012b8728b7f3d597 +DIST thunderbird-2.0.0.19-source.tar.bz2 40452690 RMD160 7139fb27b1a236564ee6470c4be13e93b6ec9217 SHA1 4d2e0f8b405bb0ceab20a9f570ce91cf4640f456 SHA256 9a23d3a93c7646867227558727cf564eaba70da87e21e097eb46d951ed839f25 EBUILD mozilla-thunderbird-1.5.0.14.ebuild 8126 RMD160 75af31f9e1e77946253d8510e58de626c682c8cd SHA1 c7ba28ef58e8eba04826cdd0b0797543e4b85c84 SHA256 846fd0658e0cf6ded21f83f241497c68638114678ff69a90d8f394d69bcd8103 EBUILD mozilla-thunderbird-2.0.0.18.ebuild 8293 RMD160 65b097ee5b23175c7dc874f899ff3f4e5f300f5b SHA1 007978998615cd5a4ff83978cafbdf35514f0cfa SHA256 88b519fb1086871dc2b93d49e6f3bd0b8cf0bb3c75eb3e2fde39b208ed439a6e -MISC ChangeLog 42212 RMD160 f0cfad2b60ba484d89720143cc5d3fbc5725e366 SHA1 28404f73552cf085b183c234ad067125830deebd SHA256 90edfba67e9261538eca3563d15d6095a87da92c3847c02eb01c035cc52cf25b +EBUILD mozilla-thunderbird-2.0.0.19.ebuild 8301 RMD160 fcdeb2e16b746958f58ba80fec0c2f52d57d57b4 SHA1 cc8ab656c24b3178e4b2b7907c39113a06ac5e3a SHA256 6cd7fd176824e09aad9ce0277a8aaf17015e2bd40f6c5a0a05b0dfa50c9fb482 +MISC ChangeLog 42363 RMD160 ea736de1981944e051296cd281106e47e5d15846 SHA1 b96e4e49e50256194fe43a5a87c672e6e2b15a0b SHA256 33700666878b3f1dd83d154a9d8da49346b3b0459827eb4d3110057cd67c7f7e MISC metadata.xml 399 RMD160 c2bc8ef91c29025087629e46b575b607d854988d SHA1 59fca50081eb53b9f6167e95fa89f1933bb4d721 SHA256 d9788b19b766806196a3a1546c1ff2af8eb94b0c94917357979215ba161ca8df diff --git a/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.19.ebuild b/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.19.ebuild new file mode 100644 index 000000000000..6a0d5aaf8566 --- /dev/null +++ b/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.19.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.19.ebuild,v 1.1 2008/12/31 15:26:14 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-r3 ) + 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 +} |