commit:     f1f737f658ad5d4c2a47e919b40587197fe8e497
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 19 08:54:40 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Oct 19 08:54:59 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1f737f6

mail-client/thunderbird: add 115.3.3

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

 mail-client/thunderbird/Manifest                   |   65 +
 mail-client/thunderbird/thunderbird-115.3.3.ebuild | 1322 ++++++++++++++++++++
 2 files changed, 1387 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 68c9890400a1..c35a18de9849 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -130,3 +130,68 @@ DIST thunderbird-115.3.2-vi.xpi 742632 BLAKE2B 
b96d81e14bb8ab75f92fd0c44e84811db
 DIST thunderbird-115.3.2-zh-CN.xpi 740611 BLAKE2B 
1a84b639a2873efb16db470101cb817ee2f881373369c2d88a3681fe0a618f6c5d80b3e6566379412bcccefa897f6e2a8f2b53f3ff89efaddfe35f10a8a185a4
 SHA512 
b4a078bf3dfc2bf862cded64adca39cd664e6942dcabb575d7f8ff369049aba513e45253c8a6749d4538ac42ec5fb67eefcc1f95c8e8548f6f2452f64b4c7577
 DIST thunderbird-115.3.2-zh-TW.xpi 743527 BLAKE2B 
1b56bec877791713d00d2a285c8bdcdef572b6f6da1c21abdfbebbf80bb04994cb056a136081bf5c1f3275b7f60cfa0da2cd4ce5f5808dd1c836586b6b45af9b
 SHA512 
6f4df2f3fd9ff7dc543432c4b8929c358c0e2b9bc5bd22bd7093f52315b9af5655a5fb030e87dbf642a0f5dd63ebbbba06772b41ace9ed8ba566c394149e3f0c
 DIST thunderbird-115.3.2.source.tar.xz 533609600 BLAKE2B 
94b149707dcf792fc17ac206a38f5c1cdde48c3813f5a0cb200d1033301b28ba852133ff6f381eb179cb918146e80a89bf0813c06db9ad449945d09f93f70607
 SHA512 
e94bdb940327296754324d8fcb055813247a79d377399b84184e0ff80123240d923aa3745c3076d37f06296c8cc49373db2d8e8a6ac4edeaf63cd56ca4652e35
+DIST thunderbird-115.3.3-af.xpi 542153 BLAKE2B 
e3f82bdd75ab153f7f04925f8ab6756e4ecaefaf2f2b7bdd0b7426605847fbca38152ad9624e9c22dc759cf73094bdad79cac9328cbdbe116d2afe4ff40957c8
 SHA512 
6e03e3cc7afdccb1c7e9f5b6c3cd45db216c5402aa8f7313758a3bafa4000db67b39f23c71b5b7c1aa81aa9b4ee4fbc195d37d178049033e71b2bab9c9dff608
+DIST thunderbird-115.3.3-ar.xpi 654724 BLAKE2B 
1bbe8993309f7557ef8488d866049d4378bc81385240ae2ec031b66901fe9c6ef03ccb1fa2a3297c7e957e8aa5efce5d087cca1ba54d7dd9d7f755f655fdc737
 SHA512 
9515a13ca7e1e47ef01d41e16c7c4fc98c0191d9b68e5ade077280367728dc14b136ad1d3c4ab053eb757fda558b4679352aefd31667caab75486d125fa855da
+DIST thunderbird-115.3.3-ast.xpi 561119 BLAKE2B 
fd97cf58a0d3c817e6f0cb2305fff9af1a758b2c3ed344d883e7716ead7dd085b6abb322e3c9f9dbb944be7617d2663244e7f8d5f9f8dc550e4bb0edcf61b07b
 SHA512 
4bd1fc1b9d79f2c9a7dbba2d6d4403f539fd4ec6681f7b582b5918254dab0a46fc6df314e96da85736e82c6010f9613adae98f881feec904a5384ace4e82d6a9
+DIST thunderbird-115.3.3-be.xpi 694083 BLAKE2B 
175dea85faf801c4c1ea2a657d6106a6a5cdb76a5de718541f63c870ce549261ea4eaeba6811a233122f66b9e374a91fcae1bad85b7b97f384199e2b7c8b919a
 SHA512 
0f3c9a62712c858f6c463b6c927bcad92388d47937ad0a0ba347ad937683b6e325630d81de6586f0238e5a1b5ff026de96eb2855cbebae53be6fba89081c5fd0
+DIST thunderbird-115.3.3-bg.xpi 681252 BLAKE2B 
0334df6d0ed6b796b4023369ee9843dcc3ce946dcb1c701e875e344d54fd7e4004283b67c0ffba042d1595cb4c7887072fc001da8ef728a5d277b1e950377034
 SHA512 
c96ae9fb4293df6da22bed44ce34ba1a65c13d1675fb3321529efb5f93394ddc4de8db5b82020193d5d8e46882306ca06fdc42e2b423bab3dbab9f88587cd3ee
+DIST thunderbird-115.3.3-br.xpi 626934 BLAKE2B 
b13b6b744e18a9eeb11433a841af8892a6083b0dd7f0be8c771f954a8b7879b4f643ec34c7f59547837d5d1ffec91195ab85751e0bacfe9c3ef6617f261ff152
 SHA512 
2658d635802807b24443184f7832edafb730cf242ca1c90bdd519fe2a70fb9eec90ff6b51d29d6f641df284ad8608795cb34f0a3f14fb2bd38a6633852a22aea
+DIST thunderbird-115.3.3-ca.xpi 670651 BLAKE2B 
7bb09dd35f6bb433ff4848c58563c163df156912206b51a1be646c23dd0b63878d3e745ad6cfedd96915078553c5d2b4e1d743fd19559cc1f8f54e6febb2e430
 SHA512 
d803ff8003f41482ec561ae0da1ed61e24ee1faa7516d25bf629d33795a4ded7292ce84078d01313d7764df8c01f868ee7bbc86fbbc90999ca487c4dcf9d1c14
+DIST thunderbird-115.3.3-cak.xpi 657816 BLAKE2B 
a654d9bd3191e09378d25459f15d9b0277984477afe150df40a3175465e5f86559601c81464994f8ca3090038aed055dc3f51989c3ad8c444cfc635eb0a229fa
 SHA512 
62f0f97c5900ffed2cc3d50b187918f430e4d1f5e4e7659e56b642c936619304f875ad2a04937792bdc6f94acb5e516c01aa79ec70df791910fcb06d4c8e7dfe
+DIST thunderbird-115.3.3-cs.xpi 733801 BLAKE2B 
a72e4f87ae2597c11e4adcc3f47c3acb32b91d11bcb124298732a88f17f60f4712cb412960c2aa76331428c41e2e0ffe3f5cd28d2d73858ba27c8667a1a7044a
 SHA512 
b30eba64403bbfa0531e2617a8816b550d5822f2cd00855169b17fcb4a1c0f3e948ebc8d69bcaa8ae81310df93bea1f6a0c8ed52244ababac17e665000f9e922
+DIST thunderbird-115.3.3-cy.xpi 703266 BLAKE2B 
e106955358ee4576ca183d71e1d4d8fd9957c182e3b22abe9cbb2a669ce141f4027435dd5957c3f2ab33b116a61580bd648769eddcac23cfedfbc65f99fea98d
 SHA512 
d133e337859ecef1428e51516374b3e147edbd2f8e0492e14698820b92912590ee8263a44665a1d1f402986c85d69d758de3896f9897f9b82a997c412b46b687
+DIST thunderbird-115.3.3-da.xpi 690752 BLAKE2B 
0e9762ab3a1da479fed1dd6054941c93a97a30ec363eafd146c49d9f869caf970f7550442542dedcb68c4564e9264d5ac2906d2906f86a2e575154ec0f24b4f9
 SHA512 
824f28ed212d43551f870a94348a362ff89a70572399be39a4f81791465fd43ae962e99d6d95919ebf1e11664ff07e994fa1c1a2b824abb0ba89c6684b825400
+DIST thunderbird-115.3.3-de.xpi 720201 BLAKE2B 
2adbf52090902e76b61ec452342ba97a7c31bdc4c55146e191619b960f8df61167d1edf4795e9699305bb257727cf94932bf14f623154d055b77740454ddc919
 SHA512 
1295785d1b1aee4769f8265171c6f4812869efc12b404bac975d59e203801d3378e39a4c381fa8ee325bbc0152d1ec27c6ab33c636395c1a918d7801edce258f
+DIST thunderbird-115.3.3-dsb.xpi 737297 BLAKE2B 
769a849129e76db170a2a8d732b5a232ed6d7792dcbee16b60be0fbd80a654c834b1af76c51805f237cf09404b19446b0657927825955e6acb17fb54109dbf15
 SHA512 
17ffed68293728ab09130911476f5a034288285a9c23cf01dbf19f18e556359e8825e6a0311c4cd35d10827e06cdc09115bb11b7c0f9e490738721ebc1e43402
+DIST thunderbird-115.3.3-el.xpi 836691 BLAKE2B 
377b976324a5f6ccb8d636017e8107f94ae99124d55c0218dca4826c7454761068d106c208e7879ce2a999ae1908e4241864718d5ff6a3d516080bea110f3dfa
 SHA512 
c8cbbfece77bc6c64e285180e86d0be4160855e04b78df90e48f84cd8fc4036a06e42e516beae9cbf24acb598c7f820e5a1b2b90285a80bff00cf645fed5ba38
+DIST thunderbird-115.3.3-en-CA.xpi 656172 BLAKE2B 
1e22213a69926c87d8522bf68ac033cd27328d5c4d8ed9f383807ae4ec7ee074105b86dc8c5dc8abbca41ced184920e7583453f65cf555b100a52787727b281d
 SHA512 
d5dc92e2468869e4f84e695bcd7ee85339c495484b115a72daa2bf3bd54d8048ab2e6751ae933fe1c66d80b4932ab966aa3f9b5b61c82366c962c03cb3f36a8c
+DIST thunderbird-115.3.3-en-GB.xpi 661451 BLAKE2B 
a1d2c18c30aa30ccbfb657756d249377139190dc3a2ea5c2c425c9d56ee202ecabf633242f70542d23793eea3d87dd10c25b9c36257f0b385699ad1e3f81e227
 SHA512 
22745e5d2a01d37e2e20b6a7fca672789d4052ea78d3ea4e5ffae36ecba583d47738ca507dbdda5e7148b557906c6459dbabf9dccac53357a9097694bd08088a
+DIST thunderbird-115.3.3-es-AR.xpi 713034 BLAKE2B 
89d319a984412cd4f46d457bbc89e5c56df31253cfbe46cb98bb71f8e5a25f917cf0397bf4ff6f8f8d80e8be18a87b16b992e7ad96f5afbe01a9142d21c67b7c
 SHA512 
7a3e735da66e17e073073cdaef636c9f57242a963074929141830b7b6497d0ba6efe9908d213714eac72254031aa631f1e92e14069b2ad281fb7c326f7878c43
+DIST thunderbird-115.3.3-es-ES.xpi 675615 BLAKE2B 
40158900b8d19f880f01e798aa4fdd8b011994e6625f5a59e38da0453064b7803020da72123c3c93714973a41dcd6ab2382a0e918910c63e0c284457205a2f94
 SHA512 
b972cf06690fb815ef299caffbeaccc1612446aeb314edcb42291b602ddde2b330c4e48dd21ada08e073e201b7ddca577ab8610db87e5962f2316cdfeb145f2a
+DIST thunderbird-115.3.3-es-MX.xpi 710140 BLAKE2B 
3e8cd374d68e4cc95768f8ec13afef633ba503f5ef01317fbc462850b738416f6976099b968d98d47e307afc3cd464b97df2a850e57736a80195a3316484edd0
 SHA512 
c61ad317f122a06899f83ef8d1ea2206a5e6941dc1872bbbe74f29c2ca3598c5f2d28773ea4406094e804e28ec757c476c504a63aaa6b72142759466366794ab
+DIST thunderbird-115.3.3-et.xpi 671818 BLAKE2B 
14095d082ece68ddb377a6bae51c24625ff453079a70ad35d409de429e12e0acf29c2751027b1fc3f3ecfc1d2d61271ca02d71e2098f1196e7bb94c487cfa341
 SHA512 
37d8ca601b5b694b230d692260ee8f7f2bb7d497bcee19fbbd230166d8a2182ad81618eff93722f5286be426f80e200c5edde694ee2e505f63cbfd59f9c288b2
+DIST thunderbird-115.3.3-eu.xpi 692550 BLAKE2B 
c59a6e6fc966ac39ab169dd6a694a754b01cef80cd2f26e964dc4a41496c04ce677e018fd1654222fcd094bea0b5473549bb328d169696c7949d473fdcfd740b
 SHA512 
7c50a528a6b958a00a5df308c597b715aad1b58568b6079c5c49ac05e0b52cbf489c07a3ba9bf4fd58976a69ceb9e7b1c9efc56fd5f9ac86025ce813671f2625
+DIST thunderbird-115.3.3-fi.xpi 690414 BLAKE2B 
6276358b93309cd5a770d5739c6d09b8a5187f308f9109703802f3b5d7155e28b71e7a1e26d3c691759c9eb16d4e38be0ef8b89f766ef50ca2331293386b5505
 SHA512 
fb56d6661e5ce497db7d6f33b4fb233970737dcd60b927fb2d0c000031e53945a07654b7c415ef6c81f0035bda5743bca4c3630f2ef49119270784fd1a697a53
+DIST thunderbird-115.3.3-fr.xpi 725269 BLAKE2B 
221dbae0ed0d2c81eb4b278a44abcb8bd9ad2efe3dfba4fbfaac42230c0311bc38c2ade492c2766a36958947e0b737bc31c5ecac3b1268b60057b1dba51d7b50
 SHA512 
c2c1bdfcc0481d051e0617d41ffae3ceb1533bdbe50a16c650e47172da253745b5c4ee85bba8e5e292c6e217b502f43411b239c5f2b4d14a801d5e9b7f6d4a70
+DIST thunderbird-115.3.3-fy-NL.xpi 707839 BLAKE2B 
d0c81707d9f94a27c9e6237fcae2b3b8797fc0441be1e638fbf5de0efebf44c07c5bb7474b4fe6cc5e3f92d22eb1c7e05f3e50c0755e2d93133a3e6476833778
 SHA512 
91c83e07a65960e6cca325603c7ea88a47a0eaddce85caefb6deb805c772487527f3e4102b35af376b23c3f0ebcea7abfe9c48dbaf5e9b40165ce087aedbcdc6
+DIST thunderbird-115.3.3-ga-IE.xpi 602152 BLAKE2B 
493e7af03347da3b9854ba0b843f1fd7c17ef8e71b7a07189ce123cf8fd1a2e0a8a2255c2c77561074a356da15a4c8fbff321e200359d439c53059b5c9f063bf
 SHA512 
39e54ba82f4ea9d2224afc0c8fa31bd491a16f4aaa2d80f13bf7980165d9d0e19050495f01a5bc9175a91cc501b2f9aa41a576700c26e23b5df1883b71e6c939
+DIST thunderbird-115.3.3-gd.xpi 702992 BLAKE2B 
2481d0e7e41fa36207db53be028b8d1cdf132a7417fa47e09ce69c48f591b06e1e2d660f71fde733fdfaf351e7d5ae4a3175d041ceb07795c11956563be618f7
 SHA512 
94afc5372183a3c7f4867a92412e8f776f331d0d4555eaa2f8be58612804f4aead50b821ae19bfe0eb03e1fea7719db12ebe879235872cb17b475a4aabac58e4
+DIST thunderbird-115.3.3-gl.xpi 705373 BLAKE2B 
0507f26d16c671fb846df8b156577ebd412716c582447b9873c5ee41be80868b4289c4b6399a02e664f4cabe762fc4c279da0fa20dec510fc3266141d09a1b3d
 SHA512 
d6c6229b3ae221034c7ff4cbc72c1ae5ed67bc9d04e58fe25dffdd233b91c2888ad46816a9851862854568665f08501e613fd47b8cab2d8b1c65dee566d42a77
+DIST thunderbird-115.3.3-he.xpi 667477 BLAKE2B 
aeb553be188d5401e932d2e08c1f33e720ed648395c5dfd28a7a5d11d251fd24e841a2180a8c9d860ccbc2aa9441a0a11f75125b01f0a9ef10fe17c284ef78dc
 SHA512 
d522d930e4bb2da9b7361817bba91bab7b1cdb3c2b03d9d60765c87c4192704ded20b6d467a62d2dc5b8e83f8517f4fe82954874e14603341c78d81654d747f4
+DIST thunderbird-115.3.3-hr.xpi 674805 BLAKE2B 
a4b19a2be0faf4409968a62e4bb5db323d25e6b8f46e5f81659131700447b0a11c26ce362ecbdbc1e6044dcde1f67328aacbd1a0ddb5fb0367daab969fb48b00
 SHA512 
c488fd450eb4ed67c063be5ca50cb37d1ae98296bc7a22744cbc4878272ef83c7f176b9fcca7b0bbd9d86b9758ae81d4289e6357438d0615efb9a07db8c7a5d2
+DIST thunderbird-115.3.3-hsb.xpi 733833 BLAKE2B 
7ab3b158558571160913f15624e1f1610af8911af2d5b75c8a0b148959dff99db6a7ef8de891a34809500562be5a5237aa492fb22b3e8ca53d4355e082a76b09
 SHA512 
29e80be348b7779671d253bbba47d98b7f53ba9120af17b5e461ec9e10a9ca38ddcd098616977f064541882d2f0b91b3f3342bf1f9f099468f17c1e87d7be4e0
+DIST thunderbird-115.3.3-hu.xpi 736574 BLAKE2B 
ba9dbf8d04c34395c0a8e06a5e5fbe52c50cf65fa3f9683c95fa8cccd2b9b3ec69cb89df17d58c5c97cec7a686d057eb32d79157e817eadcd978ec3ec8acd76e
 SHA512 
9e714bf8719af828a7e4d8ca53794fd7bf813caabcb3785d1a4466fd40e1848ef4258dddb1b948d4a8e5c568a354f53d2e10fb8770ee9ed5466bccb15a032f88
+DIST thunderbird-115.3.3-id.xpi 642540 BLAKE2B 
c60a1ec1e58e108a13e4f667965933d558fd64a1af85db2728194d63530ed43c188c4e811f1e34803ed51f4c6db7985eb6d47b600e397e02e44618e236ea2925
 SHA512 
995d9166c1f1801e4d0f4df4572ec64080b7d29709e53a19a843391b6a872b60714a40c128c525a003efbef7300e0ad109da44a5b098bdaedff972fc5727b04d
+DIST thunderbird-115.3.3-is.xpi 701959 BLAKE2B 
c3c96fb17974a845c69b0edc0353cfc48994dfa91689179b46b80026a51c79a785ae9bd5a5885aaf29a5ca49b6612f673224dd8dd6d5ba1a4d4291ba944cade2
 SHA512 
8288e6afecef5dc2e883f3becabc637f20a591da5000c53a9b1dcd311882e3ed13e96b2fbaf692a5dd0132be93c45990a0e00f347107905dedb6a0cae0cb033c
+DIST thunderbird-115.3.3-it.xpi 643458 BLAKE2B 
59bc08519ecf0d480001ac3dc7a348b28363bfff4a810b714b2e6a8e870ae38145940a8436623603b05aaf9c34d0395fc755f3c1ecf139236ceb7223d79402fe
 SHA512 
54cabac8f6227405b5f25c8c73a8e4b438d386cb145aa7c6a9ed1c7e07e179ae009c716e1b8d686fcf45e4b7172bb2f568f7c770904be4a15746b5e67e4c22e3
+DIST thunderbird-115.3.3-ja.xpi 777476 BLAKE2B 
4f2c23f4750187adad9d6cb9fba2c657678b46ca62a1abdbd87d27195dab01a0fd16b10ff96997c66a2975d892e411f0891529e15000659493b1c4bc5a20fd5b
 SHA512 
8c55bc4ec1527f805a01037605d7802ed79e337a9fad3bce82c19d63094942f63a95e240d7c50930c81969db8fda1b74d7e98817cb7e195f7353dc3ca02ae0f3
+DIST thunderbird-115.3.3-ka.xpi 764455 BLAKE2B 
ba1a5adeaf4ced9706b922b27daa7ea77f5b3592be338b81ebb8759cb1339a2dc556b1e79ad881dfb9d5781e2bab07eb42608d868cfaa5ccfff6d743d102e615
 SHA512 
ec66723547e575f5e3a3f3a9f40fe8b86dff94c630ba61e739e3aa3cfe6c5db9ba779c2b33658ba8f0bc449a684d9ef0a317963c02058d30562bbb073d994f10
+DIST thunderbird-115.3.3-kab.xpi 698918 BLAKE2B 
1eb54072eaca5765a860d6df6524c88f9a74bd79df6ddf82413fbfff6345f85286a6314f4b73e9e4a68b9f67d72ce178b8385fa512373c802f1aa147d11ce5dc
 SHA512 
1850fa688131a1624e1008bc08129af5091a0c6ac7c3d7ec4c14f265cd4fc0edf08e31e41a29ada820ede6d0125d7224182464641d57bd69fb24d6d5666bed70
+DIST thunderbird-115.3.3-kk.xpi 804989 BLAKE2B 
91b8833edbc6c69ecc26d1cfb9d3f105b43a5988b12143f0736d7b35bfcb59f095d64cb34a56c71d7ca664bab5fe06bc1d682b928bd37a94b1c8ad596629781c
 SHA512 
8ca52879b649b71e5fac18653f4994dc545be86ed0cff276c225a01d79c55b802790d2904a746b51036ca1fce09212238f2b34f9e72654fa30662faa291e790d
+DIST thunderbird-115.3.3-ko.xpi 712588 BLAKE2B 
dc050ba9f6af88005ec11965ba107ab7d29337898e496ff66e85959fef2a37ac574006bb0aa69a6ea62b4d5c0747bfc3e49221b382bead28c1f3b778461982e2
 SHA512 
1b2385a400f43d9225eb1047ae0e9c6fcb2bbd9b3eb79805c38b5169c6defb664426eef87dcc7ed3512bcd8aa2ecc7769e0b1ba29b0a3274733119cf0e13cf1c
+DIST thunderbird-115.3.3-lt.xpi 680094 BLAKE2B 
093dc209943401e713a42391ea683bcb1400649d4a9b95b633b1e5acf9c74194abf34ea364ee58c199c8df75d33a51e703dbecf287c5f0cbef30ca980c877735
 SHA512 
ff780cc489710b542776ad11a6902202416a13ff458317a7be9e4c2b0516191f2c4b5e62c733cb382bae80d2c3aa89dfb4f9a2a0ad6e12d4105d11054a3a8ab8
+DIST thunderbird-115.3.3-lv.xpi 604647 BLAKE2B 
4b48583a8124a3ab9a8c8086e542f936c1a09866361b1d9de93c8a61595b42400a9f44e64d634c7dc64c5bb90501a6a285b906113906bd4ad80e5de9a401d491
 SHA512 
af3788cb7c19051c1e154727bfcdf4cfb83e4679c029123c111cb7fbd71ac6a221f77a19affa32da2133fffa3e2f3596472b9abc63db1a1a855cdb4112dfb3e2
+DIST thunderbird-115.3.3-ms.xpi 565732 BLAKE2B 
f65dba33130d9ca921b2b89ad9fb0a10117bc44a320dc291e137fbdd79638ce0804bc34796cc3a5f557de5f059b63922114498b3ceece2ac3390a374900345b9
 SHA512 
0d7502fc427bb1e5eb67054e8807472e5124a562bb9fb40b72e59097b4586fc332bd712851a00ec4a303586b5e6a4c24995caa50f1945173f920f093ef5661f0
+DIST thunderbird-115.3.3-nb-NO.xpi 653834 BLAKE2B 
392cf076bec0f110040c5e26f763b43c73fa9f3fb6b19fde2fc47886705fb63f54f94d9aa6e2e9658ca3573728c4f55b47394c7ba389dc65f26d0d6e4a98b643
 SHA512 
09d9aa5cd0745594cabcd7386182d3c92d458d61106847c86338b636e48e477221df34573e0906bd37f67baf466fec1edad24cc4fae1e4770e7190d59b367f29
+DIST thunderbird-115.3.3-nl.xpi 699385 BLAKE2B 
43f1dc8b50c58a584cb53e90765e7b7f5e83f60e90430a95a50c2a7d5c4b5e7bbf169f8184139a3a368df8879a3165e906a836cf6bc8d072175a698c6f0b9d9d
 SHA512 
2b3d49f107906e381caf03b135e54fa6087897429ab0c865f27094f2d668b495cf6fea010895a1ad369854ef63e76009ff538c541a8bb25274d4103cf12fa571
+DIST thunderbird-115.3.3-nn-NO.xpi 672836 BLAKE2B 
67d7e6723b6760c89e76b0b1fea024dd7b29660efa3516a47c92309d1462a30fbe8e1bb319209d149e20f21a9b0d794681666379b741e56f0179511b3a389dac
 SHA512 
119c85ccbf2685a8575e6e57e314ee1ce287fce9bd31b29525baa87ed2da33cb1392d1d3ac87d264e25ab3f4bdfd2b8dae9aeb1053e5e0ce6aa4e5f20d26aa87
+DIST thunderbird-115.3.3-pa-IN.xpi 655777 BLAKE2B 
4b750ff8c2cf5cc8be935b8899989161cca00784b86c5da0b946f267b500c753563daaeb0a3e630383fa3352b21cc8d8c10c956ef8afb4743a26d6ad5d4b2238
 SHA512 
a9bbd4cbc7c29ab42583d6961ea25568d3ae6d9bb938c3e2eb907da20881ae05ed952bf1b314621e7bac8287062053f5d67171959d7f1a76091d7e4a74be8095
+DIST thunderbird-115.3.3-pl.xpi 716519 BLAKE2B 
899d2db86d14bbbc00dba81b0b8698d57661d8ad5d593b309f6cb9846bbf1c61fcbb08a79bed2d7865abb95499f793361a456c1d2c0d570769c77038772576d2
 SHA512 
a689bebfcc06e03860e6a8e378b467c13c97778e7b72cdcbe015f549b7438b172779ced7285940998387626e9ef465852901f3acf3947ee022b2886d813befdb
+DIST thunderbird-115.3.3-pt-BR.xpi 707196 BLAKE2B 
1d2cdc3b69075e57081edc5ed34cfa9ecd29107d8cb54e57ca341151ef32ad6d418acf356edb9c53267f6cd7f6fe58f9be50e1828c8e19a00aa6cab5fd0ea4f1
 SHA512 
ee23e819df684d62e7854ad1f581a24a7ecc7fdd72371a925ff05900895de16365c86db871f4b05229018f793b6304dd7a2bb21ddb266f9eb54c13e31429279d
+DIST thunderbird-115.3.3-pt-PT.xpi 688985 BLAKE2B 
2d0c5d81d6112e19dc5f2775d84b5b0e32e707398b2f986667f5a40696c9f98cb464cc76888041c501d69130c6c1223214cb10404ce6540b0baaf1ab06216df2
 SHA512 
dd0084327e690f607861b09209db51b7e1efda6d0e6377cd97512611d2501b0a51919c4c66f1b972e6ad5c8aeea4d9894cca3849a6869fc80116b51f0203e2a8
+DIST thunderbird-115.3.3-rm.xpi 703911 BLAKE2B 
8893be9f928cb6cc3f40d25a17da49f99b2380a7c59b64ae236b0d01bf9561772d19e8cc3eeaaeb0a350cba81df852d9c2f0a1530d9afe1f547e709bd62beba6
 SHA512 
209b81e0d90458fe967487c7da9604e9759aaa9d33de4c348510ba06d4c6a4519df1d4f352ce036d2fc510552ef5154d5f532cb6c677eefc1267335b718c8ab2
+DIST thunderbird-115.3.3-ro.xpi 651297 BLAKE2B 
ef40a7f1a78948dca62379652005589c22366167ef832a57e0bbe5b53d0f1f4a7d0fdbfc42562566f8fad6583e32828d63a59c9eebca77169d4601c8d3ef42ad
 SHA512 
441e67b1c33085fea2bae5eda9e8718c25e3aa57d09cd28b5f07eaf5c50df8dda48fd31585753a600ee591071c2c277eb5f2b43f8c513695f33ced280c6df2bc
+DIST thunderbird-115.3.3-ru.xpi 820779 BLAKE2B 
8dc0920d997bcaa12a141e6c051713ccd2c3ddb9f0b63d176499266364ce8172b2854d90b865aab228bb7218d61b9fe6c05f396d00e887fca516f6b8754451a8
 SHA512 
d757e3d843e880d10c77acde184957f2cce85ce7847eb7894d3080a4f1d793c3cc4a9453492bf330b4bf28d58df6a66aabf10dad4ca0f60e2f10ce503145dee4
+DIST thunderbird-115.3.3-sk.xpi 736586 BLAKE2B 
5e579cda5c644be53c0e9aa8558f0da79103c1801ad05e786e2888603f91e8352b7abe0301f1a6f8407495f50d8b3d3fa26d60847bf3cafa6485acc8ef433d78
 SHA512 
bd7c4c1a28fa8f3f8cb640790e80b3dff8728121b2e9ad93020e54b7cb55450d46bf916deebfa84a3c01e647c5c8eccd23ea5e335e4ad33dc4f21ebdc7c63a9d
+DIST thunderbird-115.3.3-sl.xpi 701670 BLAKE2B 
70235ea0d0ede3a50bcfaa2046408e1e6f32094f5b48cbd4f288fefd80edc4af88f4db4691b76b8f1e41549b79ff18857750c67b8f354775759c0bddcd5de31d
 SHA512 
981cee73acfbc0b6188653f961543348e6927c39076b83246ee6d570b87b9971ebe795b911daa0e2580ea2e6cb7160b0367c557a8a6407c740599a18e15c8c98
+DIST thunderbird-115.3.3-sq.xpi 717450 BLAKE2B 
4ed33ae50b98438a73bb7c1fd734b4e01efead529e40ac6c8d21298fdad45052f4bfc8b12d909b9c8e4409f28f424d9dd7f6cbdc5f6aa6dcacebbc70a9a4c97b
 SHA512 
61c0f288d79001196862aed2705e026edbd946da8cabb28aee434c7935d4a35b082efa9f7b161acfe7e2230b8707d640de8b4b4f611c26818198a6addbbd0055
+DIST thunderbird-115.3.3-sr.xpi 740170 BLAKE2B 
f990ee30c7b097dc58238d96977bd6291ab38aa4c224dad3cb84e6e5ac74d7a60e6a8211e6cd3301156f19600367584f9b27c97c264f9fb042c34e09eb645f6a
 SHA512 
4af3172e8ac1850a80d58bafc23ac2fe71340236e69c6ff68debdb4e6e488e6fb36a88ed942f927817b9b960dd3ad676cec7f3a0e487234197fb0b026dfc81ba
+DIST thunderbird-115.3.3-sv-SE.xpi 702285 BLAKE2B 
9635456b63e154328c947d07553260cc7b1c670f20fb36887d68721424955b0306eb6c3af96a78b084fee0af39a76141c6677fa196a2d8254103b24bc19696f0
 SHA512 
82567083ead335e684c68600199bdcb9e5c27c87d0a8cb3188ec3913443a047194758277eb8c4aff583c70c482305568052ff34a21e8922d34cb79b950d9bdcb
+DIST thunderbird-115.3.3-th.xpi 761858 BLAKE2B 
c341002de28eb3b1f45eef08919910890b9b027c186a4e26938903a73d0deb11845deafd5890f6de90825a48acb787ec1167c39a002c854ae0296d2d7b4848c9
 SHA512 
7a90d2024da2f6c4708dff726acf5bae6fb292e04554fe36526100271d1323723689c775343922321916ac5731d34472405148d2a966c6c9566c8c5fac78bdfe
+DIST thunderbird-115.3.3-tr.xpi 714656 BLAKE2B 
8dc0c3cedfcb9537579cff3da7c5eca2f8129bd131801f29903768f161ae4043c2c23c2ecf1189de14eb7b0470a278d0f0f360736099069353ae1f01db7af4ef
 SHA512 
4771de69044f4b31096f23a53f4cf48375f247e9de578244d2ed130f80a80cca6073d488b6079f482a15ea06a942c3222178328cb9d5237c7bc6acd4b3627d5d
+DIST thunderbird-115.3.3-uk.xpi 813299 BLAKE2B 
b652be161c46c292f960a71f94d33ebd90917a375e44a22ede00ab490b0d714649cc3341ee2e527e7c76e4f375d623d44d4cf33aa5e84b40804d38629dd65104
 SHA512 
b90f174f251b4694f50569a0e4f19d06106ac29b791199db2d06d8e7ffee052c0b9cd8e9a375a4acaf25df24ae3065c9a81db8806535deb37d0f6f6f39ac054a
+DIST thunderbird-115.3.3-uz.xpi 579986 BLAKE2B 
9c6a8b7f0bcd2847bc11e24e01b1eac8ceeae14338c26fe5ce65a5626b81a6cbe864a367edd168cc07e67b6e89afc616cd389dc6bf7018bff09f976d4da4f4aa
 SHA512 
167d6e72eb97c91b98a8f378d27258fdfe69867f8b03a1f4087d51457fcbf49625b8ada57f8a49b3f7029c90dcd99dc41cec81fdf572e1bf4236b735248a4c5b
+DIST thunderbird-115.3.3-vi.xpi 742633 BLAKE2B 
85374540864f79e06f5822ae3299ee0ac9b476a85aa9c065ade87356841a16a6d87ddf7280a93f111ada29b27d4091f35d72355be5dc7d19607e961baa86cc00
 SHA512 
1a807f1954eac7370d1ae446a13fdb44a1aabfdfb01b5d6e553780b8bc5f77a19217cd7aab51870935d281f85059c829421b53f99b9a43c619712822dce53b84
+DIST thunderbird-115.3.3-zh-CN.xpi 740610 BLAKE2B 
698aa0a22bf859f84467f3430481400a46c4bf6d6ff1418d3a07e3bc2e6bb10181c07121a2380bf7a4dbff37f5961ecfa286ab2f2b32a839fb428c58880bfdda
 SHA512 
dd28bdbc8d68abd8d8007e1f3f74e3724b710e372e8f28d4cfe3029e45c4cb42dd4d8aa3a10465a8f7c8e25d66f1256402e49c5ba2ba7fc82cceee51fd639de1
+DIST thunderbird-115.3.3-zh-TW.xpi 743525 BLAKE2B 
55a96f38f35ae017018f7af0e83b963b5909310cb89566cb8a917b0cf365411df62f36fc370bda2c378df08c31b4120d1ea03ca0c1f625ffdc6358c38694bc24
 SHA512 
8ecc806bdd8e8fdaf5fc35050401066f27946a9af47cff17b960eaa55b27a7736cfeeeac48fb65db7c83782d65effecc7b6a3592cffd10c75b4f4bcf40d1390e
+DIST thunderbird-115.3.3.source.tar.xz 540032900 BLAKE2B 
873eaa28daf89b12c5f1112042a19c33e40e6f2c72707ce21874371cb5ace1b48deb5679a625bb370c0bfe233cb9d730998539442df335c4693d3071e7ee59b5
 SHA512 
631042a3cdbcbae91d93eb71c0d4f6a1122e8bc7000d75fcc7d3cbdd0e82a4b31abac590c75771e77ab08d5700582b6dedacf62ce8e21a91e9ea81aedf1bbeaa

diff --git a/mail-client/thunderbird/thunderbird-115.3.3.ebuild 
b/mail-client/thunderbird/thunderbird-115.3.3.ebuild
new file mode 100644
index 000000000000..b55a6da424d8
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-115.3.3.ebuild
@@ -0,0 +1,1322 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-115esr-patches-06.tar.xz"
+
+LLVM_MAX_SLOT=17
+
+PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+MOZ_ESR=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+       MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+       # Convert the ebuild version to the upstream Mozilla version
+       MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+       MOZ_PV="${MOZ_PV/_beta/b}"  # Handle beta for SRC_URI
+       MOZ_PV="${MOZ_PV%%_rc*}"    # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+       # ESR releases have slightly different version numbers
+       MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info \
+       llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs 
\
+       virtualx xdg
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}";
+
+if [[ ${PV} == *_rc* ]] ; then
+       
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}";
+fi
+
+PATCH_URIS=(
+       https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> 
${MOZ_P_DISTFILES}.source.tar.xz
+       ${PATCH_URIS[@]}"
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/";
+
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+
+IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
+IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent 
+system-libvpx system-png system-python-libs +system-webp"
+IUSE+=" wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )
+       pgo? ( lto )
+       wifi? ( dbus )"
+
+TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2
+       selinux? ( sec-policy/selinux-thunderbird )
+       !system-librnp? ( dev-libs/jsoncpp )
+       system-librnp? ( dev-util/librnp )"
+BDEPEND="${PYTHON_DEPS}
+       || (
+               (
+                       sys-devel/clang:17
+                       sys-devel/llvm:17
+                       clang? (
+                               sys-devel/lld:17
+                               virtual/rust:0/llvm-17
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-17*[profile] )
+                       )
+               )
+               (
+                       sys-devel/clang:16
+                       sys-devel/llvm:16
+                       clang? (
+                               sys-devel/lld:16
+                               virtual/rust:0/llvm-16
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-16*[profile] )
+                       )
+               )
+               (
+                       sys-devel/clang:15
+                       sys-devel/llvm:15
+                       clang? (
+                               sys-devel/lld:15
+                               virtual/rust:0/llvm-15
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-15*[profile] )
+                       )
+               )
+       )
+       app-alternatives/awk
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.24.3
+       net-libs/nodejs
+       virtual/pkgconfig
+       !clang? ( >=virtual/rust-1.65 )
+       amd64? ( >=dev-lang/nasm-2.14 )
+       x86? ( >=dev-lang/nasm-2.14 )
+       pgo? (
+               X? (
+                       sys-devel/gettext
+                       x11-base/xorg-server[xvfb]
+                       x11-apps/xhost
+               )
+               wayland? (
+                       >=gui-libs/wlroots-0.15.1-r1[tinywl]
+                       x11-misc/xkeyboard-config
+               )
+       )"
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+       >=app-accessibility/at-spi2-core-2.46.0:2
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/libffi:=
+       >=dev-libs/nss-3.90
+       >=dev-libs/nspr-4.35
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/freetype
+       media-libs/mesa
+       media-video/ffmpeg
+       sys-libs/zlib
+       virtual/freedesktop-icon-theme
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf
+       x11-libs/pango
+       x11-libs/pixman
+       dbus? (
+               dev-libs/dbus-glib
+               sys-apps/dbus
+       )
+       jack? ( virtual/jack )
+       pulseaudio? (
+               || (
+                       media-libs/libpulse
+                       >=media-sound/apulse-0.1.12-r4[sdk]
+               )
+       )
+       libproxy? ( net-libs/libproxy )
+       selinux? ( sec-policy/selinux-mozilla )
+       sndio? ( >=media-sound/sndio-1.8.0-r1 )
+       system-av1? (
+               >=media-libs/dav1d-1.0.0:=
+               >=media-libs/libaom-1.0.0:=
+       )
+       system-harfbuzz? (
+               >=media-gfx/graphite2-1.3.13
+               >=media-libs/harfbuzz-2.8.1:0=
+       )
+       system-icu? ( >=dev-libs/icu-73.1:= )
+       system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
+       system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+       system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+       system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
+       system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+       wayland? (
+               >=media-libs/libepoxy-1.5.10-r1
+               x11-libs/gtk+:3[wayland]
+               x11-libs/libxkbcommon[wayland]
+       )
+       wifi? (
+               kernel_linux? (
+                       dev-libs/dbus-glib
+                       net-misc/networkmanager
+                       sys-apps/dbus
+               )
+       )
+       X? (
+               virtual/opengl
+               x11-libs/cairo[X]
+               x11-libs/gtk+:3[X]
+               x11-libs/libX11
+               x11-libs/libXcomposite
+               x11-libs/libXdamage
+               x11-libs/libXext
+               x11-libs/libXfixes
+               x11-libs/libxkbcommon[X]
+               x11-libs/libXrandr
+               x11-libs/libXtst
+               x11-libs/libxcb:=
+       )"
+RDEPEND="${COMMON_DEPEND}
+       jack? ( virtual/jack )
+       openh264? ( media-libs/openh264:*[plugin] )"
+DEPEND="${COMMON_DEPEND}
+       X? (
+               x11-base/xorg-proto
+               x11-libs/libICE
+               x11-libs/libSM
+       )"
+
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+llvm_check_deps() {
+       if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
+               einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM 
slot ${LLVM_SLOT} ..." >&2
+               return 1
+       fi
+
+       if use clang && ! tc-ld-is-mold ; then
+               if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then
+                       einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot 
use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               fi
+
+               if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then
+                       einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! 
Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               fi
+
+               if use pgo ; then
+                       if ! has_version -b 
"=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+                               einfo 
"=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing! Cannot use 
LLVM slot ${LLVM_SLOT} ..." >&2
+                               return 1
+                       fi
+               fi
+       fi
+
+       einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+       af ar ast be bg br ca cak cs cy da de dsb
+       el en-CA en-GB en-US es-AR es-ES es-MX et eu
+       fi fr fy-NL ga-IE gd gl he hr hsb hu
+       id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+       pa-IN pl pt-BR pt-PT rm ro ru
+       sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+       # https://bugs.gentoo.org/587334
+       local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+               fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+       )
+
+       local lang xflag
+       for lang in "${MOZ_LANGS[@]}" ; do
+               # en and en_US are handled internally
+               if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+                       continue
+               fi
+
+               # strip region subtag if $lang is in the list
+               if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+                       xflag=${lang%%-*}
+               else
+                       xflag=${lang}
+               fi
+
+               SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+               SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> 
${MOZ_P_DISTFILES}-${lang}.xpi"
+               SRC_URI+=" )"
+               IUSE+=" l10n_${xflag/[_@]/-}"
+       done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -ne 1 ]] ; then
+               die "${FUNCNAME} requires exact one argument"
+       fi
+
+       einfo "Clearing cargo checksums for ${1} ..."
+
+       sed -i \
+               -e 's/\("files":{\)[^}]*/\1/' \
+               "${S}"/third_party/rust/${1}/.cargo-checksum.json \
+               || die
+}
+
+moz_install_xpi() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local DESTDIR=${1}
+       shift
+
+       insinto "${DESTDIR}"
+
+       local emid xpi_file xpi_tmp_dir
+       for xpi_file in "${@}" ; do
+               emid=
+               xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+               # Unpack XPI
+               unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+               # Determine extension ID
+               if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+                       emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; 
s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+                       [[ -z "${emid}" ]] && die "failed to determine 
extension id from install.rdf"
+               elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+                       emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' 
"${xpi_tmp_dir}/manifest.json")
+                       [[ -z "${emid}" ]] && die "failed to determine 
extension id from manifest.json"
+               else
+                       die "failed to determine extension id"
+               fi
+
+               einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+               newins "${xpi_file}" "${emid}.xpi"
+       done
+}
+
+mozconfig_add_options_ac() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local reason=${1}
+       shift
+
+       local option
+       for option in ${@} ; do
+               echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+       done
+}
+
+mozconfig_add_options_mk() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local reason=${1}
+       shift
+
+       local option
+       for option in ${@} ; do
+               echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+       done
+}
+
+mozconfig_use_enable() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 1 ]] ; then
+               die "${FUNCNAME} requires at least one arguments"
+       fi
+
+       local flag=$(use_enable "${@}")
+       mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" 
"${flag}"
+}
+
+mozconfig_use_with() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 1 ]] ; then
+               die "${FUNCNAME} requires at least one arguments"
+       fi
+
+       local flag=$(use_with "${@}")
+       mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" 
"${flag}"
+}
+
+# This is a straight copypaste from toolchain-funcs.eclass's 'tc-ld-is-lld', 
and is temporarily
+# placed here until toolchain-funcs.eclass gets an official support for mold 
linker.
+# Please see:
+# https://github.com/gentoo/gentoo/pull/28366 ||
+# https://github.com/gentoo/gentoo/pull/28355
+tc-ld-is-mold() {
+       local out
+
+       # Ensure ld output is in English.
+       local -x LC_ALL=C
+
+       # First check the linker directly.
+       out=$($(tc-getLD "$@") --version 2>&1)
+       if [[ ${out} == *"mold"* ]] ; then
+               return 0
+       fi
+
+       # Then see if they're selecting mold via compiler flags.
+       # Note: We're assuming they're using LDFLAGS to hold the
+       # options and not CFLAGS/CXXFLAGS.
+       local base="${T}/test-tc-linker"
+       cat <<-EOF > "${base}.c"
+       int main() { return 0; }
+       EOF
+       out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version 
"${base}.c" -o "${base}" 2>&1)
+       rm -f "${base}"*
+       if [[ ${out} == *"mold"* ]] ; then
+               return 0
+       fi
+
+       # No mold here!
+       return 1
+}
+
+virtwl() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+       [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to 
be set; try xdg_environment_reset"
+       tinywl -h >/dev/null || die 'tinywl -h failed'
+
+       # TODO: don't run addpredict in utility function. WLR_RENDERER=pixman 
doesn't work
+       addpredict /dev/dri
+       local VIRTWL VIRTWL_PID
+       coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo 
$WAYLAND_DISPLAY; read _; kill $PPID'; }
+       local -x WAYLAND_DISPLAY
+       read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+       debug-print "${FUNCNAME}: $@"
+       "$@"
+       local r=$?
+
+       [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+       exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+       return $r
+}
+
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != binary ]] ; then
+               if use pgo ; then
+                       if ! has usersandbox $FEATURES ; then
+                               die "You must enable usersandbox as X server 
can not run as root!"
+                       fi
+               fi
+
+               # Ensure we have enough disk space to compile
+               if use pgo || use lto || use debug ; then
+                       CHECKREQS_DISK_BUILD="13500M"
+               else
+                       CHECKREQS_DISK_BUILD="6600M"
+               fi
+
+               check-reqs_pkg_pretend
+       fi
+}
+
+pkg_setup() {
+       if [[ ${MERGE_TYPE} != binary ]] ; then
+               if use pgo ; then
+                       if ! has userpriv ${FEATURES} ; then
+                               eerror "Building ${PN} with USE=pgo and 
FEATURES=-userpriv is not supported!"
+                       fi
+               fi
+
+               # Ensure we have enough disk space to compile
+               if use pgo || use lto || use debug ; then
+                       CHECKREQS_DISK_BUILD="13500M"
+               else
+                       CHECKREQS_DISK_BUILD="6400M"
+               fi
+
+               check-reqs_pkg_setup
+
+               llvm_pkg_setup
+
+               if use clang && use lto && tc-ld-is-lld ; then
+                       local version_lld=$(ld.lld --version 2>/dev/null | awk 
'{ print $2 }')
+                       [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 
"${version_lld}")
+                       [[ -z ${version_lld} ]] && die "Failed to read ld.lld 
version!"
+
+                       local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep 
-F -- 'LLVM version:' | awk '{ print $3 }')
+                       [[ -n ${version_llvm_rust} ]] && 
version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
+                       [[ -z ${version_llvm_rust} ]] && die "Failed to read 
used LLVM version from rustc!"
+
+                       if ver_test "${version_lld}" -ne "${version_llvm_rust}" 
; then
+                               eerror "Rust is using LLVM version 
${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
+                               eerror "You will be unable to link 
${CATEGORY}/${PN}. To proceed you have the following options:"
+                               eerror "  - Manually switch rust version using 
'eselect rust' to match used LLVM version"
+                               eerror "  - Switch to 
dev-lang/rust[system-llvm] which will guarantee matching version"
+                               eerror "  - Build ${CATEGORY}/${PN} without 
USE=lto"
+                               eerror "  - Rebuild lld with llvm that was used 
to build rust (may need to rebuild the whole "
+                               eerror "    llvm/clang/lld/rust chain depending 
on your @world updates)"
+                               die "LLVM version used by Rust 
(${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
+                       fi
+               fi
+
+               python-any-r1_pkg_setup
+
+               # Avoid PGO profiling problems due to enviroment leakage
+               # These should *always* be cleaned up anyway
+               unset \
+                       DBUS_SESSION_BUS_ADDRESS \
+                       DISPLAY \
+                       ORBIT_SOCKETDIR \
+                       SESSION_MANAGER \
+                       XAUTHORITY \
+                       XDG_CACHE_HOME \
+                       XDG_SESSION_COOKIE
+
+               # Build system is using /proc/self/oom_score_adj, bug #604394
+               addpredict /proc/self/oom_score_adj
+
+               if use pgo ; then
+                       # Update 105.0: "/proc/self/oom_score_adj" isn't enough 
anymore with pgo, but not sure
+                       # whether that's due to better OOM handling by Firefox 
(bmo#1771712), or portage
+                       # (PORTAGE_SCHEDULING_POLICY) update...
+                       addpredict /proc
+
+                       # May need a wider addpredict when using wayland+pgo.
+                       addpredict /dev/dri
+
+                       # Allow access to GPU during PGO run
+                       local ati_cards mesa_cards nvidia_cards render_cards
+                       shopt -s nullglob
+
+                       ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+                       if [[ -n "${ati_cards}" ]] ; then
+                               addpredict "${ati_cards}"
+                       fi
+
+                       mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+                       if [[ -n "${mesa_cards}" ]] ; then
+                               addpredict "${mesa_cards}"
+                       fi
+
+                       nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
+                       if [[ -n "${nvidia_cards}" ]] ; then
+                               addpredict "${nvidia_cards}"
+                       fi
+
+                       render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ 
/:/g')
+                       if [[ -n "${render_cards}" ]] ; then
+                               addpredict "${render_cards}"
+                       fi
+
+                       shopt -u nullglob
+               fi
+
+               if ! mountpoint -q /dev/shm ; then
+                       # If /dev/shm is not available, configure is known to 
fail with
+                       # a traceback report referencing 
/usr/lib/pythonN.N/multiprocessing/synchronize.py
+                       ewarn "/dev/shm is not mounted -- expect build 
failures!"
+               fi
+
+               # Google API keys (see 
http://www.chromium.org/developers/how-tos/api-keys)
+               # Note: These are for Gentoo Linux use ONLY. For your own 
distribution, please
+               # get your own set of keys.
+               if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+                       
MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+               fi
+
+               if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+                       
MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+               fi
+
+               # Mozilla API keys (see 
https://location.services.mozilla.com/api)
+               # Note: These are for Gentoo Linux use ONLY. For your own 
distribution, please
+               # get your own set of keys.
+               if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+                       
MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+               fi
+
+               # Ensure we use C locale when building, bug #746215
+               export LC_ALL=C
+       fi
+}
+
+src_unpack() {
+       local _lp_dir="${WORKDIR}/language_packs"
+       local _src_file
+
+       if [[ ! -d "${_lp_dir}" ]] ; then
+               mkdir "${_lp_dir}" || die
+       fi
+
+       for _src_file in ${A} ; do
+               if [[ ${_src_file} == *.xpi ]]; then
+                       cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die 
"Failed to copy '${_src_file}' to '${_lp_dir}'!"
+               else
+                       unpack ${_src_file}
+               fi
+       done
+}
+
+src_prepare() {
+       if use lto; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+       fi
+
+       if ! use ppc64; then
+               rm -v "${WORKDIR}"/firefox-patches/*ppc64*.patch || die
+       fi
+
+       eapply "${WORKDIR}/firefox-patches"
+
+       # Allow user to apply any additional patches without modifing ebuild
+       eapply_user
+
+       # Make cargo respect MAKEOPTS
+       export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+       # Make LTO respect MAKEOPTS
+       sed -i \
+               -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/build/moz.configure/lto-pgo.configure \
+               || die "sed failed to set num_cores"
+
+       # Make ICU respect MAKEOPTS
+       sed -i \
+               -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/intl/icu_sources_data.py \
+               || die "sed failed to set num_cores"
+
+       # sed-in toolchain prefix
+       sed -i \
+               -e "s/objdump/${CHOST}-objdump/" \
+               "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py 
\
+               || die "sed failed to set toolchain prefix"
+
+       sed -i \
+               -e 's/ccache_stats = None/return None/' \
+               "${S}"/python/mozbuild/mozbuild/controller/building.py \
+               || die "sed failed to disable ccache stats call"
+
+       einfo "Removing pre-built binaries ..."
+
+       find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) 
-print -delete || die
+
+       # Create build dir
+       BUILD_DIR="${WORKDIR}/${PN}_build"
+       mkdir -p "${BUILD_DIR}" || die
+
+       # Write API keys to disk
+       echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+       echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || 
die
+       echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+       xdg_environment_reset
+}
+
+src_configure() {
+       # Show flags set at the beginning
+       einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+       einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+       einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+       einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+       einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+       local have_switched_compiler=
+       if use clang; then
+               # Force clang
+               einfo "Enforcing the use of clang due to USE=clang ..."
+
+               local version_clang=$(clang --version 2>/dev/null | grep -F -- 
'clang version' | awk '{ print $3 }')
+               [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 
"${version_clang}")
+               [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+               if tc-is-gcc; then
+                       have_switched_compiler=yes
+               fi
+               AR=llvm-ar
+               CC=${CHOST}-clang-${version_clang}
+               CXX=${CHOST}-clang++-${version_clang}
+               NM=llvm-nm
+               RANLIB=llvm-ranlib
+       elif ! use clang && ! tc-is-gcc ; then
+               # Force gcc
+               have_switched_compiler=yes
+               einfo "Enforcing the use of gcc due to USE=-clang ..."
+               AR=gcc-ar
+               CC=${CHOST}-gcc
+               CXX=${CHOST}-g++
+               NM=gcc-nm
+               RANLIB=gcc-ranlib
+       fi
+
+       if [[ -n "${have_switched_compiler}" ]] ; then
+               # Because we switched active compiler we have to ensure
+               # that no unsupported flags are set
+               strip-unsupported-flags
+       fi
+
+       # Ensure we use correct toolchain,
+       # AS is used in a non-standard way by upstream, #bmo1654031
+       export HOST_CC="$(tc-getBUILD_CC)"
+       export HOST_CXX="$(tc-getBUILD_CXX)"
+       export AS="$(tc-getCC) -c"
+       tc-export CC CXX LD AR AS NM OBJDUMP RANLIB PKG_CONFIG
+
+       # Pass the correct toolchain paths through cbindgen
+       if tc-is-cross-compiler ; then
+               export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} 
--target=${CHOST} ${BINDGEN_CFLAGS-}"
+       fi
+
+       # Set MOZILLA_FIVE_HOME
+       export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+       # python/mach/mach/mixin/process.py fails to detect SHELL
+       export SHELL="${EPREFIX}/bin/bash"
+
+       # Set state path
+       export MOZBUILD_STATE_PATH="${BUILD_DIR}"
+
+       # Set MOZCONFIG
+       export MOZCONFIG="${S}/.mozconfig"
+
+       # Initialize MOZCONFIG
+       mozconfig_add_options_ac '' --enable-application=comm/mail
+       mozconfig_add_options_ac '' --enable-project=comm/mail
+
+       # Set Gentoo defaults
+       mozconfig_add_options_ac 'Gentoo default' \
+               --allow-addon-sideload \
+               --disable-cargo-incremental \
+               --disable-crashreporter \
+               --disable-gpsd \
+               --disable-install-strip \
+               --disable-parental-controls \
+               --disable-strip \
+               --disable-tests \
+               --disable-updater \
+               --disable-wmf \
+               --enable-js-shell \
+               --enable-legacy-profile-creation \
+               --enable-negotiateauth \
+               --enable-new-pass-manager \
+               --enable-official-branding \
+               --enable-release \
+               --enable-system-ffi \
+               --enable-system-pixman \
+               --enable-system-policies \
+               --host="${CBUILD:-${CHOST}}" \
+               --libdir="${EPREFIX}/usr/$(get_libdir)" \
+               --prefix="${EPREFIX}/usr" \
+               --target="${CHOST}" \
+               --without-ccache \
+               --without-wasm-sandboxed-libraries \
+               --with-intl-api \
+               --with-libclang-path="$(llvm-config --libdir)" \
+               --with-system-nspr \
+               --with-system-nss \
+               --with-system-zlib \
+               --with-toolchain-prefix="${CHOST}-" \
+               --with-unsigned-addon-scopes=app,system \
+               --x-includes="${ESYSROOT}/usr/include" \
+               --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
+
+       # Set update channel
+       local update_channel=release
+       [[ -n ${MOZ_ESR} ]] && update_channel=esr
+       mozconfig_add_options_ac '' --update-channel=${update_channel}
+
+       if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
+               mozconfig_add_options_ac '' --enable-rust-simd
+       fi
+
+       # For future keywording: This is currently (97.0) only supported on:
+       # amd64, arm, arm64 & x86.
+       # Might want to flip the logic around if Firefox is to support more 
arches.
+       # bug 833001, bug 903411#c8
+       if use ppc64 || use riscv; then
+               mozconfig_add_options_ac '' --disable-sandbox
+       else
+               mozconfig_add_options_ac '' --enable-sandbox
+       fi
+
+       # Enable JIT on riscv64 explicitly
+       # Can be removed once upstream enable it by default in the future.
+       use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' 
--enable-jit
+
+       if [[ -s "${S}/api-google.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 
}') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+       else
+               einfo "Building without Google API key ..."
+       fi
+
+       if [[ -s "${S}/api-location.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 
}') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-location-service-api-keyfile="${S}/api-location.key"
+       else
+               einfo "Building without Location API key ..."
+       fi
+
+       if [[ -s "${S}/api-mozilla.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 
}') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+       else
+               einfo "Building without Mozilla API key ..."
+       fi
+
+       mozconfig_use_with system-av1
+       mozconfig_use_with system-harfbuzz
+       mozconfig_use_with system-harfbuzz system-graphite2
+       mozconfig_use_with system-icu
+       mozconfig_use_with system-jpeg
+       mozconfig_use_with system-libevent
+       mozconfig_use_with system-libvpx
+       mozconfig_use_with system-png
+       mozconfig_use_with system-webp
+
+       if use system-librnp; then
+               mozconfig_add_options_ac "+system-librnp" 
--enable-compile-environment
+               mozconfig_use_with system-librnp
+       else
+               # This controls the backend of the bundled librnp. Choices are 
"botan" and "openssl".
+               # RNP Upstream recommends to use botan. In Gentoo it's 
preferred to use system-librnp.
+               mozconfig_add_options_ac "+bundled librnp backend = botan" 
--with-librnp-backend="botan"
+       fi
+
+       mozconfig_use_enable dbus
+       mozconfig_use_enable libproxy
+
+       use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+       if use hardened ; then
+               mozconfig_add_options_ac "+hardened" --enable-hardening
+               append-ldflags "-Wl,-z,relro -Wl,-z,now"
+       fi
+
+       local myaudiobackends=""
+       use jack && myaudiobackends+="jack,"
+       use sndio && myaudiobackends+="sndio,"
+       use pulseaudio && myaudiobackends+="pulseaudio,"
+       ! use pulseaudio && myaudiobackends+="alsa,"
+
+       mozconfig_add_options_ac '--enable-audio-backends' 
--enable-audio-backends="${myaudiobackends::-1}"
+
+       mozconfig_use_enable wifi necko-wifi
+
+       if use X && use wayland ; then
+               mozconfig_add_options_ac '+x11+wayland' 
--enable-default-toolkit=cairo-gtk3-x11-wayland
+       elif ! use X && use wayland ; then
+               mozconfig_add_options_ac '+wayland' 
--enable-default-toolkit=cairo-gtk3-wayland-only
+       else
+               mozconfig_add_options_ac '+x11' 
--enable-default-toolkit=cairo-gtk3
+       fi
+
+       if use lto ; then
+               if use clang ; then
+                       # Upstream only supports lld or mold when using clang.
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang and USE=lto" --enable-linker=lld
+                       fi
+
+                       mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+               else
+                       # ThinLTO is currently broken, see bmo#1644409.
+                       # mold does not support gcc+lto combination.
+                       mozconfig_add_options_ac '+lto' --enable-lto=full
+                       mozconfig_add_options_ac "linker is set to bfd" 
--enable-linker=bfd
+               fi
+
+               if use pgo ; then
+                       mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+                       if use clang ; then
+                               # Used in build/pgo/profileserver.py
+                               export LLVM_PROFDATA="llvm-profdata"
+                       fi
+               fi
+       else
+               # Avoid auto-magic on linker
+               if use clang ; then
+                       # lld is upstream's default
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang" --enable-linker=lld
+                       fi
+
+               else
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "linker is set to bfd 
due to USE=-clang" --enable-linker=bfd
+                       fi
+               fi
+       fi
+
+       # LTO flag was handled via configure
+       filter-lto
+
+       mozconfig_use_enable debug
+       if use debug ; then
+               mozconfig_add_options_ac '+debug' --disable-optimize
+               mozconfig_add_options_ac '+debug' --enable-real-time-tracing
+       else
+               mozconfig_add_options_ac 'Gentoo defaults' 
--disable-real-time-tracing
+
+               if is-flag '-g*' ; then
+                       if use clang ; then
+                               mozconfig_add_options_ac 'from CFLAGS' 
--enable-debug-symbols=$(get-flag '-g*')
+                       else
+                               mozconfig_add_options_ac 'from CFLAGS' 
--enable-debug-symbols
+                       fi
+               else
+                       mozconfig_add_options_ac 'Gentoo default' 
--disable-debug-symbols
+               fi
+
+               if is-flag '-O0' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O0
+               elif is-flag '-O4' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O4
+               elif is-flag '-O3' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O3
+               elif is-flag '-O1' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O1
+               elif is-flag '-Os' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-Os
+               else
+                       mozconfig_add_options_ac "Gentoo default" 
--enable-optimize=-O2
+               fi
+       fi
+
+       # Debug flag was handled via configure
+       filter-flags '-g*'
+
+       # Optimization flag was handled via configure
+       filter-flags '-O*'
+
+       # Modifications to better support ARM, bug #553364
+       if use cpu_flags_arm_neon ; then
+               mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
+
+               if ! tc-is-clang ; then
+                       # thumb options aren't supported when using clang, bug 
666966
+                       mozconfig_add_options_ac '+cpu_flags_arm_neon' \
+                               --with-thumb=yes \
+                               --with-thumb-interwork=no
+               fi
+       fi
+
+       if [[ ${CHOST} == armv*h* ]] ; then
+               mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
+
+               if ! use system-libvpx ; then
+                       sed -i \
+                               -e "s|softfp|hard|" \
+                               "${S}"/media/libvpx/moz.build \
+                               || die
+               fi
+       fi
+
+       if use clang ; then
+               # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
+               # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
+               # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 
'x86', 'x86_64')
+               local disable_elf_hack=
+               if use amd64 ; then
+                       disable_elf_hack=yes
+               elif use x86 ; then
+                       disable_elf_hack=yes
+               elif use arm ; then
+                       disable_elf_hack=yes
+               fi
+
+               if [[ -n ${disable_elf_hack} ]] ; then
+                       mozconfig_add_options_ac 'elf-hack is broken when using 
Clang' --disable-elf-hack
+               fi
+       elif tc-is-gcc ; then
+               if ver_test $(gcc-fullversion) -ge 10 ; then
+                       einfo "Forcing -fno-tree-loop-vectorize to workaround 
GCC bug, see bug 758446 ..."
+                       append-cxxflags -fno-tree-loop-vectorize
+               fi
+       fi
+
+       if use elibc_musl && use arm64 ; then
+               mozconfig_add_options_ac 'elf-hack is broken when using 
musl/arm64' --disable-elf-hack
+       fi
+
+       # Additional ARCH support
+       case "${ARCH}" in
+               arm)
+                       # Reduce the memory requirements for linking
+                       if use clang ; then
+                               # Nothing to do
+                               :;
+                       elif use lto ; then
+                               append-ldflags -Wl,--no-keep-memory
+                       else
+                               append-ldflags -Wl,--no-keep-memory 
-Wl,--reduce-memory-overheads
+                       fi
+                       ;;
+       esac
+
+       if ! use elibc_glibc; then
+               mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+       fi
+
+       # Allow elfhack to work in combination with unstripped binaries
+       # when they would normally be larger than 2GiB.
+       append-ldflags "-Wl,--compress-debug-sections=zlib"
+
+       # Make revdep-rebuild.sh happy; Also required for musl
+       append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
+
+       # Pass $MAKEOPTS to build system
+       export MOZ_MAKE_FLAGS="${MAKEOPTS}"
+
+       # Use system's Python environment
+       export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+       if use system-python-libs; then
+               export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system"
+       else
+               export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+       fi
+
+       # Disable notification when build system has finished
+       export MOZ_NOSPAM=1
+
+       # Portage sets XARGS environment variable to "xargs -r" by default which
+       # breaks build system's check_prog() function which doesn't support 
arguments
+       mozconfig_add_options_ac 'Gentoo default' 
"XARGS=${EPREFIX}/usr/bin/xargs"
+
+       # Set build dir
+       mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
+
+       # Show flags we will use
+       einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+       einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
+       einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+       einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
+       einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+       # Handle EXTRA_CONF and show summary
+       local ac opt hash reason
+
+       # Apply EXTRA_ECONF entries to $MOZCONFIG
+       if [[ -n ${EXTRA_ECONF} ]] ; then
+               IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
+               for opt in "${ac[@]}"; do
+                       mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
+               done
+       fi
+
+       echo
+       echo "=========================================================="
+       echo "Building ${PF} with the following configuration"
+       grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
+               [[ -z ${hash} || ${hash} == \# ]] \
+                       || die "error reading mozconfig: ${ac} ${opt} ${hash} 
${reason}"
+               printf "    %-30s  %s\n" "${opt}" "${reason:-mozilla.org 
default}"
+       done
+       echo "=========================================================="
+       echo
+
+       ./mach configure || die
+}
+
+src_compile() {
+       local virtx_cmd=
+
+       if tc-ld-is-mold && use lto; then
+               # increase ulimit with mold+lto, bugs #892641, #907485
+               if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+                       ewarn "Unable to modify ulimits - building with 
mold+lto might fail due to low ulimit -n resources."
+                       ewarn "Please see bugs #892641 & #907485."
+               else
+                       ulimit -n 16384
+               fi
+       fi
+
+       if use pgo; then
+               # Reset and cleanup environment variables used by GNOME/XDG
+               gnome2_environment_reset
+
+               addpredict /root
+
+               if ! use X; then
+                       virtx_cmd=virtwl
+               else
+                       virtx_cmd=virtx
+               fi
+       fi
+
+       if ! use X; then
+               local -x GDK_BACKEND=wayland
+       else
+               local -x GDK_BACKEND=x11
+       fi
+
+       ${virtx_cmd} ./mach build --verbose || die
+}
+
+src_install() {
+       # xpcshell is getting called during install
+       pax-mark m \
+               "${BUILD_DIR}"/dist/bin/xpcshell \
+               "${BUILD_DIR}"/dist/bin/${PN} \
+               "${BUILD_DIR}"/dist/bin/plugin-container
+
+       DESTDIR="${D}" ./mach install || die
+
+       # Upstream cannot ship symlink but we can (bmo#658850)
+       rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+       dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+       # Don't install llvm-symbolizer from sys-devel/llvm package
+       if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+               rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+       fi
+
+       # Install policy (currently only used to disable application updates)
+       insinto "${MOZILLA_FIVE_HOME}/distribution"
+       newins "${FILESDIR}"/distribution.ini distribution.ini
+       newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+       # Install system-wide preferences
+       local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+       insinto "${PREFS_DIR}"
+       newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
+
+       local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+       # Set dictionary path to use system hunspell
+       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
spellchecker.dictionary_path pref"
+       pref("spellchecker.dictionary_path",       
"${EPREFIX}/usr/share/myspell");
+       EOF
+
+       # Force hwaccel prefs if USE=hwaccel is enabled
+       if use hwaccel ; then
+               cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
+               >>"${GENTOO_PREFS}" \
+               || die "failed to add prefs to force hardware-accelerated 
rendering to all-gentoo.js"
+
+               if use wayland; then
+                       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
hwaccel wayland prefs"
+                       pref("gfx.x11-egl.force-enabled",          false);
+                       EOF
+               else
+                       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
hwaccel x11 prefs"
+                       pref("gfx.x11-egl.force-enabled",          true);
+                       EOF
+               fi
+       fi
+
+       # Force the graphite pref if USE=system-harfbuzz is enabled, since the 
pref cannot disable it
+       if use system-harfbuzz ; then
+               cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
gfx.font_rendering.graphite.enabled pref"
+               sticky_pref("gfx.font_rendering.graphite.enabled", true);
+               EOF
+       fi
+
+       # Install language packs
+       local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name 
'*.xpi') )
+       if [[ -n "${langpacks}" ]] ; then
+               moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" 
"${langpacks[@]}"
+       fi
+
+       # Install icons
+       local icon_srcdir="${S}/comm/mail/branding/thunderbird"
+       local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
+
+       insinto /usr/share/icons/hicolor/symbolic/apps
+       newins "${icon_symbolic_file}" ${PN}-symbolic.svg
+
+       local icon size
+       for icon in "${icon_srcdir}"/default*.png ; do
+               size=${icon%.png}
+               size=${size##*/default}
+
+               if [[ ${size} -eq 48 ]] ; then
+                       newicon "${icon}" ${PN}.png
+               fi
+
+               newicon -s ${size} "${icon}" ${PN}.png
+       done
+
+       # Install menu
+       local app_name="Mozilla ${MOZ_PN^}"
+       local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
+       local desktop_filename="${PN}.desktop"
+       local exec_command="${PN}"
+       local icon="${PN}"
+       local use_wayland="false"
+
+       if use wayland ; then
+               use_wayland="true"
+       fi
+
+       cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
+
+       sed -i \
+               -e "s:@NAME@:${app_name}:" \
+               -e "s:@EXEC@:${exec_command}:" \
+               -e "s:@ICON@:${icon}:" \
+               "${WORKDIR}/${PN}.desktop-template" \
+               || die
+
+       newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
+
+       rm "${WORKDIR}/${PN}.desktop-template" || die
+
+       # Install wrapper script
+       [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
+       newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
+
+       # Update wrapper
+       sed -i \
+               -e "s:@PREFIX@:${EPREFIX}/usr:" \
+               -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
+               -e "s:@APULSELIB_DIR@:${apulselib}:" \
+               -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
+               "${ED}/usr/bin/${PN}" \
+               || die
+}
+
+pkg_preinst() {
+       xdg_pkg_preinst
+
+       # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
+       # does not need to be forced into the LD_LIBRARY_PATH
+       if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+               einfo "APULSE found; Generating library symlinks for sound 
support ..."
+               local lib
+               pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
+               for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
+                       # A quickpkg rolled by hand will grab symlinks as part 
of the package,
+                       # so we need to avoid creating them if they already 
exist.
+                       if [[ ! -L ${lib##*/} ]] ; then
+                               ln -s "${lib}" ${lib##*/} || die
+                       fi
+               done
+               popd &>/dev/null || die
+       fi
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+               elog "Apulse was detected at merge time on this system and so 
it will always be"
+               elog "used for sound.  If you wish to use pulseaudio instead 
please unmerge"
+               elog "media-sound/apulse."
+               elog
+       fi
+
+       local show_doh_information
+       local show_shortcut_information
+
+       if [[ -z "${REPLACING_VERSIONS}" ]] ; then
+               # New install; Tell user that DoH is disabled by default
+               show_doh_information=yes
+               show_shortcut_information=no
+       else
+               local replacing_version
+               for replacing_version in ${REPLACING_VERSIONS} ; do
+                       if ver_test "${replacing_version}" -lt 91.0 ; then
+                               # Tell user that we no longer install a shortcut
+                               # per supported display protocol
+                               show_shortcut_information=yes
+                       fi
+               done
+       fi
+
+       if [[ -n "${show_doh_information}" ]] ; then
+               elog
+               elog "Note regarding Trusted Recursive Resolver aka 
DNS-over-HTTPS (DoH):"
+               elog "Due to privacy concerns (encrypting DNS might be a good 
thing, sending all"
+               elog "DNS traffic to Cloudflare by default is not a good idea 
and applications"
+               elog "should respect OS configured settings), 
\"network.trr.mode\" was set to 5"
+               elog "(\"Off by choice\") by default."
+               elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
+       fi
+
+       if [[ -n "${show_shortcut_information}" ]] ; then
+               elog
+               elog "Since ${PN}-91.0 we no longer install multiple shortcuts 
for"
+               elog "each supported display protocol.  Instead we will only 
install"
+               elog "one generic Mozilla ${PN^} shortcut."
+               elog "If you still want to be able to select between running 
Mozilla ${PN^}"
+               elog "on X11 or Wayland, you have to re-create these shortcuts 
on your own."
+       fi
+
+       # bug 835078
+       if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then
+               ewarn "You have nouveau drivers installed in your system and 
'hwaccel' "
+               ewarn "enabled for Firefox. Nouveau / your GPU might not 
support the "
+               ewarn "required EGL, so either disable 'hwaccel' or try the 
workaround "
+               ewarn "explained in https://bugs.gentoo.org/835078#c5 if 
Firefox crashes."
+       fi
+
+       optfeature_header "Optional programs for extra features:"
+       optfeature "desktop notifications" x11-libs/libnotify
+       optfeature "encrypted chat support" net-libs/libotr
+       optfeature "fallback mouse cursor theme e.g. on WMs" 
gnome-base/gsettings-desktop-schemas
+}

Reply via email to