commit:     2a3212e0945a91b9816e167b9311b7010c4d26df
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 31 08:32:24 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat Aug 31 08:37:30 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a3212e0

mail-client/thunderbird: add 128.1.1

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

 mail-client/thunderbird/Manifest                   |   65 ++
 mail-client/thunderbird/thunderbird-128.1.1.ebuild | 1226 ++++++++++++++++++++
 2 files changed, 1291 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index f391c3b1e66b..9f2677b34c4c 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -130,3 +130,68 @@ DIST thunderbird-128.1.0-vi.xpi 784659 BLAKE2B 
a5452b16ff2c77537db81fc43b0696970
 DIST thunderbird-128.1.0-zh-CN.xpi 784195 BLAKE2B 
8431470bf86b0ae14013c46fcf52335a1f18240a8c27d52f2d3b2532d6cde2d75ebefc1b25f8dce4cde0ee95d6d92229c57b6dd82551fcc31f5a557f4e3c48ca
 SHA512 
fcc3247cd35392d05a2bb7c6274152a5724e8a96180c652c5978182f24ae19b63e99db9285687fdbaaf609bf03f2eb014891f218bdf6bc4721e4be86b6602af8
 DIST thunderbird-128.1.0-zh-TW.xpi 787478 BLAKE2B 
808f24ea4c0be1ea3d66b1cc10c887b201563a2a0e011529d4ae4b2da63ed3d43a7c27016a989fab67ac819ad685c6c4089988946afa821ab85850d9843be49e
 SHA512 
fac29119ac494ef69432a79328c507ab3e64a7e94efe504e5d9db24c01d6701616c90eaad2f446e1099f954a465f91eb408b82e7972bf7e99c4fba74d3612352
 DIST thunderbird-128.1.0esr.source.tar.xz 677372864 BLAKE2B 
43afab70674010ebc0839eacb513d031cb36b7c2dd7bdbe3d1096b9b16ab82e36c6d45b638e37b7fa6b6c88b1ab737110512ee17aa0df2f5c827d11ee47d2fcb
 SHA512 
cda64afee45ae20a627116f9475cc4421262db40a7efa09eeafcb6e96f8fad97e8c96e2ecf04466ac4bce99fcebe0c3ce9953fa3fc4f5a92ab6f60e122f58c9a
+DIST thunderbird-128.1.1-af.xpi 530026 BLAKE2B 
b10f1d8efc346b3dad5ef3a8d4c81f354d00a69751039637a3a2ff0cb5610f3c187d00b9f65f681a8f1480011ebc42645594cd0530c785acd0dbdb835190c0c8
 SHA512 
679d037b130be9f6463609d4268ef3b3b40c9efeb308f12fe3865870519c2a6805cb0c91b8914c7752d22fbfbfb9a7743ddcf1ff3613de8e732df61748fb6a7b
+DIST thunderbird-128.1.1-ar.xpi 679533 BLAKE2B 
6550a043ee29c7925373ce150365c975879d2ca7a12b0a65c8765e5384916afab849e942ea2be02a1e00b84bf93ff8112958d5d1bc1cc050bd31a217a0c09f36
 SHA512 
335cf6164d46f826335eb553c61cababbdea524207c8cfc60998136cd96406ce2f37c11221a6bf96b3c6fdbe38b29ab20aee451ba2fc3de373175dc1f7dcf2d8
+DIST thunderbird-128.1.1-ast.xpi 560728 BLAKE2B 
e6b74839085027038b0d0199b5f075dac34814c06b89aefcf8b39b48e6ba26864045e8d42773e282815003718341f207ebf240f263ab5fa759528ef4f1e90f7e
 SHA512 
e4bef426ebcac1e86ccbe9d4a1a3d69c5f367fe724ee403ae1c580517bd27802fdc0bf730bac73a8e31f5b47f345f69446cf6404b94665166672c85cafc3bcbc
+DIST thunderbird-128.1.1-be.xpi 753253 BLAKE2B 
58e6f0fd7768118bfbd24e5d79dc41d88e6363fd60e40bba5d5353fe02df05b98b121fa19be8ed87952697c9f0aaf432c214ff538fc51052cbabbe1074d68272
 SHA512 
25bc0c4f792615f73a4eb9fd54bbd03ae1a6fd2fb2469fa8e301e5857eb9a8604431dbb73c5ff62b1c6e8bb01033822d78f94d25d017d9607209b63e7b520619
+DIST thunderbird-128.1.1-bg.xpi 801173 BLAKE2B 
29a8a8391d8ddc19659fc680b28e352300354100c74186358aba3975c36acad3b9da9dd3d5b5be6e7689ee3122d527a84a26fc81b658360767cb0f40a2b9f60e
 SHA512 
5d908d068e312a9c5e0d7db124d704dfde20e89f3de62b5593cf822f2b3caec37ff37c2d6ff42c62aa50f9893bd708b4b3235ab33797f7418b62e58aa3ae9805
+DIST thunderbird-128.1.1-br.xpi 652151 BLAKE2B 
a6ec3043f58a35597f03b3b5c61037903903c4e9ddfca10d5c193a0bc02cbb730ddafbe28f892309d3f91e5d593ec01d8f041cdaaa900ae528e22bb358757986
 SHA512 
86a7b76a80834845eeee60114d69dd53606d3105ca6ad321988487dd7ddc506fdd18dbb033083fe0863c402180267b83c2225ab80afc82aca2ba4d479b990e11
+DIST thunderbird-128.1.1-ca.xpi 707977 BLAKE2B 
632577f29990968bbe422a1d348f581b68bd01c1fc8ddba3a73bc932a852e3cdd7b5217522dd8b3174eae630332f32b10f8d64229e1cfad1e5067e4726280bf1
 SHA512 
5674eec4fc407cab5b6ace537c21371d6fb107a7741823f043a261aa1295fef0fb6b69f93b2200b17a0a17f74b309a6004ca4d6a590920ae80b1a87bbc16b993
+DIST thunderbird-128.1.1-cak.xpi 671378 BLAKE2B 
4c53064aceed14507c6c27b89712715a6409865bd5d6671068e8ca0a41f4cffdc2c23df26cf8e52b4465ca970373d7e7bdba1c4bca104e8cc26aaa95ae62cfac
 SHA512 
418e0985174dae5d0de1e56aa730f4faf2dc21eebd6d38ad23d0abcac3e481b33e725f91bdc1c33643e119fbef986b8f0458b23f8c12d312140de6567ff0e2aa
+DIST thunderbird-128.1.1-cs.xpi 782657 BLAKE2B 
5a35a51a8676e73801c99237c863f2234783a52867e21571f92bb231904c7082c672cfeb92c76a4c3fbde9706f3f160532508ddee041a52bb9be50f37a0cefa2
 SHA512 
f72a1f61d868f0545176313f02700c9f4fb5bab44dc0677642cfdc695a73c2acecfdddadf7a61bdefdda5cc9b74f7800c5d11429cd29d68cbe3c2efe876727f9
+DIST thunderbird-128.1.1-cy.xpi 745992 BLAKE2B 
146eb29adecc9be1c980d1e74a5a9f398abc528c9a1bc785770fb4044d20aeb725ef8007556aa3a1b8b1bbb1afb66fbe3798f1281266a59cfa943e190f4888f9
 SHA512 
ee4f973fa8787a859471e38125100bdffab3b7dc35c46fa3a9b8abcbc0a5cc77101e80f3e6d576da2ac902dc46159994a5dd5fb49c5bef7d78262b1ecccca17a
+DIST thunderbird-128.1.1-da.xpi 732218 BLAKE2B 
6675dc577b16be547f7e2d0632309cf474db772be9716d6a28d8814c4a0af4501210911c8186ae96c0f02a0c674b14748f6962bd98da6e8487e8442daf305081
 SHA512 
6b75f206da06d914af402b66dc88398e547a7b9f2cdce2b5b999c22d9356d210a0f3da130d2cf333fb0bdad650b89e17f015293a9ae8d33a891459024266001d
+DIST thunderbird-128.1.1-de.xpi 763095 BLAKE2B 
75ba72464cbd9ae75638dcfb59bd0064232518d1af80dc7be32d4ffefc1275c4c5641264620565f4582d03e958f8a37c9889cfcef7255a01624fff9c089b1cf9
 SHA512 
4309d01ce71ac8b18cc1a885225ad2bbc6cf9e8711cd6f196074d13f97c18c354ec364526bf8883227d1c4e7cfe67b0176a83cca9a3eed133eaae5bb2c484fec
+DIST thunderbird-128.1.1-dsb.xpi 780652 BLAKE2B 
1af80bc4db88291bc567bc2a552773498da96b15ce609450ed2c8d326e368d7bf3c796eba3e53312ef999acb72cf07144c916433e1bb5c4262e8fd03a4d4fe33
 SHA512 
cddbe93033a78450354d4d634a4838510704c21612605fc66878dd7e18a15dd8e086369208d2ed2c982ee4ed47374cb30e22b2975d936613dce5dd810fd8b135
+DIST thunderbird-128.1.1-el.xpi 886743 BLAKE2B 
800af0b6919a3527c203e0fc46f2d4cacbd85d09b5147999a627bed60d48cfde4676ed460f7166d0e165ade6e2fffcad916912f4a61156ef3e917be237a213f8
 SHA512 
eb917a74dc9b7dff0364dd6022590236975fdc4037b276388f87589a3263a6b060af2767b48be483d258fd76d6e1f249c5e3ca01d8688c8c41098c3a6fcfc387
+DIST thunderbird-128.1.1-en-CA.xpi 699939 BLAKE2B 
a297dbb9525cee90345eb29922c5225a376202400351a49534ddd3aa4dc64c489e5a005ce237acbb69bf7cb98a72046d982943c930a8b65676b97d9782771fe5
 SHA512 
03c8c50b015b5dd6aed624a1f66079972f092dc631ff354aea6de0977384785de3846f676dc702d37ee2b4d2a77cc85b8dee42134396ebcffe46fa56276a0124
+DIST thunderbird-128.1.1-en-GB.xpi 700796 BLAKE2B 
97a96bc346c40e4a95fd93b08f3cbbd21f2c8d1e73e22201f7b85da2935d48a0680de0c91fd5c3ebf85cb0022463109afe63d5e915259366157549678ba0dc36
 SHA512 
10ef391e86f32478724bcdeef5ba9775f37722a7a01508ea3616e223836a7e6a80a23b7f1546f1b11b925744b73755839b5fa69fafe687f0d4472a374dc3eb23
+DIST thunderbird-128.1.1-es-AR.xpi 756246 BLAKE2B 
0a6ab1d246747de2a04237019ed89a4741c6aefb218be4c2b1420a313dd40feb2a44e96b834230c785e1ceadd8530fe58602220989a4ff7a999fb28b9cea6a45
 SHA512 
3cbd0cf639c51714fbb4102d98a483f6c33dfcf89d0593f895f915f5f4ad40e0612661259189a9f8a090a516b797f5c8380f701ea4e29d5deee5246558db768c
+DIST thunderbird-128.1.1-es-ES.xpi 723185 BLAKE2B 
ef4e0440ed35de9eefea226d9f06a325b8250a207eefacc4669bca902e876492d337c196abbafcb3727b9db49f5a3f8860f37bd426c86272e70bdebed2590e73
 SHA512 
c421410c7b004b2465dab37bcaf4f4e21c14009faddd3c6c2cf74980dcd85a0b743b42bba27077b945822fd5691271bf0cf86e945f7f0ac1d17a2805e39a44a4
+DIST thunderbird-128.1.1-es-MX.xpi 734910 BLAKE2B 
fbd4c41700ae669a79413ff50f29708eed5d3e7b6dcbabc97be83d3a1e7dd20a0df949a437ca29b1ad2ed9d33933cd97a741a2dc0bacb0435dfe9dd5cac5ded1
 SHA512 
a819fcccfa9802e4314f57cb4c84c9afd398701fc7a916ad6326275207ac85dd7130848de2475482a33a43577c095b2895760ceb6a49aadc228098a8ea09271e
+DIST thunderbird-128.1.1-et.xpi 695922 BLAKE2B 
c8aff7ef11f36717fe7c6d6ec26dac1254d317cd6f2a2b35b0a4aca6e3e4f13fa8fb6add6e68fda14b001d49ef5ab112d237c2cfbd521b28c2c4a96293a3b58c
 SHA512 
169dec6011581d657a8a59fea7ce9fe08e1535b58eced80bd364d54be7e26e2b4f5ff7e96823eca669294a34df0846c80585f29eaf60f18e533abf3bfafbadb9
+DIST thunderbird-128.1.1-eu.xpi 726477 BLAKE2B 
7de427d57fb0bcc1ae3c72ba919896d1c0d91fd456839df17d174e8518d683d9e598069de030d9adb0c2db4d0c34989b7018609492aaa143221c00b95f062fa3
 SHA512 
b702077009df6ab53c5d739a68f73050f9a19eddb69dc1d5a134b23046885b69960de0dd72990c1f5615c2fa7034e4add13f7f71ba0aab2b62ed0335ef6f2b67
+DIST thunderbird-128.1.1-fi.xpi 731186 BLAKE2B 
975f0751f0e6171f614c1673a06b8786880445bd4dfbaf49312e925fd7fb38e2950886f1053c1a6b4af41fd0cdbb17ded7057bae14020a87264befffed163603
 SHA512 
be2d3e25b1aa95b3ac4b14941b6b928575eea5ba3a07bd058fb26f220636601c69cd869db6452773ad81113e7bc5b24b1b9ea3a649098128607f1145528257cb
+DIST thunderbird-128.1.1-fr.xpi 768736 BLAKE2B 
5d130b41617e2394fa070d57824cc88121bb917901f27da43f70144caff49d708ee9abff1c11cde7d0136fcd06c1d7acfa2f0ab4979bb6cb6389affccb5fc928
 SHA512 
bf4797e981ff74dbb7ddab51200d88c633ee5f9caed8916fbae00994f0adafb684f3484459f8485f585ca6a502811424bfeec95385b77a2c2c3930950c3ddf0c
+DIST thunderbird-128.1.1-fy-NL.xpi 750791 BLAKE2B 
218f3e40449f782322aa2663ba0341a3f41ebb8fbcc072df9b5b2f0b531d2ead49b6b0f04e18fd498ee29a723e9fd1cfded6b57e9784b733e6c9f2cd46949898
 SHA512 
5b14a30d14cc3642266d98bcb57b61a6ee40008e984bd8cdd846d08749049dc67c8070344dd4c933978721112c357c33c8ea71eeaac5b48b87a73ff9513a0f28
+DIST thunderbird-128.1.1-ga-IE.xpi 614867 BLAKE2B 
0ee9858b27bea800209d4c4900ec4e4cbe8ef09108d8a4b164a5acf4f18f1380dd3adcee3282bd418cb9c0feffa3ed8691b527a1c3580adef15d01048f560664
 SHA512 
499b857e297b45a62f6833a86621c7803f7ad1f31d1edd3e7262ba6775a42e01a8d65bf5a68dcd8b9e479a2c2f01bdaa73b5021f0d2c17d98394c366b875c51e
+DIST thunderbird-128.1.1-gd.xpi 727477 BLAKE2B 
9e5ad9945682f06d9210589a96dd69b1a6ca578b4df60728a4746b58dcc157efe0dfe45dc12286496c36acca29f20927b4bde064c69b44584481dc26e4273fc9
 SHA512 
cbcc83a9a4ce3b46cac945f2da3c545522eae7c33e855563599850ad604937293ffdf3ff86b44e617b3263372a3a612b9de84a5800eef316b36e0b54296e1c19
+DIST thunderbird-128.1.1-gl.xpi 736249 BLAKE2B 
5fa8ddbd41f780b2e37fe07cb8f0c0c41043eda1b041f2d2b35937b23d70864bb7c8350a924a0ddc5523630e2017fe699bd51e4d176e54b7cc24988b9768863b
 SHA512 
12604c11470bcaba80a0100e422e634c380101c093b4f9b2967684edf14b5a4b7c5b364cb974f17bf50a8966051289a8438861b3ba6f244043d66a13127b644f
+DIST thunderbird-128.1.1-he.xpi 698230 BLAKE2B 
dc7169581988aee1385b2bac5d1b57d1bf40b8482ca833c7b1679271504e926161e204afa5cb715c47b6d4a17dfe0d860d1036a4464d1c532f622da1f6246fee
 SHA512 
4af4ff48ba6e4249e9ecf8f9b95984fe5e4a4fbf613a25ef38a68a9615f3f7f4ad753a95e0a57b61341f9165ce2bdc0e12dd3ce8957868e6eeda9d9909166691
+DIST thunderbird-128.1.1-hr.xpi 700182 BLAKE2B 
5c8bfbe9a95043d2b039d281552f5d92e33d1bf97ac1e4fb3b8895cdf7bac71ebc1d576c487f25c4a514ae47dc05e9fb56efd72f5de9e6284ca8b288c48bedd7
 SHA512 
3a2d9605a023b591d22d5e3da4bcd008f5029aa958057fc3bfe22637fd807663f9fb579d57543e3b8c52f4f62b00dfa02b41c1065af7cb3493d90675b6b8e2f4
+DIST thunderbird-128.1.1-hsb.xpi 778161 BLAKE2B 
41c7253cfb7f12403ff49ae2bf9b964e8402490b715e2ac4b563a5f447b7e63419cbea5375daf84b4abf517ac1f7ca634919b04ab61fda965e7c458ab790fec1
 SHA512 
751eede7bd28badca08a5cd5cc0d3261ed006113bcfae3d2593e9137f988fec551815c075b1fe93c58fd3cf79f600a5f1cb9cb09a873b00baf119de72fc146f8
+DIST thunderbird-128.1.1-hu.xpi 779502 BLAKE2B 
0e81476f314d73a9f7f7192fdaf3bff4520be1a335cc467b3dd76b97c79831b9e740d2054c10d797dd29c9f4516202d98df04cc5cd8c37195517db2ecb505c9e
 SHA512 
a2d3dad8c13cdd14d5bc3bfd7fab60460d49c5875ab95c206b9a3620aa9c705c3f7dca4e5403a6c9bc9fd3493784a7ef522807258650c118a23482b33e5ffbdf
+DIST thunderbird-128.1.1-id.xpi 665687 BLAKE2B 
a370ce9bc99c6f7170536b244cf972a0644322ca80441deafd6e4b891888de6ca5abc36d3698df35974eefc0874a7c3aa773efedcf88deb841f968fd0fcf4f3a
 SHA512 
31d30bc4b143aacb0b0c8ee00cd3f377e99738d040cbdf7f3dcc126605d113e45a7cc0cdedd27b233f7398a728ea59aceedd06227d9b9bb9235a7788e1846ec5
+DIST thunderbird-128.1.1-is.xpi 742975 BLAKE2B 
1dfaf9e04f340cf0cab4f6f04f863596c2317b3d4d75959637eca09a594c91af8b52843b499fb76ad61c8a06c84bba608c81e44cb66bf69024448592cb0288a8
 SHA512 
cff944013c69d3b26c5ce6bd25a2f1b8580c663978e491f679af9c73f0a016103ca398de2666e96c926ec2d5e72edc8986624819938464d57a7cdbe94d0d7954
+DIST thunderbird-128.1.1-it.xpi 687915 BLAKE2B 
f7ca29996141885293acbc6d858ddb03149a71357fad82857a72b04bbe6539265c502814d9d5a9920ca95cdd6c5e937f1fc43611a2e9024aa50b3da891d5c5bc
 SHA512 
d10f49dee11276d9639b73506f061295aaefa17191610f2bff02f7bb0f018d9f9b8f0866b79a985ea4a539dfd13ebfe8c866ebd2933760becda8b12b18fc6ac7
+DIST thunderbird-128.1.1-ja.xpi 818061 BLAKE2B 
bcb43287b9c7bfba5e0e71fce4b3caab0275e623f61202b58fc59523700ef9ca3f828c0c5f67a2ebfd17f8f36f9a8c18e7814fdcf74ef9279f77472aef63afa1
 SHA512 
0220377c9d3bf899c0424054faa22ae7abe9f83f81f10a04162052e8de51cc82b262ac788a89de232c3b2d174afda71ac7279778f0a226567cedd3b4be040b94
+DIST thunderbird-128.1.1-ka.xpi 795721 BLAKE2B 
bf42fd4ebc612764641fbbf3cd17cd21364866716a52518167c39485f069553ab7fde3fc46d996275b01c57d4098f43389b5a4158b9bd3ed9939b38f45062086
 SHA512 
bfeb4d172bb3f5f476665c44efc5373f8147d7b1c0f3eba2de53e7e553997beba553842f901abe6e36c64bca18e42cf7dd31996ba9861b82063fe2e259aef38c
+DIST thunderbird-128.1.1-kab.xpi 731533 BLAKE2B 
c43e8ec8a5ba5429a75f58c86a324815cbc587f571105881f173d7631dcbe3d49e5ff0adeafc9d50a1c945c88406b1475763fa054e8bf96335fc0fe6f89fb1ff
 SHA512 
558c8f8b77c900a4bdfc61d08ba2d587fc0f9ca603f1bfa775741d4dd64f5dc76354764d23d1cdfd523850faa65fc6d0a6d1c5016d5833835f48b0c8227e556a
+DIST thunderbird-128.1.1-kk.xpi 854920 BLAKE2B 
2aed0ab08746bcf154512e4fab1d8c8b310313191f2127a2aa4cdd83efd7ebae31f8b3b25a2fb9f2cd803edc671a08543f06c9e4bf13cb2861c62225100b4ad2
 SHA512 
b2bdcc0b641d7b94935af19328a5a5c5dd65b3cc015637efe360b775f04d68e8a4c59530f406fc123c4123c1a632887af13f43e6b02b1d258c9830526a7d4656
+DIST thunderbird-128.1.1-ko.xpi 753028 BLAKE2B 
73fb048cfbdc3b22592e5e750262067c13113c4e5b1e2fdf1edb97bf23f12c530387fcaab1326ba6aacf4647ebf9978c0c4fb820b4ed56693fd479f54731c12b
 SHA512 
b0430802e0ff41f0af1e974a087f622505242f9bc080d91e93cacbe3169d52f218c7639604624df4a68f2c6b3a40f3dd8c8cfea4227ae0b715477e986084a0e5
+DIST thunderbird-128.1.1-lt.xpi 700595 BLAKE2B 
99ee7ea617a3e24050e73833cd77bdb0f9d4646696b858b92dc944efff0825e4ca6b5961731359cb9a1bee9ab75943019b15b6e4c1b5f86087278a696f4a7f60
 SHA512 
aa5825e8ac4d17b6b12ea667cc6eab4b6153ba5c464a4b7a6e73d5051dec002b85d54bd3e52dcb878851c15415ac013d4cfbed874b05b7af8857f6c489a66f5f
+DIST thunderbird-128.1.1-lv.xpi 621078 BLAKE2B 
1755014f6d7bb7536feb89b7fad3638f70a63e2ec05393f9dbf726776e42476a31731a760f5712ea1ddcb974b70af00132d02826f37de9767b3a34dc7ff59132
 SHA512 
64c05f6ef2f9e23f9fb35ae0ed423cfdbadb4d7b4d47c8e72d7ec1b1f103b5abfb88667afc85b9d1a7e4255a3a1aeb6cb74ba9da6196f23ffc9896cd4e6a90f9
+DIST thunderbird-128.1.1-ms.xpi 580760 BLAKE2B 
49d6f88d83f6725de4d4dd068becd3f263e74f4325a0084666b0a9af7c69f31b9160e17b248463ee74f0789c59b7125d1273e3c92922aab28762dc6523b89277
 SHA512 
02fedcf89aba12b2a47ae553efa63dc1df8e0ff6797978c82c89a0faafb99730b2cc99006c294b00194a0da0c948bf86d0f646ca9ff258d13cb672cd6f0f1190
+DIST thunderbird-128.1.1-nb-NO.xpi 702091 BLAKE2B 
4f2d4c9863b9e22f0045c932931a607dbbb484548afc2b271a7eb55e9447c8107875bfa6804ac30c3226e833dea8c02e5a036d9a9e41d975a0526a34c44fbd5e
 SHA512 
20a5c81f293df762b334c2eab3712b8c977408880c6e6bd9ccadf5bf3e0849b7ff9d602f7ed056272cdabc0e9df4c9ce30ea72413138514619090dcd1353b65b
+DIST thunderbird-128.1.1-nl.xpi 742071 BLAKE2B 
e30cf1b9961f87d6e1b8af6559db456429cfe0b1cf0a1b3908d0b1075ef698b81c2f467198f4196d982146ee91fe0e2962d4bd39f477f8d6989e53c365f9661d
 SHA512 
1ed963e4d9ff02cec836ad62b58766f3e061efe67e66aa6ab91c8797d5894edbb28d6c66c16aee60be0cab87006a29924a183f84acceafcfea47802d26848b1e
+DIST thunderbird-128.1.1-nn-NO.xpi 721391 BLAKE2B 
c25de2b3c14569ef33ed39c440553d1d4cafac8c53616dd27ae77492035e0bed933ae20ee3191fc8b60afd3f9786fe550d452c8ad714d433269203774959310c
 SHA512 
eeeb982276229ee673f7e43ae5f23e0f593a158b545eba8870248e1d3a5f95e0b9115080fae00e50ca65be2f232a2ffef2493e05c01a78d55cad75e57052c36f
+DIST thunderbird-128.1.1-pa-IN.xpi 681222 BLAKE2B 
8533c26a4b315fcf32da8cc13a95eed5b19e00444a06a32177569f41e43067161bb1795055df71af065856f43030247a7920210fead3e4da80ebc337adcc6b38
 SHA512 
8564abc9b8e50cebadffd2aaefa97ea340761ac9ccc0074a6b0fbd7f1dff2f09f2c8b232ee5fe74d1a838cd3dea424ec84ae103c03f9ff486c3ee3395c8d5826
+DIST thunderbird-128.1.1-pl.xpi 760888 BLAKE2B 
378f664d2596aa1aa44ca7abf292e173e5fbfe167cbf9a4df73e354d5eb59f4f996d9a0c3eeab505c218ef317b53e7062c2578fd5b1189ba9888f3ef29eb2995
 SHA512 
58cf7c5ea95e9d123e677083abf5556fe10ac09f2cdc38d71918113378551811f69c2c6e2e15deab95124f199acde7fdcc1eee65774e16fcfdc3dbc94687ba6a
+DIST thunderbird-128.1.1-pt-BR.xpi 749078 BLAKE2B 
794f1da22894520777c8116a77b68704f4f00dec477c6e562512fe53cd7b8086fa395a597f7df93e8610d45a0e2a2205eebdf07e75cbfae50d1ae1bb58393179
 SHA512 
9a513c854eae6ee538b56cb7303dfe483fcf5f7734e5a2ba340ca1344817d7b1a9b1593c2c7d17b0e3f506cf4931c97ed6d53b11b0eccc913fd4da7feab7cd12
+DIST thunderbird-128.1.1-pt-PT.xpi 744907 BLAKE2B 
2cee75854081d80429e15e105a0e8d1ba7c3e61d783eb0d9c3044ba488be43e571939d125e04991471e58b5ee09759437effddccbfb49827ad1ad68e85316e86
 SHA512 
947d4530b24829a13d09964416654224072fdfa44523605241672891d2aa8111d7c14794de852074d7b97e6f99b7481eb9cfb2637f65d4221cf9922738438dfa
+DIST thunderbird-128.1.1-rm.xpi 746021 BLAKE2B 
5f913ef56cb475a89bdc5633b20ef31a66d197e6a47d20913032853f2764094f00645cafd5ab7812b2559bad689111a14f1254bfb04023be8d56a307026908e1
 SHA512 
9371a6d777217f041856fbf42f759540bc5f9ce2141ccda494bc6e015f84aa1fac5c0abbeb32e1a2cffcd713f28742573642c23ab28d6ddd764699e403509edc
+DIST thunderbird-128.1.1-ro.xpi 669418 BLAKE2B 
0ed646e0935ab00ba75ce3491c925aa8af1dd1c7c3c587527f80a505ffa6795365c91320db716bce6b31aba98154b459964217da4740a86482b722cbd0739828
 SHA512 
d155fcb44b4424b282bdd10c8bbdd4be8dddf32d7a3320c24e6e9071277a032536a352ff1ff87528ff97093c8cb37e2778aedbc535f15f5a288cee485f4106a3
+DIST thunderbird-128.1.1-ru.xpi 869880 BLAKE2B 
ab9e69708102ce63f2239413820e59cbcd2f26f29680e2be43ef88b5301340e81c45c70b2b3902a25f95054448d1f551d1a84b0cd3895e15ca4486266a6e7418
 SHA512 
4db43dbb1807e96ce17ec2696ce758e827895be8394f24eef297be24862cafe25b76cb512e07281a6477018b437f77faa9dae429a6a039a0302c4411ffd85cc6
+DIST thunderbird-128.1.1-sk.xpi 781843 BLAKE2B 
3e08add0379d28b6bcc44294de3ab6afaa8c745cb34af60f399fd857fbd46f2ce0e3ddbc7253dadba527094b215f68ebee9d152bb55aa3f613e3b344b337dc53
 SHA512 
8bafa78c068ac43ef64b4b0ac2fb46abc98cec0a630d85470370116258efe4ea9d48764db6cb953d1fbb88ee777c3639b3ec85e11cb95fdb5753d68f1baace87
+DIST thunderbird-128.1.1-sl.xpi 742785 BLAKE2B 
26a360d83a329bc982bc3f625e70d89afe80113a8943e55e062dc3838b448abede8eab63ef93a35579bb8901680b845f37d305e953eaa7a1a47e872c1d7e4e09
 SHA512 
9bbdde150802d07102f993fdcaa22391b2e44de5708e2725f7c289129148970520154f8ac97f4b56f59e482e4b013ce2f194918b7d662fa770eb1ab1b4cbc798
+DIST thunderbird-128.1.1-sq.xpi 765340 BLAKE2B 
225a30cd2dec7f21e4dd245250d555ea5c7fe1d8896a7faa40716bcd023583f6680947df49073db4b97500cbc07a2d404880fad8bdb197ec6f909efdf0e24b42
 SHA512 
67047c15f33c1870f4eecd05d4734326b1ce7d9e7c5436ee369c4f6888f7db442991e350d2cdd89d1010e9895d4276c150ae46250c208da4bf1b1c4f8c6a4dd0
+DIST thunderbird-128.1.1-sr.xpi 770682 BLAKE2B 
8fb9185bb8c01e22356fe7af75c4134370ed60c025ef7947a79b18ec0aace5dbc3833455cdf874d33a548fdbd5028fe14adc854a009e1a8d2cb063538b339154
 SHA512 
4fc70e14169a0bccade80d51fa81a4966f23af49fc708fdec558a8a5d6e8a8ae58b1443c39fbc7c398c4f4fc081d1ab0d57fbe48d30238ddfa27f3dffb41a100
+DIST thunderbird-128.1.1-sv-SE.xpi 745493 BLAKE2B 
756f6a8f2301da147156a056a2a6c162dffd642e671e976dc036c1121fc13fd11e4ee101952e33eed4f7642f8f4e4c17ddec7b4e6bde5251cea0cde96f7433a9
 SHA512 
1273d66b33960c3c45998d4f08f8af83a4ae5749fc79ae9b12e925dc1d1f7cfea989e25485c51e88516857ddc05150ceaf6412ef4765c31e2d42e150efa3ed00
+DIST thunderbird-128.1.1-th.xpi 810987 BLAKE2B 
a8608d4ff0a3905d7a963d6147f8dd829a78a1285215296a7a56d43ee3ed5135c65e2c426ea7303cc9382564c932145addb9685fc2d2242ef3247f0e17f845d3
 SHA512 
98bfd7b4156aabc84190a246295a0239fc2538322d9b06b7b73621ff614aa649e331b3a8bfe0be64d0f79b950b6d8b059ced3d364294571157c0e065e0fcbccd
+DIST thunderbird-128.1.1-tr.xpi 755983 BLAKE2B 
6c854657cccab9b1e901cff967cb9def4f9a5045f5809fb52769e55e1b0ae21b260416346d32c15864d1fe38c70beec23d0c6985a2f7f1aace1a832e7b8bf259
 SHA512 
e37ac7ce0671389ca564d47f37a977223853a8bf3cbdad3834494d3d7c76caf06fc1f7a26b246d93bd899b49728cfd5ab912a7713170f24c1edba4c748b002ea
+DIST thunderbird-128.1.1-uk.xpi 855732 BLAKE2B 
640f1424995265a7d9afd79d00b5bba1e3881dfc62b9b53e03a38283e9834e188111bf77441653ee807b110075cfb3ba06c3734ea39b3142fed7a864582ecdb8
 SHA512 
3ea7a90e3da56a9ba045d91f48969afa3a5e93f389c11da06c42c816332c43ea8bf096c9d1eabbb9df16adbc4f8d2ab882cd5d091abea490669b1364b92d19fa
+DIST thunderbird-128.1.1-uz.xpi 591809 BLAKE2B 
a8468e0e6c7b26de3e96a731cfa4873c571c3ffda6ee52737bf4e21e7278718ea7709836f8c810fce8d1925f68f3056299617ac712c6c137174a45667a9af843
 SHA512 
bac1956bfb40105d6fd81d066466699762aa9578f6d27311abf5629b5b869c97164eecd7819a7c1ed47a19335d8aa617397f566cd2fc67ba31642a67ba61b279
+DIST thunderbird-128.1.1-vi.xpi 784776 BLAKE2B 
addae70dfb4fcbeb4ee55d179c5be4617ab1e5f05a33febf648f3ad99476f87654d4655631e9ea1920630065cdf4e6aeef801f52b2edcd75a6c14a74184ef99f
 SHA512 
9f8abf8dc183a4546fce4d129a9ee314150abdea401449902bde32c51fa1007368fe8f477c3aacfc67bdf48ba6c49c5f2b55994296689116204e57db7ddc3f6b
+DIST thunderbird-128.1.1-zh-CN.xpi 784197 BLAKE2B 
8e4074448545cb54373406d0ce0295a68e6fdfababf38e95a4a473407cd824e189d62b27105156dc2f923beb6a9c2f2348d83802ce550dcb4d0a3c36d90d71ac
 SHA512 
b42683ec3970afa764f491ac1f47cd7ccc117646a2f377088902f0c1f46b7bc2719d318f86cddc483268dcc65a59c87a1b1ac6dc627dd58ec9fc1254d1d73794
+DIST thunderbird-128.1.1-zh-TW.xpi 787600 BLAKE2B 
9a56823925b2f0a5bff9c2c098d45d04242ac2a3d33603deaba17d346c6756b624f352d0a10fc6206a2f80c008fd822d9002c860ec89dbabcc9b398c7c4a0f3f
 SHA512 
997c503a8dbe3e8cd2d331de6633eb205a9d21a886284360793e481bbcbfcb2a60e0451a64aa78d536034376aee6dea660cc14f8c8bdf8255acfdd9733631276
+DIST thunderbird-128.1.1esr.source.tar.xz 667771968 BLAKE2B 
61cad10d9ec40d854ae7521b7cfd3075a9994d15a88af9171fec0ce228d08c7c75d41108f89a4bc8b5356322776cf25289e74f8b2b601bcfbe29b5b494bb11fa
 SHA512 
91e17d63383b05a7565838c61eda3b642f1bb3b4c43ae78a8810dd6d9ba2e5f10939be17598dd5e87bdf28d6f70ff9e154e54218aaf161bd89a5a6d30b504427

diff --git a/mail-client/thunderbird/thunderbird-128.1.1.ebuild 
b/mail-client/thunderbird/thunderbird-128.1.1.ebuild
new file mode 100644
index 000000000000..505685b90a5c
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-128.1.1.ebuild
@@ -0,0 +1,1226 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-128esr-patches-02.tar.xz"
+
+LLVM_COMPAT=( 17 18 )
+
+PYTHON_COMPAT=( python3_{10..12} )
+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-r1 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}esr";
+
+if [[ ${PV} == *_rc* ]] ; then
+       
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}esr-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}esr.source.tar.xz -> 
${MOZ_P_DISTFILES}esr.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 dbus debug eme-free hardened hwaccel jack libproxy lto +openh264 
pgo pulseaudio sndio"
+IUSE+=" selinux +system-av1 +system-harfbuzz +system-icu +system-jpeg 
+system-libevent"
+IUSE+=" +system-libvpx system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )
+       pgo? ( lto )
+       wayland? ( dbus )
+       wifi? ( dbus )"
+
+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 '
+               sys-devel/clang:${LLVM_SLOT}
+               sys-devel/llvm:${LLVM_SLOT}
+               clang? (
+                       sys-devel/lld:${LLVM_SLOT}
+                       virtual/rust:0/llvm-${LLVM_SLOT}
+                       pgo? ( 
sys-libs/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
+               )
+       ')
+       app-alternatives/awk
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.26.0
+       net-libs/nodejs
+       virtual/pkgconfig
+       !clang? ( >=virtual/rust-1.76 )
+       !elibc_glibc? ( dev-lang/rust )
+       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
+                               <gui-libs/wlroots-0.17.3[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.101
+       >=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:2
+       x11-libs/pango
+       x11-libs/pixman
+       dbus? ( 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-74.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]
+       )
+       wifi? (
+               kernel_linux? (
+                       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/libXrandr
+               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!" >&2
+                               einfo "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'
+
+       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-r1_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
+
+                       # 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
+}
+
+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
+
+       # Workaround for bgo#917599
+       if has_version ">=dev-libs/icu-74.1" && use system-icu ; then
+               eapply 
"${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch
+       fi
+       rm -v "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch || 
die
+
+       # Workaround for bgo#915651 on musl
+       if use elibc_glibc ; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.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)"
+
+       # 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"
+               else
+                       die "Unknown musl chost, please post your rustc -vV 
along with emerge --info on Gentoo's bug #915651"
+               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"
+
+       # Make ICU respect MAKEOPTS
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/intl/icu_sources_data.py || die "Failed sedding 
multiprocessing.cpu_count"
+
+       # Respect MAKEOPTS all around (maybe some find+sed is better)
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/python/mozbuild/mozbuild/base.py || die "Failed sedding 
multiprocessing.cpu_count"
+
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/third_party/libwebrtc/build/toolchain/get_cpu_count.py 
|| die "Failed sedding multiprocessing.cpu_count"
+
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               
"${S}"/third_party/libwebrtc/build/toolchain/get_concurrent_links.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 -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/python/mozbuild/mozbuild/code_analysis/mach_commands.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-gpsd \
+               --disable-install-strip \
+               --disable-legacy-profile-creation \
+               --disable-parental-controls \
+               --disable-strip \
+               --disable-tests \
+               --disable-updater \
+               --disable-valgrind \
+               --disable-wmf \
+               --enable-js-shell \
+               --enable-negotiateauth \
+               --enable-new-pass-manager \
+               --enable-official-branding \
+               --enable-release \
+               --enable-system-ffi \
+               --enable-system-pixman \
+               --enable-system-policies \
+               --enable-thunderbird-rust \
+               --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 ; 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"
+
+               # 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
+
+       # LTO is handled via configure
+       filter-lto
+
+       if use lto ; 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
+
+               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
+
+       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 ppc64 || use riscv ; then
+               # '--disable-elf-hack' is not recognized on 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"
+
+       # 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
+
+       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 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-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 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
+
+       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