diff options
author | Nirbheek Chauhan <nirbheek@gentoo.org> | 2010-03-04 14:51:31 +0000 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@gentoo.org> | 2010-03-04 14:51:31 +0000 |
commit | 236078b6d06f456857f34a032c5c3ecc7ba01c0f (patch) | |
tree | 6a549e20e466f796baf9ce279bf69cc2ff9f4421 /www-client | |
parent | Automated update of use.local.desc (diff) | |
download | historical-236078b6d06f456857f34a032c5c3ecc7ba01c0f.tar.gz historical-236078b6d06f456857f34a032c5c3ecc7ba01c0f.tar.bz2 historical-236078b6d06f456857f34a032c5c3ecc7ba01c0f.zip |
Copy 2.0.3 bump from overlay. USE-flags have changed names, and USE=system-sqlite has been added
Package-Manager: portage-2.1.7.17/cvs/Linux i686
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/seamonkey/ChangeLog | 9 | ||||
-rw-r--r-- | www-client/seamonkey/Manifest | 29 | ||||
-rw-r--r-- | www-client/seamonkey/metadata.xml | 21 | ||||
-rw-r--r-- | www-client/seamonkey/seamonkey-2.0.3.ebuild | 277 |
4 files changed, 328 insertions, 8 deletions
diff --git a/www-client/seamonkey/ChangeLog b/www-client/seamonkey/ChangeLog index 0c9c5c6f1907..444c32b06464 100644 --- a/www-client/seamonkey/ChangeLog +++ b/www-client/seamonkey/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for www-client/seamonkey # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.211 2010/02/18 00:09:51 anarchy Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.212 2010/03/04 14:51:31 nirbheek Exp $ + +*seamonkey-2.0.3 (04 Mar 2010) + + 04 Mar 2010; Nirbheek Chauhan <nirbheek@gentoo.org> + +seamonkey-2.0.3.ebuild, metadata.xml: + Copy 2.0.3 bump from overlay. USE-flags have changed names, and + USE=system-sqlite has been added 18 Feb 2010; <anarchy@gentoo.org> +files/seamonkey-rebuild-databases.pl: Readd seamonkey-rebuild-databases.pl bug #302694 diff --git a/www-client/seamonkey/Manifest b/www-client/seamonkey/Manifest index cf8b17464c21..83cec28a608b 100644 --- a/www-client/seamonkey/Manifest +++ b/www-client/seamonkey/Manifest @@ -9,6 +9,7 @@ AUX seamonkey-1.1.17-fix-fno-strict-aliasing.patch 793 RMD160 07705e8c0bb41eb7af AUX seamonkey-rebuild-databases.pl 2344 RMD160 27ae162b4028d80faeb802e575b41590f6ab314e SHA1 678cec60179997d1957a0c8ecb50169985f0b4e2 SHA256 fde49923b949fc300040490e404a9f65b5777e8e7440fd8f0907d17b041fb2af DIST enigmail-0.96.0.tar.gz 1231329 RMD160 62fc1f4d8c5a12ca0b2e49f2aa7ddd28361e736f SHA1 ad9a28ab632a5480bd138a0f60e43a5c07a56646 SHA256 80ad781236f43d9a291205eefd92cf49e75a5836826198f46d3cb90b7eae09d1 DIST enigmail-1.0.0.tar.gz 1221348 RMD160 95ce3576033362de7ff3c82a15415e1275484c18 SHA1 22feb6e6cd592c4c67fd0d0b73ca6a340c3a09f2 SHA256 02469a399d1a06786151ef8a537ad21db37bbbeb5b3750c5edae6965f4b6339d +DIST enigmail-1.0.1.tar.gz 1201945 RMD160 2abd8e70fcfcd2e75e71a97a5a3c7d1e0c292666 SHA1 334e70723fffc0631dadb6fd4449afffdeafc3f2 SHA256 7bc8541eef483d67246f3d83682ba13263f001fa94b5982c0cfbe54e5bdfd32a 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-patches-0.1.tar.bz2 3743 RMD160 f6f548e55037eb412b36972991e54bf5f5f40b35 SHA1 4ccb0490ba4e087b0f0ac8718517c2450c65f9e2 SHA256 670f352931cde899d7c851acf0adb5e866d51f541586839329b3d4b2a1079cbc @@ -54,8 +55,32 @@ DIST seamonkey-2.0.2-sk.xpi 1132506 RMD160 30ef43b644916a054df2c586038a4ab01d3d1 DIST seamonkey-2.0.2-sv-SE.xpi 836093 RMD160 15d05165096aab1a49db4f501b458f0eed8a6e8a SHA1 87c764dcdbb9d5ed258b72bcf23150f26bb7ec5f SHA256 dbdc3f58b52678c6d413afadfe9eb69de9a1ab0cf891701eeedc4c5c548f0ac8 DIST seamonkey-2.0.2-tr.xpi 504547 RMD160 e51eaa7fd5aa57a9b95b2f8131d333b2b5267d49 SHA1 e0c1a15ce27d06f186c34abdc68a7c935c0efe7d SHA256 6932fff356b6f1b8344e55e388f0d2d6d3f0313c0aaa596d78c54389d24bbe7f DIST seamonkey-2.0.2.source.tar.bz2 60965381 RMD160 61868933334a76ac2686fe3b33506f677535e43d SHA1 2d84987a9bfdb43595d5042a18856f65363a3162 SHA256 85bbfd9cd718320893254ce9e106715780286a9de66ce2accdecaf6f8e39f8e9 +DIST seamonkey-2.0.3-be.xpi 482582 RMD160 81a0769e68de235eb1ccf349a089d2de0564140a SHA1 bbaf5a934baf939a2a71a9783d49c19d3ec86cc7 SHA256 755019d6c3a9a7bcf6b7d48cc84ed2b5a9b6b8d6d7deba1319d231dee193802b +DIST seamonkey-2.0.3-ca.xpi 488163 RMD160 f8524eb5dd3dc592cdd5d0ab8b3cfef2a7c2667f SHA1 89d4177a7534028cb39f1a4a1883bed6580fc0ec SHA256 e7b88f939c75ab6b65f253db9f97e8e6b1a833a607bba7bd17d73c0c821831e2 +DIST seamonkey-2.0.3-cs.xpi 522812 RMD160 f167f60e3f4d8ea08eb6fa0bc9a9ba2c1b30f8a8 SHA1 3c53cb405d89dca073e61d2512b40fa0d79c08ae SHA256 419d659f1e001e2c2214351a444ce8c33f2e27091631d8d8ce9727d75d0b0f68 +DIST seamonkey-2.0.3-de.xpi 542178 RMD160 b9d64882104997c81dd50a4e9091c09773aa1631 SHA1 6ae6e28fefad91fce60e9d77e3fce5bac48af859 SHA256 3c945fb6dba18f5857d13cc9c4359af69ebb596d687acba59919e2b2d9ea0ef4 +DIST seamonkey-2.0.3-es-AR.xpi 489528 RMD160 3d8235ad9b04e9105535911f0f1d4660279fe377 SHA1 a6ac7c8c7327f61b14b038cf84fd58971e8355a1 SHA256 87926db43ee97b47d8e07046831f14da696e56091e3d2aff5f57cff672096605 +DIST seamonkey-2.0.3-es-ES.xpi 509777 RMD160 838a4c80123b889f0774a778ee21b0571aebfb05 SHA1 f6f98e5c021d405f25c81d5deb1b78dcec2883e8 SHA256 f22ae77b117500b8fc3c30d954cd89cfb2f6cf113d8af2e58705b13611be26d5 +DIST seamonkey-2.0.3-fr.xpi 578861 RMD160 4290c060abd72556ffb3f066ca4e07e4667c760d SHA1 14b918691de66f5462b15f53b0d806f8af554bfe SHA256 d539e4e690717db276287917f630e9c9416dce6384d6c6b04df7ae9a7fc7464a +DIST seamonkey-2.0.3-gl.xpi 496024 RMD160 47269a9c28a21da52fa8de885eff36f5c0908693 SHA1 84356c1983f13b18247913d7b19ba6560b6acf1d SHA256 416482e0db929d95c48bd0d41dc88fce280bfd23eab0982409be450dd3fc2a1e +DIST seamonkey-2.0.3-hu.xpi 521391 RMD160 e69e21e30d198742946684fa94d0d0a1a79f3046 SHA1 5e12c0b3063468985bc9d8b8d02eedbc5cb6fea7 SHA256 aa5484c6dc16de19d2d445f8599986bfade28f3556cce0fcce8eace18d35ad27 +DIST seamonkey-2.0.3-it.xpi 468296 RMD160 fa1b4971c41e24fc8d1b1f90e0a9a9da2374ca58 SHA1 002bb914e0371c233d51305658324933ea65e3f3 SHA256 a3172be2d94082c702e8f3c5399b3a4fc75c6361f4f43b3ca2837cc2f7330299 +DIST seamonkey-2.0.3-ja.xpi 515502 RMD160 bc1bf4a357676c8fc1e9a14cd6445626b0793b66 SHA1 63b05f07f60b7babb25f92eb0c581dfea8eaa29a SHA256 c4653484a3eca51023379fd240eea7daed50508266e8c0a5a65e933bd98a3bf1 +DIST seamonkey-2.0.3-ka.xpi 547321 RMD160 336011152cc61c1f90eb33a22e25033293d25ccc SHA1 43ca10ec6617673a215b6b7fed9a5fed7f084ade SHA256 b9f8d71bbcf42dd835570d01ac76f51e48f2570a14d85cc033404e13b99c1db2 +DIST seamonkey-2.0.3-lt.xpi 522622 RMD160 08be9f9fc082a9990abf4e0e9e7557012d460012 SHA1 4f1d4f8f9d96b9ffca8f796a3ace9a72822f7a6a SHA256 3ff834dd6178af70105dacace6c10a43298f54741a2da99aba3f09bc9e26345f +DIST seamonkey-2.0.3-nb-NO.xpi 491230 RMD160 c79fd1b7b1ad8ffb7e3a6495e03291698400a08d SHA1 98d559caf65a99159ec53297132d78579a30fa23 SHA256 359baf36f893505a41342eedced744a28ea3b0eaa09d5bedab9e2d4d934a9f6a +DIST seamonkey-2.0.3-nl.xpi 497811 RMD160 653a7ed250f67551cd7621023326718eac21c1cb SHA1 20a4704457da7c07278c93ce663422342c4f21d5 SHA256 f4186aed454bf6d1c0ae8b435272f5104263c75531c6be0989447098d144c027 +DIST seamonkey-2.0.3-patches-0.1.tar.bz2 3231 RMD160 a1a0a78180092dac18df4a842883953739023b6b SHA1 a9a949cedeb23205a5f130ac57211b6cd21f6bf4 SHA256 f5f55805ec764fdd077b5d789f2d87e6a216325910b1bf59acfb31cb6abed5b8 +DIST seamonkey-2.0.3-pl.xpi 519690 RMD160 8abaee8b0c8a854b78c8b947d73e996a18ce1893 SHA1 61dbdc9282de247061d1f5a9ba8f299cf50c5dec SHA256 7b84cbfd56181d2e8756c96488bfa0d1353a95677b22458ac5b4e305ac3b628f +DIST seamonkey-2.0.3-pt-PT.xpi 490032 RMD160 e60049484a804902a06096b8fc82a4f26bce4f9d SHA1 53ad87612bbc8edc85b3f81163e57ceea0e4555f SHA256 d59596b7102b0d6919932c75f394b8c5019dcbf1d3511a6f1bbdeec76c2a40fd +DIST seamonkey-2.0.3-ru.xpi 560190 RMD160 161006898abe30a79a89180c42b6dd3b974e1e02 SHA1 025bb5cbda597c7fad2ca541492a5a21cf49a1aa SHA256 e724d2ff75786da03e8b438ef4abc5b8a03020f71c57b11f15c1c7b4cdcbf083 +DIST seamonkey-2.0.3-sk.xpi 525651 RMD160 31db0f550c770953bdf51b4bcb775886a0de0460 SHA1 e36c266f251ad155afb8c0d878fe5e214449fdb3 SHA256 65837dbb62caa60dc026db1bd52f91c5f76fda7cda53d48e33237ba7d5d2d5c1 +DIST seamonkey-2.0.3-sv-SE.xpi 508985 RMD160 b1e5287d116cccf3fe39cbab427ae0f0935a2daa SHA1 1c07d3ae2062d10369987def02d2507900371cb9 SHA256 fd7ce245920ae34101349ab71cc50bc4aa611139e095a97fd49718ca16867705 +DIST seamonkey-2.0.3-tr.xpi 493812 RMD160 effadc1492a0c54b6dfbba02302adb83963eb216 SHA1 fa44e05f6ce83ca1752a9e0b51d079cbec1fffbd SHA256 99e9121beea8b4d07f0be8e6a56567264f1d6a48c5e5841dfbaf2427b38c39a2 +DIST seamonkey-2.0.3.source.tar.bz2 60922373 RMD160 d19385263c2dfc5de63be389ae342041c7d34dfd SHA1 517bd1dd2ebb5bd856c8543f3f7f282681c241ce SHA256 a351f27178721a595d16a579c37bcbcadbb7b1a8bf6ea1dbcc0ea841b95bc063 EBUILD seamonkey-1.1.18.ebuild 8466 RMD160 bb9a6edac01774c529f935debb12fe3035924448 SHA1 27d523923b685467a79ed5a9c9de68169011288c SHA256 ba5a5d1b72c4e157f8667e69457843b3ad6c02841c8cf75c67edb0752ef25938 EBUILD seamonkey-2.0.1.ebuild 8732 RMD160 8b0481fa10642abe7729a812120720e619fbff99 SHA1 358b53bdb0d8a0611b45c8e85d85d3d98f6260cc SHA256 983c46a5dc02e039fa1bc157845ad4ea7f566c715b976055da2f995cdeb35804 EBUILD seamonkey-2.0.2.ebuild 8588 RMD160 e600524cdb5c7bf2f3716280ccf5c7b1b89da155 SHA1 44c71d62afd59e37557437dd50e148b90da03da5 SHA256 99e7c1d09201ac8e9975190af73fad3521edfdf81961bde9b7575ed279ade370 -MISC ChangeLog 26438 RMD160 f5b19958ba0f8585be074d359b263adbc6a779de SHA1 1b63f1dfd6a9e8def92f1092d1c78d4d47baccfa SHA256 2822409e4de05315531665fdcf07da676fae8c9a468d7dfa356368cb37ab2d77 -MISC metadata.xml 829 RMD160 c182a2e8ace91c991d48bfae65e6c0d0bd974c56 SHA1 4ba2c78927904fd63cbdf642ae398622e8473ec0 SHA256 e1a703d901609365077efc040066b327a6a7641c0a0cc8502fe4557374f550e9 +EBUILD seamonkey-2.0.3.ebuild 7972 RMD160 fa12ec535f23ba33d529e633d066921fbf2f957b SHA1 52046e2acc57b996da4f2511b5692192a8de49c9 SHA256 514ba85a99fd924f2339914a1f44efb05a4dd9e8d9ae069dce9fe7de564f8d31 +MISC ChangeLog 26668 RMD160 ded7a7fa6c533e1e582a49177a08d68e1441ba69 SHA1 f42dd12be8ee8a4d5a7f64db304293fbbe2cb035 SHA256 b7cde35660dd3ecc3ec2e0458f0e0b24d557dc61c7900399e0717252e2ccafb1 +MISC metadata.xml 1356 RMD160 1aea16789e85945b14424bbf4fe91498b777f143 SHA1 ce784292cc616b77c9e04b7a3f60955651de33ae SHA256 5c5db600e161f550345ea018fe5fe6b53c8e771a9352902381fef76f4cd94e3f diff --git a/www-client/seamonkey/metadata.xml b/www-client/seamonkey/metadata.xml index 0f6217ceff83..5ecea480459f 100644 --- a/www-client/seamonkey/metadata.xml +++ b/www-client/seamonkey/metadata.xml @@ -3,18 +3,29 @@ <pkgmetadata> <herd>mozilla</herd> <use> + <!-- New EAPI-1 style USE-flags --> + <flag name='chatzilla'>Build Mozilla's IRC client (default on)</flag> + <flag name='composer'>Build Mozilla's HTML editor component (default on)</flag> + <flag name='mailclient'>Build Mozilla's Mail client (default on)</flag> + <flag name='roaming'>Build sroaming extension support (default on)</flag> + + <!-- Old EAPI-0 USE-flags --> <flag name='mozdevelop'>Enable features for web developers (e.g. Venkman)</flag> - <flag name='moznocompose'>Disable building of mozilla's HTML editor + <flag name='moznocompose'>Disable building of Mozilla's HTML editor component</flag> - <flag name='moznoirc'>Disable building of mozilla's IRC client</flag> - <flag name='moznomail'>Disable building mozilla's mail client</flag> + <flag name='moznoirc'>Disable building of Mozilla's IRC client</flag> + <flag name='moznomail'>Disable building Mozilla's mail client</flag> <flag name='moznopango'>Disable <pkg>x11-libs/pango</pkg> during runtime</flag> <flag name='moznoroaming'>sroaming extension support</flag> - <flag name='xforms'>XForms is a standard to split up XHTML into XForms, - instance data, and user interface</flag> + + <!-- Other USE-flags --> <flag name='custom-optimization'>Fine-tune custom compiler optimizations</flag> + <flag name='system-sqlite'>Use the system-wide <pkg>dev-db/sqlite</pkg> + installation with secure-delete enabled</flag> + <flag name='xforms'>XForms is a standard to split up XHTML into XForms, + instance data, and user interface</flag> </use> </pkgmetadata> diff --git a/www-client/seamonkey/seamonkey-2.0.3.ebuild b/www-client/seamonkey/seamonkey-2.0.3.ebuild new file mode 100644 index 000000000000..28a43ef05f67 --- /dev/null +++ b/www-client/seamonkey/seamonkey-2.0.3.ebuild @@ -0,0 +1,277 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/seamonkey-2.0.3.ebuild,v 1.1 2010/03/04 14:51:31 nirbheek 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.3-patches-0.1" +EMVER="1.0.1" + +LANGS="be ca cs de en-US es-AR es-ES fr gl hu it ja 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 +chatzilla +composer +crypt java ldap +mailclient +roaming system-sqlite" + +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/~polynomial-c/${PATCH}.tar.bz2 + crypt? ( mailclient? ( http://www.mozilla-enigmail.org/download/source/enigmail-${EMVER}.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 ) + system-sqlite? ( >=dev-db/sqlite-3.6.22-r2[fts3,secure-delete] ) + >=app-text/hunspell-1.2 + >=x11-libs/gtk+-2.10.0 + >=x11-libs/cairo-1.8.8[X] + >=x11-libs/pango-1.14.0[X] + crypt? ( mailclient? ( >=app-crypt/gnupg-1.4 ) )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig + java? ( >=virtual/jdk-1.4 )" + +S="${WORKDIR}/comm-1.9.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() { + export BUILD_OFFICIAL=1 + export MOZILLA_OFFICIAL=1 + + java-pkg-opt-2_pkg_setup +} + +src_prepare() { + java-pkg-opt-2_src_prepare + + # Apply our patches + EPATCH_SUFFIX="patch" \ + EPATCH_FORCE="yes" \ + epatch "${WORKDIR}" + + if use crypt && use mailclient ; then + mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail + cd "${S}"/mailnews/extensions/enigmail || die + epatch "${FILESDIR}"/enigmail/70_enigmail-fix.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 chatzilla ; then + MEXTENSIONS="${MEXTENSIONS},-irc" + fi + if ! use roaming ; then + MEXTENSIONS="${MEXTENSIONS},-sroaming" + fi + + if ! use gnome ; then + MEXTENSIONS="${MEXTENSIONS},-gnomevfs" + fi + + if ! use composer ; then + if ! use chatzilla && ! use mailclient ; then + mozconfig_annotate '-composer' --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-jsd + 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 '' --with-system-bz2 + 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 java javaxpcom + mozconfig_use_enable ldap + mozconfig_use_enable ldap ldap-experimental + mozconfig_use_enable mailclient mailnews + mozconfig_use_enable system-sqlite + + # 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 mailclient ; 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 mailclient ; 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 + + # 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 our default prefs + sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo.js \ + > "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.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 chatzilla ; then + elog "chatzilla is now an extension which can be en-/disabled and configured via" + elog "the Add-on manager." + fi +} |