diff options
author | Raúl Porcel <armin76@gentoo.org> | 2007-05-31 13:49:27 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2007-05-31 13:49:27 +0000 |
commit | 03402ff6815312e8f415e9926162d1ad9dc9794e (patch) | |
tree | 91fd868d1d6e35370fdbee6b718383eefbc43d24 /mail-client | |
parent | alpha stable wrt #164922 (diff) | |
download | gentoo-2-03402ff6815312e8f415e9926162d1ad9dc9794e.tar.gz gentoo-2-03402ff6815312e8f415e9926162d1ad9dc9794e.tar.bz2 gentoo-2-03402ff6815312e8f415e9926162d1ad9dc9794e.zip |
Version bump, security bug #180436
(Portage version: 2.1.2.7)
Diffstat (limited to 'mail-client')
3 files changed, 371 insertions, 1 deletions
diff --git a/mail-client/mozilla-thunderbird/ChangeLog b/mail-client/mozilla-thunderbird/ChangeLog index cf7436fa7455..8f5161f0084a 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-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.193 2007/05/20 14:06:03 josejx Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.194 2007/05/31 13:49:27 armin76 Exp $ + +*mozilla-thunderbird-1.5.0.12 (31 May 2007) + + 31 May 2007; Raúl Porcel <armin76@gentoo.org> + +mozilla-thunderbird-1.5.0.12.ebuild: + Version bump, security bug #180436 20 May 2007; Joseph Jezak <josejx@gentoo.org> mozilla-thunderbird-2.0.0.0.ebuild: diff --git a/mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-1.5.0.12 b/mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-1.5.0.12 new file mode 100644 index 000000000000..036946823046 --- /dev/null +++ b/mail-client/mozilla-thunderbird/files/digest-mozilla-thunderbird-1.5.0.12 @@ -0,0 +1,102 @@ +MD5 ea829250fd83f61fb9d5c19643c20ee2 mozilla-thunderbird-1.5.0.10-patches-0.1.tar.bz2 30777 +RMD160 08da7a7dadfc731e5e18d86ca9aa2679eb14fa1d mozilla-thunderbird-1.5.0.10-patches-0.1.tar.bz2 30777 +SHA256 7bf7d7abe757cc1dc0ce67fe083c6663fedbcc6e6bdd65cc09ce543ac8e54b9c mozilla-thunderbird-1.5.0.10-patches-0.1.tar.bz2 30777 +MD5 2443b4eaac05566bb41ad4bc2a2e6fc5 mozilla-thunderbird-1.5.0.12-bg.xpi 220783 +RMD160 af0729a6bf8bc76651268888eb14537489748a03 mozilla-thunderbird-1.5.0.12-bg.xpi 220783 +SHA256 79bb97c3011b2a47be2533948f7cc2ed47d3ba6cbf65a85c2e8c12f72fcf9be0 mozilla-thunderbird-1.5.0.12-bg.xpi 220783 +MD5 5cb3a36e1d9dfc5203e3e13fed5280aa mozilla-thunderbird-1.5.0.12-ca.xpi 183259 +RMD160 c17ce5d039e1ec5e3488abcff78094ec4316b011 mozilla-thunderbird-1.5.0.12-ca.xpi 183259 +SHA256 0434041fe9f11a74d1940f0ec0ed7ed3600e1ec8a87d2fb2d43099c79015fa33 mozilla-thunderbird-1.5.0.12-ca.xpi 183259 +MD5 755d76659e0e40bfe13e232a5c9083f7 mozilla-thunderbird-1.5.0.12-cs.xpi 191481 +RMD160 f1fa9f89843b8b9d1ef1d0e7e8a27de50ba0f11c mozilla-thunderbird-1.5.0.12-cs.xpi 191481 +SHA256 4bbb2af725a2d36f91d32b0a096f3d32e5347dd5bcd1b7fe22eb416229dfe0ae mozilla-thunderbird-1.5.0.12-cs.xpi 191481 +MD5 ba9bf6266e3544dcb4a8fb5f5a72b41e mozilla-thunderbird-1.5.0.12-da.xpi 155066 +RMD160 c711607bdd5c6e68e4227494228be7459689b4be mozilla-thunderbird-1.5.0.12-da.xpi 155066 +SHA256 5c3c10eb7ecb2dd289d60ae7d5521f340b716e80c074cd621ee68d9461470a27 mozilla-thunderbird-1.5.0.12-da.xpi 155066 +MD5 1eb42d47614156f0304e35f8c7e50cd2 mozilla-thunderbird-1.5.0.12-de.xpi 154500 +RMD160 9f61f89f5b70eba77027a756d2783c8ff4678749 mozilla-thunderbird-1.5.0.12-de.xpi 154500 +SHA256 9c368eaeb41ae49092e361e738ca7d56d7eec5d72c7bf17eaeec89f1bdef2e31 mozilla-thunderbird-1.5.0.12-de.xpi 154500 +MD5 5f5ca3af6ab5a919c47daf140ddfc63f mozilla-thunderbird-1.5.0.12-el.xpi 180139 +RMD160 799e51cd6eb96e8ef5060ed8d9aca80ad900c81e mozilla-thunderbird-1.5.0.12-el.xpi 180139 +SHA256 f9a52db0f1a5b8d8fb2238476072412036526b2c4f3b81da33e4549add44c2bb mozilla-thunderbird-1.5.0.12-el.xpi 180139 +MD5 4ad688b5bd81aa52d97e423107f6c27d mozilla-thunderbird-1.5.0.12-en-GB.xpi 172341 +RMD160 25d22da7c63a31ca9e614590da083246385dba13 mozilla-thunderbird-1.5.0.12-en-GB.xpi 172341 +SHA256 e3f405ba75f9cc8aac1abfdc19553e2feaabc0ca25a50b61db91109d1bb544f6 mozilla-thunderbird-1.5.0.12-en-GB.xpi 172341 +MD5 59f13e7bf8a2852a0d68d9e31dfa9362 mozilla-thunderbird-1.5.0.12-es-AR.xpi 183644 +RMD160 6bacc69dc1042d0f282f985c29cbcbc428a2382e mozilla-thunderbird-1.5.0.12-es-AR.xpi 183644 +SHA256 0f21df047a30f01141aeed9772a25f1443095438fdf1c82b43d6acd8402dfd81 mozilla-thunderbird-1.5.0.12-es-AR.xpi 183644 +MD5 047147550e8177035940e8872b1eca36 mozilla-thunderbird-1.5.0.12-es-ES.xpi 145447 +RMD160 baf88b358a7dbd43c1e68e8b4d16afd1da2cc844 mozilla-thunderbird-1.5.0.12-es-ES.xpi 145447 +SHA256 1193430faf5b741df25ac229dbc0d804d68adb1d120f6c9a1aabb241b5483c9b mozilla-thunderbird-1.5.0.12-es-ES.xpi 145447 +MD5 7c5c750d121625eca20bfe053ebf923b mozilla-thunderbird-1.5.0.12-eu.xpi 180845 +RMD160 f688f6815a6279275c3809292522f47e7aa394a4 mozilla-thunderbird-1.5.0.12-eu.xpi 180845 +SHA256 000f3731c74e90f759cc7a1ef96f19b193330bb7915ce196ea50c9c170c78e4d mozilla-thunderbird-1.5.0.12-eu.xpi 180845 +MD5 7ecebcc777aeb4e0b374c607e0763ae2 mozilla-thunderbird-1.5.0.12-fi.xpi 186704 +RMD160 a5d7cae5990db87819b6d5eb9763d491d1741fb0 mozilla-thunderbird-1.5.0.12-fi.xpi 186704 +SHA256 29385486f7ef283e751f5b5c87ceb75357a1426c84cdefcf90b3330b999674ea mozilla-thunderbird-1.5.0.12-fi.xpi 186704 +MD5 e9bd8ceb7211e217c9b9928b24ce4bfb mozilla-thunderbird-1.5.0.12-fr.xpi 190931 +RMD160 9e2531c4d4197e8bb15e2b88ea098e1c9b32fd0e mozilla-thunderbird-1.5.0.12-fr.xpi 190931 +SHA256 822524326d89c964059363b9e0d987c22e4d377353e882abf8e78c4eaa8b5dd3 mozilla-thunderbird-1.5.0.12-fr.xpi 190931 +MD5 3d2b82d6ec969a3856a270a9b77c3c7f mozilla-thunderbird-1.5.0.12-ga-IE.xpi 190228 +RMD160 fa3cad3ef23bf0c803deda7d99b50c1f6a3a5136 mozilla-thunderbird-1.5.0.12-ga-IE.xpi 190228 +SHA256 8da473c02cf28a5195055e748d397cc450c30044ce02f2bb4414ce449518b830 mozilla-thunderbird-1.5.0.12-ga-IE.xpi 190228 +MD5 8b2b3195bd7374f93aa4c837415b4141 mozilla-thunderbird-1.5.0.12-gu-IN.xpi 212049 +RMD160 8c1f5c3bf02ce79627cc0394d00609346ac5f2f9 mozilla-thunderbird-1.5.0.12-gu-IN.xpi 212049 +SHA256 1eaa1d29ae21cc59a5d26af7cba5b33456275ea88387e3555ef579a86c739105 mozilla-thunderbird-1.5.0.12-gu-IN.xpi 212049 +MD5 06e55942eed03e60449f9f4d9060f21e mozilla-thunderbird-1.5.0.12-he.xpi 164780 +RMD160 81b0973078dc7fa5377e1fa67f40f38423915350 mozilla-thunderbird-1.5.0.12-he.xpi 164780 +SHA256 8cf32df803afc713d2d7a5381ee812d5dce16930279ec49f83b2b5232e8325be mozilla-thunderbird-1.5.0.12-he.xpi 164780 +MD5 bcb847cf3a43f8fe9e5b66cce38b8803 mozilla-thunderbird-1.5.0.12-hu.xpi 197664 +RMD160 f255c0d19b4d3a768149a80ce062f55d121c401e mozilla-thunderbird-1.5.0.12-hu.xpi 197664 +SHA256 c951dd3ca0e7794c03110ae4bad3ebbce40a00cc1bf1b7460f71b8ae24a16e41 mozilla-thunderbird-1.5.0.12-hu.xpi 197664 +MD5 71f1b2541a8abef8008adfc34a0bda74 mozilla-thunderbird-1.5.0.12-it.xpi 144839 +RMD160 399e905d927da71eb8814c5ef07ec45cc5ae8b08 mozilla-thunderbird-1.5.0.12-it.xpi 144839 +SHA256 58c6cb2f3820637ec3ebba72a620a49570f4e4c4502bfe2df86eeb5a209a8bb1 mozilla-thunderbird-1.5.0.12-it.xpi 144839 +MD5 0ae37ef4c027e4e7f785291759ffaeca mozilla-thunderbird-1.5.0.12-ja.xpi 216584 +RMD160 ca69a315c88786a8223844ddefe755bc338e5227 mozilla-thunderbird-1.5.0.12-ja.xpi 216584 +SHA256 3e71dafdf90d474187b58fa172f8074f6bed4975075fb9eb7c259a2f4ca697d6 mozilla-thunderbird-1.5.0.12-ja.xpi 216584 +MD5 4d7f87d2a22c90de2192415742e84cb5 mozilla-thunderbird-1.5.0.12-ko.xpi 192248 +RMD160 90f692839ced57085dcea6534847303b2fe0b181 mozilla-thunderbird-1.5.0.12-ko.xpi 192248 +SHA256 1221a4458360f7e6a3250cf43ff92e15c37dbc036fd7cd6cb91d5417c04b842f mozilla-thunderbird-1.5.0.12-ko.xpi 192248 +MD5 bb8789c9fe262988664c350b7641fe35 mozilla-thunderbird-1.5.0.12-lt.xpi 193867 +RMD160 c57c9183f39da25e421583e8d14a53e5581eb546 mozilla-thunderbird-1.5.0.12-lt.xpi 193867 +SHA256 83f05e3c274bb20f3eb78629b4eb496d3b61d2bfc8054bae88bdaa840bd16c6d mozilla-thunderbird-1.5.0.12-lt.xpi 193867 +MD5 cd619f2d7f55b5ba70380ee3d2c7ed7d mozilla-thunderbird-1.5.0.12-mk.xpi 219450 +RMD160 6297d0fb330da4ce71233476e072283a0f80d6b4 mozilla-thunderbird-1.5.0.12-mk.xpi 219450 +SHA256 89be520af8d54cea9a0ca54ef254cea890c359c7166bfe9ecde3aa910146dfc8 mozilla-thunderbird-1.5.0.12-mk.xpi 219450 +MD5 964cf1fb03531902f4b4bc4fd114bd6b mozilla-thunderbird-1.5.0.12-nb-NO.xpi 182579 +RMD160 cc79bac1767b7542aa5590b6619ebbf3bd2c8113 mozilla-thunderbird-1.5.0.12-nb-NO.xpi 182579 +SHA256 c8d686563449c228a499c06f2b2aade081574deb0325e3a8ec0d2e5286816b0b mozilla-thunderbird-1.5.0.12-nb-NO.xpi 182579 +MD5 ae61d0ca471ebc12b54126e0c49c4a8d mozilla-thunderbird-1.5.0.12-nl.xpi 182552 +RMD160 0f5be6d0c8e5a2dd2cf4bb48da7d5f4e50d8a4c9 mozilla-thunderbird-1.5.0.12-nl.xpi 182552 +SHA256 9ba76e099c62d7f9b26eae76cb6c8e6bf2be72f8df2f7a8e545306327345086a mozilla-thunderbird-1.5.0.12-nl.xpi 182552 +MD5 f1b0f3fb8dca58485358cd6cd0c74861 mozilla-thunderbird-1.5.0.12-pa-IN.xpi 201904 +RMD160 56e859ab8268b0b0b6726a523108ab5bfa98f36a mozilla-thunderbird-1.5.0.12-pa-IN.xpi 201904 +SHA256 7af10c2c80fe7e441f06ac6bb8756f958974990f749eef12d0cc4852196130d1 mozilla-thunderbird-1.5.0.12-pa-IN.xpi 201904 +MD5 995da3e3cf078122d92c8ef3fba7dbcf mozilla-thunderbird-1.5.0.12-pl.xpi 180258 +RMD160 55a6975c3fa6e07a8f818e54c66917f11f327efb mozilla-thunderbird-1.5.0.12-pl.xpi 180258 +SHA256 bdce86c63b7f7f272ff5ee439d49c8f054431d7a98b515147c7f656d0e6b385f mozilla-thunderbird-1.5.0.12-pl.xpi 180258 +MD5 96a5247cc88c2fa4b40dd3a443c7f817 mozilla-thunderbird-1.5.0.12-pt-BR.xpi 184497 +RMD160 61c3f962dde3f24d762f38f59d4d972b7a4e309d mozilla-thunderbird-1.5.0.12-pt-BR.xpi 184497 +SHA256 28032a6f19b86e8df49f4224880b87d6fd977f6776c7f36da09b0cee64fdb253 mozilla-thunderbird-1.5.0.12-pt-BR.xpi 184497 +MD5 e44b8d9dec4075413479b92794e8e8cc mozilla-thunderbird-1.5.0.12-ru.xpi 190599 +RMD160 04c89635964d58b7905cb3dab273670e0d266663 mozilla-thunderbird-1.5.0.12-ru.xpi 190599 +SHA256 e8fed53714de334cf8ec1fd92e3e72f98117fb3bee926a432b8de45ddfe47687 mozilla-thunderbird-1.5.0.12-ru.xpi 190599 +MD5 ba664bf3a3a41d68cb17c2888ffe8ae7 mozilla-thunderbird-1.5.0.12-sk.xpi 193834 +RMD160 e804293debe4e1a5f1bc9f9a43a1fffd3fd53dbe mozilla-thunderbird-1.5.0.12-sk.xpi 193834 +SHA256 5b12ac6ecdb8901d388702304ee64a48021449a91ea45c79a75104b8351466d7 mozilla-thunderbird-1.5.0.12-sk.xpi 193834 +MD5 9b094467367383774d0669be86b387a7 mozilla-thunderbird-1.5.0.12-sl.xpi 187719 +RMD160 298c07ba162f0ae2739b62775d34816dbba76002 mozilla-thunderbird-1.5.0.12-sl.xpi 187719 +SHA256 ada89e752f384d163cfb8d54470020c5b79d96a4d573a4d5b9ec7f85ac6706e2 mozilla-thunderbird-1.5.0.12-sl.xpi 187719 +MD5 a0ebed001cbc3ddc03f2140901430fcc mozilla-thunderbird-1.5.0.12-sv-SE.xpi 191057 +RMD160 4302fe2f75478f7a642593267d28493c22b3d6cd mozilla-thunderbird-1.5.0.12-sv-SE.xpi 191057 +SHA256 77f59f0707ee803640379c692e9efb49bb7a6f77e76915ff31261299d07b29dc mozilla-thunderbird-1.5.0.12-sv-SE.xpi 191057 +MD5 1dfe02453d5ecfb501f7239320a43e38 mozilla-thunderbird-1.5.0.12-tr.xpi 155700 +RMD160 fb33395fcd41e16f050daabdf28460df19da8c72 mozilla-thunderbird-1.5.0.12-tr.xpi 155700 +SHA256 4e5e369b57d211e06d6728242a9b615c3d02e4f960a783ea4d67cd70851e0dc9 mozilla-thunderbird-1.5.0.12-tr.xpi 155700 +MD5 5201da8b6a685339050f44b6b756b69f mozilla-thunderbird-1.5.0.12-zh-CN.xpi 155477 +RMD160 320df5db87519c14d18c974ab1be3cc54cbf7972 mozilla-thunderbird-1.5.0.12-zh-CN.xpi 155477 +SHA256 5495d45256af19eccd7afa06bbe1e3728b8cb5a233711fa187d28085425bf8bb mozilla-thunderbird-1.5.0.12-zh-CN.xpi 155477 +MD5 4634ec6e0e1014602010763473fed89a thunderbird-1.5.0.12-source.tar.bz2 36172395 +RMD160 0632eb7764d6c73271adc05387338c0770d82fba thunderbird-1.5.0.12-source.tar.bz2 36172395 +SHA256 7a347dadb3e84876cd99481ebb06af2e12d314683b432d6449c8d39aa3904a83 thunderbird-1.5.0.12-source.tar.bz2 36172395 diff --git a/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.12.ebuild b/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.12.ebuild new file mode 100644 index 000000000000..940028981d00 --- /dev/null +++ b/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.12.ebuild @@ -0,0 +1,262 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.12.ebuild,v 1.1 2007/05/31 13:49:27 armin76 Exp $ + +WANT_AUTOCONF="2.1" + +unset ALLOWED_FLAGS # stupid extra-functions.sh ... bug 49179 +inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib autotools mozextension + +LANGS="bg ca cs da de el en-GB es-AR es-ES eu fi fr ga-IE gu-IN he hu it ja ko lt mk nb-NO nl pa-IN pl pt-BR ru sk sl sv-SE tr zh-CN" +SHORTLANGS="es-ES ga-IE nb-NO sv-SE" +PATCH="${PN}-1.5.0.10-patches-0.1" + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="http://www.mozilla.com/thunderbird/" +SRC_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${PV}/source/thunderbird-${PV}-source.tar.bz2 + mirror://gentoo/${PATCH}.tar.bz2" + +KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd" +SLOT="0" +LICENSE="MPL-1.1 GPL-2 LGPL-2.1" +IUSE="ldap crypt" + +for X in ${LANGS} ; do + SRC_URI="${SRC_URI} linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )" + IUSE="${IUSE} linguas_${X/-/_}" +done + +for X in ${SHORTLANGS} ; do + SRC_URI="${SRC_URI} linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )" + IUSE="${IUSE} linguas_${X%%-*}" +done + +RDEPEND=">=www-client/mozilla-launcher-1.39 + >=dev-libs/nss-3.10 + >=dev-libs/nspr-4.6.1" +PDEPEND="crypt? ( <x11-plugins/enigmail-0.95.0 )" + +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 BUILD_OFFICIAL=1 +export MOZILLA_OFFICIAL=1 +export MOZ_CO_PROJECT=mail + +linguas() { + linguas= + local LANG + for LANG in ${LINGUAS}; do + if hasq ${LANG} en en_US; then + hasq en ${linguas} || \ + linguas="${linguas:+"${linguas} "}en" + continue + elif hasq ${LANG} ${LANGS//-/_}; then + hasq ${LANG//_/-} ${linguas} || \ + linguas="${linguas:+"${linguas} "}${LANG//_/-}" + continue + else + local SLANG + for SLANG in ${SHORTLANGS}; do + if [[ ${LANG} == ${SLANG%%-*} ]]; then + hasq ${SLANG} ${linguas} || \ + linguas="${linguas:+"${linguas} "}${SLANG}" + continue 2 + fi + done + fi + ewarn "Sorry, but mozilla-thunderbird 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 + + use moznopango && warn_mozilla_launcher_stub +} + +src_unpack() { + unpack ${A} + + linguas + for X in ${linguas}; do + [[ ${X} != en ]] && xpi_unpack ${P}-${X}.xpi + done + + cd ${S} || die "cd failed" + # Apply our patches + EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + + if use alpha || use ia64; then + EPATCH_EXCLUDE="002_firefox-1.5-visibility-check.patch 009_firefox-1.5-no-textrels.patch" + fi + + epatch ${WORKDIR}/patch + + # Fix a compilation issue using the 32-bit userland with 64-bit kernel on + # PowerPC, because with that configuration, it detects a ppc64 system. + # -- hansmi, 2005-11-13 + if use ppc && [[ "${PROFILE_ARCH}" == ppc64 ]]; then + sed -i -e "s#OS_TEST=\`uname -m\`\$#OS_TEST=${ARCH}#" \ + ${S}/configure + sed -i -e "s#OS_TEST :=.*uname -m.*\$#OS_TEST:=${ARCH}#" \ + ${S}/security/coreconf/arch.mk + fi + + eautoreconf || die "failed running autoreconf" +} + +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 '' --enable-extensions=default + 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 + mozconfig_annotate '' --enable-official-branding + + if use alpha || use ia64; then + echo "ac_cv_visibility_pragma=no" >> "${S}/.mozconfig" + fi + + # Finalize and report settings + mozconfig_final + + # hardened GCC uses -fstack-protector-all by default, which breaks us + gcc-specs-ssp && append-flags -fno-stack-protector-all + replace-flags -fstack-protector-all -fstack-protector + + #################################### + # + # Configure and build + # + #################################### + append-flags -freorder-blocks -fno-reorder-functions + + # Export CPU_ARCH_TEST as it is not exported by default. + case $(tc-arch) in + amd64) [[ ${ABI} == "x86" ]] && CPU_ARCH_TEST="x86" || CPU_ARCH_TEST="x86_64" ;; + ia64) CPU_ARCH_TEST="ia64" ;; + ppc) CPU_ARCH_TEST="ppc" ;; + *) CPU_ARCH_TEST=$(tc-arch) ;; + esac + + export CPU_ARCH_TEST + + 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 -j1 || die +} + +pkg_preinst() { + declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} + + echo "" + elog "Removing old installs though 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} + echo "" +} + +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 "Copy of files 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} + + # Install icon and .desktop for menu entry + insinto /usr/share/pixmaps + doins ${FILESDIR}/icon/thunderbird-icon.png + + # Fix bug 54179: Install .desktop file into /usr/share/applications + # instead of /usr/share/gnome/apps/Internet (18 Jun 2004 agriffis) + insinto /usr/share/applications + doins ${FILESDIR}/icon/${PN}.desktop + + #################################### + # + # Install files necessary for applications to build against firefox + # + #################################### + + ewarn "Installing includes and idl files..." + dodir ${MOZILLA_FIVE_HOME}/idl ${MOZILLA_FIVE_HOME}/include + cd ${S}/dist + cp -LfR include/* ${D}${MOZILLA_FIVE_HOME}/include || die "failed to copy" + cp -LfR idl/* ${D}${MOZILLA_FIVE_HOME}/idl || die "failed to copy" + + # Dirty hack to get some applications using this header running + dosym ${MOZILLA_FIVE_HOME}/include/necko/nsIURI.h \ + /usr/$(get_libdir)/${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 mozilla-thunderbird." +} + +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 +}
\ No newline at end of file |