summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir Lamouri <volkmar@gentoo.org>2009-10-28 18:19:41 +0000
committerMounir Lamouri <volkmar@gentoo.org>2009-10-28 18:19:41 +0000
commitc61716fb754a5c26db4b821a5e69f122f4fd1173 (patch)
treeb998909983ea9864a82b2e599dc284fccc70c5d5 /www-client/seamonkey
parentia64/s390/sh/sparc stable wrt #278181 (diff)
downloadhistorical-c61716fb754a5c26db4b821a5e69f122f4fd1173.tar.gz
historical-c61716fb754a5c26db4b821a5e69f122f4fd1173.tar.bz2
historical-c61716fb754a5c26db4b821a5e69f122f4fd1173.zip
Add seamonkey-2.0 ebuild, moved from mozilla overlay.
Package-Manager: portage-14478-svn/cvs/Linux ppc
Diffstat (limited to 'www-client/seamonkey')
-rw-r--r--www-client/seamonkey/ChangeLog7
-rw-r--r--www-client/seamonkey/Manifest23
-rw-r--r--www-client/seamonkey/seamonkey-2.0.ebuild302
3 files changed, 330 insertions, 2 deletions
diff --git a/www-client/seamonkey/ChangeLog b/www-client/seamonkey/ChangeLog
index 10441410b14a..f5eea3074b5f 100644
--- a/www-client/seamonkey/ChangeLog
+++ b/www-client/seamonkey/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for www-client/seamonkey
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.206 2009/10/26 00:35:30 anarchy Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.207 2009/10/28 18:19:41 volkmar Exp $
+
+*seamonkey-2.0 (28 Oct 2009)
+
+ 28 Oct 2009; Mounir Lamouri <volkmar@gentoo.org> +seamonkey-2.0.ebuild:
+ Add seamonkey-2.0 ebuild, moved from mozilla overlay.
*seamonkey-2.0_rc2-r1 (26 Oct 2009)
diff --git a/www-client/seamonkey/Manifest b/www-client/seamonkey/Manifest
index e6b54310d4a2..fe5744a9f8a5 100644
--- a/www-client/seamonkey/Manifest
+++ b/www-client/seamonkey/Manifest
@@ -13,7 +13,27 @@ DIST seamonkey-1.1.15-patches-0.1.tar.bz2 22267 RMD160 d0f39d9eaae90980cca7de79a
DIST seamonkey-1.1.17.source.tar.bz2 38082419 RMD160 cc7ac7b80739537f340efa1ab543e878759ecde8 SHA1 81fea04abe908066311e5e13b268b078c45f577a SHA256 249eb89447658ef4d6974b784dd7ecfad9383924e3d7dc541d7f60525cee08a6
DIST seamonkey-1.1.18-patches-0.1.tar.bz2 21939 RMD160 8c4b268938d02eef8939e155cc4ee45d7d0db476 SHA1 cda3ad61328babe634711dae99d61d068f5803fc SHA256 9575879c9feff93cf2d4a631a9cc986e43c17acf75226782421fa3b6b9fe037b
DIST seamonkey-1.1.18.source.tar.bz2 36466846 RMD160 3a49321f5d0a6d897ff590849d8fde3aced4ec4e SHA1 11c154ea7f77f903449f3b8394678e0a2d64e7d2 SHA256 fa7f2b8a94297027cf0151847e52f6dbe031b21599218888c4629f08daec910f
+DIST seamonkey-2.0-be.xpi 493089 RMD160 ac4c823ee65485ac32254aab64f732b7da0f0f17 SHA1 291cb85d65a0ef7dbfc2370fe1e9bd75a723ddf1 SHA256 bfd965678c472d93d947a230cd6d6f9366e3547590d28bf0b7ae64730af8b924
+DIST seamonkey-2.0-ca.xpi 498856 RMD160 e8b67a38297e652a56172572d0d88b85d73874a4 SHA1 06e1c475924b7b796f4970325b61f3ad765826e7 SHA256 5efe47942881127a6f17bd7d243748541f7ccf413a1fc03cc0a81d9fd2a1c2ea
+DIST seamonkey-2.0-cs.xpi 533787 RMD160 82a348fe92ce42c33b8ec4d2fdd197b29477b9d4 SHA1 a2e2cd5744def87df926382b60d8c64768ffa402 SHA256 b992c6a2039e4f09a056f8295728dcbab20ae941571224d3c08b7ef34f0bc6f5
+DIST seamonkey-2.0-de.xpi 548440 RMD160 7c8ed0405cab72f23d7b4de15bd3656cfc6a74a4 SHA1 cd4c0f16766f2f00ed9550caf40df3e2cb8c3529 SHA256 ead560daf84a5d54c7e29fbb4732783f39cb77eed7275b247d2a49d01841711e
+DIST seamonkey-2.0-es-AR.xpi 500162 RMD160 229c8ff99b82f4a65bdfe7e28cf2c93cded098fb SHA1 b0100a59100c45e6b0a69a203af81f65cde3ec27 SHA256 512979f23f32ccdf8e3a83f7347992ff8324dc29dc28839334ec8ef9914402f9
+DIST seamonkey-2.0-es-ES.xpi 519758 RMD160 0aae308fd958f71e93c45c6f49111551e1adf9f4 SHA1 0f4a893692cf4a4b62730d9c9d7e924ffc7ec144 SHA256 78047822155ac06e58689e9bb2a56c78d0c126dfc2cd4d2612315325cc0264c9
+DIST seamonkey-2.0-fr.xpi 857289 RMD160 7d59289d085dc96de962a19bd3dd701e1436651b SHA1 3f3dbf042340534102c939f023ae877074cb0fdd SHA256 5820f519fbafe4c4922e7520b1037d655140735dd0139effe1966f3e4cfa54e7
+DIST seamonkey-2.0-gl.xpi 506673 RMD160 b3576b8c6edd241e7487458485f17ac735d7c443 SHA1 ac78b4c314d7a90544027a38edab842ea076d34c SHA256 487899b352be95f4db1ab1902fd626ea42d60009c701be21f70b3852728d8c4c
+DIST seamonkey-2.0-hu.xpi 1264809 RMD160 502b134768ac689d846aae15c050dcfe493b7913 SHA1 6de9415304d36622fea5695d574a99f647d1e437 SHA256 92315f0a8dbc2b670d6790190e6d77cd56070bf5cc4bbbc4c360de7342ac3b75
+DIST seamonkey-2.0-ka.xpi 769068 RMD160 d29acdd0cfc81b955a5d68d977051404bdaa36e5 SHA1 1e7e258b566d1a38d5ebe024c1d10735fbf0b7ac SHA256 47d16e52c9a6949cb0439f061ac3a75b6b50db745c2cfe7456de6e84c4137274
+DIST seamonkey-2.0-lt.xpi 892103 RMD160 08f039af18cd804a3519b9488340fc35ec82a753 SHA1 5f096ce1311fc5cdb9b196e4807ac777a776ffaa SHA256 967e4833f6db52522bd620a5b62475875f9fff74b6cf395b401e2b76f3fd8349
+DIST seamonkey-2.0-nb-NO.xpi 501910 RMD160 323cfadd5089c72c499df0ea70e4dd96a9ce51f8 SHA1 683ae02a268ab37d3160c66419748ed91b0dffd1 SHA256 9f4ca6bcdd5b291de7a432b07a1ea727a2d3d99b2a5be6c242b3059816427027
+DIST seamonkey-2.0-nl.xpi 1521294 RMD160 f59125998dd7e7a13ba949370c18722bece89d56 SHA1 ca24001f6daa7f51aa58611360bcbd07a2518f85 SHA256 1d0b6d1348cff9fd5c44dc5570917e26747635dd42a13bb9506b75394631da6e
DIST seamonkey-2.0-patches-0.1.tar.bz2 3743 RMD160 f6f548e55037eb412b36972991e54bf5f5f40b35 SHA1 4ccb0490ba4e087b0f0ac8718517c2450c65f9e2 SHA256 670f352931cde899d7c851acf0adb5e866d51f541586839329b3d4b2a1079cbc
+DIST seamonkey-2.0-pl.xpi 1603813 RMD160 1fd4ac99c76869b318c92cdce56dd29677b6de70 SHA1 bb39e44da4e2d6b3aa4fabd21e1be766a748f9df SHA256 d545f6392477727416dd995a995b92a359ab677dac779380cb6d2851e542e772
+DIST seamonkey-2.0-pt-PT.xpi 714698 RMD160 ae6f2c5716f28dfedca52bb51aa6f4bae526428d SHA1 6f4ab52582aad1470959dff93c08ae69969bce7b SHA256 66e4073f251d270ad8e24ea5d20b0d8ac6a7f99cd49498ad09fb80c87b813e04
+DIST seamonkey-2.0-ru.xpi 1091988 RMD160 89dfa30da3ce7acd3a83b92348c1b392ac4cece9 SHA1 253e34e7d895a5a451b7bb9b75ce905e1581baad SHA256 f028ac5f91801062675d0301e7976b0f3e2632b9907c20efa4b4374f5569bdc7
+DIST seamonkey-2.0-sk.xpi 1131920 RMD160 26a0e6245dd43d2f39ef52cbb9116d86a830b6f9 SHA1 09ef4a915ee6f6d36dd1a708724a08ddd43a87be SHA256 1f34238d43c0f35fa37c788353b064fa096f1b7cc93acfbde024907e673c9612
+DIST seamonkey-2.0-sv-SE.xpi 834679 RMD160 1e570e975926d4800afec066fc9f56ae37b949ea SHA1 1244418e6ce7fdfdaf62c8d6f460b6fd42f83724 SHA256 927da807c1a1421a81f4d1a72cb9644875591a054228e9eb6c71261b0ae7996b
+DIST seamonkey-2.0-tr.xpi 504536 RMD160 1624f907f7377cea52d111c03e8163e2f2779ce0 SHA1 a52cc9b72a3404269fb04bc016f97b2bb92e6944 SHA256 5d0f37494131320263cf0b3084b87469411641061269b251475925fecfa7e2ab
+DIST seamonkey-2.0.source.tar.bz2 60180430 RMD160 31af9a5b6c048464df38eade5bd3c0e80bfcd33e SHA1 8b877adab13abdbe28d8e23a48c702893144b4a6 SHA256 3ef2084262cd2f91863da6aa752bad73397f1a60363137d529ab8e8dfb020f1b
DIST seamonkey-2.0rc2-be.xpi 493089 RMD160 ac4c823ee65485ac32254aab64f732b7da0f0f17 SHA1 291cb85d65a0ef7dbfc2370fe1e9bd75a723ddf1 SHA256 bfd965678c472d93d947a230cd6d6f9366e3547590d28bf0b7ae64730af8b924
DIST seamonkey-2.0rc2-ca.xpi 498856 RMD160 e8b67a38297e652a56172572d0d88b85d73874a4 SHA1 06e1c475924b7b796f4970325b61f3ad765826e7 SHA256 5efe47942881127a6f17bd7d243748541f7ccf413a1fc03cc0a81d9fd2a1c2ea
DIST seamonkey-2.0rc2-cs.xpi 533787 RMD160 82a348fe92ce42c33b8ec4d2fdd197b29477b9d4 SHA1 a2e2cd5744def87df926382b60d8c64768ffa402 SHA256 b992c6a2039e4f09a056f8295728dcbab20ae941571224d3c08b7ef34f0bc6f5
@@ -37,6 +57,7 @@ DIST seamonkey-2.0rc2.source.tar.bz2 60121600 RMD160 37a1959bb7d9e6b7342ea53710a
EBUILD seamonkey-1.1.17-r1.ebuild 8479 RMD160 9ce43ce8119835838e7a79ba617ecd9c07af7cce SHA1 e088144a43fa9587f98cbb24372cd18bd9c79860 SHA256 8b3c3def0d72d83621e0712955fc602fb1e313677cbf40ac6410aca40dd8050e
EBUILD seamonkey-1.1.17.ebuild 8354 RMD160 50eae62f50873532a89027cdc627e1bc7d254e38 SHA1 b9a0922a0c56dc39ece97ed9d6dbd2669940cdfe SHA256 3c772e2c539f1bc218a86f243d47f3c79c402d278b6d8786058c6bed101d3b74
EBUILD seamonkey-1.1.18.ebuild 8466 RMD160 bb9a6edac01774c529f935debb12fe3035924448 SHA1 27d523923b685467a79ed5a9c9de68169011288c SHA256 ba5a5d1b72c4e157f8667e69457843b3ad6c02841c8cf75c67edb0752ef25938
+EBUILD seamonkey-2.0.ebuild 8904 RMD160 4b1d635e93f52f8152d743d5dacd82a37c8fa3c4 SHA1 f8c6ba5d5ff79e3f9074f47ea3c4a831026aedee SHA256 0ae9e2592b2225db39df0d0f8bdb46ea28091f73cbf1aac7831dc7455c12cf8f
EBUILD seamonkey-2.0_rc2-r1.ebuild 8776 RMD160 d278579aadf577c9485297be66881f39a0115072 SHA1 903519380007edad3ab6e21da97ca4b6adde3cf2 SHA256 72bd35274c105c1dd72d39a4cafa5b08c4b2207cd4549366b07a46e854edeeb6
-MISC ChangeLog 25575 RMD160 660393751d5cb0fd9110a1e67ae109b6f80ee46c SHA1 a231a092aea2675a77b6b1c351bb3f7c64241c50 SHA256 e5f09b9c6e3cce759ea86f8ac078b088d530614bf0a60b27e32d87cc29eabd86
+MISC ChangeLog 25736 RMD160 72be6f8eb7689564a15edc7b03c3b36a5696c548 SHA1 f89f329a5525787de37dccbcdad1cd3ff43be799 SHA256 ec3a420b5d37628fd8b0245d0a79b117c9ca5f8eb05010f3c3f2e4815c907d1c
MISC metadata.xml 1042 RMD160 a77a2a06dd8b4af016de40accb79393d348fb350 SHA1 2967637565b54d44d3f6636176837f5c0df43d19 SHA256 7761eb60277ce6e54b81cd8644b1daea7f96f664f00a0fca48fb07bee42c07ec
diff --git a/www-client/seamonkey/seamonkey-2.0.ebuild b/www-client/seamonkey/seamonkey-2.0.ebuild
new file mode 100644
index 000000000000..8a0f459798e7
--- /dev/null
+++ b/www-client/seamonkey/seamonkey-2.0.ebuild
@@ -0,0 +1,302 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/seamonkey-2.0.ebuild,v 1.1 2009/10/28 18:19:41 volkmar Exp $
+
+EAPI="2"
+WANT_AUTOCONF="2.1"
+
+inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib fdo-mime autotools mozextension java-pkg-opt-2
+
+PATCH="${PN}-2.0-patches-0.1"
+EMVER="0.97a0"
+
+LANGS="be ca cs de en-US es-AR es-ES fr gl hu ka lt nb-NO nl pl pt-PT ru sk sv-SE tr"
+NOSHORTLANGS="es-AR es-ES nb-NO pt-PT sv-SE"
+
+MY_PV="${PV/_rc/rc}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Seamonkey Web Browser"
+HOMEPAGE="http://www.seamonkey-project.org"
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+SLOT="0"
+LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
+IUSE="+alsa +crypt java ldap mozdevelop moznocompose moznoirc moznomail moznoroaming sqlite restrict-javascript"
+
+REL_URI="http://releases.mozilla.org/pub/mozilla.org/${PN}/releases"
+SRC_URI="${REL_URI}/${MY_PV}/source/${MY_P}.source.tar.bz2
+ http://dev.gentoo.org/~anarchy/dist/${PATCH}.tar.bz2
+ crypt? ( !moznomail? ( http://dev.gentoo.org/~anarchy/dist/enigmail-${EMVER}-20091011.tar.gz ) )"
+
+for X in ${LANGS} ; do
+ if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
+ SRC_URI="${SRC_URI}
+ linguas_${X/-/_}? ( ${REL_URI}/${MY_PV}/langpack/${MY_P}.${X}.langpack.xpi -> ${MY_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%%-*}? ( ${REL_URI}/${MY_PV}/langpack/${MY_P}.${X}.langpack.xpi -> ${MY_P}-${X}.xpi )"
+ fi
+ IUSE="${IUSE} linguas_${X%%-*}"
+ fi
+done
+
+RDEPEND="java? ( virtual/jre )
+ >=sys-devel/binutils-2.16.1
+ >=dev-libs/nss-3.12.2
+ >=dev-libs/nspr-4.8
+ alsa? ( media-libs/alsa-lib )
+ sqlite? ( >=dev-db/sqlite-3.6.10 )
+ >=app-text/hunspell-1.2
+ x11-libs/cairo[X]
+ x11-libs/pango[X]
+ crypt? ( !moznomail? ( >=app-crypt/gnupg-1.4 ) )"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ java? ( >=virtual/jdk-1.4 )"
+
+PDEPEND="restrict-javascript? ( www-plugins/noscript )"
+
+S="${WORKDIR}/comm-1.9.1"
+
+# 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
+
+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
+}
+
+src_unpack() {
+ unpack ${A}
+
+ linguas
+ for X in ${linguas}; do
+ # FIXME: Add support for unpacking xpis to portage
+ [[ ${X} != "en" ]] && xpi_unpack "${MY_P}-${X}.xpi"
+ done
+ if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
+ einfo "Selected language packs (first will be default): ${linguas}"
+ fi
+}
+
+pkg_setup() {
+ java-pkg-opt-2_pkg_setup
+
+ if use sqlite ; then
+ einfo
+ elog "You are enabling system sqlite. Do not file a bug with gentoo if you have"
+ elog "issues that arise from enabling system sqlite. All bugs will be concidered"
+ elog "invalid. All patches are welcomed to fix any issues that might be found with"
+ elog "system sqlite. If you are starting with a fresh profile you can enable sqlite"
+ elog "without any major issues."
+ epause 10
+ fi
+}
+
+src_prepare() {
+ java-pkg-opt-2_src_prepare
+
+ # Apply our patches
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ epatch "${WORKDIR}"
+
+ if use crypt && ! use moznomail; then
+ mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail
+ cd "${S}"/mailnews/extensions/enigmail || die
+ epatch "${FILESDIR}"/enigmail/70_enigmail-fix.patch
+ epatch "${FILESDIR}"/enigmail/0.95.0-replytolist.patch
+ makemake2
+ cd "${S}"
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ MEXTENSIONS=""
+
+ ####################################
+ #
+ # 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 moznoirc ; then
+ MEXTENSIONS="${MEXTENSIONS},-irc"
+ fi
+ if use moznoroaming ; then
+ MEXTENSIONS="${MEXTENSIONS},-sroaming"
+ fi
+
+ if ! use gnome ; then
+ MEXTENSIONS="${MEXTENSIONS},-gnomevfs"
+ fi
+
+ if use moznomail ; then
+ mozconfig_annotate '+moznomail' --disable-mailnews
+ fi
+
+ if use moznocompose ; then
+ if use moznoirc && use moznomail ; then
+ mozconfig_annotate '+moznocompose' --disable-composer
+ fi
+ fi
+
+ mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
+ mozconfig_annotate '' --enable-application=suite
+ mozconfig_annotate 'broken' --disable-mochitest
+ mozconfig_annotate 'broken' --disable-crashreporter
+ mozconfig_annotate '' --enable-system-hunspell
+ mozconfig_annotate '' --enable-system-sqlite
+ mozconfig_annotate '' --enable-image-encoder=all
+ mozconfig_annotate '' --enable-canvas
+ mozconfig_annotate '' --with-system-nspr
+ mozconfig_annotate '' --with-system-nss
+ mozconfig_annotate '' --enable-system-lcms
+ mozconfig_annotate '' --enable-oji --enable-mathml
+ mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks
+ mozconfig_annotate '' --disable-installer
+ mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
+
+ # Enable/Disable based on USE flags
+ mozconfig_use_enable alsa ogg
+ mozconfig_use_enable alsa wave
+ mozconfig_use_enable ldap
+ mozconfig_use_enable ldap ldap-experimental
+ mozconfig_use_enable sqlite system-sqlite
+ mozconfig_use_enable java javaxpcom
+
+ # Finalize and report settings
+ mozconfig_final
+
+ if [[ $(gcc-major-version) -lt 4 ]]; then
+ append-cxxflags -fno-stack-protector
+ fi
+
+ ####################################
+ #
+ # Configure and build
+ #
+ ####################################
+
+ # Work around breakage in makeopts with --no-print-directory
+ MAKEOPTS="${MAKEOPTS/--no-print-directory/}"
+
+ CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf
+}
+
+src_compile() {
+ # Should the build use multiprocessing? Not enabled by default, as it tends to break.
+ [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
+ emake ${jobs} || die
+
+ # Only build enigmail extension if conditions are met.
+ if use crypt && ! use moznomail; then
+ emake -C "${S}"/mailnews/extensions/enigmail || die "make enigmail failed"
+ emake -j1 -C "${S}"/mailnews/extensions/enigmail xpi || die "make enigmail xpi failed"
+ fi
+}
+
+src_install() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ declare emid
+
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ if use crypt && ! use moznomail; then
+ cd "${T}"
+ unzip "${S}"/mozilla/dist/bin/enigmail*.xpi install.rdf
+ emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
+
+ dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
+ cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid}
+ unzip "${S}"/mozilla/dist/bin/enigmail*.xpi
+ fi
+
+ linguas
+ for X in ${linguas}; do
+ [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${MY_P}-${X}"
+ done
+
+ local LANG=${linguas%% *}
+ if [[ -n ${LANG} && ${LANG} != "en" ]]; then
+ elog "Setting default locale to ${LANG}"
+ dosed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" \
+ ${MOZILLA_FIVE_HOME}/defaults/pref/suite-l10n.js || \
+ die "sed failed to change locale"
+ fi
+
+ # Install icon and .desktop for menu entry
+ newicon "${S}"/suite/branding/content/icon64.png seamonkey.png
+ domenu "${FILESDIR}"/icon/seamonkey.desktop
+
+ # Add StartupNotify=true bug 290401
+ if use startup-notification ; then
+ echo "StartupNotify=true" >> "${D}"/usr/share/applications/seamonkey.desktop
+ fi
+
+ # Add vendor
+ echo "pref(\"general.useragent.vendor\",\"Gentoo\");" \
+ >> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js
+
+ # Plugins dir
+ rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins || die "failed to remove existing plugins dir"
+ dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins
+
+ # shiny new man page
+ doman "${S}"/suite/app/${PN}.1
+}
+
+pkg_preinst() {
+ declare MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}"
+
+ if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then
+ rm ${MOZILLA_FIVE_HOME}/plugins -rf
+ fi
+}
+
+pkg_postinst() {
+ declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # Update mimedb for the new .desktop file
+ fdo-mime_desktop_database_update
+
+ if ! use moznoirc ; then
+ elog "chatzilla is now an extension which can be en-/disabled and configured via"
+ elog "the Add-on manager."
+ fi
+}