commit:     5c1610f537dbc858418abb19d20a0d585802e230
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  5 11:30:24 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Mar  5 11:51:16 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c1610f5

mail-client/thunderbird: add 136.0

 - new thunderbird release deemed "stable", it will follow firefox:rapid with
   monthly releases,
 - will be pushed as package.masked initially.

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

 mail-client/thunderbird/Manifest                 |   66 ++
 mail-client/thunderbird/thunderbird-136.0.ebuild | 1153 ++++++++++++++++++++++
 2 files changed, 1219 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 4e61fd96b934..fbede02fbb79 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -1,4 +1,5 @@
 DIST firefox-128esr-patches-08.tar.xz 17564 BLAKE2B 
d904b74fdae2e76866ded11de5377a7b6883d35996b358ae3419ffb7da53b04b2c7d4bb10d48998a8318a84e8221de39955289cb33a8f278c131b4af2006be62
 SHA512 
344a2d04dec679cd8ed714dcecc9dd5b56696803cee9267e7c0c45c439d78728e7eae674bb5f0a64f2e5802dc59c1ec25f1703885024d88bda8a02e2b3e0d69e
+DIST firefox-136-patches-01.tar.xz 12568 BLAKE2B 
9056b1c750eeb7c226bd4ff5ebdb03d491177d93bbee95552f7176903ec8796131a491c39304030370ed55281f92585422e28926b5f7491081d33912360d999f
 SHA512 
48548637f6152fd3a72e283e3d16708a563fe84cd22d84129d5bd58f6b6baf7a6e50d521cb371ef21e7b9f95c13cc72531a3e1ab735abb70c51e5c02424fb2ca
 DIST thunderbird-128.7.0esr-af.xpi 530351 BLAKE2B 
665e3c36027491ec674b4d11f668de264b9e7fdb476930dd151a7df7449759be5768986ac83ad348f6a9e1495ce34faea05a3647e31503a0a531c5ed35dbf516
 SHA512 
18dd42b98b74e951d624a868c89ae9713d5e5b1e991170506a880d2ab8ddb22e834b11a42bf9ab01c2664742eb503afcfbae93dc6baf3c0c2b5ce1322e545632
 DIST thunderbird-128.7.0esr-ar.xpi 686986 BLAKE2B 
4b219c2ddb940ea9363f86167d1d94acb68ebb280a17c761d8a54b09dab85939f4fe861b82c6ffc90b79be061b85167b35e9e96abde1ebb5732d82f59f9e426a
 SHA512 
f9e314831d230b1488b64056caf22a410f4e883c50e697746965949775333f785ed0316d0baac1df460c33f7724eb93a8e0784d7ee99d5fc9513245552f7749e
 DIST thunderbird-128.7.0esr-ast.xpi 561055 BLAKE2B 
14f2c12ee192d153d665f3637352bc5b5964661ff96db6d4c67a07cad2bd7650f3e2ce2fc687c92ea3480edd4fc5bd748f7c10d08cf8fd19f5cddba08b12397a
 SHA512 
4a68c5a10b38496c654d27e4ca82c10804f739ab526e6644509a8dbb09928c1a2d2182e003e79a4276a92bf62ebe6195c292662acbc3e21f633eb00abeaa843e
@@ -129,3 +130,68 @@ DIST thunderbird-128.7.1esr-vi.xpi 794033 BLAKE2B 
94d10d0287650d3864dbb82a162e2c
 DIST thunderbird-128.7.1esr-zh-CN.xpi 794062 BLAKE2B 
5b93207a294c70d9e6305ace560209e318f3ae353649003a7feed1d62621a78a268d68452544e381176538ab0d1aa6e8dfb1dd98bc210154a91ef5f3b2b33649
 SHA512 
f75913eac9ca58ab3a81ab1a28d84557776506493e842644cb272ffbda3599a380c89fa4c867a6d9b256344814a3d3bcaf3caf629d0e6d07d74b13301555ea6c
 DIST thunderbird-128.7.1esr-zh-TW.xpi 797334 BLAKE2B 
bec51940d11ac011fb0c6d6a063ce0a97685d90b5dbf56611476f615282f6db7880009ff60122f35bb56d09f5f2a7d87c4d7ce05eb821d58ff479b3608d27fe6
 SHA512 
f2697c244fdb85ebdfcec4f2589d1611e0aa3e88f7d3f3b250913782a4d996eedc7bef09dad4eca7cd6dad0f45b5a0faea5694aae2499ade0674ce8ce70d8873
 DIST thunderbird-128.7.1esr.source.tar.xz 679801568 BLAKE2B 
27840ccf9bf8abfa681cab54cbf13dd176abb107853b148a2bdde443f3a25a99d4ba99aa701a7397066a5efaaa2a941b5687074414ce8882f614f92efd1c2b46
 SHA512 
3f84e1f1a83379da1f154b66dbb5f941d04548ad017aab32aa9520f4315edb524e3754ac1fe9a7ae27f7aa33e2881c6783f11ccc53cda713f107760b7d880667
+DIST thunderbird-136.0-af.xpi 315237 BLAKE2B 
38c380818291313eb232db7840994d66897673181cc7d86b7dd223345d045f8a5fd46157be92a39ad113f1ceafcb449930e8fad3e15a82d7ff413fccc86fbaa9
 SHA512 
a19f7361376ec99a1ad0c31372f1dd9aa4ead954666c2d9ce21a9ee7542ccaf52e57274a777b9be29a335b9fafb68c92d695cd5bf802222fe01f1d64aa9f024c
+DIST thunderbird-136.0-ar.xpi 430240 BLAKE2B 
123843dab3332af07ad41966d561f1104cc540a172e9a1cfda4c799479139edd510306f839bbc024d4a3e71889ebf57179ea73865f943bcad091cdd3221f36e9
 SHA512 
232bb40b11b302f9f8fabd1e47fdf2746ace3e5df710b547e3dfc45ab40426720e5a5f9ebfa70c0074b2208d9830e14477db1c9ff6e434f4f9d9d50278140c8a
+DIST thunderbird-136.0-ast.xpi 340880 BLAKE2B 
43dac2dd4a52e17656fa33497f38cb4850c88593a5ae9008e5131807ebc41e8f6990aebe7238e209c49d1afab78111e62332985ef4b3185fb180c9c3b69bd6ad
 SHA512 
0bf29c38fbd54b6643257e8e651ae7039ff72504a2dca34923b645edb4524ca54dec8b176cc0efe5353e12ff1234747fcc5208baeb250d5046065de8c8d16156
+DIST thunderbird-136.0-be.xpi 514007 BLAKE2B 
17f7c0c54a437e64ef37aa56a5e0152d1fbfe5230497e457ebff79e305488616252266891843832230f19af65982c33e1bc340a162125e0c9b78d13c5467bbfb
 SHA512 
779a2cf11860dc1a8139c27e2f80fa59ba378a11da0a3d9aac580592cba6c9675f2aa0c4a048c15821525f7362c1f50fbdd28dddeb987b65c1c53d1223daf89c
+DIST thunderbird-136.0-bg.xpi 533575 BLAKE2B 
f69ac1042b1bb4be9bf7737825418a1e3081e2a2531fac5dca5190961683ef7153b8e2727f0ec564f1407da6fe8ae703b7ed57cbe1eb4e06c3ce456b26c8e4a1
 SHA512 
489537b18c76cb89997833510605f132ce2ca7723f73ecaee6ae9e8036e38bc012b6465b02207c6d1c6affe76f15eb0e838cc0e5e8688fc5cf1666354739a8d6
+DIST thunderbird-136.0-br.xpi 401903 BLAKE2B 
4ae8bd67533ca83d23cdb9ad0cae8f9aa39ebe9625bb4e3fa825300fe48fdc9b0440e0bb2c0b64864c2ba585d7ce3eb384a824f4a5502e194e5c80a7b084671b
 SHA512 
fa6f4bfd76b09d5d8e092423217ff218145cace3862c023612af7571274fac93eaf0217f192a9c50f1f6b61c61eb8755f14220ec4f09f672b8eb22fafeb6f0d5
+DIST thunderbird-136.0-ca.xpi 439983 BLAKE2B 
91de0855c046abb3e181fd81d6b688a89d8b7d37901372015907a1bc72f94f6d25221523cb04379a61b02bbe8b9b7441ad5c5953180f939d4208c56a1a384850
 SHA512 
c45956e78ce5c4bfe9a6510d7d18d99610052722c9b34ae7bec992cf571ab51a0364c3cfba6bdaa8f5b6c72359b2ed485260df2e352522558f5e3696cb0a249e
+DIST thunderbird-136.0-cak.xpi 417796 BLAKE2B 
600b3fa7357179bb892de13b874097b27ad121b25bae270c96f806977fd1d3828ed3feb17b3980609e671be370894272420cefa59c2fdd92d3e8b273fdeb29eb
 SHA512 
3242a5b8fc92cd609461d2d283c7d7bdf906baa22496b89c81b685e35f90972f9199cbc6d073516ef4931007fdb21ca6accd3976578cb3b5766493e1dc7ff5d3
+DIST thunderbird-136.0-cs.xpi 511345 BLAKE2B 
75c80ba7ce809cfb174cf6e35b15c104261de9262c9a5a22053feab563e6e8422bb7c7104af8545fc201d5182447f50d0c82c07d055622a7a9a404c8a3517ae9
 SHA512 
868c178e9f7e185084a3243ba6e57677c62caf3db457cc9038024cf4f5a39c56e9dbae8b3a92928a4a9c4a3b4ee44743ecea6df5cdd73e5646436434488e1b1a
+DIST thunderbird-136.0-cy.xpi 480180 BLAKE2B 
c7d550be299d12964876b4d3056ba6f710ef4a784f46bd0a21a029afbb6632f0184872e60a04991f739f04ae1fb17196b4c26579852075000d1be885d40dbf04
 SHA512 
009390d713e05cc8a9a00f4510bb0c9fe9f93458a6704adf535e74a04e419be6a62e5f352cafc334f6dbe6f8834ac5f8ca272c9d1e21d520e12df672ae889ada
+DIST thunderbird-136.0-da.xpi 469407 BLAKE2B 
fc85e3eecf9b28177afa84952594d02850e280136b9c76ec0914ad907357c2aa323070b3a350ae05ef2414b57a3c6417045b4ec33dafa868268c63234c37c052
 SHA512 
b3752201a637d7e912df13a7cc54e2691d8a6d36568a9fe4f9d5c114d2ffd3656b1a24fd81a6520eae44f22f791516a84715d531cea6c0abe0b753d51b446bdf
+DIST thunderbird-136.0-de.xpi 497361 BLAKE2B 
3344fa5043ad5337dc776988a7c76abb11f925decfc3fe218afa37268bf1b82cba385a62b848c0bbd7d8df6a4e07b6d5b3ec92c74962498c3ef36ea7dc875f95
 SHA512 
d3ce7232618054e7c44b8f48d10f9cfda82b1a8de01222fd3fd5f3cc95dacbcf8025a03531cceab450039d2d01cc4122850025a154e33e31b7be837afe6324ac
+DIST thunderbird-136.0-dsb.xpi 510106 BLAKE2B 
78d702351e5c99b97c3d40b89f9612d2f7a2c733de65f6a5187fc23369bc76e5a294f8ad650e9d01c6e1bf8802632397eac67667a8dfd340557f51abf9a28be1
 SHA512 
cdfd39fdd4b1bd0cb88dbf7f646864cfa3facad296f07f3cf9b50b25d30623a4fae93dc12575c6db20f2cd5b5f4253e321e6e1a8e8da577149e449c194af6f98
+DIST thunderbird-136.0-el.xpi 600372 BLAKE2B 
8b74661b0ed72c7b06e3d249b864dfa8fcdfd45e522ab12e31fee8fba96a31bb1ea439300425c2825c46b380e71920bd7eff2bc19a26a1b6df613347d90381dd
 SHA512 
36ed5ba60edf9346c087c08193b0f8b4e31d91328c275e26d208553664a243599a3cdf150f69af8a48df141f9ce0d6e1e523ff69c6f753d30d2b47b7b3954e1f
+DIST thunderbird-136.0-en-CA.xpi 445700 BLAKE2B 
5af88736a1a14c87b774172b839aaba1a286924aa6657f0eed9b7af62011e79f292bcfac4d4e09b02ff11382d310e3a5eb8dc814dc76d7aa289b2e5d988d3154
 SHA512 
366bcee5baabb2d23f55bd6ac3a54bf8563b2945838cfd1df2b9e04107191612693fd6ef51073dcb4d67ba55e6b9b2dcd0d4926e9e8b40120ef2bf67908cf74f
+DIST thunderbird-136.0-en-GB.xpi 445528 BLAKE2B 
0412547c9eb02631eab65e9df4746cc76845d7532d907c28633e4d0c1804ca130b5432717bb11fabcf1bd818fd8084d164a28c147bd781cff18b84af93f9d145
 SHA512 
418d9b068eca2f1189aad96a35609fabb0af125551bdd37b8def3851c080ffcd757d07a6a0e5a4624638ed915b00f8fe668e389b0087f40e125b536e6eb9f0ed
+DIST thunderbird-136.0-es-AR.xpi 488023 BLAKE2B 
2374b3b568240801c05c6604f383718d2f6e7caf489d6cbbe43f209e3a641e9d7990b41d15bb0ae425b5db698a8642ae67f32ac4375113b678d56c47076e240d
 SHA512 
4184985fb4448c472b9a3d0b6424fb256f60aa2bf658167c5e1fb665c2018c6f036689c9466aacd6c7aa09e527085d17d1ecad51aa27413ae73eaf6a8a485329
+DIST thunderbird-136.0-es-ES.xpi 489906 BLAKE2B 
50be88d700bd6ddb6a719b2263c392c784fe77d5b3ae7c0331686082dae11d9ce5c97ec29805e51ff1b3505e4e2d29476d6d1353bb57326fc14467b7080fd1a6
 SHA512 
fe718d68c88b32e9f62a3dc6cfe1b145b4686eeded9cff51b90a3b1f6d4ad1eec1cd7a033d3bb32604831caa2f305b9854e0594b0c623640f313c0301a1f2b9b
+DIST thunderbird-136.0-es-MX.xpi 482601 BLAKE2B 
be48dd6d5d98396f1afe631e854ba58d096f6c20f27b4beda94995ca7f8d8f689d25cf14abddef8c865ca481d4db51d69162c378e5895bea49b042361b4447e0
 SHA512 
5f1184679c0d3772e9b54a23052cd508e31ccb2c45db60a3104b43886f226b3b3415101e7ea4ca7b1b8a513c9bad61f6ed25e7aad07324c740d102b69b9c28f4
+DIST thunderbird-136.0-et.xpi 434538 BLAKE2B 
2ccb7a73c4fd407d75140a914d590bdde622b8c5b7b969fcf7080c66ed42ee5b32c52f6d44b2d7d278f8fa46a5d3152337f74f1e242b6bb2382e93bf0f6ec808
 SHA512 
df79816aa9703fb6863da25cff56c119719637e12b242a9ade6cc5364a171f764252dfeddd9d560a5d2d2a4cbce5a75a3c36700f7e9625196ba7cf6a4d306857
+DIST thunderbird-136.0-eu.xpi 466221 BLAKE2B 
6462a5a3c989ad5250be12d44860872a128391d66507bf516be747239967a18376e5898e2d23f6d8080a21df39427774157a2c44796a05f309d1dac00f61d90d
 SHA512 
650e0241008a79ff131f75f4b41723914ee0e0c4284ed1e671033dae7ccd6b1925487dd4218a53472939b78d4e550ecb7d22b0376d884b1f624891885a53faa1
+DIST thunderbird-136.0-fi.xpi 467725 BLAKE2B 
8634df42da596f9f83df68f8fa785da1cb26f967fae8421ac3c8630f8f5cace65fc50251629658e81cdd1022fb56ee0a506dfc5b7ef650820cf19cf957dc6ae6
 SHA512 
8ee25aee8615c2ee2d112e319849167abd0971a449c44e499520fc758709659037807d59c8f0d3a116ab312df0d17c5b3e0b59a92690203087c52d12a2910d2e
+DIST thunderbird-136.0-fr.xpi 500568 BLAKE2B 
72956b807d8824e46b199ec2ae902dd5a90f19d944c7e27625729bb670d09eda510803a74a80fd6f55c9915f81ebd5422a51a13d2e8ebf84d9a89b75a6e41c3c
 SHA512 
8fc96dbf15d7296980e9673aa42c2c187c0ac84b33bad5ee8cb63e6642dd1401b67f03684717dc932de64490e78204117aed7ccf54097dad211af6e8f0c19d0d
+DIST thunderbird-136.0-fy-NL.xpi 483362 BLAKE2B 
f96940a677fe0ce021dc9cc9fb46a97fc819cf542da204a8f3a0bf86b4cb9b1e85dbcc78cda1610b1e7c3fe0b1102fc4040e5a29867252edeea3a1faf50ee696
 SHA512 
1e504ffd61d2ebb9f1018b86d249e040bf51d3442a12ecf20f1687f067b0c62f59eed21476bef144803d04b25335fc099d3de4ae90e9a9837e7cb69dd1724935
+DIST thunderbird-136.0-ga-IE.xpi 375963 BLAKE2B 
50b14d9736215890de8708e882bcbb1ba8e2edce21dd7e352dd50cebd90ce2235ac9f7d926d0e0a6d1a062104a931fe9b3cc816d1304955654e04882efd74e7a
 SHA512 
a80126b2ce0f596c417869d3de4cb484f9515a2d04d334bf4cf2d0b0af9eb6d0e1a3070347217d9cdaf0177f034afaecb18c72cbed720d38a627c823aa9e0597
+DIST thunderbird-136.0-gd.xpi 461927 BLAKE2B 
7b69e19c883ff6f6f84a7e47b6ea734a4250909ed7b8d273f727889a4cf9bc73b62d15fc6c24320cc4ed7b97f8a5d8a9cb58ec3a695416b09ddc01690b9a6eb3
 SHA512 
626dee7d4566834b89d5fdc1b04c740eaaa11b517320695b9a51acb3cd07e5553b66a2c65c367255ea347b538097352e5e0b490e68427db6edb297a49cdd748f
+DIST thunderbird-136.0-gl.xpi 470691 BLAKE2B 
9135fc497966bb9b284aed6d37810a9b475f0e9acfd2dd4708c4bce730357d3c26a632397f73f7b9da71632d75aa657cd1da86d2d2f0ff0ffb67871cbd8a9f06
 SHA512 
184f65e8fa562fe24d7ce4aa379138ef096130334459f8da9b1b1563d395ab53420e0055ef7ceee166a28700908e63e8e18a3d0e7c14195d730b159253897e88
+DIST thunderbird-136.0-he.xpi 436337 BLAKE2B 
737cc902a3b9a56e77c931e6cd5b8f39c785e09cf1a540eaf3c393bef20ff1192523c99279980745cb8b24aa587cffd001198bcc457e7e52182b0dacfda85b69
 SHA512 
3421eef2ff723882b542506140bfb25f5ec2fb61078399a4a9b6974c6050bf1a81c9dc382a9b809338d082d6d48bdbba3abf6a89bbddc80abd9205eb5fc09d62
+DIST thunderbird-136.0-hr.xpi 455955 BLAKE2B 
ae08d7b3ab1ba2f024428f31cedda22a33265de9295be47c28991bd99b35e2583f0f6400053428dc50fde418969735c3acef98e854415aa8784ea86f38aa86f6
 SHA512 
3c65f7d1e331cf7abc7dbdab2a3da26752e25ce806cef7c4543c0f66f8294958ff4fd89136b2b86886906fe3a88b29e5e406c51e665f81d278893035c2936ce3
+DIST thunderbird-136.0-hsb.xpi 507189 BLAKE2B 
4ea3534e729a0c94d5ec97af79ac3a288e9f39e4c49159a40df2338e03ae7cf7c8ed358004ea49e70aa0960a6725633bdd74a96ef98b6c4787b076f68059ee87
 SHA512 
faa8c4dfa14d9872052060b8137c76b89c9d49ec13dcc1895b305300e60e84216135b5090f5c23037cda3a874fbb6e307f78792dd9480e80947a4e889c1a51d8
+DIST thunderbird-136.0-hu.xpi 509901 BLAKE2B 
8363382de86bbf09db217a854f01c0df29abcdaf7c591e5492b1bbf56d31f44d619796592b67e6d244f4866b2b242a642376b84ac2a88cabbf2f0f9677fa2857
 SHA512 
c60623dbfa0d4c8f337613378bd293be307283271ed4b2c8e817383ebd8991218feee9e8d25078966ffccfbd3767f5ec462e24efaf0508503e718ac89aba56ae
+DIST thunderbird-136.0-id.xpi 456734 BLAKE2B 
0455ce9f2a1fc36b082d155118941909963e303e360880df9bf6eeba7fe31e66a8974951f57447ff6aa7906c839a77277a844a450473abe1d97951c24ab0e379
 SHA512 
d1ad88c91dd7ff95d727fabfc71ef9c637d2e029a4c827e3fd0c409de49301a7eb20598d7b921e33c74a0f45c8868987dc6e25d716cbab23022548497c6521e7
+DIST thunderbird-136.0-is.xpi 477555 BLAKE2B 
c5901363b7c837c2e72398b91eb5d567cca978b6a1be2bfa47d25221a068e53f0c07ab905197e4685bb2a7edf6eee65fb441e7ebb908c06cd6b1f2022bbb293b
 SHA512 
8d859529b2d4f88da1716ce729e715b8aa1eab22f9b86e56d8f9be09bf33334cac0e65598f16130d37ba0149b574351d733fdbe28d16c65debee48f66a84fdd0
+DIST thunderbird-136.0-it.xpi 481201 BLAKE2B 
2ccc44e2f365adfbdd523bfb9fa7a14dd7630424e0c6270380374201b89103aaa2de67de8cc6a48cea27b80c216244112dfccdf981e4d2ec931ac8129dd2577c
 SHA512 
b1351592d1e915e9f51a4265e7713058dd8613980f135bc72f09e8125b8361ace3a5f222d61c887aef013751d59caf14cccabd88f9d45921aa892fa06a603761
+DIST thunderbird-136.0-ja.xpi 531330 BLAKE2B 
3b6eaf10cab21800d427e8e18c60e6c634ce0e3d8869f957adcb17bd2295045bbf7b887445679dfce3ca9e1c699d60ce38b91b72722f5f003fe11c80a3513483
 SHA512 
0d7df95c0c874304af6ee555df77a96c9fd8b81df305f4b778290d2a53da89014eb0d3b7a2d9ac10b08c0b1f712ff2379e61c53f10a6751c50a334f1ba6f7808
+DIST thunderbird-136.0-ka.xpi 530549 BLAKE2B 
a0b078da6703fa8e7382181bfdc6aa325f8396b35ffce6882453d7f17a715fc86fcc8fef56e531d4d044af345057307bc45f78c19e0c0ccc63a507d30ce50fbb
 SHA512 
e2de8b64f742617b4dd057ded7583df0291a4454f61d11e0a302d2cd6c9bdc3d2b5a65711df6442f8f56fa01d632a9360334e35eebc924a137816ba3e8c65372
+DIST thunderbird-136.0-kab.xpi 462907 BLAKE2B 
ad4596f8d08e102d482fc546c857e4f141eb2b21719086e193d6f889554f8488dd7fc5b884e620e7b17adff70398503c0a5343f7b855b4e80a91ee267b5651d2
 SHA512 
a03a7ad037c7248b7d631f3805cb47b65d19627ec1f9e07e0687192afa16912ee7035c319270f95041fd46c9fe053de99303a00d9097cf48b6cc1351ddf0d791
+DIST thunderbird-136.0-kk.xpi 568322 BLAKE2B 
882c6a1e3b3dcae63a43ebee59561a45b543694b3118b04763cecbb0c2b7cc16a29f347f866b583aedbcc8f51498d060633e1c0ed21376466f8f877f051edd88
 SHA512 
8721683466e28b39c60a8e91fe45158ed8a6c18504968c033be3c9513b98182195b7e9c6b056cadf0b02254f961e3c3788f1a777ecae941f1ee46c107b80b606
+DIST thunderbird-136.0-ko.xpi 507762 BLAKE2B 
7ed2993abea197d95a24d64fde9c5755a99f91b09215cb062ee9e9f6846d0fcf131fadaa6b56358ce3bccf9cd76bdc2de30b0ae7bfd58ebaa57cb840d6640409
 SHA512 
73ebc1fff334d9c140254f157150f05e8762239503853c18c3a19df60209fe890b1d06d8befce0f53ab5ffacba57247d46cf195b987f00b4e485328d593d0586
+DIST thunderbird-136.0-lt.xpi 441639 BLAKE2B 
d3d91a39a9fd5c9d4e407c2dafb5e068af7efed2aa5b1a45dc4e75e47ab327986f9cda7050ea38e24f503645eb3addd7c1c5d1e763e12a9ef61d1a2bc20d16aa
 SHA512 
89fdb10b7eed2a24a4b9989b39003fa2f4cbfd64d5542807f0afb593a9d0199920a47cf1817d67645747238b8d38f1f611429a3277a7505f566d7a8d73666df2
+DIST thunderbird-136.0-lv.xpi 390956 BLAKE2B 
fb8068df10f5a7620e2cba6ec033fa482de316dd8336108c0e50dc5e8f251e9ff7938edb5da95ba3431e7decfa6d12a03399749051d69ee18ff51bd2a34ece2f
 SHA512 
ca2703249ff5b78501252da66662e5a5c248199ab006a0bfead8a0cfe74d12a21ca1f63952f2c6d7dbcb71c8139cc16ed0787838285e884716fba54c996a7532
+DIST thunderbird-136.0-ms.xpi 351080 BLAKE2B 
56823fb4253a7e1186f1496b1bda21e441e62a7a55c053ec473f70368a686bfb5dc4acffe47bff18c8d95568a8617fd7ae02aa42afe4b80bbab65e94afd30ca8
 SHA512 
c48c07de580087a5348fbbc15cd1c78b02b778e333b1a4b5c915d61a6fb479ac7caefbe01c92beaa0453912a9650525e74599847faaef4988341d24e46493612
+DIST thunderbird-136.0-nb-NO.xpi 441360 BLAKE2B 
5520cb215c446546b39f1ebf92b622f5535da19fc37b79937c757be97800b2816e39575995cd6e52615650b42f20b76de0a95fd17471eae24b13310b4616cd55
 SHA512 
e414e1b0850385e6698b32d20a9b3298b14e1c896aed34e83aa34622975866cf252483c13e963d936b8581bd6efe426970b237f13e2da961408676883a664760
+DIST thunderbird-136.0-nl.xpi 474915 BLAKE2B 
87e7294d199e24a6d1077ec2ba160a66799daf55b0dc1bc462a4a4919b01aa15a91c6d4237bdfc4aa56b22659387188db2772219a46cbe5db4847d7fd5599eb5
 SHA512 
dcf011efde48b4961ea75652b72dfa5f5cf45d37a65298c59732d968dd6627878512defae0e64583cac142cb318361371f4854342760e658de3b4230846781d7
+DIST thunderbird-136.0-nn-NO.xpi 459879 BLAKE2B 
7988c2ae5aa240b6a7fdf34231a27c40ffd10dd0d79e15e7cde431437a8bfc5363bc6a6c199e5141ae8681cc6db624bd4f1cfac5db61a0a38c91a5c0a6f14245
 SHA512 
b1f5fb8ebbbbd93594e5b70984bcca8a3556263e9de3a89c2bcf355a203d880e09a4f896b57ae3419db83ac8836bccb24c5e57bdaae870a1582f0e2baf2af8c4
+DIST thunderbird-136.0-pa-IN.xpi 431273 BLAKE2B 
2f73749875d9a6c1d92143a4b6987478237c9de0c68d5adde0065fbd77944ca4014195f1716423c46ef5ab0175d9de17bbc2270835343a672d103f98e0934b40
 SHA512 
5e9c34f107d519597f840d1d9d4d29ec7ec0a533a4ecb4a92ce44e64f6433f6196df6febc7b4155314fbfc086c279d994090e991cb0baa4137cc7b69885c1631
+DIST thunderbird-136.0-pl.xpi 507839 BLAKE2B 
645ec43910da2c2bf8a71db3109893cfbc23171391325de0ebd70c24d01b76f0b3b0e6667d02867a3447d7113027e8513f8813509c776fea70e17f6fd93def3e
 SHA512 
e5e0a1fb882bb5df87a357a38e34ac2baa8e93d55e8a05e1d3766fe462a80864cfcefc181f700207dbb28e55f3fd29277f7c0408d14d01514bf6d6db485444d7
+DIST thunderbird-136.0-pt-BR.xpi 482872 BLAKE2B 
2d49ebcf35c57095bc1701c19c62654e389d8411b85a115a8965d665102152afa81d9c3ba426968649c9ce019ac2be29661f474c9c9714033399e344841961d5
 SHA512 
e887b4f45741e93ebd74cfc32985d1cbf1dbb1d8132e03b6fa069c6ba4e5a0d044f5b07ca752dbaacaa33213c7d680d555635ba6c40962b4e05678afd141ef49
+DIST thunderbird-136.0-pt-PT.xpi 477513 BLAKE2B 
4dd4a505a9ce2dd5569d564323c6a7e64c0a50165de5d310369bfc3bb49b109410270dd04247d82a3637638322079f2a5b71a879646536ae058349d845c09580
 SHA512 
dcd1bb991aee568a0343f3ebf69de81e4b13f38aba23c553f6717f114bf759cc91239f95760fb51237462082dd72016ab77a101afc088c8bdd951583197e8de3
+DIST thunderbird-136.0-rm.xpi 483302 BLAKE2B 
7e7ceed559907dbbbe8fdd437c860c758a56ddfa0f623c94450aa3bde9e7a7ad7b25da20508dd52d20a4a38c3c582983220882706fdadc9dfa2cae447ad6f72d
 SHA512 
d5ab5413b3f0e951eaf4062b9942532984a07dcc2e318ff2f51c5791dc2b273c6285f24154feea5a7307b40b8132ebb893f140502d052e4ae34566ae09f85ea9
+DIST thunderbird-136.0-ro.xpi 417116 BLAKE2B 
61bf3f18ff8ad3541905d5e8f9466e2ecc35f3acfb4367a3ef3ab91c303c04dca08e43dcd4a5fff40811a1328b69d151ea0fa442054e3cb10bb8c0ab2eb0d987
 SHA512 
0481c653d1da62db9430296572571631e87c4e214373cbe7120b77469ecf1f4150e7d527e89199648fba74fc4a6e758ebb2f3df88e3256d5c6aa80ff2edb1096
+DIST thunderbird-136.0-ru.xpi 583974 BLAKE2B 
b9e8e25634f52852b0faa75d32f6021f9f5d964eec5a773beffc7bbba8e3e49c57de4c97beb55dc0ff7a65b178c7843fbfa6c12e3861402082191c61bd61ee8b
 SHA512 
6f38833eb9c80c81d0f08639e624a316903f8d27fa97fc8c6997fbc2fbfbec3c738b54a6db3e0e2ed8881ad72bedbd448af707bdcaf79ac28f6415bc8463fe0f
+DIST thunderbird-136.0-sk.xpi 511215 BLAKE2B 
6486ba4840fe3d94c8d2486428aee6d5a77c3eb24486f2b96ae52ff467f165fe0efee180013d64941480b197627b1f3d1bc42b005378a2020241a9d4dd4f4ab9
 SHA512 
3099ee335d126be2f9ffa0d42c59021765945f1bb8b9325d6854fbe9c2772db609b4910b80ca62440c6982cae72c955d74e6e4a1f390c2792e37b023960adae0
+DIST thunderbird-136.0-sl.xpi 477414 BLAKE2B 
a969683f1338c0acfc2dd04be85f5270f9395c75b8666bd7362c6835b669e3c19fe4b1685a4009caa3fca20662eb6695415646eb3a9d28ef7bc4fb1bbebb53d5
 SHA512 
d40029563d4e1db44796c757d1f1e04d95043cbf2411568649ee41deeafed0e625d79366fc961fa19a4b2f86eba104d69a80a3e93b95090d19b8586bb6922249
+DIST thunderbird-136.0-sq.xpi 498450 BLAKE2B 
25c329dd3538e91bd9ac1ef4d7c3cbc4a18affdc9be9de4178d5f66d8aad82617b1e71746a57c333cbb30997842317d9b8ad5b70f315d53256e8551a2c740132
 SHA512 
3e3145f1ea4d9e95e0daed3de19f4b9a922f2657158f78fd908796ee69f74b8b3f4d32f591199ac69bc02ea9227cead12ef751133f536bb8602d84b0efc977eb
+DIST thunderbird-136.0-sr.xpi 495677 BLAKE2B 
affa4d83c8aaa0d4333b9d19b69cf35e2821b2a375a3d7552dbb071b8fe1f6a8d745faadccf10bc8dcd7fddd67a1bd225082538a952c130ddb06a17b46bcf415
 SHA512 
5c0443edf2d073c7072f16abf7ac3dc91dafa7bac71f5897ef9576f7793fde581fc36c3dcf04a9f472f4a46f3ef2f83c9427dfde87c7da461bff6e0bb3bb0d83
+DIST thunderbird-136.0-sv-SE.xpi 477339 BLAKE2B 
0cc3cc38612d2f9368e9386ba5bf44564cd45912212bbdf4cf48c0a677c03336a3575b02fe42801072a867e683c7149525be896d555ac7130566f6efbd0f8a97
 SHA512 
68713cd49578a96217a9a2f3ff2abe149b046901bcd9dfbc419389779cc1b9b08d08f0bb12c2e3950f84e2088a612d1805072331ae48a8bc788ae9ec61f5777c
+DIST thunderbird-136.0-th.xpi 560618 BLAKE2B 
f90d765016b85e5e14ee38a8fc8db56fdb400bc3d5ee97b4e840255e781834c8c3f3606e3696084ca01ea6ef5a38f35bbb34a3531e1b70c43a9a6b82a60b5f08
 SHA512 
028e603a4c3cbfb0ba41b9fc332d04eb9ebb7ce8c758ceb9d1d86d6c97228a8d842755869c841e01a1c456bb8cef06f97074533bb2cbfce86ade0cd2d2629b6b
+DIST thunderbird-136.0-tr.xpi 487412 BLAKE2B 
745e6e9af1c535c6790eb6489521bc4b1b40e142a7d3ca2b33a2b49b68787129f5f615aee983f19c93ec22ae8eab777e407a18dfd56598cd683a8f636f4c7409
 SHA512 
3c66f22442c0c0a1e4b2a41b5b4ace8b192e1a964c14be6ab85f32bfc39388c52e03c3efeb5ad60edfab12eb440b703273093ff8b0dec6ece9f37bc5f3606d7e
+DIST thunderbird-136.0-uk.xpi 575503 BLAKE2B 
ad716a1d0f4a74954c17c53ff79363ecb95afc637e675e3cbae7f5285f0469a383ad466e62c9a9f16ead0f50c78e0e99e729250af5f29bb22d8ce5b8fb34af56
 SHA512 
4081e72bc44f56915c25093eccc6af325928dde5daff629407c5a3c19ff6e63ea11186192580103a6865577276f47462b0bc4d0b986937bf4e4d3fc584714832
+DIST thunderbird-136.0-uz.xpi 354651 BLAKE2B 
1b1298a3e3eb328589ba98e9e76d98efc1b00d26a0a8698a53d1fd04cac03303736aa8b442eabf45e9d958b5eac7129966502cd33ee3790d340676dcd12e2346
 SHA512 
6fb8abdea1f823ac083690335855e9655b91335bbd64587c6cc869499d3cb630b3ed44caf703b301f48519e94e93e820e2d814759e9778396933e735572bfd53
+DIST thunderbird-136.0-vi.xpi 511066 BLAKE2B 
5bd84d25a90f4bf99422544605b1e5c7d4eedbda662494e2e4a19c3cb62fba95bab4e829094e30ab2b271da0d1bb5502e6c22d7c5655b6157ff244e20a305a1d
 SHA512 
5456eef9e20aa4d5e57540c9ad79786b12dab2f5bc14c3c172dcd8c3bd432870f0a244e81d09ecf382d51692e9fd85060f8dc0ce21f8735f802851b7250fa3e2
+DIST thunderbird-136.0-zh-CN.xpi 500523 BLAKE2B 
cb7891a99f679ab9d61a02099a81087e6f6938948ed735abf85dffdd1ea09ff4aea46d3ef6cca11492a1af3699e583c210ea90165325256e37cb53d465102b30
 SHA512 
517dd3e3fab2ffbe6e2f47d8e0b690b3b3a3180e5200023d7745f52e218f14fbc628f67908655e6022c27ff3a9d0865f69d1d499d5588958abb853b7f06a582c
+DIST thunderbird-136.0-zh-TW.xpi 503558 BLAKE2B 
c943c3883d0442e7faeba9502f2202ccb58e08551e8f0904a0ac34baa79a5f72fd4dacf4d22df14e78448cca3a7d0523a2dd9b44048ae0f3273d658e9c08b413
 SHA512 
a95e42f58a1fcde06f5509a723dfd0f3a097c95fb8dc9b40fbac2e81e9f8bd62976dad7fdeb16f2a67f136eb83427b73773ed12b41b522a22011be8e1255f3f7
+DIST thunderbird-136.0.source.tar.xz 724177104 BLAKE2B 
32a1c23efb28625bf900840ab5eeace63f98c10f95b3e4f665a6fb6b8c653319adec522bbf76d60bccb0f2673ac12c6623ec1cca37eae02aafa08594419d1479
 SHA512 
37c94258b49a7e87b24b4cffaa6eae81698356ddc3f0f49ea675b885dea2c56a3ca758dac2ddb2720beaf2f34faa15a9ab9b5eda0b352c0c8f14167c01838714

diff --git a/mail-client/thunderbird/thunderbird-136.0.ebuild 
b/mail-client/thunderbird/thunderbird-136.0.ebuild
new file mode 100644
index 000000000000..c33f2a728200
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-136.0.ebuild
@@ -0,0 +1,1153 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-136-patches-01.tar.xz"
+
+LLVM_COMPAT=( 17 18 19 )
+
+PYTHON_COMPAT=( python3_{10..13} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+RUST_MIN_VER="1.77.1"
+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 autotools 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%_*}"
+
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+IUSE="+clang +dbus 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-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +rust-extensions +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )
+       rust-extensions? ( dbus )
+       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 '
+               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.26.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
+                               <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.108
+       >=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-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-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]
+                       )
+                       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 )"
+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
+               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 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
+
+       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 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-js-shell \
+               --enable-negotiateauth \
+               --enable-new-pass-manager \
+               --enable-official-branding \
+               --enable-release \
+               --enable-system-pixman \
+               --enable-system-policies \
+               --host="${CBUILD:-${CHOST}}" \
+               --libdir="${EPREFIX}/usr/$(get_libdir)" \
+               --prefix="${EPREFIX}/usr" \
+               --target="${CHOST}" \
+               --without-ccache \
+               --without-wasm-sandboxed-libraries \
+               --with-intl-api \
+               --with-libclang-path="$(llvm-config --libdir)" \
+               --with-system-ffi \
+               --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 '' --enable-update-channel=${update_channel}
+
+       # Whitelist to allow unkeyworded arches to build with 
"--disable-rust-simd" by default.
+       if use amd64 || use arm64 ; 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, since it's not activated 
automatically via "known arches" list.
+       # Update 128.1.0: Disable jit on riscv (this line can be blanked to 
disable by default),
+       # bgo#937867.
+       use riscv && mozconfig_add_options_ac 'Disable JIT for RISC-V 64' 
--disable-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_enable rust-extensions thunderbird-rust
+
+       mozconfig_use_with system-av1
+       use system-av1 && append-ldflags "-laom"
+       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
+
+       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 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"
+
+       # 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