commit:     2ff7ad561e351a379e549d45f07003d13de0bc54
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 12 08:31:47 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Oct 12 08:32:16 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ff7ad56

mail-client/thunderbird: add 115.3.2

Closes: https://bugs.gentoo.org/914843
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 mail-client/thunderbird/Manifest                   |   66 +
 mail-client/thunderbird/thunderbird-115.3.2.ebuild | 1313 ++++++++++++++++++++
 2 files changed, 1379 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 6162653c8cd5..68c9890400a1 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -1,4 +1,5 @@
 DIST firefox-115esr-patches-05.tar.xz 15000 BLAKE2B 
e6e6918d182100616095119f1da7fd6ddc8fa3dae236d075292451f2b2ab1be7b16620eb17f01e5c10fc81324c81b25c596b9e99e7d7745a7ac0b22a27ae3e97
 SHA512 
ccda6860d885837c59e7ee4612bdd72dedcbc0dc5d6cf7d40dc6524591b67a2d165a251a13662bf1dd3995ffe392861a73bc08bc606a2320de5a5d8880086314
+DIST firefox-115esr-patches-06.tar.xz 14944 BLAKE2B 
e60a8a32f8c5e6d897e8c3e13d291ffab651937505ce258f031e7e75560c9eb89fce4a22c61872d639e6e1d40244e94761baa1660c2d3d02584ad4cc4778946f
 SHA512 
d9ea1a063df287fa651042c90529b1a1b5ebd5a28735c44b5527cc7dd29678c2f8a9204f007db328371ed6af9613ca7215464c00df5e685c3af4296a22139257
 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
@@ -64,3 +65,68 @@ DIST thunderbird-115.3.1-vi.xpi 742718 BLAKE2B 
67e79ecfd4f3f272c6d446144ef977a07
 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
+DIST thunderbird-115.3.2-af.xpi 542157 BLAKE2B 
6a19d5768223354e0a82694296d7e90cc2e8047dadc668d1edd8b025fc85371d9c4c4800d40b1d874613b08fd242e6bcef18c0e050d96a0444628db7230ac7c8
 SHA512 
87703239b301352b71fabe48a6774c1afe99f7cf606ee747fda31261780ed6f2f84b9e8a0503ed1d0f3dd5223127eb6f5471f3ee83fdfa5d29cd05920cd29141
+DIST thunderbird-115.3.2-ar.xpi 654728 BLAKE2B 
1732a7253316459b98b74c8acd22746fdf313202d4738d7904fa3bbffe991fa1e3fadbedbd4cea0975cdd575a3c5fcf46a55eb06c24b848b485f470168e5fb1f
 SHA512 
fe0a40b58436a3e56d29e902d9d1f53a4b96d0061cdeee7636f10305f99d6ec8cf5f09eeefd333f8eea4a95a67af4e65580c692e4b675e033e1b48986a179224
+DIST thunderbird-115.3.2-ast.xpi 561121 BLAKE2B 
e1917ca2081c6e849788007d16d59c7a3089de3a75f85fc82db36d02de9c262b142982936b70040fa71a0dfa93c7cc046ca0f6aa50195a89e967b455a065c389
 SHA512 
eb21430708eff7c9b0fcc0bfaa9ea1ff5e1f103a79db4e76237d0ccab60d05e7e02f15fa3d6d2b15d6d7b6cff2a112fa6759e00d082b8e5bc46c45aac82fc7eb
+DIST thunderbird-115.3.2-be.xpi 694085 BLAKE2B 
25494fc772573e1e5fddf0131e57a88fbcca71d39a248a80ec29a3ab62155bcbb558a963d6c20e6e04b12b560800c5361e47cb524467dd43b51b6e05629947a1
 SHA512 
d8089ee6cf3691ec576e4e48a04cac8563cb21b189fd037aaaecf64896802056264e781be549e9c2b3d287918a86e4fd885c1148cd334e403b66639c10d15e0a
+DIST thunderbird-115.3.2-bg.xpi 681251 BLAKE2B 
03e1fd49d927772d28373a9bbcddde89bee04f56852decd88f9f9385e738b566ba5c0454764bb1bf619df9ca4c15ade7c981ee4d8dd95f179b92a0f48c32629b
 SHA512 
a6ea6907567d86bd55cdfbd5a7a8ece2e16e46db2d615d3e8dcf49bb0146856c593e5b8ae11784baed32524891a839306c106fdee0e9d1c03d99e6cba042ae1c
+DIST thunderbird-115.3.2-br.xpi 626936 BLAKE2B 
810363c5d282d9aa3fd3838486557594ebd5ad2cb7c1bcdcee46f35bbf835971d0ff108bd9e516d36988bf7c96962aff757e143b30106dd99fe4b4a3699b8a6b
 SHA512 
52a7d864630708bda19fd8ffd3316e9f1c23d4f6ab942576be64904d0850bf0cbe1c47c0f1b20162dc0b64b314ad5c9eb701472c3dcc0190c19e1363eafd7480
+DIST thunderbird-115.3.2-ca.xpi 670651 BLAKE2B 
18d1f75ac9c50cb4317cf86f0adc18bbb1a7e4c02abafc3cecb99de580ea4350112102aa68bec3a54bd2effcc23434c61264c0e06da97613ae32550dc05700ae
 SHA512 
86909013795eba1889fb079460209f7bfeb7429579e31d245adbca80c21d9cb72c0ed277c9a5e5f5640e3d113e3ed318194ffef977d79d3e48b9e3ee12ca5c2e
+DIST thunderbird-115.3.2-cak.xpi 657817 BLAKE2B 
a89a206566a9f3a24db875c591ff58014584cec6a38eb45b66134ff1766139547689f2213c31d89c540ebc7f462864ff4901bb9594ac72ba171dd5826c754f7d
 SHA512 
4d0fd1601b32067a74190a2de166c3e40af0e9ae1679dc9984eca489408a28880e698f8f6ad3662b1350907fe24ff3684e86b191c1a32e6800e6522c2ef1de7d
+DIST thunderbird-115.3.2-cs.xpi 733801 BLAKE2B 
1f6e853206433136bc98682c9594029dfb4a0c33fa73d019ff3c3ee227fca81bf12ed0b202a990c3073f038d356ba7ca81d80f8fd610c8a2dafd9e025b7e471c
 SHA512 
1ad24a2ff99a8c472b1af38e536804a9894317d4206d105d07fff6700a6de0593feb0241a835af4ced6922f0ebdc48e70f5c2fa444b460e1e2a68c1f6145ea6f
+DIST thunderbird-115.3.2-cy.xpi 703267 BLAKE2B 
bbfb0d075a32271f5a50a14b8a96bcc273726eb1928c743c03f83697cc4cd483c22d1fd991661d696fd19047a29a49d98f453c1268330692b4fc425336c4ab75
 SHA512 
cb6d6d75f363e468cf3ebd0d11bb29434ef97fc8d03a66a9a6bb0f39cb729911841255204f73f1d1c6d0f8964b563ac90148e40bc1e17c584cde883e62fc6682
+DIST thunderbird-115.3.2-da.xpi 690755 BLAKE2B 
a77be1b4ca0c45ed3a85e67e7f6e282004a59f0efbdc2f9352f6a73f64a49687ce3e199f8f9c7e426fc8723c63315e0430e9b30befdf318de8e87625489d834d
 SHA512 
88e750dc1046fda5b1f5e3035dbdff0164d9935189a935abc55ec38660e246ba65af928545e4c5c1446c0f21bea8a84fedc02576b802c3ec2ff96df948e565af
+DIST thunderbird-115.3.2-de.xpi 720204 BLAKE2B 
628ae15cc25c0a5b305402616c98072818e5679d1162b0903e97ad7b9721815c51fb01c259f98431767284443058beb51c4c3d28e1e8b08ac5b0cb610b1dbaa2
 SHA512 
c03259f3dd32a572ae9abd239c66263d288727e9d0d536e3d9932b91308cfc4c8dc848d5146a3ea5c49a5ef59a044f35e656ec510fc6c908bbfb1615e248464e
+DIST thunderbird-115.3.2-dsb.xpi 737299 BLAKE2B 
c55a5774e5d2d06e5692280846126ad9106e7e4d14902616785cb73a25a0f6372319fca47231b07be71df8c65cebbcb71a94eae23cc07f745a28ff62fbddac41
 SHA512 
68d4b83823ee10a4e99134fc770501f6ede2408a19f77d464d2a547c945e9f5311f554eae80f9ce59919f0427a509ba275812644b336ebf1e2aa91f4d87ff36a
+DIST thunderbird-115.3.2-el.xpi 836693 BLAKE2B 
dadb356cf8d20028492f6980ea13200696ec6b496d0b5f97faf6063895e14b3f1d7b5d6b05aed4f754f910db9523e9c759c358c3cad832ba9a49ecd62e8315ed
 SHA512 
00c714e9ac248086802b1c898802652d2dff10788cafd8198fe5ab8da2595860dc3e7bc97b622b15f73d7ba4448fa21fb145e984683ad43a6ec829e165b23cc1
+DIST thunderbird-115.3.2-en-CA.xpi 656173 BLAKE2B 
9d42742dd861d4b73077d5b55d6c0ca6966c00e363b1eadf8ff9f352886776acb810eb8785c99a73ade519883bde8cc4fd105e3d9a815ef383736e5d5a48cb3a
 SHA512 
d46eea27a36bad898f95716190455a5387996d56affba0aef2f8f279e82f54376df46b4e886cbd5cfd129e501abb72b3b49700ec0a1935368ed877b867b4a871
+DIST thunderbird-115.3.2-en-GB.xpi 661453 BLAKE2B 
cc9d78368c463f3589f2e86946888bfd6dab6fc2410b12dcefb0f3886eacb3a2b4d9d9a74d1ad49d006bfe7a76068341b439ecd59c0d7b401b75e12dbfd0d929
 SHA512 
140f4c382059d62063bab4c869a33645a87419f23b6821913b07d6d7e25a320b35cb00c2ef96f3074e4ea9a717a611d2b428b222b57cc53b080485206a8fe6bc
+DIST thunderbird-115.3.2-es-AR.xpi 713036 BLAKE2B 
b4b95837fe9205599a11ac95bbabd2c5c234e067acdf5da5810ede5a2bae32326872e371dac5489591c51c5df714e1247c39e4b1eb609d1b06c13abbef28879f
 SHA512 
cb9ab37e921954e18e8f0ab8de5e94b5b2045ad06de725ae00e9d906ba5f3ba93f27867c0a8bbe7a4f2a8078283df684f70e991dab7d57b5f035773e2a1159d5
+DIST thunderbird-115.3.2-es-ES.xpi 675617 BLAKE2B 
954fda314eedcd226def13f8beb3eb77dfd37e5d1377344bf51450d5327235f336e40ee2bbdbab28ce792331aa2090bf850a08e67eea2ab0584a3f3d5c18cfe0
 SHA512 
6094096539623f8fd769200240df848cdb0678744ed14f747a3fe2d5391b85bf4bbf56fae70b401445875e199f16f72d121093c9ac2e5f49915257be81fcd4d4
+DIST thunderbird-115.3.2-es-MX.xpi 710142 BLAKE2B 
38a0d8c7596dc63dbb3b8426e5cee43263e3b48d75a2b0f69abd004bbc2d4377f5b0b9d1b97cb23a369ee6a2bdea04db8cbd6540ecce65859c5a5b2ecc22058c
 SHA512 
f62d9b5a44d5532c8f7e9e9d7678303ac3ad5a0cc663f8992d86167dab26865bac55e90bab3693bb155ecd0bfea207f3cb3f1b1ecdda9ba4c4f869270cc68866
+DIST thunderbird-115.3.2-et.xpi 671822 BLAKE2B 
f22ce42cc32eea9ad2b969e791e66144631dc7bd92fcc1148a917915d2412987a33af67a77de56972797d15ecc1f931012c67fc5e028944aa3831af504988dca
 SHA512 
1f5d6ff840b8ab3c7847caf34c5c3f09c62d821c25d57fe0b952c9aa796813062d7d5a56a9d2fca34178b612a67f7a26ff5c5914b25772c46da3c56273628c29
+DIST thunderbird-115.3.2-eu.xpi 692552 BLAKE2B 
fdbfb0021d756185e0e79bc57e36ecbd4f4608f7395dc15145382ed6db77df8fdcada850ab31f094e153c50bf410c2f8baf63c9417415afae7a63aafda4d4b2f
 SHA512 
98222a2b3da07047771d29a5c1d42c157a3ddef1d4b70c84c389a374baa1dccb03a6b537fe20165f0d83d83cb1b0b175fb355573cf3318cdb43d2879dc73db4a
+DIST thunderbird-115.3.2-fi.xpi 690417 BLAKE2B 
a4bee278ea4d536f555f47fb9be18f6db1fd8fe0793008792690d8a607cb839eabb553dd135ad121329c36562843fb231bc91861cf41b554c6fc19fc475c9bdf
 SHA512 
b40530daba74eef5ef9d2b076214cb45af1d346ae9189dcd4c56bd394c2a5626534ec683934997732112a4451412cfb941b4844714e9d4077b5dec6ed1951894
+DIST thunderbird-115.3.2-fr.xpi 725271 BLAKE2B 
4ffa8085918e7895c1b4446c72ce3385032adba3c426c1270131fb32492f753025456cbb1c1167da286a45a766c77f88cd11f0a290d62dc0f357e47edd146da4
 SHA512 
c1de10f414a807d4ced5fb15f8228ac91034cb049e10cd5dad4398cee1a8052988b7d54a0e44f167a015b96fae38e0d951aedc91729670a1e637a01380949fd2
+DIST thunderbird-115.3.2-fy-NL.xpi 707839 BLAKE2B 
a2814dca1ba8c583aebf28b567b5c1ff509bedcf0c7fcd871cd2b7de6eefec84aa26ff5a91d96b45d78d372992c5d17716d252b9ffcf5a03f526ef41fc112d82
 SHA512 
9e38e13caf7c2600f96ca6d64ee0e908d75ddd34aac1d4ceb219d6c970ddd23fb18203109eadeeb0fb4ba6495f6683d9c0589679b5101bd77018b4fbb76fc8cb
+DIST thunderbird-115.3.2-ga-IE.xpi 602151 BLAKE2B 
36ac1be4a36595e739862b9a1a6f71d0f7a5f3c523595273aef420472a4f4efc47352e2d6d26f34d9363e373a66820f3642db026b4fe0db9834afabeb97d1e16
 SHA512 
f3815a83fcece641d78a1ce9a1e09796558947a59cae16e64547c33e233e8035ab3c36a6917c67855b87a0d19099a2ebc2ec2cc5d3eb65b5d58d251826eaf060
+DIST thunderbird-115.3.2-gd.xpi 702994 BLAKE2B 
e904475a61cb720fa79cfba4419c7f4d3cca103751a04d46cbb54323a66ea24bca950139ff462adf3b45fe9e21814a47b2f8d5285b5a2c878831d4bcbe8da128
 SHA512 
74771989104ae70dc5a6f1cef24f9af5ad63575cdb9f02cba97160e0c5ffa06cbd53d2c1ab9428d8aa39985e6c5f014852926bcf90728696ee9821b9d1c4d9ff
+DIST thunderbird-115.3.2-gl.xpi 705372 BLAKE2B 
88d23a267f8d8ad6877807ee5d54a2e81e4ea0b035bbad7358f3c0e47ddb71ee9fccf519959cf4c4acd4c77a832807ad9e5bb7dff75a3f93f53f4b66c121b30c
 SHA512 
626aa8d833e6c4f1bfac8bb48d0ff0eb02a59a56371d35a6b06d677cb0d152f19df27fe6da7fa79da6807db7703310954e104288fb090380ca85e01e7d1acda4
+DIST thunderbird-115.3.2-he.xpi 667477 BLAKE2B 
93d4ace4c7e2e3a1581ad6d39dbdf4ea5f9b577498d7f0b259b404865c4793a9ed798e937908e7d996d682ab6ecb9ca3b08d478616852cb6ddab8b5f13486992
 SHA512 
54d2c25eb0f0a24c0792f5cac5d6975ea93074accb4f7baf9fc0c8cdf59539b4c0410fc14ebb2b811489c46aa7e1d45001d00178ef2f8a5237e8abf954297ccc
+DIST thunderbird-115.3.2-hr.xpi 674806 BLAKE2B 
d7f4b404b8a7c672bd1b87ce18499e3ea3cb113b75e8500e18103532021a04d31dc1c4a821ea4574a5699f87d287f85ed81c46930797e80b7d60f88a6bf6658c
 SHA512 
3277022ff7c9b514017ff2807a293b7c3cce592064c9df761231f05a062c61324bff4045f842425c4924fa7ceab86cee0e388758faee9cb05023a8a216400a43
+DIST thunderbird-115.3.2-hsb.xpi 733833 BLAKE2B 
4ed1fd47084745ed1ebeedec850a9e05c6e928481dd9858978150be2ec0ac2edb9175003bd49ef7fda1d9588107d7a087a1abd0fe1f261b75c3f20443ccf8126
 SHA512 
34d6e168d9c071dc44a64edf1578cd42651162027945de4dd2b754f2d09c3beeba5a4fb06c93e7d341f5ad633af96c74266700b549561724fbedaa5c75705ada
+DIST thunderbird-115.3.2-hu.xpi 736576 BLAKE2B 
b0e3aad1c1706adbdf84aca1bf3fbcd225d6353c3b128df94d7843fc98418de92b4ac8bda9b14248660cba883fca3c756e5fcff6350869ee91640565aba136c9
 SHA512 
d10eb1edf5c71fc68ff68527bc8ecf0639d9d544ad2248daeb62713e8fe88b85b4af4b0b6a8ee5827495cc58f0d7ecf3f172b771418497a3cd1c280fceb7d5b5
+DIST thunderbird-115.3.2-id.xpi 642542 BLAKE2B 
3505d04b4ed0fe40a846d192b5095f7dce091848338d848be3066fe332b1d7449abea661a9d2e281626333950b914aed2a4a725fd298795fa8fd8532076df2f7
 SHA512 
638c82c4d73580b861de5db84286e1a222eca02df4b2839cdd0c898c32da476e98bdfc68c407c356ef9e213dfcdfef120c484080168a3c052f06999aa1f8cb2b
+DIST thunderbird-115.3.2-is.xpi 701960 BLAKE2B 
b45cea7d8bbc1a57b1287df6814f74bde2e1697825620643ef866ae2d27957785f3c45ecd2881b956fb21362a75f916f0ff9b539a27b6649acfa0c15ebdf4c2e
 SHA512 
fab7a6eced1f57439158e3475e5c84269e2cb0140abd4650826e91bc874eb6d73d376dd43469edd7e9a7959f29f07e7c61f3a0422b823cc964c938dc3e73ca96
+DIST thunderbird-115.3.2-it.xpi 643461 BLAKE2B 
502d6d48a1338b31be3aa54dae8d4eeb344478423564dc0b00809b2975361ad34161934ef81f0878a014204b0490087ac84ee03111a48a47dc3a191c6ead420f
 SHA512 
f8906d1a55ec8a31eed73097d38c1fe3a471bc098968cce2abe6cc0a14a945dc83f0f1b4958bcdf991e57a623e2691c28832851aee6baf0aedbeffbe93c1631f
+DIST thunderbird-115.3.2-ja.xpi 777476 BLAKE2B 
33d45f50e8a94ed4728adafb6fff7107d460db20d655081d7bdbb17318a499b963a958859b6e041e76ff8db7654bb5e38dfa5d611d6e83d6737039850726c320
 SHA512 
34f094a94628c603af4fb2438888686cc98d0b522ef6928831fcde0295533d91b68cda844e922af46b45f5674e5c3f7856d875241e64c4efb2024ba6bca1d466
+DIST thunderbird-115.3.2-ka.xpi 764457 BLAKE2B 
759cedefc253adbebf23c26df81f418e77ebe27095bfacd00c21ded2f1974df629c42041089d03076c0939f69f8dfcd49003309de1857b7b782adfb9c1082751
 SHA512 
6d6ae6cdaa5d72d17bacfad359cac1f543ea4ea913e3daf20b6c766e0bc82875b6cda21b055a6dcbee35b6d20325de74f9d8563e8516597bd75df48dc02da274
+DIST thunderbird-115.3.2-kab.xpi 698918 BLAKE2B 
7582e5856cb7f9d6677c4ca454151634242f0b4b35be46dde915630d590d1611194e1c0858fcf762ef0756650b2386b0318dca2d9b3f01148ccc63a4d13fab76
 SHA512 
693f6ff1a9dc21ecf61646f400898ff46040d337d330d1d8cd89c4a2e5538b50e1fbd8426a1581d37e131a357b876153e6fe7cc8f18337c159ac5a1f197bf536
+DIST thunderbird-115.3.2-kk.xpi 804988 BLAKE2B 
f7cc20f2c5ea2638590b93993f71319b8d567b0169b468bc5ccc92ab63afd896b74fefd896a046f879c3cc12b59af80447667dfcf0a1da7e7c6842bafb66a183
 SHA512 
24e3a820203c64559e2a9b314eda53143a35df4e22b238ba41fd70f9e75202171342a2f21b395d5f0593afb1f3c7383ff837e6747cdab71f84105110b8da503c
+DIST thunderbird-115.3.2-ko.xpi 712589 BLAKE2B 
3a54ec5db0ac9576d87617a03c197eedf23645c7a7733d6e94b3e6e70ddf69ee11ef993d90c784c27f72c5198130c47c6f5a092d51c67f6088ec051d26c3c06f
 SHA512 
db70e351b5eb950d8a1be27fcb113ab37af17ab0e79ad48c4440b70dfe61bfa85dd8d36f850e64bcf5dd4b3f8b9cd8893ed3b1c0b1567b0aaa98118e9e4606e6
+DIST thunderbird-115.3.2-lt.xpi 680096 BLAKE2B 
3ef0dbf0da9b537fe01d9c17e663abc547e2d622ede1df913132342d3bb328e202927392cd750eb6331affc03f491d67e111ffde72b17bcad4f66f2616f2569b
 SHA512 
690c6450b23f809061139d2f99f8fcbed1e4397ddb856d97d68818164df9a80ce747e6632477bbce1e69f6a7515241586c4e3f2520f76bd4f558ab95cc0c21eb
+DIST thunderbird-115.3.2-lv.xpi 604649 BLAKE2B 
0f9e2537b6b1ae1b6694d8207fe868e0a1428964357498e926cc138a3f4dd486e00549acf392a10fb76fdfcf6bd9738aaeb8f5da0396fd9a38e1364fece999a4
 SHA512 
a0c22ed4b7158593e2a648c1583e695f496187587e1495ade46f0e8254933a75161209f9f850b6c2a6143c3fa786f1c4f53392cc726ee1a997a9dd61ac86247b
+DIST thunderbird-115.3.2-ms.xpi 565734 BLAKE2B 
baa3ce1be40080b82230dc90dcee6d751fb8423983befac675565b0a451ee51e56be1a142928e70c17e3958d0293adda0615e5f1afde96caefda09ddf7e7be79
 SHA512 
f6d2476ca8c15a18ea1df7a4dc79afaa71e05c054d4c509bcf1b06ad9a49321918455a1eae366f7d271bfdd0028812235f61b0bd08f41fd744530fdb0f1fc0ac
+DIST thunderbird-115.3.2-nb-NO.xpi 653834 BLAKE2B 
9995540a9a941e81ea03202c192798def5db96cce80b60c55a10414be0064116f9d39fb9b9304df138542e7d15a3e0df5232ff1d8ea966a8ddaebe55d7a48168
 SHA512 
7c9277b76fb205b28144fc6d0fe7d3b04f62bb38d3220d334a4f5614bd9faa8a2e1326c01e0a24bb1af8249f5cb1ab40f9c19d3ac42feb8594ea562255fff5e6
+DIST thunderbird-115.3.2-nl.xpi 699388 BLAKE2B 
591d5b5e2abf55f8e8c9d941b981fd80fdc43e87ac37c961645373bbebf1ea817479ba1e73986046181c2703faf31cfb05c188e5e870313613e853dffe4d9368
 SHA512 
fe8c509fae6222611d149db428e8b030642faf4a573ca123cb8752e36d27bd6d1c70184cb75da04fea1fc532b72aef3c982f16e36374e07ad1061d6ae6777769
+DIST thunderbird-115.3.2-nn-NO.xpi 672836 BLAKE2B 
791e688294e6bb3298bcf464b77f7bcb185bb2db4b0a0225bcb102e5b03abb7bfeb6f28e5d42cd90ca6bf5bab8a924d11a08f87d127a431a470ce3c181d61946
 SHA512 
b387961ce1cff641c18d343f11bbd2d275585519575adeaa269d83b4c900032b0a30c12d09b920d195c01cfcc58c5f87d5efea48dd29e6a80f26d51ad12eed55
+DIST thunderbird-115.3.2-pa-IN.xpi 655776 BLAKE2B 
bfcbb249ff4de14f00d84aadd05572148cfddfc040ad629d44c17823019d158e3082c6c01c134cfea7137c3319393aea91449518d38ef63084f65b7f8fb9ca41
 SHA512 
46fbd44aa4e58d091e1ca9075baa26fded70a20ba7747b38f4729ec75f710af4af087cda41ce4cf799cda5b989a15f8f931998230db1bc940df52dadedc9972f
+DIST thunderbird-115.3.2-pl.xpi 716521 BLAKE2B 
fffe94bd18b0892b5e3ea16cef0dfe983b1f54bd30d21f841360d419d4e35838bae3cc6dcc29fae9f09ae4294041f92862e9d30addd3791eeb7f993344f07c4a
 SHA512 
e73307ecc0892babdde468b252eaa86d12d0f6fdf7d464f436e95a5d9c36f3f22eb8ca5a5b3c18054f4474ac5fc370c38605082141d21ddf0c190dfd963d7c2b
+DIST thunderbird-115.3.2-pt-BR.xpi 707196 BLAKE2B 
6cc0f1bc610b9fa842b1037760971fcd673e5818264cd4c64b8b41c326de53070e0d4d56c4c993c8b61bd443a5ee5b42342dc762d41af8f57e3aa2aa9d81b270
 SHA512 
e7cb99bd503bed1865d77ec9a02751f745282f7b7eb6dc116a000e556b5d2a06593ee211103f021a0326ee8ccd17a38c2dc3974c1d3b35ea1b01c9f43bf95e77
+DIST thunderbird-115.3.2-pt-PT.xpi 688988 BLAKE2B 
8e3e276545a8ca58c9e507818f54ec43cf38cc66cdd15ca4f28f4efd21b66ff9b9cd7e8b6782f1f35bdf6b196302715bb7181d911d6dc398f23d1c12b3807358
 SHA512 
1e23350f260965fdf631b9b80808ed95440b62b30fa4ea2b9497c31837c27cbc71105c0ed16b24b63854eb7fdf1c0f00eee451bbf5c311e431f43d994ccab38c
+DIST thunderbird-115.3.2-rm.xpi 703912 BLAKE2B 
c9848fe0a4b3da30009834e8baffdea8c960c1c10704724e5e884128ff203744f44adbfa1a89fbb32b13fcb0d048a3179eb4babeff75f7a7b22f824dc2d3380c
 SHA512 
108fe59a4349e0a9e50db068fa77842dd57143b263b6979b3a5aca8c89393937af75906d1116207d4693b271d211204ba90b4ca817552433f7dce7b5c45683f9
+DIST thunderbird-115.3.2-ro.xpi 651298 BLAKE2B 
576afd92a122f6a7f700689adfa275460fe3c8aa792ac9563825ffeea23d4e5e308f1c47193b12abea454e5a4c40be8c48351f69172a842f77a5c9925db8b491
 SHA512 
db90d01f0c666596c3aba2d6deba5ad78225a3a8ba9a8b2d5c2db7197e8c6df4bec31283ec7b5154aab10fbfe5bdb7128ea0cc8bad941f7da63c62b9da279099
+DIST thunderbird-115.3.2-ru.xpi 820781 BLAKE2B 
2370bc3f95394cc722227217d6f167decf37db24886240cfcb4d405c333f1e75c4ec4c1dfba441ae8442c8654aeba4d130de56b5cb64b0a0241389faefcf77a8
 SHA512 
7855c576620b2f717f7d1fd84f855398a249e8227edd979a65610810cd61dbcf984305913406dda5ae3489745a4a9aa4192bfcdc6c63a983cb8ca674d63ccb24
+DIST thunderbird-115.3.2-sk.xpi 736589 BLAKE2B 
fcfa3f438062a95e79b906471d9be1989802ff38d5ced9b61b912812ae0622cbf9ee3615381de724ec848f0836286034fdfed9c29aff38ef2f89783293026c29
 SHA512 
cef5ddc78508f47f79432d1b45e3580e56adfbf9bbb49f2944d869e52536dc54fc75685d77ac7020db400cd2cfa966fdc44027b133ea3a708de400468310200d
+DIST thunderbird-115.3.2-sl.xpi 701672 BLAKE2B 
155d632f163f456d7f2bc32139e8a8139a395075fe9a7aeaa01324b104340a9aef7d66a8d8ac71847483af62820beaac6e9e22b2276f04ccddd40ba2343ea701
 SHA512 
4dc0c67e379a6f620005a7cc51ea904c007b0429a002391b11a065414830fdb06309eb60914b17c93e06d7cd201fbe6617a5b74c7c229850255001905bd25b81
+DIST thunderbird-115.3.2-sq.xpi 717452 BLAKE2B 
27253da24ac37c8ca1fd588d12c1fd21927de44c5b49007cd3ad977eba72cdf658b857cf3884e9e4c7553a5f08b85bbc6c459d0eef699a9925462c61e7e06a14
 SHA512 
d85d41f44aa7494f111ffbaeaa220de81c39690172af2ce421bb19ed9cfaaec65530f349cce859ee3aa24b81a293e6110b91fd7820f06ec6dceb0a827cb6e0b3
+DIST thunderbird-115.3.2-sr.xpi 740173 BLAKE2B 
6fb67404313ac56302e926bd4537202d3c9362fb3895f4a24ac85f1e23aa5f554919d7dcc61b8e1cba870fee7f36a87dc2920f9e42b052eb038998607be09fe1
 SHA512 
51a5910c1638171734aa0c5270e9c294ac38973cae021b2a4abfe1b133de08e00b5ba257c29d786f183c69bf0c12e5cbcb94491f48b3db8b89d7df409be8afb8
+DIST thunderbird-115.3.2-sv-SE.xpi 702287 BLAKE2B 
0c1b5ada78d719cf44fdadd1a393112ed5642a9b1d758f26899f8fce7b4b44e1590bcb31314a83902d510297b097866777cadd4f87ad99a00ac065aa852ac671
 SHA512 
27f1de38f31e917907435af8c93f436486b37767dc4c4c52f8a7fe306be86df8dae512273f044f3e9ac1b35ddc90174c74f4c0e04e06382bc529654735387794
+DIST thunderbird-115.3.2-th.xpi 761857 BLAKE2B 
4694ea97253ddc13765e94425772f4ca671463e27d019feb81879de6027defde03bb3445b4a91bb26f05e1520ba1317bed1ee80d2832460d2e224289f188b838
 SHA512 
2b72ff288a186267dd4c896e185215822aad89c45e7de3f4de134ab6959f24212271a936d17d8cb45b819477c82d3c35305c0fea602807e6bd8070fbfdfdb618
+DIST thunderbird-115.3.2-tr.xpi 714660 BLAKE2B 
f85407420d7953501291f89e0efb98e75b029181dfadc520443557173b6e28ce468e3219b421277cb739872ecb96f13d797dedfd6f1e0ead5887aa89f4a46af6
 SHA512 
6ffa2f2f0fb451565f2ed9ce32b0fbb888ec05ef0e34fdce4c3c2b40b2429af4a596bd4053f6b20be7741012927790f61a4e49f86af2d69488674abcb92c580a
+DIST thunderbird-115.3.2-uk.xpi 813301 BLAKE2B 
ce6aaf83738d3038804e8bf9a246df994829dceb4d93865cad224bf66d75c429b415e067e634866c7169dc28aa5c372b1420c613d5125f8821f279ff0e0f6055
 SHA512 
1f82e940971452f97a0f10b4b4fdad4d98366dad1cecd63abc7971df5737f63cb2a5dd2b40db039268466996d6d44ae4f2e0b28a56bed90042e6ff230f18b093
+DIST thunderbird-115.3.2-uz.xpi 579989 BLAKE2B 
1c8090c67116df5eae650357f5add0e1098b255d54420854ce84f7dc5db93c4c658476e98e9635a932cd7da20dc191e6fca1ce64bdb60b34ff42e3c1719ebdb1
 SHA512 
7e1e74951890db1d57a37b6ef597d753b731bf4e5745f24368d0aaebdd74a283db840cf421b5d2fb352c971178916c3d79680b201f0d7e7defb17ca28fb50578
+DIST thunderbird-115.3.2-vi.xpi 742632 BLAKE2B 
b96d81e14bb8ab75f92fd0c44e84811db39b90d32e8f723370454194cafd416172d99c4fbf8bf9a268d3c6dad65940560b057e1d414767dfe0a2c4e22d01a831
 SHA512 
7f23eac3254c6b037d6a7430afebc12a0985581a74989d5265f5e19996f19d4834a1551221964004b5207dc3a4feb55b96f351bb9924e20c08d8328ef8dae0b4
+DIST thunderbird-115.3.2-zh-CN.xpi 740611 BLAKE2B 
1a84b639a2873efb16db470101cb817ee2f881373369c2d88a3681fe0a618f6c5d80b3e6566379412bcccefa897f6e2a8f2b53f3ff89efaddfe35f10a8a185a4
 SHA512 
b4a078bf3dfc2bf862cded64adca39cd664e6942dcabb575d7f8ff369049aba513e45253c8a6749d4538ac42ec5fb67eefcc1f95c8e8548f6f2452f64b4c7577
+DIST thunderbird-115.3.2-zh-TW.xpi 743527 BLAKE2B 
1b56bec877791713d00d2a285c8bdcdef572b6f6da1c21abdfbebbf80bb04994cb056a136081bf5c1f3275b7f60cfa0da2cd4ce5f5808dd1c836586b6b45af9b
 SHA512 
6f4df2f3fd9ff7dc543432c4b8929c358c0e2b9bc5bd22bd7093f52315b9af5655a5fb030e87dbf642a0f5dd63ebbbba06772b41ace9ed8ba566c394149e3f0c
+DIST thunderbird-115.3.2.source.tar.xz 533609600 BLAKE2B 
94b149707dcf792fc17ac206a38f5c1cdde48c3813f5a0cb200d1033301b28ba852133ff6f381eb179cb918146e80a89bf0813c06db9ad449945d09f93f70607
 SHA512 
e94bdb940327296754324d8fcb055813247a79d377399b84184e0ff80123240d923aa3745c3076d37f06296c8cc49373db2d8e8a6ac4edeaf63cd56ca4652e35

diff --git a/mail-client/thunderbird/thunderbird-115.3.2.ebuild 
b/mail-client/thunderbird/thunderbird-115.3.2.ebuild
new file mode 100644
index 000000000000..be82d10736f6
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-115.3.2.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-06.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