commit:     ef0442fa191c18e81640be17a836400528150b34
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 30 06:42:54 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat Sep 30 06:43:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef0442fa

mail-client/thunderbird: add 115.3.1

 - straight to stable on amd64 & x86.

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 mail-client/thunderbird/Manifest                   |   65 +
 mail-client/thunderbird/thunderbird-115.3.1.ebuild | 1313 ++++++++++++++++++++
 2 files changed, 1378 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index df71b124bb43..f8f52e0717a4 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -130,3 +130,68 @@ DIST thunderbird-115.3.0-vi.xpi 742715 BLAKE2B 
e298c99cd96165f9acc0732dc45028ace
 DIST thunderbird-115.3.0-zh-CN.xpi 740787 BLAKE2B 
f548142441c4c70d55d131cb61e756d8544cd22f1599f8944c517a7184a1a2582bd6a98489b9dd30db22768163e015bb5d3e862af32733bffc8622a01ceeb3be
 SHA512 
c9ab7f78e471d48ca287721bc96da4ccc2709473e4bcee0000cc3a5236e59bd0687540d3a2e1e13b78df61c0db5ecb6aa8d12032c3fcc625f85ad818aab2ab5f
 DIST thunderbird-115.3.0-zh-TW.xpi 744414 BLAKE2B 
6abc1552410f0497462319161b67cabc88a41c01ae9db6f12d7563715a264477eb7eef8d1a89d7bd84546eaae879440dec0faa6824e0e1053415e331f9b0e466
 SHA512 
372475654794c3d8835482213fc8d76d7989c2e12474351ed988397cc555249c8e2f607e1036ec5520fe4e32dbe8f40cee57b6fc6cfed16c8ef65ed7b66d6e7a
 DIST thunderbird-115.3.0.source.tar.xz 533553340 BLAKE2B 
120d809f90fac55f4a96b0ecc9027ec9dcb5177d980f93456a294c9ac514285bb6bbcb2a26553112bab8f5bd8464c0697a5a48d9487a701a5065c0fed6e74161
 SHA512 
a6fd99f9eccea5cfc8a6236a1651444fae9db99efd0ae667366638f664513e70529c63e2947b53433c1013517b23f3561cffada81d1181bd9359a02d3e059503
+DIST thunderbird-115.3.1-af.xpi 542155 BLAKE2B 
ac2276dc78095475fcd6bbde7b762d9c5926ceeaff6f30f29e0d384a2aa96302e785aa40c279861db2ae9e4f4518214e5d8c4b95b2f050d2aad3334619982fc0
 SHA512 
d44bc133e333f1c85e2928196b65de3491ab9fa23a44a783ec2192a49c778cfdec71cad0c1c08e5339528a53da4f60f585cdc6c8fa920d1957dbd98d1aa681d4
+DIST thunderbird-115.3.1-ar.xpi 654727 BLAKE2B 
417c2d1ca3e109235588fe241a01dc19208b00b436032a21eca4541548d144cbce9c04882f4a2471a7748287044d62b94e390fff422d529f8e2174ae2e11722e
 SHA512 
f9790ff5ae7a27b9d0a83ca9d2f1c1d204670a724c35fcdfb8df480a753794831278956822b4604f72358f66dbb8cecb71e0bc7fcb36021994f2ea6a477fffad
+DIST thunderbird-115.3.1-ast.xpi 561119 BLAKE2B 
cdfe76d451621fe2e508b80b01045b8bf8147fd6cf96a4c74950eb3d8eee368353683b11a9e9bf6421215ef09fcf7093cb748f51f58b2ca046db8d7f85213f3b
 SHA512 
663c4cba6f27649c91b42e0fae44e98be4d515a218194f8e8edcb794386457f64002af1266b687213842139ab5c54d1d6fc2a7e2a6fb98eba9d4cef646e622ab
+DIST thunderbird-115.3.1-be.xpi 694084 BLAKE2B 
1d2d1e1b9b3a881c24241457d06f44bd57ea9cb5e8aa146a8713a1230e59190f53a9d9c53982b4286d705da14475a5295e4dc1b967a23443ee5d4d3c4477d84d
 SHA512 
cbf09dfcd51e6f5ee1713903e39c16e98a10ed7891a4b3197dae31a6ed7eddd3c8b672e0fb59a80e8a9ffb132f8cfd7071a34d944d8896881974d552ffbf9d74
+DIST thunderbird-115.3.1-bg.xpi 681253 BLAKE2B 
08b584cf050e1ff44e2cd9722de420742257a8147c6718236b9d9fbbfb7e6bb0c3692473efa05331b3e5a8b011fb24318a64e6b3e83ed62898c5823ab44fd36c
 SHA512 
4631d8343df7844b9f6bd29253e16dbff031fad5a05d1c983c1231c0e1875cbe739ffa65005e81861d3ffddc22df64f34c0fb1f4d72d8ecc4f5b0dbcd1dff171
+DIST thunderbird-115.3.1-br.xpi 626489 BLAKE2B 
19d4a2abd688324076dd87c50e1bc4db2f0a5d72b173652a5e82dca2ea9634d5da616692bf8e7fcc912f42eceef3846d394703c1c4a0ef9a29bc53fbcd8df100
 SHA512 
9365c76b160cebe60135f5dd7b830aed4b081ba51bc925b89440a5faa570b08a1b241ec7e2329cb372b7a7decffdfeef34ba7b9d9cf9609dcf094a64f99d01ec
+DIST thunderbird-115.3.1-ca.xpi 664391 BLAKE2B 
5d739d814f282759eca25d7828d3c1c3d2ace06dfcefa7574e0cc3496e22b3a8bdb61847558f1abcf72a7b159e51ac84a9c658320528937ed2e5f8a4d6265cea
 SHA512 
dc92fd361aeb6897e1023bc0deb7e1e8d493f6463a760a22d0a391505019d9396974b886c976322eca7df8a80769fddc048459292f721f3ee1cd0587441a16a9
+DIST thunderbird-115.3.1-cak.xpi 657815 BLAKE2B 
2181ec38f970c4168669575a6d954e6637aaa7fe50c7692c4b04d0553fdb4f5d5df0e15004885cb19d2c5e65029143611114fb4d342ac576b9cda1057e64b72f
 SHA512 
f0405e88f9ee14ab251b7daa7d510865ba18bf5d10e47d102ea9bfbcfcb75577781474a791390229c5f1430aa5c000d41a2a925b29ead3649dc752212fabd794
+DIST thunderbird-115.3.1-cs.xpi 733926 BLAKE2B 
b6420fa0792908573401e2ef4f10e31e474150c8be150a41f47f727e3925889c6f1b085d52fc8b8b5385eeac392f147ad094b18708859fec9b80fa2510bd521f
 SHA512 
15a8283a3cf77b0207a080b2a6d01c9e421896cbe1e213e86d4134e4b84d6bcc822fa25a8bc0b30d7c4d08063709602f5b7e17251fdb9a60e4448507645ce3ea
+DIST thunderbird-115.3.1-cy.xpi 703327 BLAKE2B 
70c5aa82dce73d6fdbce6bc2c12cc2598a01117b8218530686365f533337d0c392581ac62a87b3560c3c9abd0d67bb911850bff91f685a7e4a35d82543464a4d
 SHA512 
2a5141db90780b967fc89041af3d0c6c5dafcd022fd6b07d0dddeb9b4689edf8047a1f86acce743008ea842d65a4749f5a5f946fa2557d884655134e4a8c9305
+DIST thunderbird-115.3.1-da.xpi 690779 BLAKE2B 
a2386a476e36ecc226f23e246ec302600b05834a2ad0d3c57d653709775b2b3590cd8fc7a0a3ea546c6263e814d9bbfd13d77f869472d78937ff5c38d2385f05
 SHA512 
815e81e8aab1ef9ca62a240fe08435f1dd66105a572e8ec81f538c25d4877586c08959d8400305bd43a85ae3bbbcdaf37f15b06886f629a3474449290e16dc6c
+DIST thunderbird-115.3.1-de.xpi 720272 BLAKE2B 
59ba0e27ae0e544fa22cc30dccf866cfbbc8353ed90875006e3864b6cb8d41ea078867005ffec88fef74474bb6977cbf725a33ef545e197d1d83b5e9371c41e9
 SHA512 
eb1f2b8952749afbafe278272f48bc4c33789028802e9c30b4d9da5ba39c199599158a0091bae744a437eef02b25b641b170189de26177848c5ec0d1afaa15a6
+DIST thunderbird-115.3.1-dsb.xpi 738025 BLAKE2B 
8db57ace0afcadf4db6fd6d49a05434c8a4be4f1fd6c94654ac7418202105722ca3510727ac116058c7df49e4ec18838dcaba7a13875c57f01ca10e2000ad3b6
 SHA512 
f7e37818437b5f711040d0317b4af96f1a7f16095ab1a6d062065e22696bf3a35499ffea49997cc24e7f3b7c7aaeba232197b62c8764b8b47779278cbdf8f454
+DIST thunderbird-115.3.1-el.xpi 837360 BLAKE2B 
cc7f5271f9739ed778ae1f70b590d7c3810f5be6da4eb80922c1f59b22937e15563816f2721bcdff738a36ab8be7e8c0d6487f831694575ddd5309ffe3dd10da
 SHA512 
a91cdc035ea6e5a57eb1440a850279dcebb4eb19e72bb86d359a48cd8ee6077fc38ac71f82415d19959efeae89679d240478113efdb8de8d9f5c5d96302247b3
+DIST thunderbird-115.3.1-en-CA.xpi 648451 BLAKE2B 
2cdc52443a3f881c84e881f2b20a903060b3900f62f2835981630f9fde9d99f3ede4928d33751f3e825052c1f0d76a99757f0295b65eb5907951216f7c78baef
 SHA512 
d352127c3dde87ef82d67496b978c88d3fdadd1dcf0fd875ebb7a0629285b405c38bbdea709e98da246f9ed02b865926967e417bc2ebb3895307fd5726fe7f6c
+DIST thunderbird-115.3.1-en-GB.xpi 661514 BLAKE2B 
ad81dfff1d9c1189697b3e325376ed6adb61de1594c787196b95f6b975248125d556cfe69dd8c3251195f046ae8a73f1445706e6de42982d3a528a368d4628ce
 SHA512 
f38e08e630d61d11ec07bd4bcb27b662a5766f244ba2d29dea252e25458a8de5d0187d25656e78025fe67e1ef37d1925d8e16da1d249ad451b10b9ccedfe35c1
+DIST thunderbird-115.3.1-es-AR.xpi 713109 BLAKE2B 
be6b849ba9f60052fbf19ec23f9ad8e1174d92c444443cbd2936e2b8d6081cdf27e2eb5514ef401ab8d61ab30576173eb7c62be108100ede5965c678ba7f152f
 SHA512 
dc4af1f8606a2d48648d9b0c8830f8c7c5667cf3e0f4fb13fe9a51a94f43e9299fa42e097136c77355a6a6e810e2ff78ae504673802aa8ab9cb70604e5e2bf47
+DIST thunderbird-115.3.1-es-ES.xpi 675706 BLAKE2B 
7905988fe9f0adac4cb67642eab5d88404cda047dbbfbb7d5d555dc7cdab68d0d9b928636d7ba007621cba0e54fea8023763784fcb3252458d5f76c69e7969cb
 SHA512 
2046a5d991e264f7cc6b237092a70ba721e7524fca34ea63a35218d5e26c430bfaf6bd1d98b5b7624254252f924096d5289943dae589f1f0f21dfb28eafaa507
+DIST thunderbird-115.3.1-es-MX.xpi 710140 BLAKE2B 
0ddfae8017c2cc69ec21586df9a53f6cf93fc8ff15eea4ad01340900405f18d3b6a4c2ce4cedb480474e20005c5f4cbf91909f83053ef27a8db29eb75abd1369
 SHA512 
6722d8bd93d93947942bde51884dac4b481d04398cdc0145b00f25e86eff958946c511029edfa1bc2e2026a92ebf4654dbf6776b2b03abc711120a1027a47725
+DIST thunderbird-115.3.1-et.xpi 671820 BLAKE2B 
fc05de5a332ab34be18bd0a9f5429378909eba21345dd72ecd397595abeeb584d1b0f2e8d7da2975d39e24a7de7ae0a17471f419499c35e4cd6130ba5ac0f3b7
 SHA512 
8d991b4a4fac06080ba02b3b09c3d25af1d33cd328af98ae60ebe33df847d3a178c0db5939252b423be682fdf63db155643a066b403ec9902705e08a9c322789
+DIST thunderbird-115.3.1-eu.xpi 692541 BLAKE2B 
80d1638c8c25c3f914dae98ee6ae35e92c76c154d9f30930eae4e7fab37382490283104a05e80806425af22c19f65c14da3a6671aeedf891290765992859d6c2
 SHA512 
4da2247b6ae0d7a361d7b6edc21ce2d5f84a03ce502ae49e37980378d29276b14e2d82064804412c4286e4326717ed42c877561c02974cc6045451cb42b4cb58
+DIST thunderbird-115.3.1-fi.xpi 689879 BLAKE2B 
fff85efac7800cd07ad23708614957eb06c8c44dcc74f83b37347d108d89731ded64329d94b95c8c2f3352368bd3f349b1a55c6ae252eeef0796f72540dd1086
 SHA512 
30c241e872118c68f894d1c206fde0ee6277b76625bfeb37a583549e4443723d639f68c736cf6809ed6210ca325324c3a520d8d02c5d11e83cbd8cc216deeda3
+DIST thunderbird-115.3.1-fr.xpi 725336 BLAKE2B 
6354785355d43d51c86da12a1475a8a64db3258044632738d8b9ec8c2d6bd30ac52af5112585b9482969350e848b902862055fbed707c7987e7f38f43bd92403
 SHA512 
f95302bc1f5820e44181686116c9a34edfd74ef812f6fc15e5dc7e1c6ba7cf69744329196db3775b0640dfb49ab733817be802e17184bf50211e2b72a301a819
+DIST thunderbird-115.3.1-fy-NL.xpi 707905 BLAKE2B 
16127c89b0ec0db2cdedaeb9978f97b8a09c6be6d6c3e90dbc2c7ebe458864a6590a608e442cfd9f4a8eed6ed92e88b63e536407f359b85e918dc3dc6abdccce
 SHA512 
2165dd00b9b28d78e80f88023fd34c3a4998ef347e318796f0ade38658dfcb655d0416463e751720971eae6a75b3f9cc3e30c842b38a7e422f435bdd414a1a62
+DIST thunderbird-115.3.1-ga-IE.xpi 601818 BLAKE2B 
251011bdee7bb9d8a73f1ffcd048822d950f8a369074d200b97bef8ccb99ea69b683741dfdd06771af34cc90b028fd69d9093ebdf1b4f4d65043eb5319ea22b8
 SHA512 
567ac6ee49191bb2365b473ce0bc27d79f84880f95abe4d56dcf7dfa3ca3d481653a1b6b78f3a0dd4cdc8c65d604582ba86d4136cfbbc78df863fad810ba003e
+DIST thunderbird-115.3.1-gd.xpi 702994 BLAKE2B 
56caeaa08a0eb0735ca7f8af40b95fb1d3286849abb997d7ce19a0e6d523d3508aa3c4ab2787c2b5274ea591f191df97e05a4b8005709ac700c33832480cfaa4
 SHA512 
a35ebfc7aba9eea3ddc1bf81a0a518d5d932f051e9b6464e9471785f411ccb7f229745f853ccff756199342a90cc48cbd73588b979504a4b3b55ddf71fbfa83a
+DIST thunderbird-115.3.1-gl.xpi 705423 BLAKE2B 
774c66a6b0afafa900cf73e9040e1d8e4d46ed92c34671e861706a69c87b20687a7e3be32f668ae28ec7a38315bf2dff69bc6af8027c6f4c2586989a8c071be8
 SHA512 
ef05b62c881b200a6fc5a8348662b0e9c483520f986cc16a5fa5fc5f459157884af88b40f0bf589cbd5b07fd48271025fe09cf66e1864a7c48e95da72c240a3c
+DIST thunderbird-115.3.1-he.xpi 667479 BLAKE2B 
42a72ced4e50e26ffe2d0a3f0da58142bc1b9b263d0fcd427d3cb1399ea41a6844c1d28fa67b9aae5ac620e05f717a997b0ca0f75de5d96d46e5ca24d2146a06
 SHA512 
f4fcf553edcea0f6526e879b88c4ba5720ce1d1fb077f53424c112fa1ef02cf5c787afb9ce26818e8d8bb914f863ebd248cf66cc3aec47e38855b10eca77a72a
+DIST thunderbird-115.3.1-hr.xpi 674903 BLAKE2B 
c454f90cc416eaf05ceaef8ff1af03a9c2a56a3d81fe0c2fcdb3a361c6973f50c21183b5eb6ba2cbfceb678ad653488f9e2de3b62989be4c2f9625e70e417870
 SHA512 
927d28ce5b5acfd93fa054a0951c2c3f2c7a4e69d4389c6a5b2ea167ca646456a0d7406b73fa302a0a43d738cc6e41f3fc6886870fd8b94234d0a848f72c0c50
+DIST thunderbird-115.3.1-hsb.xpi 734549 BLAKE2B 
c69887521a3459b502365063bc879624cd3b8219c364b2cdf31a7591f1869dac45327b3f86d5091b40ed01828b4663156aba47380bf3d44c74285fac33119142
 SHA512 
31d01ada6a699cf8bc1d3dd1e730c358edb68bb54779b5936482e61ce477baf7b365dc905b6d5d8113c1bc5aa36f9c103e1647bd6d5314b0793b1cbd77e33449
+DIST thunderbird-115.3.1-hu.xpi 737466 BLAKE2B 
d81d784518715ed70f546530f7fe9d6d3c61a97b9110e0c1f2cbea3caf506e8a82a9c1442e462956d5358051188f7e1fff3fcfdc8fddab5079711d379548552b
 SHA512 
6f3504fba2391b7289eee3485206de389ca7279f9c4a7e988b629c3551b4bb8f5e8e983a255747ae8112d2071fc465beeab198e1762a0f06b8b6dbb37292fb3d
+DIST thunderbird-115.3.1-id.xpi 642540 BLAKE2B 
a6310c92ea1288e50b67405191b023b971388b4b156c908f6579811b4029de733f4f287b762de4670493c3d42a7e8ec981259154109a677f2a242377cd07843f
 SHA512 
5fb05dda624f391d2f09d683725630da1d0bbeacae87a10e12b85365c3e7ddd4f0b39a0cac34564c5479bdbd608778d84db65ebe7b6ac6ed333ea048291a1234
+DIST thunderbird-115.3.1-is.xpi 702211 BLAKE2B 
d55a1abbb53ad6be1cea6cd454f8065c615601ebacc6deb1d75cb417c913e975f043cb34c01612c1d0330fa78fdcacf8799099329a41534ca05c8dab36cd22a5
 SHA512 
c0a1501fd9f6e63e85e90c6e4ea0176496d43f8df4ea65d523a433f1f8140fc1c9956d3bb5b8b64ca19834ea8c14a2bad1bf5deca94d2aaffabddb7669485515
+DIST thunderbird-115.3.1-it.xpi 643538 BLAKE2B 
18b5942a78573c9ecd37d09a3775709aadee976ffbf09f949a7aa0ed5316479e50b99089e8be880550baa16b0086cf730ac22de0f1b744b753d7539d73f89ae7
 SHA512 
759257c58255934165a2f78391ff7f84896cfc4db14cde3c3314cbbcbddcd29e2b3a8faf00bc08f74ddd1e3fb025c48d42edb18009122d711afe99f5097fd3a1
+DIST thunderbird-115.3.1-ja.xpi 781689 BLAKE2B 
f6ecf769e763b97adce56c22f861ff11d0d021149be4057267ee8800007420cb445efe62994f0401d22af8a281cb182dcd26ad79a9328db3f34a3beb1875fc7a
 SHA512 
b04aeb6ae7d63bbbc45bfa08601338066ba0c0d9a4188a774f46b200a134846d74275f69fd84311970902081136352f661825ac6cbb7aa3c0dd014463da165c7
+DIST thunderbird-115.3.1-ka.xpi 764449 BLAKE2B 
3a1cfcc15af39b71300f6f55173cd4e0614c24d6efbe4d280081e4e92ddfb28b951d64967b37db01ad781b958313242e661cd3f2fcf3a645624e93f3ce7c4588
 SHA512 
46cd2a6448f242dc8be8deb2407955ca63dc7834ecab362775d58fc05815e556564246ce60c9b19ad10842a9dfd58ddff69ec2d9943be257cd32c1f9eb076cad
+DIST thunderbird-115.3.1-kab.xpi 698916 BLAKE2B 
bbd168642215ea9ca6eb9ba7cd19b9249509a66c6ddf80bf149cc9c3df0e25d2474868b417abff97a15e23e873ecfb633f6795ab19ec125485ad05db041b2964
 SHA512 
0673c1b71ab8dac116b5e7185bf80d46e4e531b10bb894b1c2d86212e0735b778c98f65195515e900c2715c7516b329f744a76426c25fefc2e1eb7fb6c1ffdbd
+DIST thunderbird-115.3.1-kk.xpi 805074 BLAKE2B 
f26693f1c06fe0a4bafba0b00c85d405d0b7546ec25ac811d967db85c1aff2c2ef9f53d5897c80b52a0062b0b5e55d1b7fcb467905291d3f85d07f7fc4b31b01
 SHA512 
78fb106e3e730ef3e656bdc7ec308f196579d78dd872db060dcdf45372db0dc3fb223589828f5ab3a7a1a9db7217d0174b95d1985ed5b8598e4e7e10b7c6e6fd
+DIST thunderbird-115.3.1-ko.xpi 712208 BLAKE2B 
b4e0814a57658fc06d15507af5c02bfe22a19db76049cef2b8aae1f189596358d2782362e359909eaefdabc2a32fe6ffbff434e661e34059931f663e8791840f
 SHA512 
ae6b9b717bbf87abbbe0abe3f37c6269a910908411b4841d49b1fe9f6fb7cfe20193c712cfbec0eea7078400d9505cf33d0ece4c7f3d2389eb9912d04bf09177
+DIST thunderbird-115.3.1-lt.xpi 680094 BLAKE2B 
bf807a44d855227da1f681f41678a570fa11b962d78e6a6192a9072ce7a1702b184acabb0b3e241bbff4f7ecd185f218caf517008d60778cd373bc8470545c6a
 SHA512 
d26dc39626b97e03d4f24388ab310a9c6f0195eb59e19c27e481668ac9c0e1a309b41429caf28e54623b1d8f23dca5fb7a2edab8b739280786b6c5c2d19c52ea
+DIST thunderbird-115.3.1-lv.xpi 604646 BLAKE2B 
2e21701a84c454ddaee13b9a84a20de589f9db3ea02c3224fcc47ee8adda8385760ec153476aed81a9f87bad670a8c7c5214e72badb527d169766136be791c35
 SHA512 
d7cf6af4d88b428160d31f4cb65118985a4a26aab00a5a613e0e8e25a89db2d7a9a42b20c63ef93220c094944a2ed54f199edb877fabf58df15099a07602e6ba
+DIST thunderbird-115.3.1-ms.xpi 565733 BLAKE2B 
2c581fce0c75bb4fa7efa008a0d7eec6a83d7f1afd8fce5ed5727b7a1e9f76e18df2b85f5c2aacc1458ae65e8c33713ccef5331b3e166181d7c09621ceb580ef
 SHA512 
f74df7cdc3d55b80bf48e6f0e2fbc7d545b7cfb533a45571af2666eaf2d3ae38ebcc51fb3e3c3cfbe0ee61bfbe8860793e2616564b05543a975f0312ab0eab1f
+DIST thunderbird-115.3.1-nb-NO.xpi 653868 BLAKE2B 
b4988dcb9ea90dd526634ac8ab59f3c3c25533fa53f4b939909aaf92780ead5da16dbdb005ecb29dc8e919921c407773247529f5641d234eebd15a7d346b938c
 SHA512 
0cecf303b9b2ea3ce36afcd8d0e8d3b2f3e3474cfdce1e0d254a65616e075703b5f2754a5254da27f2e95f77f204eb63c78c74b489ba7afe848a96a0d2475c5c
+DIST thunderbird-115.3.1-nl.xpi 699498 BLAKE2B 
ccebe216706382493f2079d1e2c0620d6ae729a42d928a2650fe69447fd3c7965d1220c2a406c2ddc2771f8a523882e8234b0102055405494d6c938cdf3965e1
 SHA512 
d26d528a670544574f404d074617ad7b6791a15c943878200df1c3d5dafdedf4a9a3208636784f5c92416266471560df665deb53914db9fb74925d33a3f3725f
+DIST thunderbird-115.3.1-nn-NO.xpi 673377 BLAKE2B 
3a28359032e8cef83b1c90208444194f27dc8afbfc1b274ba16a80cea207f72b7e51f1ab3aa0010d2aabd7c8d37e5678544417e4fb4228685cba61e19b721958
 SHA512 
77cdb9fa36b9cd20b1bee1a9ca21efd93dc5b2f036186c2bbb011980316c6f563f9cbf59d762138d7da4456bcba36eaa1e8d18a0ee53805e1ecbd7a890411e0c
+DIST thunderbird-115.3.1-pa-IN.xpi 655777 BLAKE2B 
4c6e057d70bc5954f684bc1b4b492a7d091428d298f29af244a31905265a7c75dacd9c4f7224fe9e23b27164fdb12c053e23c6e36f35a07749b715da620325bf
 SHA512 
885707c026d7a7c5a20411545481816b8d9209e6ccccf1776d6b9148591278528d38c3bd33dc7dc04c790e87ce7510f2a5092362e6d9b1065434e928034c97d3
+DIST thunderbird-115.3.1-pl.xpi 716599 BLAKE2B 
880203119237fbe3ce39f2b88149694d0033c4d1489a8bb1587a777afbecf8e95d7f2765104f96d8d451c3c9d708a55eeaa13075a99d140620b91beeb5c9a617
 SHA512 
84054704802b6b0f010ed2c32e5fe2712b3fc7a328d48aa49ead1f2ce1bdb38c11194cf2e72312bc263e0f9afb16476f6ed795debcd39c34924cf61878ba7601
+DIST thunderbird-115.3.1-pt-BR.xpi 707264 BLAKE2B 
ebd87eec6e6448aecbc2a8d8db2bab725d37d350039570039657275f4fba7d563b906a1d935409634437b99ef91f8b20214afd337820c26fdb2c17282cf0c883
 SHA512 
31e95229a0349a3938d4fc3057935c5306fe91e26021a379926953da80adcaeb13bac954d3d40f746a80011e5bda65d625d1ca276a55b9bf43a6ff67cca400aa
+DIST thunderbird-115.3.1-pt-PT.xpi 687834 BLAKE2B 
4202b146ab85d410bf00006ec135b9474d91c45410550066846802e098b4ea6eec414875452c55fd46f28b87e18bc0333aeff077eb8c818811f25b5188e2913e
 SHA512 
8f7fc65f7749147a8787a4f282e36540339c0b65d08940d99b3c2afbde8484acb9f3b0e80900566266fa2d6d5748027e90d727a908f3a21b25d0749bf4418e66
+DIST thunderbird-115.3.1-rm.xpi 704044 BLAKE2B 
f84f7aa35219131a550f381d1e4b6aedcdd909980db7bb945c6e579abb00ca7943cc9a1a3a436e9b28d206790d9050c082e07d52632ec1afc64db39d94877a50
 SHA512 
d9be860f3cb4b3a152ed3c08a3d212bc907cb74a99dc102c3ba564dfcb9ec46625698c04f88859d82aa11b65d135dd921fd97d4f31e00d2ec655f1c036731a33
+DIST thunderbird-115.3.1-ro.xpi 651298 BLAKE2B 
e0721753ca219c8bf580b477a9088efbc9edb36ab12b9b5f73a0cc17d169170c404a259cf538ce084557f92e3df07fb161e90c8ea0a964ad17a976cd4f51a440
 SHA512 
b361d8e4a952a8d6526169116346ea9735da24ea3fd793da51a3ae9fbd507ec718101e6f6dcace3099155e4ab5069783b6c6d587f3119dca1826be17235421a0
+DIST thunderbird-115.3.1-ru.xpi 820867 BLAKE2B 
3069cde81a68ca873eb7d9b346852e9abd406248346c9b4aec58b53521842611936dc5aa359e305d52f959d7f1c8f8eb9f9619ec324cad473de7523d2c1dfc5d
 SHA512 
da7777429fd77b432ab2378faa16f9fb8df5595dfce3c153c5c418ad2bc578b6f359d7519547ecc4b8758a3ca2ecaea1e2095e2406c1aa74f9d1c98873511d15
+DIST thunderbird-115.3.1-sk.xpi 736658 BLAKE2B 
c1af2629cc81e7a83c7e326a9b2397bf156db4716b5f40adda48fa501eee366d89d732d85111e5fc4c6e305db6f263edcceb13cc88a0ed0571637ef792520d99
 SHA512 
fc7094830832190f822b8a51244c2c7ce941d7e7d0284f27abc28b68bc53e21bc6aeba15e67b5e52cf911f263ace62e6b3d40b3464ebded6e70288bdd4128a83
+DIST thunderbird-115.3.1-sl.xpi 701217 BLAKE2B 
68d70e0464d3f2d9df582d476a17da073a731f5f6f4b85e1adfd8f3ebc3bd1be407a95f26c3500177fd1b690ccfd124421fdd3267c4747c0997467e13ee3b200
 SHA512 
754d842cbd040eeab4dd678a5af825b7fb8e57c2ea03586af6a41f38b3f5edfa13b55db73c334a54bf0f926047f1d18b6a0bee8b0b4c86248ec9f2cd10f9ef44
+DIST thunderbird-115.3.1-sq.xpi 717451 BLAKE2B 
539359bd42ffcbe0cbfbbbd4b892eaad8858845d16ef92a6dc5b8320258447eb9e9c88ea35cd37400c980ecd0ae75b09554af52b0e1bd42806646bd5ba3ec984
 SHA512 
ef9dc35d40851e8401cead8d0f176a76a732c563074d6c9884abbb0b1c1dc61aaacf264cc48880f98e3a32beb8cb7a4acb19f00a8b8e49177c35a83e43ac445a
+DIST thunderbird-115.3.1-sr.xpi 740171 BLAKE2B 
fb203030b5497ac81c90bbb5de40db440073f323307562b82ce7534ccbb5ef658c0a5b3b6b639cebbf78211f2cbb9e06318d1d6e0fdc6510c992fe8e56706896
 SHA512 
af49df2f11873f277cb73a7dd921531a0cfd4ac69cfde30fb8a523e26b9da1a555b88d0c49fee83132dd2963c6d2de16685bf8976c3f68915558e33ab5a3524f
+DIST thunderbird-115.3.1-sv-SE.xpi 702347 BLAKE2B 
2255af09bf24cc7454a4d613d2a873ec24be6ab97bf042194aa08992a8036cf0864d0ce19b9e61d495a94a12800443392a83f72b795ae84886362ab921fe906e
 SHA512 
23575f82a0d48fb83fd18c01c903c3d60ae46afcab1a79d97b7eee424354a4cdf780bdd8ef8c4c3ceb9b27f1709cba4d7fff9f982605037e9ea4fd2695138cc0
+DIST thunderbird-115.3.1-th.xpi 761857 BLAKE2B 
6c2979e19d46952f73c39077aba1a618de04732e6be735602010f36b3fd0f4920bffdabb085c99351bd8e462681cc2ec75590e82a9c938256e17203321ac68be
 SHA512 
cf126b885daf718dd2e8110b0b3ac06bcacc2d98fa9dc864593429640b3ba964312f8b5d02e91c350b6af5f6e841b784efe6c3adb44e548ea488da79abdf5daf
+DIST thunderbird-115.3.1-tr.xpi 715004 BLAKE2B 
bc26ea5f7b6f8bc84440ecdab32955eaeab6f6031d3d5f56ff798932fda3b772f2cea242f6f716657a63126defb4a71c75953470438b02df96a09ea33dc620a0
 SHA512 
14de6ccb33e795a01f6a37752df61431bfbf91d4545fb8ea82cb1b743dd1bdbc4889965607a920a28924b035050affeff38da44953899e40601878b0a2c07317
+DIST thunderbird-115.3.1-uk.xpi 813757 BLAKE2B 
8799ea7fac535e962a13116edf9af2008a6dfd8135ff37ad454392b6b53cafabb4646f6b075385eb3980d19e4363d2e8b1461b6554c9aa9fea679591bf842db5
 SHA512 
71372b52f2933a94752cf88ccc8a5c9f57b1d6ae0eeb95beba531e18265780bb2ab05c2c6ce823cb565be61d67e70d83fa16955a9968a72277997742393b6c30
+DIST thunderbird-115.3.1-uz.xpi 579986 BLAKE2B 
261de874df88833621156b52d8e3aab9c017deb3606ff7d86afcc5350b6d549863cb4f07c9de1ef41b2413b3a1defd861fdfff5148c2773311896f5960866bac
 SHA512 
b3719b79a10ec3749ef2d80aa4438a52d5e19aa2628f9e6e1b748c98948223f1eb497504c1dd2a0c97fe28bfef4a333e5b5c739d03d61ec3361419490a106c7a
+DIST thunderbird-115.3.1-vi.xpi 742718 BLAKE2B 
67e79ecfd4f3f272c6d446144ef977a076436612ba1f322eb14389b368892e8ea30ff7f1406702022af36a15fdf7e1ea5fd72b1abed25b2f1de66ef0386f0d31
 SHA512 
32f04bd22d8b6c3279c16e590d05818c70d2b83473c6807b6ddb2266579c433ae78289196e447de85a4908dbc9523c74d6c8cfe3b8d8fcaa72af98539f67bc75
+DIST thunderbird-115.3.1-zh-CN.xpi 740788 BLAKE2B 
669031d165a986add4bd11ca7abac883a8828ca82f11da13f8baf195db89d31bfb598dbcf7edf54a33cb7a806de8f65d5aa12ad71b2dc8e22e503b03b2fc5af7
 SHA512 
e97c69c2efd501c437fbca65159e6bf3d2602f57ac83a0949bc78b99aa2bc97220965383efbb61262a85e4fce6508af6c9ce8108644bd2e36a62de26242ea1cb
+DIST thunderbird-115.3.1-zh-TW.xpi 744415 BLAKE2B 
3be9715c63fd98daf03c7fea36bf254e1e9b3dfcc43d18d5a7a4b480a7afe716ca26be8617785d7185f34fa47376ef9c5f0994381d56d1362792eb34a4a25241
 SHA512 
51b204f793d25f946be11cb23bcec6d85224885dc628674c2282b1ec7cefb23f9088bbaae78b5642d1f32b329c5203271a5129ce491881e0efa748a5e68aa431
+DIST thunderbird-115.3.1.source.tar.xz 530392392 BLAKE2B 
ee1f209e6046493716efd49acfce8d30e0fe29a1d6ffc0bf435ed97a173f470420a9c42963eb396da042b65dfa72a94a4df8d775bb6790d79fabf139779a177d
 SHA512 
e3b643cfee07d3fdd7bcc686db6dd3e81b09ecabfa9df4d34dd32acf3799b4b0b4a88e169f957d420e06aabba55c4452f3a9761db37828b025048ad5d8ef2db9

diff --git a/mail-client/thunderbird/thunderbird-115.3.1.ebuild 
b/mail-client/thunderbird/thunderbird-115.3.1.ebuild
new file mode 100644
index 000000000000..8a70d85db28e
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-115.3.1.ebuild
@@ -0,0 +1,1313 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-115esr-patches-05.tar.xz"
+
+LLVM_MAX_SLOT=16
+
+PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+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 linux-info \
+       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/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 +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )
+       pgo? ( lto )
+       wifi? ( dbus )"
+
+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:16
+                       sys-devel/llvm:16
+                       clang? (
+                               sys-devel/lld:16
+                               virtual/rust:0/llvm-16
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-16*[profile] )
+                       )
+               )
+               (
+                       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] )
+                       )
+               )
+       )
+       app-alternatives/awk
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.24.3
+       net-libs/nodejs
+       virtual/pkgconfig
+       !clang? ( >=virtual/rust-1.65 )
+       amd64? ( >=dev-lang/nasm-2.14 )
+       x86? ( >=dev-lang/nasm-2.14 )
+       pgo? (
+               X? (
+                       sys-devel/gettext
+                       x11-base/xorg-server[xvfb]
+                       x11-apps/xhost
+               )
+               wayland? (
+                       >=gui-libs/wlroots-0.15.1-r1[tinywl]
+                       x11-misc/xkeyboard-config
+               )
+       )"
+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.90
+       >=dev-libs/nspr-4.35
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/freetype
+       media-libs/mesa
+       media-video/ffmpeg
+       sys-libs/zlib
+       virtual/freedesktop-icon-theme
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf
+       x11-libs/pango
+       x11-libs/pixman
+       dbus? (
+               dev-libs/dbus-glib
+               sys-apps/dbus
+       )
+       jack? ( virtual/jack )
+       pulseaudio? (
+               || (
+                       media-libs/libpulse
+                       >=media-sound/apulse-0.1.12-r4[sdk]
+               )
+       )
+       libproxy? ( net-libs/libproxy )
+       selinux? ( sec-policy/selinux-mozilla )
+       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-73.1:= )
+       system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
+       system-libevent? ( >=dev-libs/libevent-2.1.12: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? (
+               >=media-libs/libepoxy-1.5.10-r1
+               x11-libs/gtk+:3[wayland]
+               x11-libs/libxkbcommon[wayland]
+       )
+       wifi? (
+               kernel_linux? (
+                       dev-libs/dbus-glib
+                       net-misc/networkmanager
+                       sys-apps/dbus
+               )
+       )
+       X? (
+               virtual/opengl
+               x11-libs/cairo[X]
+               x11-libs/gtk+:3[X]
+               x11-libs/libX11
+               x11-libs/libXcomposite
+               x11-libs/libXdamage
+               x11-libs/libXext
+               x11-libs/libXfixes
+               x11-libs/libxkbcommon[X]
+               x11-libs/libXrandr
+               x11-libs/libXtst
+               x11-libs/libxcb:=
+       )"
+RDEPEND="${COMMON_DEPEND}
+       jack? ( virtual/jack )
+       openh264? ( media-libs/openh264:*[plugin] )"
+DEPEND="${COMMON_DEPEND}
+       X? (
+               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 && ! tc-ld-is-mold ; 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}"
+}
+
+# This is a straight copypaste from toolchain-funcs.eclass's 'tc-ld-is-lld', 
and is temporarily
+# placed here until toolchain-funcs.eclass gets an official support for mold 
linker.
+# Please see:
+# https://github.com/gentoo/gentoo/pull/28366 ||
+# https://github.com/gentoo/gentoo/pull/28355
+tc-ld-is-mold() {
+       local out
+
+       # Ensure ld output is in English.
+       local -x LC_ALL=C
+
+       # First check the linker directly.
+       out=$($(tc-getLD "$@") --version 2>&1)
+       if [[ ${out} == *"mold"* ]] ; then
+               return 0
+       fi
+
+       # Then see if they're selecting mold via compiler flags.
+       # Note: We're assuming they're using LDFLAGS to hold the
+       # options and not CFLAGS/CXXFLAGS.
+       local base="${T}/test-tc-linker"
+       cat <<-EOF > "${base}.c"
+       int main() { return 0; }
+       EOF
+       out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version 
"${base}.c" -o "${base}" 2>&1)
+       rm -f "${base}"*
+       if [[ ${out} == *"mold"* ]] ; then
+               return 0
+       fi
+
+       # No mold here!
+       return 1
+}
+
+virtwl() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+       [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to 
be set; try xdg_environment_reset"
+       tinywl -h >/dev/null || die 'tinywl -h failed'
+
+       # TODO: don't run addpredict in utility function. WLR_RENDERER=pixman 
doesn't work
+       addpredict /dev/dri
+       local VIRTWL VIRTWL_PID
+       coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo 
$WAYLAND_DISPLAY; read _; kill $PPID'; }
+       local -x WAYLAND_DISPLAY
+       read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+       debug-print "${FUNCNAME}: $@"
+       "$@"
+       local r=$?
+
+       [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+       exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+       return $r
+}
+
+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 && tc-ld-is-lld ; 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
+                       # Update 105.0: "/proc/self/oom_score_adj" isn't enough 
anymore with pgo, but not sure
+                       # whether that's due to better OOM handling by Firefox 
(bmo#1771712), or portage
+                       # (PORTAGE_SCHEDULING_POLICY) update...
+                       addpredict /proc
+
+                       # May need a wider addpredict when using wayland+pgo.
+                       addpredict /dev/dri
+
+                       # 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
+
+       if ! use ppc64; then
+               rm -v "${WORKDIR}"/firefox-patches/*ppc64*.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
+
+       # 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 ..."
+
+               local version_clang=$(clang --version 2>/dev/null | grep -F -- 
'clang version' | awk '{ print $3 }')
+               [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 
"${version_clang}")
+               [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+               if tc-is-gcc; then
+                       have_switched_compiler=yes
+               fi
+               AR=llvm-ar
+               CC=${CHOST}-clang-${version_clang}
+               CXX=${CHOST}-clang++-${version_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,
+       # AS is used in a non-standard way by upstream, #bmo1654031
+       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
+       mozconfig_add_options_ac '' --enable-project=comm/mail
+
+       # Set Gentoo defaults
+       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-tests \
+               --disable-updater \
+               --disable-wmf \
+               --enable-js-shell \
+               --enable-legacy-profile-creation \
+               --enable-negotiateauth \
+               --enable-new-pass-manager \
+               --enable-official-branding \
+               --enable-release \
+               --enable-system-ffi \
+               --enable-system-pixman \
+               --enable-system-policies \
+               --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.
+       # bug 833001, bug 903411#c8
+       if use ppc64 || use riscv; then
+               mozconfig_add_options_ac '' --disable-sandbox
+       else
+               mozconfig_add_options_ac '' --enable-sandbox
+       fi
+
+       # Enable JIT on riscv64 explicitly
+       # Can be removed once upstream enable it by default in the future.
+       use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' 
--enable-jit
+
+       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 X && use wayland ; then
+               mozconfig_add_options_ac '+x11+wayland' 
--enable-default-toolkit=cairo-gtk3-x11-wayland
+       elif ! use X && use wayland ; then
+               mozconfig_add_options_ac '+wayland' 
--enable-default-toolkit=cairo-gtk3-wayland-only
+       else
+               mozconfig_add_options_ac '+x11' 
--enable-default-toolkit=cairo-gtk3
+       fi
+
+       if use lto ; then
+               if use clang ; then
+                       # Upstream only supports lld or mold when using clang.
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang and USE=lto" --enable-linker=lld
+                       fi
+
+                       mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+               else
+                       # ThinLTO is currently broken, see bmo#1644409.
+                       # mold does not support gcc+lto combination.
+                       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
+                       # lld is upstream's default
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang" --enable-linker=lld
+                       fi
+
+               else
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "linker is set to bfd 
due to USE=-clang" --enable-linker=bfd
+                       fi
+               fi
+       fi
+
+       # LTO flag was handled via configure
+       filter-lto
+
+       mozconfig_use_enable debug
+       if use debug ; then
+               mozconfig_add_options_ac '+debug' --disable-optimize
+               mozconfig_add_options_ac '+debug' --enable-real-time-tracing
+       else
+               mozconfig_add_options_ac 'Gentoo defaults' 
--disable-real-time-tracing
+
+               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
+
+       if use elibc_musl && use arm64 ; then
+               mozconfig_add_options_ac 'elf-hack is broken when using 
musl/arm64' --disable-elf-hack
+       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 tc-ld-is-mold && use lto; then
+               # increase ulimit with mold+lto, bugs #892641, #907485
+               if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+                       ewarn "Unable to modify ulimits - building with 
mold+lto might fail due to low ulimit -n resources."
+                       ewarn "Please see bugs #892641 & #907485."
+               else
+                       ulimit -n 16384
+               fi
+       fi
+
+       if use pgo; then
+               # Reset and cleanup environment variables used by GNOME/XDG
+               gnome2_environment_reset
+
+               addpredict /root
+
+               if ! use X; then
+                       virtx_cmd=virtwl
+               else
+                       virtx_cmd=virtx
+               fi
+       fi
+
+       if ! use X; then
+               local -x GDK_BACKEND=wayland
+       else
+               local -x GDK_BACKEND=x11
+       fi
+
+       ${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
+}

Reply via email to