summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2023-05-27 18:59:58 +0300
committerJoonas Niilola <juippis@gentoo.org>2023-05-27 19:01:10 +0300
commitf9a8ed39f2f5376e561c12b96874bcb3d41cecda (patch)
treef569a3c3e8f89c27cd55a4860e5eaa70365bacdf /mail-client
parentmail-client/thunderbird-bin: drop 102.11.1 (diff)
downloadgentoo-f9a8ed39f2f5376e561c12b96874bcb3d41cecda.tar.gz
gentoo-f9a8ed39f2f5376e561c12b96874bcb3d41cecda.tar.bz2
gentoo-f9a8ed39f2f5376e561c12b96874bcb3d41cecda.zip
mail-client/thunderbird: add 102.11.2
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/thunderbird/Manifest65
-rw-r--r--mail-client/thunderbird/thunderbird-102.11.2.ebuild1178
2 files changed, 1243 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index f8539235b36c..bc66f437132d 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -129,3 +129,68 @@ DIST thunderbird-102.11.1-vi.xpi 745661 BLAKE2B a3da7a1409ee7ed8ec5a4b21a9df05a2
DIST thunderbird-102.11.1-zh-CN.xpi 739884 BLAKE2B a32d7c56b47dde3e5f6ecdae6d678d566098b2f84fa9bf0b1cf719e83120808492a3156222435bb20047ef87c99d06b61949a1544a55b7e999359ff9e350e51c SHA512 f1657176212a29d6bd61060547a0c2ea22f4bf24f4eb251d8c60513da94deccdc1b94ac55c0bd4b8087e458f1c3d6d9e8287d8fb2086cb0b1df6833052610eea
DIST thunderbird-102.11.1-zh-TW.xpi 748344 BLAKE2B 7a12b1f2c3217804892a5517bf59c378ae696c504738ce8a75381981dbb047299eabf160584ebc418971d35b7412699d9db2c3df982bd0f336b19671169749d1 SHA512 677de6ba86e1a7012b66f2eb1dd8635dda94e75b3e89f38a90c3d21a79cb80fd37200c8ab00c7a9171c3738c39acae04a4877da5549945cf6f00e2fd6caae833
DIST thunderbird-102.11.1.source.tar.xz 508561820 BLAKE2B 168b898f8147c5c93c34d66dc2a31569921e892ac1c7d39ed331ac13815492afb4bd0ceb445421edefe0680d575e2ae6035051225c0b9bc1f00361283913d693 SHA512 af360e93fbdc42e8f5bd1982d14c11f3a69cd7a6e87f11c9a2b8fffdc7dc09eb8800ebf526523fbca47b18c0fac5880009ec94efa2a57203676212b78c2937d2
+DIST thunderbird-102.11.2-af.xpi 556870 BLAKE2B ac1ae139ffeff11f80de6fbda3ca2c42141d8ff75116c0616c5d288cde482bb4bb4e58605587489cc7878b9751bb29a6f1b718e0b7ae45dee11b62f83e10363c SHA512 4b6f650241309a3dcef9b456602bd054777ed666c5185f724974fa9b0443505460c8edccba0c105322a4fd4b939567feaaa6f5366eacfd2be878d7b4f3cc222c
+DIST thunderbird-102.11.2-ar.xpi 666809 BLAKE2B b2618593844dc04eb8ae996e63caf551c96e2ab814847edd468b01a67ff2e42283a95c3d8f840266693e83dda12d033c47cb03d9880c2602486c3bbf018e0328 SHA512 875982f30e86a75cd6258fa27112dcb57d552c916d9676f7d6319f474e85e3b5a42eaa17eaa52942bf480d82c4a523c3403579068551ea0092c5770d1e429dcd
+DIST thunderbird-102.11.2-ast.xpi 572287 BLAKE2B 822dce98bac70496a7404d3a957a24fdf5d507cb03b81c26fc90e04e819ab51f401c8c0dd7bac24ad9d6979e62cd33f565d3ecda1d4c21b0b2f36483330499cb SHA512 b7e813d001aa994aa5e42c4859e87d98b4fe565821f13b6291e257ba35df2e09b81ec7d63a6d2fdf0cde38e81ec3bc43b32ea1439fd5b2d39ede7fbe6437a039
+DIST thunderbird-102.11.2-be.xpi 701913 BLAKE2B 4eca354fd64a3dc54d424c9e6f633430682e16cf802ac74b5800a202d636b8da7bbaa92d9db785fd6ff1d51fb7692965742800004f2af13a4ace0661653a94eb SHA512 a24320e34dde9977897489e9e34c58f00995ca5d39025dc34ac3b4cc2db9a068a31761b77d10386fd827de0ef4c9fcc61b8c64518549ea8b11afb3f60a140aac
+DIST thunderbird-102.11.2-bg.xpi 693376 BLAKE2B 7fb62be7867e5f029a269173fbe16df416c7e24c18b2af407d0e6346cce1d1b5562c1bd79734751d56ce177268a61b029938d323f4c2426eb736c295c95c3962 SHA512 eec2076e7bd5c1a2c2df308d847295c198c3475b8f2aa232259c64736477286bf0aeaeb538319e0a5dcc095b4bdafc7d734ff765385f8966f48dedb7f80dd0a2
+DIST thunderbird-102.11.2-br.xpi 626472 BLAKE2B 2f680375d5a6910290dd1aef3594dd691671d64090c6186da8687a9fbfd5fc6285f4552d4fbb9f7baf7bf5bb0d37735afe5e24b7746a25fef34c51ae8f081bd5 SHA512 e98ebb043ec0f65047936f37b56a27675d46561717d50a629445fc584462b03863952f0b34be9f5e3f697ff7d9736e2b8991d24cb234fa30452a1f5d8c483497
+DIST thunderbird-102.11.2-ca.xpi 651367 BLAKE2B a05035c151b46cfcdd9e5d332849a34b2bf44c5789c55fc418896b87f8507e06f28da2084cb0a810289a02f1e5df217cda734b9fbef535129bfbcc547a18105d SHA512 a4c08166e4d48af5e00064817df3ae9e5e672a71cbb34a31863e8050a148eb18f6630d2adf475ce965fbccc3f7f9ad6357d7237493aceb8342b059c279deb51d
+DIST thunderbird-102.11.2-cak.xpi 651779 BLAKE2B e3988c8c0205799130534832b87d8ee09f2d3f4c8d70febe9303c85d75255d4d3c36c86c249650aaf944a87c34933c8b51d2d98ecbea8409b7723fd1c06d66b0 SHA512 4facc2d6ace0147e96e36af4fa102c3cb3fc842d11afd9f982ad1ad3b7b636c8f3f9acfb6dfa7133fa8b9bce1cbbdda33fcd985ad66987f4c3229688005e2e1b
+DIST thunderbird-102.11.2-cs.xpi 728625 BLAKE2B c74710b8effc107b2841745fd9b1dc0b061c9877870bbc54d5e41208cd9656d699a038801f0831d98d665c723f11ceae79dce9df4691b935b0afc096cf7d7c5f SHA512 74c70695341d3ff7cd47a45b3b20497e14e9fba91113be24806b21a06ae888fadbc0c2cf3f870998d7f9979d77b87f6d1b82a924b46be55011d122fdccbc9ccb
+DIST thunderbird-102.11.2-cy.xpi 705576 BLAKE2B efd25384014c2ad40ef74d3172e9903ba39e66133d05181f251760c72c9e3b42fc0932779061017cd40528a1b1b8aa1a8355eed34702eb593f2b70322c7a3410 SHA512 81edb53bafbc4e06225c69daa92c14159351652f9ac24d7e8d66321574fbd4fb85b6a9144f6afddf4e5e47630e7049bfa585daad8d3d73c7cd4f2c83bd386e8e
+DIST thunderbird-102.11.2-da.xpi 685255 BLAKE2B 5fcf25f26ce641593d68adda50101a82183767f70792ff50c1b19cd5183de3ae9b92cf61c843e3f9d1a483418bd36f33749f60b378d47f87d69ea4ee5b49fc81 SHA512 3d996ed5576c986e19e4953ede08933c6f3d1d173cbe0cd7c3f7ee2f605a98e6b78663a0c3ec6d834b33f63c835773f56e0e9435d6480b26c19daf8f4134b8a4
+DIST thunderbird-102.11.2-de.xpi 717944 BLAKE2B e96cbefbff1889afee56153fead33928ae15ad4b4e490426d81872310a44311cc00cd7a5c32fb0d3e3951b4ab3d26c1fda0c6c13398f131a1b1ba4ff5e8f5a26 SHA512 ed3acafeb37a25a0a47b3182c745cc14b0897fa8744343483a4f1b778b8e1d6d45cc67a039553e40b78b88b6dc5fe71db9a7a5f0b1ee4a2d0840751ba168b323
+DIST thunderbird-102.11.2-dsb.xpi 737085 BLAKE2B 4977fded409c3f0c783a6d24097d03797b5ab85e47323ab699cefdda0edb191eb5acd0ce44961a2cfacc3abc21455525cc722d37d22db2b1b833d6832c14205f SHA512 5c300bf8c9dbe813dd6a7d45bac0cbf209642cb54c62bb1a2d962f54fb800892efe2a1b2160a69ecb7fda97c2886e8f9b8bcb937f7954281574550dbf466b49f
+DIST thunderbird-102.11.2-el.xpi 840813 BLAKE2B 66d476a3dda4a68404dcecbf6f7650267fe574923c78a7f3493156f1ab60aeb40536f58f24a1df187034d134c78fb348c6a4cc5d2a7c25228bccc287fe41aaaa SHA512 18b17917668b413ccf01da0a571b4175cf4b2f1bdc13ffc96dbaac689b38ca81af137f2ddaab02c26fa004f912ff61c7b3e2f08ccd72ebb0923d3ac79367a662
+DIST thunderbird-102.11.2-en-CA.xpi 659094 BLAKE2B f1a41658529bd74c2cca7e071b63ad66ec7c5c162c4637cb0f0584ff7f88697d72aa3ceb093b5b49bf136069fa9ad2f70f130844e97ab2738852107ecf2f3bf8 SHA512 1f949369ac2cd7c5504742d31832a1a2e2b54b89271b5828a70a151279b0ff50a83c18aae9207a642f4547219d51882deeae7dbe0600d26f5513d3c81f676189
+DIST thunderbird-102.11.2-en-GB.xpi 665008 BLAKE2B f1230b450a23fa275e875ff8a1a305f2697655a01f4b4783a64a654ecdddb56c5fcfb3ec4d8971de19a63b67a2ac311c6027ed1c2ecb9b58a6bd6839710598bd SHA512 4d81f498d3775da6f9bb4678008982d2e24a1908c2324ad7c0c79baeba50d5f4540746a1971fceff0cae227b7fb812a16558fd1c0a868c53efbed1e265372a76
+DIST thunderbird-102.11.2-es-AR.xpi 717276 BLAKE2B 32f7f04592d57235968210fdcc5c06a9ce4eeb9b224ac635c1c25daece7555e8022e5dd63f0fd4aaa06a71cbf8d78e84a30a702bbf12a98960893523df6905d9 SHA512 9b993f86578f0702d3cb43784ac5dc99b1a487aba021187838f79eb2855b940e1ab9935b1243bb6ea121c89cc01e76d378fce9818ac5816e0bc48108d8200967
+DIST thunderbird-102.11.2-es-ES.xpi 677483 BLAKE2B 401e9ebebec07ba34c1cbb289aacd6b80991539ad23a6421df5cd36b672a69b42d6b244e1f9ae05044cf5f4cd25cb63ce80c1271eb52ea40e53e424ba33eda0d SHA512 d160d5cbe82945e8e5032cb3a777d2db40503080be6c6ad352324d4b368f83f8742898b1fe02807eb8647b25b96b0a7d87d32cddcd494b5d69f4dc21de673bc4
+DIST thunderbird-102.11.2-es-MX.xpi 719709 BLAKE2B cb79c0aca1a2f8214172a8e1cf464182ebbe954721ea85d2b7fb496ec893cefaabc25ac06f697c8bd98189f3c30887cbec104924640197367898ec926d37f140 SHA512 8a3a2c474d6596d269b81f7a5de9cf100dc868d5d6b66b913bdcbb51e21ceb452ddd9f91d737cb9d9d9ccb02b369ffc3dc65f2f8f2f7ab9e34226b3b29f33ab7
+DIST thunderbird-102.11.2-et.xpi 676675 BLAKE2B 9591bc5df8a55507d07d699d1ca3c51afd7eb8ea2cf4123d5c9282e9d449b5bf7d739951355b737ef087d0f52cd5d9fc231ac55bebe48e554ccb544afd1de9cf SHA512 ffd17d68a5af8ac0e1c1f5df2dacd3f65c0e7c838fc0f7b66223754b0737b1600815ddfabf888cb48951084454090b7f9518ba6f1031a91e71cc117cb48be982
+DIST thunderbird-102.11.2-eu.xpi 701828 BLAKE2B 2447845e9f4ef20fd563b7c0f1f881a3809a63e582e2b02d911c4879da749a61b61d584063248efb191525e7688d95732b201c1b001e564972b51efecfeab895 SHA512 7f646436797d7063475dc4c64e8a90782c84dbb58ccc7316a6e7d59121c710791979031ff15df7fd4e05fccfbdc61ae6ce67961894f127ca127bbc500f2f0bcf
+DIST thunderbird-102.11.2-fi.xpi 693485 BLAKE2B 58913fd6a2694fd713f33748d8bfe89d73ab875ba42a8ac9067dc3bed79513d411ed8593f47c8bff215ca71cec85cd868e829ce7d7de207e925d1b14d5d6c90b SHA512 784514df687650a10ab406facc8934ac3920105c233b5262502116c9570bd5bca901ab2c45c5fe1e4b2f8f04f6a5e3fc7b280fddcf1edce8a9a41cbef667c9f5
+DIST thunderbird-102.11.2-fr.xpi 730317 BLAKE2B 66da592a84a5045f136d986610f72d11fdbe8c2b71b82dc23d48af31cc43fe512b12bcdd2b1226499d52ea4ecf27d6397cd5fe776d78b49f7aeb008df8bd21a0 SHA512 02a79b46defec6fe2c8b3c057bff4ae77e8ef47fdf9e34bc70df1acdae4890b2b97b276f250c72a23952ae74c440a800d9d9d6c33d6ca7dde925268439bb658e
+DIST thunderbird-102.11.2-fy-NL.xpi 711989 BLAKE2B a36d8b12f25f485d402489ce9ccf267f8412eade15866eaa426d0aae5ca64d3e4a1e35b1dd0b636af8f62bb10f82907da3959f48616a7799999c47438ff13d36 SHA512 e5e00e0eba9b45dc1265200094c182caea214d8d4f7af1fe6e3955f6209f58f75bd3a8014f119ebac1fbf1965eab4d8181109121f0364d529d97195e0bbd9ce6
+DIST thunderbird-102.11.2-ga-IE.xpi 614536 BLAKE2B d231ff5653850d25986527cf3444045aa9ee514f3ae0414fa997dbdfeb3028f8bc4682fff525420c5af52018317bdb650b636c1cb37a9d66c94dfdafa1ae9629 SHA512 53c6949b5827ac84077c52e909b2fe60d1c5e60096e00189d31e238a5826f3eaa0d7fe32b352b9c6b7c9168ddd11a9a1ee6af8fd25d6d83d3b35b3010d0a7457
+DIST thunderbird-102.11.2-gd.xpi 643576 BLAKE2B d090ea8178b9daee112618d24572ad0ae5795492c816bb57036ee34e939368646e86f5f987553bb8763217a6d94842233fb992fa2c4bb204395575df3cf9414b SHA512 0b851e2b52dcef40615fdd74dc4890bbf398dadb458351a4decefa1d40ef3826edf767369ba5f2c2e0c35d7e761820a903d999c2f262dd7cce17f17ca1766d23
+DIST thunderbird-102.11.2-gl.xpi 673002 BLAKE2B fe8122eddd18ffcc15d67af53994792d1b94c49f6ea47413a7b248cec58f43ea7055c92d6c10132a8fc9fa635b6953502b2ff836410ea883a5a332d5c9062edb SHA512 8d61eecd0f79ce665311b5d7c41ca4bf061b9227fbd7514f58a76d78acc61206b87c4d0b4541ef2d7f5738de9d2b29a75a2cd9a6e6c86479005166d8af8beb91
+DIST thunderbird-102.11.2-he.xpi 676370 BLAKE2B 62a470838d513a18d76027ead0332091f4c91d77cbb17eedc70131a73a11a0f37787b1ba824e035c38963a74d0bfa277d11fecbce93fde8cba99acf51161d710 SHA512 41a676ccbf9cc970085324b7ef5d5cf53616de73cc4df193ba795eeec8b09df8f7bf6364d5d52904de47f5d7b8f3c66bc5b5445cf74589e6f9450fd7d7590dab
+DIST thunderbird-102.11.2-hr.xpi 677719 BLAKE2B 97cbe958de59c20797680c9a916ebc5e8927726b9f4b4ae32d51fbbbc810ab08c975acdec17afe9c5e4fd22932c4a6340e3a6fda5b6f6359e4d4aab9a1b8ddc0 SHA512 b1cd4c9c5e485eff73b2b4783043a5ace36ce160394ab77e22317b9d24bd693d3182d01220e44caeb34c69b132e9cb8e1b3b360ce08fa4188ec67b20bcacf549
+DIST thunderbird-102.11.2-hsb.xpi 736540 BLAKE2B cb4a522f9535285f3f67f7e38f7a50ca22a71099ceca6c9e79925d0c085234883297427be96578339df30b8bb173e67021d7b4be1deb8925d5853b8031a529f2 SHA512 b40394b1a78319795731d2320b2c718adfe9ada748e109575e1123d48c7d6101e1e8fb9da69ce35a2cefee93e8439ba4c944dc02f9c2ae1801be860e390f961f
+DIST thunderbird-102.11.2-hu.xpi 741201 BLAKE2B 9dc4cb758056cc43cbd6f54057f14987af528bbe988efd57d8cd3494b83efa7bc42757952dd7c258382945ee9300b8e5cc6783902337b916f70c8c76d8dab264 SHA512 2c4afd2b6cfdc9bc8b0d8585c803ec50fad80cd990f2968cbde16c72c8abf1d3721a17d1f370c6067868b9d4b403fb4be65e101784416b46ac9abfff384e1e1e
+DIST thunderbird-102.11.2-id.xpi 653192 BLAKE2B 39b1e900bfd5baa177f0a253e27b893e992c35e11098c30ad4e2a4c8e11fd39668d404f8a6be7ddaa07c9c4f41fb5eb486f6835e865e2d009c5d0a1b4df00106 SHA512 ac2a9d01e8da2f1f6cd05b35a6e9d2ae705dee6cb623ee74e193cbb1eea6c333ba6f7ea6c08feb77681aa64334470c0f945e57ec0377088c4992ee7dec699e9b
+DIST thunderbird-102.11.2-is.xpi 706392 BLAKE2B c51a031a29924686a079ff8ca803fb6ef24d40ca6eb3bcaf266a4536439af123c218d8f56256defc524c6a0f2400baa81177402f142aef3336913822f477b8ee SHA512 d815285fcdde53b31638e2ccecb95cf2c2696f0fda245e50003ff988612181877d4f513dd8c1cdb9e49eea0ccc38c2d11fc9b1e416d62953564bef6aa75637ae
+DIST thunderbird-102.11.2-it.xpi 639984 BLAKE2B 0611fca6dbee5b5a68fff51d2881c8c912626de7529422a3e71f819eb996186bfa2eb437527ed3c029a6919bdef191a527dea1e24ccc4d78c5fe3452bdd8d748 SHA512 efed78a5d9508656415f9078c587a33190da48a1ee251602bb43a9f662e2abf7f036d686cc1d33a54e66b797f088eec5ee284aa35cc2ce277a82f9ecbd3ba50f
+DIST thunderbird-102.11.2-ja.xpi 781907 BLAKE2B f80464e58cff1003a2bf2ad30979091042122a5375f4ef0c3f093e9f6f474a2707f6d9d9322b8ac94fdc7b21a2c40b9debf808d35c16871a1107f14b3a25be15 SHA512 8135271601dfa2158289db5c0886897bd882d64f68d10740fa296392287e880c5abfb68910c2299e9802d4aa6559aa3c4bb2aa0c2ac41a762cf5eafa19de13f4
+DIST thunderbird-102.11.2-ka.xpi 769803 BLAKE2B 3abc28f0248a72b6d56cefedae61f38606029f45cc8b120ffbfb6118378d00e751b0e97071e9b6dcfd1e5a72e3fb80c3ad08e8303de82435696d7d3b572f3d22 SHA512 818f910cff92ed615e56ae84aeaecc7e8783f844b579b1083d9e55c2c01385a2f6807f10f7e4f7a68e3c3ed71f044f7cc622cdd10bdd72338c171b9306ed2bcf
+DIST thunderbird-102.11.2-kab.xpi 702703 BLAKE2B ca9f07bde942eaaa57b7dc08a9eb5f820cf88e4533e2f432b6432680ed4d449adf5597e04ed5bc1fe6689ca34b186b701d5dc8c1b8a69cb9da1c7c6c1f49a32e SHA512 8d0821a487093f6c6b1dedc22e02b5e97a83df5e18ce6afa89476b7b03e64a9bda56488aab181eabb257c548eb507ea4c5c64f011b75363aeebcff9f54cf673b
+DIST thunderbird-102.11.2-kk.xpi 810967 BLAKE2B 2f236882c876a784bcbd548d37ec8be826d97ef6b35f688020dcf74bb0f7b1f21ccf421454e9b904a916f8a91569928e45ac36f543b73f31ddf34683f2ecce71 SHA512 30a2556353ed6923d44adbdcc9dee4c136d1a0d498551a391e2946798ee8a46d254008d26ba4cb83296566ba706ed30205fed11df36c1029f26700e74c841cf0
+DIST thunderbird-102.11.2-ko.xpi 716818 BLAKE2B a4839cdcd3275ed59f1691f6d21fa54e1d66f5fe6e8eb91ccab832cfd8fc57b07f4499290efbc830a253119ffb2e67f21a2186366de046ae0d05f996f9039e6e SHA512 119192663bcc9e26a314cb92d3fd882aeb47910a6d44c82b863fc6aa36b49afd8ef2c1835740fde2a4836b15c50653f0e58daf39bbea574aa3cb557109ae768c
+DIST thunderbird-102.11.2-lt.xpi 690855 BLAKE2B 419102b1bae385f1b1725a4e4ab9a89ef0762dc02eecdb785898097299caaf0ac13f77a2b2ce8eb0e9ba4611c8e0574e041d970ef0742eee9ecfc37a060fdecc SHA512 f3bf69290ee27184f78c745a1d151081ee67d338a5d6155a5e7c1a2ca96e630691ead82434e3de3408970b5acb4e240fbd62a22a68bb94689d8cfe35d48733a0
+DIST thunderbird-102.11.2-lv.xpi 617766 BLAKE2B 6f54b5fc8e1ae58156003f923d4744ae4d0fbd9297484298ba38910661d53cd0287f755bf96589efc9798a557607789188d5486a714ad645045d69c2750ce657 SHA512 a5dbce5ad5100459db835981c2d8e153d24da81faf2229f3f70ab5e1698fbdbf9c9463d395703a8526b47597c3a9e5d11d7a10688b86d3ff2b6bb214fa14965a
+DIST thunderbird-102.11.2-ms.xpi 577757 BLAKE2B 4af2f514684502199fce14debf052d717927fe8dbeedb098f298819dd9f926259c7fa64d20d13ae891de059e6853b05a447a8ad52e72875a47db02708e908a36 SHA512 cde3e2c403398c9d62420b96144c0908726cbf527f7bcf4a9aa5a14bfcadb83f4a7ae2d9a0b98fde4d8b029b1b1587385b95d2d91a46e6fbddfc30604fc6dcca
+DIST thunderbird-102.11.2-nb-NO.xpi 662683 BLAKE2B 13d3f1db254e35b7ab23dfe9ab42bc047c842c27eef76461154202a02ecaf41e9067b4751b151f402cb751f79ab3d1992e6e36c3167d24948421e5fdc1b40b33 SHA512 05105bf0456feb4643f65856cf33e1f72d83e9ed95779deba9197abd00cffa14b3bdde25eccb3df169eea641f7d53b4c897b25c4abd3361895c29324dc43b697
+DIST thunderbird-102.11.2-nl.xpi 703276 BLAKE2B ddb5e5c132da39ba59a803aa0e0bb855ad6bbeb8758abb3b18d2935456e3888a882e2d273869a5f50176ca615449c7b07e762d3e529e9e2e1d9a61c24f1477ac SHA512 77147d37993b1580c862be9ccd914e063c9894b2aba0c929a84524e15dd510d7de4ff6bc8ec903ac06fbee5f00b6e16c23012e6ceffba2fac7eceb720b58e480
+DIST thunderbird-102.11.2-nn-NO.xpi 672832 BLAKE2B f1ebece41612576a2144343461f7eca9c3e6af6759285f24bed1a9a9ae1c6e161435a56526f1174f625819f47f24bdde37dd382f7eb181713aeb75fa2d6f4df9 SHA512 c9543a73d2ff95c93f9e9735fd08d5283f791c2a1f8203ca15db887ec51ca251b9dcc8d1d6c9a77fee6efce67c82da654a919193596c81ede2b27ee839f474fc
+DIST thunderbird-102.11.2-pa-IN.xpi 668031 BLAKE2B 8ef2c424415d707266100bf9b69f8a676615de56ed8d59b7fcfb0681c73f52a1b65fe53a1460a11f0bfeed2058d0476af5e756852bf9207e916a7cf6d709f61c SHA512 67f4f6b9c3891923b01b409bca2bf759fe30a40804e61fe089d1e01d2640d1fa4da15c6064ffd69d29419aa9c05d22c72e74d38c7b0563c06657f7f9c4e2bd4d
+DIST thunderbird-102.11.2-pl.xpi 716231 BLAKE2B 4200ff6e88b58f9c164b16439bf2c00f5a32e156f603cbeb30a99486baef3df363ee1b26e722abaab097831672921ab7c7d2c913a50dc7ab7a470a3c41d41c5d SHA512 f7754102e88fef14013f539829ce8b1d295d7731fad0ebd7473f492e80a053766f9a3b082c3b3f72160f45ab6fc99d529e40694d601846ea713fe2dba32eb789
+DIST thunderbird-102.11.2-pt-BR.xpi 711151 BLAKE2B 195c4fe0a2bc7635dd5eec6380500352e952dea6cc2083cf5a46aa82d74491b406c58873b6181bce682eeb33e2ff32bc43a093b1075077096acd55c2ae7669e3 SHA512 eee53cdaae489af164e312f6d3b2c9fcf847ffba2f2353c0f3cec3b6a820a012b7fc359e8f99301894f62c909f186e795ef4ffa12e93686bf03d9e8766d9507b
+DIST thunderbird-102.11.2-pt-PT.xpi 686910 BLAKE2B 7adbcdc2f359f17ac264a7b899d285d31201e93dacc3fe387f04b17bd8243b605ed45bdce1328bd408f795df780f5fd17a84f681a5b742848baa7ae7702ac185 SHA512 f8857ccef775b1e987e92990c07841cd1aca345a5c955026d62a274964a659a3592efce024f8a8551ea80264e06748d186dd530485d0a0cc061423ca2dd1dae6
+DIST thunderbird-102.11.2-rm.xpi 701682 BLAKE2B c4f210562e43fa2e5a39aa805c2e8eb3f288603489f18115b73e3fd7ce4326f2c6eedbc55345675087b4fc1c49424f71118a49b9bdaf838efd7afe7a75c0569b SHA512 6f8f2bbd8db2506d7349ed1a3669d890b029384b14c5f8ed02075e8b71084aa511f43b782f30cc5c186b0d179f9243e802e66fc7f3ce9a0fcbc20d6238e9cbce
+DIST thunderbird-102.11.2-ro.xpi 661280 BLAKE2B 3f791b9f9919d18472b5b3d04a17c56560d8d4f800a55fe17d214fd992c7ea29787d05b53b09b523a33b7c8296908ff87d3754a2102a98a88a8713c0d1f641ec SHA512 82176689885bea3f3fcf02d1231e1f7807019273598c7ba80e0f893ab53c4403ecfa42616fef1c7a66e1490d7b71e0c96182e4082f1c20843fd2bedb9b7d2302
+DIST thunderbird-102.11.2-ru.xpi 827220 BLAKE2B f190008052ffd4bfdbd17209fb1bff059c3cd9feb7c10e6ff9a7529243c9cc1c3ebd824dde2fddcd9c90f88c2e7367bd01d0f0c8d0de9be16e75ec7de43f5ba9 SHA512 b999cc911943a178a0447287dd5f48edc9d97820714dafa1790dd4a08740e2a842177902d05e3e93f30e3a3c7a576215c9c06490c048ed9762fec2fdea2827c1
+DIST thunderbird-102.11.2-sk.xpi 740981 BLAKE2B 37886712c99837881eb1cf1b028b7f8842bdf4eff88675099019503c46015a50d02551b6f167a4e236b7cdc5f205cd1f698f360cc2e437d027b2c50727175e7d SHA512 8e71bebbfb0fa48e9c38d86cfc90e63224ce2b0f0c69cec5186f90ef04af7e87c728f452662e0ecac02a4346514c9c05007e7181b407a3055967580cbc290a37
+DIST thunderbird-102.11.2-sl.xpi 704060 BLAKE2B a0b7b41d9d39c7b0716540a5fac6c05809d954694f1a2b5acef89ed3e0a6e0b44e4823abf66f87a5b520e14676f224c458337df7c4a5d7f58fabafeb5c4ae925 SHA512 d41ffca62084badbeaaa34e6df78b2e17a11a1185376039d0509a8ea789162aa194bdc19fbb6a5a219c62a9885a37defbc8ae3fc3b4bd5f822a4988d11b9c1ab
+DIST thunderbird-102.11.2-sq.xpi 726037 BLAKE2B ec511b8cda1b25c19c1be1f6b23daea30f05cdaee65038964d42c4c298a83c938b38ca003a3f25a37d44287c39d98fc1f7f25ea385034779e46a1d47b0191ef2 SHA512 74a613e6df0aaf018659362314888b9f58285e99eda2db16d15c04d3f291d9add78bc998a9940f8ad7dbdf61b6cff60bf370e6bf50c6f80c599a0ff094ce7b60
+DIST thunderbird-102.11.2-sr.xpi 720557 BLAKE2B 28856cef4d5b62fb6e688d3d06090b624fd09ccbd059898844122fafb94d5967b6a9530e14d6a5ed4ef754c67c8e1a267271b08461e4b1f9077f0bcb59bd897f SHA512 389b7294b60436a54d6569695f2049038305e4fdd9305958b57f7b3cd033d161be0fd0ce6bc25c59eb7c1c4bbed18a513f3834d9d9b2332bc14547f5c4dc610b
+DIST thunderbird-102.11.2-sv-SE.xpi 706953 BLAKE2B 65ee5e718de73910e5c321a9325babccc30f42132133b221bfe61ebeab62fa9e75c6b38681dd9a8aa646b55f5da1ed27b9cbb74d81e2376d1117fbb1b87a8ab6 SHA512 3ee02e0d14868c78bbb36f8ad345ba28d3d765978542256eb4eba2848c5d2ac976573509e10562f14cec514305de3bd9809f83db8c758f260b4f8c0e0581f813
+DIST thunderbird-102.11.2-th.xpi 758235 BLAKE2B 247e9a59f53daecc89d89949f0341aceb9be72cc2658185927bef2abc305e925d671b05c789de2ea036c6b1baecd923536af43c42713bf2f992e2a088ad35177 SHA512 d562c7f76ba6f7d4660cff2041d49c575288725b60d0c78c1849c08a46564359fb2717488426577db9c1a28a1b9fa42e1cdb2b021c9022b255d1effe52b13923
+DIST thunderbird-102.11.2-tr.xpi 720175 BLAKE2B 30838c2b7b569d40f71d1150460840891da8519073417e0a9611c42114513001c49864cfee29710f49c682019924f47864f98bd92dc374e3987f56607d77c159 SHA512 1d5fb242d567ee88a7f9e422d395e390b59690e9b5d86c80eaeb0a039089ec1f5f5a30f51285770d25c9ae26d6d89647bdee466444dd543777669b86bdc2b8f2
+DIST thunderbird-102.11.2-uk.xpi 818663 BLAKE2B 6772953d86f682b535b9121d1e06f0a7f5e6890c18933217938c771df3a84b2e144eb13e4f55385551803999fa0e822a125e8c7090cb009d1f3b3efca730e2c4 SHA512 ec95da3330429d171120786dba00505195122dd921c5860f395e2d27aa7b36da08992918ffc69083e67ad5618f1e5ac8734a3b24423f02df2205105cb267484b
+DIST thunderbird-102.11.2-uz.xpi 593013 BLAKE2B 7947e7e9fc35219b0a5be2e67002d3afdffb0c82a60e16936dd9783c1fcff363c53324c80e66a054014cc92b1caf98acbb9c33b7e3534f0c7f66c2735d8cc69b SHA512 b9ff962f19f7ac136e5ba347632804ed11303352520f3299d35881909daba86c0e1092406a1a377be67a8332235758346b9be0d8c4804141238dc594e52c0706
+DIST thunderbird-102.11.2-vi.xpi 745664 BLAKE2B 0ff46ad2bdc69036d78bcf8936d563b38c66685ac59e11df83aa59da027e5b36b6506c4d926db6729a4cc40b5f0f9058bccd71f93a6884f745954b8149e4b3cc SHA512 c697e3b2f7bf3e3940b73ea979c5eb06c2ba08a3e266687d2a7ce2a3a7970b0ea435bbf37e155a2b131845106870a96ada2fffa6a26579759bc16fa2b69f7f90
+DIST thunderbird-102.11.2-zh-CN.xpi 739887 BLAKE2B 4425a432fa392e92d688b69c314d848ac2938e7e5a207eaa42a0a3c329511157e5b50f9d158e0836afe93fc073a29d8c730f2b6a2af59df94f80e167de43fbf2 SHA512 528c008e1226cc3db92c1167aa4b3b67ff476a6f81ac7646e1cc90a59d85f84089b1bbad2050998e2e5d22266991bc506af5bc7847f6904037d8cea43f9c4854
+DIST thunderbird-102.11.2-zh-TW.xpi 748345 BLAKE2B 94c8fc2a5e7d321fb283903867a8427d90822676ec0ecc3e987286477ffcf6765b382d11dfffcc916a5543b6ae9ff531f7a86ec8eeca4ac658cb943b668a3b1c SHA512 8f9c3ae246d130a46170f3d7df00a9d0c7c5b701d2ee75fd6762796d51cc7f6ce0501ca09f1b4a2536f9fe3c8c8a1a0034ec8365af9212eb5db74523067f9403
+DIST thunderbird-102.11.2.source.tar.xz 503416640 BLAKE2B 2be8dfb6aea780c605d29ba56783c631cda5fe875e6fd4bbee20547c70d795180a7fadb4904763a2e5220dab8d8ac78f7ced3f9f0e976883fe9f2fbb1093a874 SHA512 631e2fd8f9ce3b480ad6ea820c684a039b3de17f475acbba35ea4d3229223b81081a7f09b4a7c4ae64cf3f58a50dba58a72fe591f6e42ef6bac7c402db3d8558
diff --git a/mail-client/thunderbird/thunderbird-102.11.2.ebuild b/mail-client/thunderbird/thunderbird-102.11.2.ebuild
new file mode 100644
index 000000000000..2291ad1b535d
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-102.11.2.ebuild
@@ -0,0 +1,1178 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-102esr-patches-10tb.tar.xz"
+
+LLVM_MAX_SLOT=15
+
+PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="pgo"
+
+MOZ_ESR=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+ MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+ # Convert the ebuild version to the upstream Mozilla version
+ MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+ MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
+ MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ # ESR releases have slightly different version numbers
+ MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit autotools check-reqs desktop flag-o-matic gnome2-utils \
+ llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \
+ virtualx xdg
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
+
+if [[ ${PV} == *_rc* ]] ; then
+ MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
+fi
+
+PATCH_URIS=(
+ https://dev.gentoo.org/~{juippis,whissi,slashbeast}/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
+ ${PATCH_URIS[@]}"
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/"
+
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+
+IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
+IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp"
+IUSE+=" wayland wifi"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="debug? ( !system-av1 )
+ pgo? ( lto )
+ wayland? ( dbus )
+ wifi? ( dbus )"
+
+# Thunderbird-only dependencies.
+TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2
+ selinux? ( sec-policy/selinux-thunderbird )
+ !system-librnp? ( dev-libs/jsoncpp )
+ system-librnp? ( dev-util/librnp )"
+BDEPEND="${PYTHON_DEPS}
+ || (
+ (
+ sys-devel/clang:15
+ sys-devel/llvm:15
+ clang? (
+ sys-devel/lld:15
+ virtual/rust:0/llvm-15
+ pgo? ( =sys-libs/compiler-rt-sanitizers-15*[profile] )
+ )
+ )
+ (
+ sys-devel/clang:14
+ sys-devel/llvm:14
+ clang? (
+ sys-devel/lld:14
+ virtual/rust:0/llvm-14
+ pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] )
+ )
+ )
+ )
+ !clang? ( virtual/rust )
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.24.3
+ net-libs/nodejs
+ virtual/pkgconfig
+ amd64? ( >=dev-lang/nasm-2.14 )
+ x86? ( >=dev-lang/nasm-2.14 )"
+
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+ >=app-accessibility/at-spi2-core-2.46.0:2
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/libffi:=
+ >=dev-libs/nss-3.79.2
+ >=dev-libs/nspr-4.34
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ sys-libs/zlib
+ virtual/freedesktop-icon-theme
+ virtual/opengl
+ x11-libs/cairo[X]
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ x11-libs/libXtst
+ x11-libs/libxcb:=
+ x11-libs/libxkbcommon[X]
+ x11-libs/pango
+ x11-libs/pixman
+ dbus? (
+ dev-libs/dbus-glib
+ sys-apps/dbus
+ )
+ jack? ( virtual/jack )
+ libproxy? ( net-libs/libproxy )
+ pulseaudio? (
+ || (
+ media-libs/libpulse
+ >=media-sound/apulse-0.1.12-r4[sdk]
+ )
+ )
+ sndio? ( >=media-sound/sndio-1.8.0-r1 )
+ system-av1? (
+ >=media-libs/dav1d-1.0.0:=
+ >=media-libs/libaom-1.0.0:=
+ )
+ system-harfbuzz? (
+ >=media-gfx/graphite2-1.3.13
+ >=media-libs/harfbuzz-2.8.1:0=
+ )
+ system-icu? ( >=dev-libs/icu-71.1:= )
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
+ system-libevent? ( >=dev-libs/libevent-2.0:0=[threads(+)] )
+ system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+ system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
+ system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+ wayland? (
+ x11-libs/gtk+:3[wayland]
+ x11-libs/libdrm
+ x11-libs/libxkbcommon[wayland]
+ )
+ wifi? (
+ kernel_linux? (
+ dev-libs/dbus-glib
+ net-misc/networkmanager
+ sys-apps/dbus
+ )
+ )"
+
+RDEPEND="${COMMON_DEPEND}
+ jack? ( virtual/jack )
+ openh264? ( media-libs/openh264:*[plugin] )"
+
+DEPEND="${COMMON_DEPEND}
+ x11-base/xorg-proto
+ x11-libs/libICE
+ x11-libs/libSM"
+
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+llvm_check_deps() {
+ if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
+ einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use clang ; then
+ if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then
+ einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then
+ einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use pgo ; then
+ if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+ einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+ fi
+
+ einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+ af ar ast be bg br ca cak cs cy da de dsb
+ el en-CA en-GB en-US es-AR es-ES es-MX et eu
+ fi fr fy-NL ga-IE gd gl he hr hsb hu
+ id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+ pa-IN pl pt-BR pt-PT rm ro ru
+ sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+ # https://bugs.gentoo.org/587334
+ local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+ fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+ )
+
+ local lang xflag
+ for lang in "${MOZ_LANGS[@]}" ; do
+ # en and en_US are handled internally
+ if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+ continue
+ fi
+
+ # strip region subtag if $lang is in the list
+ if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+ xflag=${lang%%-*}
+ else
+ xflag=${lang}
+ fi
+
+ SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+ SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi"
+ SRC_URI+=" )"
+ IUSE+=" l10n_${xflag/[_@]/-}"
+ done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -ne 1 ]] ; then
+ die "${FUNCNAME} requires exact one argument"
+ fi
+
+ einfo "Clearing cargo checksums for ${1} ..."
+
+ sed -i \
+ -e 's/\("files":{\)[^}]*/\1/' \
+ "${S}"/third_party/rust/${1}/.cargo-checksum.json \
+ || die
+}
+
+moz_install_xpi() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local DESTDIR=${1}
+ shift
+
+ insinto "${DESTDIR}"
+
+ local emid xpi_file xpi_tmp_dir
+ for xpi_file in "${@}" ; do
+ emid=
+ xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+ # Unpack XPI
+ unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+ # Determine extension ID
+ if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+ emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+ [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
+ elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+ emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
+ [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
+ else
+ die "failed to determine extension id"
+ fi
+
+ einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+ newins "${xpi_file}" "${emid}.xpi"
+ done
+}
+
+mozconfig_add_options_ac() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_add_options_mk() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_use_enable() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_enable "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
+}
+
+mozconfig_use_with() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_with "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
+}
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ if use pgo ; then
+ if ! has usersandbox $FEATURES ; then
+ die "You must enable usersandbox as X server can not run as root!"
+ fi
+ fi
+
+ # Ensure we have enough disk space to compile
+ if use pgo || use lto || use debug ; then
+ CHECKREQS_DISK_BUILD="13500M"
+ else
+ CHECKREQS_DISK_BUILD="6600M"
+ fi
+
+ check-reqs_pkg_pretend
+ fi
+}
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ if use pgo ; then
+ if ! has userpriv ${FEATURES} ; then
+ eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!"
+ fi
+ fi
+
+ # Ensure we have enough disk space to compile
+ if use pgo || use lto || use debug ; then
+ CHECKREQS_DISK_BUILD="13500M"
+ else
+ CHECKREQS_DISK_BUILD="6400M"
+ fi
+
+ check-reqs_pkg_setup
+
+ llvm_pkg_setup
+
+ if use clang && use lto ; then
+ local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }')
+ [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}")
+ [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!"
+
+ local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }')
+ [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
+ [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!"
+
+ if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then
+ eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
+ eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:"
+ eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version"
+ eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version"
+ eerror " - Build ${CATEGORY}/${PN} without USE=lto"
+ eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole "
+ eerror " llvm/clang/lld/rust chain depending on your @world updates)"
+ die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
+ fi
+ fi
+
+ python-any-r1_pkg_setup
+
+ # Avoid PGO profiling problems due to enviroment leakage
+ # These should *always* be cleaned up anyway
+ unset \
+ DBUS_SESSION_BUS_ADDRESS \
+ DISPLAY \
+ ORBIT_SOCKETDIR \
+ SESSION_MANAGER \
+ XAUTHORITY \
+ XDG_CACHE_HOME \
+ XDG_SESSION_COOKIE
+
+ # Build system is using /proc/self/oom_score_adj, bug #604394
+ addpredict /proc/self/oom_score_adj
+
+ if use pgo ; then
+ # Allow access to GPU during PGO run
+ local ati_cards mesa_cards nvidia_cards render_cards
+ shopt -s nullglob
+
+ ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+ if [[ -n "${ati_cards}" ]] ; then
+ addpredict "${ati_cards}"
+ fi
+
+ mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+ if [[ -n "${mesa_cards}" ]] ; then
+ addpredict "${mesa_cards}"
+ fi
+
+ nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
+ if [[ -n "${nvidia_cards}" ]] ; then
+ addpredict "${nvidia_cards}"
+ fi
+
+ render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
+ if [[ -n "${render_cards}" ]] ; then
+ addpredict "${render_cards}"
+ fi
+
+ shopt -u nullglob
+ fi
+
+ if ! mountpoint -q /dev/shm ; then
+ # If /dev/shm is not available, configure is known to fail with
+ # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
+ ewarn "/dev/shm is not mounted -- expect build failures!"
+ fi
+
+ # 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.
+ if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+ MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+ fi
+
+ if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+ MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+ fi
+
+ # Mozilla API keys (see https://location.services.mozilla.com/api)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+ MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+ fi
+
+ # Ensure we use C locale when building, bug #746215
+ export LC_ALL=C
+ fi
+}
+
+src_unpack() {
+ local _lp_dir="${WORKDIR}/language_packs"
+ local _src_file
+
+ if [[ ! -d "${_lp_dir}" ]] ; then
+ mkdir "${_lp_dir}" || die
+ fi
+
+ for _src_file in ${A} ; do
+ if [[ ${_src_file} == *.xpi ]]; then
+ cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
+ else
+ unpack ${_src_file}
+ fi
+ done
+}
+
+src_prepare() {
+ if use lto; then
+ rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+ fi
+
+ eapply "${WORKDIR}/firefox-patches"
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_user
+
+ # Make cargo respect MAKEOPTS
+ export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+ # Make LTO respect MAKEOPTS
+ sed -i \
+ -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/build/moz.configure/lto-pgo.configure \
+ || die "sed failed to set num_cores"
+
+ # Make ICU respect MAKEOPTS
+ sed -i \
+ -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/intl/icu_sources_data.py \
+ || die "sed failed to set num_cores"
+
+ # sed-in toolchain prefix
+ sed -i \
+ -e "s/objdump/${CHOST}-objdump/" \
+ "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \
+ || die "sed failed to set toolchain prefix"
+
+ sed -i \
+ -e 's/ccache_stats = None/return None/' \
+ "${S}"/python/mozbuild/mozbuild/controller/building.py \
+ || die "sed failed to disable ccache stats call"
+
+ einfo "Removing pre-built binaries ..."
+ find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
+
+ # Clearing crate checksums where we have applied patches
+ moz_clear_vendor_checksums bindgen
+
+ # Create build dir
+ BUILD_DIR="${WORKDIR}/${PN}_build"
+ mkdir -p "${BUILD_DIR}" || die
+
+ # Write API keys to disk
+ echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+ echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die
+ echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+ xdg_environment_reset
+}
+
+src_configure() {
+ # Show flags set at the beginning
+ einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ local have_switched_compiler=
+ if use clang; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+ if tc-is-gcc; then
+ have_switched_compiler=yes
+ fi
+ AR=llvm-ar
+ CC=${CHOST}-clang
+ CXX=${CHOST}-clang++
+ NM=llvm-nm
+ RANLIB=llvm-ranlib
+ elif ! use clang && ! tc-is-gcc ; then
+ # Force gcc
+ have_switched_compiler=yes
+ einfo "Enforcing the use of gcc due to USE=-clang ..."
+ AR=gcc-ar
+ CC=${CHOST}-gcc
+ CXX=${CHOST}-g++
+ NM=gcc-nm
+ RANLIB=gcc-ranlib
+ fi
+
+ if [[ -n "${have_switched_compiler}" ]] ; then
+ # Because we switched active compiler we have to ensure
+ # that no unsupported flags are set
+ strip-unsupported-flags
+ fi
+
+ # Ensure we use correct toolchain
+ export HOST_CC="$(tc-getBUILD_CC)"
+ export HOST_CXX="$(tc-getBUILD_CXX)"
+ export AS="$(tc-getCC) -c"
+ tc-export CC CXX LD AR AS NM OBJDUMP RANLIB PKG_CONFIG
+
+ # Pass the correct toolchain paths through cbindgen
+ if tc-is-cross-compiler ; then
+ export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}"
+ fi
+
+ # Set MOZILLA_FIVE_HOME
+ export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # python/mach/mach/mixin/process.py fails to detect SHELL
+ export SHELL="${EPREFIX}/bin/bash"
+
+ # Set state path
+ export MOZBUILD_STATE_PATH="${BUILD_DIR}"
+
+ # Set MOZCONFIG
+ export MOZCONFIG="${S}/.mozconfig"
+
+ # Initialize MOZCONFIG
+ mozconfig_add_options_ac '' --enable-application=comm/mail
+
+ # Set Gentoo defaults
+ export MOZILLA_OFFICIAL=1
+
+ mozconfig_add_options_ac 'Gentoo default' \
+ --allow-addon-sideload \
+ --disable-cargo-incremental \
+ --disable-crashreporter \
+ --disable-gpsd \
+ --disable-install-strip \
+ --disable-parental-controls \
+ --disable-strip \
+ --disable-updater \
+ --enable-js-shell \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-release \
+ --enable-system-ffi \
+ --enable-system-pixman \
+ --host="${CBUILD:-${CHOST}}" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --prefix="${EPREFIX}/usr" \
+ --target="${CHOST}" \
+ --without-ccache \
+ --without-wasm-sandboxed-libraries \
+ --with-intl-api \
+ --with-libclang-path="$(llvm-config --libdir)" \
+ --with-system-nspr \
+ --with-system-nss \
+ --with-system-zlib \
+ --with-toolchain-prefix="${CHOST}-" \
+ --with-unsigned-addon-scopes=app,system \
+ --x-includes="${ESYSROOT}/usr/include" \
+ --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
+
+ # Set update channel
+ local update_channel=release
+ [[ -n ${MOZ_ESR} ]] && update_channel=esr
+ mozconfig_add_options_ac '' --update-channel=${update_channel}
+
+ if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
+ mozconfig_add_options_ac '' --enable-rust-simd
+ fi
+
+ # For future keywording: This is currently (97.0) only supported on:
+ # amd64, arm, arm64 & x86.
+ # Might want to flip the logic around if Firefox is to support more arches.
+ if use ppc64; then
+ mozconfig_add_options_ac '' --disable-sandbox
+ else
+ mozconfig_add_options_ac '' --enable-sandbox
+ fi
+
+ if [[ -s "${S}/api-google.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+ else
+ einfo "Building without Google API key ..."
+ fi
+
+ if [[ -s "${S}/api-location.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-google-location-service-api-keyfile="${S}/api-location.key"
+ else
+ einfo "Building without Location API key ..."
+ fi
+
+ if [[ -s "${S}/api-mozilla.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+ else
+ einfo "Building without Mozilla API key ..."
+ fi
+
+ mozconfig_use_with system-av1
+ mozconfig_use_with system-harfbuzz
+ mozconfig_use_with system-harfbuzz system-graphite2
+ mozconfig_use_with system-icu
+ mozconfig_use_with system-jpeg
+ mozconfig_use_with system-libevent
+ mozconfig_use_with system-libvpx
+ mozconfig_use_with system-png
+ mozconfig_use_with system-webp
+
+ if use system-librnp; then
+ mozconfig_add_options_ac "+system-librnp" --enable-compile-environment
+ mozconfig_use_with system-librnp
+ else
+ # This controls the backend of the bundled librnp. Choices are "botan" and "openssl".
+ # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp.
+ mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan"
+ fi
+
+ mozconfig_use_enable dbus
+ mozconfig_use_enable libproxy
+
+ use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+ if use hardened ; then
+ mozconfig_add_options_ac "+hardened" --enable-hardening
+ append-ldflags "-Wl,-z,relro -Wl,-z,now"
+ fi
+
+ local myaudiobackends=""
+ use jack && myaudiobackends+="jack,"
+ use sndio && myaudiobackends+="sndio,"
+ use pulseaudio && myaudiobackends+="pulseaudio,"
+ ! use pulseaudio && myaudiobackends+="alsa,"
+
+ mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}"
+
+ mozconfig_use_enable wifi necko-wifi
+
+ if use wayland ; then
+ mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland
+ else
+ mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3
+ fi
+
+ if use lto ; then
+ if use clang ; then
+ # Upstream only supports lld when using clang
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
+
+ mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+ else
+ # ThinLTO is currently broken, see bmo#1644409
+ mozconfig_add_options_ac '+lto' --enable-lto=full
+ mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
+ fi
+
+ if use pgo ; then
+ mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+ if use clang ; then
+ # Used in build/pgo/profileserver.py
+ export LLVM_PROFDATA="llvm-profdata"
+ fi
+ fi
+ else
+ # Avoid auto-magic on linker
+ if use clang ; then
+ # This is upstream's default
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
+ else
+ mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
+ fi
+ fi
+
+ # LTO flag was handled via configure
+ filter-flags '-flto*'
+
+ mozconfig_use_enable debug
+ if use debug ; then
+ mozconfig_add_options_ac '+debug' --disable-optimize
+ else
+ if is-flag '-g*' ; then
+ if use clang ; then
+ mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
+ else
+ mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
+ fi
+ else
+ mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
+ fi
+
+ if is-flag '-O0' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
+ elif is-flag '-O4' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
+ elif is-flag '-O3' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
+ elif is-flag '-O1' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
+ elif is-flag '-Os' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
+ else
+ mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
+ fi
+ fi
+
+ # Debug flag was handled via configure
+ filter-flags '-g*'
+
+ # Optimization flag was handled via configure
+ filter-flags '-O*'
+
+ # Modifications to better support ARM, bug #553364
+ if use cpu_flags_arm_neon ; then
+ mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
+
+ if ! tc-is-clang ; then
+ # thumb options aren't supported when using clang, bug 666966
+ mozconfig_add_options_ac '+cpu_flags_arm_neon' \
+ --with-thumb=yes \
+ --with-thumb-interwork=no
+ fi
+ fi
+
+ if [[ ${CHOST} == armv*h* ]] ; then
+ mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
+
+ if ! use system-libvpx ; then
+ sed -i \
+ -e "s|softfp|hard|" \
+ "${S}"/media/libvpx/moz.build \
+ || die
+ fi
+ fi
+
+ if use clang ; then
+ # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
+ # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
+ # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64')
+ local disable_elf_hack=
+ if use amd64 ; then
+ disable_elf_hack=yes
+ elif use x86 ; then
+ disable_elf_hack=yes
+ elif use arm ; then
+ disable_elf_hack=yes
+ fi
+
+ if [[ -n ${disable_elf_hack} ]] ; then
+ mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack
+ fi
+ elif tc-is-gcc ; then
+ if ver_test $(gcc-fullversion) -ge 10 ; then
+ einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..."
+ append-cxxflags -fno-tree-loop-vectorize
+ fi
+ fi
+
+ # Additional ARCH support
+ case "${ARCH}" in
+ arm)
+ # Reduce the memory requirements for linking
+ if use clang ; then
+ # Nothing to do
+ :;
+ elif use lto ; then
+ append-ldflags -Wl,--no-keep-memory
+ else
+ append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
+ fi
+ ;;
+ esac
+
+ if ! use elibc_glibc ; then
+ mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+ fi
+
+ # Allow elfhack to work in combination with unstripped binaries
+ # when they would normally be larger than 2GiB.
+ append-ldflags "-Wl,--compress-debug-sections=zlib"
+
+ # Make revdep-rebuild.sh happy; Also required for musl
+ append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
+
+ # Pass $MAKEOPTS to build system
+ export MOZ_MAKE_FLAGS="${MAKEOPTS}"
+
+ # Use system's Python environment
+ export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+ if use system-python-libs; then
+ export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system"
+ else
+ export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+ fi
+
+ # Disable notification when build system has finished
+ export MOZ_NOSPAM=1
+
+ # Portage sets XARGS environment variable to "xargs -r" by default which
+ # breaks build system's check_prog() function which doesn't support arguments
+ mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
+
+ # Set build dir
+ mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
+
+ # Show flags we will use
+ einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ # Handle EXTRA_CONF and show summary
+ local ac opt hash reason
+
+ # Apply EXTRA_ECONF entries to $MOZCONFIG
+ if [[ -n ${EXTRA_ECONF} ]] ; then
+ IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
+ for opt in "${ac[@]}"; do
+ mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
+ done
+ fi
+
+ echo
+ echo "=========================================================="
+ echo "Building ${PF} with the following configuration"
+ grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
+ [[ -z ${hash} || ${hash} == \# ]] \
+ || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
+ printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
+ done
+ echo "=========================================================="
+ echo
+
+ ./mach configure || die
+}
+
+src_compile() {
+ local virtx_cmd=
+
+ if use pgo ; then
+ virtx_cmd=virtx
+
+ # Reset and cleanup environment variables used by GNOME/XDG
+ gnome2_environment_reset
+
+ addpredict /root
+ fi
+
+ local -x GDK_BACKEND=x11
+
+ ${virtx_cmd} ./mach build --verbose \
+ || die
+}
+
+src_install() {
+ # xpcshell is getting called during install
+ pax-mark m \
+ "${BUILD_DIR}"/dist/bin/xpcshell \
+ "${BUILD_DIR}"/dist/bin/${PN} \
+ "${BUILD_DIR}"/dist/bin/plugin-container
+
+ DESTDIR="${D}" ./mach install || die
+
+ # Upstream cannot ship symlink but we can (bmo#658850)
+ rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+ dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+ # Don't install llvm-symbolizer from sys-devel/llvm package
+ if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+ rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+ fi
+
+ # Install policy (currently only used to disable application updates)
+ insinto "${MOZILLA_FIVE_HOME}/distribution"
+ newins "${FILESDIR}"/distribution.ini distribution.ini
+ newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+ # Install system-wide preferences
+ local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+ insinto "${PREFS_DIR}"
+ newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
+
+ local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+ # Set dictionary path to use system hunspell
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
+ pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
+ EOF
+
+ # Force hwaccel prefs if USE=hwaccel is enabled
+ if use hwaccel ; then
+ cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
+ >>"${GENTOO_PREFS}" \
+ || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
+
+ if use wayland; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs"
+ pref("gfx.x11-egl.force-enabled", false);
+ EOF
+ else
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs"
+ pref("gfx.x11-egl.force-enabled", true);
+ EOF
+ fi
+ fi
+
+ # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
+ if use system-harfbuzz ; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
+ sticky_pref("gfx.font_rendering.graphite.enabled", true);
+ EOF
+ fi
+
+ # Install language packs
+ local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
+ if [[ -n "${langpacks}" ]] ; then
+ moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
+ fi
+
+ # Install icons
+ local icon_srcdir="${S}/comm/mail/branding/thunderbird"
+ local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
+
+ insinto /usr/share/icons/hicolor/symbolic/apps
+ newins "${icon_symbolic_file}" ${PN}-symbolic.svg
+
+ local icon size
+ for icon in "${icon_srcdir}"/default*.png ; do
+ size=${icon%.png}
+ size=${size##*/default}
+
+ if [[ ${size} -eq 48 ]] ; then
+ newicon "${icon}" ${PN}.png
+ fi
+
+ newicon -s ${size} "${icon}" ${PN}.png
+ done
+
+ # Install menu
+ local app_name="Mozilla ${MOZ_PN^}"
+ local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
+ local desktop_filename="${PN}.desktop"
+ local exec_command="${PN}"
+ local icon="${PN}"
+ local use_wayland="false"
+
+ if use wayland ; then
+ use_wayland="true"
+ fi
+
+ cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
+
+ sed -i \
+ -e "s:@NAME@:${app_name}:" \
+ -e "s:@EXEC@:${exec_command}:" \
+ -e "s:@ICON@:${icon}:" \
+ "${WORKDIR}/${PN}.desktop-template" \
+ || die
+
+ newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
+
+ rm "${WORKDIR}/${PN}.desktop-template" || die
+
+ # Install wrapper script
+ [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
+ newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
+
+ # Update wrapper
+ sed -i \
+ -e "s:@PREFIX@:${EPREFIX}/usr:" \
+ -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
+ -e "s:@APULSELIB_DIR@:${apulselib}:" \
+ -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
+ "${ED}/usr/bin/${PN}" \
+ || die
+}
+
+pkg_preinst() {
+ xdg_pkg_preinst
+
+ # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
+ # does not need to be forced into the LD_LIBRARY_PATH
+ if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+ einfo "APULSE found; Generating library symlinks for sound support ..."
+ local lib
+ pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
+ for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
+ # A quickpkg rolled by hand will grab symlinks as part of the package,
+ # so we need to avoid creating them if they already exist.
+ if [[ ! -L ${lib##*/} ]] ; then
+ ln -s "${lib}" ${lib##*/} || die
+ fi
+ done
+ popd &>/dev/null || die
+ fi
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+ elog "Apulse was detected at merge time on this system and so it will always be"
+ elog "used for sound. If you wish to use pulseaudio instead please unmerge"
+ elog "media-sound/apulse."
+ elog
+ fi
+
+ local show_doh_information
+ local show_shortcut_information
+
+ if [[ -z "${REPLACING_VERSIONS}" ]] ; then
+ # New install; Tell user that DoH is disabled by default
+ show_doh_information=yes
+ show_shortcut_information=no
+ else
+ local replacing_version
+ for replacing_version in ${REPLACING_VERSIONS} ; do
+ if ver_test "${replacing_version}" -lt 91.0 ; then
+ # Tell user that we no longer install a shortcut
+ # per supported display protocol
+ show_shortcut_information=yes
+ fi
+ done
+ fi
+
+ if [[ -n "${show_doh_information}" ]] ; then
+ elog
+ elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
+ elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
+ elog "DNS traffic to Cloudflare by default is not a good idea and applications"
+ elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
+ elog "(\"Off by choice\") by default."
+ elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
+ fi
+
+ if [[ -n "${show_shortcut_information}" ]] ; then
+ elog
+ elog "Since ${PN}-91.0 we no longer install multiple shortcuts for"
+ elog "each supported display protocol. Instead we will only install"
+ elog "one generic Mozilla ${PN^} shortcut."
+ elog "If you still want to be able to select between running Mozilla ${PN^}"
+ elog "on X11 or Wayland, you have to re-create these shortcuts on your own."
+ fi
+
+ # bug 835078
+ if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then
+ ewarn "You have nouveau drivers installed in your system and 'hwaccel' "
+ ewarn "enabled for Firefox. Nouveau / your GPU might not support the "
+ ewarn "required EGL, so either disable 'hwaccel' or try the workaround "
+ ewarn "explained in https://bugs.gentoo.org/835078#c5 if Firefox crashes."
+ fi
+
+ optfeature_header "Optional programs for extra features:"
+ optfeature "desktop notifications" x11-libs/libnotify
+ optfeature "encrypted chat support" net-libs/libotr
+ optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas
+}