summaryrefslogtreecommitdiff
path: root/www-client/seamonkey
diff options
context:
space:
mode:
Diffstat (limited to 'www-client/seamonkey')
-rw-r--r--www-client/seamonkey/Manifest70
-rw-r--r--www-client/seamonkey/files/0001-CFLAGS-must-contain-fPIC-when-checking-the-linker.patch35
-rw-r--r--www-client/seamonkey/files/all-gentoo-1.js19
-rw-r--r--www-client/seamonkey/files/firefox-Include-sys-sysmacros.h-for-major-minor-when-availab.patch59
-rw-r--r--www-client/seamonkey/files/seamonkey.desktop9
-rw-r--r--www-client/seamonkey/metadata.xml41
-rw-r--r--www-client/seamonkey/seamonkey-2.46-r1.ebuild391
-rw-r--r--www-client/seamonkey/seamonkey-2.48-r1.ebuild433
-rw-r--r--www-client/seamonkey/seamonkey-2.48.ebuild430
-rw-r--r--www-client/seamonkey/seamonkey-2.49.2.0_p0.ebuild443
-rw-r--r--www-client/seamonkey/seamonkey-2.49.3.0_p0.ebuild443
11 files changed, 2373 insertions, 0 deletions
diff --git a/www-client/seamonkey/Manifest b/www-client/seamonkey/Manifest
new file mode 100644
index 000000000000..2868b5d106f1
--- /dev/null
+++ b/www-client/seamonkey/Manifest
@@ -0,0 +1,70 @@
+AUX 0001-CFLAGS-must-contain-fPIC-when-checking-the-linker.patch 1195 SHA256 9dc045b14b3fa6c58800ee6baa9803a6a47c4636fd34001e448f60747c4e252a SHA512 8e922d39caf41fb2336f16812e016bbe3c4b94c964a2194aded313f9007cec15370da072dae8239d0b3b10092fc7d7f2ff4297babe0546c432489579477e550b WHIRLPOOL 66cf65866a67a51a0197bc80224c602a84c2de126a0b784b35b2233a4be2f946afb7f6e9152418b7a5bb9e4af96ac9a90896562e9c7d3d71e80c69ea1aa61aef
+AUX all-gentoo-1.js 957 SHA256 9a0a0f220719bfa7e03b9cb3a5ccdbc9c5d43f75b443eceed65a8f3cb43b21d5 SHA512 8280531443787d26ef482b1f4ddf33278884a35554ceec09877868f96350dce521119d300bdafa80bc529e99ce0cc597d06c2bc6b43d978a8035dedb7734c821 WHIRLPOOL ec20b2d7903200a7956c67e569d9906d1b252620c73eeb4162b655a3dd3e2c750d69f028fd1706adb560d76ca60487b656fe1de4dc910240a91fabc4f9afe395
+AUX firefox-Include-sys-sysmacros.h-for-major-minor-when-availab.patch 1827 SHA256 4af42f1fcc1d4a26834587d2572379562b690a606e8f0784c649272123e0161c SHA512 14d7f8138cf81507ed186ae496cb310d6b94a1e59a8ad64d237418291dc2a9ff757a966cfb6047fbe2017c2c2635699b8528e274cbf16f01cb8e7afb23fe5353 WHIRLPOOL 45a61b494c1edf0fa4d6846d3c243e866b1b9888e67c1131176d03b4500da7bd00d1e66d811dacdcebf46712907786e30f0a9c92bf36182cb120412a398a31d0
+AUX seamonkey.desktop 288 SHA256 52bbe7c5451b4aec22ca8a016e75899da2b3da07f69970f36a3a863d8f2dd846 SHA512 ff5087a8449de9c99ba80d16031901af839affbad55c55801c6d58ccf7d7822d3935508015fcd698f4ae3a8db26ff425108b9435bf6ce43211d6aacb417628c0 WHIRLPOOL 02fa8497f87a064e6df15a773b7b2f81078c85aaa0d50864c539411343c40b1657c7c3ee9b6be098c2c6a51b0cd176807f78463d2122d378788082f9cc31beba
+DIST chatzilla-SEA2_48_RELBRANCH.tar.bz2 440624 SHA256 267634b79b21fc5c78d3028620d2b844e5d09d43bd8a6f61c5416663201a6d53 SHA512 51a1eb638882a7feac3c6c854def2f81ba8fdaec91267ca94a41949c223743816ad5f548ca8c09be0328e9dcf9ea0170b9add42f09420c5fd4461c41bfcf74c1 WHIRLPOOL 11b9b487355134d981c60818a4bca02343a8254cda48144621dbf845288a154fe5b1b1cecfe54e6299e9c61c5292dfd00ea0c0f4cbe85fd7b489d9f0fb52c6df
+DIST dom-inspector-DOMI_2_0_17.tar.bz2 154940 SHA256 6559dd1492bcd83de647c0204d75e5f091c973dd3fa47b2750451c21b42cbef6 SHA512 1428d636a6618e834a7d6f4364e3772ac9baa7562351dff936b7cb0a0c306e72a62d60e20ea8a31e5384c322b93f3f09931cffc80983112eefaf191b66420e8f WHIRLPOOL 92481414dd1a407cf7bb160aad69d829b47883ac496d21e99a015cd23afe5909a19f7d0049bf6250ae27a0a83d5698be7828bd8e9379e2d0bbd1a37fbe70c701
+DIST enigmail-1.9.6.1.tar.gz 1745021 SHA256 3874331e981aed864443d3c965d856e003fd84f73e5a89fd5004ced9dc29b96f SHA512 e6ab69734a39a4953e0167e07b06f0d5c83fb42956515392319a1cd9d665ca274f6a12b4141e2dfa373ef074f0526f3d7330a48d29d600fc38f724d26518ff84 WHIRLPOOL e89b0e5857564cc2f7ebf3ab46b110c6bbb1b16e7c0e045750119fd02e693b9bd9667c2932e7a65f9c8fb2c7c835ed048f6df2613d12b25d961894f47f67cf48
+DIST enigmail-1.9.8.1.tar.gz 1776673 SHA256 4bcf2da00d96a67921b24dbec9f43930cba41112a2cd241b0952eb573c648a4d SHA512 af280040e96eb69529e723e52e65621e42743c974b0ed42598e73458004f0a59688da7257d2b556e95a56c4cad3ac48f527d4d9a7a54c9c92eaff132257e0cfd WHIRLPOOL 077c61b996c2ec45ecc3a037b61d167acda2ebdbde6536e2f2f2e180a064c9e540e09b48417454aa48f02af5f4c58c88f4ba456e6c5f113cfe474f2b82798ac0
+DIST firefox-49.0-patches-04.tar.xz 13356 SHA256 4968b4c6a0e326de587af6d389826dd29acd8b8eafc605f7636c637db0a64158 SHA512 3346cbe0146d6b480336c250c34c5be0a37cf9c7222238366794b4a03fb9c636ea22294cb517fc59826a0793a4a5723ff2f4cf85384fc405f1c1f14080458282 WHIRLPOOL b0bbf5f307f3d8467e40d76f58e28e0bbf9bed5398e3f17309b7bbdc310350d1d57b02596471b682b997d77bf89bcc3d748af5e0ff19e81a98ab33dcdf4f5210
+DIST firefox-51.0-patches-06.tar.xz 9604 SHA256 cb813576d1e784b72e973fd18d809088c6fd2a0e557c9413cfb7f0ea22b58700 SHA512 5fdc3913e6e4fb1427a051ba12c459bb5330e0712d5775b38281115a78e45e22f200e969ca3e82ac1c1fcfe5d27795d82e16ce15b8c5893bc102892876b2636b WHIRLPOOL bdea0d2f72b96f94bdf2d9487c94cfabcff49a955ca780af74aa0dfc12228d54da73028a6cf6c757133e8a28347d2108aba8cd2b11ab70419b39c067cc48d8ff
+DIST firefox-52.2-patches-02.tar.xz 12584 SHA256 3714ebf55a11cec435a42dad0e351a6648f345cda947cfdcce5d163e86af9c27 SHA512 e16d014c60f9c665e5bf1a5e9b7940b101a38f6af26970bd7c71cf0764a11d65816ad2fef2050fd6fc7b10835161d1babcb64c1b10eba1b0c7b3310fc40b57ef WHIRLPOOL 487a383e3db49c57e40c31524faf4d94fcd925b0680eb2ba5e2456a545c494625048f8894e48d4271ef7452ab538a249ac11d826fcf09b8e210fa831580a3b6b
+DIST firefox-52.2-patches-03.tar.xz 13148 SHA256 e2ab0acf173ef06874c6204a7ea77d11404dc70deca5d9edcee2e3a092ff4e60 SHA512 420dbeded3ff2f81250554416115a674ece1847db4449af9d09fa3ea5861037da9bd8525ce5bceede2abab1b58e06485e95417644c0ba8332eb076fbfed7cecd WHIRLPOOL be22652ab1fad0c55d3f3876d50f624d18b6472e7c292e96b5cb1f0e3672ef58fd41afbffd5ead912be1c15031595563eeacc2bea19673785fdde039f799e968
+DIST seamonkey-2.46-be.xpi 936650 SHA256 d97376ff92ffcdf04ec08273b60b8750d2c4f65edd71eed734313f72885f45db SHA512 a48caf48c0f705e991c31f6f0191662c99bcf022e9bec59b6caeaf03cec384f5b45c6a03af1103d0889fed2d19e57ff5c61fc67faad9cc1786993d0e9368a954 WHIRLPOOL 5cd5a26c3c7bfc02add5063a18f806ebaf58bde1d621bc3d7185edef776254674aba7c4925ab248158c21c5a90b19d156973f8b4a4ace821df60c9586617f3eb
+DIST seamonkey-2.46-ca.xpi 937577 SHA256 11adc88aab13826dbb7dd9374f877b80c87a085d75712c976173f243950292a6 SHA512 cf0d7c4829cae2baa064f8a68bfd827c6d596b9036d50e51f50a7d85faa7b1bd067c7dd84f7062affab6c1282186591c54f1cce60457e76924ae328eabca6505 WHIRLPOOL 80daf65a5d75038683f5a8c18f23c79d4f67c9daa7e7090aba8a9d7e610104dae890f45aa81a49a175542fd9c6fe08422f916e7d7d0854d12db7b346f0473be3
+DIST seamonkey-2.46-cs.xpi 936101 SHA256 4fae0f46a8ba83a72e6c7a50b7ba73153f153055b874fa3e857ebf6867a48ff3 SHA512 faa70bfbd6b8ecf3bf31ae7da164922ed4618558c62d8263b5655d285c932f0b3fd2e501397845276c4a2d0e519fcfd6d20bf7f0af5323cf5b1c1de94385766e WHIRLPOOL 4dba7015f5702871bf96b55def971c34c02212279c3f4fc1b75336547f11b03ee9c3d837472ddfbff77878cd96dafb43cafd406c4d9a4492ad4a68c3035e78bf
+DIST seamonkey-2.46-de.xpi 942796 SHA256 e6d000492fbb3aa1f7624dbb3a546742bd9badb67a9cee8a95fd8b8ead7ac0eb SHA512 c52da108c93f7b8b57d09315ab391b34033d51a8df0db5bd65b2c0c5be3ad5ce3b1cf1b1066472fe208bb7ad2e4f000ce9a4d17c209efa52bf3f22c672e29835 WHIRLPOOL 6387b9f75a66a857537727f051598dcbfb72487d494ba6c6946812b8b6a4d0f46e942d023e41e3ba3ddb3618b04bd49ceb1fe18d64be3b0f98a02b61788f4e05
+DIST seamonkey-2.46-en-GB.xpi 900232 SHA256 be1e956e11c4e36def6af6ee0c0795f5ec19e4370d811b6f3fdf60ed38f184c4 SHA512 879d1f0281d9e1232713377b5e1e2bd9ea91477f32c2cd50de823dfd6d7b5561b4597c4abba8e258ade561ec776a8f21839aff4b2be56ec54ad6cd510c7d1783 WHIRLPOOL 3de55e8b175727f4f68a6220d9725f07c04d95a6e01669209d853a504aabf2b0c971810152c7215738aa4fcc081a843f74ba5e13a9c2817485f9a32b8a5e22c2
+DIST seamonkey-2.46-es-AR.xpi 952318 SHA256 5b7a9da73fe69c9004487f844f97f5f18d3db79e49dd151ae9a6229545ef7d2c SHA512 7b943846d37d4f492fdf16feeeb4202f09efa38920b0fdc3db8235d1493a4eea8a066d38d08a3cf77ad02e21ceb680b0235762eafe8e5dc3ead666dd81b2406d WHIRLPOOL 6bf17c7cdbc6af7f7b1d4260e8c254def532a8f6303f337fc2d81ab1c4fec0d63c5555aeef9fcd87b1f5a692234c104bb529b7027488a9d2359a00645ffce63a
+DIST seamonkey-2.46-es-ES.xpi 881728 SHA256 da0c4b4e156965310ad4280c5ab461abd778b89e55d16a1f1ee78f692bbb76cb SHA512 f8a63bfcf888c98af238d4cbd54a377981c13f0bb1c4d1c9e845aec76fbbf319435e99538c56c89c506c7657c0e1f24fa4f269d6f44e916b5d60eecfd8a9755f WHIRLPOOL df43942c35fa0ed7b079e7de1ddffbd8be9401f614093c8e6976f66d26a9985ee85151050f76ed8a5258c5cc6e5878ae1cb78296bf5b17b9fc687194dfa03011
+DIST seamonkey-2.46-fi.xpi 905048 SHA256 9242710c283628b6e9f68eee0425e1f7b81d81be27c1d5c3dc441018751b1511 SHA512 e78b9c9acea5524ce90310915d28bcd31f5001267bf81362ffed1dbc19fcfdf65ff3d128ba0bb67b28dae29b0bdcc5e283dc8fbdba196cda4c339fcefa5b7ac7 WHIRLPOOL b6bec23569a982cfe94fa6f5d36437a319e744f45f6956b7885a772fd44602a9d043108753645f43578e2bd666f923101c53df76ef8b7c8e65246b7686048420
+DIST seamonkey-2.46-fr.xpi 945990 SHA256 e8e01037b879fe49e9dc042f27e08737083ac2bd7f9652ec2216d69f3de84ac9 SHA512 d68eedef674f61bb9bbf28c4b7b78ea5963537dfe5e13c4a9cd3277613df4a06c25d52e9ceafa319c25d2302b4c2a60c141e73478f9174449cfed55cd826c95b WHIRLPOOL c497b95bd828eaf0488bd487bc64acaf5ad37bdd440ffda36d25bdf9bdedfc5eff7aa57fdbc9a9feefcb8224240f7d15b72d03bcecdffdcc571d3d6462080a0b
+DIST seamonkey-2.46-gl.xpi 915640 SHA256 e10ed62becc1e090c1734434d4a48b403dadb75b2231b70b33e2f34666fa42fa SHA512 a3113eafd27129c8b18db7e1dfa6dd1c5581cb701bb569d9781215090f8c7e8112b083750c47d8233c23e4f78c09eb9903912a171a0076b4a7b99dbe03569bf8 WHIRLPOOL c4e60ff57a6d662dbaf3dffe37a653962345aa268eeebc768a4ddb478dd03b493d00398ebe94138ed27ca29d011bd4b1a38c16d34630244be0bcc5e84a9e5f07
+DIST seamonkey-2.46-hu.xpi 950137 SHA256 7366d80af72e1e5c46275b0f3f4efa36290b59ac2c24dc4b2debf06dbdc469fe SHA512 35f77886c5be124d5fdbb35f03a6917f87c29d8c29e874c68d99b0dc9880481a95677001b7560ab887a7604303e698c5a15c68831c344069663d9dae09794f97 WHIRLPOOL cd87441d1c318d6f73293792373a0c62f00e26fc78d76d56795b75bc65f055673b397bae5bff683fdf7a970620353021a9acd0d2dd95d8c0e5e140c28c6427e5
+DIST seamonkey-2.46-it.xpi 788290 SHA256 939162085a89575988fc44251f6f484bce087433bf06220fe94a3a3ef31a4279 SHA512 1c6fefe5cc0b371d367044135abcc5cc9b8c0c10cf2e745ec78dcc1d41413fff3ee8850b98df31cad34783a6219c615e8e90d2916009993a860f64eb5c2a363d WHIRLPOOL bdba059fd4f4920dcee7c7b92edf3e23c01560c642b8abb0ac03277f5b586eef5457b97aff9ae5382e868b9f06ae8ed6b75335a0e74469ff609a5fb58ed34b1f
+DIST seamonkey-2.46-ja.xpi 1000175 SHA256 b3f8a0e23cbd3e235d33d1fb083ff6b5b4d0abdd4697d89be444f90e657afea5 SHA512 29f3f6a862947baa132d4b45c58cce86e175906402a0440384d4e1d1e30ad4b30e2eac7f271d8b9dc2b5ebcd2646ecb252d4365703eaea5905a6e64db0ee9e81 WHIRLPOOL e86f59191b6366e76d9301cf69a17466d32cea8a21b4ff1469754a15ba813ad101e4c62a1c091cd64af6ff2d5ee38c028b41decc3e233b5ed1d699ed46481f00
+DIST seamonkey-2.46-lt.xpi 951611 SHA256 32ca1b4668234c96c161512e6e7a444d864229d86efdc89caafff5e1d882bd0d SHA512 dbb61a46407695d1644923ea822a4b32b05ea0e6657b9ad0c75bab97920fd33dd5ec8b3e5f8eeba3c5f2d34219e374bb66ea5bac82f6cf6226b6061f21b205b5 WHIRLPOOL 520eb0f92e8a828946f3e8ff4425b48eb475114d800a64aee4ce2e7c41698d7c52939b917f73bedad0ae57a2f14f31fbd82df3840a6ae29e294c1f5439a6dd60
+DIST seamonkey-2.46-nb-NO.xpi 921937 SHA256 20b93b1f9475fc97a9f86f48d2bbcdeca43015c2cfe62a5a7b4d204dee1d7e0f SHA512 d808ae3cc7d391611d78154f82c57fd92705481ec5ebafea9aa8bb9fce44302a3f5912ae5d9f0997f84eb7ef08faae666a0f4b14e57dca4b97bc458f8dd72ddb WHIRLPOOL 754ee843e0be9a118b7167858bc70e287059c5f7165f89f671f84c93e0090d750f2238eebbd97281d5f73801d3d844404f7d2acc5b6d5f2d5514b17e56381247
+DIST seamonkey-2.46-nl.xpi 926891 SHA256 eb9e84781c9c70411ccc199b8ccd6bf96729763ac09210d67d2dbe9178f9b8c4 SHA512 179280b6a549f6946eee21a58bca066a3181e6311328037fcec70d51bb0a191b3b1aaad118fb3c247c24f766c211e4470370535d2e4060a67dafbca1fe97f525 WHIRLPOOL c8cb41e47d33b9d676778120b7d3bf9c7256663607485eca8cdaaf29f96ab52473db82a33a529db19a978fbc8bb96c8d1c102613045a28ba22fc18e9df06227e
+DIST seamonkey-2.46-patches-01.tar.xz 768 SHA256 461e59a07ddf1d58a835a2b831054f477d24582e73bcbabf1693db2b4ac91365 SHA512 2bbf09c8285f9f1ef5e194da7c43a8d1bbd4f2366ba182c78a7be4f0c36f549eb8cfee5e42d2eea87ea5d6920b36196e901b31ddca94e792aa2d3fb28de097ad WHIRLPOOL 8d5f95f9ea391863b1dadd335efbc3f589d911133b6355c94e481876f3ddc85d3e60f2973024107c70ec806eb8187825fb8d105af8b95d08c52fad34f08aa3a8
+DIST seamonkey-2.46-patches-02.tar.xz 1352 SHA256 43633aaf982805a0ffd4adfe7a560073e108949c2b13dd00c58fa3e7b0b19da4 SHA512 d92f3df10a92581da345f440d338befe96e1b3c26da419f846b5b6c2903ddd494e48b37beec7eb854d3a863dd08fbe3f157f670e33dbeecefda4b7bf2bf9708b WHIRLPOOL 47bd1f90716bd10481992c156b52f3d068e584905a466c33c20b402d2019061778e15bb38ee4984ca9e084eb2a329ccb93bf08fd879963162d4f4650cae3ec80
+DIST seamonkey-2.46-pl.xpi 918214 SHA256 47a18be4d673bc8ef172b358512390d5bcfc6f81d1c2d327669aa135b2aec482 SHA512 fbb65a47f2e790e5ef3d7aa0134d25cd8a21b7ef3d4216b63c84ff9cf0c6e31b5611f56d88cff752317a337d497e96712ef533badfe87b0f8d9bde388a95d47a WHIRLPOOL 41c0aa607450284a374aaaf536547cde34eca48a1735d9ad90bfaecb9ac2bef7e808136d73d3c573986f10276fcba660160b404abd4b066f773cd01d3f7ca8ab
+DIST seamonkey-2.46-pt-PT.xpi 934340 SHA256 0ba281071038143950c64a03edaab7a37a4d284ed1583b50633ab58e393c7743 SHA512 99eae434fa4648e619c748a0b8ac2dbde07cdd6908a3720d764bb072e8788e28ec2e26690742730a1743819e90685da67f995c7aab80ec4fad8214891195250e WHIRLPOOL 0fb116985deb60de4c1dc6f916926b39a1d2c2a6da3330adc20a13e5c066120407e9c1def9d888cf68fdcd54876f4c8fd6754c656bebc534dcff0955ea5d76b0
+DIST seamonkey-2.46-ru.xpi 960162 SHA256 fd50c7fd8f291530f68af88424dffd15e59340cb854a1edc915d2d5dc548ec78 SHA512 d86e695835102c84716fec3ea2e4a411bb73d9ecd00bf0f6361f0095e2994a5392d89d79603345548cca33efec6c364931a9918a32692d09f126ebf6bf7db429 WHIRLPOOL 259ffe11d24fdc93bca404d2db9a0610cff97d95711b0552b5eee239d87a4a5b7eece562049abcf01b93b59963dc4357b417a1e2b971a8319bdc354d11b9fb1a
+DIST seamonkey-2.46-sk.xpi 962527 SHA256 124d643a414d595941cc5fd72c0529629df8f3ea15c0f16186e7e3d5550dca22 SHA512 501788051942c161f1c51a314cb03b352656ced7a4c062b4b1ddb7256297ef62dac234e06ecc6287f67c1761e391c477ff1046058546c7ab732a2286ca7f08fa WHIRLPOOL c3936091a1aedc214c4c8b5cda1e372b979d487220336ecb81f195798d1f00bab7f0b2b5000fd15e8c8d4dd33ace326d44c1eeacce577fded1a4c67df5dc07c0
+DIST seamonkey-2.46-sv-SE.xpi 935346 SHA256 6cadce5a8b40aaf1cc39157f5a9be3de5890d4b298082c11f9da1bdf43638869 SHA512 93d740e45bd9e461858ef9a6130e7c0c4591539931bcb8a356bc7fd82aa748de2114379fc311624346992a551eaa238fdf33d582a99d60ce5584b281518c923f WHIRLPOOL 8eac9b59097ecf363fbb9be0c8ca731d160932d21b07f1f36a7c61ca85cb191e438a50a158e4efbbf9e8ca13df18592a2026becba2d22a292733b3990a0332e2
+DIST seamonkey-2.46-tr.xpi 912742 SHA256 1ad81e539c119d4bcc9b4c15dc1a54d604ae8d999c3e7dbc112c2633dd914409 SHA512 a504255780691c4f091576b474ae58dc870b3e9e5f3021ba41c8cfe9c77d1657f9cf30a107ca5352af31427d15fccd93e433d156a16ea6eb7e5cb4cd66aa77c5 WHIRLPOOL f342d9af2b8b5a3af967ed38dbf38998fe3e45a1928b189ae5b6898db01e8bdb9ed2dc97df71e3cfea0105e3fe3da45a0769ea44283f20644b5d3b1f13d42472
+DIST seamonkey-2.46-uk.xpi 995478 SHA256 50be5f1fc5bf46133308185fee7f6761eca90550bbbb6d27ded3a0f81e2cfb81 SHA512 3ee7c892aea95b652edead2d4c041a01b0d7627399fde1575df5796a36e379413837717c184ffa430b9283f360f84af2d5def76337cf5ab1d78d8be3bbad88c1 WHIRLPOOL 3296c6d0a7a4c5f9593ce860421c5a652ef0d04a71420599af6499145902625c140ffeb370de73ea60364caf366844f60e434cffe6f9eaf40a3688b9e968461d
+DIST seamonkey-2.46-zh-CN.xpi 942579 SHA256 19e835ebb01e3c7c8bdd3aeee9105f18187fb7c588bf2e329db45c39acb4e5dc SHA512 b79032668894aef28f3934cb6be623f81f1c73f88aaa09545c0f5bc06f415e37338ccb9bfd418cb31203be113038bab04cc82f7994e53cb6bd8ee79ce72b9415 WHIRLPOOL ba7be304646ef35f705d36bb1d4f6157a5c82d9d83b0786a7989550bb31f76fd968457240e7d44a799c720f2f5f9428d1b22659f1b8fa41912fff0109ad3d77a
+DIST seamonkey-2.46-zh-TW.xpi 970970 SHA256 2fe7403370d70d4daa6a302fc24fc72a062cb9777acc672faf20f51f2ed73955 SHA512 1c735d6f4e9fdc9c09c270b7f653de12b2a2f8c0d60b8a229a6f15a303e074d5681f56514f8fd054e5d1ad67e3e516aaf5341e58cac85b3705ccb3034822b436 WHIRLPOOL 3d72a4e71ae8481c9d6a5062558b70c11129c54cd07fdc0d85ec015b211d45c7f63c39e340b3c5621187b0695ca0030c9a21c0f17ce116767b4176eda6f18d5d
+DIST seamonkey-2.46.source.tar.xz 204913776 SHA256 39c84ce6fa1ed7c30152473e0dcd858df07437e84b29e5a18973db437a28a912 SHA512 b70a40ad6797c82458436ce8e15d461bec982916a3ad5949610f2830647872f3b54a63fb62b17780c33e74c067054b590d0a5ebd0e836854a10e60feee692491 WHIRLPOOL 58ecf31535ce4890e4b3d93d75a5d436bfed35fc459d1c6237b0696ff90cfbc17e1fc18941f58358b3c3b628cc25aee1870f72094d20fecbc55298c12e50cf82
+DIST seamonkey-2.48-cs.xpi 929570 SHA256 a8b955affee247a1c541bcca68fa383444fcf5db37659da045f47c0f6451d351 SHA512 edaf752c349eff6b0b49e4c63e93b64027b9183ad2c30aab43bd2159ef3e0ca61d6ba0cca7d222372bb051163d9b62377de017b31ecb29e34b95e9eabab7ea83 WHIRLPOOL 0400b151e39d0e6dacac68bc6a6c055f4188d238eb99bfc26d9507492705f4b52be6f9ef16e7e197ee06c7a656144ca0218bf3e6774b5d1a6557d635e19e4926
+DIST seamonkey-2.48-de.xpi 937351 SHA256 66cf0338e5607582824dffbd71dd6d82954275501de50bca3ebe70a2462c2b8a SHA512 8a9ad75af63685b86e8c0a1191b83ea25d0c01870e700a2cf9b9a2c1f8793570320acae408f686699d19ec2467064582c8d5e4fa6220b40d02e928e7185a1797 WHIRLPOOL b7846922cc6cbed3ac566fc6e3324f507101cc5689ea061e17eb635281edfabc39cc0bf506b71a84918ad624977149ad383075553ff810c0d48bb025c46f09cf
+DIST seamonkey-2.48-en-GB.xpi 901731 SHA256 835dbdca2c0d40be3e76045ec04932f0fff8223030febf7533885b9ff9868067 SHA512 25a8eb0b532ab7becbf60dbf9e6720b389d820fb51805c5447161e55e52426344590b2efe92d7fd151b097e48cc148a712b6b18229a286fc42e8e0147620a685 WHIRLPOOL 9ee2f546daec2c9b16325678dbc032a70bf89807fa8b4cdad0125053fd9ef784aecf883692ce8ce26cac9e3e0533dbefe0620e7b626779ea97bda6548c4ad260
+DIST seamonkey-2.48-es-AR.xpi 941407 SHA256 78680bec36912e021ab35f144bd51c726dc9ce8031dbf7012bf9f2ef685872f4 SHA512 06802ad0e68255d6e0b2f216d71d806ac26c486f9b0c802e54604f842da5fb84cc073e35bb4fbed9f7d964a6a9c4f28041da2821ae70461a6837f0872697dc57 WHIRLPOOL e526aad56c54aaa16faad2811bf37e804574190140bed0cdf8878553c27bf4861ff125c3b2365bf7d130590c6a5cb4c90d855acef186c29dc8360b7884359dfc
+DIST seamonkey-2.48-es-ES.xpi 890255 SHA256 37702e2d54e965c6dffbd5c0c7bde9e4494ddfa9fc984136c826974a9fd253e5 SHA512 72d0fad247be52ddae72ef1265c84441677eaeb8f6633c21c9bd4b9f2b84898cd4ddbb46932e0dd041b4afbd04357b85e77e76b6e3533f6f55857a528c98f2f7 WHIRLPOOL 2b8d9c000f219754c8061935c43367bcb09c5a1ce8dbc39e850979c6549d1dfa24f6d3136147e3aced920b24e000e42a16b82a2d91c92783376130ac75b90e71
+DIST seamonkey-2.48-fr.xpi 957402 SHA256 f7a7c207878bfc84e9dd53f7111f00b7c297ad9c75c594ef4df4ddac532179a2 SHA512 ab5c57722026dd1abc1311cb3f72c452c3aaa6ade7a9737cdfeee6c97319b82a196d0ff79893e270e162a02c00aac67cbdcf7e9ba507d2a15844d47416db7a6a WHIRLPOOL fb00205bd4578494b4a091cd79cd9296211c05b9f97724314fd76cd107b58505fa31dce6bb541206f775f26bdd7de9528202b5870130c62c9e414876f0fac934
+DIST seamonkey-2.48-hu.xpi 943677 SHA256 2f1138ca9a9d1321dbe38d24cc0b6994a4a1569eb2bd4baebbcec00ed0e5355e SHA512 5f6bd359df25fa979a480f8c82ca2b0795a8c380075e2ac68290c939b48bb9cc0c6940166efe9dd2b24ce75b4b84e18ef781430ccca7ddda9d6141703fdeaec9 WHIRLPOOL 0bc0c7d95a3d130cc5daba4ae361c52d214dd0b8976d476706a178587d439e219dae63ca7189dd425371cb16ead898fb275641f6ffdf9806d9a6815e396f6295
+DIST seamonkey-2.48-it.xpi 783035 SHA256 f0084a1ce0681a1e3038597c6a77a2f3436b91166263f50b325a86cf9c708716 SHA512 c083aecefa5b77e3a7472fc40ac1627147037ba0a6f856d4d0c83ce848d2253acd2fadf80beaa68fd1f260e39cde675c0a26e00907ebb9b0f2f7443cab7edd35 WHIRLPOOL 89cc3c1ce60aae88002f608df9ed6718a9037f9eaa67e22d44c6e29e3dc2f4af4ae3a767e6b36ccde5561564c63a4f40d866811ac9cedf6f472955ef979be6f8
+DIST seamonkey-2.48-ja.xpi 1027353 SHA256 fb3029513e8fcf9713b5ad565e66ee6842d59822af509336e56b713373fce6bd SHA512 67172ad5d7c14f5d1f8dc66825d1ba328c5396bf3e2b18b0c12568fb7792d8ddd845e8212ee92ccc14519c7646d6170802633ce71fbfbb95bd575f9fb4304bfd WHIRLPOOL f018614bb361ccd139360c85ac8235e94be037e1bdaca2d4479b327de1e9f58cf98fd3cdfbe5a8bda550563b0d84b139c6ddd7a1159550a9697e95482177b7a4
+DIST seamonkey-2.48-lt.xpi 944779 SHA256 54ccbd5b07e8260462ec060135f969a10dd94569238958fd96bde55e0cf61056 SHA512 599a8d6295237237a2be5710faaa3ddf11789db0f9223415cc471dd864fd357ee56e173bc443b13a8e4414f2e571fea9556926fa423a4042edb74e9fcbc99547 WHIRLPOOL 1a547f9f3edaf7c3e8602527cd3dc3dc9ccae51dd3e0d366b1ed6516e1434db2f06c79b40ac42f2770b67db0320cf70e0f51ab9cd57619ffcb190ad498527344
+DIST seamonkey-2.48-nl.xpi 946317 SHA256 a2de7dcc53b7d0db496a8f1efab774fa603b4635a200fcf00cb503ebebb3227d SHA512 864526d3898171454e3a6acc199c8653348631e936d411bd9006da285706bd6500f83bda00d7ef8fcdb0223b626c78fc20fda47b1bed488637dc6fc74626119a WHIRLPOOL a9c50223d6976ecaded684a5e0a7d62e21bc5a5e32616906d41f7f7dd0d5421bd2ab2838e9788fa30843eb292e0ce16f79af826e89391f35ff1ff2ada9c7d925
+DIST seamonkey-2.48-pl.xpi 905621 SHA256 4083874a25597b833d4b9473f05bdac1f7de92d5f095793597a9fc855cb160b0 SHA512 cfa4cfa12d52b39fc8abdd57ad0438fcf613997fa28e0625eb2b15b2ac0d0851dfdc629161eac91534a42bc5b51108dd93733d89f094fb783be651015c15c03d WHIRLPOOL 5fb90db4ab9c67edfc5395354c31ab5f8b73751690194c5ef1ed28dec86fc929fd158394fe101801c7c45d2e55c3f6776906defc447fbceb5ee0ad0c62b1596c
+DIST seamonkey-2.48-pt-PT.xpi 928435 SHA256 2c22ee0372cebea03737f6b506a0aaf002e67be9ed26662f70204250964dc642 SHA512 86795aa2fcfa1b52973c132f230273c9ebe9c271f5be3f279ec43c76ff35fd45c8d3b72076748d71924711a4dc2c39b23fcdee88aa62a731f947ffdea9613051 WHIRLPOOL 09908f154cd07591eff559e890501d9ac9c4c8aa63e2d21326bbc8d1fc73c5fd72ac92ad0ef3790cb2cfca94847f783b9072adf6f93e87a076310f4ebdf92b32
+DIST seamonkey-2.48-ru.xpi 986167 SHA256 0ee69e3b81708004bb7c155b68343a80d15c60735a603207a86939ff7b033060 SHA512 a21b6647ebf91eae3ce8467d9b71d8a80a8478d7701dd777c0ab8d517e85fce6a06f0438e68a01c9439612ff3f51b6626be2c9c5cc637be5980d9870ee7ad813 WHIRLPOOL c586a913610bd7a4b6936f182854a838769cb2da7db01832cc0c7af1b9a2bf2a2188a39066791ade18b0697a8d49cc02aaaaa48b9bb61360614c6e2c3afcf183
+DIST seamonkey-2.48-sk.xpi 956279 SHA256 cc176898ef9cb67728f0ed3eae24336cf52582bf0144a894f3fa04fc71140861 SHA512 08d4c51cb6b23e522fb41f2cb507fd459afd4b02a9f27d5249b76a5e9105d48cd44c210d28e5a4575b0f9565e3c73c16c7f7136a65b006440183646e640c3761 WHIRLPOOL 270fb04dc96e23d7fb9716e1afa316f4d6f9a6a03fc315e8cffef0cd354c79085e23c835163ac7cee3d58ebc31e9d231d95d70e5444b0194bb5231577cf79b0f
+DIST seamonkey-2.48-sv-SE.xpi 930510 SHA256 831a4b42faa31f4006984269e2d6d3472a0f1450f92895fb8190c1719e2ff2c8 SHA512 098ffc81d2115f055b2cf4f5ef195e1f6bb58068d143225dba42dff00a5efb8d660641c4bd295f1bcccd3c032f6bdc940e20f9e4ba6aa7d3624cf61e9ee8440f WHIRLPOOL 019946480deb17c9a73886fa93e68eecdcaef46d7670d727c34dc6055e0a4b88a626c505c8ac3d4d19961499f303403ebb9668ce56030cb1abea061e00909cb9
+DIST seamonkey-2.48-zh-CN.xpi 934871 SHA256 991629043056dd722202116ef026aeb86a8615539aabf41a28b6a78da63eab7b SHA512 18485d34b90f3f619dde55c1772c5f4873a4efd5b828755eec28b20aa74d98050ccd206b19fa409ab6bea7f0053a94f2d684b54e19f763004fb752ad8e002d2c WHIRLPOOL cb8f4f34abd0eddd3f815c0b6d5efb30aa9cf7b29a2c1e948cd429befe732e6143bfb15b723cfab1c18eac7f18538ab33ee3ca4ba9c9eeae5ca8cd590cb78877
+DIST seamonkey-2.48-zh-TW.xpi 991735 SHA256 bb41ee50948baca9e78ae1ba0174046bde21d7bb823c6b365e32d7a8c6a9c50f SHA512 d14be0b9da910e3c7014c4ac9e6fc8270eb43176623280c55eec9e63c5fd0ce9b83db781cdbcd1eae67281fd09ad6dc2218df479e66076878c6bda12c2f2eeb3 WHIRLPOOL cc9bda10829ad4149e28b82f59580bc5d2a8d91c00c0e153bdb130be60e57f155df72929029f92c61ef444b5cea48bb47e10aa48615af4686e2dfc8370565c09
+DIST seamonkey-2.48.source.tar.xz 220412744 SHA256 6f9a07c86ba6474b44e5083f9d1315d01778c097937f7da4c5701debffab2631 SHA512 b1992a1dbaeb045aea10ff02aa214ec0c1725e3ad0844d2dffd1c0d0c26754fbd98b5fb5df25a2a490ebcb7a47037c61599b0a2e9240338b4e769e529faa33cf WHIRLPOOL ab0a2ee21efb8d446283ae1df6b2af8fe318fe5dbb41563c140f13f59780c8f252028019d9c181e0b0369201808dfe306058ac6fb5d7207cfbc241ba098ab7a6
+DIST seamonkey-2.49-l10n-sources-20170727.tar.xz 13871252 SHA256 73ad2bb8f1a48d9250d5825c318672e380f534672a9ae42dd7e4ea0506aff0e6 SHA512 6d5938ad16db53629a2e46a81a67827fafd33a00ff71ff6aaeb3151c2c29ae0e59b2f5e35f7d54b1a23882b7b85467202f62653510405fa1dac2ea4180130721 WHIRLPOOL 4e6960b0d065b60142baab1af37b5baed5bc3cddef79b12c689fe735bc4dea969e09756c09da22520600835a42df9f04f45fc8dfac7b92cc04251d403392b54a
+DIST thunderbird-52.2.0.source.tar.xz 228453944 SHA256 c65c66244ac113996002bcfa9e387f14291163cfb7009a9126e3a8d4a970e72d SHA512 e5c2ad5f7bbea4fb9abca94db6c149ee459c1c35b756b7840ee87b5fb631ccbcd323c743a12cddf8d504e0175bb93378beb7fe100b185ea6ab03a4968859ea89 WHIRLPOOL 54fb8bb90613a8debe3d5710e4d62acac20ed64c430de28b2910629d81dad1cfe894e6768065bf4a10e321ed2ab8d31fa7bcba775512414b2bb50c4939c304c6
+DIST thunderbird-52.3.0.source.tar.xz 228532004 SHA256 050acc320a9c50365a53e4faa6538a0ad7f9a302d5f2cfb6edf0c6fe1b573b18 SHA512 10e6495d207328aae325a797be1de5e535b5d967df929b0af9d7554d0473b5a7931c8f9cb1793e843b1913f441f790169dd4ac1ad9e0e53e66bc8e1c1dd60e66 WHIRLPOOL cd097157eb99a9b98aca63b259b77edcd1ceea5c150869fe485ab1219c1c84bcfbc7d70ecedca4b8733e8adf015ad0d5503db985b098207cd3b18497602c4223
+EBUILD seamonkey-2.46-r1.ebuild 11916 SHA256 4a5f3fe1194f18fa8d16064716f9479767953fd1399c3e268f74bde1e32c2d06 SHA512 46280b09685bcd166f53e27272d60804b68c7e347d0572d6285b6305acde294c6455e729f83a3ec9add1fffb432cc0e72f0247db42e8e435bb5531ff6ed3ae93 WHIRLPOOL 0b6f85084c8cabd7d2a7d9126fdd863b8eca01214f4cb9f8f899dea4c2bfdf366bb60e2c007c6777571bf397d6e365701dbc3de441bf7c95941424886d1a434d
+EBUILD seamonkey-2.48-r1.ebuild 13747 SHA256 e56f82de2e1fd222050d7a43c2889dc9abc28b1b6f47c4fded39f49d9a03b0de SHA512 4bd9722147e02b53b49f263b4606039e04c3a1d92f28f2b65523c314c03982e10e2102a85875a8a76c326598d69c7045d8ed4146b2f2071640dac3010699aea7 WHIRLPOOL 2c717e646b1471c63c4a76ce1b1bb04ed8d9ab93062591bfde7115456b35acfb7067606d78ac3431a8dc521401f5425ae4d5b7ebc5de95bcdd78ba0b485bbc2a
+EBUILD seamonkey-2.48.ebuild 13160 SHA256 86f97b92ed6573e8f6762db0c8fc13ae75df134548fc86b9fabddc098dbd073d SHA512 f6307112b3b19b6e3b39373f7662c4d2590f29bd04cc8f440b01f7e0f752cb279d1ee7a572e4d55afe6991548dd9ba0b34ec593d537f1672b7fe8531a91f8cdf WHIRLPOOL 03328d50142cd7e554e5ed9001fa4779b727419723696495572c5e30d199ef106adf5fb64aca8f589ffdd2528ca711cc7a9c31b465aa57d481961b55e9049973
+EBUILD seamonkey-2.49.2.0_p0.ebuild 14180 SHA256 73b281ac37a00b87ace1786ad963e7564c221a007710edd5d639ed298f925c5c SHA512 dece338c2d7133a7b8384ae27ffbc3f0e1a17dbc9794b9f1e9722a8e08dca5ead073a4bbe964e2c67f0bd3029781ef468845e500ed81f47799399ca128839613 WHIRLPOOL 31e14b0aa61a8477ed942fb497c0fd8579736a36c7498d606e218649ae084dc4d08e4dbdb9a49fe5fdab8213e102f06e8e221413967a270a441707e4ab871d78
+EBUILD seamonkey-2.49.3.0_p0.ebuild 14180 SHA256 a0838e9675a48cfe07bb4a5e5780fb59212fcaf9f97ddca897007bdf1ec3b0ee SHA512 2756514f92e2a6a2a9568b7f844734b5ad487ea6817861dae40073ac90da92692d78d59bd327b21bf50552dcd1e0c5ced4b1627cc1f4c72d24627464bb948912 WHIRLPOOL 48da0094ff27202b0e6a7c36340e248271298faf7bd5d4e789680cc2733f8c8b3994460909e1c81ea6330891de185c12e747b058db5562fc442e7be6764e8dac
+MISC ChangeLog 11213 SHA256 abe757580a51586d634fa9a611361737e808accf7d0c9c6d175f37cf4e286d58 SHA512 2f3513f706743f7747b5bab52667d5104cb15826e2a5e76bcd94ad05f2acc68d8aeefa7fa911256a50f2f2fc31a9afea9a73bccc9da631ee7cce4dfad38e94cd WHIRLPOOL f7cda18f1454a7d31545114ab6ab45a0f779df0a688b7846c47cbad77fcc00a077d43d8fed7b9846d2d42ca9e616b9fe8ebb6f96a6d20d14e77a3f3a109d1714
+MISC ChangeLog-2015 73394 SHA256 c5638cbe7c2bf361fb698cd748495737c896d196e104f5d42f793b01871e4aa7 SHA512 8720c0d267e9a96896a9cb6ba834809f8ad40bacab50c011147181b3963cf66b39496e6b68f63ccb813ee65e61250d60ce1066cb94dfdf26984ecbe029fc636e WHIRLPOOL 2c347db6fe835a40e2b8dae5154a8ae6e681b96adbe430feac53165771e276d968226c11abd353fa1e3205bb6c16437b05f2cc08b2e9d0a573a8330df1af8cd7
+MISC metadata.xml 2079 SHA256 95bd4c90e558fa9210b576af885bb7d33e81bcd3989d9973f81362ae4fb62b0b SHA512 1073fcf053c657d063f12c1683d61a936bd2edd2fcbf842d4f1b49610be1ec0cb9db521d710a4eee7d1eea951fa481a66d4421af7ad1aa38fbe27cea8ed9ed5c WHIRLPOOL 57a757c7102ddc7573b761989ca12ae23bb259197aea42b66ed3fc088653eb018ef164f3045a4287a293c1a7e5e469f84a8228d66b008ab8d58344a3e03f34b5
diff --git a/www-client/seamonkey/files/0001-CFLAGS-must-contain-fPIC-when-checking-the-linker.patch b/www-client/seamonkey/files/0001-CFLAGS-must-contain-fPIC-when-checking-the-linker.patch
new file mode 100644
index 000000000000..fe3130e33692
--- /dev/null
+++ b/www-client/seamonkey/files/0001-CFLAGS-must-contain-fPIC-when-checking-the-linker.patch
@@ -0,0 +1,35 @@
+From 4604a80b052456f20187d89e5c3e115ef0bb7251 Mon Sep 17 00:00:00 2001
+From: "Jory A. Pratt" <anarchy@gentoo.org>
+Date: Mon, 24 Jul 2017 06:10:11 -0500
+Subject: [PATCH] CFLAGS must contain -fPIC when checking the linker
+ https://bugs.gentoo.org/show_bug.cgi?id=607350
+
+Signed-off-by: Jory A. Pratt <anarchy@gentoo.org>
+---
+ mozilla/build/autoconf/compiler-opts.m4 | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/mozilla/build/autoconf/compiler-opts.m4 b/mozilla/build/autoconf/compiler-opts.m4
+index c12d400..639e99e 100644
+--- a/mozilla/build/autoconf/compiler-opts.m4
++++ b/mozilla/build/autoconf/compiler-opts.m4
+@@ -268,6 +268,8 @@ MOZ_ARG_ENABLE_BOOL(pie,
+
+ if test "$GNU_CC" -a -n "$MOZ_PIE"; then
+ AC_MSG_CHECKING([for PIE support])
++ _SAVE_CFLAGS=$CFLAGS
++ CFLAGS="$CFLAGS -fPIC"
+ _SAVE_LDFLAGS=$LDFLAGS
+ LDFLAGS="$LDFLAGS -pie"
+ AC_TRY_LINK(,,AC_MSG_RESULT([yes])
+@@ -275,6 +277,8 @@ if test "$GNU_CC" -a -n "$MOZ_PIE"; then
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([--enable-pie requires PIE support from the linker.]))
+ LDFLAGS=$_SAVE_LDFLAGS
++ CFLAGS=$_SAVE_CFLAGS
++
+ fi
+
+ AC_SUBST(MOZ_PROGRAM_LDFLAGS)
+--
+2.13.3
diff --git a/www-client/seamonkey/files/all-gentoo-1.js b/www-client/seamonkey/files/all-gentoo-1.js
new file mode 100644
index 000000000000..86b55cac5125
--- /dev/null
+++ b/www-client/seamonkey/files/all-gentoo-1.js
@@ -0,0 +1,19 @@
+pref("browser.display.use_system_colors", true);
+pref("general.smoothScroll", true);
+pref("general.useragent.vendor", "Gentoo");
+pref("general.useragent.vendorSub", "SEAMONKEY_PVR");
+pref("update_notifications.enabled", false);
+
+pref("app.update.enabled", false);
+pref("app.update.autoInstallEnabled", false);
+pref("browser.link.open_external", 3);
+pref("general.autoScroll", false);
+pref("browser.tabs.tabMinWidth", 15);
+pref("browser.backspace_action", 0);
+pref("accessibility.typeaheadfind", true);
+pref("browser.EULA.override", true);
+pref("intl.locale.matchOS", true);
+pref("general.useragent.locale", "chrome://global/locale/intl.properties");
+pref("extensions.autoDisableScopes", 0);
+pref("layout.css.dpi", 0);
+pref("browser.tabs.mouseScrollAdvancesTab", 0);
diff --git a/www-client/seamonkey/files/firefox-Include-sys-sysmacros.h-for-major-minor-when-availab.patch b/www-client/seamonkey/files/firefox-Include-sys-sysmacros.h-for-major-minor-when-availab.patch
new file mode 100644
index 000000000000..9a3dad17058a
--- /dev/null
+++ b/www-client/seamonkey/files/firefox-Include-sys-sysmacros.h-for-major-minor-when-availab.patch
@@ -0,0 +1,59 @@
+From 5679a9daa463bd038883afe69332ef3807c41442 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Wed, 1 Feb 2017 18:48:02 +0100
+Subject: [PATCH] Include sys/sysmacros.h for major(), minor() when available
+
+Include sys/sysmacros.h explicitly as that will be required by future
+glibc versions to expose major() and minor() macros.
+
+Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1329798
+---
+ build/moz.configure/headers.configure | 4 ++++
+ config/system-headers | 1 +
+ xpcom/io/nsLocalFileUnix.cpp | 3 +++
+ 3 files changed, 8 insertions(+)
+
+diff --git a/build/moz.configure/headers.configure b/build/moz.configure/headers.configure
+index 52ffa2f89..53ca44ca4 100644
+--- a/build/moz.configure/headers.configure
++++ b/build/moz.configure/headers.configure
+@@ -57,6 +57,10 @@ check_headers(
+ check_header('sys/queue.h',
+ when=non_msvc_compiler)
+
++# sys/sysmacros.h may be necessary for major()/minor() macros
++check_header('sys/sysmacros.h',
++ when=non_msvc_compiler)
++
+ check_headers(
+ 'sys/types.h',
+ 'netinet/in.h',
+diff --git a/config/system-headers b/config/system-headers
+index 60788e788..984e86933 100644
+--- a/config/system-headers
++++ b/config/system-headers
+@@ -1055,6 +1055,7 @@ sys/statvfs.h
+ sys/syscall.h
+ sys/sysctl.h
+ sys/sysinfo.h
++sys/sysmacros.h
+ sys/sysmp.h
+ sys/syssgi.h
+ sys/system_properties.h
+diff --git a/xpcom/io/nsLocalFileUnix.cpp b/xpcom/io/nsLocalFileUnix.cpp
+index 6f13e2a7d..be7bf4de2 100644
+--- a/xpcom/io/nsLocalFileUnix.cpp
++++ b/xpcom/io/nsLocalFileUnix.cpp
+@@ -30,6 +30,9 @@
+ #define BLOCK_SIZE 1024 /* kernel block size */
+ #endif
+ #endif
++#if defined(HAVE_SYS_SYSMACROS_H)
++#include <sys/sysmacros.h>
++#endif
+
+ #include "xpcom-private.h"
+ #include "nsDirectoryServiceDefs.h"
+--
+2.11.0
+
diff --git a/www-client/seamonkey/files/seamonkey.desktop b/www-client/seamonkey/files/seamonkey.desktop
new file mode 100644
index 000000000000..780561f4bba2
--- /dev/null
+++ b/www-client/seamonkey/files/seamonkey.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=SeaMonkey
+Comment=SeaMonkey Suite
+Exec=seamonkey %u
+Icon=seamonkey
+Terminal=false
+Type=Application
+MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
+Categories=Network;WebBrowser;
diff --git a/www-client/seamonkey/metadata.xml b/www-client/seamonkey/metadata.xml
new file mode 100644
index 000000000000..55f5ffc68186
--- /dev/null
+++ b/www-client/seamonkey/metadata.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>mozilla@gentoo.org</email>
+ <name>Gentoo Mozilla Team</name>
+ </maintainer>
+ <use>
+ <flag name="calendar">Build Mozilla's calendar</flag>
+ <flag name="chatzilla">Build Mozilla's IRC client (default on)</flag>
+ <flag name="custom-optimization">Build with user-specified compiler optimizations
+ (-Os, -O0, -O1, -O2, -O3) from CFLAGS (unsupported)</flag>
+ <flag name="gmp-autoupdate">Allow Gecko Media Plugins (binary blobs) to be automatically
+ downloaded and kept up-to-date in user profiles</flag>
+ <flag name="gtk3">Use the cairo-gtk3 rendering engine</flag>
+ <flag name="force-gtk3">Use the cairo-gtk3 rendering engine</flag>
+ <flag name="ipc">Use inter-process communication between tabs and plugins.
+ Allows for greater stability in case of plugin crashes</flag>
+ <flag name="jemalloc">Enable or disable jemalloc</flag>
+ <flag name="roaming">Build roaming extension support (default on)</flag>
+ <flag name="skia">Enable the SKIA engine for 2D rendering as an alternative to cairo</flag>
+ <flag name="system-cairo">Use the system-wide <pkg>x11-libs/cairo</pkg>
+ instead of bundled.</flag>
+ <flag name="system-harfbuzz">Use the system-wide <pkg>media-libs/harfbuzz</pkg>
+ instead of bundled.</flag>
+ <flag name="system-icu">Use the sytem-wide <pkg>dev-libs/icu</pkg>
+ instead of bundled.</flag>
+ <flag name="system-jpeg">Use the system-wide <pkg>media-libs/libjpeg-turbo</pkg>
+ instead of bundled.</flag>
+ <flag name="system-libevent">Use the system-wide <pkg>dev-libs/libevent</pkg>
+ instead of bundled.</flag>
+ <flag name="system-libvpx">Use the system-wide <pkg>media-libs/libvpx</pkg>
+ instead of bundled.</flag>
+ <flag name="system-sqlite">Use the system-wide <pkg>dev-db/sqlite</pkg>
+ installation with secure-delete enabled</flag>
+ </use>
+</pkgmetadata>
diff --git a/www-client/seamonkey/seamonkey-2.46-r1.ebuild b/www-client/seamonkey/seamonkey-2.46-r1.ebuild
new file mode 100644
index 000000000000..13cdff31c035
--- /dev/null
+++ b/www-client/seamonkey/seamonkey-2.46-r1.ebuild
@@ -0,0 +1,391 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WANT_AUTOCONF="2.1"
+
+# This list can be updated with scripts/get_langs.sh from the mozilla overlay
+# note - could not roll langpacks for: ca fi
+MOZ_LANGS=(be ca cs de en-GB 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_PV="${MOZ_PV/_p[0-9]}"
+MOZ_P="${P}"
+MY_MOZ_P="${PN}-${MOZ_PV}"
+
+if [[ ${PV} == *_pre* ]] ; then
+# the following are for upstream build candidates
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}"
+ MOZ_LANGPACK_PREFIX="linux-i686/xpi/"
+ SRC_URI+=" ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz"
+ S="${WORKDIR}/${MY_MOZ_P}"
+ # And the langpack stuff stays at eclass defaults
+# the following is for self-rolled releases
+ #MOZ_HTTP_URI="https://dev.gentoo.org/~axs/distfiles"
+ #MOZ_LANGPACK_PREFIX="${MY_MOZ_P}."
+ #MOZ_LANGPACK_SUFFIX=".langpack.xpi"
+ #SRC_URI="${SRC_URI}
+ #${MOZ_HTTP_URI}/${P}.source.tar.xz
+ #"
+elif [[ ${PV} == *_p[0-9] ]]; then
+ # gentoo-unofficial release using thunderbird distfiles to build seamonkey instead
+ TB_MAJOR=45
+ SMPV="${PV%.[0-9].*}"
+ MOZ_P="${PN}-${SMPV}"
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/thunderbird/releases/${MOZ_PV/${SMPV}/${TB_MAJOR}}"
+ MOZ_GENERATE_LANGPACKS=1
+ S="${WORKDIR}/thunderbird-${MOZ_PV/${SMPV}/${TB_MAJOR}}"
+ SRC_URI="${SRC_URI}
+ ${MOZ_HTTP_URI}/source/${MY_MOZ_P/${MOZ_P}/thunderbird-${TB_MAJOR}}.source.tar.xz
+ https://dev.gentoo.org/~axs/distfiles/${PN}-2.42.3.0-l10n-sources.tar.xz
+ https://dev.gentoo.org/~axs/distfiles/chatzilla-2.42.tar.xz
+ https://dev.gentoo.org/~axs/distfiles/dom-inspector-2.0.16.tar.xz
+ "
+else
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases/${MOZ_PV}"
+ MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}."
+ MOZ_LANGPACK_SUFFIX=".langpack.xpi"
+ S="${WORKDIR}/${PN}-${MOZ_PV}"
+ SRC_URI="${SRC_URI}
+ ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz
+ "
+fi
+
+MOZCONFIG_OPTIONAL_GTK3=1
+MOZCONFIG_OPTIONAL_WIFI=1
+MOZCONFIG_OPTIONAL_JIT="enabled"
+inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-v6.49 multilib pax-utils fdo-mime autotools mozextension nsplugins mozlinguas-v2
+
+PATCHFF="firefox-49.0-patches-04"
+PATCH="${PN}-2.46-patches-02"
+EMVER="1.9.6.1"
+
+DESCRIPTION="Seamonkey Web Browser"
+HOMEPAGE="http://www.seamonkey-project.org"
+KEYWORDS="~alpha amd64 ~arm ~ppc ~ppc64 x86"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+IUSE="+calendar +chatzilla +crypt +gmp-autoupdate +ipc minimal pulseaudio +roaming selinux test"
+
+SRC_URI+="
+ https://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCH}.tar.xz
+ https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz
+ crypt? ( https://www.enigmail.net/download/source/enigmail-${EMVER}.tar.gz )"
+
+ASM_DEPEND=">=dev-lang/yasm-1.1"
+
+RDEPEND=">=dev-libs/nss-3.25
+ >=dev-libs/nspr-4.12
+ crypt? ( || (
+ ( >=app-crypt/gnupg-2.0
+ || (
+ app-crypt/pinentry[gtk]
+ app-crypt/pinentry[qt5]
+ app-crypt/pinentry[qt4]
+ )
+ )
+ =app-crypt/gnupg-1.4* ) )"
+
+DEPEND="${RDEPEND}
+ !elibc_glibc? ( !elibc_uclibc? ( !elibc_musl? ( dev-libs/libexecinfo ) ) )
+ crypt? ( dev-lang/perl )
+ amd64? ( ${ASM_DEPEND}
+ virtual/opengl )
+ x86? ( ${ASM_DEPEND}
+ virtual/opengl )"
+
+BUILD_OBJ_DIR="${S}/seamonk"
+
+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
+}
+
+pkg_pretend() {
+ # 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
+ eapply "${WORKDIR}"/seamonkey
+
+ # browser patches go here
+ pushd "${S}"/mozilla &>/dev/null || die
+ rm -f "${WORKDIR}"/firefox/2000-firefox_gentoo_install_dirs.patch
+ eapply "${WORKDIR}"/firefox
+ popd &>/dev/null || die
+
+ # 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}"
+ done
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_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 old-configure.in
+ cd "${S}"/mozilla || die
+ eautoconf old-configure.in
+ cd "${S}"/mozilla/js/src || die
+ eautoconf old-configure.in
+ cd "${S}"/mozilla/memory/jemalloc/src || die
+ WANT_AUTOCONF= eautoconf
+}
+
+src_configure() {
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ MEXTENSIONS="default"
+ # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
+
+ ####################################
+ #
+ # 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"
+ fi
+ if ! use roaming ; then
+ MEXTENSIONS+=",-sroaming"
+ fi
+
+ # Setup api key for location services
+ echo -n "${_google_api_key}" > "${S}"/google-api-key
+ mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key"
+
+ mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
+
+ # Other sm-specific settings
+ mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
+ mozconfig_annotate '' --enable-safe-browsing
+ mozconfig_use_enable calendar
+
+ mozlinguas_mozconfig
+
+ # Use an objdir to keep things organized.
+ echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig
+ echo "mk_add_options XARGS=/usr/bin/xargs" >> "${S}"/.mozconfig
+
+ # Finalize and report settings
+ mozconfig_final
+
+ if use crypt ; then
+ pushd "${WORKDIR}"/enigmail &>/dev/null || die
+ econf
+ popd &>/dev/null || die
+ fi
+
+ # 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
+
+ # workaround for funky/broken upstream configure...
+ SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \
+ emake V=1 -f client.mk configure
+}
+
+src_compile() {
+ MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \
+ emake V=1 -f client.mk
+
+ mozlinguas_src_compile
+
+ # Only build enigmail extension if conditions are met.
+ if use crypt ; then
+ einfo "Building enigmail"
+ pushd "${WORKDIR}"/enigmail &>/dev/null || die
+ emake -j1
+ emake xpi
+ popd &>/dev/null || die
+ fi
+}
+
+src_install() {
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ DICTPATH="\"${EPREFIX}/usr/share/myspell\""
+
+ local emid
+ cd "${BUILD_OBJ_DIR}" || die
+
+ # Pax mark xpcshell for hardened support, only used for startupcache creation.
+ pax-mark m "${BUILD_OBJ_DIR}/dist/bin/xpcshell"
+
+ # Copy our preference before omnijar is created.
+ sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \
+ "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ # Set default path to search for dictionaries.
+ echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \
+ >> "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ echo 'pref("extensions.autoDisableScopes", 3);' >> \
+ "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ local plugin
+ if ! use gmp-autoupdate ; then
+ for plugin in gmp-gmpopenh264 ; do
+ echo "pref(\"media.${plugin}.autoupdate\", false);" >> \
+ "${S}/${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
+ || dir
+ done
+ fi
+
+ MOZ_MAKE_FLAGS="${MAKEOPTS}" \
+ emake DESTDIR="${D}" install
+ cp "${FILESDIR}"/${PN}.desktop "${T}" || die
+
+ if use crypt ; then
+ local em_dir="${WORKDIR}/enigmail/build"
+ pushd "${T}" &>/dev/null || die
+ unzip "${em_dir}"/enigmail*.xpi install.rdf || die
+ 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} || die
+ unzip "${em_dir}"/enigmail*.xpi || die
+
+ popd &>/dev/null || 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 || die
+ fi
+
+ # Install icon and .desktop for menu entry
+ newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png
+ domenu "${T}"/${PN}.desktop
+
+ # 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
+
+ if use chatzilla ; then
+ local emid='{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}'
+
+ # remove the en_US-only xpi file so a version with all requested locales can be installed
+ if [[ -e "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi ]]; then
+ rm -f "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi || die
+ fi
+
+ # merge the extra locales into the main extension
+ mozlinguas_xpistage_langpacks "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla
+
+ # install the merged extension
+ mkdir -p "${T}/${emid}" || die
+ cp -RLp -t "${T}/${emid}" "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla/* || die
+ insinto ${MOZILLA_FIVE_HOME}/distribution/extensions
+ doins -r "${T}/${emid}"
+ fi
+
+ # Handle plugins dir through nsplugins.eclass
+ share_plugins_dir
+
+ #doman "${BUILD_OBJ_DIR}/suite/app/${PN}.1"
+
+ # revdep-rebuild entry
+ insinto /etc/revdep-rebuild
+ echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN}
+ doins "${T}"/11${PN}
+}
+
+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
+}
diff --git a/www-client/seamonkey/seamonkey-2.48-r1.ebuild b/www-client/seamonkey/seamonkey-2.48-r1.ebuild
new file mode 100644
index 000000000000..01fae8065d91
--- /dev/null
+++ b/www-client/seamonkey/seamonkey-2.48-r1.ebuild
@@ -0,0 +1,433 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WANT_AUTOCONF="2.1"
+
+# This list can be updated with scripts/get_langs.sh from the mozilla overlay
+# note - could not roll langpacks for: ca fi
+#MOZ_LANGS=(ca cs de en-GB 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_LANGS=(cs de en-GB es-AR es-ES fr hu it ja lt nl pl pt-PT
+ ru sk sv-SE 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_PV="${MOZ_PV/_p[0-9]}"
+MOZ_P="${P}"
+MY_MOZ_P="${PN}-${MOZ_PV}"
+
+if [[ ${PV} == *_pre* ]] ; then
+# the following are for upstream build candidates
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}"
+ MOZ_LANGPACK_PREFIX="linux-i686/xpi/"
+ SRC_URI+=" ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz"
+ S="${WORKDIR}/${MY_MOZ_P}"
+ # And the langpack stuff stays at eclass defaults
+# the following is for self-rolled releases
+ #MOZ_HTTP_URI="https://dev.gentoo.org/~axs/distfiles"
+ #MOZ_LANGPACK_PREFIX="${MY_MOZ_P}."
+ #MOZ_LANGPACK_SUFFIX=".langpack.xpi"
+ #SRC_URI="${SRC_URI}
+ #${MOZ_HTTP_URI}/${P}.source.tar.xz
+ #"
+elif [[ ${PV} == *_p[0-9] ]]; then
+ # gentoo-unofficial release using thunderbird distfiles to build seamonkey instead
+ TB_MAJOR=45
+ SMPV="${PV%.[0-9].*}"
+ MOZ_P="${PN}-${SMPV}"
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/thunderbird/releases/${MOZ_PV/${SMPV}/${TB_MAJOR}}"
+ MOZ_GENERATE_LANGPACKS=1
+ S="${WORKDIR}/thunderbird-${MOZ_PV/${SMPV}/${TB_MAJOR}}"
+ SRC_URI="${SRC_URI}
+ ${MOZ_HTTP_URI}/source/${MY_MOZ_P/${MOZ_P}/thunderbird-${TB_MAJOR}}.source.tar.xz
+ https://dev.gentoo.org/~axs/distfiles/${PN}-2.42.3.0-l10n-sources.tar.xz
+ https://dev.gentoo.org/~axs/distfiles/chatzilla-2.42.tar.xz
+ https://dev.gentoo.org/~axs/distfiles/dom-inspector-2.0.16.tar.xz
+ "
+else
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases/${MOZ_PV}"
+ MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}."
+ MOZ_LANGPACK_SUFFIX=".langpack.xpi"
+ S="${WORKDIR}/${PN}-${MOZ_PV}"
+ SRC_URI="${SRC_URI}
+ ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz
+ "
+fi
+
+MOZCONFIG_OPTIONAL_GTK3=1
+MOZCONFIG_OPTIONAL_WIFI=1
+inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-v6.51 multilib pax-utils xdg-utils autotools mozextension nsplugins mozlinguas-v2
+
+PATCHFF="firefox-51.0-patches-06"
+PATCH="${PN}-2.46-patches-01"
+
+DESCRIPTION="Seamonkey Web Browser"
+HOMEPAGE="http://www.seamonkey-project.org"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+IUSE="+calendar +chatzilla +crypt +gmp-autoupdate +ipc jack minimal pulseaudio +roaming selinux test"
+
+SRC_URI+="
+ https://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCH}.tar.xz
+ https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz
+"
+
+ASM_DEPEND=">=dev-lang/yasm-1.1"
+
+RDEPEND="
+ >=dev-libs/nss-3.28.1
+ >=dev-libs/nspr-4.13
+ crypt? ( || (
+ ( >=app-crypt/gnupg-2.0
+ || (
+ app-crypt/pinentry[gtk]
+ app-crypt/pinentry[qt5]
+ app-crypt/pinentry[qt4]
+ )
+ )
+ =app-crypt/gnupg-1.4* )
+ x11-plugins/enigmail
+ )
+ jack? ( virtual/jack )
+"
+
+DEPEND="
+ ${RDEPEND}
+ !elibc_glibc? ( !elibc_uclibc? ( !elibc_musl? ( dev-libs/libexecinfo ) ) )
+ crypt? ( dev-lang/perl )
+ amd64? ( ${ASM_DEPEND}
+ virtual/opengl )
+ x86? ( ${ASM_DEPEND}
+ virtual/opengl )
+"
+
+BUILD_OBJ_DIR="${S}/seamonk"
+
+# allow GMP_PLUGIN_LIST to be set in an eclass or
+# overridden in the enviromnent (advanced hackers only)
+if [[ -z $GMP_PLUGIN_LIST ]] ; then
+ GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm )
+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
+}
+
+pkg_pretend() {
+ # 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
+ eapply "${WORKDIR}"/seamonkey
+ eapply "${FILESDIR}/0001-CFLAGS-must-contain-fPIC-when-checking-the-linker.patch" #625992
+
+ # browser patches go here
+ pushd "${S}"/mozilla &>/dev/null || die
+ rm -f "${WORKDIR}"/firefox/1000_gentoo_install_dir.patch
+ rm -f "${WORKDIR}"/firefox/2000-firefox_gentoo_install_dirs.patch
+ eapply "${WORKDIR}"/firefox
+ eapply "${FILESDIR}/firefox-Include-sys-sysmacros.h-for-major-minor-when-availab.patch"
+ popd &>/dev/null || die
+
+ # ugly hackaround for system-harfbuzz
+ if ! grep -Fq "harfbuzz/hb-glib.h" mozilla/config/system-headers ; then
+ sed '/MOZ_SYSTEM_HARFBUZZ/aharfbuzz/hb-glib.h' \
+ -i mozilla/config/system-headers || die
+ else
+ einfo "harfbuzz hackery no longer needed."
+ fi
+
+ if grep -q '^sdkdir.*$(MOZ_APP_NAME)-devel' mozilla/config/baseconfig.mk ; then
+ sed '/^sdkdir/s@-devel@@' \
+ -i mozilla/config/baseconfig.mk || die
+ else
+ einfo "baseconfig.mk hackery no longer needed."
+ fi
+
+ # 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}"
+ done
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_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 old-configure.in
+ cd "${S}"/mozilla || die
+ eautoconf old-configure.in
+ cd "${S}"/mozilla/js/src || die
+ eautoconf old-configure.in
+ cd "${S}"/mozilla/memory/jemalloc/src || die
+ WANT_AUTOCONF= eautoconf
+}
+
+src_configure() {
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ MEXTENSIONS="default"
+ # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
+
+ ####################################
+ #
+ # mozconfig, CFLAGS and CXXFLAGS setup
+ #
+ ####################################
+
+ mozconfig_init
+ mozconfig_config
+
+ # enable JACK, bug 600002
+ mozconfig_use_enable jack
+
+ # It doesn't compile on alpha without this LDFLAGS
+ use alpha && append-ldflags "-Wl,--no-relax"
+
+ if ! use chatzilla ; then
+ MEXTENSIONS+=",-irc"
+ fi
+ if ! use roaming ; then
+ MEXTENSIONS+=",-sroaming"
+ fi
+
+ # Setup api key for location services
+ echo -n "${_google_api_key}" > "${S}"/google-api-key
+ mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key"
+
+ mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
+
+ # Other sm-specific settings
+ mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
+ mozconfig_annotate '' --enable-safe-browsing
+ mozconfig_use_enable calendar
+
+ mozlinguas_mozconfig
+
+ # Use an objdir to keep things organized.
+ echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig
+ echo "mk_add_options XARGS=/usr/bin/xargs" >> "${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
+
+ # workaround for funky/broken upstream configure...
+ SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \
+ emake V=1 -f client.mk configure
+}
+
+src_compile() {
+ MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \
+ emake V=1 -f client.mk
+
+ mozlinguas_src_compile
+}
+
+src_install() {
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ DICTPATH="\"${EPREFIX}/usr/share/myspell\""
+
+ local emid
+ cd "${BUILD_OBJ_DIR}" || die
+
+ # Pax mark xpcshell for hardened support, only used for startupcache creation.
+ pax-mark m "${BUILD_OBJ_DIR}/dist/bin/xpcshell"
+
+ # Copy our preference before omnijar is created.
+ sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \
+ "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ # Set default path to search for dictionaries.
+ echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \
+ >> "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ echo 'pref("extensions.autoDisableScopes", 3);' >> \
+ "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ local plugin
+ if ! use gmp-autoupdate ; then
+ for plugin in "${GMP_PLUGIN_LIST[@]}" ; do
+ echo "pref(\"media.${plugin}.autoupdate\", false);" >> \
+ "${S}/${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
+ || dir
+ done
+ fi
+
+ MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \
+ emake DESTDIR="${D}" install
+ cp "${FILESDIR}"/${PN}.desktop "${T}" || die
+
+ 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 || die
+ fi
+
+ # Install icon and .desktop for menu entry
+ newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png
+ domenu "${T}"/${PN}.desktop
+
+ # 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
+
+ if use crypt ; then
+ emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' "${EROOT%/}"/usr/share/enigmail/install.rdf)
+ if [[ -n ${emid} ]]; then
+ dosym "${EPREFIX%/}"/usr/share/enigmail ${MOZILLA_FIVE_HOME}/extensions/${emid}
+ else
+ eerror "${EPREFIX%/}/usr/share/enigmail/install.rdf: No such file or directory"
+ die "<EM:ID> tag for x11-plugins/enigmail could not be found!"
+ fi
+ fi
+
+ if use chatzilla ; then
+ local emid='{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}'
+
+ # remove the en_US-only xpi file so a version with all requested locales can be installed
+ if [[ -e "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi ]]; then
+ rm -f "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi || die
+ fi
+
+ # merge the extra locales into the main extension
+ mozlinguas_xpistage_langpacks "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla
+
+ # install the merged extension
+ mkdir -p "${T}/${emid}" || die
+ cp -RLp -t "${T}/${emid}" "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla/* || die
+ insinto ${MOZILLA_FIVE_HOME}/distribution/extensions
+ doins -r "${T}/${emid}"
+ fi
+
+ # Handle plugins dir through nsplugins.eclass
+ share_plugins_dir
+
+ # revdep-rebuild entry
+ insinto /etc/revdep-rebuild
+ echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN}
+ doins "${T}"/11${PN}
+}
+
+pkg_preinst() {
+ MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}"
+
+ if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then
+ rm ${MOZILLA_FIVE_HOME}/plugins -rf
+ fi
+
+ # Because PM's dont seem to properly merge a symlink replacing a directory
+ if use crypt ; then
+ local emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' "${EROOT%/}"/usr/share/enigmail/install.rdf)
+ local emidpath="${EROOT%/}"${MOZILLA_FIVE_HOME}/extensions/${emid}
+ if [[ -z ${emid} ]]; then
+ eerror "${EROOT%/}/usr/share/enigmail/install.rdf: No such file or directory"
+ die "Could not find enigmail on disk during pkg_preinst()"
+ fi
+ if [[ ! -h "${emidpath}" ]] && [[ -d "${emidpath}" ]]; then
+ if ! rm -R --interactive=never "${emidpath}" ; then
+ eerror "Could not remove enigmail directory from previous installation,"
+ eerror "You must remove this by hand and rename the symbolic link yourself:"
+ eerror
+ eerror "\t cd ${EPREFIX%/}${MOZILLA_FIVE_HOME}/extensions"
+ eerror "\t rm -Rf ${emid}"
+ eerror "\t mv ${emid}.backup* ${emid}"
+ fi
+ fi
+ fi
+}
+
+pkg_postinst() {
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # Update mimedb for the new .desktop file
+ xdg_desktop_database_update
+ #gnome2_icon_cache_update
+
+ if ! use gmp-autoupdate ; then
+ elog "USE='-gmp-autoupdate' has disabled the following plugins from updating or"
+ elog "installing into new profiles:"
+ local plugin
+ for plugin in "${GMP_PLUGIN_LIST[@]}"; do elog "\t ${plugin}" ; done
+ fi
+
+ if use chatzilla ; then
+ elog "chatzilla is now an extension which can be en-/disabled and configured via"
+ elog "the Add-on manager."
+ fi
+}
diff --git a/www-client/seamonkey/seamonkey-2.48.ebuild b/www-client/seamonkey/seamonkey-2.48.ebuild
new file mode 100644
index 000000000000..452ce3d6bc8b
--- /dev/null
+++ b/www-client/seamonkey/seamonkey-2.48.ebuild
@@ -0,0 +1,430 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WANT_AUTOCONF="2.1"
+
+# This list can be updated with scripts/get_langs.sh from the mozilla overlay
+# note - could not roll langpacks for: ca fi
+#MOZ_LANGS=(ca cs de en-GB 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_LANGS=(cs de en-GB es-AR es-ES fr hu it ja lt nl pl pt-PT
+ ru sk sv-SE 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_PV="${MOZ_PV/_p[0-9]}"
+MOZ_P="${P}"
+MY_MOZ_P="${PN}-${MOZ_PV}"
+
+if [[ ${PV} == *_pre* ]] ; then
+# the following are for upstream build candidates
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}"
+ MOZ_LANGPACK_PREFIX="linux-i686/xpi/"
+ SRC_URI+=" ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz"
+ S="${WORKDIR}/${MY_MOZ_P}"
+ # And the langpack stuff stays at eclass defaults
+# the following is for self-rolled releases
+ #MOZ_HTTP_URI="https://dev.gentoo.org/~axs/distfiles"
+ #MOZ_LANGPACK_PREFIX="${MY_MOZ_P}."
+ #MOZ_LANGPACK_SUFFIX=".langpack.xpi"
+ #SRC_URI="${SRC_URI}
+ #${MOZ_HTTP_URI}/${P}.source.tar.xz
+ #"
+elif [[ ${PV} == *_p[0-9] ]]; then
+ # gentoo-unofficial release using thunderbird distfiles to build seamonkey instead
+ TB_MAJOR=45
+ SMPV="${PV%.[0-9].*}"
+ MOZ_P="${PN}-${SMPV}"
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/thunderbird/releases/${MOZ_PV/${SMPV}/${TB_MAJOR}}"
+ MOZ_GENERATE_LANGPACKS=1
+ S="${WORKDIR}/thunderbird-${MOZ_PV/${SMPV}/${TB_MAJOR}}"
+ SRC_URI="${SRC_URI}
+ ${MOZ_HTTP_URI}/source/${MY_MOZ_P/${MOZ_P}/thunderbird-${TB_MAJOR}}.source.tar.xz
+ https://dev.gentoo.org/~axs/distfiles/${PN}-2.42.3.0-l10n-sources.tar.xz
+ https://dev.gentoo.org/~axs/distfiles/chatzilla-2.42.tar.xz
+ https://dev.gentoo.org/~axs/distfiles/dom-inspector-2.0.16.tar.xz
+ "
+else
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases/${MOZ_PV}"
+ MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}."
+ MOZ_LANGPACK_SUFFIX=".langpack.xpi"
+ S="${WORKDIR}/${PN}-${MOZ_PV}"
+ SRC_URI="${SRC_URI}
+ ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz
+ "
+fi
+
+MOZCONFIG_OPTIONAL_GTK3=1
+MOZCONFIG_OPTIONAL_WIFI=1
+inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-v6.51 multilib pax-utils xdg-utils autotools mozextension nsplugins mozlinguas-v2
+
+PATCHFF="firefox-51.0-patches-06"
+PATCH="${PN}-2.46-patches-01"
+EMVER="1.9.8.1"
+
+DESCRIPTION="Seamonkey Web Browser"
+HOMEPAGE="http://www.seamonkey-project.org"
+KEYWORDS="~alpha amd64 ~arm ~ppc ~ppc64 ~x86"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+IUSE="+calendar +chatzilla +crypt +gmp-autoupdate +ipc jack minimal pulseaudio +roaming selinux test"
+
+SRC_URI+="
+ https://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCH}.tar.xz
+ https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz
+ crypt? ( https://www.enigmail.net/download/source/enigmail-${EMVER}.tar.gz )
+"
+
+ASM_DEPEND=">=dev-lang/yasm-1.1"
+
+RDEPEND="
+ >=dev-libs/nss-3.28.1
+ >=dev-libs/nspr-4.13
+ crypt? ( || (
+ ( >=app-crypt/gnupg-2.0
+ || (
+ app-crypt/pinentry[gtk]
+ app-crypt/pinentry[qt5]
+ app-crypt/pinentry[qt4]
+ )
+ )
+ =app-crypt/gnupg-1.4* ) )
+ jack? ( virtual/jack )
+"
+
+DEPEND="
+ ${RDEPEND}
+ !elibc_glibc? ( !elibc_uclibc? ( !elibc_musl? ( dev-libs/libexecinfo ) ) )
+ crypt? ( dev-lang/perl )
+ amd64? ( ${ASM_DEPEND}
+ virtual/opengl )
+ x86? ( ${ASM_DEPEND}
+ virtual/opengl )
+"
+
+BUILD_OBJ_DIR="${S}/seamonk"
+
+# allow GMP_PLUGIN_LIST to be set in an eclass or
+# overridden in the enviromnent (advanced hackers only)
+if [[ -z $GMP_PLUGIN_LIST ]] ; then
+ GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm )
+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
+}
+
+pkg_pretend() {
+ # 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
+ eapply "${WORKDIR}"/seamonkey
+
+ # browser patches go here
+ pushd "${S}"/mozilla &>/dev/null || die
+ rm -f "${WORKDIR}"/firefox/1000_gentoo_install_dir.patch
+ rm -f "${WORKDIR}"/firefox/2000-firefox_gentoo_install_dirs.patch
+ eapply "${WORKDIR}"/firefox
+ eapply "${FILESDIR}/firefox-Include-sys-sysmacros.h-for-major-minor-when-availab.patch"
+ popd &>/dev/null || die
+
+ # ugly hackaround for system-harfbuzz
+ if ! grep -Fq "harfbuzz/hb-glib.h" mozilla/config/system-headers ; then
+ sed '/MOZ_SYSTEM_HARFBUZZ/aharfbuzz/hb-glib.h' \
+ -i mozilla/config/system-headers || die
+ else
+ einfo "harfbuzz hackery no longer needed."
+ fi
+
+ if grep -q '^sdkdir.*$(MOZ_APP_NAME)-devel' mozilla/config/baseconfig.mk ; then
+ sed '/^sdkdir/s@-devel@@' \
+ -i mozilla/config/baseconfig.mk || die
+ else
+ einfo "baseconfig.mk hackery no longer needed."
+ fi
+
+ # 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}"
+ done
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_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 old-configure.in
+ cd "${S}"/mozilla || die
+ eautoconf old-configure.in
+ cd "${S}"/mozilla/js/src || die
+ eautoconf old-configure.in
+ cd "${S}"/mozilla/memory/jemalloc/src || die
+ WANT_AUTOCONF= eautoconf
+}
+
+src_configure() {
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ MEXTENSIONS="default"
+ # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
+
+ ####################################
+ #
+ # mozconfig, CFLAGS and CXXFLAGS setup
+ #
+ ####################################
+
+ mozconfig_init
+ mozconfig_config
+
+ # enable JACK, bug 600002
+ mozconfig_use_enable jack
+
+ # It doesn't compile on alpha without this LDFLAGS
+ use alpha && append-ldflags "-Wl,--no-relax"
+
+ if ! use chatzilla ; then
+ MEXTENSIONS+=",-irc"
+ fi
+ if ! use roaming ; then
+ MEXTENSIONS+=",-sroaming"
+ fi
+
+ # Setup api key for location services
+ echo -n "${_google_api_key}" > "${S}"/google-api-key
+ mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key"
+
+ mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
+
+ # Other sm-specific settings
+ mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
+ mozconfig_annotate '' --enable-safe-browsing
+ mozconfig_use_enable calendar
+
+ mozlinguas_mozconfig
+
+ # Use an objdir to keep things organized.
+ echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig
+ echo "mk_add_options XARGS=/usr/bin/xargs" >> "${S}"/.mozconfig
+
+ # Finalize and report settings
+ mozconfig_final
+
+ if use crypt ; then
+ pushd "${WORKDIR}"/enigmail &>/dev/null || die
+ econf
+ popd &>/dev/null || die
+ fi
+
+ # 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
+
+ # workaround for funky/broken upstream configure...
+ SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \
+ emake V=1 -f client.mk configure
+}
+
+src_compile() {
+ MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \
+ emake V=1 -f client.mk
+
+ mozlinguas_src_compile
+
+ # Only build enigmail extension if conditions are met.
+ if use crypt ; then
+ einfo "Building enigmail"
+ pushd "${WORKDIR}"/enigmail &>/dev/null || die
+ emake -j1
+ emake xpi
+ popd &>/dev/null || die
+ fi
+}
+
+src_install() {
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ DICTPATH="\"${EPREFIX}/usr/share/myspell\""
+
+ local emid
+ cd "${BUILD_OBJ_DIR}" || die
+
+ # Pax mark xpcshell for hardened support, only used for startupcache creation.
+ pax-mark m "${BUILD_OBJ_DIR}/dist/bin/xpcshell"
+
+ # Copy our preference before omnijar is created.
+ sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \
+ "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ # Set default path to search for dictionaries.
+ echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \
+ >> "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ echo 'pref("extensions.autoDisableScopes", 3);' >> \
+ "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ local plugin
+ if ! use gmp-autoupdate ; then
+ for plugin in "${GMP_PLUGIN_LIST[@]}" ; do
+ echo "pref(\"media.${plugin}.autoupdate\", false);" >> \
+ "${S}/${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
+ || dir
+ done
+ fi
+
+ MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \
+ emake DESTDIR="${D}" install
+ cp "${FILESDIR}"/${PN}.desktop "${T}" || die
+
+ if use crypt ; then
+ local em_dir="${WORKDIR}/enigmail/build"
+ pushd "${T}" &>/dev/null || die
+ unzip "${em_dir}"/enigmail*.xpi install.rdf || die
+ 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} || die
+ unzip "${em_dir}"/enigmail*.xpi || die
+
+ popd &>/dev/null || 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 || die
+ fi
+
+ # Install icon and .desktop for menu entry
+ newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png
+ domenu "${T}"/${PN}.desktop
+
+ # 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
+
+ if use chatzilla ; then
+ local emid='{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}'
+
+ # remove the en_US-only xpi file so a version with all requested locales can be installed
+ if [[ -e "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi ]]; then
+ rm -f "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi || die
+ fi
+
+ # merge the extra locales into the main extension
+ mozlinguas_xpistage_langpacks "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla
+
+ # install the merged extension
+ mkdir -p "${T}/${emid}" || die
+ cp -RLp -t "${T}/${emid}" "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla/* || die
+ insinto ${MOZILLA_FIVE_HOME}/distribution/extensions
+ doins -r "${T}/${emid}"
+ fi
+
+ # Handle plugins dir through nsplugins.eclass
+ share_plugins_dir
+
+ # revdep-rebuild entry
+ insinto /etc/revdep-rebuild
+ echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN}
+ doins "${T}"/11${PN}
+}
+
+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
+ xdg_desktop_database_update
+ #gnome2_icon_cache_update
+
+ if ! use gmp-autoupdate ; then
+ elog "USE='-gmp-autoupdate' has disabled the following plugins from updating or"
+ elog "installing into new profiles:"
+ local plugin
+ for plugin in "${GMP_PLUGIN_LIST[@]}"; do elog "\t ${plugin}" ; done
+ fi
+
+ if use chatzilla ; then
+ elog "chatzilla is now an extension which can be en-/disabled and configured via"
+ elog "the Add-on manager."
+ fi
+}
diff --git a/www-client/seamonkey/seamonkey-2.49.2.0_p0.ebuild b/www-client/seamonkey/seamonkey-2.49.2.0_p0.ebuild
new file mode 100644
index 000000000000..b91c4f780adb
--- /dev/null
+++ b/www-client/seamonkey/seamonkey-2.49.2.0_p0.ebuild
@@ -0,0 +1,443 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WANT_AUTOCONF="2.1"
+
+# This list can be updated with scripts/get_langs.sh from the mozilla overlay
+# note - could not roll langpacks for: ca fi
+#MOZ_LANGS=(ca cs de en-GB 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_LANGS=(cs de en-GB es-AR es-ES fr hu it ja lt nl pl pt-PT
+ ru sk sv-SE 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_PV="${MOZ_PV/_p[0-9]}"
+MOZ_P="${P}"
+MY_MOZ_P="${PN}-${MOZ_PV}"
+
+if [[ ${PV} == *_pre* ]] ; then
+# the following are for upstream build candidates
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}"
+ MOZ_LANGPACK_PREFIX="linux-i686/xpi/"
+ SRC_URI+=" ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz"
+ S="${WORKDIR}/${MY_MOZ_P}"
+ # And the langpack stuff stays at eclass defaults
+# the following is for self-rolled releases
+ #MOZ_HTTP_URI="https://dev.gentoo.org/~axs/distfiles"
+ #MOZ_LANGPACK_PREFIX="${MY_MOZ_P}."
+ #MOZ_LANGPACK_SUFFIX=".langpack.xpi"
+ #SRC_URI="${SRC_URI}
+ #${MOZ_HTTP_URI}/${P}.source.tar.xz
+ #"
+elif [[ ${PV} == *_p[0-9] ]]; then
+ # gentoo-unofficial release using thunderbird distfiles to build seamonkey instead
+ TB_MAJOR=52
+ SMPV="${PV%.[0-9].*}"
+ MOZ_P="${PN}-${MOZ_PV}"
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/thunderbird/releases/${MOZ_PV/${SMPV}/${TB_MAJOR}}"
+ MOZ_GENERATE_LANGPACKS=1
+ S="${WORKDIR}/thunderbird-${MOZ_PV/${SMPV}/${TB_MAJOR}}"
+ CHATZILLA_VER="SEA2_48_RELBRANCH"
+ INSPECTOR_VER="DOMI_2_0_17"
+ SRC_URI="${SRC_URI}
+ ${MOZ_HTTP_URI}/source/thunderbird-${MOZ_PV/${SMPV}/${TB_MAJOR}}.source.tar.xz
+ https://dev.gentoo.org/~axs/distfiles/${PN}-${SMPV}-l10n-sources-20170727.tar.xz
+ https://hg.mozilla.org/chatzilla/archive/${CHATZILLA_VER}.tar.bz2 -> chatzilla-${CHATZILLA_VER}.tar.bz2
+ https://hg.mozilla.org/dom-inspector/archive/${INSPECTOR_VER}.tar.bz2 -> dom-inspector-${INSPECTOR_VER}.tar.bz2
+ "
+else
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases/${MOZ_PV}"
+ MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}."
+ MOZ_LANGPACK_SUFFIX=".langpack.xpi"
+ S="${WORKDIR}/${PN}-${MOZ_PV}"
+ SRC_URI="${SRC_URI}
+ ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz
+ "
+fi
+
+MOZCONFIG_OPTIONAL_GTK3=1
+MOZCONFIG_OPTIONAL_WIFI=1
+inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-v6.52 pax-utils xdg-utils autotools mozextension nsplugins mozlinguas-v2
+
+PATCHFF="firefox-52.2-patches-02"
+PATCH="${PN}-2.46-patches-01"
+
+DESCRIPTION="Seamonkey Web Browser"
+HOMEPAGE="http://www.seamonkey-project.org"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+IUSE="+calendar +chatzilla +crypt +gmp-autoupdate +ipc jack minimal pulseaudio +roaming selinux test"
+
+SRC_URI+="
+ https://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCH}.tar.xz
+ https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz
+"
+
+ASM_DEPEND=">=dev-lang/yasm-1.1"
+
+RDEPEND="
+ >=dev-libs/nss-3.28.1
+ >=dev-libs/nspr-4.13
+ crypt? ( || (
+ ( >=app-crypt/gnupg-2.0
+ || (
+ app-crypt/pinentry[gtk]
+ app-crypt/pinentry[qt5]
+ app-crypt/pinentry[qt4]
+ )
+ )
+ =app-crypt/gnupg-1.4* )
+ x11-plugins/enigmail
+ )
+ jack? ( virtual/jack )
+"
+
+DEPEND="
+ ${RDEPEND}
+ !elibc_glibc? ( !elibc_uclibc? ( !elibc_musl? ( dev-libs/libexecinfo ) ) )
+ crypt? ( dev-lang/perl )
+ amd64? ( ${ASM_DEPEND}
+ virtual/opengl )
+ x86? ( ${ASM_DEPEND}
+ virtual/opengl )
+"
+
+BUILD_OBJ_DIR="${S}/seamonk"
+
+# allow GMP_PLUGIN_LIST to be set in an eclass or
+# overridden in the enviromnent (advanced hackers only)
+if [[ -z $GMP_PLUGIN_LIST ]] ; then
+ GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm )
+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
+}
+
+pkg_pretend() {
+ # 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
+
+ if [[ -n $TB_MAJOR ]]; then
+ # move the irc and inspector code into the correct locations
+ # when we are building from a thunderbird tarball
+ mv "${WORKDIR}"/chatzilla-${CHATZILLA_VER} \
+ "${S}"/mozilla/extensions/irc || die
+ mv "${WORKDIR}"/dom-inspector-${INSPECTOR_VER} \
+ "${S}"/mozilla/extensions/inspector || die
+ fi
+}
+
+src_prepare() {
+ # Apply our patches
+ eapply "${WORKDIR}"/seamonkey
+
+ # browser patches go here
+ pushd "${S}"/mozilla &>/dev/null || die
+ rm -f "${WORKDIR}"/firefox/1000_gentoo_install_dir.patch
+ eapply "${WORKDIR}"/firefox
+ popd &>/dev/null || die
+
+ if grep -q '^sdkdir.*$(MOZ_APP_NAME)-devel' mozilla/config/baseconfig.mk ; then
+ sed '/^sdkdir/s@-devel@@' \
+ -i mozilla/config/baseconfig.mk || die
+ else
+ einfo "baseconfig.mk hackery no longer needed."
+ fi
+
+ # 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}"
+ done
+
+ # force a version update that matches the minor and patch version of thunderbird
+ if [[ -n ${TB_MAJOR} ]]; then
+ echo ${MOZ_PV} >"${S}"/suite/config/version.txt
+ fi
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_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
+
+ # Don't build libs-% locale files for chatzilla if we are not building chatzilla
+ # (this is hard-coded in the build system at present rather than being based on configuration)
+ use chatzilla || sed '/extensions\/irc\/locales libs-/s@^@#@' \
+ -i "${S}"/suite/locales/Makefile.in || die
+
+ eautoreconf old-configure.in
+ cd "${S}"/mozilla || die
+ eautoconf old-configure.in
+ cd "${S}"/mozilla/js/src || die
+ eautoconf old-configure.in
+ cd "${S}"/mozilla/memory/jemalloc/src || die
+ WANT_AUTOCONF= eautoconf
+}
+
+src_configure() {
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ MEXTENSIONS="default"
+ # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
+
+ ####################################
+ #
+ # mozconfig, CFLAGS and CXXFLAGS setup
+ #
+ ####################################
+
+ mozconfig_init
+ mozconfig_config
+
+ # enable JACK, bug 600002
+ mozconfig_use_enable jack
+
+ # It doesn't compile on alpha without this LDFLAGS
+ use alpha && append-ldflags "-Wl,--no-relax"
+
+ if ! use chatzilla ; then
+ MEXTENSIONS+=",-irc"
+ fi
+ if ! use roaming ; then
+ MEXTENSIONS+=",-sroaming"
+ fi
+
+ # Setup api key for location services
+ echo -n "${_google_api_key}" > "${S}"/google-api-key
+ mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key"
+
+ mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
+
+ # Other sm-specific settings
+ mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
+ mozconfig_annotate '' --enable-safe-browsing
+ mozconfig_use_enable calendar
+
+ mozlinguas_mozconfig
+
+ # Use an objdir to keep things organized.
+ echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig
+ echo "mk_add_options XARGS=/usr/bin/xargs" >> "${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
+
+ # workaround for funky/broken upstream configure...
+ SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \
+ emake V=1 -f client.mk configure
+}
+
+src_compile() {
+ MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \
+ emake V=1 -f client.mk
+
+ mozlinguas_src_compile
+}
+
+src_install() {
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ DICTPATH="\"${EPREFIX}/usr/share/myspell\""
+
+ local emid
+ cd "${BUILD_OBJ_DIR}" || die
+
+ # Pax mark xpcshell for hardened support, only used for startupcache creation.
+ pax-mark m "${BUILD_OBJ_DIR}/dist/bin/xpcshell"
+
+ # Copy our preference before omnijar is created.
+ sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \
+ "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ # Set default path to search for dictionaries.
+ echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \
+ >> "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ echo 'pref("extensions.autoDisableScopes", 3);' >> \
+ "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ local plugin
+ if ! use gmp-autoupdate ; then
+ for plugin in "${GMP_PLUGIN_LIST[@]}" ; do
+ echo "pref(\"media.${plugin}.autoupdate\", false);" >> \
+ "${S}/${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
+ || dir
+ done
+ fi
+
+ MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \
+ emake DESTDIR="${D}" install
+ cp "${FILESDIR}"/${PN}.desktop "${T}" || die
+
+ 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 || die
+ fi
+
+ # Install icon and .desktop for menu entry
+ newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png
+ domenu "${T}"/${PN}.desktop
+
+ # 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
+
+ if use crypt ; then
+ emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' "${EROOT%/}"/usr/share/enigmail/install.rdf)
+ if [[ -n ${emid} ]]; then
+ dosym "${EPREFIX%/}"/usr/share/enigmail ${MOZILLA_FIVE_HOME}/extensions/${emid}
+ else
+ eerror "${EPREFIX%/}/usr/share/enigmail/install.rdf: No such file or directory"
+ die "<EM:ID> tag for x11-plugins/enigmail could not be found!"
+ fi
+ fi
+
+ if use chatzilla ; then
+ local emid='{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}'
+
+ # remove the en_US-only xpi file so a version with all requested locales can be installed
+ if [[ -e "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi ]]; then
+ rm -f "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi || die
+ fi
+
+ # merge the extra locales into the main extension
+ mozlinguas_xpistage_langpacks "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla
+
+ # install the merged extension
+ mkdir -p "${T}/${emid}" || die
+ cp -RLp -t "${T}/${emid}" "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla/* || die
+ insinto ${MOZILLA_FIVE_HOME}/distribution/extensions
+ doins -r "${T}/${emid}"
+ fi
+
+ # Handle plugins dir through nsplugins.eclass
+ share_plugins_dir
+
+ # revdep-rebuild entry
+ insinto /etc/revdep-rebuild
+ echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN}
+ doins "${T}"/11${PN}
+}
+
+pkg_preinst() {
+ MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}"
+
+ if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then
+ rm ${MOZILLA_FIVE_HOME}/plugins -rf
+ fi
+
+ # Because PM's dont seem to properly merge a symlink replacing a directory
+ if use crypt ; then
+ local emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' "${EROOT%/}"/usr/share/enigmail/install.rdf)
+ local emidpath="${EROOT%/}"${MOZILLA_FIVE_HOME}/extensions/${emid}
+ if [[ -z ${emid} ]]; then
+ eerror "${EROOT%/}/usr/share/enigmail/install.rdf: No such file or directory"
+ die "Could not find enigmail on disk during pkg_preinst()"
+ fi
+ if [[ ! -h "${emidpath}" ]] && [[ -d "${emidpath}" ]]; then
+ if ! rm -R --interactive=never "${emidpath}" ; then
+ eerror "Could not remove enigmail directory from previous installation,"
+ eerror "You must remove this by hand and rename the symbolic link yourself:"
+ eerror
+ eerror "\t cd ${EPREFIX%/}${MOZILLA_FIVE_HOME}/extensions"
+ eerror "\t rm -Rf ${emid}"
+ eerror "\t mv ${emid}.backup* ${emid}"
+ fi
+ fi
+ fi
+}
+
+pkg_postinst() {
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # Update mimedb for the new .desktop file
+ xdg_desktop_database_update
+ #gnome2_icon_cache_update
+
+ if ! use gmp-autoupdate ; then
+ elog "USE='-gmp-autoupdate' has disabled the following plugins from updating or"
+ elog "installing into new profiles:"
+ local plugin
+ for plugin in "${GMP_PLUGIN_LIST[@]}"; do elog "\t ${plugin}" ; done
+ fi
+
+ if use chatzilla ; then
+ elog "chatzilla is now an extension which can be en-/disabled and configured via"
+ elog "the Add-on manager."
+ fi
+}
diff --git a/www-client/seamonkey/seamonkey-2.49.3.0_p0.ebuild b/www-client/seamonkey/seamonkey-2.49.3.0_p0.ebuild
new file mode 100644
index 000000000000..04fe8f8bca84
--- /dev/null
+++ b/www-client/seamonkey/seamonkey-2.49.3.0_p0.ebuild
@@ -0,0 +1,443 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WANT_AUTOCONF="2.1"
+
+# This list can be updated with scripts/get_langs.sh from the mozilla overlay
+# note - could not roll langpacks for: ca fi
+#MOZ_LANGS=(ca cs de en-GB 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_LANGS=(cs de en-GB es-AR es-ES fr hu it ja lt nl pl pt-PT
+ ru sk sv-SE 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_PV="${MOZ_PV/_p[0-9]}"
+MOZ_P="${P}"
+MY_MOZ_P="${PN}-${MOZ_PV}"
+
+if [[ ${PV} == *_pre* ]] ; then
+# the following are for upstream build candidates
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}"
+ MOZ_LANGPACK_PREFIX="linux-i686/xpi/"
+ SRC_URI+=" ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz"
+ S="${WORKDIR}/${MY_MOZ_P}"
+ # And the langpack stuff stays at eclass defaults
+# the following is for self-rolled releases
+ #MOZ_HTTP_URI="https://dev.gentoo.org/~axs/distfiles"
+ #MOZ_LANGPACK_PREFIX="${MY_MOZ_P}."
+ #MOZ_LANGPACK_SUFFIX=".langpack.xpi"
+ #SRC_URI="${SRC_URI}
+ #${MOZ_HTTP_URI}/${P}.source.tar.xz
+ #"
+elif [[ ${PV} == *_p[0-9] ]]; then
+ # gentoo-unofficial release using thunderbird distfiles to build seamonkey instead
+ TB_MAJOR=52
+ SMPV="${PV%.[0-9].*}"
+ MOZ_P="${PN}-${MOZ_PV}"
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/thunderbird/releases/${MOZ_PV/${SMPV}/${TB_MAJOR}}"
+ MOZ_GENERATE_LANGPACKS=1
+ S="${WORKDIR}/thunderbird-${MOZ_PV/${SMPV}/${TB_MAJOR}}"
+ CHATZILLA_VER="SEA2_48_RELBRANCH"
+ INSPECTOR_VER="DOMI_2_0_17"
+ SRC_URI="${SRC_URI}
+ ${MOZ_HTTP_URI}/source/thunderbird-${MOZ_PV/${SMPV}/${TB_MAJOR}}.source.tar.xz
+ https://dev.gentoo.org/~axs/distfiles/${PN}-${SMPV}-l10n-sources-20170727.tar.xz
+ https://hg.mozilla.org/chatzilla/archive/${CHATZILLA_VER}.tar.bz2 -> chatzilla-${CHATZILLA_VER}.tar.bz2
+ https://hg.mozilla.org/dom-inspector/archive/${INSPECTOR_VER}.tar.bz2 -> dom-inspector-${INSPECTOR_VER}.tar.bz2
+ "
+else
+ MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases/${MOZ_PV}"
+ MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}."
+ MOZ_LANGPACK_SUFFIX=".langpack.xpi"
+ S="${WORKDIR}/${PN}-${MOZ_PV}"
+ SRC_URI="${SRC_URI}
+ ${MOZ_HTTP_URI}/source/${MY_MOZ_P}.source.tar.xz -> ${P}.source.tar.xz
+ "
+fi
+
+MOZCONFIG_OPTIONAL_GTK3=1
+MOZCONFIG_OPTIONAL_WIFI=1
+inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-v6.52 pax-utils xdg-utils autotools mozextension nsplugins mozlinguas-v2
+
+PATCHFF="firefox-52.2-patches-03"
+PATCH="${PN}-2.46-patches-01"
+
+DESCRIPTION="Seamonkey Web Browser"
+HOMEPAGE="http://www.seamonkey-project.org"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+IUSE="+calendar +chatzilla +crypt +gmp-autoupdate +ipc jack minimal pulseaudio +roaming selinux test"
+
+SRC_URI+="
+ https://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCHFF}.tar.xz
+ https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCH}.tar.xz
+ https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz
+"
+
+ASM_DEPEND=">=dev-lang/yasm-1.1"
+
+RDEPEND="
+ >=dev-libs/nss-3.28.1
+ >=dev-libs/nspr-4.13
+ crypt? ( || (
+ ( >=app-crypt/gnupg-2.0
+ || (
+ app-crypt/pinentry[gtk]
+ app-crypt/pinentry[qt5]
+ app-crypt/pinentry[qt4]
+ )
+ )
+ =app-crypt/gnupg-1.4* )
+ x11-plugins/enigmail
+ )
+ jack? ( virtual/jack )
+"
+
+DEPEND="
+ ${RDEPEND}
+ !elibc_glibc? ( !elibc_uclibc? ( !elibc_musl? ( dev-libs/libexecinfo ) ) )
+ crypt? ( dev-lang/perl )
+ amd64? ( ${ASM_DEPEND}
+ virtual/opengl )
+ x86? ( ${ASM_DEPEND}
+ virtual/opengl )
+"
+
+BUILD_OBJ_DIR="${S}/seamonk"
+
+# allow GMP_PLUGIN_LIST to be set in an eclass or
+# overridden in the enviromnent (advanced hackers only)
+if [[ -z $GMP_PLUGIN_LIST ]] ; then
+ GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm )
+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
+}
+
+pkg_pretend() {
+ # 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
+
+ if [[ -n $TB_MAJOR ]]; then
+ # move the irc and inspector code into the correct locations
+ # when we are building from a thunderbird tarball
+ mv "${WORKDIR}"/chatzilla-${CHATZILLA_VER} \
+ "${S}"/mozilla/extensions/irc || die
+ mv "${WORKDIR}"/dom-inspector-${INSPECTOR_VER} \
+ "${S}"/mozilla/extensions/inspector || die
+ fi
+}
+
+src_prepare() {
+ # Apply our patches
+ eapply "${WORKDIR}"/seamonkey
+
+ # browser patches go here
+ pushd "${S}"/mozilla &>/dev/null || die
+ rm -f "${WORKDIR}"/firefox/1000_gentoo_install_dir.patch
+ eapply "${WORKDIR}"/firefox
+ popd &>/dev/null || die
+
+ if grep -q '^sdkdir.*$(MOZ_APP_NAME)-devel' mozilla/config/baseconfig.mk ; then
+ sed '/^sdkdir/s@-devel@@' \
+ -i mozilla/config/baseconfig.mk || die
+ else
+ einfo "baseconfig.mk hackery no longer needed."
+ fi
+
+ # 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}"
+ done
+
+ # force a version update that matches the minor and patch version of thunderbird
+ if [[ -n ${TB_MAJOR} ]]; then
+ echo ${MOZ_PV} >"${S}"/suite/config/version.txt
+ fi
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_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
+
+ # Don't build libs-% locale files for chatzilla if we are not building chatzilla
+ # (this is hard-coded in the build system at present rather than being based on configuration)
+ use chatzilla || sed '/extensions\/irc\/locales libs-/s@^@#@' \
+ -i "${S}"/suite/locales/Makefile.in || die
+
+ eautoreconf old-configure.in
+ cd "${S}"/mozilla || die
+ eautoconf old-configure.in
+ cd "${S}"/mozilla/js/src || die
+ eautoconf old-configure.in
+ cd "${S}"/mozilla/memory/jemalloc/src || die
+ WANT_AUTOCONF= eautoconf
+}
+
+src_configure() {
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ MEXTENSIONS="default"
+ # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
+
+ ####################################
+ #
+ # mozconfig, CFLAGS and CXXFLAGS setup
+ #
+ ####################################
+
+ mozconfig_init
+ mozconfig_config
+
+ # enable JACK, bug 600002
+ mozconfig_use_enable jack
+
+ # It doesn't compile on alpha without this LDFLAGS
+ use alpha && append-ldflags "-Wl,--no-relax"
+
+ if ! use chatzilla ; then
+ MEXTENSIONS+=",-irc"
+ fi
+ if ! use roaming ; then
+ MEXTENSIONS+=",-sroaming"
+ fi
+
+ # Setup api key for location services
+ echo -n "${_google_api_key}" > "${S}"/google-api-key
+ mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key"
+
+ mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
+
+ # Other sm-specific settings
+ mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
+ mozconfig_annotate '' --enable-safe-browsing
+ mozconfig_use_enable calendar
+
+ mozlinguas_mozconfig
+
+ # Use an objdir to keep things organized.
+ echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig
+ echo "mk_add_options XARGS=/usr/bin/xargs" >> "${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
+
+ # workaround for funky/broken upstream configure...
+ SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \
+ emake V=1 -f client.mk configure
+}
+
+src_compile() {
+ MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \
+ emake V=1 -f client.mk
+
+ mozlinguas_src_compile
+}
+
+src_install() {
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+ DICTPATH="\"${EPREFIX}/usr/share/myspell\""
+
+ local emid
+ cd "${BUILD_OBJ_DIR}" || die
+
+ # Pax mark xpcshell for hardened support, only used for startupcache creation.
+ pax-mark m "${BUILD_OBJ_DIR}/dist/bin/xpcshell"
+
+ # Copy our preference before omnijar is created.
+ sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \
+ "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ # Set default path to search for dictionaries.
+ echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \
+ >> "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ echo 'pref("extensions.autoDisableScopes", 3);' >> \
+ "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
+ || die
+
+ local plugin
+ if ! use gmp-autoupdate ; then
+ for plugin in "${GMP_PLUGIN_LIST[@]}" ; do
+ echo "pref(\"media.${plugin}.autoupdate\", false);" >> \
+ "${S}/${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
+ || dir
+ done
+ fi
+
+ MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \
+ emake DESTDIR="${D}" install
+ cp "${FILESDIR}"/${PN}.desktop "${T}" || die
+
+ 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 || die
+ fi
+
+ # Install icon and .desktop for menu entry
+ newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png
+ domenu "${T}"/${PN}.desktop
+
+ # 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
+
+ if use crypt ; then
+ emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' "${EROOT%/}"/usr/share/enigmail/install.rdf)
+ if [[ -n ${emid} ]]; then
+ dosym "${EPREFIX%/}"/usr/share/enigmail ${MOZILLA_FIVE_HOME}/extensions/${emid}
+ else
+ eerror "${EPREFIX%/}/usr/share/enigmail/install.rdf: No such file or directory"
+ die "<EM:ID> tag for x11-plugins/enigmail could not be found!"
+ fi
+ fi
+
+ if use chatzilla ; then
+ local emid='{59c81df5-4b7a-477b-912d-4e0fdf64e5f2}'
+
+ # remove the en_US-only xpi file so a version with all requested locales can be installed
+ if [[ -e "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi ]]; then
+ rm -f "${ED}"${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi || die
+ fi
+
+ # merge the extra locales into the main extension
+ mozlinguas_xpistage_langpacks "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla
+
+ # install the merged extension
+ mkdir -p "${T}/${emid}" || die
+ cp -RLp -t "${T}/${emid}" "${BUILD_OBJ_DIR}"/dist/xpi-stage/chatzilla/* || die
+ insinto ${MOZILLA_FIVE_HOME}/distribution/extensions
+ doins -r "${T}/${emid}"
+ fi
+
+ # Handle plugins dir through nsplugins.eclass
+ share_plugins_dir
+
+ # revdep-rebuild entry
+ insinto /etc/revdep-rebuild
+ echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN}
+ doins "${T}"/11${PN}
+}
+
+pkg_preinst() {
+ MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}"
+
+ if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then
+ rm ${MOZILLA_FIVE_HOME}/plugins -rf
+ fi
+
+ # Because PM's dont seem to properly merge a symlink replacing a directory
+ if use crypt ; then
+ local emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' "${EROOT%/}"/usr/share/enigmail/install.rdf)
+ local emidpath="${EROOT%/}"${MOZILLA_FIVE_HOME}/extensions/${emid}
+ if [[ -z ${emid} ]]; then
+ eerror "${EROOT%/}/usr/share/enigmail/install.rdf: No such file or directory"
+ die "Could not find enigmail on disk during pkg_preinst()"
+ fi
+ if [[ ! -h "${emidpath}" ]] && [[ -d "${emidpath}" ]]; then
+ if ! rm -R --interactive=never "${emidpath}" ; then
+ eerror "Could not remove enigmail directory from previous installation,"
+ eerror "You must remove this by hand and rename the symbolic link yourself:"
+ eerror
+ eerror "\t cd ${EPREFIX%/}${MOZILLA_FIVE_HOME}/extensions"
+ eerror "\t rm -Rf ${emid}"
+ eerror "\t mv ${emid}.backup* ${emid}"
+ fi
+ fi
+ fi
+}
+
+pkg_postinst() {
+ MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # Update mimedb for the new .desktop file
+ xdg_desktop_database_update
+ #gnome2_icon_cache_update
+
+ if ! use gmp-autoupdate ; then
+ elog "USE='-gmp-autoupdate' has disabled the following plugins from updating or"
+ elog "installing into new profiles:"
+ local plugin
+ for plugin in "${GMP_PLUGIN_LIST[@]}"; do elog "\t ${plugin}" ; done
+ fi
+
+ if use chatzilla ; then
+ elog "chatzilla is now an extension which can be en-/disabled and configured via"
+ elog "the Add-on manager."
+ fi
+}