summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2013-10-25 08:24:32 +0000
committerLars Wendler <polynomial-c@gentoo.org>2013-10-25 08:24:32 +0000
commita65846a7592dcdfbc755558abe38800be0c21ff6 (patch)
treecb3d076be9f6226d7f6dff0c9e0b6ff0c30aa630 /www-client
parentAvoid spec that requires connectivity. (diff)
downloadhistorical-a65846a7592dcdfbc755558abe38800be0c21ff6.tar.gz
historical-a65846a7592dcdfbc755558abe38800be0c21ff6.tar.bz2
historical-a65846a7592dcdfbc755558abe38800be0c21ff6.zip
Revision bump to integrate enigmail-1.6
Package-Manager: portage-2.2.7/cvs/Linux x86_64 Manifest-Sign-Key: 0x981CA6FC
Diffstat (limited to 'www-client')
-rw-r--r--www-client/seamonkey/ChangeLog8
-rw-r--r--www-client/seamonkey/Manifest22
-rw-r--r--www-client/seamonkey/seamonkey-2.21-r1.ebuild367
3 files changed, 391 insertions, 6 deletions
diff --git a/www-client/seamonkey/ChangeLog b/www-client/seamonkey/ChangeLog
index 76789c3476d6..50de9edc55e4 100644
--- a/www-client/seamonkey/ChangeLog
+++ b/www-client/seamonkey/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-client/seamonkey
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.462 2013/09/26 16:31:45 axs Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.463 2013/10/25 08:24:31 polynomial-c Exp $
+
+*seamonkey-2.21-r1 (25 Oct 2013)
+
+ 25 Oct 2013; Lars Wendler <polynomial-c@gentoo.org>
+ +seamonkey-2.21-r1.ebuild:
+ Revision bump to integrate enigmail-1.6.
26 Sep 2013; Ian Stakenvicius <axs@gentoo.org>
+files/moz24-drop-Wl-build-id.patch, seamonkey-2.21.ebuild:
diff --git a/www-client/seamonkey/Manifest b/www-client/seamonkey/Manifest
index 169920b59787..9910d6f95c9e 100644
--- a/www-client/seamonkey/Manifest
+++ b/www-client/seamonkey/Manifest
@@ -7,6 +7,7 @@ AUX enigmail_mailnews_extensions_genxpi.patch 800 SHA256 8f624af88ee4c3c6c9022e5
AUX icon/seamonkey.desktop 288 SHA256 524ae39ffc10b2a950aa344ae6c3f3d9b4a21009697edfd52ec47aa850d795d0 SHA512 de41924fefe72217c93e42cd907a285d6ce878b3713b2b7e63cb3658bb6a7d83b57753a2911824b139820b7a84d03d89f89d7f79f28d32a4148a4916e779c686 WHIRLPOOL 6aac82b2104c32d7ab8831d760f641badc8705a4711d71bccb25064391d1120217b212ea0009eb145948d61f341b94e57896d5c8c99a90a72312cbebff26f85f
AUX moz24-drop-Wl-build-id.patch 1243 SHA256 5930c1afd86689723768afa0eca529995addcb7abd3bd4eb9de2cc65fbc722d6 SHA512 8d3678d0b434b880e89cc7fdfccef1601a12f50bd491eb7c64c17e7189ab10b0939a4236cccde28129761d9b3417e0e6b9806cd4150ed93e790ff3c0c0337e13 WHIRLPOOL fd918031604782a12e2a8e194cdc67aa11cb0285500e6e8db67583d42f7693227d1f4b496aaa30ea605fd53b64aab5126c32a6e0a8b83e02bb4de1a55b662723
DIST enigmail-1.5.2.tar.gz 1211395 SHA256 f20d6d1be1ab12dc2f1208d8f01227fd7e5c4dcf5d6f4bd0833a932b58973a26 SHA512 21df4726b203c5840134eb925df79c8bcb06b201217000fc636cf43b6d7d7fc8850c90de8998838f3d07b02e027f7cab09b719d600d034c4110cce6befd690c5 WHIRLPOOL 496320d20af8b8254d55976a269cececd27efc8d948cd85c016b4a34bab5f600a9698f423a6dae4f003fa2020ad6e7e475d2c1a1819f529b14e7bd13d26aaa51
+DIST enigmail-1.6.tar.gz 1231111 SHA256 10d5eb7ba364b9b6e6275aae8bba1d0e4321ed7d55a715337d566ccf2a56ea4d SHA512 877ca75a0ed1538f156307dc181ce8808deb96f58250d26d4d2c1f474d637959347c2305cb3b8f92f12d3ebd95bfa9d4d35aaaa1f4670728f205be7ae76852b8 WHIRLPOOL 91a11a81cc7b4c05c4a0a320284bc362b13f6aecb4fb20b04f38080bffbc5b94ab1913cf7e2d4480a452a916fd0d4297830ce0ba36867c7418b11deb1e060b06
DIST firefox-24.0-patches-0.3.tar.xz 7352 SHA256 611ab45bf4a834066e16be53345a25bccbb19c8d3ac4a0d5877e1334764480fd SHA512 9e89a9137c9574168b3f70af4093f62558e5cf66a248be7a283cea878568381370ffd7bcb073c003994adbf9bd098ddacb46200c0f624c5cb5754fc38af6a1f7 WHIRLPOOL 3b4262a3ec587e9c795971302a4221aec5a83d80caca15779c67da7c3dac83add4f83df725592f3332cc5ead746e33a6e6191064567b8670469695c0120a62df
DIST seamonkey-2.14-patches-01.tar.xz 844 SHA256 aff61bf3c145eb3db72191357f6adf1d516960b9a55330ad9dd3e63c27a8bcc7 SHA512 205c38c4c8ca550d28aac30d09155d85588e7bac284e075ad0251bb5c5b62e30b8d4438bd7e4e3343377a9303a88655ffe807320f14e19166696d2d6045ae901 WHIRLPOOL c34f94b8673161fdb7273fd5dd7741db3c2250f33f5f39f12ade309e2e7183513cbf51356e52da3b1222976b06c1a71bbda74965e6b108fd7054100fcf51feda
DIST seamonkey-2.21-be.xpi 809635 SHA256 c00a0078f21a97179a69f96b21f16189654ffcefeb79616696588481c4229f53 SHA512 98a4a857ecade867ea3fe376a002b8df38b6514209f1fbd62b701fdc3b432f4b0ae13f2e3c3839b4f0f2a64a59eab0c1585d1bb2cd60d1e5da31199e2fe0f685 WHIRLPOOL adb101dab95fff9f9e48f79e5c5efc5521448f42b885e0e290603657f53a27b862a6be37006f8f0327b7784c839c7ec4a18deb6cb6825c9fc62c032d987aef8a
@@ -35,13 +36,24 @@ DIST seamonkey-2.21-uk.xpi 846252 SHA256 1a8f1b69119e2df9f6ceb2d486e6eb689984798
DIST seamonkey-2.21-zh-CN.xpi 809240 SHA256 6e32b8598ac5515f628ee12e88c01133c9611e43ad763a6f43c4be9bdbbb1091 SHA512 02e558492599c8543e9ba00b01b86aa9f70343c87969e1791e6eb127ca4f1aee1b5525dc81fef70dcb0459d230896b7367f4243969287489dcd99fd81f46c917 WHIRLPOOL f68760c5e118069e80b6d29bbee2728a052b7c26c979fe859b895ff4b694dfd146d9cf040239d50bd3b66a0cbd8d4255c3a7e7a106758ea26816860d7a855d6b
DIST seamonkey-2.21-zh-TW.xpi 831544 SHA256 aa4ced5cb4237ac4915360c080bc2f46f7fa78cd06535f1bc7f9bba628bef249 SHA512 6733cb98b9dcb99e967498118553f8e2fb251d8cc397555779c2c10046adb549bcde52dbe7ffbc3b013030b71792537d9c17c1ff742f390c760b485ce2d61b2c WHIRLPOOL ab33dcb73b877d935a681514a387e1f5267d2f720f290c09cfcf5b2dcdd4b8a2aa6377809bcfad05086b147afe1e54b656ecb8c2648132af78f09733df75529f
DIST seamonkey-2.21.source.tar.bz2 140654724 SHA256 1b15b1e6bc19477ff7dfc805dd3629566b0b5e94eca9638fe2f4b47c3a8d5ae9 SHA512 1d141bb5507b2b2f4be3d0435342c54c04aa5a4942f801ab34e9af216e164153d4a34c47e68231ff3a958a64860be718452bb904c71e787067c93cdeae0c5643 WHIRLPOOL c7f6bf379eada208a87f4fbb0349a9145d46e83db5156a93170fa1dba843ff23a35e0b316001a18fb0dae265130a752967c683472007755122ca00280e8d7392
+EBUILD seamonkey-2.21-r1.ebuild 10988 SHA256 f2aecece14a90b62aaafe206eb8773bd2410e6c3554ec5412417778186e7cc75 SHA512 02ffcfd0bcdf029636c68d13c00a16d5e79be382fbcb41326b2deba2c01437df3b7322369dddeaae6b9a204942238e4d4e9cd26aa1013d116062c811014369dd WHIRLPOOL 2aef9e079e509389d39ae694b59f90e985c4a46a5789249d024e6aac07dcb4e89371f865052b90f07d0de78eca80f6bb2fd629e68b13bb2ad8617e16fe5f6342
EBUILD seamonkey-2.21.ebuild 11038 SHA256 c81a77cacd698135a59ce4f5a6ab3cffae6bf933baaa0843f6ec3acea6114fac SHA512 772feb626d190a7653f45251d1989640f14c511ed2a738d0a285325d1bbb006ec260351df0e402b978a45773fd9a7b3d278fa14f63bc1a2280a51da4f1858975 WHIRLPOOL ef16de1bd15d548d60a0755267eeebec798ad2430ff518fad96db3b20d35ae5c25340dc80c5389a854c29a9d8f4b3287a81dd175fb03b996d41c66d1d99c298c
-MISC ChangeLog 64548 SHA256 07531519b050fc7c3d90e6f52f6d2042c8df4e013dd0b7351bbce4321e4a7e66 SHA512 86fff87842ad2a9200087a22e636761648d00ed51bf7ac835c5d1d0f2fb98a34aca8a7903d78b1375dca7671fabd7fd0fa6fdd0baa42157a76b6e8efada2db47 WHIRLPOOL d54037ef3372dc79178eefcfdf22ae2fee31668323c784e523a5b29159ca53cec1b4cbe6c1c689955632ee6801007e2f6eb9ef11601876ad43a75fbbb59704c9
+MISC ChangeLog 64718 SHA256 e7b56deb96f9ea39066bb1d8c0b248113cee00b78bd030e3177286fc6ccaaf17 SHA512 e9ad8ad5536c22f4a80cf58f9f7baf94f00417493f38498eb77b243087794b4b86280fc74cbadee8f56e153ff6ab412721f2f7a936e0128b3e35f13f64f6ce52 WHIRLPOOL 89b9e2ef5e75f2c3de327fa993982b99b89819d684bbe112d13c82ff2d122f0616f359756f2534081e71fa55cf1f6225f93604692436881b149d08cb5cea8275
MISC metadata.xml 1124 SHA256 ed82f76250ccd3e702a5fa60272382dd0025a4aa1e7480e4691170c259910464 SHA512 e53e8cf1fc76bfefa4f669703d8b27f0befdfe90e8a098a14a069a02c6c9f8b14edb2af40df96a746b1679bc1523c74e625d15f67bb72c166f799b7d4780163c WHIRLPOOL e6ebb16110bceb8de7609fc02b1b9baf441da8bb8227c2f5f2ad88ab3d1d3dd50704bfa9a965444010ea30c809c6edd03b3624d0023d9b7b667185bda52ab392
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.20 (GNU/Linux)
+Version: GnuPG v2.0.22 (GNU/Linux)
-iF4EAREIAAYFAlJEYXgACgkQ2ugaI38ACPCRUAD/TBXHG2u9R+fvBWAVAzYZ72I/
-EzOphU/3c2ssXnOejlMA/AkzpiNR4yhL1F+Fvon6qh7ZYiynzYdOYD0fvqkF7wOz
-=Cpwc
+iQIcBAEBCAAGBQJSairAAAoJEPiazRVxLXTFFg0QAKLavwAf2BKY1WRFddiaa1FC
+4ySjfFxlHXJut6FeOGfTt+AXPV7LUbNAEQS2RdsPPx2QEa8Z38b5eB6HEmSkbM6i
+rI3AqBITBHomAnnKAvCm42rE6t++mWxVmIGjqUAUL3WgYl5VnHdqO0IgxM3H+4VX
+Zq/ToAfIZfQskaSvdmJADMEfQv0xdKfqsPYjyBhC5yNIrb8BLqfBwteNGQibqajr
+lSLN7Cvfxw6Zu1YyzBwZe3Aetou1X8nYhLeRoGVhzFzT69lotQ3kyee+DxFjdcam
+hDTfV2oBjHWY+OmmnnP2FlBCJ2JqrS0CXez0Egw68T2fxuZvWN5cvEq4JRJ+bLqk
+JeceR3hXKv+hDIsztnppMYXpC0wWXua910eD0C2sY0wyZ27pI1bZmbYv/Satuv2H
+BN1mvFQhCmts+lxbG3+HqDIPKAPWK3AtFFEvtzlgsbbIsNhtYwkZWOp3XXwsOkYH
+O8XtlCBgVnPPGWyx1/U+XwcU+C7H73fDEgECZ+IRQoZ2rvpB97ZoKxTJNwXbK8DS
+2FzpmXlnijSNjinVlVzonuC1ecA3PGH5FT8De2rQ2Q3vCfDfA8yS5CvvFBMDzgsR
+V4KgPEWpX1XTD5SQ4xSHctnQJOhjeCa+0ZTZiDHfBDZqigcEnWf+PpJnkZGd7MkR
+cDWfGT/KH4suV6ceVgyg
+=x6h1
-----END PGP SIGNATURE-----
diff --git a/www-client/seamonkey/seamonkey-2.21-r1.ebuild b/www-client/seamonkey/seamonkey-2.21-r1.ebuild
new file mode 100644
index 000000000000..fb4810b64783
--- /dev/null
+++ b/www-client/seamonkey/seamonkey-2.21-r1.ebuild
@@ -0,0 +1,367 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/seamonkey-2.21-r1.ebuild,v 1.1 2013/10/25 08:24:31 polynomial-c Exp $
+
+EAPI="3"
+WANT_AUTOCONF="2.1"
+
+# This list can be updated with scripts/get_langs.sh from the mozilla overlay
+MOZ_LANGS=(be ca cs de en 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 uk zh-CN zh-TW)
+
+MOZ_PV="${PV/_pre*}"
+MOZ_PV="${MOZ_PV/_alpha/a}"
+MOZ_PV="${MOZ_PV/_beta/b}"
+MOZ_PV="${MOZ_PV/_rc/rc}"
+MOZ_P="${P}"
+MY_MOZ_P="${PN}-${MOZ_PV}"
+
+if [[ ${PV} == *_pre* ]] ; then
+ MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}"
+ MOZ_LANGPACK_PREFIX="linux-i686/xpi/"
+ # And the langpack stuff stays at eclass defaults
+else
+ MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/${MOZ_PV}"
+ MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}."
+ MOZ_LANGPACK_SUFFIX=".langpack.xpi"
+fi
+
+inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-3 multilib pax-utils fdo-mime autotools mozextension nsplugins mozlinguas
+
+PATCHFF="firefox-24.0-patches-0.3"
+PATCH="${PN}-2.14-patches-01"
+EMVER="1.6"
+
+DESCRIPTION="Seamonkey Web Browser"
+HOMEPAGE="http://www.seamonkey-project.org"
+
+if [[ ${PV} == *_pre* ]] ; then
+ # pre-releases. No need for arch teams to change KEYWORDS here.
+
+ KEYWORDS=""
+else
+ # This is where arch teams should change the KEYWORDS.
+
+ KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+fi
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+IUSE="+chatzilla +crypt gstreamer +ipc +jit minimal pulseaudio +roaming selinux system-cairo system-icu system-jpeg system-sqlite"
+
+SRC_URI="${SRC_URI}
+ ${MOZ_FTP_URI}/source/${MY_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-${EMVER}.tar.gz )"
+
+ASM_DEPEND=">=dev-lang/yasm-1.1"
+
+# Mesa 7.10 needed for WebGL + bugfixes
+RDEPEND=">=sys-devel/binutils-2.16.1
+ >=dev-libs/nss-3.15.1
+ >=dev-libs/nspr-4.10
+ >=dev-libs/glib-2.26:2
+ >=media-libs/mesa-7.10
+ >=media-libs/libpng-1.5.13[apng]
+ >=x11-libs/pango-1.14.0
+ >=x11-libs/gtk+-2.14:2
+ virtual/libffi
+ gstreamer? ( media-plugins/gst-plugins-meta:0.10[ffmpeg] )
+ system-cairo? ( >=x11-libs/cairo-1.12[X] )
+ system-icu? ( dev-libs/icu )
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
+ system-sqlite? ( >=dev-db/sqlite-3.7.16.1:3[secure-delete,debug=] )
+ >=media-libs/libvpx-1.0.0
+ crypt? ( >=app-crypt/gnupg-1.4 )
+ kernel_linux? ( media-libs/alsa-lib )
+ pulseaudio? ( media-sound/pulseaudio )
+ selinux? ( sec-policy/selinux-mozilla )"
+
+DEPEND="${RDEPEND}
+ !elibc_glibc? ( dev-libs/libexecinfo )
+ virtual/pkgconfig
+ amd64? ( ${ASM_DEPEND}
+ virtual/opengl )
+ x86? ( ${ASM_DEPEND}
+ virtual/opengl )"
+
+if [[ ${PV} == *beta* ]] ; then
+ S="${WORKDIR}/comm-beta"
+else
+ S="${WORKDIR}/comm-release"
+fi
+
+pkg_setup() {
+ if [[ ${PV} == *_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
+
+ # Ensure we have enough disk space to compile
+ if use debug || use test ; then
+ CHECKREQS_DISK_BUILD="8G"
+ else
+ CHECKREQS_DISK_BUILD="4G"
+ fi
+ check-reqs_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+
+ # Unpack language packs
+ mozlinguas_src_unpack
+}
+
+src_prepare() {
+ # Apply our patches
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ epatch "${WORKDIR}/seamonkey"
+
+ # browser patches go here
+ pushd "${S}"/mozilla &>/dev/null || die
+ EPATCH_EXCLUDE="2000-firefox_gentoo_install_dirs.patch" \
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ epatch "${WORKDIR}/firefox"
+ popd &>/dev/null || die
+ # drop -Wl,--build-id from LDFLAGS, bug #465466
+ epatch "${FILESDIR}"/moz${PATCHFF:8:2}-drop-Wl-build-id.patch
+
+ # Shell scripts sometimes contain DOS line endings; bug 391889
+ grep -rlZ --include="*.sh" $'\r$' . |
+ while read -r -d $'\0' file ; do
+ einfo edos2unix "${file}"
+ edos2unix "${file}" || die
+ done
+
+ if use crypt ; then
+ mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail
+ #pushd "${S}"/mailnews/extensions/enigmail &>/dev/null || die
+
+ #popd &>/dev/null || die
+ fi
+
+ # Allow user to apply any additional patches without modifing ebuild
+ epatch_user
+
+ local ms="${S}/mozilla"
+
+ # Enable gnomebreakpad
+ if use debug ; then
+ sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \
+ "${ms}"/build/unix/run-mozilla.sh || die "sed failed!"
+ fi
+
+ # Ensure that are plugins dir is enabled as default
+ sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \
+ "${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!"
+ sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \
+ "${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!"
+
+ # Don't exit with error when some libs are missing which we have in
+ # system.
+ sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \
+ -i "${S}"/suite/installer/Makefile.in || die
+ # Don't error out when there's no files to be removed:
+ sed 's@\(xargs rm\)$@\1 -f@' \
+ -i "${ms}"/toolkit/mozapps/installer/packager.mk || die
+
+ eautoreconf
+ cd "${S}"/mozilla || die
+ eautoconf
+ cd js/src || die
+ eautoconf
+}
+
+src_configure() {
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ MEXTENSIONS="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+=",irc"
+ else
+ MEXTENSIONS+=",-irc"
+ fi
+ if ! use roaming ; then
+ MEXTENSIONS+=",-sroaming"
+ fi
+
+ # We must force enable jemalloc 3 threw .mozconfig
+ echo "export MOZ_JEMALLOC=1" >> ${S}/.mozconfig
+
+ mozconfig_annotate '' --enable-jemalloc
+ mozconfig_annotate '' --enable-replace-malloc
+ mozconfig_annotate '' --prefix="${EPREFIX}"/usr
+ mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir)
+ mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
+ mozconfig_annotate '' --disable-gconf
+ mozconfig_annotate '' --enable-jsd
+ mozconfig_annotate '' --enable-canvas
+ mozconfig_annotate '' --with-system-png
+ mozconfig_annotate '' --enable-system-ffi
+
+ # Other sm-specific settings
+ mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
+
+ mozconfig_annotate '' --target="${CTARGET:-${CHOST}}"
+ mozconfig_annotate '' --build="${CTARGET:-${CHOST}}"
+ mozconfig_annotate '' --enable-safe-browsing
+
+ mozconfig_use_enable gstreamer
+ mozconfig_use_enable pulseaudio
+ mozconfig_use_enable system-cairo
+ mozconfig_use_enable system-sqlite
+ mozconfig_use_with system-jpeg
+ mozconfig_use_with system-icu
+ mozconfig_use_enable system-icu intl-api
+ # Feature is know to cause problems on hardened
+ mozconfig_use_enable jit ion
+
+ # Use an objdir to keep things organized.
+ echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/seamonk" \
+ >> "${S}"/.mozconfig
+
+ # Finalize and report settings
+ mozconfig_final
+
+ # Work around breakage in makeopts with --no-print-directory
+ MAKEOPTS="${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 ]] ; then
+ if use amd64 || use x86 ; then
+ append-flags -mno-avx
+ fi
+ fi
+}
+
+src_compile() {
+ CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
+ MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \
+ 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="/usr/$(get_libdir)/${PN}"
+ DICTPATH="\"${EPREFIX}/usr/share/myspell\""
+
+ local emid obj_dir="seamonk"
+ cd "${S}/${obj_dir}"
+
+ # Pax mark xpcshell for hardened support, only used for startupcache creation.
+ pax-mark m "${S}/${obj_dir}/mozilla/dist/bin/xpcshell"
+
+ # 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
+
+ # Set default path to search for dictionaries.
+ echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \
+ >> "${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ if ! use libnotify ; then
+ echo 'pref("browser.download.manager.showAlertOnComplete", false);' \
+ >> "${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+ fi
+
+ echo 'pref("extensions.autoDisableScopes", 3);' >> \
+ "${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ MOZ_MAKE_FLAGS="${MAKEOPTS}" \
+ emake DESTDIR="${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=$(sed -n '/<em:id>/!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=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \
+ -i "${T}"/${PN}.desktop || die
+ sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \
+ || die
+
+ # Install language packs
+ mozlinguas_src_install
+
+ # Add StartupNotify=true bug 290401
+ if use startup-notification ; then
+ echo "StartupNotify=true" >> "${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
+
+ # Required in order to use plugins and even run seamonkey on hardened.
+ pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container}
+
+ if use minimal ; then
+ rm -rf "${ED}"/usr/include "${ED}${MOZILLA_FIVE_HOME}"/{idl,include,lib,sdk}
+ fi
+
+ # Handle plugins dir through nsplugins.eclass
+ share_plugins_dir
+
+ doman "${S}"/${obj_dir}/suite/app/${PN}.1 || die
+}
+
+pkg_preinst() {
+ MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}"
+
+ if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then
+ rm ${MOZILLA_FIVE_HOME}/plugins -rf
+ fi
+}
+
+pkg_postinst() {
+ MOZILLA_FIVE_HOME="/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 configured via"
+ elog "the Add-on manager."
+ fi
+}