summaryrefslogtreecommitdiff
path: root/mail-client
diff options
context:
space:
mode:
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/Manifest.gzbin3714 -> 3717 bytes
-rw-r--r--mail-client/thunderbird/Manifest66
-rw-r--r--mail-client/thunderbird/thunderbird-102.11.1.ebuild1178
3 files changed, 1244 insertions, 0 deletions
diff --git a/mail-client/Manifest.gz b/mail-client/Manifest.gz
index 4a02177c72e5..f689f390d722 100644
--- a/mail-client/Manifest.gz
+++ b/mail-client/Manifest.gz
Binary files differ
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 1ca0dddcd37a..981e8b013dc8 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -70,5 +70,71 @@ DIST thunderbird-102.11.0-vi.xpi 745665 BLAKE2B 757ae36c07aba6d1e20eebeb3e294954
DIST thunderbird-102.11.0-zh-CN.xpi 739887 BLAKE2B 45055d549a1a3f56a3b2f41907c0b072e0bc8653d90929def09983500f78e045401fa44f97921b25c4fac0a2a1553650f41945a8167970c9719446dec27e6bd6 SHA512 ef86ed3c3670c111a2fbf9cec2536d1436287c9784bff1cd6091bd015b387e967e4be44460b6bbf109636d14f2bb5f069ea3ce108f7cbd2cc83485179d9de876
DIST thunderbird-102.11.0-zh-TW.xpi 748348 BLAKE2B 7f9d445a9f14b872ede3ee337529cf60b876601eb143a5c9316e9cc3e65bb7efc34e6ad224d5d9460a267bb7f486da5abe26e4a11d5ae6aeb3cb130b2865e7c9 SHA512 6bf42d9af76ab3389dd775547fe05e955dfe5740aedca60a1b29e652ba47a6a5d86d43c494eb46e48aea5585a9ea991d76fea201a538e27d6e108c6f7fcdd13f
DIST thunderbird-102.11.0.source.tar.xz 509580260 BLAKE2B d64a9525d40e89b76827a1210be224abe3fbcebb7e4e264aac9c66abad4d5a8c321d88064281e7fb1d846474faf1f660ffc4ddc29752733e7c5e82cadc8b780c SHA512 8ae12ffab5893456f14df7417e1a9d5e0e754bdd743b2f3a42623ea57342f10de32763e56ff9ccf6938f89726e31d2a4062d4336a77918e884aac70a338f4130
+DIST thunderbird-102.11.1-af.xpi 556869 BLAKE2B c85e1bc9dc80388b86da9e071aace090458c30ed0487a12c4c9b7655822653f905eb76c92355f1e029a69a0de18b4861a2774777cb9289f3f80ade7486c72f3a SHA512 b933821a7a2a8f14b6ef028d066c3d06775f08063ed964acd0273122ef63e437b2a2946c43df5207e4605ce56656fd61359d3188275fe5dfd29f2d5a810c4d21
+DIST thunderbird-102.11.1-ar.xpi 666808 BLAKE2B 4a276749e5ccca43872ae91e2232a881807248a21d16606970638ea4262f03af83af6bd76de2c0e265d1affcaa55e14433490fde74a82f4920905430f444609a SHA512 2dfbbdd598bb8f32b293ba190f923aff7e0ba5132b3cf0968bdc9ec7eef30d623d83bdf5cdfab54e81b898b4e66558c070e153ec9e6d52998b496079399befe6
+DIST thunderbird-102.11.1-ast.xpi 572286 BLAKE2B 0a0ab4d4c72272f5026f3580c38031fad8319c7f9d74ef00a43c21e92c9693c119ef618df7118b67ed774a36030c3da60cb6b8ed0285724bd6678ed3ff36702f SHA512 f0757cf03d6cb8004ee24ff737e324adc8f13e35acd3580656067a15792520d036ffb0dde68b288970423a46ba7745106a94a8ffbb38b6258260a8aff1d10827
+DIST thunderbird-102.11.1-be.xpi 701911 BLAKE2B 6a75ebd1e9e11fc1fc489e9d833ca0c246b8209acd7f70e797d01dab22563778dfb1b2cbc5f4be87ab8e4444b9dbd3aadc80323fe032b3d50416434214bac01b SHA512 4bde2ab6f5c88ba8774f9162a9303a70f08b876936e98f9f6d0f9c8a776761bd06d48b26732789764054f084f8f11b38badc95ae63d7018b6dd5bfe05eeea1b3
+DIST thunderbird-102.11.1-bg.xpi 693376 BLAKE2B 86a5fa8e10f8a6f2a597a5648b7ffd5fdebd2bc0b938f63223559d8adf1cb8c224466e2fe8604a1d39d902c913adf11f401945d2ff32a8484d3971ff23404622 SHA512 1bd5ac12a6232547d158e48a6bda3e55b42e41dababc56ddad523dca6d88e3b7c9365ca5e2e55f1b55c8fca06c83075d7d3f7fae77e875b148715540fe7963de
+DIST thunderbird-102.11.1-br.xpi 626469 BLAKE2B dcf3a0a0b83e361d5990607b4ae2db6db406ed0f48a97bf6bd955c4d8bd2289021df5727c99e181bff9622c612f8104725ee38fdeac7fcad58dff5f6de3c64d7 SHA512 bc8c7c7f0aa022949ea351817c6ea0d25671ad8d92795fa37ec4e320e688afcb0a4a3d89731dbafb458eeaa53d2399f028860b79ff0de0bbc2bf828317ae9b95
+DIST thunderbird-102.11.1-ca.xpi 651366 BLAKE2B 8f7320d5247f528a8144148c15bbcd2d2a124881788adf02d3dc2f6cd1499b267a4a35aaf76e30dceb1a3c2a1347f9738b0a918e6ab2b1a0838e80c620c87aa5 SHA512 655052e30f7cdfafa9983882f164ca56c2dbb1926f4f08ba4a595b721a2a537108a645194d6b5e317f9508e0aeafef9f2ef7586ec9830ff8a1ad3dd007cb360d
+DIST thunderbird-102.11.1-cak.xpi 651777 BLAKE2B 28dada6fd3feb06a145ea2ca82f4bac5ade9da987b15006ca848ccb8334c69c1c724030a60a4086d55a820b48df3fd149b53c2da861351ef357a43668a37a98b SHA512 7ddce1152a51aeeb0ea4f8ec739d142bb89c986e17b55327d531dbffc7feb42699be30ece1c31ad8586c764ba06aa0435de71a7f40db64ff130d0fcd3f7db594
+DIST thunderbird-102.11.1-cs.xpi 728623 BLAKE2B 9f6fb91f320cf9481faa50bcd96816573d00b8eb62945cecdcd8a0338f0be69aedcf5b508b963bd652e14428874687fa1ab7f1b42cb743cf58f573d3b9989fe4 SHA512 f17470aae6f152b39c5af4802219d9439738e3211c6a907c368a117f9e17254f58a076f7e5ce4cde3226d547d6d7e6845fd4ae8b4febd03b64c5a2b0e06cdc76
+DIST thunderbird-102.11.1-cy.xpi 705575 BLAKE2B c63e68d810119943edadb64f93286973bea1a885428e9b417fe31260898d5f589cb7d7ea43508f7959caec3d9716ffb4b8bba2b2cfe4ac1f437e538258148764 SHA512 aedf83c3c8c3221ee8e1417abf62191edba4e303a64d60ec554707a9a97658c718fa300dc9999c162e8a38c3318454ec21334109b40ecf2223b4f726e56ab6dc
+DIST thunderbird-102.11.1-da.xpi 685254 BLAKE2B 513e5265609188fac9bb37a17930422be70c39bba909a65cb5586b1db151a1cd709d962d2b29d14289755f360821b6274bd773c437b474bf9f44a392af4a9cc7 SHA512 68796830e86720b83960ce7acbb2068cec48c3cc18f3aadbaf353d48d3d71a036e5de1e1ccef0426904db938b17481aae1ef6582f84c25b5e0351866cb3b24a6
+DIST thunderbird-102.11.1-de.xpi 717943 BLAKE2B 44f5ae6b50124a28ef40796129d21ba8416ef70a6c423a41b48a923bf0f35cc5c89261105ac938c5ac6d265084672e39547cd133ab71e307bca9f99de916d119 SHA512 c0679c63629fd97177244e5dfb930200286d61b523d228e4bf56198ac8e2b9e1aa29c41043692c8c742406bcff0824f18b1bb6bf506d5038f1fb605e9d1c1340
+DIST thunderbird-102.11.1-dsb.xpi 737085 BLAKE2B 23fda124b51cfbe093aed6b53786d39daca31191861f205ef36ca0bb4809668c84cb4059f15de53c1c91062211fcf2455dde564bc53357a4b73f96329ccee73b SHA512 cb5225b0ddd0aa53b6c583a36b36fa9649443433920a6674d0aa4197609015ef98ea2efe614ac7ea9e5248634251feb29d89e1f4defeadc0de2b1eeeaf8480a4
+DIST thunderbird-102.11.1-el.xpi 840812 BLAKE2B e53b35b873fd61db78064a81da80b8487abf4b7b4a2322708b5c357a8c82930208e7039d8389f9876d4eec74951fe03a6c7409d3d7e769a9741ce0927bd3d1c2 SHA512 7f7a7caffc37c0e129c9f103c593a725a870d496a706b1948bfd5146ff615092c66b4586d544f4fcad94ab91cc576e0fac5ee90483a96e7feeffd61cf240f74b
+DIST thunderbird-102.11.1-en-CA.xpi 659091 BLAKE2B 2fe0070e952a93bbe2e0298ebf6e27d90d6e5ed4cf6fba9ff40cf0435abc5b79608900f69ab716c42494286c6a1aa92b6d6f9694557213fc07a14702d54bb395 SHA512 88298232bbdf35b7e153ee9280ea86c76e7a29435796f77bbeb71d6b54579995cce08c21ce8db4dc33bf1a90a61c10b86e76c556d5b138f3a6fce4081863deba
+DIST thunderbird-102.11.1-en-GB.xpi 665007 BLAKE2B c3aaebf75a72a0ac8ffb80b1b3278572694f407ff44ad6cf4ce51abe6c023b1872ba1b6bbe727c4330ba848e496edeccfbbc854abab2ca2cd7e399d67838d160 SHA512 323cb5b8d3db12581cad88d582096db7e39bc339950742fa6e9ac90d9e832fce3c3f4a7e6dab403848af3061f34cfd0c7d32ee877869067481617f3ad6fc29e3
+DIST thunderbird-102.11.1-es-AR.xpi 717275 BLAKE2B 4c7ec64b74f6a1c02cfbea99a7c811b6895e0649ecc5ac55f74ec5eb58d117f7f6afff4b0df521b950b7426d1cb37992c0af5b60df51393e510b7619b4f0bb1d SHA512 947d3308d504bfe65694074544bca9bbf5ae7c6d6192552f744b465acac8b0922b1a55a29274f1332184a600bbab6b8032b6f9fc846ab524063f1a349290529e
+DIST thunderbird-102.11.1-es-ES.xpi 677481 BLAKE2B 9af26f89036fea9213d646aed84a9378a2c0605e6d327ae9b9955036ec6365e0fe930fec7fc640fd664596e12a79e51a76286dce3d19e70fee57c99e9ef68f6e SHA512 9d6a13141c386a4b3ef8d21145bb094dde939563a1fa737a2080d23d23a0a581355ff49f01ce8670a52f0eafd38d18d311921b52118caf07f40a35b8938fc9eb
+DIST thunderbird-102.11.1-es-MX.xpi 719708 BLAKE2B bd220148d277652f1cd9525e9e52a88f4d80d1d75087d4d2ceaa23a75ded0532618f10f31734beef72218933853499865aa10a9ba96f8c3118a1d710420a36d6 SHA512 444fdc7b3a0682fcd15f8a919d1b2b1fbc18e320749e17beb8658153b46026e6570ec1d835ebf03cc0af7306a35152ed7023c0d15a035746ab676c6d10067942
+DIST thunderbird-102.11.1-et.xpi 676670 BLAKE2B c8a7fd2ab8498bbda4f2146aa12ca0b8b20c109c7829bf8117f1a3e491dcdcd8108aa67aad9c2d2de9b3f1b057e5dd32b6b4f46c10537ab22211588349f5b84d SHA512 fad53eb8178387350dd620ab36ddea57a53e696df7778a654dd098d8f30d789b2a90b76530dea8c273bd340454ce1cdbf04e57a0d69b738959082074bf5b036d
+DIST thunderbird-102.11.1-eu.xpi 701826 BLAKE2B 1ba400dcb38b8f7d448f784d5cb961c187a004f04605a2a0b60021457cb1980d1b633164f7e85be7c04c770b543557e10c64b73d5eca8a8eecf3c8ad0983a58a SHA512 a55b29ae8469a3493c820351561cc3ecd1f06bdd6606737b9b98b5833787ceb1651893cddac374eaf07b0f25a39afa6f78911389d9c846aaae072c02ecf4eabd
+DIST thunderbird-102.11.1-fi.xpi 693485 BLAKE2B 73f3e04834d6f0a960d726d25f47a29caeaaa7637ad55575e3d42843128c47a1c6d39efb14a8e432aa93498c621fd573eb5f05f25fb5a958a7650492210c6f92 SHA512 43aeb60ad7b0e1554a408737551e22f6e669af1d41647664c83bcec8b098607599ce9e4a340ce04ab2a2e99f0c95cca08fb7917c5a600b40e905aeaf0fd2c9cc
+DIST thunderbird-102.11.1-fr.xpi 730314 BLAKE2B 5e22340edda1ccb49dc0f86a484d23718b727bf8e85a50f5cd4461f12b663b9d40e4c71430ecdf99570166cbc251987a6442e4cd88aeb39be98fdea1e65e063f SHA512 56d8a820c65adf76e5f9aa19dfd0ab388e581ebd9a4450e688056188a3a61e28b56da30757369d09c8f719f17b06108c3f066212a217a925974cede3ff5b277b
+DIST thunderbird-102.11.1-fy-NL.xpi 711988 BLAKE2B 7adfe8e1dc9def75d7c6d0116c716cb6057375316ff5f13679592c36a1afe7850ff3d3c181ccc3a03da760e5779ed717752d19f5780176bcc2f27aed88a10d41 SHA512 1da79a2ddf031cebc958e843247d9824e9803ee6b3194d497dfb959f6578cdc97518caad0c9d8ccc1adb3cf75239aed07b4ab8168e2047c021279225b48bb8c3
+DIST thunderbird-102.11.1-ga-IE.xpi 614534 BLAKE2B 8ff2004cb9a0299c4c4b2eac1ac4c4b4297a1dab794fa8e050cbaa702b8c39eaf9bde9474f4e916c13876630283788d10c06fca02909b40e5a4ef669080c929d SHA512 a740625e3edadd50a6670762e1cc8e412bce3f531569accc0b2777d66c2113587562aceecc4595c768f068d3ed9b41e7f936599586e612ddbe5302b8c20f90bd
+DIST thunderbird-102.11.1-gd.xpi 643574 BLAKE2B 6a0a200690600568a28901144531cb66ae35f5046fd6351f6f1613a3153288b46a908b70b07bbf64af3797152bc063abaf4323137d1b28efbbe833e103dd1dc6 SHA512 66a9efe853833fcf4a241a24b45a0c5c6177e58cad55a70cb66532147360ba0f3c9954d9594cb820dd5d9873023becb225cb9a90152d153602b3d69c0cf1375d
+DIST thunderbird-102.11.1-gl.xpi 673000 BLAKE2B ec97ceb042bd1777ad636d00b55cb8b8e67df8ad8dc3f9450db31371903c2ad5467688d276dcd96a68ca5d158d834f151c25e62368443df60726bf321b726cec SHA512 db3e97409536f4dd14d2dae37039e89f0e41bb4357344d806269d6b6f45b9b30be8a6c1f6ae8ffec312ef2b26ac1f392b5ae72eb249d79a65df839cec2b2bf56
+DIST thunderbird-102.11.1-he.xpi 676368 BLAKE2B 5792d87d9a5f2af249eb12d9d91aa3f42d0797b5acc95b594d56dfc592381bac1aaa970475caca904ab170b7a31f99fdd19ce0872b7c9a68f94cb689ee62824b SHA512 f83f0fc060cd808bfc85258e272df9065ee9636f123d08f40499c4fe0c28a7eab2b9d07c6c8e04530c6a4f36d7b35cf62fcfae71eeeeb6da01f59c64de615b4b
+DIST thunderbird-102.11.1-hr.xpi 677716 BLAKE2B b3fd0923ef6896f8078e31bf00e6955a18b13772b3f4dd3dbaa7068f6b8472a25bb38eb617d49b73d864b2e4a9953f2a11974d42b08f5d02d2ad4fd2bb0e5fed SHA512 b01dd12673bd9416e0f42c1391b1db8d310b1659c70858195fe3c210648efc2facd7f25f60942d2ec39f389b3b3a646b592bffaca5d85827b19f4930db48e4ed
+DIST thunderbird-102.11.1-hsb.xpi 736537 BLAKE2B 87e3a64917f6e739f5e59bbf2991e1d65a05cb23594bcd05f2e4d3b33e36d6833d46eb7f665e8557703defa37da0e325d54207b8b1d0c7b2c0042c5fd0dba9a3 SHA512 bca850b0d3b1782c7cfb6ff2c9048b0450a8cb6f302488bb779fb0103bd150f3924cd009dc5f4d6ea9c8b30db05bb9bc9c46bbcfcf1b992ca388c9347b622b11
+DIST thunderbird-102.11.1-hu.xpi 741199 BLAKE2B 11633c4d10c8579b6209f8ea468404c157e88cde0dfe6a1377036849a185cf3fa9364ff9ba7442324db5b18916823c198de1a68a3fe3a4729f044baa1dc05952 SHA512 d249d442db1f66308f9dd312bba2ac7e36a4f5d11457a237cc98955ee277279a1ac1ebffda6157fff0ffe5a740920c593029cd4225804719071b40a886ec5412
+DIST thunderbird-102.11.1-id.xpi 653190 BLAKE2B 05e17726ef061ba38d514aeb5b80987ce7dc83551d0cc37063cbe7d9f2a35d9099c41ce826327fac9ccd4995c7e6be2ca72ae01d73dfb054ed81d68e91e8e406 SHA512 e4953b4351896ea43c999b236e32c47c0831eaf65263de120ea09ccfebc4c4922381e876ecbfd0b3afee5ea8fdb2c4736d211ba940fc05dc06f8f4953207daa8
+DIST thunderbird-102.11.1-is.xpi 706391 BLAKE2B 57f8bbcbd7a4207442c86a2d35c86eea159929aef786c4c4319fbe8f4876ca1404be6cbc89c61374156231293b3ebdcffbf87e770cb525005f87ad5c982feed1 SHA512 a755e6bb4c1b347fa6d83c3aa013f03473464d2fde723dae7fede5e409844cc36b42239c8c68d33b774b2be29f79a151e2a20848d4e4cbcd755d5e8017204e5b
+DIST thunderbird-102.11.1-it.xpi 639982 BLAKE2B ce79791577ac769e92a9338868c5af1f25c1b98e15b935a25c16306f0a4dc21eb48fb401ad36f9d966ae01fc004e9515ab8a28121a75cff0b84eeb452360b347 SHA512 5366c66ec56583a38ecad9e7dce2617dec3ba180089486774d262141015779c46ca8e2397abcc9e1870c4cda7609c45616be0ddccd27050707dd884122d575b5
+DIST thunderbird-102.11.1-ja.xpi 781906 BLAKE2B 6cc0b1dd2f270b7ae4a581972fde88252bf13931fe2fd2cf7a34d2502a08446d5ea2bd1e5a2675538b81313d2b0efa42ca6ef8dddc2de8db13eb9a852c6269fa SHA512 19ab2a69961f6654cbfa1a25f2fb71e5745c96c99ea00e671382131d108c4b4d12c6b561fc589d00648b4cc6d5c7c16a3ca42d884b1e90750837fac7f2f51eb3
+DIST thunderbird-102.11.1-ka.xpi 769801 BLAKE2B b3b3318aa5063a68742409a8107271a3042117a7e3886e5ce2b6805cd2eef0118b4dac95f91f59179c1b36371f6404c95ab656ed6b273fd7d2be2fcef77ba1bd SHA512 f0fcfe2c04934c98e3d100e4c9d73b5237ead6718b804dcd88c834f54d746814e1268da61d0c9b1110122db6a27c0e3c9223abe1a397a2864532c4502327e663
+DIST thunderbird-102.11.1-kab.xpi 702702 BLAKE2B ae6d465dad02770a42c9bcb3527c21ebacb6e414024e110885f3c7d0590b6b43fca68eaa9dddc9ee11a94ccc0b8673e422a382a05741fbdf6affe831ee46416c SHA512 ca190a7c3a7f784ffbf79f6a3148cc971b8fe94739ba91440e715b8ea4093c08f77317e677d7c8aab5fb1fd52c28fb84b009f4fbe28d9c024716606ca9688123
+DIST thunderbird-102.11.1-kk.xpi 810967 BLAKE2B 062db5da3d469e1f1d092aae2badcaebe56b6b3aac98ef3c20cdb0653ea15ba81f4152b5aeb9cf4344e1648910c6fad98979aa0b8b5b0a0117131e1cedcf663a SHA512 7f9112e51889bd5652b299d076dd39e0711e12ec7084337b38769000a77dd8ad367ccafa5b27866f35d95ff16ed5f49a7f3af752b1bb2d8de301d872251b790f
+DIST thunderbird-102.11.1-ko.xpi 716819 BLAKE2B 67dcba4737cdab366e9a5817866e1181ea6b3509f37f35b746f20d7da8a146b2e8f93fd73afaa77fc3db8d8d4e9e5d9133b9b1caaca3f720e5b5f9a5eee77457 SHA512 880eb105201d001f1682fea672d912afcdf224d37f9a68b2fca750eb41014c000dddea19b3c24f9d7b04e19eb6697ed82878945912248c0418abaacae3a891e7
+DIST thunderbird-102.11.1-lt.xpi 690854 BLAKE2B 806ca4e6a56a8f32dca09a94e869cba097033e37131610d606c6da9a2a8123afd6337dbd877ad9d0952a6cabf52999131d77c452f4271dcc061a2fa09f8d7581 SHA512 eb068110c60fbfbdd9b9cc9bda325863f1418e08a2d72dce18022886b0d8ab691c40d693835b9975455aa28842ff3da360100c9a4d2417b30d6b06b9b9af771e
+DIST thunderbird-102.11.1-lv.xpi 617765 BLAKE2B cc404b2b764888d3be1f2941c030db3ae9155f809dc2fecc9a01eda857b1ee78657d5ef071f5d23d115efc1a3b716cc846785ac8e3fb4628b19a9b4452aada1b SHA512 39a17c76ed4f8134c97f0d9ccabc2b75422480170aef843f6d09a4325bf08c1edac8d25f74b3cb156cb5a7de66a376dac118ac3e2a88fa00c30cc2f8fb6b9a88
+DIST thunderbird-102.11.1-ms.xpi 577757 BLAKE2B 012781d34da037304b07c2b18622c84ad7e03934e9c1c518649f7941cae34c3c42582297e3d74c5b15d2f2b66fc928823d2b4b992f164fd9a66fb097fc2d58ce SHA512 eb91fa23ebaa0311a2e087a81da8589c4551d8adcabe2d572de9b7075d23b30990bc3bd185f76b8baed9018f63014e6617af31f983ea3a9a1eeaad6f01bd127e
+DIST thunderbird-102.11.1-nb-NO.xpi 662681 BLAKE2B 85354dccdb521da693f8a293ad0f65dec7cd9c11f9c3fcc35635e5ba0b20cbf6d0111d861fd17986232d32dd2b65fb8e346e1813e49f27de358a13ed3cb4ce64 SHA512 5a53b99f4a14e2a4daf6516aa5f5d7515a44c268908b7ff0e513330375a7a498a76ae429aa78536787410ecf12209eae4c1e4f5408927d199aff904c59f8486a
+DIST thunderbird-102.11.1-nl.xpi 703270 BLAKE2B 5606a524534b5f063ee032ec062df1d77b61aede801e2b44ba283f533e98c80b1b5a1d932e292469b741fbbedfcf48fa2fc3f8f7899ac5b85fb91dfc076098d5 SHA512 ae3579887f0dcf043245ce2a1a377a6267ee92f1df950cb5d4b86e9bda51d00350d68de36a9a216b96fb53a1fedfb3522f7f98d2042264c83a2bd9bad8368a8e
+DIST thunderbird-102.11.1-nn-NO.xpi 672831 BLAKE2B 3e753b56ef8deb37f453b501ca1a7d7450a4bcdbc457281c03edb544740edfaa5ea1af0e371cbc166ddb4f9cf417a7c42ff9bb26c3e3907414fb0b47c82b3875 SHA512 392e398fb8d2cfc7734295911c33c56389a4f551516dcbdd0d495558c3837ec5a74101307e0061927c6d5e82965d6e1e6fedec4f8da8a8c20b676051b366ddca
+DIST thunderbird-102.11.1-pa-IN.xpi 668030 BLAKE2B fb6d78f46b12015b3f8c57fb60ce883f043a914d2cefec0ecb411df36e55352039d4c572a9394ee62bb3d16c51dead42971261046ddc2f975ec988c8bfa57498 SHA512 0d6d9d52c327eee262f50fb1f5a4eb735ba95c66b4a9358217b51722223bfbd8a351b5d6d156610613d35257ef7f33cd1c026581ee85ea7ad270f3c4f19a0caa
+DIST thunderbird-102.11.1-pl.xpi 716230 BLAKE2B e9bb8b8d2028808f6f132766d5f3bc0422524fd6bab4dcc99e802fcc98012b519e67e1227007ee6588886af7949d6b73547946ece5af4d7d16cfce810d65b38d SHA512 5c75fb43b8d05712387c792e5269e118fbac15cf3c013995ab509640d97274fda27beea0a17c515f91198911af8a28c314a323cbc1e515f64dddd287750e328a
+DIST thunderbird-102.11.1-pt-BR.xpi 711148 BLAKE2B bebeb21a4c30511c112f0b7e7169ee3c41b34675768be0f6d6d24990133b402fa89baee556cef4b8d18c5c8c9952aa40505c676038c0e96c04bbb2197879d70b SHA512 d97d4dc04cef61a982afb3e624dc3b61776269494e5ad0b32c42c0108e76eefe91e60c462bd05100f7d2ab3f398093b52db27a1d2f8f5fc5da8816b19a7f87d1
+DIST thunderbird-102.11.1-pt-PT.xpi 686907 BLAKE2B 79dd18d05cc879f42d60c954c8809c7b5142a6334f5be5a6121bfea4e373d32a355bf79355e514877a6d429d656d28d6d419909779ce08dbc8fd607198d9cb22 SHA512 b53063adc050405e9847ea1e9c88a48bb0a10c1ef2565065bfa4f80c0369dbb3c4d363aae09d1a9e7228dd1a94d2a9b6978d67a9e9994cb83db052e88c4f0c95
+DIST thunderbird-102.11.1-rm.xpi 701681 BLAKE2B 7d451c8321e24aae25d40da920a6e914ab05b5cba705d61d239332ad0e7d0f46d046473cf93cab2ada283aa61b4d002f43a8cbef56a513d23dd7a32919e9d713 SHA512 6097a8a0424d9dff1fbbcc32af1854bf096c50dc302a64a05858c0d353f172b1ddbad44ee4e1ee5f9e2adcac4b30b2d9dc5a326ec69e874d8098e60eafbf3ed5
+DIST thunderbird-102.11.1-ro.xpi 661282 BLAKE2B bcaab749e47cbf1d3b2f7493ebb9e08f23c43b4310fd70ea24cf7c23bdb3362b535bb583ee3e74a1c3aa588bbddb1f9b6ce42bdcc2ddaba3540801381b0db43a SHA512 8470afd7492333a845b0d1fee6db4b4c873d1bcf958a1441ec194873734031dd57a5e6c4288dc7b1f15f838f7eb02b2df0c8c164dbd223a438a3563500eaf6fc
+DIST thunderbird-102.11.1-ru.xpi 827219 BLAKE2B 0169531a2bd221ed8298c2fb6852b088c01bc2626076a5521a08c3ba4fea5336522d4f52854e19381d9b3cbb5c537feb955dec3f1ce36143999462cc3287931b SHA512 d37896a487eeb0d60bc7ae031cebedfaaf26fa3a8ba08b9380e5d7aed1ad961d0b30f3b7851436786b64778eae69e18813e8a6908fdd3f06c31235ffbb8b36e4
+DIST thunderbird-102.11.1-sk.xpi 740980 BLAKE2B c75981ad01a609e46ed348fa78bda0fd2c7fdf351e29781fe7c724c0e0c8f2c191ab4a6b1efe6b29558251fbee6c337bf8815730ed4815ea1ef02f81187d7c58 SHA512 0ef27b0ff050be5da6cc904e10c8161996ce8f5db0d2c32a1895b7932c3625f8ed59063895738190f2eb8aab83229f5abe7ba91cd4bafdd378f6a9abc793914e
+DIST thunderbird-102.11.1-sl.xpi 704055 BLAKE2B d50e4fc7ba112ebb29eeb2cc3f1f76542f9ef59feb6cad8a4641ee857da252c6c7512b894b2debe0010102ecadb8ee4f0df157f02a5eebb45a2afb314630565d SHA512 4279056bc0e01d4d57522abc3e1a4ea302590d795f031ab6d831b53fd573a0e12b298c5a9140289749da4d94d24808dd4fadd7def0966fb8aaa8b3c7de7068a5
+DIST thunderbird-102.11.1-sq.xpi 726036 BLAKE2B 0227463a39fd17bf6013995fe883cb2dff165f76200abd6075e4c509671310db84b2e4bfe8623ddbf40f55a562827092cbf5dee90f70ebefc26987b3fab2d51c SHA512 5fe1f376eea9df5578d81f605ad34898e62531a449f1f36b1934a1de24e5c6f4674b3911dccc4d6c8e77591a85ef90c2aa7df008f615977f3414461aad42a9de
+DIST thunderbird-102.11.1-sr.xpi 720556 BLAKE2B 04ad2a8cf69742c43607e38009824d488a5edffe962998e6b79bf5156376b263b047b9c3308296b30c8a7c345606df1d6f46dc6f8b64a12d1fb95542eca48381 SHA512 76ce1f429650e9a61421f0fcff9828fa4b4efd3a9e413ea09b05bbaaf2b1963b3d323937b7979180a9dd5fa65e62922181d06a388974c3a26f75a95f4b72394a
+DIST thunderbird-102.11.1-sv-SE.xpi 706953 BLAKE2B 87cdd3c30ae14fde98fea20b8ab9b1b3a74c37fac4397a1ac29dda6543642ec8379977e114cac92c474615196b914ef81bbb81c3802d24f200eb8385f734dd97 SHA512 b51cb76ab4b6d398340f11f520325f8e5f1f53a3ee1e8298932a9162fd80a92f41950923ffacf6e283d21a155ba6378165ecf6dbb26404a68bd48516f51f5c4c
+DIST thunderbird-102.11.1-th.xpi 758234 BLAKE2B 0717c7b044682daba1c2c41f466643f53f7f929cc0682347bbac28b6b0f6eeee404f01f272b21d5595b45b3491243c68da926660656dbebec5e056a10825b987 SHA512 7fd1f43affad28ed117e40060c65bdf12a3182e836e3ad9c8cf86754994a605e496c378c8e480be1ee736d566925459942b8cf10fc1ad123c6bc40c4b1881a07
+DIST thunderbird-102.11.1-tr.xpi 720172 BLAKE2B e6241e57c96e9f0c6a26bceea14233b6819e558195bee408a2a6166c1ab007ec9b5bdb9ddc0ee119985ee3ae140815016e8ab74c6296f0269a31dc82d498f1ac SHA512 1f73b6c449a5a5826d23a6c9c641bf2b827a51ae4ae17507e8c761931d601ecbe9a1369cb5d9533879a49efd71a6c8953a7a9678faef0ab2f1859d60ed83080c
+DIST thunderbird-102.11.1-uk.xpi 818662 BLAKE2B 7ad694d034cfcdcdc547ae157c75edd7908bc7aca7e5cb5c3b625662b7365781a3f4b3498848194e9e6d261090a15a93b42e0f79630a86a64993aa08552c9f70 SHA512 d046ba4648e21bea700ced2d3ee0b00ec3df544acb330102941e174571a4695a080aca598cf04506c3ee747bce08177060eaf6eeeef4b0f15eb101dd412b4f20
+DIST thunderbird-102.11.1-uz.xpi 593008 BLAKE2B 288d5655891636bdb12928f6138f1f5b2aafd9202050f091edc1cf5c91a740f82ecdbbd589cddb62fdef4f508c01b92951570554e8942a4cf7ca012b82768500 SHA512 9fc67881f0f373f56c0bde344664875d8a937afb047f5a2569a255511cf46dbf5b94469f619514d8bd3189bf480d407fde8ca73a56b6ecd82973aa899f8a4c7c
+DIST thunderbird-102.11.1-vi.xpi 745661 BLAKE2B a3da7a1409ee7ed8ec5a4b21a9df05a2a498dd769927910f8cbd085850ac797a782c8812aca99fd34fbbf74f218a04eccb788cccca19e8d20f6f681acf30b1ca SHA512 8b5caad0201a91f658227a530bdc2eeb03ce71544082581af7317569a0000aebb9f60eaaf89602b36331045d550c30d0ac83867aeb1c6a26831b750bf106c19f
+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
EBUILD thunderbird-102.11.0.ebuild 34156 BLAKE2B 09bb055fd23962c3ec1a294e8ebecda114ac3f1ee4f47ed65d51c726b75cf5e6a9984bb528bcf475772632723733dac490f39ae3012a135f6690330769074b16 SHA512 ed2cbd65570634b3f3c570b89a89a51b9eaef705561bf64e086f9709f7966e4dd6f856d86a9c94cc275b68c3e2130e258e82a4615647214f2023f9ca3a034a50
+EBUILD thunderbird-102.11.1.ebuild 34158 BLAKE2B ea0ad6864068a6d6564202e598e1ab2416d66dab896a73e03c75c5a6e68e363aabd295348e7f4364a75f3c186359f4763edbbf4415e862944415b35c72ca91b6 SHA512 32941bd878a6c016195b44c0ba34152301e2ca8e5e00caa5053f35f9b81c9d244322f01efcaed1d6815667db5098e60909fdba45261858b4f5de2425f100a998
MISC metadata.xml 2139 BLAKE2B c348f9dc2bf813c386bc2e62782bf762ef4fdaf3f913cec41bbd115a7bac54b01852dec04e6f7574b24ea5cd6d9500f289109127cdac5887128b07116d6a6cf8 SHA512 09b0670e852cc954b5df5e846935d274ae180e4627d112104d5fedf2a777fda7d52d73cdfde9e50475d9a560ed44946d4c0682d52d793bbfb5f2e1b1e0aac608
diff --git a/mail-client/thunderbird/thunderbird-102.11.1.ebuild b/mail-client/thunderbird/thunderbird-102.11.1.ebuild
new file mode 100644
index 000000000000..2291ad1b535d
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-102.11.1.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
+}