commit:     403e7218f9f56efa635c16fdce10eabe54421818
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 24 07:56:11 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Sep 24 07:56:11 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=403e7218

mail-client/thunderbird: add 143.0.1

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

 mail-client/thunderbird/Manifest                   |   65 ++
 mail-client/thunderbird/thunderbird-143.0.1.ebuild | 1154 ++++++++++++++++++++
 2 files changed, 1219 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 3497a4f54b7f..47d30813f857 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -654,4 +654,69 @@ DIST thunderbird-143.0-uz.xpi 355677 BLAKE2B 
a7ba54e1c716e2eaac2ad5edb5d43a6098a
 DIST thunderbird-143.0-vi.xpi 521328 BLAKE2B 
4102d4e26e086584b5ccead8477ec045e2a091fadc2b91dc909b32bc66db421a20b57dc3659863774ca0bb9160bcb9cb34ff4d9285d8a17e6b441e92db253b29
 SHA512 
410468f82462e32cc2e453fc3d8fc9bfaef23ce742f0cdd5374aa43e2a94963fbeea6ae18eea4205b5ec9fe5b0c38d2cd176f2588a5643456fa492da6036dce2
 DIST thunderbird-143.0-zh-CN.xpi 510221 BLAKE2B 
268e1bf595cac1d0bfa4d2b3ba03dab24b44eaac14d7dcf8c7929459b45ad2b1455723ffdccb7ea19a7671a5d0b8d1096e72e84c4953f359896512a8d1afcb61
 SHA512 
30a026ca694a316c1fae886e0f504f4b9c9ef83c675c5a3b1d42e9d8ab22182d387899e193cc155343e00f6cdc463485c65a928442b6f0fce55198ea94784288
 DIST thunderbird-143.0-zh-TW.xpi 513781 BLAKE2B 
aba1f3d6d2c67465a850f615a910c39d881aa094e04fad896b65ea69e5179d5842844dbfe1cb087a50c83a2772bcf06992043248d68b00826dc8d389cab51f88
 SHA512 
f5ba6c06cdf28fe0e881d6d80195774cc4c13099ddb6f4f2063d571fcd9671f32d831911585f0c4fd48065b70acba9b7f0ba5f1754482afa5ee0b1a9fdcc57aa
+DIST thunderbird-143.0.1-af.xpi 316517 BLAKE2B 
10bd73a7df193b2e22003ea0795c6c1892a3d0d0cf38d90bf990ba338680bc051df2a8685579bf35ef40168944516af226c7d63f3ebe3e9376a4bfdeaf15a65d
 SHA512 
75d9ec847977fd5afe47b6c1c83e4c820139c1d8861758a76ba4f6487c6e87d93276b7e41542dd82ad0cbf0a5cd9675ab73b76629593ac7b332694d5092ab3bb
+DIST thunderbird-143.0.1-ar.xpi 436468 BLAKE2B 
c92ed07af0a8a3e72fdd877212cfd63af8e1b2aeb7c1a1298ba540c62dcdd629b002642cb0f41d0c41b7354de16c5a7e5693c11a32e60509dcef9fba7fb309cc
 SHA512 
92f369ffb1f7101dc7bbd2b248059dc77fd1968166e08fe617e88ba4810dc4160ba6ad3de28a07f09cbc919002de895ec5985c3622d7439cd9ac3b28261c5270
+DIST thunderbird-143.0.1-ast.xpi 340775 BLAKE2B 
75faafb06e36b6f9c8782cb4469d8b60ba152a526d8b430c04e161f6b6a5a997af4489db1af6b6dde78eb22dd00c32977ef5398cb48adb44f14d694adc5d23ab
 SHA512 
2825d66a736680bb1107d02c7a98be8ac8f79c038b010ef8d9be8ed34a0646ca1d68af3783e1c31d1c6d8ee3e0de50dc00606e507fedcf7488594decbada4809
+DIST thunderbird-143.0.1-be.xpi 522890 BLAKE2B 
afbe3ef4ef56108faea6b6ec78186e4c45d4fc7ba545a63af0183f9cf7b08d9c1a52d41684be3cc43e0682133fc036d5556c30af4a6ba572ea8e8c66ec292a42
 SHA512 
b5b79ac4e838421889ce6c83f570f5a72303343414dc90d8d7e7bd3df00a3f1e8b4fd70750fb8bf02228e81b4cc5a43fc5efae3488097b628dddd7aff8463eae
+DIST thunderbird-143.0.1-bg.xpi 540489 BLAKE2B 
e61123a34f4bcc65acbadc529a92c46d041aa3b8af1ef0c19d6a7c58cda3c951843476c966a3df950bdbb65dc06b7565782d1dba657f2f7d80136fbaef495300
 SHA512 
01597faf551edf8b955d95cebe0af3cfb894c5736535c5cbdfb98c662a10885bd6592fd1c77a008130c4121a5c6f14d6df4014c43fdcdb7a80fd066e0b088880
+DIST thunderbird-143.0.1-br.xpi 403083 BLAKE2B 
5ff9d24ed0f58e0baafc80d8946966d09bff5ec115d254a7c1bf23ca19d0c7990886758bc2c77476b5012cb76dcac0b23f8cc87ad9bfe93c17f110df711c918e
 SHA512 
22b3f2421e53c9da67854f38320635f74b849787a4d939513bcc50e79ca33336fab81df5007520ec0f2e0c4b50fdd38bf5713e39e1083813f076ccce65ada5c5
+DIST thunderbird-143.0.1-ca.xpi 440887 BLAKE2B 
2dd515a35868048f1fd712db13d409a119a425deb4702402a87217325bfb76ee7009b13f74d764f590a256a5a1826a187eb704c66f6f09403b6f855819a50532
 SHA512 
21a54d61846338badd2cad605246a3b426dab9330059231899eaf3411364f620a4f5ba110a5397765400ba444cb35a87b429de380db83e8a701f15002ef9b374
+DIST thunderbird-143.0.1-cak.xpi 418353 BLAKE2B 
e01183bf303b5c0661f04b2295032016ef345eda324d124c2cf22ec1a74134e55dc09f51dfbbeec49cd55506554715952c3e93202caa00cfe2a488b849ef26c2
 SHA512 
7db356304d8cf3a6ab6d8cdb3cfdbcf4bd56dc4bb16e1c2ec76a2e067e326195abe85ff6e98ad6b46eb627312d3abe6e09fb05a78a1c54b2276ef47dc4877f9d
+DIST thunderbird-143.0.1-cs.xpi 522281 BLAKE2B 
16b9fc42c5f5310cea78787a02e8d167687fded15b6affdb2f5a73797abd6d123bb8b84bb5a608855ea1c03ab793bce8ba85f3fdf82aefb0f0cf561384b2631e
 SHA512 
a037270b64c3d7c6bce4470f7823449ab64ffa21a69e52be2801d8f1a688363d16bc1e8a111d3d0b7eab3e78c2e2a2635459f3e877f2b4d080903e2fd8d82536
+DIST thunderbird-143.0.1-cy.xpi 490221 BLAKE2B 
08bde664f694ce2be4d15394660deab20a1a1c968e81638c77e7bf20bc59da2ac9a659e38573998375cff25001bbd79e3c540a5a6221fbf80aeb20171468162f
 SHA512 
ec93f5e29648ddad527acedd69dc8a949ff3eaad4b6feae4243a2f6dbaa47f6a86ee1729fba31dbecf354713ca18d4a0a341d72623fd1cef5b0d45eaeb718f8f
+DIST thunderbird-143.0.1-da.xpi 478865 BLAKE2B 
7975eb74adb091b8c72fa8e83375421d56ab52f54a1712e4005412eb293091a2ca1cdcd8d7560ac0a33f7ae745cf75220b1ee24f8e3bd03bbb1482ea0964bf84
 SHA512 
7c393e4fe0dcf8211c1f50b3246073d8a0b4df02256ac003cbde3d0356fe66e81ccae2d0f510c662b75a4dbbef03e8aecf21985d9c3d75c91339024703e52bfc
+DIST thunderbird-143.0.1-de.xpi 507587 BLAKE2B 
2dc0da941d3f56e9b46896631c95daa0830717a6fc0bf930d99ba5dc872e842e9f6fe68cf7ab23d57a6f657656fbdba64642d741c4eed138b5860d755ddfa068
 SHA512 
5502e859fbdf0bacad111576dda80f764f4d00d1271674953f57cd037efa0ce37ac996640ecfaedcf13e5364fc4d0dff60354b07aff156fa6eff3818dce90acc
+DIST thunderbird-143.0.1-dsb.xpi 520440 BLAKE2B 
52945e4c138bbf70c9c52d8b57cd690e8ab70b2cc0afa2f3a59031b4a179fd5b94ca25c90fefccd1e71c8c725a4ea4e9cd1961fbd3ce197601d1642dd79be856
 SHA512 
cf3f23369458843628500a6d64db8d2096c3f4882960b3ec58d6e8f86cd36e5fe603760ed3ad3c2777e0c2a5a58dd7e5b0318b8f138db42317c812fb63948afe
+DIST thunderbird-143.0.1-el.xpi 611770 BLAKE2B 
1777152c5b1ed6a050415efbd198615bcb280d343fb4dd8b524f37ca098700920303372e123561d4249ad687e6f0a9f60b4009982674222edc6190f28709a127
 SHA512 
dde028846b9280118666cb4aefb7e26af9ff8eee4a4f4414583ac269b9ad239d5bcd960a1dbf1d59a8612853c85de0e98781c13df6aba21d2ab86a245f7712fc
+DIST thunderbird-143.0.1-en-CA.xpi 454216 BLAKE2B 
36edb511a0a724b6c2dab775a75ecede5f3f3dd1dbeee9e9e704e1c4ebd6e277fc7166d311d6c07ea696437ae2f09dcdd23b0c9be331738a920e4ade2558ff41
 SHA512 
3e44dce83bab347e5dd38a6a435cbc029b59636aa5830bbf018401a2d00df1d42bda14b9063ba491aac5737e56545c04b60a20c0fac337e5500701743a9c41dc
+DIST thunderbird-143.0.1-en-GB.xpi 454342 BLAKE2B 
4904e60103a0b493d99b099e17d3d6a4bf9666e4a439446f037ec8973a0597d0724cd60b79c2966bbf41a5873e003798128cc691c86860295e8d71862fdf580b
 SHA512 
7fa0fa8a1786d00557d34b805fad5be7ba352ca6bbee6477634da3398024c3558332ebf319415bcdda8140c30ecb923078fd68025218e2076388dbedb19f6ede
+DIST thunderbird-143.0.1-es-AR.xpi 497816 BLAKE2B 
bb84b124671d20b886f684dedae0677dc57533076fbff568bf8d39ba89a5f05f3f99e8b66d3a67cc8b7ebf45de2500106c79f8f924fb6f5d051d0d95cd548dbb
 SHA512 
a093c6eab548ad4da378ed52a218c16d9796c1384f94effafc5706aada29fb3e3dc8f7364a5301d054792847fdd424ea0f10403f4a11ee301f70b523819d16c8
+DIST thunderbird-143.0.1-es-ES.xpi 499026 BLAKE2B 
a25cd1eaa56a2015f13a3eb0495b1e4d50ed6a6ef4d89ae4eec480217b9b1d5c0d116717bf56ea911d0d62b5de7356f40f9611d4e59be07bb7fbbf8af9390848
 SHA512 
c16c3e4c33ca74e1226569417b598607c5c00073347231a6f85976ff142b2a1c8d48478125536438e1b804d23153201a89cb07bdb05754c10b0695eee59b002f
+DIST thunderbird-143.0.1-es-MX.xpi 488593 BLAKE2B 
df71f915c7672cc55aefd3d794e533da6d050ca671eac2ffd565d8c7242fb9689889a68bb7fe828151aec44659778806d5ac9184ba35a870f3f8bd5fc996b875
 SHA512 
7c367d0655d444a7ddf920933bce9aef2a6cc59226a35e607c03ef0297ec36256f68d08d5fd97923b99771ec0ab66d2116352547e44572081775038694e50442
+DIST thunderbird-143.0.1-et.xpi 443861 BLAKE2B 
94811adc0d4d44cda84419d1618ed77ee637b5fe9bb4b1aecc5913e016e6fed1bbdc97e1bc9707bbdb9a6db825d3cb0c8f0b10a77a8e37f1e98d1f94850df959
 SHA512 
f6517a04648a9985804f463d52aa8bc85fc123514c3b70535a7f48c1fffacc9465cee3a8179b85bb1009944f644e6700453b645a84c03e220ce59afdb8d13540
+DIST thunderbird-143.0.1-eu.xpi 475655 BLAKE2B 
371931024c6d872ebaab8553c4808210d89cccdb4c3304bb9b51e3e100c93349e58bcf833ac729aa7c5db6e8b5627a5e286a4c5ca28b7d9305e405db27ef6348
 SHA512 
95342164a3db09d281f6dcd3abf442a024194f1ab191d54e9f49695847159c92cfd0a2a6d1e3f9bda6134440ca1c90ee5971c0a5b33e9d6c5294837d5e79e73c
+DIST thunderbird-143.0.1-fi.xpi 477458 BLAKE2B 
e3e80ce7264b104acbd91ef91af7d2d0befe27f6ab88fcfebbfbb05c98856ead594bb86d4bcb5a93b64002c1dcc25e437c1e229f129ea00a8a8482a0deb0fd85
 SHA512 
98d2a2582e4cf4403c9664bd9bed87be11c0ed5e9162c6559363a84737bb1855a44fa1b76db121d1408de8698d9fa71e1952b4f56123473fce56252109612e8a
+DIST thunderbird-143.0.1-fr.xpi 510826 BLAKE2B 
389a8b893ec1bdf412efba7895a958f22fc368c7767a285fc0cf72f2af3cf966855639709925596958609c260af4b7ec01e12295889ddf138daeb0bc24ab87a6
 SHA512 
e23fbf0fe86b3daf341247c3a5b245c697f61a2b8f26d11d6e3d92b6684167eff673d5bc9d2e4324237c8725be6da230eddd9fa5c630c80604f68cc015c30f61
+DIST thunderbird-143.0.1-fy-NL.xpi 493036 BLAKE2B 
97f04eec02a9d3a0558b1fb29d763291542d99fe7f4df16d58ba7fc6d418f51405d6695acea46474aa6820217bcfcc966e00b1f1585541745c5867818460f63c
 SHA512 
4f9641222296d13e2ddb24d56c958b2036fbe67a8aa5aff794d5fe914444a205851c0bd8fbe28d1daccdb9d1a36991b339a9df0c3ffeee671ce70a8ba175bcc0
+DIST thunderbird-143.0.1-ga-IE.xpi 377107 BLAKE2B 
9a2069f5ae7c26eb0e7c7a67baf16c1d194030b4c197d0a3e86e9675b8857b7e1858049b2ec5ea22b05cf80e861af854c9893ad85bf6b79e31f89cecc3e32823
 SHA512 
ec932d065954cd2b40225292a6cf69283d13798e7b8410f375cd816eccc6172452e9d6dc27064a43282f37e47aeb529b8bcd2e3423d7593a24eb3943c69556c3
+DIST thunderbird-143.0.1-gd.xpi 462253 BLAKE2B 
0143b7083ad756058a034a48cbd43c0f2e64dc5180725d50d3035f5399c7d138bdbf59785260f0079a5a3644e2938c9b88764d4aa7e2b7d7f605726393237af0
 SHA512 
106b126e0189e7bc1511944dcd6bff3b1ae735116fcd6e694437fe7a721c99c3ca35bd886b7ebe64efbf09bd7ca526710dad7cd13b7f5bd01211fefca4a8e83f
+DIST thunderbird-143.0.1-gl.xpi 491176 BLAKE2B 
64d79c713798742e21445ec3051189080f413367c4a88bca235b7348e4d03a87737bdc3fa514bbb95e77cec1613df296c43fd200a5939acc0be59de24c5e26a8
 SHA512 
b476f62110852f35ebf0c8bdb202712704cfbb8a716a6f703327b9e9ef665251751e35b091c3471be1eebd8a9a766e4738b60d6567921a8640c568d365e89037
+DIST thunderbird-143.0.1-he.xpi 442720 BLAKE2B 
16624b3ab7794c7dc700278b5b2816394837a029e2dcdd2604dde9e7e59ab6fd1ae6ebf3083d470caf1c040be30642b6599a2de5387796b3af79f0a8bf37f228
 SHA512 
37407645a3d71f43fc6443537f697dafbde49b7c97fc3e82dbf78b0c19cb3c504054b114486ae514269cfc0d4fbe646dd767682b3bb75de6f7e75b1ba011e8e6
+DIST thunderbird-143.0.1-hr.xpi 470097 BLAKE2B 
fa751fcb6b413d49a417518787a20d19f97ecf9106d9814436c6753b2ba1e825067739993510c9d1ab15168f4c9f2660fd4ddc05790e741414beae8087778d88
 SHA512 
64366e68b6a630c02f3b306bad8401dcd2f2d76b6aefda1b6ed5c76628ab739c8d5c51a830d6ee5c2e8477f6743942d2dc63433d7bde676a91ca6b06c5db45e3
+DIST thunderbird-143.0.1-hsb.xpi 517493 BLAKE2B 
eb01efd03ddf005e217cf87d074cbd05d724dbf7f5cc7791dc86de3d1a52226eec37e95468260f9852746840eefeb2c34c64231de35eb0af23570499cf2bc58b
 SHA512 
536b28d94dfb1442f5e9fce67d74b9d2e26a25a3eba8248f5ee21c1c1533da95db8394c34df1440967faf8ad4d88bc9c65a4790a8a997379ce443175cc8017ff
+DIST thunderbird-143.0.1-hu.xpi 519876 BLAKE2B 
2e84157500e7e5213c6c4e86b7d5a59b2b8c4a855d2bf444aa058002a0df614782abee2db0dca2bd2308f4674ef9b84be9241ba491f423c766e934151e13fda5
 SHA512 
8aee636f22d6294242c0f1ae4809faafc88bbac3f85213b9b61e67ef57a3fc4f16593fe2fa5bc35eefab53dd5a8996a12e99d6136d44e9a387163ac1dc4b9e9d
+DIST thunderbird-143.0.1-id.xpi 466274 BLAKE2B 
e88b86399cc1b8960f4d2a2192729f6ad27f357bb3759dbea3be7b57958e337fce87df5ab6529e411b280e56f0d81cf3398a54e6fd23c663776e8ef2f38fac20
 SHA512 
469afbd700248e812cc27f31cb2468588ac3823bb7550132f1ca07040ce21abc1ae6f3b41bde3dbcb448b5a407871e242e7c2a9a571ecf059a49f21412984c25
+DIST thunderbird-143.0.1-is.xpi 484307 BLAKE2B 
ab180682e99dc366bac85c77e45009df1616b92b552b92425c6f49cb49d5d42c2a7cd9f4be5f8a3d2ae803383a8f2980caa483ac3ee64c7c2b6a1220ae6ea029
 SHA512 
5ba1b97f9117b600344633514fb8d8216bfebee20341eee1a39eba3eaeefac494b2f58cdb61de1fdac3b841303431d5481084a57b8b4bcb3f4d99fe10d33a697
+DIST thunderbird-143.0.1-it.xpi 490840 BLAKE2B 
1b0c574f4af82ec6bf26309c9dc7de4117c0fa8d5e75c8ffd801cc9be828df445c20afb89852e55c98ada747f1b836114e08c66bf06affa76e6ed26b6cd028dd
 SHA512 
53552245cd545fbdde66f97a7c4f4cf11fbee409ecc728883e7d434f1d4c2996959a7f698d39ddc86e640dccfbabffe0353fea30485e31ddd58b2356eea809b4
+DIST thunderbird-143.0.1-ja.xpi 541721 BLAKE2B 
7472c725be810491012e5cb0cc85618535e601a9cb218431654d8d0c91236c4f57c33353fd7002f30e35229e5136254fff5d31f9e5e4fce27f614879054f9e7f
 SHA512 
06ce9486bc0d107a9df1a01e7f4144782df6e07eb1d2bfaabc60d50b86fb50a3692a9012351e7e068282363ef7926e821935a58ff4c6baf6bce9f78b35803bc1
+DIST thunderbird-143.0.1-ka.xpi 557712 BLAKE2B 
145ea91b6d4f4468cabb066525b9eeea37dd3bc9f8ee60696cefc69cc8a0b1ca206b90482ebb4cf16dd5f0d2a6b517f203877dfdea1e573d53ccf1a4979789bc
 SHA512 
783d890060146278fd4852342528af9fbd375fc87ce200ca6e2562576e0ca9e6cbd75574ed30b5251b4286aab9db2fe8bc885d8d4b7516572361a99ed89ca4ad
+DIST thunderbird-143.0.1-kab.xpi 470205 BLAKE2B 
94c67362ac7ad36c34a8bd232177e0af419bb344ee9d36ad0a77f2f2fc5612f2f4e2c9237e78768acb00a348db30a2c58442079502ed75680139d6693a10e1fc
 SHA512 
ae23b9dfe0030fab1e199d9ff23a42d139e339b60029bebc86b83e761bdaf77f3ba1d3270335b08a4e0edd39541a245184590fd0fc802fca61fe14815d784ffc
+DIST thunderbird-143.0.1-kk.xpi 575773 BLAKE2B 
9dc1446935a5609154e6b0c57c6c2c1ebe8c347276a1ebbec0d79a25506c353e1c7edbfc966a58bc393cc71ecec52c5f2bec799fb453c79215147f2f4cd498f8
 SHA512 
dde2e74d11a91ac949ce60ae71964532b792b62e4848b159bd97d7446dc2b9afdd701aedce42943627ade01e0da0feb47cc27e11176115324ad2e550aa24914d
+DIST thunderbird-143.0.1-ko.xpi 515826 BLAKE2B 
2e283fa9a4b62b3a4b42a9e867ceede041b5929ce3c93fcb502334bab44668fc7f758ee02803c2b28208a78649091bee78b17d0886cbee2c173347bc73c8a303
 SHA512 
938b55bddda084fd006f23f2e41b5916bf21c2d54d4427d953b5a561b16779cd226ea621aeaff7d237d7b39327d3fcdb8f83b6eb42b66b9fad231f3a9b319a1d
+DIST thunderbird-143.0.1-lt.xpi 453871 BLAKE2B 
b8cfb6bf7db0d520a8e60601e59fe83235faaa7cdebc4386ba81cf0766b06c4e0a625cf5dba947d3236b49b1b80df02b1ca43b1ecc976d2122dfe44719398933
 SHA512 
996e54717a011a07ea6542238ce74709ac2a469fef69d8d9aa78341dcae65850b3e196b38ab3c5187dbadd6f50f66832db10a07324cc6fd306c0c376350fc828
+DIST thunderbird-143.0.1-lv.xpi 392066 BLAKE2B 
7d2f76e6f8c5f36a4a762d2caed9073b410ff2cc805eb9e8315fb22f6ec03831b8a0f9f440d83b9cf4e0b45ed1cb6c8d4380bb6fc1d758e2131b045976d89728
 SHA512 
1a7340d87048567903a45ee027e1ca0673e620577be1cc46e7f42a0a6eaf936e2f7b1a0af83d5362fe94f477874c7f84923d935795de41a7f6d5daf6596fcc86
+DIST thunderbird-143.0.1-ms.xpi 352471 BLAKE2B 
a34ae1f859cd54197f1102b354f0679e8748537ad07c89c7d75c6f461c1f6fdfdeee73222a9d6655286cd503e0e2d9ba95157f004894889dbf373e1289f070c7
 SHA512 
d06e6567bc1c1e373578ca02eaf9c842cff13d2e55478bbcd2be09b7aa1871caa2e483a267647e64b9ae6d43cba80311c2616e83873c22dd7e9862b2c85eb0d9
+DIST thunderbird-143.0.1-nb-NO.xpi 478555 BLAKE2B 
06b01ab34255b43b20db0cf174b5b56c713b27546dccc9a0c022dfbd127943c2ad2e595d73fc9d805e8df2b3ab8876f63ea47b5c773ab6a0dd290e9edc79e938
 SHA512 
c90fef7383b19149e14ae85a08629f731d48b8e0275d8aab5a37400d8b5f61c931ec51ea1b500cdaa85f602ea1d04df5eaf569bb4fc78f8c860687bd1b38bd38
+DIST thunderbird-143.0.1-nl.xpi 484489 BLAKE2B 
0dcee5eac75a5621aee721711c71f2c95dd140d2ccb9d51d2796cb2db1438021279448be62dcec27c0a09f4dba65e62d5e21f0cc32f136a0972ad486841c8f59
 SHA512 
c87bb80bf27197e44802f22e5ab6a38b7e940e65f36c21febc19cf9b4bcf213bb8bae9e234cf43e8958965f34cc4cab01b7f6eaeb3e8180600c7742aef89225e
+DIST thunderbird-143.0.1-nn-NO.xpi 482389 BLAKE2B 
28fe8affd1283f529373111b680476806137710890952144a7f00c8dbb55ee91266531bef8949e4bada8637e919541a6e8402503afc03a6f5a465e51c3ffd36d
 SHA512 
f7e402d456c8662359a1ab404992b4d75ea1420068060ee81735945db70ced7db5be7c035ed5b9acbbedbc1eb87a96ed2cd6366c336e169d207e9e27c2a39ddd
+DIST thunderbird-143.0.1-pa-IN.xpi 435729 BLAKE2B 
26e7a38402b681825e7ba2ef4b09292ee7432640f92628bc636d58e0e94a05c20d900c2210db8d0328fcdfae8238b01430ad2f9932ccb80d2382cf55b6416860
 SHA512 
479e5c1bab8b1a1ec71bc3c3950303514ec3d86c4471955678106f5766a97ab61f9faa8104904650e1e2b1ed6d3c443486cf5e64823033301c3b8c73787d8319
+DIST thunderbird-143.0.1-pl.xpi 518135 BLAKE2B 
0d9d1c7c8a5f60f1992c1ced1c605fe9928d6e58c4905d88beb82ab3f1ae42812ad934bddca7e4be64f40e1a405b3d95f1f2b337b640f94d3d05b607b285d966
 SHA512 
dd223d23fe26d1e530e396415e033827c355a7e9069bf849c90217e27e284511683b6876068958b3f6d3c305459056e0a8064f36684e23f86b2f2757407d40a9
+DIST thunderbird-143.0.1-pt-BR.xpi 492601 BLAKE2B 
cc77e695ff89494e59220bcfecbd623b2ef92376833813b532c9b6e5252a926c2bee70f7b3fa05af5765d13b22ce927e0490c850515a24135cef60528ef79f8e
 SHA512 
7294ff0f53af017d79cf10279bdd164eca215324c3005712c3b6ba30f0011fb010d4cb75596fc297fa957057df8ca08267b1123304079b4a84693e5f8adbe1dc
+DIST thunderbird-143.0.1-pt-PT.xpi 486907 BLAKE2B 
f68b73a02c5548c3d118c95d51969565945f1f7d671e7ccba2944a851047fc4911da690f6c6bc0eb68a6e443575e8aba2dea7ad05e112b3cdb32b575a2e62787
 SHA512 
4b733b80e8cd881a7e6cf4107201ebc51ff661c0afaa3756ec92158dfb20b22e06e74b66aeda103b80fb46f7140b5cd640b2dfba66e853bc454b34d4001c8228
+DIST thunderbird-143.0.1-rm.xpi 487854 BLAKE2B 
1d52cfaa09b7125c3cb95a9f26e91f639bb064abb6df6940538f71029dc3b2d900bb1669c6fca5b75cd9a423f6a673873b415d2c75a1db72345356202224aee3
 SHA512 
7a9c4748ec88bcecb4b64f0d93106108ad9f75f2a2ae315f4cea446a13dedcf2607d88c8f9aeb1d028c78d8be68259ef9c09413ad692cd644f642fee1106710d
+DIST thunderbird-143.0.1-ro.xpi 460729 BLAKE2B 
603d09ea1a2be7560a9a9ca852418e8e82137866d389ccc3c5ab0ed8b31f6a998f8917dddd383e84719de3ab8625b60dc9505031ab00cff42d9e49f9db4e55c7
 SHA512 
9a5bb6538bb64585a0d56387401a0f442d096530ca73ee46f4e9e517939ec0532f6c4c95f98a6a5029991812676d2977cae5f629cfe02fdd081bf26a396dfa74
+DIST thunderbird-143.0.1-ru.xpi 596073 BLAKE2B 
7fa4d9c1dc8390f05b2e08f7cdfdb7356d0f7fb62e421d3cfff2f4ecb69bb6c6c5f405bb1af1741a393fc71da87de0b7f026ccd23ff01f92c9f99c64f890a29d
 SHA512 
c50d4f49b13b47b4ed4a107da4ccec1e5d73a2f2c664e52d8baccfcdfe13100628a997ca7a203d77c47d846794926311c5fd02871a505ab35c8361cc9eca74fc
+DIST thunderbird-143.0.1-sk.xpi 521964 BLAKE2B 
fc4b1de7608331fd823c126cf9c4f9d6cf2461b2efb3cbd67f32acca93c6bb07c8d13fc6fd484803a80b16e40d51a7bbf61e82b61841bcacd3f482330f4df861
 SHA512 
afee5d5cdb8ebe2b6b9a7cbe8b2cd28b3131079abc32b6453b5b9cb071374a96a226024ff5906ce5d40fab273120e5160c1af4b7db07ad414c0e971209c4a3d0
+DIST thunderbird-143.0.1-sl.xpi 488064 BLAKE2B 
0b21302bcbf1c0c440010dd4336e3330f0290e3149e519d53dc57a573ae9ece4a2422e2360963d986ddf6a44aff94d2f9efd79737914a8a527ff49e0ab922007
 SHA512 
6ba47cf706ac5de46eea4ff1c32f5d773801af709eead46d15a0915da3fb3cd7d55541ecdb4f31ba3d7d5ad641a6b51014134a7a9c0e90a369916b907bde1dda
+DIST thunderbird-143.0.1-sq.xpi 504270 BLAKE2B 
71feec657fe37b7e5940bca735711227a2fed2b41571f1955bda788f9d4356e4037b9dd3d97106ab46e0bf5540c9b30a7944e1b14352db93fc938febe49e0d8b
 SHA512 
8df585ed697eeba380ea7979311ab0bc0fd2951a64119a6a21c16c5349ec5a3c580450b178a0aa44f9e73df83a0401d0f0199e0732d487fe7059aa329be53e83
+DIST thunderbird-143.0.1-sr.xpi 496300 BLAKE2B 
80d306cf0a1e02e6adcf8e13de63a3f557b39f4c1330fc5b32be8aa7d59ed287de27ab8faaf4c8eb4b4e407cba734c744757bfba310d90cda79fab2e7208c560
 SHA512 
6eb0215f68a38991b5163883275d500349a04d357788fd0cf8b751b541f80971931dbbc01010886083f687b51ed99ea0e150a5dc39f8a52ecdf02667840b4d0c
+DIST thunderbird-143.0.1-sv-SE.xpi 486815 BLAKE2B 
847628f937fc3a8c6a9d5e9ce77312ae03b719cc4c10358de9824572797fa67f8cb6a32f4a3f20c317e278868433857e22d8f210974317bec46f374f0c0a12a0
 SHA512 
6956cc63d96615b01e87c69c045f2d95405938d14f4df75ff349d7a184ac4e4172c5087b5f0070ac2802d6ca52f2999599afac6decf7917692694a5eb8dd526b
+DIST thunderbird-143.0.1-th.xpi 569302 BLAKE2B 
e77288bb0bf4aebcdc49f449c45bd2d3abcff160bf76fe08d53ae4b07577a85b304ee006fe348448848edc787fa5de6092dc543561265b7149dc65958d09c60a
 SHA512 
aa3bfec2b017e00e1a714bdc357104b890cba2e5ee93c395eeafa2a81075178e35b5b399a1cff780139c5d5e18275047bebee20d113769ae58624fd686d82bf4
+DIST thunderbird-143.0.1-tr.xpi 498189 BLAKE2B 
2fc5a933c7c712b96dd28982bf059a6fbb8381fc49270e73266e798627f5d8213b985e7ec26316b9e6e0ef9092d7f01e7e3aa49cc0df60c5b723e6f323fd44a8
 SHA512 
74fad564eb81291abb1bafb559728015d820925d3613294294473eb0af7bab1999c8d66e70ec1cf6239b7ce1cbf02dc1adb0aa4511c4ed822574f42a30b022c2
+DIST thunderbird-143.0.1-uk.xpi 582799 BLAKE2B 
74cc8464976095bf44cafb7bc030c76a9641e9ed540e5ff98c1e2bb90b019d9ce7e69942545ade6b5b0c34b71a19ab98ce13edba4d35ad749618f0e072da616e
 SHA512 
dd89758c5c3857a5558eccddc9d36b17c217d86a80e3d542e2215e90de861347bc2ea20f641a02567fc70aca67b55c96c51156adcc93f91b329277a60ee6ce83
+DIST thunderbird-143.0.1-uz.xpi 355675 BLAKE2B 
7b13285b7dd6f37016234509e3f6ff4d8b180bb90e328b095acddf3d38adea60c82eb57bb8d341e752da1c7d2831d4eb8a8443ee3c27cfe983cea50735eb4c94
 SHA512 
b4f818370447b52ac4efe8cbbcbe030b4e9196db4d8570ce77c16ba239621e2731f5a2eb46e28601f13fd186e6f2748c31e0cd43fbe1008fcc230c4b4fab1eec
+DIST thunderbird-143.0.1-vi.xpi 521329 BLAKE2B 
25a70ebad1ed6d20b2d1b00a6450b988a0b005d8f2ae0b964d1534d5b411eaf943df042f0f3304c3516c03d2b8f7828829d05646290b36293e34e4baeca4e634
 SHA512 
ff26c1fd9bc399c8896e8ba79ea99b3a8244a2221f9c258c8d2e17465702d30233bc50343b1b495e80b41de3244f339358a06d5dea91857c8c95b537e9c657c8
+DIST thunderbird-143.0.1-zh-CN.xpi 510220 BLAKE2B 
46560cb1545a5704976eeaa7a9d1afae216242968943f93395038e615e8d987ea421742a3879fbcfc7926ee4fbbccff9b8492a8a5b1d1c4e1db0c46a6d755851
 SHA512 
5ec357530ae931941633d01fd7a37746db2b33c4df41c113d9fbd09b93ca27d4b609e31121b432bb7e974917b123fbdf4553de3a6f6fc0dc470f4dcbfabe71a4
+DIST thunderbird-143.0.1-zh-TW.xpi 513781 BLAKE2B 
be39437914f36e8fa7703af1faba25eb1ee9dbed354986d7743721054369571e70d6b14765e31989ab1271ac7b2c91a9093ccb93aad914929428c057285d0122
 SHA512 
d506919183b5c93c628ceb133b0d8ea5f1b08245a9bef6073471341e1d3df998d5904c63dbb78f06d5f2b5f41c72d96192da9629c99ace807d1071f0eac619e3
+DIST thunderbird-143.0.1.source.tar.xz 771223064 BLAKE2B 
70a6e2f1dd47f7db39ee97acaf62e5785d1ca86b874ba197cde97a11e186fecfd606754c7b001a008318e0880e0731ad53042e4ddd4cd9c58b5ea115322b62d1
 SHA512 
5f4fd5e4f5bc9fee9852d51b8e675f7c9c605660332c24aa0c90e5437301b468153c1788720bc80a53cfc1c3bf95a4bdb622a0533b8f11fb9853b290485c47c6
 DIST thunderbird-143.0.source.tar.xz 765829552 BLAKE2B 
3738d7d99715f94606f5f7a03841eb09be1fe203d52fb7a28c000ce767db0660cc7f05e4af393e3bc7316dadf97818742f07c60d05562176a36a7a8ecd9c16aa
 SHA512 
128fb1ed35561cceb847b09c881968b474c9fc2cf7bf027f20c2d5b03366116e058b471f98cad4606a720f65d99c60ed3b4301b9e57b5971001adb3e00a51cc5

diff --git a/mail-client/thunderbird/thunderbird-143.0.1.ebuild 
b/mail-client/thunderbird/thunderbird-143.0.1.ebuild
new file mode 100644
index 000000000000..73710c9ff40f
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-143.0.1.ebuild
@@ -0,0 +1,1154 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-143-patches-02t.tar.xz"
+
+LLVM_COMPAT=( 19 20 )
+
+PYTHON_COMPAT=( python3_{11..14} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+RUST_MIN_VER="1.82.0"
+RUST_NEEDS_LLVM=1
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+# Thunderbird will have separate release and esr channels, matching Firefox's 
rapid and esr.
+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 check-reqs desktop eapi9-ver flag-o-matic gnome2-utils linux-info 
llvm-r1 \
+       multiprocessing optfeature pax-utils python-any-r1 rust toolchain-funcs 
virtualx xdg
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/";
+
+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[@]}"
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+if [[ -n ${MOZ_ESR} ]] ; then
+       SLOT="0/esr"
+else
+       SLOT="0/stable"
+fi
+
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86"
+
+IUSE="+clang debug eme-free hardened hwaccel jack libproxy pgo pulseaudio 
sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent 
+system-libvpx"
+IUSE+=" system-pipewire system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )"
+
+TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird )
+       !system-librnp? ( dev-libs/jsoncpp )
+       system-librnp? ( >=dev-util/librnp-0.17.1 )"
+BDEPEND="${PYTHON_DEPS}
+       $(llvm_gen_dep '
+               llvm-core/clang:${LLVM_SLOT}
+               llvm-core/llvm:${LLVM_SLOT}
+               clang? (
+                       llvm-core/lld:${LLVM_SLOT}
+                       pgo? ( 
llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
+               )
+       ')
+       app-alternatives/awk
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.27.0
+       net-libs/nodejs
+       virtual/pkgconfig
+       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
+               )
+               !X? (
+                       gui-wm/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.115.1
+       >=dev-libs/nspr-4.35
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/freetype
+       media-libs/mesa
+       media-video/ffmpeg
+       sys-apps/dbus
+       sys-libs/zlib
+       virtual/freedesktop-icon-theme
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf:2
+       x11-libs/libdrm
+       x11-libs/pango
+       x11-libs/pixman
+       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-76.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-pipewire? ( media-video/pipewire:= )
+       system-png? ( >=media-libs/libpng-1.6.45:0=[apng] )
+       system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+       wayland? (
+               >=media-libs/libepoxy-1.5.10-r1
+               x11-libs/gtk+:3[wayland]
+       )
+       wifi? (
+               kernel_linux? (
+                       || (
+                               net-misc/networkmanager
+                               net-misc/connman[networkmanager]
+                       )
+               )
+       )
+       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/libXrandr
+               x11-libs/libxcb:=
+       )"
+RDEPEND="${COMMON_DEPEND}
+       jack? ( virtual/jack )"
+DEPEND="${COMMON_DEPEND}
+       X? (
+               x11-base/xorg-proto
+               x11-libs/libICE
+               x11-libs/libSM
+       )"
+
+llvm_check_deps() {
+       if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then
+               einfo "llvm-core/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 "llvm-core/lld:${LLVM_SLOT}" ; then
+                       einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot 
use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               fi
+       fi
+
+       if use pgo ; then
+               if ! has_version -b 
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+                       einfo 
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2
+                       einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               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}"
+}
+
+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'
+
+       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
+               # Ensure we have enough disk space to compile
+               if use pgo || use debug ; then
+                       CHECKREQS_DISK_BUILD="14300M"
+               elif tc-is-lto ; then
+                       CHECKREQS_DISK_BUILD="10600M"
+               else
+                       CHECKREQS_DISK_BUILD="7400M"
+               fi
+
+               check-reqs_pkg_pretend
+       fi
+}
+
+pkg_setup() {
+
+       # Get LTO from environment; export after this phase for use in 
src_configure (etc)
+       use_lto=no
+
+       if [[ ${MERGE_TYPE} != binary ]] ; then
+
+               if tc-is-lto; then
+                       use_lto=yes
+                       # LTO is handled via configure
+                       filter-lto
+               fi
+
+               if use pgo ; then
+                       if ! has userpriv ${FEATURES} ; then
+                               eerror "Building ${PN} with USE=pgo and 
FEATURES=-userpriv is not supported!"
+                       fi
+               fi
+
+               if [[ ${use_lto} = yes ]] ; then
+                       # -Werror=lto-type-mismatch -Werror=odr are going to 
fail with GCC,
+                       # bmo#1516758, bgo#942288
+                       filter-flags -Werror=lto-type-mismatch -Werror=odr
+               fi
+
+               if use pgo || use debug ; then
+                       CHECKREQS_DISK_BUILD="14300M"
+               elif [[ ${use_lto} == "yes" ]] ; then
+                       CHECKREQS_DISK_BUILD="10600M"
+               else
+                       CHECKREQS_DISK_BUILD="7400M"
+               fi
+
+               check-reqs_pkg_setup
+               llvm-r1_pkg_setup
+               rust_pkg_setup
+               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
+
+                       # Clear tons of conditions, since PGO is 
hardware-dependant.
+                       addpredict /dev
+               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
+
+       export use_lto
+}
+
+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} == "yes" ]]; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+       fi
+
+       # Workaround for bgo#915651 on musl
+       if use elibc_glibc ; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+       fi
+
+       # Enable jpeg-xl only in Firefox.
+       rm -v "${WORKDIR}"/firefox-patches/*bgo-928126-enable-jxl.patch || die
+
+       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)"
+
+       # Workaround for bgo#915651
+       if ! use elibc_glibc ; then
+               if use amd64 ; then
+                       export RUST_TARGET="x86_64-unknown-linux-musl"
+               elif use x86 ; then
+                       export RUST_TARGET="i686-unknown-linux-musl"
+               elif use arm64 ; then
+                       export RUST_TARGET="aarch64-unknown-linux-musl"
+               elif use loong; then
+                       # Only the LP64D ABI of LoongArch64 is actively 
supported among
+                       # the wider Linux ecosystem, so the assumption is safe.
+                       export RUST_TARGET="loongarch64-unknown-linux-musl"
+               elif use ppc64 ; then
+                       export RUST_TARGET="powerpc64le-unknown-linux-musl"
+               elif use riscv ; then
+                       # We can pretty safely rule out any 32-bit riscvs, but 
64-bit riscvs also have tons of
+                       # different ABIs available. 
riscv64gc-unknown-linux-musl seems to be the best working
+                       # guess right now though.
+                       elog "riscv detected, forcing a riscv64 target for now."
+                       export RUST_TARGET="riscv64gc-unknown-linux-musl"
+               else
+                       die "Unknown musl chost, please post a new bug with 
your rustc -vV along with emerge --info"
+               fi
+       fi
+
+       # Make LTO respect MAKEOPTS
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/build/moz.configure/lto-pgo.configure || die "Failed 
sedding multiprocessing.cpu_count"
+
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/third_party/chromium/build/toolchain/get_cpu_count.py || 
die "Failed sedding multiprocessing.cpu_count"
+
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed 
sedding multiprocessing.cpu_count"
+
+       # 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
+
+       # Clear checksums from cargo crates we've manually patched.
+       # moz_clear_vendor_checksums xyz
+
+       # 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"
+
+       # Configuration tests expect llvm-readelf output, bug 913130
+       READELF="llvm-readelf"
+
+       tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF 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-disk-remnant-avoidance \
+               --disable-geckodriver \
+               --disable-install-strip \
+               --disable-legacy-profile-creation \
+               --disable-parental-controls \
+               --disable-strip \
+               --disable-tests \
+               --disable-updater \
+               --disable-valgrind \
+               --disable-wmf \
+               --enable-dbus \
+               --enable-js-shell \
+               --enable-negotiateauth \
+               --enable-new-pass-manager \
+               --enable-official-branding \
+               --enable-packed-relative-relocs \
+               --enable-release \
+               --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-ffi \
+               --with-system-gbm \
+               --with-system-libdrm \
+               --with-system-nspr \
+               --with-system-nss \
+               --with-system-pixman \
+               --with-system-zlib \
+               --with-toolchain-prefix="${CHOST}-" \
+               --with-unsigned-addon-scopes=app,system
+
+       # Set update channel
+       local update_channel=release
+       [[ -n ${MOZ_ESR} ]] && update_channel=esr
+       mozconfig_add_options_ac '' --enable-update-channel=${update_channel}
+
+       # Whitelist to allow unkeyworded arches to build with 
"--disable-rust-simd" by default.
+       if use amd64 || use arm64 || use loong ; 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 loong || use ppc64 || use riscv; then
+               mozconfig_add_options_ac '' --disable-sandbox
+       else
+               mozconfig_add_options_ac '' --enable-sandbox
+       fi
+
+       # riscv-related options, bgo#947337, bgo#947338
+       if use riscv ; then
+               mozconfig_add_options_ac 'Disable JIT for RISC-V 64' 
--disable-jit
+               mozconfig_add_options_ac 'Disable webrtc for RISC-V' 
--disable-webrtc
+       fi
+
+       if [[ -s "${S}/api-google.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 
}') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+       else
+               einfo "Building without Google API key ..."
+       fi
+
+       if [[ -s "${S}/api-location.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 
}') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-location-service-api-keyfile="${S}/api-location.key"
+       else
+               einfo "Building without Location API key ..."
+       fi
+
+       if [[ -s "${S}/api-mozilla.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 
}') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+       else
+               einfo "Building without Mozilla API key ..."
+       fi
+
+       mozconfig_use_with system-av1
+       mozconfig_use_with system-harfbuzz
+       mozconfig_use_with system-harfbuzz system-graphite2
+       mozconfig_use_with system-icu
+       mozconfig_use_with system-jpeg
+       mozconfig_use_with system-libevent
+       mozconfig_use_with system-libvpx
+       mozconfig_use_with system-pipewire
+       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 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"
+
+               # Increase the FORTIFY_SOURCE value, #910071.
+               sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' 
"${S}"/build/moz.configure/toolchain.configure || die
+       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-x11-only
+       fi
+
+       if [[ ${use_lto} == "yes" ]] ; then
+               if use clang ; then
+                       # Upstream only supports lld or mold when using clang.
+                       if tc-ld-is-mold ; then
+                               # mold expects the -flto line from *FLAGS 
configuration, bgo#923119
+                               append-ldflags "-flto=thin"
+                               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
+
+       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
+
+       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
+
+       mozconfig_use_enable debug
+       if use debug ; then
+               mozconfig_add_options_ac '+debug' --disable-optimize
+               mozconfig_add_options_ac '+debug' --enable-jemalloc
+               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*'
+
+       # elf-hack
+       # Filter "-z,pack-relative-relocs" and let the build system handle it 
instead.
+       if use amd64 || use x86 ; then
+               filter-flags "-z,pack-relative-relocs"
+
+               if tc-ld-is-mold ; then
+                       # relr-elf-hack is currently broken with mold, 
bgo#916259
+                       mozconfig_add_options_ac 'disable elf-hack with mold 
linker' --disable-elf-hack
+               else
+                       mozconfig_add_options_ac 'relr elf-hack' 
--enable-elf-hack=relr
+               fi
+       elif use loong || use ppc64 || use riscv ; then
+               # '--disable-elf-hack' is not recognized on loong/ppc64/riscv,
+               # see bgo #917049, #930046
+               :;
+       else
+               mozconfig_add_options_ac 'disable elf-hack on non-supported 
arches' --disable-elf-hack
+       fi
+
+       if ! use elibc_glibc; then
+               mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+       fi
+
+       # System-av1 fix
+       use system-av1 && append-ldflags "-Wl,--undefined-version"
+
+       # 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
+
+       export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+
+       # Disable notification when build system has finished
+       export MOZ_NOSPAM=1
+
+       # Portage sets XARGS environment variable to "xargs -r" by default which
+       # breaks build system's check_prog() function which doesn't support 
arguments
+       mozconfig_add_options_ac 'Gentoo default' 
"XARGS=${EPREFIX}/usr/bin/xargs"
+
+       # Set build dir
+       mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
+
+       # Show flags we will use
+       einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+       einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
+       einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+       einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
+       einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+       # Handle EXTRA_CONF and show summary
+       local ac opt hash reason
+
+       # Apply EXTRA_ECONF entries to $MOZCONFIG
+       if [[ -n ${EXTRA_ECONF} ]] ; then
+               IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
+               for opt in "${ac[@]}"; do
+                       mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
+               done
+       fi
+
+       echo
+       echo "=========================================================="
+       echo "Building ${PF} with the following configuration"
+       grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
+               [[ -z ${hash} || ${hash} == \# ]] \
+                       || die "error reading mozconfig: ${ac} ${opt} ${hash} 
${reason}"
+               printf "    %-30s  %s\n" "${opt}" "${reason:-mozilla.org 
default}"
+       done
+       echo "=========================================================="
+       echo
+
+       ./mach configure || die
+}
+
+src_compile() {
+       local virtx_cmd=
+
+       if [[ ${use_lto} == "yes" ]] && tc-ld-is-mold ; 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 llvm-core/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-r1.js gentoo-prefs.js
+
+       local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+       # 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
+
+       # 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 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 exec_command="${PN}"
+       local icon="${PN}"
+       local use_wayland="false"
+
+       if [[ -n ${MOZ_ESR} ]] ; then
+               local desktop_filename="${PN}-esr.desktop"
+       else
+               local desktop_filename="${PN}.desktop"
+       fi
+
+       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:@DEFAULT_WAYLAND@:${use_wayland}:" \
+               "${ED}/usr/bin/${PN}" || die
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       if ver_replacing -lt 136.0 ; then
+               elog "In this version of Thunderbird, upstream introduced an 
in-app notification"
+               elog "system. Setting pref 'mail.inappnotifications.enabled' to 
false and nullifying"
+               elog "'mail.inappnotifications.url' may help you avoid these 
messages, if you don't"
+               elog "wish to receive them."
+       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