diff options
author | Jory Pratt <anarchy@gentoo.org> | 2009-10-23 02:40:36 +0000 |
---|---|---|
committer | Jory Pratt <anarchy@gentoo.org> | 2009-10-23 02:40:36 +0000 |
commit | 6931f8960cc1f3073ea482862e4d77529ee814a7 (patch) | |
tree | c1ea00492626b4b2b82b22655b2cd8e112e3bb8a /www-client/seamonkey | |
parent | Bump, fixes #278205 (diff) | |
download | historical-6931f8960cc1f3073ea482862e4d77529ee814a7.tar.gz historical-6931f8960cc1f3073ea482862e4d77529ee814a7.tar.bz2 historical-6931f8960cc1f3073ea482862e4d77529ee814a7.zip |
proxy commit for polynomal-c, update to 2.0-rc2 :)
Package-Manager: portage-2.1.7.1/cvs/Linux x86_64
Diffstat (limited to 'www-client/seamonkey')
-rw-r--r-- | www-client/seamonkey/ChangeLog | 9 | ||||
-rw-r--r-- | www-client/seamonkey/Manifest | 26 | ||||
-rw-r--r-- | www-client/seamonkey/files/enigmail/0.95.0-replytolist.patch | 23 | ||||
-rw-r--r-- | www-client/seamonkey/files/enigmail/70_enigmail-fix.patch | 11 | ||||
-rw-r--r-- | www-client/seamonkey/seamonkey-2.0_rc2.ebuild | 292 |
5 files changed, 359 insertions, 2 deletions
diff --git a/www-client/seamonkey/ChangeLog b/www-client/seamonkey/ChangeLog index 9c2e258e6948..ccd54fb0c193 100644 --- a/www-client/seamonkey/ChangeLog +++ b/www-client/seamonkey/ChangeLog @@ -1,6 +1,13 @@ # 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.204 2009/10/12 03:01:03 anarchy Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.205 2009/10/23 02:40:35 anarchy Exp $ + +*seamonkey-2.0_rc2 (23 Oct 2009) + + 23 Oct 2009; Jory A. Pratt <anarchy@gentoo.org> + +files/enigmail/0.95.0-replytolist.patch, +seamonkey-2.0_rc2.ebuild, + +files/enigmail/70_enigmail-fix.patch: + Update seamonkey-2, proxy commit for polynomal-c *seamonkey-2.0_rc1 (12 Oct 2009) diff --git a/www-client/seamonkey/Manifest b/www-client/seamonkey/Manifest index 4458e1a49b33..9d43206d43a6 100644 --- a/www-client/seamonkey/Manifest +++ b/www-client/seamonkey/Manifest @@ -1,4 +1,6 @@ AUX 10seamonkey 26 RMD160 156c113dfd25a106d5b72c4e6320bbf155d8775a SHA1 31aa4216dcb9140c625647c8654e2baefb3e9d1a SHA256 e3af11f2fefe5d7375b2ef136ab9f5de7d2f9a697b08f9a0744a49bac3fe2de7 +AUX enigmail/0.95.0-replytolist.patch 1173 RMD160 e3a4b616809b1f4b9f1cdcc38ae27bc6ce6cbeba SHA1 1a52599aa5c4c69b6d613623f273fe3c2bbbd447 SHA256 61dce6cc85d11186465ed5c28708978ae8761b848e1d76281d40ceb4f8d1a714 +AUX enigmail/70_enigmail-fix.patch 343 RMD160 a81caaa4cb6507b5a41b2593e26b984c8748a8b8 SHA1 7028cd7cf09c60325887fd0fb68a20ba3bb98b12 SHA256 895c5ffec6aa321290115f2c995658ae87f9bde027ac0414e5d76a7c9d451165 AUX google.src 706 RMD160 083b439d5aeb27cdf35345b043e7cf2cbf92d369 SHA1 462c353b64f8be172be7ca8778e1548ee339a934 SHA256 885e7a1a1ce41c3f199eca193277869d6634dd6fd5efae437d3e809d5b5ac80a AUX icon/seamonkey.desktop 154 RMD160 7e1712122cee7510bf058024338e0b75ea7a5e9a SHA1 6f5e33c702fbaa86974e139e398399927462e31e SHA256 78ebd5d753065f6ecf148a010cb59a4756a8c94447cfac6f4db502864bac5d8c AUX icon/seamonkey.png 4172 RMD160 d296c4d4e0920e4476f4c6c607946434202ad521 SHA1 f76213195e2dc002ff2e411ed0247d2624ce7b09 SHA256 7ffc1911a62b526702f3c991365dd8f18b6427c7e173456a101db4fb4c43ae59 @@ -6,6 +8,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.95.7.tar.gz 1198743 RMD160 3e8c2544547b6d76cd9b4d95e374fe4a2c333b66 SHA1 ab9cfe90b272f466d2c236b4998070a142d5b609 SHA256 8832e722c25aeb15cbfbcdc6f2994e63fc49e42b59773430f02e2d8dbf90e445 DIST enigmail-0.96.0.tar.gz 1231329 RMD160 62fc1f4d8c5a12ca0b2e49f2aa7ddd28361e736f SHA1 ad9a28ab632a5480bd138a0f60e43a5c07a56646 SHA256 80ad781236f43d9a291205eefd92cf49e75a5836826198f46d3cb90b7eae09d1 +DIST enigmail-0.97a0-20091011.tar.gz 1144792 RMD160 80eda9d460b9c22b01d8921323b4e5dceafe691d SHA1 c0b23a32b6ecc816659416ee136535e502064f54 SHA256 62e055527073cece5f47b8d9c19cb6a4800046331ed9b48c93970cc5636f6bfd DIST seamonkey-1.1.15-patches-0.1.tar.bz2 22267 RMD160 d0f39d9eaae90980cca7de79a1f73521fb713a5c SHA1 6b4c3f5dd128b2ac253947c9682a3d4a6d804b5a SHA256 542eddad41c08f1ede22e6fc3b81547ee39cdd4b8230c11cbd7c846284589447 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 @@ -29,9 +32,30 @@ DIST seamonkey-2.0rc1-ru.xpi 1091845 RMD160 d615134be6c8bfe5afb2ed051b219695486c DIST seamonkey-2.0rc1-sk.xpi 1127357 RMD160 7e8e8afcc6fed818a31e27d63683f5e2340727a9 SHA1 28d7fda8062a1dbb565c9545140a426f0284cadc SHA256 cbc2ca4fc4017d1c020216e94da11c6d610b534d2d941f6142683a97c2a65448 DIST seamonkey-2.0rc1-tr.xpi 504559 RMD160 a281a87e4f72c7a0180d3a0dbb92af49b78f7d7e SHA1 50b571d7697265d00720bfee9ae463fa8aad19a4 SHA256 b4b9c96297841202eb0072fcc7c12789385db932868c3380bbc01f878abf6b93 DIST seamonkey-2.0rc1.source.tar.bz2 60155107 RMD160 d39bca127080ccab56f8d75ee94e861b8d0037fa SHA1 6f14f2d319796bd460a3d292b58d7f67dcf5bfbb SHA256 aae11594de827d2299a2ffe0a9d7f8342be8db65e5efa00cb5934156fa82ce2f +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 +DIST seamonkey-2.0rc2-de.xpi 548440 RMD160 7c8ed0405cab72f23d7b4de15bd3656cfc6a74a4 SHA1 cd4c0f16766f2f00ed9550caf40df3e2cb8c3529 SHA256 ead560daf84a5d54c7e29fbb4732783f39cb77eed7275b247d2a49d01841711e +DIST seamonkey-2.0rc2-es-AR.xpi 500162 RMD160 229c8ff99b82f4a65bdfe7e28cf2c93cded098fb SHA1 b0100a59100c45e6b0a69a203af81f65cde3ec27 SHA256 512979f23f32ccdf8e3a83f7347992ff8324dc29dc28839334ec8ef9914402f9 +DIST seamonkey-2.0rc2-es-ES.xpi 519758 RMD160 0aae308fd958f71e93c45c6f49111551e1adf9f4 SHA1 0f4a893692cf4a4b62730d9c9d7e924ffc7ec144 SHA256 78047822155ac06e58689e9bb2a56c78d0c126dfc2cd4d2612315325cc0264c9 +DIST seamonkey-2.0rc2-fr.xpi 857289 RMD160 7d59289d085dc96de962a19bd3dd701e1436651b SHA1 3f3dbf042340534102c939f023ae877074cb0fdd SHA256 5820f519fbafe4c4922e7520b1037d655140735dd0139effe1966f3e4cfa54e7 +DIST seamonkey-2.0rc2-gl.xpi 506673 RMD160 b3576b8c6edd241e7487458485f17ac735d7c443 SHA1 ac78b4c314d7a90544027a38edab842ea076d34c SHA256 487899b352be95f4db1ab1902fd626ea42d60009c701be21f70b3852728d8c4c +DIST seamonkey-2.0rc2-hu.xpi 1264809 RMD160 502b134768ac689d846aae15c050dcfe493b7913 SHA1 6de9415304d36622fea5695d574a99f647d1e437 SHA256 92315f0a8dbc2b670d6790190e6d77cd56070bf5cc4bbbc4c360de7342ac3b75 +DIST seamonkey-2.0rc2-ka.xpi 769068 RMD160 d29acdd0cfc81b955a5d68d977051404bdaa36e5 SHA1 1e7e258b566d1a38d5ebe024c1d10735fbf0b7ac SHA256 47d16e52c9a6949cb0439f061ac3a75b6b50db745c2cfe7456de6e84c4137274 +DIST seamonkey-2.0rc2-lt.xpi 892103 RMD160 08f039af18cd804a3519b9488340fc35ec82a753 SHA1 5f096ce1311fc5cdb9b196e4807ac777a776ffaa SHA256 967e4833f6db52522bd620a5b62475875f9fff74b6cf395b401e2b76f3fd8349 +DIST seamonkey-2.0rc2-nb-NO.xpi 501910 RMD160 323cfadd5089c72c499df0ea70e4dd96a9ce51f8 SHA1 683ae02a268ab37d3160c66419748ed91b0dffd1 SHA256 9f4ca6bcdd5b291de7a432b07a1ea727a2d3d99b2a5be6c242b3059816427027 +DIST seamonkey-2.0rc2-nl.xpi 1521294 RMD160 f59125998dd7e7a13ba949370c18722bece89d56 SHA1 ca24001f6daa7f51aa58611360bcbd07a2518f85 SHA256 1d0b6d1348cff9fd5c44dc5570917e26747635dd42a13bb9506b75394631da6e +DIST seamonkey-2.0rc2-pl.xpi 1603813 RMD160 1fd4ac99c76869b318c92cdce56dd29677b6de70 SHA1 bb39e44da4e2d6b3aa4fabd21e1be766a748f9df SHA256 d545f6392477727416dd995a995b92a359ab677dac779380cb6d2851e542e772 +DIST seamonkey-2.0rc2-pt-PT.xpi 714698 RMD160 ae6f2c5716f28dfedca52bb51aa6f4bae526428d SHA1 6f4ab52582aad1470959dff93c08ae69969bce7b SHA256 66e4073f251d270ad8e24ea5d20b0d8ac6a7f99cd49498ad09fb80c87b813e04 +DIST seamonkey-2.0rc2-ru.xpi 1091988 RMD160 89dfa30da3ce7acd3a83b92348c1b392ac4cece9 SHA1 253e34e7d895a5a451b7bb9b75ce905e1581baad SHA256 f028ac5f91801062675d0301e7976b0f3e2632b9907c20efa4b4374f5569bdc7 +DIST seamonkey-2.0rc2-sk.xpi 1131920 RMD160 26a0e6245dd43d2f39ef52cbb9116d86a830b6f9 SHA1 09ef4a915ee6f6d36dd1a708724a08ddd43a87be SHA256 1f34238d43c0f35fa37c788353b064fa096f1b7cc93acfbde024907e673c9612 +DIST seamonkey-2.0rc2-sv-SE.xpi 834679 RMD160 1e570e975926d4800afec066fc9f56ae37b949ea SHA1 1244418e6ce7fdfdaf62c8d6f460b6fd42f83724 SHA256 927da807c1a1421a81f4d1a72cb9644875591a054228e9eb6c71261b0ae7996b +DIST seamonkey-2.0rc2-tr.xpi 504536 RMD160 1624f907f7377cea52d111c03e8163e2f2779ce0 SHA1 a52cc9b72a3404269fb04bc016f97b2bb92e6944 SHA256 5d0f37494131320263cf0b3084b87469411641061269b251475925fecfa7e2ab +DIST seamonkey-2.0rc2.source.tar.bz2 60121600 RMD160 37a1959bb7d9e6b7342ea53710a3c0b240578ca2 SHA1 bffb8e52a255a82bdc75dc4ac76de03f37a4f945 SHA256 878e248a6591deb80db060096c4bf29092e8d7972c4fc6e3f312a084ed850465 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_rc1.ebuild 8043 RMD160 cab52aa91a0ee29f3678c43b888481eb90195efc SHA1 d4926a77e2bc3d2744c1c5c3f67c22932990e51d SHA256 4fc1da48a98bf756d417c42d548b8fa96a340a5c53d94a64e07d9a974105341b -MISC ChangeLog 25113 RMD160 6e53cfd6c70e801711bfcfc4ac91dbc976c1b838 SHA1 ff97863a51a8aa55a5bddac6a95dd505251c835b SHA256 4f4a9e951d2aaf48c27e3e9944cbc4e4cf6a2103990f44bb736f5267ac02c848 +EBUILD seamonkey-2.0_rc2.ebuild 8616 RMD160 8e564397a70f383abdeeffb59d53cc159e40fb49 SHA1 cfa725c5a3f6fa9159c147289e7be69735ff3a2e SHA256 fb10cf59ab62b7de523bc2522cf370a4a393b27277ae7b4b7d93024156e77f5f +MISC ChangeLog 25361 RMD160 17cd19679921f9b7e88bb41d9f11de5c6b2f04e6 SHA1 f69980f9c2f91c6b51d99afa52155585fefb162e SHA256 ed1286eb00ae4fc780faaaaf573b2db65ec2a3d21c89999069b7ba46d2427e6b MISC metadata.xml 1042 RMD160 a77a2a06dd8b4af016de40accb79393d348fb350 SHA1 2967637565b54d44d3f6636176837f5c0df43d19 SHA256 7761eb60277ce6e54b81cd8644b1daea7f96f664f00a0fca48fb07bee42c07ec diff --git a/www-client/seamonkey/files/enigmail/0.95.0-replytolist.patch b/www-client/seamonkey/files/enigmail/0.95.0-replytolist.patch new file mode 100644 index 000000000000..6840f86ccdd4 --- /dev/null +++ b/www-client/seamonkey/files/enigmail/0.95.0-replytolist.patch @@ -0,0 +1,23 @@ +--- mailnews/extensions/enigmail/ui/content/enigmailMessengerOverlay.js.orig 2007-05-22 17:08:53.000000000 +0000 ++++ mailnews/extensions/enigmail/ui/content/enigmailMessengerOverlay.js 2007-05-22 17:09:32.000000000 +0000 +@@ -139,7 +139,8 @@ + // the following headers are added for compatibility with DispMUA extension: + "x-mimeole", + "x-bugzilla-reason", +- "x-php-bug" ]; ++ "x-php-bug", ++ "list-post" ]; + + var addHdr = []; + +--- mailnews/extensions/enigmail/package/prefs/enigmail.js.orig 2007-05-22 17:10:41.000000000 +0000 ++++ mailnews/extensions/enigmail/package/prefs/enigmail.js 2007-05-22 17:10:53.000000000 +0000 +@@ -69,7 +69,7 @@ + pref("extensions.enigmail.handleDoubleClick",false); + + // headers to be retrieved from the mail backend, but hidden from the users +-pref("extensions.enigmail.hideHeaders", "x-enigmail-version openpgp content-transfer-encoding x-mimeole x-bugzilla-reason x-php-bug"); ++pref("extensions.enigmail.hideHeaders", "x-enigmail-version openpgp content-transfer-encoding x-mimeole x-bugzilla-reason x-php-bug list-post"); + + // disable '<' and '>' around email addresses + pref("extensions.enigmail.hushMailSupport",false);
\ No newline at end of file diff --git a/www-client/seamonkey/files/enigmail/70_enigmail-fix.patch b/www-client/seamonkey/files/enigmail/70_enigmail-fix.patch new file mode 100644 index 000000000000..0acf0c8760ed --- /dev/null +++ b/www-client/seamonkey/files/enigmail/70_enigmail-fix.patch @@ -0,0 +1,11 @@ +--- mozilla/extensions/enigmail/package/Makefile.in 14 Mar 2004 16:39:18 -0000 1.73 ++++ mozilla/extensions/enigmail/package/Makefile.in 20 Mar 2004 18:20:08 -0000 +@@ -48,6 +48,8 @@ + + XPIDLSRCS = nsIEnigmail.idl + ++PREF_JS_EXPORTS=prefs/enigmail.js ++ + include $(topsrcdir)/config/rules.mk + + XPIFILE = $(XPI_MODULE)-$(XPI_MODULE_VERS).xpi diff --git a/www-client/seamonkey/seamonkey-2.0_rc2.ebuild b/www-client/seamonkey/seamonkey-2.0_rc2.ebuild new file mode 100644 index 000000000000..b91258936e2f --- /dev/null +++ b/www-client/seamonkey/seamonkey-2.0_rc2.ebuild @@ -0,0 +1,292 @@ +# 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_rc2.ebuild,v 1.1 2009/10/23 02:40:35 anarchy 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-central" + +# 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="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 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 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 +} |