From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SfzHG-0007SU-5e for garchives@archives.gentoo.org; Sat, 16 Jun 2012 20:07:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 404A021C026; Sat, 16 Jun 2012 20:07:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EEF9A21C026 for ; Sat, 16 Jun 2012 20:07:14 +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 35DBD1B4021 for ; Sat, 16 Jun 2012 20:07:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id F39ADE5431 for ; Sat, 16 Jun 2012 20:07:12 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1339877196.c46bce674e1dc4fbf7754dbf1d21e38c28e249f9.polynomial-c@gentoo> Subject: [gentoo-commits] proj/mozilla:master commit in: www-client/seamonkey/ X-VCS-Repository: proj/mozilla X-VCS-Files: www-client/seamonkey/Manifest www-client/seamonkey/seamonkey-2.10.1_pre2.ebuild X-VCS-Directories: www-client/seamonkey/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: c46bce674e1dc4fbf7754dbf1d21e38c28e249f9 X-VCS-Branch: master Date: Sat, 16 Jun 2012 20:07:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: d1d11c97-b6d3-4567-a69b-f2eb31a5f1d2 X-Archives-Hash: 033998ee803be4d3f53a73160c72528e commit: c46bce674e1dc4fbf7754dbf1d21e38c28e249f9 Author: Lars Wendler gentoo org> AuthorDate: Sat Jun 16 20:06:36 2012 +0000 Commit: Lars Wendler gentoo org> CommitDate: Sat Jun 16 20:06:36 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/mozilla.git;a= =3Dcommit;h=3Dc46bce67 seamonkey: And another release candidate (2.10.1). --- www-client/seamonkey/Manifest | 25 ++ www-client/seamonkey/seamonkey-2.10.1_pre2.ebuild | 323 +++++++++++++++= ++++++ 2 files changed, 348 insertions(+), 0 deletions(-) diff --git a/www-client/seamonkey/Manifest b/www-client/seamonkey/Manifes= t index 1b31427..09b9bfb 100644 --- a/www-client/seamonkey/Manifest +++ b/www-client/seamonkey/Manifest @@ -27,6 +27,30 @@ DIST seamonkey-2.10-sk.xpi 847444 RMD160 8a58ad97246ba= ee4ff3130cc5f44d351d727a76 DIST seamonkey-2.10-sv-SE.xpi 874158 RMD160 927e11e19934ff2759ac90424ddb= 6b304dcf48cc SHA1 b992013e9813f805c3a309048b9651aa3b94f85e SHA256 a1d9fcf= 40ea006890bf06d54efec6f204196705c142e34b72c74d37e9ce1a611 DIST seamonkey-2.10-tr.xpi 814236 RMD160 cfaa30a1d09deaeef37b60293a37698= d862ad3be SHA1 709ba4f82666d357144b84341d360c77ffcc7480 SHA256 6793eede9d= aa1501308e82ca78ec524840e65244947406e4720d4bc965a133c6 DIST seamonkey-2.10-zh-CN.xpi 842335 RMD160 816ed45e5c9fccd1dd3c20b48e3e= 5879b4360130 SHA1 106d8945211219665e8432b2b52f00a205db3ae3 SHA256 db557fd= efdcbfef85aab6fce6e59d3a27d45f851de5b665c20815f65c49b0907 +DIST seamonkey-2.10.1-be.xpi 801133 RMD160 b1df2983e3facbcea9b138a8207b1= 85659b02279 SHA1 5a413cfd67f5c2f8f7dd662f0b3f092ea091de7c SHA256 ec35ba63= 0431308a1a99ad30e51541fa8cd2e84791cdfecfd7b08c46ca3c2610 +DIST seamonkey-2.10.1-ca.xpi 818495 RMD160 49ad1d51e32cd96d8836c34a7ca47= 6a6e6d59305 SHA1 222ff730c6939ae71cd91c56ca0334578d0c4eab SHA256 c9477883= 250d7c68207621081c165592a43ade94d8d1372fb7a9d6fc6a81200c +DIST seamonkey-2.10.1-cs.xpi 822293 RMD160 6cee9b03e5d272b2c99ea5a66ceb7= c78c0c91e59 SHA1 b4cebb106bc4cdf83c5c5e1e1acf055ed1555aff SHA256 e58bc1fb= ff312a5d0a2726d606a88afeb21ec9c5f13c9713257f2b6eb7d6ed41 +DIST seamonkey-2.10.1-de.xpi 863213 RMD160 be18f15c5d8a12592d51bd607194d= aaea7330d5e SHA1 1d2c7e4a959029bf2d817d8883d02d887c25258e SHA256 298c8923= bd26c3bc42433d3bec5f0c9f1dabcba785892f2c569e7e1fb4f0d327 +DIST seamonkey-2.10.1-en-GB.xpi 793093 RMD160 fdad7eeded0fb6fec1a6724856= 68d47fb75579fe SHA1 fe3821f196290e3f982a509078c119afb2be646b SHA256 df558= 5680bcf3c02dbb5c41723368b5b50131a236934785db8aa91fe32663c4f +DIST seamonkey-2.10.1-es-AR.xpi 863154 RMD160 d66c13ae9d47a8756537a97ab1= 0ea7f5a7e96185 SHA1 91765a338353fd691f546a3d4646b93ada9297ca SHA256 df646= 6db9688fa8155ce441f7553778c210e984e79814c1eed18e349d46a8eda +DIST seamonkey-2.10.1-es-ES.xpi 792277 RMD160 08d21ab0eb6690b5ef66e333a8= 2b3fdfc32db91b SHA1 d1c704b0b26ff679366f4d96e80d56b376298062 SHA256 5e5be= 370bcb2b87b64e02195b65e2cb4b5ac237c3805c73f4d638e67686a43e8 +DIST seamonkey-2.10.1-fi.xpi 813422 RMD160 c0b3012a5317eafa027b20fa7f4f6= 0b2b60362ae SHA1 28f013fee96ff648a20c704761580c75d5c08412 SHA256 e150712b= 87d8f7567606d8cb2e331419c45bd6cffdcaaf16068332f597859ae7 +DIST seamonkey-2.10.1-fr.xpi 818265 RMD160 651b3dcd1f1edd046121e91a3a045= c27d5410b13 SHA1 4fdfc49bfec66f2cd41d04d61b5a3698ff6999df SHA256 482cd147= 4820980daf0dfc895c56f0e1993bcf824af0f7dda16383ac4e59c50c +DIST seamonkey-2.10.1-gl.xpi 813904 RMD160 2faf5c324e6e94ac7fd23fa227ce4= fafbe1cc97e SHA1 250c7f46586e80b1be642792c578546364eb7b79 SHA256 254b8206= 2de39df925c6c84ae487708117bdae60ebe40174774654dccf257790 +DIST seamonkey-2.10.1-hu.xpi 838019 RMD160 6cca5588e93292215712f86745ec1= 96a0ddf4c8c SHA1 1417bbb77202067133740431bfbda28556c2eb9a SHA256 09ae10cb= 534326d9936bcab2055bed3807f0bcb42b623d084e24cc1fb5a5ad66 +DIST seamonkey-2.10.1-it.xpi 741873 RMD160 e5f42c276540a3cdb88c4ab523ddd= a1aa42f7296 SHA1 47329c3f730dc23ecf6cc2a90587b0e0e9647f8d SHA256 835aad20= fec403ae8a0dc22452456ea5975c8a27c419225d8dd2d3d5301197d3 +DIST seamonkey-2.10.1-ja.xpi 868121 RMD160 141ca94e28aa196016be24d839f6c= 8bbc58381d0 SHA1 5bc251602794e0267acc6a7cd37f4c918c97d730 SHA256 c5fc6175= 526c5ec783896ffd942d84b91f5fdec12da659c23382ed6b54c2e452 +DIST seamonkey-2.10.1-lt.xpi 936666 RMD160 219c223936c6e6f7c06c534e3c605= 91230d6f0cc SHA1 3e2d1c4784e2fa8bc1b34f67720c4bb6d7f91d4f SHA256 31489bb7= a3e2165f717367bc286860304b3e605aea735b90799568b5752df588 +DIST seamonkey-2.10.1-nb-NO.xpi 812088 RMD160 b312b968f638b80ca04fd3f40e= 1a00564925cff9 SHA1 c39e74eae23eeaeaf390dd900a390cedada6b4fe SHA256 cadde= 782bebcd6e49f68a44bad2cc78f11344ac85e732e3cc0e8e73784724dc5 +DIST seamonkey-2.10.1-nl.xpi 809235 RMD160 ed7f94dc5a9dcbd56bc0416526e42= 44e5c25d98d SHA1 3ff658adf0207d9b8ea25817630176ea17517e03 SHA256 15c24ad1= d46c220c5dfba94a81ead9ff7dca5e012acd50749316d9e022a0e142 +DIST seamonkey-2.10.1-pl.xpi 833151 RMD160 e28e9ed92c039a60002f80e8f7ca2= e64f0eb6785 SHA1 bed50168861d1e1f363e2f4dbcd76db35f3910a8 SHA256 cd7e6995= aff79a0b315ccff4266457f0c91f3ae75b873c62d7b0fac593f9b5cd +DIST seamonkey-2.10.1-pt-PT.xpi 849571 RMD160 aeb101fdbf838c000884228251= efc1b28b00ea7c SHA1 60ace011c6d160897df9f9fa807c54a60d524400 SHA256 bd7b0= 73edc9e64421006213f46e5bb8d151299b9a69ebc03c1d57d8f97b6a45c +DIST seamonkey-2.10.1-ru.xpi 896159 RMD160 ea038f1e5537f22b59e071575dab0= bc833c04288 SHA1 205bff113cad76e017da811e06b5a405f39c5fac SHA256 6f99e47c= 375acba0b29d526965d297aef3d794c9fe59de8a0a32bf94e9a4b131 +DIST seamonkey-2.10.1-sk.xpi 847445 RMD160 60ad0700543a142719c1dad2ccd60= df1e60b7546 SHA1 336a63cce13ca4e2322adc43c47d069987ab47a4 SHA256 b9705857= 14a23d161ddaa8bc94070a11cc03ea218d373c5125d7ac6006e9d00f +DIST seamonkey-2.10.1-sv-SE.xpi 874196 RMD160 a0497f137c9e7f4681de41ca17= c7e3acea9fe15e SHA1 eb2e356df731976428aab7f41ee1dd23ba23fbcc SHA256 7e82e= 36195945e2177c8d6e7c938aaa76fd87355325578614c8a66c6b836a6fd +DIST seamonkey-2.10.1-tr.xpi 814237 RMD160 61fa57befeea0757b2bf23cb3372f= c18c2a918c1 SHA1 29aa4a5ade8c24f11063a8333d2b0c3d4fee57c7 SHA256 f257c026= 422b276d59602f927ab60b30194a2b725974ecab6f249feacb9e3dbd +DIST seamonkey-2.10.1-zh-CN.xpi 842336 RMD160 05c02e439808d95c8314d18b17= ccbdc8f6705b3b SHA1 f63934fa0e3fa4e0cb3747c599a57313f566d99a SHA256 6973d= e5597d3d7ed960f96bc8c77c199c41043867983145ccd576fa0e1d219d7 +DIST seamonkey-2.10.1_pre2.source.tar.bz2 103439433 RMD160 67e1ec2dc4acb= 6047012e1ecce6cf468fe438a9f SHA1 fbd756f7c0c5e613f7fc47ada329c53897366adb= SHA256 96e9542393d14a7522d05993b54239b2d45bc7198389a56e1e56af97038cac8f DIST seamonkey-2.10.source.tar.bz2 103476738 RMD160 8599a08b118d67adcbd8= 41c4996ab77fcae879da SHA1 c5d92bfb1f2a6d209d8dce003734f6ec4d9ea10c SHA256= 68439ba4d34b8645e647cf6c5c016fd309fe4a02d1e811bf7718e0f2ace63dbf DIST seamonkey-2.11_beta2.source.tar.bz2 105796832 RMD160 491674a4e41c2e= d3d2a6573a52049cac85c3897d SHA1 ccedb9dc77bff95345c3a5532e36965e25ad6396 = SHA256 fe2fdd4989ac10451dc23df64e9f056d0ce1a1f7edb66ecb4fa96af75e8b8e87 DIST seamonkey-2.11b2-be.xpi 804137 RMD160 d986bd956137d8f0e1b0422f9391a= 4fee583337b SHA1 d7c8cf6e1b681c461d75f490f44b2f40e9809ff1 SHA256 698cc2a1= 98091013973086f1f3a5b812152a2ab18868e57bedcb326606ca69b3 @@ -53,5 +77,6 @@ DIST seamonkey-2.11b2-sv-SE.xpi 877024 RMD160 7758542bb= 1bbb6f00ff6f5ff03f9f5449d DIST seamonkey-2.11b2-tr.xpi 817050 RMD160 3372452a75bd9ffb68c161f7575f0= fd57c3911c6 SHA1 df1786f60d2fe92c2a30b007b34fc84e6bfcabce SHA256 edce26a5= f74d04a2cf542b5c1dc64a965427f6a39d2536e80c4c30d1d64e737d DIST seamonkey-2.11b2-zh-CN.xpi 844022 RMD160 243b9c8c99e09e524dbb5508b2= 4c31038c8d6c6e SHA1 e3bb20cd5239ace2433061e8db01e4d1a19a8357 SHA256 06704= e83d73a7d70aa72492a75cc813bfb329083e1c4b02821642f4b463de07b DIST seamonkey-2.7-patches-03.tar.xz 1080 RMD160 bab03aac9c6bd1d5aacfe87= f7c3792a15fd0250b SHA1 6a80c1d6ee057e8f557af59d350543c6ba0cf57f SHA256 ee= de05439b5555871082652abe01c13b1f859640d8ac5df3001623c1084abec8 +EBUILD seamonkey-2.10.1_pre2.ebuild 9446 RMD160 bbf4b2f05d39639bd2d0db62= f1aad1f42321848c SHA1 984e7decc50336abf8b547bc29e3f960db8c1387 SHA256 6a8= 6099bce110a028823a0b06aa686073fcb155c510fcdccdf84bf1c68cc5fa4 EBUILD seamonkey-2.10.ebuild 9446 RMD160 bbf4b2f05d39639bd2d0db62f1aad1f= 42321848c SHA1 984e7decc50336abf8b547bc29e3f960db8c1387 SHA256 6a86099bce= 110a028823a0b06aa686073fcb155c510fcdccdf84bf1c68cc5fa4 EBUILD seamonkey-2.11_beta2.ebuild 9446 RMD160 c9474eb7db7de6fdc231d1b3d= 18ca1f32907175c SHA1 dee70036e9759bc5e8e32c7f7608cb3a4bd94329 SHA256 cc75= cb2ae486bc6561bf57a880944c8c7f2cdc599e0ca8033bb02470fc062455 diff --git a/www-client/seamonkey/seamonkey-2.10.1_pre2.ebuild b/www-clie= nt/seamonkey/seamonkey-2.10.1_pre2.ebuild new file mode 100644 index 0000000..9b15d86 --- /dev/null +++ b/www-client/seamonkey/seamonkey-2.10.1_pre2.ebuild @@ -0,0 +1,323 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/seamonkey-2.10.e= build,v 1.4 2012/06/10 02:18:20 polynomial-c Exp $ + +EAPI=3D"3" +WANT_AUTOCONF=3D"2.1" + +# This list can be updated with scripts/get_langs.sh from the mozilla ov= erlay +MOZ_LANGS=3D(be ca cs de en-GB en-US es-AR es-ES fi fr gl hu it ja lt nb= -NO nl pl + pt-PT ru sk sv-SE tr zh-CN) + +MOZ_PV=3D"${PV/_pre*}" +MOZ_PV=3D"${MOZ_PV/_alpha/a}" +MOZ_PV=3D"${MOZ_PV/_beta/b}" +MOZ_PV=3D"${MOZ_PV/_rc/rc}" +MOZ_P=3D"${PN}-${MOZ_PV}" + +if [[ ${PV} =3D=3D *_pre* ]] ; then + MOZ_FTP_URI=3D"ftp://ftp.mozilla.org/pub/${PN}/nightly/${MOZ_PV}-candid= ates/build${PV##*_pre}" + MOZ_LANGPACK_PREFIX=3D"linux-i686/xpi/" + # And the langpack stuff stays at eclass defaults +else + MOZ_FTP_URI=3D"ftp://ftp.mozilla.org/pub/${PN}/releases/${MOZ_PV}" + MOZ_LANGPACK_PREFIX=3D"langpack/${MOZ_P}." + MOZ_LANGPACK_SUFFIX=3D".langpack.xpi" +fi + +inherit flag-o-matic toolchain-funcs eutils mozconfig-3 multilib pax-uti= ls fdo-mime autotools mozextension python nsplugins mozlinguas + +PATCHFF=3D"firefox-13.0-patches-0.3" +PATCH=3D"${PN}-2.7-patches-03" +EMVER=3D"1.4.2" + +DESCRIPTION=3D"Seamonkey Web Browser" +HOMEPAGE=3D"http://www.seamonkey-project.org" + +if [[ ${PV} =3D=3D *_pre* ]] ; then + # pre-releases. No need for arch teams to change KEYWORDS here. + + KEYWORDS=3D"" +else + # This is where arch teams should change the KEYWORDS. + + KEYWORDS=3D"~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86" +fi + +SLOT=3D"0" +LICENSE=3D"|| ( MPL-1.1 GPL-2 LGPL-2.1 )" +IUSE=3D"+alsa +chatzilla +crypt +ipc +jit +roaming system-sqlite +webm" + +SRC_URI+=3D"${SRC_URI} + ${MOZ_FTP_URI}/source/${MOZ_P}.source.tar.bz2 -> ${P}.source.tar.bz2 + http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz + http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz + crypt? ( http://www.mozilla-enigmail.org/download/source/enigmail-${EMV= ER}.tar.gz )" + +ASM_DEPEND=3D">=3Ddev-lang/yasm-1.1" + +# Mesa 7.10 needed for WebGL + bugfixes +RDEPEND=3D">=3Dsys-devel/binutils-2.16.1 + >=3Ddev-libs/nss-3.13.5 + >=3Ddev-libs/nspr-4.9.1 + >=3Ddev-libs/glib-2.26 + >=3Dmedia-libs/mesa-7.10 + >=3Dmedia-libs/libpng-1.5.9[apng] + >=3Dx11-libs/cairo-1.10 + >=3Dx11-libs/pango-1.14.0 + >=3Dx11-libs/gtk+-2.14 + virtual/libffi + system-sqlite? ( >=3Ddev-db/sqlite-3.7.10[fts3,secure-delete,threadsafe= ,unlock-notify,debug=3D] ) + crypt? ( >=3Dapp-crypt/gnupg-1.4 ) + webm? ( >=3Dmedia-libs/libvpx-1.0.0 + kernel_linux? ( media-libs/alsa-lib ) )" + +DEPEND=3D"${RDEPEND} + !elibc_glibc? ( dev-libs/libexecinfo ) + virtual/pkgconfig + webm? ( amd64? ( ${ASM_DEPEND} ) + x86? ( ${ASM_DEPEND} ) + virtual/opengl )" + +if [[ ${PV} =3D=3D *beta* ]] ; then + S=3D"${WORKDIR}/comm-beta" +else + S=3D"${WORKDIR}/comm-release" +fi + +src_unpack() { + unpack ${A} + + # Unpack language packs + mozlinguas_src_unpack +} + +pkg_setup() { + if [[ ${PV} =3D=3D *_pre* ]] ; then + ewarn "You're using an unofficial release of ${PN}. Don't file any bug= in" + ewarn "Gentoo's Bugtracker against this package in case it breaks for = you." + ewarn "Those belong to upstream: https://bugzilla.mozilla.org" + fi + + moz_pkgsetup +} + +src_prepare() { + # Apply our patches + EPATCH_SUFFIX=3D"patch" \ + EPATCH_FORCE=3D"yes" \ + epatch "${WORKDIR}/seamonkey" + + # browser patches go here + pushd "${S}"/mozilla &>/dev/null || die + EPATCH_EXCLUDE=3D"2000-firefox_gentoo_install_dirs.patch" \ + EPATCH_SUFFIX=3D"patch" \ + EPATCH_FORCE=3D"yes" \ + epatch "${WORKDIR}/firefox" + popd &>/dev/null || die + + # Shell scripts sometimes contain DOS line endings; bug 391889 + grep -rlZ --include=3D"*.sh" $'\r$' . | + while read -r -d $'\0' file ; do + einfo edos2unix "${file}" + edos2unix "${file}" || die + done + + # Allow user to apply any additional patches without modifing ebuild + epatch_user + + if use crypt ; then + mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail + #cd "${S}"/mailnews/extensions/enigmail || die + #cd "${S}" + fi + + local ms=3D"${S}/mozilla" + + # Enable gnomebreakpad + if use debug ; then + sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=3D1:GNOME_DISABLE_CRASH_DIALOG= =3D0:g" \ + "${ms}"/build/unix/run-mozilla.sh || die "sed failed!" + fi + + # Disable gnomevfs extension + sed -i -e "s:gnomevfs::" "${S}"/suite/confvars.sh \ + -e "s:gnomevfs::" "${ms}"/browser/confvars.sh \ + -e "s:gnomevfs::" "${ms}"/xulrunner/confvars.sh \ + || die "Failed to remove gnomevfs extension" + + # Ensure that are plugins dir is enabled as default + sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plug= ins:" \ + "${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to r= eplace plugin path!" + + # Don't exit with error when some libs are missing which we have in + # system. + sed '/^MOZ_PKG_FATAL_WARNINGS/s@=3D 1@=3D 0@' \ + -i "${S}"/suite/installer/Makefile.in || die + + eautoreconf + cd "${S}"/mozilla + eautoconf +} + +src_configure() { + MOZILLA_FIVE_HOME=3D"/usr/$(get_libdir)/${PN}" + MEXTENSIONS=3D"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" + + if use chatzilla ; then + MEXTENSIONS+=3D",irc" + else + MEXTENSIONS+=3D",-irc" + fi + if ! use roaming ; then + MEXTENSIONS+=3D",-sroaming" + fi + + mozconfig_annotate '' --prefix=3D"${EPREFIX}"/usr + mozconfig_annotate '' --libdir=3D"${EPREFIX}"/usr/$(get_libdir) + mozconfig_annotate '' --enable-extensions=3D"${MEXTENSIONS}" + mozconfig_annotate '' --disable-gconf + mozconfig_annotate '' --enable-jsd + mozconfig_annotate '' --enable-canvas + mozconfig_annotate '' --with-default-mozilla-five-home=3D${MOZILLA_FIVE= _HOME} + mozconfig_annotate '' --enable-system-ffi + mozconfig_annotate '' --with-system-png + mozconfig_annotate '' --target=3D"${CTARGET:-${CHOST}}" + mozconfig_annotate '' --enable-safe-browsing + + mozconfig_use_enable system-sqlite + # Both methodjit and tracejit conflict with PaX + mozconfig_use_enable jit methodjit + mozconfig_use_enable jit tracejit + + # Use an objdir to keep things organized. + echo "mk_add_options MOZ_OBJDIR=3D@TOPSRCDIR@/seamonk" \ + >> "${S}"/.mozconfig + + # Finalize and report settings + mozconfig_final + + # Work around breakage in makeopts with --no-print-directory + MAKEOPTS=3D"${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 ]] ; t= hen + if use amd64 || use x86 ; then + append-flags -mno-avx + fi + fi +} + +src_compile() { + CC=3D"$(tc-getCC)" CXX=3D"$(tc-getCXX)" LD=3D"$(tc-getLD)" \ + MOZ_MAKE_FLAGS=3D"${MAKEOPTS}" \ + emake -f client.mk || die + + # Only build enigmail extension if conditions are met. + if use crypt ; then + cd "${S}"/mailnews/extensions/enigmail || die + ./makemake -r 2&> /dev/null + cd "${S}"/seamonk/mailnews/extensions/enigmail + emake || die "make enigmail failed" + emake xpi || die "make enigmail xpi failed" + fi +} + +src_install() { + MOZILLA_FIVE_HOME=3D"/usr/$(get_libdir)/${PN}" + local emid obj_dir=3D"seamonk" + cd "${S}/${obj_dir}" + + # Copy our preference before omnijar is created. + sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \ + "${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 c= reation. + pax-mark m "${S}"/dist/bin/xpcshell + fi + + MOZ_MAKE_FLAGS=3D"${MAKEOPTS}" \ + emake DESTDIR=3D"${D}" install || die "emake install failed" + cp -f "${FILESDIR}"/icon/${PN}.desktop "${T}" || die + + if use crypt ; then + cd "${T}" || die + unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi install.rdf || = die + emid=3D$(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 + + cd "${S}" || die + fi + + sed 's|^\(MimeType=3D.*\)$|\1text/x-vcard;text/directory;application/mb= ox;message/rfc822;x-scheme-handler/mailto;|' \ + -i "${T}"/${PN}.desktop || die + sed 's|^\(Categories=3D.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \ + || die + + # Install language packs + mozlinguas_src_install + + # Add StartupNotify=3Dtrue bug 290401 + if use startup-notification ; then + echo "StartupNotify=3Dtrue" >> "${T}"/${PN}.desktop + fi + + # Install icon and .desktop for menu entry + newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png \ + || die + domenu "${T}"/${PN}.desktop || die + + # Without methodjit and tracejit there's no conflict with PaX + if use jit ; then + # Required in order to use plugins and even run firefox on hardened. + pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin} + fi + + # Plugin-container needs to be pax-marked for hardened to ensure plugin= s such as flash + # continue to work as expected. + pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/plugin-container + + # Handle plugins dir through nsplugins.eclass + share_plugins_dir + + doman "${S}"/${obj_dir}/suite/app/${PN}.1 || die +} + +pkg_preinst() { + MOZILLA_FIVE_HOME=3D"${ROOT}/usr/$(get_libdir)/${PN}" + + if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then + rm ${MOZILLA_FIVE_HOME}/plugins -rf + fi +} + +pkg_postinst() { + MOZILLA_FIVE_HOME=3D"/usr/$(get_libdir)/${PN}" + + # Update mimedb for the new .desktop file + fdo-mime_desktop_database_update + + if use chatzilla ; then + elog "chatzilla is now an extension which can be en-/disabled and conf= igured via" + elog "the Add-on manager." + fi +}