commit:     4a926e0cbcf4d722efe98c64aeb4774c73534c8f
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 16 10:43:46 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Apr 16 10:44:13 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a926e0c

mail-client/thunderbird: add 137.0.2

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

 mail-client/thunderbird/Manifest                   |   66 ++
 mail-client/thunderbird/thunderbird-137.0.2.ebuild | 1157 ++++++++++++++++++++
 2 files changed, 1223 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index ece4449538b2..4b7eada7f91a 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -1,6 +1,7 @@
 DIST firefox-128esr-patches-09.tar.xz 17976 BLAKE2B 
78f64f5086951f7bf2b304c1148154647aef5c4e699257cba5e94a83d8d8c159a591d0b2a7a5f8bc0f8ec28d5eae66a0783b45f94b4ef713282a6f88e46c75be
 SHA512 
159d8c94af0f90c10baf7446e573a37397b3be7103e7001fb6b38845a28a41793c21ad24c23e0b3cfc4daa2c3a6040ef701f612693c9f4dfff8534f82e7b18a1
 DIST firefox-137-loong-patches-01.tar.xz 5092 BLAKE2B 
26ce17d911c2dc4b00d727d77aa14aaf379541bf19e0500382c892a1534fe04ec6f71126b32aeffc00bd1a2dd6810ea25ad25b7eeabaa2a2c70bf1158009da1e
 SHA512 
5c8ab65f3f24f3fc8ca5368f42d65b2873c9c15537e9ed088770a17f214a364e35cd6b79710b6e8d699afe4f84f29b004374537a96b11bee6f7df91d1f5535ce
 DIST firefox-137-patches-01.tar.xz 13584 BLAKE2B 
f22ee7977e738bb782014dda53ac20c4928fbef93616b1a11d474599d79a549dbf66e5a1eaf40d1ba1745bc3345162cf1f2107ef9a8ae72c63b8d9850460380d
 SHA512 
b577486e8cfb2dd2da37802a9a7f4e2bf16094bf4ed22a8c2bf91019cf74b23942a1884a58bcbad055c7ca480f944cae35e85aadf92d98059be0eaacd4b8a464
+DIST firefox-137-patches-02.tar.xz 16008 BLAKE2B 
6b1e4f0c7eba462abcc2bc26a463cf194e51023e2a2b91ac88b42cf817cc95bcc61472983a10ab8b959734d7c57fcf21e34e54f17bbf0f674589969e8bda6d15
 SHA512 
a573048d25cf0ec6bef8afdfc8a845488f910ad4437a2a87ac16131c258ec36fcea985487e415af00aee91072ef8cc924b395143587c3971d42a120de39c36d3
 DIST thunderbird-128.9.0esr-af.xpi 534911 BLAKE2B 
5a1c56938294faa34f0977d2aff750bee6be148ba3bf461f3fcfdd923633ee6af4deafb9d8be1135981bd7ce5a4cb3cb0304e98d9c776559ba80ee562db6159d
 SHA512 
da3da34b7e99271dad924db5ae578838662c70dfb34b0470a0084ed46b60d852929d187b258dec4298958a05f792b6e7598910100c70087258f9f28501e1ffa4
 DIST thunderbird-128.9.0esr-ar.xpi 686460 BLAKE2B 
1d2760c20e419bb64637368e1eee7f589ea8a1be61715f245fde35ddc36205e5de41bccf1de76cf9f44122b428f0ebfbd8b8054ddfd2bc258e3e05480756c2c5
 SHA512 
48c304691c1caab6e782b1ed085d13cc78df4ccfe1ff5dece8ea8a4b34f731557888a049ebd5d66c11a2d9249d1d22e2eda9b4783fd9ceb598f07012570a5cb9
 DIST thunderbird-128.9.0esr-ast.xpi 574778 BLAKE2B 
71d2e27bc6e4b9af5cce9a5c5d1220243ca4b84b39c07202b2e81d00a99a4f40cb4c09fad9c6eb9da843e7f8866dbff16818ba20d04f7581d805152be66a8194
 SHA512 
96ba88bb6a1eb7ce04cb739037504d6d27c46c8996252baee069b18af939850d0f55e062da49086b4da122a2f3ff8a2f7ede126d05c26265c3d6b3f9adc622b0
@@ -196,3 +197,68 @@ DIST thunderbird-137.0.1-vi.xpi 513518 BLAKE2B 
4229e1d22e7cceae1b15174c24f84c247
 DIST thunderbird-137.0.1-zh-CN.xpi 502842 BLAKE2B 
bbdfbebe177689a670660380aaae16337bbf03686c18f51d0294684b0f07a3d8933bf81db846e8eed0e52d684bd1efc52491606a72d3868f3e157cc2c1ef4fd8
 SHA512 
6531455a7d25c4ac4df5a5a5ee0d8ba9fc357fa73a945f71ad6c721655f793ca2c8b670d6e85abacb6a7a878d74ed6ed07bf22e95f17b1d91ec2336037814db5
 DIST thunderbird-137.0.1-zh-TW.xpi 505943 BLAKE2B 
cabba64d78a7346cbdda94ce85a75981674f9db02faa2a52e2e16ffdfa45ae38a6be015234f235974a0056860d2e6e30b5e11db4ef6fe048253ab7010db75e4e
 SHA512 
810a99588730ce5be8bfa6e45dc68287e88da64cc32f0dca9f5048a72e072d10df2842b87aafe5fa97ea4502df1fbeaa09d5207ab4c698dc5dc3e09075094f4c
 DIST thunderbird-137.0.1.source.tar.xz 711713228 BLAKE2B 
67acf3349319e78ce25c3aba79df6da68cd73a159cd7507bad40bff3e3ce2a1ce630aaf073f841cb7e6804536d5bb8a33b271633fabe5a526974e479c5fd0ce8
 SHA512 
387f04aff9380c7261c574e7ef2e4972d63ebfb2768e25aa41a5ee2f3a755780a84099532cf4c1b5635db3412ab543e9b17b0a0476ec06c547b2dc678f19795f
+DIST thunderbird-137.0.2-af.xpi 315722 BLAKE2B 
cb26b6b4f50f010181f2f810dddc615eef0a67da1ca597305bbc19eec9f1862251840a305e9140eefbed187273f7b9873c8555ef50e165f14a93b32e869be352
 SHA512 
a29a2d09643912f016b0d1607d7294ad82db37c0869153b139099ece8a453e16685b2e67851a4ef6f92177ed3b9b6a4dfcbd281c40085a3b35a0afe35d567dbe
+DIST thunderbird-137.0.2-ar.xpi 432363 BLAKE2B 
ec3ca29fc47003ef421680b3302dc3486e5871cd23ed5d56b4a118335b90f33de0d3b18230e551483f66b7777b7fac8b0d7fb6f6561f5779c2bf6ce1d6edcc29
 SHA512 
bc46cf7bc70b81ecfad0fa0935a51414ba207eea0a8c64c467e02ebf40906cb24de0905be140d0ec3c7c527b3bdcf3e50d6a5ce33aa7d824f1dbe7c6c84b47ae
+DIST thunderbird-137.0.2-ast.xpi 341310 BLAKE2B 
17c9c4a6706aedd8c1c1d960d81cc759affc49b4fc8ae2e6f26fb10570b8eafd2560cbe878a9aa97e6fbe7c2c2fb937c8da1168b3ad90b8590c6f8de68099d1c
 SHA512 
5ba95834c624f9b8bd06ff2d32013a96de0f31a86f63309e75cc6904cdb91ad039c0a15274e79102397ee436c555eb5095ead71291f5ef08efd8e6d94fd92284
+DIST thunderbird-137.0.2-be.xpi 515738 BLAKE2B 
4f26d871eac1887277207318f0eee39b1b7f8adabda24716818c53be7822e36eb73b1314fd5eddd385343f94c602b6d83744831f327124089f29483cceb10494
 SHA512 
47d2b6e694a4b38e0ab98b4e23bf4f49d95474dea366be7ddd32e24c7a9fbec03e792bf40e35e647c9ff8e5b747eb9fd9ab52bb5faaddddeadde36928669d868
+DIST thunderbird-137.0.2-bg.xpi 533477 BLAKE2B 
eb8854e70334f99a6ab1678220d86412a1707654d486d578076d9327d1314409c54bbc78ddb2f715a01711b1b87b5013425bc42ca8eec75e57cbaccc7335982a
 SHA512 
def84eb65f221b8a88612caa1fdeaada852e47d251be3de76de55e7c6df99d49d096312fe0f1d1ed645e0f8cff65067eb401bee570ce1d27e738bf5fef00f8a9
+DIST thunderbird-137.0.2-br.xpi 402087 BLAKE2B 
dbf693815871bb4cba6ce34b4569b63015a4cfa6a6afe541676c12c9c886c163f162ff306b454d4ad8c759c6220e6f9492958fdf910cbe6ed83b418594d01d93
 SHA512 
f73cd406b4b89cfd04d317497df27342e08f953b5f03dc564bcb945e26dde309a2cab38d1d15d3e8c8b4947b2bf2f795f88fd34a1c5b9ceb54290ce48d5c75e2
+DIST thunderbird-137.0.2-ca.xpi 440383 BLAKE2B 
032b4ad51c6f4e0396ae1deff0acff1095eb305583c4f76ffafcbd51204aa8b1fcd88184fdf6acbf76a7a75c155c497b0039f7a9b0c61d8d7df2fcebb1996477
 SHA512 
164b56905156c1f4f81cbe55fb3d1423c76bc5a6c6e07148a51ebd88e51be28c459bf9de2c8d265d5e1280f9310e929f392609f79e3484d1310a793dc29d558c
+DIST thunderbird-137.0.2-cak.xpi 417972 BLAKE2B 
ecb074124e570ead0c72a7e0d7e5999f8ed45ee9e971e3fb4a245e91af52182b173b40a4fd85e472010aea63aa2dbe4c080f0be19a568f5cd4b7e07095e47277
 SHA512 
3362195f806dd96e70da2089c30a1ae94a0e9f3ac7cda53afa5f5396db1b7e61cc3257179428103b9b5e368062759f6777d0668912ae1257e8649f3af244d689
+DIST thunderbird-137.0.2-cs.xpi 513944 BLAKE2B 
9f217165ba1e745908626905ea365c6f90fdb61e5c4bcfa3ff0b5b47797289cc8a6feecbbdbb845826c16a204d9a8a4f67e0fbcce569040dbbe56f826bd04c50
 SHA512 
e3c049860d02437fb1bda6a1fa7b8c17ce4ac11b0b191968ffdc0be78bf01d4bf40fb54f282415c7e38d8be078434e6e89314a9f223119996c66d16dd3cb9f17
+DIST thunderbird-137.0.2-cy.xpi 482482 BLAKE2B 
8a7a2f98203e45d64f0c0af2e2867ae8f11a8db402cffaf78aaee83f01a80676ce53b6d8ba6b8c28c938647508e9b23bc2f6e7475b3d25f51ee529ad83c65c6e
 SHA512 
9740192a1c5bca039bc47c0a0d2747865b4e07bac40f7c8f39ef46a13c877e05a32c11d6fee6dda11d076f96234da0e243101d862189b595f569497c171b0e83
+DIST thunderbird-137.0.2-da.xpi 470165 BLAKE2B 
9fa8aa89597b36d8eec34799fae4205125357f1fa9667c006626237754d049f6f50e3f6b83a893f70911fa0b2031471b4e6edb777d19097ccd1d599473a7f91e
 SHA512 
e7d4faf2fad3f5d7f3c61a689fce20336eee71fa1917b1d613d31f233e356327247ef7a44633872bba4c9a3a2ef33a71f33876a31cb348a8c126c0e61f3be9d5
+DIST thunderbird-137.0.2-de.xpi 499756 BLAKE2B 
b764bed26b1d2eea07321c6601a1cf7575cd22e15ac2644b6bfe77a0a17cad23e4487033e664a6b2992ec3b715468ac0b2f22186379e5b521635770e91745419
 SHA512 
24a84f92ca6971a0995c36ca3f5c8456018c9385d47eee6fd0ac02cf5cc3034b3e4b2c53e218dd804389931282c1626c6f7a227ea242ea47898b7ca12371c440
+DIST thunderbird-137.0.2-dsb.xpi 512439 BLAKE2B 
b9f4d5a056f4f636cd49673e41e5cbefea15edbff01e2731698fc1470e31ac8e0a8d1336694f0e7b23e036f970172defab16bd89fc87de32fa226e57ae1799b0
 SHA512 
039ec4ef157a292819c3aba64b187717ded46bad06bd61778d60384c2d9a177559f1986a51a04a8dd3fe775598db068c1b73958d49e5036ee43d37ae1390dbc0
+DIST thunderbird-137.0.2-el.xpi 602627 BLAKE2B 
4a5846ad7228f35305a2a4393f625bfeef4dcce80d0462fd39e2dde39fa106b6e1774374d7f274f806c3fd721bd561560de194be127e27726d88d70f81296c58
 SHA512 
fe070074eec17a479dff690ad3b98411281fb1c03d07e5037afd63bdd9321466674ec97852af75db248fd9d3c6e2a6b8620dd20141c8acb19e40d07c58efe10b
+DIST thunderbird-137.0.2-en-CA.xpi 447809 BLAKE2B 
4553f0d3fadc2fd022d608338c8787f3b07e60d7c822ff89c7789ffd5d1655f7b0a0cde8b3ce34143f5796aadfa6b02e27ffc6d2db11008dc6a53a1664446a54
 SHA512 
6753719e03e04e265d694a558d07325a52ff4031ba6ad5695bed2f957ff25021f5da06ef0188dc84a1002299468e0374559081c411ff96dfa89f9824203b2047
+DIST thunderbird-137.0.2-en-GB.xpi 447641 BLAKE2B 
e69c568664e7a1bf131f424f67f5a60b7a34bf427b79c22deec3f5dda0b3ec33419ac9d17fbef4171a385f94d6550fd844f9d13f0e2e03233dc846f6507c1198
 SHA512 
04af9dd5ee98b7f5ff46fe864197382b966552ad2878ed05b0daa1e44b670f4aa7ed27deb3bb16f0eef6a9c9699065931062112be5b76358f3683f7817d16f3d
+DIST thunderbird-137.0.2-es-AR.xpi 490341 BLAKE2B 
c0e7776e6ed745490ff03d08e632b61debdd1e2f126ac5a2648e971426cdbe83da354415d0fdd980d5571d217696e31bdbe07a5a8ee5e06e4936b1e68baca6f2
 SHA512 
e1b3fff6fd5ad3511a2b3419beca5b355d1e1148af1fe60d9cb2569f8859e54362f710f29bbafc151c5a6482d48d0fd2d1a1ee7217dad8d78a82f9d32dde9be2
+DIST thunderbird-137.0.2-es-ES.xpi 491031 BLAKE2B 
bcb10da7cbfc44f168fb738c7a2e8f93b400d9a980cf168c951915b9ea7d87a58b314410b9bcdeea9f0c14f0bd000df154ff0fc30bbe715ca50fba99e116e71e
 SHA512 
c103d52697924eba5d659e3fd56908091e79d6a0f2d2d9255abcffa40091be998b6627080f270ccefa295568f387a8e752abf0557f9b6addb1d80286dde3f78c
+DIST thunderbird-137.0.2-es-MX.xpi 488163 BLAKE2B 
8143089c86a178dc4dab017c2d116cf3ed61e4e6740dfdb38ba83eb80435631c5ecbb502981b149e0eedbd0168b9f08a3485e861e48fc88ec676888f7cea40e3
 SHA512 
b96f57e757d7f85543bb969e91a057bfa96df9d4ae89c4058c37d95ec8049f8952a44adec7472fc7e9e562df2b6be703f189016699b151d141f91c9ed32e1ee6
+DIST thunderbird-137.0.2-et.xpi 434775 BLAKE2B 
9e719e626eae9893fd7618de5551b99d6cc4aa454ec46a548eead98262c284a763218854762813362f5144a0ef0fcd848beebb2b0735d4d2028d8cc9430e7d4d
 SHA512 
b4d4f4044c249ad58d5400d879a4db191deab3a176bfe381875b598706030d46e298e47c13bfa7702247ffc6314e692fd46d459baa9e58e6855d5499d2b4fcad
+DIST thunderbird-137.0.2-eu.xpi 467842 BLAKE2B 
081d9afdfafe4005520248e659ac75d90d42b455694731994ac663c1a434dd8384e8dfb6e3dc708fcf19f5db4315cce1803f3db32e4653d531fe0cdb0e4706de
 SHA512 
fe24342de56426704a2bec562b86b2850e9e3d3e3201c5288a7d09ad57bfbfcbd3496f6253b835b6f2f510f0f5dfa1f25a01205c0f276784bfd7a433742e9019
+DIST thunderbird-137.0.2-fi.xpi 469701 BLAKE2B 
1326a6768f4bc3b7edb81f334b9726d274312598ed44d1ac5a23b344c7ea8b2fd8679fe921970f025b93aa27fce18ed74b2d93955dbb497ccb985f6386cde839
 SHA512 
5a9cf6682d910616863001932b228a63529dee19ef78cec86056153f85a4ce8966be666f19ec11a5a4022b92c9627e2c83056c29bb4c4704ba003140723c2488
+DIST thunderbird-137.0.2-fr.xpi 503012 BLAKE2B 
15510694269aab1f87a78a8c92dd4d538ba6e9bcca3a47455dd11fcc12ad1478a6260de182e0e935d480cff716cfd1dcf37b8f9290458fe14a0b07c641ec75d7
 SHA512 
6eb7bf477f909ef71fed91ee541948ac4d158908241faf52587f103de877223e552c8a594ffa85f9148d670138358d383f5343a20c47fa37c0aab9b88b3eb22a
+DIST thunderbird-137.0.2-fy-NL.xpi 485650 BLAKE2B 
96529b21b94332972013fdf07d003d31984de267d5c9e30a93541e2d7223753d2c541c6556c89722cbc05cc6e32366933cca663f32ac8337e2f11925b862c196
 SHA512 
d96bf92d2af2353ca0d865c79cb7c5f17a621201cbe72f0ab88cb034178715a33cead96d582e9e3dc97f8741e5d8bfa070ad315fdd8456e4d5cfdab253f5a74a
+DIST thunderbird-137.0.2-ga-IE.xpi 376433 BLAKE2B 
e77bccabd7557f47bb85b371125a98b983797e23b5285e27c965ab1bc6ce8b22a73fd86f07f9f7d7b44fa04bf3a43a21b4d772669319b879ab5d02aaff34bbe4
 SHA512 
12be726e1531bfdd25aeb7beba9f6928b0c53f01b7b397dad596efd2661fc5f7d1690a106efd3e4882d59c2dca3e341b675ec68ee8c65e14d775ffa443ab1ad3
+DIST thunderbird-137.0.2-gd.xpi 461998 BLAKE2B 
5ee2536ab5db96a0524d03e4d4cb8483bbff0b7692eb7a2a7c12c64fc911571d2a7232778acafb3b4b193d4e585d23e1ebe609d591fa69fb344753abb108460a
 SHA512 
9edfb922bbdc51d6e7106be7a43b00d4db8e1206e7e33ff97e74644b132c1e988201fdc92ed71108d18bf15b45423f3328bef013d4bc1475fb18d3d2fa6b645e
+DIST thunderbird-137.0.2-gl.xpi 470667 BLAKE2B 
844f5274e41c7c6c98125139bdfeb0da76f13cce06e12f1db4f52be730480008ff62c246006068fb57d66c43e366aa5b25d163dd7fa0c79e02f1413f2c05c80a
 SHA512 
0eb77bafa516784241a547b0b1f2e399cceae13f7277a6cbf070ade008801bc7a15748ee55ffc1c70f2735a0b6160f6f87e2d7bdd9bac3522bd4054edb9f4f35
+DIST thunderbird-137.0.2-he.xpi 437296 BLAKE2B 
4b38e7af57c381fce457807afdea470425762b4a6894c2a7327db8bc911068d71570a07d2b1aee05353b3a5478b363477b17fee2556ed48f4d9cbfec8402dab8
 SHA512 
b026798872ef6cdef6e4764f21b9f2a043b1d71ef269ee0344c4e0b769c44da2d5743dd57c3ef4c92f09f2a1cdb0323b194125125dd684b5623215c78dbbf92a
+DIST thunderbird-137.0.2-hr.xpi 457488 BLAKE2B 
961f98757abf47c61684097259aac99455ef9d22819d37bb63251f8b83ea3ada6a230ee8d50fd66edd9de1d7bff7dd2fa1d7954fa61bdd76fc9e50e252f3d7ac
 SHA512 
f1ae59bb6bf5fd1c75cc428b6653630e7e655f1d9c5e05279821148b8674a5da6a9243772a123e79111c9f8a6a8e2a7e1c463399b55ec28b9e91a740f643df9c
+DIST thunderbird-137.0.2-hsb.xpi 509502 BLAKE2B 
5d495ac45fff96e08146fd72aa5e8c1c083edfcc5dc9ce05f5bc3133b33f10689a13dca8f21c6ae8c859a740fb4d426a21d32c39e1e4207744782518c53c5763
 SHA512 
2818d3f1fb2c61591483021e82ce4800a6d90da26150e4acf98a92d241c63de3dc7df036d4e9203045dd7fd2d8c0cf30f1851d3efeaeac6f11f47f01e8b78352
+DIST thunderbird-137.0.2-hu.xpi 512394 BLAKE2B 
c23c098fe4e5a62872fbd0c87796b1a9b168e53b57b2e787f53ca9a23efc801fbe1a716d34f748fb89290baabc057e8fb72232fcc419f1b103bbf038501c7087
 SHA512 
94e7c08b8581279319fdc470206481b47e1482b867881b7e47ce1712d09c535354ed1d06a3b744b7e938931c7d786f29a0fac69a6e5477e6b6bdfe41675bdf57
+DIST thunderbird-137.0.2-id.xpi 462798 BLAKE2B 
85b9ef34a28404fb5f04b810208ca8bd5cadb6033e173760ca0af41bf8cc3f97c932c3405f0b35401c62f5e3182647455161d52ffb682219c1a33bcb377e50ac
 SHA512 
3cf4fd4b2cffd8564dfa9c934d2bfd52dadfb47a67de440444afe7520355eb23866cff4d6204c7e2634595f4843792d01ee1d814eead72d1e1db07cae5038a6a
+DIST thunderbird-137.0.2-is.xpi 479073 BLAKE2B 
ba9e3ecdce7ae00f3268968737027268044f04ab03d8d8c34f48db51b244e621f6f5491fcda4acd282f94afc9efe36d7bf325d7f6e65f28800f5c1abf1920f5f
 SHA512 
856eae6f07967b8befedf80b7d7526fff8b8b6265479ca1ee82cccc486756ee23c368ae22e768b1ec4261631b549b8c82fcfb2d490f3c949c6034b9006bdc589
+DIST thunderbird-137.0.2-it.xpi 483519 BLAKE2B 
538165819545fe83f5d2d68dd2fd0f1d8350e1368408cca0cf34c9e34cf5cf16f0cc09625d80aadc6f60135d14ae5f0ca4bd3e505f0515a8cd46b257ce352584
 SHA512 
491082efc8b54572fae88e71f4ef1932630780f857c0a80c8c7d9ac5c15c8afdc09fc8b4a6e7b3ac6d7077f20b265c1752c746ac22ecea9bdc4297a0cafa1907
+DIST thunderbird-137.0.2-ja.xpi 533788 BLAKE2B 
9e9e91601aafd5ddc2a5522c2bae32f1428e0daf70c85e97ce4fc0da0cebca7be28c75ff5a60e79e759fb8ccf5f4d9912d95b52376770c0c86165fce61877818
 SHA512 
43cd6c04099ecc389efc7d9427f252047631f4cd27fc8bec325adcd0c159115afa62a5928a98a6654ae56a9b51afa8ee37f1ffd6118b6bb1ef38729fc42e8b62
+DIST thunderbird-137.0.2-ka.xpi 535435 BLAKE2B 
031a55fbdfeae5c3974faa12a1f33749912a35041b9d2229906dfaed20df4b0e96196135b09cf9d70799ad1f820aaa37ff12c430983bc0488758a59a839fa447
 SHA512 
1ae4a996ea40a28d718f889941f0d891136425b9ec36b14c23a993eb6bd77d6e523692589d5188b45cf518a1fbc1fd88de9c5833764d58ca8f03c7e051e10cc4
+DIST thunderbird-137.0.2-kab.xpi 462929 BLAKE2B 
bd3cb824196ca5837fed6ec30e4a9697109f1b6220155ab7db858cda15f45213e2d674a75d21a4d7e4fd763951fe63f05fb54ab1f0c445382b7516ac32c05375
 SHA512 
bbf14ff4f84bb5181ffb48ae45259a8393b48f86c1ab25c6d14683f580781ba5326157351032a13d082aba34867a02085ca272b536cf5d38fbfe03032f37345a
+DIST thunderbird-137.0.2-kk.xpi 568510 BLAKE2B 
3f3777cd9dbf0b8a8049b0bcc247cc66cb72357b904a868036884bf1f91c335fc3c03e01ea01ed8971c566133cc5addc1b357a4f61e22de6c793116b196a8d71
 SHA512 
2d32b1e0ba53f46ad0ddcffad6f236990e62c42f855062a1802cd381e2e7bf3bf68c603e307f70b084dd874866acee87f7ba530d86f91bbf2bb87dff3b51d351
+DIST thunderbird-137.0.2-ko.xpi 508487 BLAKE2B 
a5ce805c93d981fb697c05f1cf03ff064a83fd83714e64037a63a72639b0e0eb5f7e0492bf83e1821b9aa78420f29b170baaa1266c0a46e6bfee222168f08079
 SHA512 
303c257b43f26dc8216dfe4cd9a2c8a5c40506cee0d4e8fc158ace04d17a04d2ca3c1b1cb3340d8eefd9102d0380776d3945d91cf4c28b2d10859beb5cdd13bc
+DIST thunderbird-137.0.2-lt.xpi 441806 BLAKE2B 
082c0f3d1ab4cea02d3f08768ba3c38b9addcf799767884cd86a5b7ebc874134545eff1b6ad3ae3c976d376e2f92b1e54f3b2886b388e462573544c0fb41c0f2
 SHA512 
10a471993f6f55d9fbcfa9c2a7731cda57d53c55c7c5769a7202d58cead73fb07fca3bf128966ebe8636ac100bfff3afb4099550aa3c08f9ce14a78dc5d4dbbb
+DIST thunderbird-137.0.2-lv.xpi 391440 BLAKE2B 
f88a3dd87c94fe0c103019da7d008904ca31f13ce19a932043cbd621efcc6ae0ca3e3ac65a74b90847e4cdf726615ffe5ef2a4741239007a4adea7d0db32eed5
 SHA512 
d82d4c9ea7b25d7ac4f8d8ebe3d61da4c17773d495c9b3e3fb326700300d6b7a5c71071bf1bb89bbbf9e25c09ed5ed31f98a123fb9d853741be359510cdbd01f
+DIST thunderbird-137.0.2-ms.xpi 351559 BLAKE2B 
605ed8185045b4095f04c4d77105edd68c26688724c6c3612eaec1681e4a8780436ad6d90b66781e6019e1daa5e71210fc1b15543a014678157b4447055e8312
 SHA512 
71749b4a39cc2beefc5cd014df95210fb94f131c2a8dc75b9a7412f70a84cb134e0acb6094cdaa76d0bd04edb854f54104e0c8968c2effe85c18a135b0e4aae4
+DIST thunderbird-137.0.2-nb-NO.xpi 442812 BLAKE2B 
4055d168f201676b524e5b2e555a24918615b9e05aca33950f87dd556365df20aa65b7542a2cf4048e16d94e75dc4972d7cfb420510336c1c0b644b69e6cd6e8
 SHA512 
e2c967c2c0f96c783a6e671e3ca2ffbcb70936041208841b33dbb6406c5b4c2cb961fbf41f002c2a10485b88b41fda8eacec30f5eb322f3fa0f7641097916919
+DIST thunderbird-137.0.2-nl.xpi 477153 BLAKE2B 
dd5bba433d1bb7dc3052bf9a93a5b0329a04b5e287ea434543cc1c07e5b0393e017f245a865bf7b7554f3b53680384b25ca0f0fd917c46658f26bfcb160cd69e
 SHA512 
5e3ca78a57a78a262a5519ff4b3e8e146c4a4d256dc01539264acd35ca9a9d5c51ca063791a2a55609ffd1d89f3a490054df3fd67e4f005881398de20d902a5f
+DIST thunderbird-137.0.2-nn-NO.xpi 463503 BLAKE2B 
98319df9e29508f0584d0eb3b51a8cac267f332216b886095a63fd602bf326bb3ed423404d467fe79bb00f3d01718cdefcc688a2e56f35dd28a5156a238d95f0
 SHA512 
580683f0cdef9fd64f7087768709765befa4fb24562c92fccf45584a0027535d37c06080c66f089c6dc6a00159e3971fce46d6e4311d806748da228c4414a8a4
+DIST thunderbird-137.0.2-pa-IN.xpi 432300 BLAKE2B 
52a3c418ab211adddf94d8175729aca78f06fd5adb0149fd505779f1ecb6b5eb0b1b125c612dd1512ff7900c706106a25e4a1cdc97b7823a44a14cda237d2da6
 SHA512 
02be0e3a98d97b968fac4e37fefb9b8376388b8e974b84aa4110c411cfd75692393e28eb8ae1a4ab0002537bc7aba1a7936117966185848db7bc5a1a7a4da7ba
+DIST thunderbird-137.0.2-pl.xpi 510248 BLAKE2B 
70bbd99b6efb1d0974c4623cbf1aed01639ad64fd465bd987fff47eb6edc61382f534b9fd7f1dcf0c2ff5ba703aa167e590ba2a04d0e3fab0bc29c79c629c38b
 SHA512 
1a46474d6aee4780c6ef13aa54645e291afeb1e86160827a2b28e6868f6a98bcc2d4db77e12b2d30ce5c4e89d84574145672d78d4785032a640d748ccbade5c1
+DIST thunderbird-137.0.2-pt-BR.xpi 484403 BLAKE2B 
530c05ffa3560ab7d2018dba88a5614e481b5e93eb8245e94dcf70be48e74675e4ce386fbdabf4a6fd2cebbcdce96a6c445b93aca29beb4532b2cda0ff260ecb
 SHA512 
b088bfe5273d26c32b3c5dd1653fe418ec3cdd4aa2217daf55436eb216a8ae8269f0337f176fa2cf8b7411aff7d4b07277beb825e8b81c0b0579f5529a84cc57
+DIST thunderbird-137.0.2-pt-PT.xpi 479442 BLAKE2B 
96f4559f124aa1e62bb145a03cabf22e347937e3d046aeca6a9e31b8804847b767a9adde63006c4f2d999efb2a1296c48511b3b59365e4bd1b3a2df7c509e523
 SHA512 
7d93f9a77b64fb77ac503621f556f2fb7abfb9e5b4246a2437539530a75650432070954685effb11b19cb029c31283c045c88b533d9d5e2fd890cc8d269d7f5a
+DIST thunderbird-137.0.2-rm.xpi 484054 BLAKE2B 
7a0aff5d99c0da90c3c0868893ed93bd4a4da9bd0710d58a962e93ef9e774829671e6e78c41a99505de12e656bd198d401e1638fe3e9a86e27aaf92d5f7e8844
 SHA512 
595e3e50a19f3d04a6e3a60eafdec5a48f7293988a6eabfda340d6471606673b2ef03d313fc37131a6f311f8326c545e6e3650291191e0635eb335c444f4d5c4
+DIST thunderbird-137.0.2-ro.xpi 417316 BLAKE2B 
01dc248546c87463b682a49f9f3e4dd5397c74ccc922c42949262b23b8d1acf5c48645f84c56ea197351c37a5039361f2960823950ed6d596d7ee47d98081695
 SHA512 
0e105997c3a831261fdc9b2970d3039eb6b286fba116f6fb94fb828b39ccd20d469767aa9f9ecf7b5d57a5209cad5d33c7eca92dc39b717a37f04505feba23c4
+DIST thunderbird-137.0.2-ru.xpi 586703 BLAKE2B 
2d4d4a29b7869dab5227aa46b26fe14f9a89d1d41dea44267a90504a553360986b2fc6d7069bb04b91a829dec59eedb1ca12ac8adc0c8873e069265bfa05f59d
 SHA512 
ae1b515206d671d5e198b2c525d32f065b01cdd407d150cb36455f4a67987cb6ecc5c8040e04cd72c516893f0d4ec1bbba06cd1de49819e9eb62bc7751840bd0
+DIST thunderbird-137.0.2-sk.xpi 513728 BLAKE2B 
3ee51b8855ce99e873d48b7ed4c9427341ac8be3da58b202e0fd921c3ad4507283d51238e5460724d22716dea90372ab80d3bd524f877c39d7fb134f69754909
 SHA512 
cecc933a313d6dfba5ca2e9373e02611dfd4291d29b3e476b2d9e5663f9d529153bf6cfb9c269ade6812255e0f1386a534edc440b6d4bd59490d7ebadb3ba8e9
+DIST thunderbird-137.0.2-sl.xpi 480178 BLAKE2B 
67bab2776086e17295846175a4f2db25268d4fd728ee9db8fda11784e56146047fa1ec5e6dfdd02bc178db814a09ebf67a0742d00fcefd1d8f0ecdb0f3d9e138
 SHA512 
cb1da0ebb834518241f76b57bdc446129a0b3888a283dc7b5b581d35b0b9aaee02989e4f87e9526430489a047cfd38bfa842e2121b5f54bcaf775e6dc912e24e
+DIST thunderbird-137.0.2-sq.xpi 500757 BLAKE2B 
3c4ff133b1428432687538efb7988c8551d91a668963de79610f8893ce645849b9a7f629fcf26ba1be136b54d06cae57a0f2827245cc2678822b44db4347a7ac
 SHA512 
c21c18d30e6a09a96bc136780c8effe598960cbbc10a35adb8e590f5e022e7a93dbb4d3f62b518c7f0e0fd136daf038e7ea9dce0194b645ada8e111686f423fa
+DIST thunderbird-137.0.2-sr.xpi 495813 BLAKE2B 
97ab9d51c478eddc5afd3dd4aeb31dbd551d7898b5e22059664c204344e879b908875382bbdaddaa0d0e37105f2491de5e083a0ed3195f952b5ac1a175769054
 SHA512 
e5136309bb999948738bc6f01efe0b48af569e2920065a245e9a7578a1036d1140b478c59785dae8813f4ff76c7fcfc14e13cc18157848f1b7f360cb95862d96
+DIST thunderbird-137.0.2-sv-SE.xpi 479635 BLAKE2B 
63acc86e65298f8ffd383d9ac0fe466e21761bda6fdc215951a5098ad5217dd280350539b01d7a169576336736f6ce485dcf27f05fd58e307d79d4ec315f4be3
 SHA512 
59bb572040e7a5b3b823086429ad6b1a74898f3d2d72dfbd2a3f72f0872813194606f5960bb395ded4b8dbd4128b6101788dfc1d025fa6d79d1da7d0cf5db4e8
+DIST thunderbird-137.0.2-th.xpi 561476 BLAKE2B 
e0a5bbefa5cd9b31d3f98e4481b6cd4b18f2deb65946c9b83d40f9832e85001bf552509d6679efc4d6e37e9f91ea28e3469f116ab1063dacd34aec473b34046d
 SHA512 
a7d449d412f84d21fa2eab2198c7030cb4237d9a70ffaf57d81a194637711da5d2ad0a93666fa5e2642e4e93ad479f8787aaae60759e3ff7b7d8df3d1b12e714
+DIST thunderbird-137.0.2-tr.xpi 489630 BLAKE2B 
d545ccdf94b349bd43d0bb1da7f99401087a820335e26873a2753529520992461dc57b0101837154b97a7ade014498783bfee1cca25961c8e8db0403d8ea5887
 SHA512 
dc87062ca2e3369449069afd9600a8bdcc42b58e2401a7cd877df4a1a82e1ffc0b29022ff0088ea49016dad32a8611b83e4dc5283b096276d51eb4f6ae77ab26
+DIST thunderbird-137.0.2-uk.xpi 576370 BLAKE2B 
e391b1419fefad82538f1e30e9b1cec20032cd6477161feb6c2d88255b8c3ed16996d7fbcf7aa4cd2c9ca4ef1c3634bae46459395ffc72e5767d4551ea5bf829
 SHA512 
216a91b6b730c1ba04d4ae96600051af326c10ea249f6176303bf3a5083a340ad84de5bed2dbe9ccb8f7191c47391c572ad0d2603904e3bc33cf9a98859ad562
+DIST thunderbird-137.0.2-uz.xpi 355102 BLAKE2B 
809de5400ff91f365ce93260145681044c69a026b473002235ca95cb964b5097f082606b40b77ad979b6d890611bff10afeb55fba37b3f39ca5e0053c2968f48
 SHA512 
50123b10841141ccd9d3748d916431e35c80ab88b52a0957999e3cd2b1c7e35400002dd14bcd52b28b93033a6c612bf4d160253bcdfb2e8fff180960836b4587
+DIST thunderbird-137.0.2-vi.xpi 513516 BLAKE2B 
82fc18bca1bb1088b1732516edf25151b8435aaf7236b9c664f1254c485f1ca683f8dd4ad57281b2024d4a5d3ad91ad5367f7e52c013a355c149b89d5a1ad71a
 SHA512 
ebec79f6cff10cd99dcd54edc1f51d28949d4b43e8b5f7728920759eb599ed15705996dc816cb33bda9c8add415f4b9de2c6c15f9a8ceb903fef3c2ba9032f29
+DIST thunderbird-137.0.2-zh-CN.xpi 502841 BLAKE2B 
03e095cb37346618c611e434a6b855924d7be4720b74fe4a7ecb60d41205539bdfe2eaeac239943c48645ce34f54623df911388e091ea8d137f97238a3684992
 SHA512 
7d9022cdcd1dfeffd2ada9e95e1b112e9149e973ad9115d84ac55991e6b28567ed44ab454b8b1b318b7d8556ac36a09a882ba2944c4baa2cbcafe651e6190f62
+DIST thunderbird-137.0.2-zh-TW.xpi 505943 BLAKE2B 
15ce3d3a5be8d70e460b2543aba53a664c08d3e441be0562d10261a326667c21f6fc6be726a339ebb1d3564edb9d24c90530c2d487199afed3c51c67022e0c5f
 SHA512 
062fa5f71f4dbd68b4c092c8afa2790fa682d5208b7fcbadb690cecf8d587509e4527d8036a538442454daa0e74b426fffb4b54a4bca6d0d520621a5756eb539
+DIST thunderbird-137.0.2.source.tar.xz 724560064 BLAKE2B 
7ac15397211bd92ad95f0502c5acbab38c156811b18b5bf039819bda45b1682b0fe6c6772f0f6ce05237510a7953ce9d0170ab440436631df3fc3ff4de02c926
 SHA512 
6cc631d14780f1bf9224208881c14834cef078688ffa006f50dfdd3a4e81c95255fb455f530a09a0f296dc494af104aefe2414ac53c6b8c9956ca1a9d7a7e053

diff --git a/mail-client/thunderbird/thunderbird-137.0.2.ebuild 
b/mail-client/thunderbird/thunderbird-137.0.2.ebuild
new file mode 100644
index 000000000000..e642ca652440
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-137.0.2.ebuild
@@ -0,0 +1,1157 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-137-patches-02.tar.xz"
+FIREFOX_LOONG_PATCHSET="firefox-137-loong-patches-01.tar.xz"
+
+LLVM_COMPAT=( 19 )
+
+PYTHON_COMPAT=( python3_{10..13} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+RUST_MIN_VER="1.82.0"
+RUST_NEEDS_LLVM=1
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+# Thunderbird will have separate release and esr channels, matching Firefox's 
rapid and esr.
+MOZ_ESR=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+       MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+       # Convert the ebuild version to the upstream Mozilla version
+       MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+       MOZ_PV="${MOZ_PV/_beta/b}"  # Handle beta for SRC_URI
+       MOZ_PV="${MOZ_PV%%_rc*}"    # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+       # ESR releases have slightly different version numbers
+       MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit 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[@]}
+       loong? (
+               
https://dev.gentoo.org/~xen0n/distfiles/www-client/${MOZ_PN}/${FIREFOX_LOONG_PATCHSET}
+       )"
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+if [[ -n ${MOZ_ESR} ]] ; then
+       SLOT="0/esr"
+else
+       SLOT="0/stable"
+fi
+
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86"
+
+IUSE="+clang debug eme-free hardened hwaccel jack libproxy pgo pulseaudio 
sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent 
+system-libvpx"
+IUSE+=" system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )"
+
+TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird )
+       !system-librnp? ( dev-libs/jsoncpp )
+       system-librnp? ( >=dev-util/librnp-0.17.1 )"
+BDEPEND="${PYTHON_DEPS}
+       $(llvm_gen_dep '
+               llvm-core/clang:${LLVM_SLOT}
+               llvm-core/llvm:${LLVM_SLOT}
+               clang? (
+                       llvm-core/lld:${LLVM_SLOT}
+                       pgo? ( 
llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
+               )
+       ')
+       app-alternatives/awk
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.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.109
+       >=dev-libs/nspr-4.35
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/freetype
+       media-libs/mesa
+       media-video/ffmpeg
+       sys-apps/dbus
+       sys-libs/zlib
+       virtual/freedesktop-icon-theme
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf:2
+       x11-libs/pango
+       x11-libs/pixman
+       jack? ( virtual/jack )
+       pulseaudio? (
+               || (
+                       media-libs/libpulse
+                       >=media-sound/apulse-0.1.12-r4[sdk]
+               )
+       )
+       libproxy? ( net-libs/libproxy )
+       selinux? ( sec-policy/selinux-mozilla )
+       sndio? ( >=media-sound/sndio-1.8.0-r1 )
+       system-av1? (
+               >=media-libs/dav1d-1.0.0:=
+               >=media-libs/libaom-1.0.0:=
+       )
+       system-harfbuzz? (
+               >=media-gfx/graphite2-1.3.13
+               >=media-libs/harfbuzz-2.8.1:0=
+       )
+       system-icu? ( >=dev-libs/icu-76.1:= )
+       system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= )
+       system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+       system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+       system-png? ( >=media-libs/libpng-1.6.45:0=[apng] )
+       system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+       wayland? (
+               >=media-libs/libepoxy-1.5.10-r1
+               x11-libs/gtk+:3[wayland]
+       )
+       wifi? (
+               kernel_linux? (
+                       || (
+                               net-misc/networkmanager
+                               net-misc/connman[networkmanager]
+                       )
+               )
+       )
+       X? (
+               virtual/opengl
+               x11-libs/cairo[X]
+               x11-libs/gtk+:3[X]
+               x11-libs/libX11
+               x11-libs/libXcomposite
+               x11-libs/libXdamage
+               x11-libs/libXext
+               x11-libs/libXfixes
+               x11-libs/libXrandr
+               x11-libs/libxcb:=
+       )"
+RDEPEND="${COMMON_DEPEND}
+       jack? ( virtual/jack )"
+DEPEND="${COMMON_DEPEND}
+       X? (
+               x11-base/xorg-proto
+               x11-libs/libICE
+               x11-libs/libSM
+       )"
+
+llvm_check_deps() {
+       if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then
+               einfo "llvm-core/clang:${LLVM_SLOT} is missing! Cannot use LLVM 
slot ${LLVM_SLOT} ..." >&2
+               return 1
+       fi
+
+       if use clang && ! tc-ld-is-mold ; then
+               if ! has_version -b "llvm-core/lld:${LLVM_SLOT}" ; then
+                       einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot 
use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               fi
+       fi
+
+       if use pgo ; then
+               if ! has_version -b 
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+                       einfo 
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2
+                       einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               fi
+       fi
+
+       einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+       af ar ast be bg br ca cak cs cy da de dsb
+       el en-CA en-GB en-US es-AR es-ES es-MX et eu
+       fi fr fy-NL ga-IE gd gl he hr hsb hu
+       id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+       pa-IN pl pt-BR pt-PT rm ro ru
+       sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+       # https://bugs.gentoo.org/587334
+       local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+               fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+       )
+
+       local lang xflag
+       for lang in "${MOZ_LANGS[@]}" ; do
+               # en and en_US are handled internally
+               if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+                       continue
+               fi
+
+               # strip region subtag if $lang is in the list
+               if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+                       xflag=${lang%%-*}
+               else
+                       xflag=${lang}
+               fi
+
+               SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+               SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> 
${MOZ_P_DISTFILES}-${lang}.xpi"
+               SRC_URI+=" )"
+               IUSE+=" l10n_${xflag/[_@]/-}"
+       done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -ne 1 ]] ; then
+               die "${FUNCNAME} requires exact one argument"
+       fi
+
+       einfo "Clearing cargo checksums for ${1} ..."
+
+       sed -i \
+               -e 's/\("files":{\)[^}]*/\1/' \
+               "${S}"/third_party/rust/${1}/.cargo-checksum.json || die
+}
+
+moz_install_xpi() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local DESTDIR=${1}
+       shift
+
+       insinto "${DESTDIR}"
+
+       local emid xpi_file xpi_tmp_dir
+       for xpi_file in "${@}" ; do
+               emid=
+               xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+               # Unpack XPI
+               unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+               # Determine extension ID
+               if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+                       emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; 
s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+                       [[ -z "${emid}" ]] && die "failed to determine 
extension id from install.rdf"
+               elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+                       emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' 
"${xpi_tmp_dir}/manifest.json")
+                       [[ -z "${emid}" ]] && die "failed to determine 
extension id from manifest.json"
+               else
+                       die "failed to determine extension id"
+               fi
+
+               einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+               newins "${xpi_file}" "${emid}.xpi"
+       done
+}
+
+mozconfig_add_options_ac() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local reason=${1}
+       shift
+
+       local option
+       for option in ${@} ; do
+               echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+       done
+}
+
+mozconfig_add_options_mk() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local reason=${1}
+       shift
+
+       local option
+       for option in ${@} ; do
+               echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+       done
+}
+
+mozconfig_use_enable() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 1 ]] ; then
+               die "${FUNCNAME} requires at least one arguments"
+       fi
+
+       local flag=$(use_enable "${@}")
+       mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" 
"${flag}"
+}
+
+mozconfig_use_with() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 1 ]] ; then
+               die "${FUNCNAME} requires at least one arguments"
+       fi
+
+       local flag=$(use_with "${@}")
+       mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" 
"${flag}"
+}
+
+virtwl() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+       [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to 
be set; try xdg_environment_reset"
+       tinywl -h >/dev/null || die 'tinywl -h failed'
+
+       local VIRTWL VIRTWL_PID
+       coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo 
$WAYLAND_DISPLAY; read _; kill $PPID'; }
+       local -x WAYLAND_DISPLAY
+       read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+       debug-print "${FUNCNAME}: $@"
+       "$@"
+       local r=$?
+
+       [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+       exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+       return $r
+}
+
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != binary ]] ; then
+               # Ensure we have enough disk space to compile
+               if use pgo || use debug ; then
+                       CHECKREQS_DISK_BUILD="14300M"
+               elif tc-is-lto ; then
+                       CHECKREQS_DISK_BUILD="10600M"
+               else
+                       CHECKREQS_DISK_BUILD="7400M"
+               fi
+
+               check-reqs_pkg_pretend
+       fi
+}
+
+pkg_setup() {
+
+       # Get LTO from environment; export after this phase for use in 
src_configure (etc)
+       use_lto=no
+
+       if [[ ${MERGE_TYPE} != binary ]] ; then
+
+               if tc-is-lto; then
+                       use_lto=yes
+                       # LTO is handled via configure
+                       filter-lto
+               fi
+
+               if use pgo ; then
+                       if ! has userpriv ${FEATURES} ; then
+                               eerror "Building ${PN} with USE=pgo and 
FEATURES=-userpriv is not supported!"
+                       fi
+               fi
+
+               if [[ ${use_lto} = yes ]] ; then
+                       # -Werror=lto-type-mismatch -Werror=odr are going to 
fail with GCC,
+                       # bmo#1516758, bgo#942288
+                       filter-flags -Werror=lto-type-mismatch -Werror=odr
+               fi
+
+               if use pgo || use debug ; then
+                       CHECKREQS_DISK_BUILD="14300M"
+               elif [[ ${use_lto} == "yes" ]] ; then
+                       CHECKREQS_DISK_BUILD="10600M"
+               else
+                       CHECKREQS_DISK_BUILD="7400M"
+               fi
+
+               check-reqs_pkg_setup
+               llvm-r1_pkg_setup
+               rust_pkg_setup
+               python-any-r1_pkg_setup
+
+               # Avoid PGO profiling problems due to enviroment leakage
+               # These should *always* be cleaned up anyway
+               unset \
+                       DBUS_SESSION_BUS_ADDRESS \
+                       DISPLAY \
+                       ORBIT_SOCKETDIR \
+                       SESSION_MANAGER \
+                       XAUTHORITY \
+                       XDG_CACHE_HOME \
+                       XDG_SESSION_COOKIE
+
+               # Build system is using /proc/self/oom_score_adj, bug #604394
+               addpredict /proc/self/oom_score_adj
+
+               if use pgo ; then
+                       # Update 105.0: "/proc/self/oom_score_adj" isn't enough 
anymore with pgo, but not sure
+                       # whether that's due to better OOM handling by Firefox 
(bmo#1771712), or portage
+                       # (PORTAGE_SCHEDULING_POLICY) update...
+                       addpredict /proc
+
+                       # Clear tons of conditions, since PGO is 
hardware-dependant.
+                       addpredict /dev
+               fi
+
+               if ! mountpoint -q /dev/shm ; then
+                       # If /dev/shm is not available, configure is known to 
fail with
+                       # a traceback report referencing 
/usr/lib/pythonN.N/multiprocessing/synchronize.py
+                       ewarn "/dev/shm is not mounted -- expect build 
failures!"
+               fi
+
+               # Google API keys (see 
http://www.chromium.org/developers/how-tos/api-keys)
+               # Note: These are for Gentoo Linux use ONLY. For your own 
distribution, please
+               # get your own set of keys.
+               if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+                       
MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+               fi
+
+               if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+                       
MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+               fi
+
+               # Mozilla API keys (see 
https://location.services.mozilla.com/api)
+               # Note: These are for Gentoo Linux use ONLY. For your own 
distribution, please
+               # get your own set of keys.
+               if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+                       
MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+               fi
+
+               # Ensure we use C locale when building, bug #746215
+               export LC_ALL=C
+       fi
+
+       export use_lto
+}
+
+src_unpack() {
+       local _lp_dir="${WORKDIR}/language_packs"
+       local _src_file
+
+       if [[ ! -d "${_lp_dir}" ]] ; then
+               mkdir "${_lp_dir}" || die
+       fi
+
+       for _src_file in ${A} ; do
+               if [[ ${_src_file} == *.xpi ]]; then
+                       cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die 
"Failed to copy '${_src_file}' to '${_lp_dir}'!"
+               else
+                       unpack ${_src_file}
+               fi
+       done
+}
+
+src_prepare() {
+       if [[ ${use_lto} == "yes" ]]; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+       fi
+
+       # Workaround for bgo#915651 on musl
+       if use elibc_glibc ; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+       fi
+
+       eapply "${WORKDIR}/firefox-patches"
+       use loong && eapply "${WORKDIR}/firefox-loong-patches"
+
+       # Allow user to apply any additional patches without modifing ebuild
+       eapply_user
+
+       # Make cargo respect MAKEOPTS
+       export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+       # Workaround for bgo#915651
+       if ! use elibc_glibc ; then
+               if use amd64 ; then
+                       export RUST_TARGET="x86_64-unknown-linux-musl"
+               elif use x86 ; then
+                       export RUST_TARGET="i686-unknown-linux-musl"
+               elif use arm64 ; then
+                       export RUST_TARGET="aarch64-unknown-linux-musl"
+               elif use loong; then
+                       # Only the LP64D ABI of LoongArch64 is actively 
supported among
+                       # the wider Linux ecosystem, so the assumption is safe.
+                       export RUST_TARGET="loongarch64-unknown-linux-musl"
+               elif use ppc64 ; then
+                       export RUST_TARGET="powerpc64le-unknown-linux-musl"
+               elif use riscv ; then
+                       # We can pretty safely rule out any 32-bit riscvs, but 
64-bit riscvs also have tons of
+                       # different ABIs available. 
riscv64gc-unknown-linux-musl seems to be the best working
+                       # guess right now though.
+                       elog "riscv detected, forcing a riscv64 target for now."
+                       export RUST_TARGET="riscv64gc-unknown-linux-musl"
+               else
+                       die "Unknown musl chost, please post a new bug with 
your rustc -vV along with emerge --info"
+               fi
+       fi
+
+       # Make LTO respect MAKEOPTS
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/build/moz.configure/lto-pgo.configure || die "Failed 
sedding multiprocessing.cpu_count"
+
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/third_party/chromium/build/toolchain/get_cpu_count.py || 
die "Failed sedding multiprocessing.cpu_count"
+
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed 
sedding multiprocessing.cpu_count"
+
+       # sed-in toolchain prefix
+       sed -i \
+               -e "s/objdump/${CHOST}-objdump/" \
+               "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py 
|| die "sed failed to set toolchain prefix"
+
+       sed -i \
+               -e 's/ccache_stats = None/return None/' \
+               "${S}"/python/mozbuild/mozbuild/controller/building.py || die 
"sed failed to disable ccache stats call"
+
+       einfo "Removing pre-built binaries ..."
+
+       find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) 
-print -delete || die
+
+       # Clear checksums from cargo crates we've manually patched.
+       # moz_clear_vendor_checksums xyz
+
+       # Create build dir
+       BUILD_DIR="${WORKDIR}/${PN}_build"
+       mkdir -p "${BUILD_DIR}" || die
+
+       # Write API keys to disk
+       echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+       echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || 
die
+       echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+       xdg_environment_reset
+}
+
+src_configure() {
+       # Show flags set at the beginning
+       einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+       einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+       einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+       einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+       einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+       local have_switched_compiler=
+       if use clang; then
+               # Force clang
+               einfo "Enforcing the use of clang due to USE=clang ..."
+
+               local version_clang=$(clang --version 2>/dev/null | grep -F -- 
'clang version' | awk '{ print $3 }')
+               [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 
"${version_clang}")
+               [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+               if tc-is-gcc; then
+                       have_switched_compiler=yes
+               fi
+
+               AR=llvm-ar
+               CC=${CHOST}-clang-${version_clang}
+               CXX=${CHOST}-clang++-${version_clang}
+               NM=llvm-nm
+               RANLIB=llvm-ranlib
+       elif ! use clang && ! tc-is-gcc ; then
+               # Force gcc
+               have_switched_compiler=yes
+               einfo "Enforcing the use of gcc due to USE=-clang ..."
+               AR=gcc-ar
+               CC=${CHOST}-gcc
+               CXX=${CHOST}-g++
+               NM=gcc-nm
+               RANLIB=gcc-ranlib
+       fi
+
+       if [[ -n "${have_switched_compiler}" ]] ; then
+               # Because we switched active compiler we have to ensure
+               # that no unsupported flags are set
+               strip-unsupported-flags
+       fi
+
+       # Ensure we use correct toolchain,
+       # AS is used in a non-standard way by upstream, #bmo1654031
+       export HOST_CC="$(tc-getBUILD_CC)"
+       export HOST_CXX="$(tc-getBUILD_CXX)"
+       export AS="$(tc-getCC) -c"
+
+       # Configuration tests expect llvm-readelf output, bug 913130
+       READELF="llvm-readelf"
+
+       tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG
+
+       # Pass the correct toolchain paths through cbindgen
+       if tc-is-cross-compiler ; then
+               export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} 
--target=${CHOST} ${BINDGEN_CFLAGS-}"
+       fi
+
+       # Set MOZILLA_FIVE_HOME
+       export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+       # python/mach/mach/mixin/process.py fails to detect SHELL
+       export SHELL="${EPREFIX}/bin/bash"
+
+       # Set state path
+       export MOZBUILD_STATE_PATH="${BUILD_DIR}"
+
+       # Set MOZCONFIG
+       export MOZCONFIG="${S}/.mozconfig"
+
+       # Initialize MOZCONFIG
+       mozconfig_add_options_ac '' --enable-application=comm/mail
+       mozconfig_add_options_ac '' --enable-project=comm/mail
+
+       # Set Gentoo defaults
+       mozconfig_add_options_ac 'Gentoo default' \
+               --allow-addon-sideload \
+               --disable-cargo-incremental \
+               --disable-crashreporter \
+               --disable-disk-remnant-avoidance \
+               --disable-geckodriver \
+               --disable-install-strip \
+               --disable-legacy-profile-creation \
+               --disable-parental-controls \
+               --disable-strip \
+               --disable-tests \
+               --disable-updater \
+               --disable-valgrind \
+               --disable-wmf \
+               --enable-dbus \
+               --enable-js-shell \
+               --enable-negotiateauth \
+               --enable-new-pass-manager \
+               --enable-official-branding \
+               --enable-release \
+               --enable-thunderbird-rust \
+               --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 || use loong ; then
+               mozconfig_add_options_ac '' --enable-rust-simd
+       fi
+
+       # For future keywording: This is currently (97.0) only supported on:
+       # amd64, arm, arm64 & x86.
+       # Might want to flip the logic around if Firefox is to support more 
arches.
+       # bug 833001, bug 903411#c8
+       if use loong || use ppc64 || use riscv; then
+               mozconfig_add_options_ac '' --disable-sandbox
+       else
+               mozconfig_add_options_ac '' --enable-sandbox
+       fi
+
+       # riscv-related options, bgo#947337, bgo#947338
+       if use riscv ; then
+               mozconfig_add_options_ac 'Disable JIT for RISC-V 64' 
--disable-jit
+               mozconfig_add_options_ac 'Disable webrtc for RISC-V' 
--disable-webrtc
+       fi
+
+       if [[ -s "${S}/api-google.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 
}') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+       else
+               einfo "Building without Google API key ..."
+       fi
+
+       if [[ -s "${S}/api-location.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 
}') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-location-service-api-keyfile="${S}/api-location.key"
+       else
+               einfo "Building without Location API key ..."
+       fi
+
+       if [[ -s "${S}/api-mozilla.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 
}') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+       else
+               einfo "Building without Mozilla API key ..."
+       fi
+
+       mozconfig_use_with system-av1
+       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 libproxy
+
+       use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+       if use hardened ; then
+               mozconfig_add_options_ac "+hardened" --enable-hardening
+               append-ldflags "-Wl,-z,relro -Wl,-z,now"
+
+               # Increase the FORTIFY_SOURCE value, #910071.
+               sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' 
"${S}"/build/moz.configure/toolchain.configure || die
+       fi
+
+       local myaudiobackends=""
+       use jack && myaudiobackends+="jack,"
+       use sndio && myaudiobackends+="sndio,"
+       use pulseaudio && myaudiobackends+="pulseaudio,"
+       ! use pulseaudio && myaudiobackends+="alsa,"
+
+       mozconfig_add_options_ac '--enable-audio-backends' 
--enable-audio-backends="${myaudiobackends::-1}"
+
+       mozconfig_use_enable wifi necko-wifi
+
+       if use X && use wayland ; then
+               mozconfig_add_options_ac '+x11+wayland' 
--enable-default-toolkit=cairo-gtk3-x11-wayland
+       elif ! use X && use wayland ; then
+               mozconfig_add_options_ac '+wayland' 
--enable-default-toolkit=cairo-gtk3-wayland-only
+       else
+               mozconfig_add_options_ac '+x11' 
--enable-default-toolkit=cairo-gtk3-x11-only
+       fi
+
+       if [[ ${use_lto} == "yes" ]] ; then
+               if use clang ; then
+                       # Upstream only supports lld or mold when using clang.
+                       if tc-ld-is-mold ; then
+                               # mold expects the -flto line from *FLAGS 
configuration, bgo#923119
+                               append-ldflags "-flto=thin"
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang and USE=lto" --enable-linker=lld
+                       fi
+
+                       mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+               else
+                       # ThinLTO is currently broken, see bmo#1644409.
+                       # mold does not support gcc+lto combination.
+                       mozconfig_add_options_ac '+lto' --enable-lto=full
+                       mozconfig_add_options_ac "linker is set to bfd" 
--enable-linker=bfd
+               fi
+
+       else
+               # Avoid auto-magic on linker
+               if use clang ; then
+                       # lld is upstream's default
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang" --enable-linker=lld
+                       fi
+
+               else
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "linker is set to bfd 
due to USE=-clang" --enable-linker=bfd
+                       fi
+               fi
+       fi
+
+       if use pgo ; then
+               mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+               if use clang ; then
+                       # Used in build/pgo/profileserver.py
+                       export LLVM_PROFDATA="llvm-profdata"
+               fi
+       fi
+
+       mozconfig_use_enable debug
+       if use debug ; then
+               mozconfig_add_options_ac '+debug' --disable-optimize
+               mozconfig_add_options_ac '+debug' --enable-jemalloc
+               mozconfig_add_options_ac '+debug' --enable-real-time-tracing
+       else
+               mozconfig_add_options_ac 'Gentoo defaults' 
--disable-real-time-tracing
+
+               if is-flag '-g*' ; then
+                       if use clang ; then
+                               mozconfig_add_options_ac 'from CFLAGS' 
--enable-debug-symbols=$(get-flag '-g*')
+                       else
+                               mozconfig_add_options_ac 'from CFLAGS' 
--enable-debug-symbols
+                       fi
+               else
+                       mozconfig_add_options_ac 'Gentoo default' 
--disable-debug-symbols
+               fi
+
+               if is-flag '-O0' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O0
+               elif is-flag '-O4' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O4
+               elif is-flag '-O3' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O3
+               elif is-flag '-O1' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O1
+               elif is-flag '-Os' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-Os
+               else
+                       mozconfig_add_options_ac "Gentoo default" 
--enable-optimize=-O2
+               fi
+       fi
+
+       # Debug flag was handled via configure
+       filter-flags '-g*'
+
+       # Optimization flag was handled via configure
+       filter-flags '-O*'
+
+       # elf-hack
+       # Filter "-z,pack-relative-relocs" and let the build system handle it 
instead.
+       if use amd64 || use x86 ; then
+               filter-flags "-z,pack-relative-relocs"
+
+               if tc-ld-is-mold ; then
+                       # relr-elf-hack is currently broken with mold, 
bgo#916259
+                       mozconfig_add_options_ac 'disable elf-hack with mold 
linker' --disable-elf-hack
+               else
+                       mozconfig_add_options_ac 'relr elf-hack' 
--enable-elf-hack=relr
+               fi
+       elif use loong || use ppc64 || use riscv ; then
+               # '--disable-elf-hack' is not recognized on loong/ppc64/riscv,
+               # see bgo #917049, #930046
+               :;
+       else
+               mozconfig_add_options_ac 'disable elf-hack on non-supported 
arches' --disable-elf-hack
+       fi
+
+       if ! use elibc_glibc; then
+               mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+       fi
+
+       # System-av1 fix
+       use system-av1 && append-ldflags "-Wl,--undefined-version"
+
+       # Make revdep-rebuild.sh happy; Also required for musl
+       append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
+
+       # Pass $MAKEOPTS to build system
+       export MOZ_MAKE_FLAGS="${MAKEOPTS}"
+
+       # Use system's Python environment
+       export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+       export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+
+       # Disable notification when build system has finished
+       export MOZ_NOSPAM=1
+
+       # Portage sets XARGS environment variable to "xargs -r" by default which
+       # breaks build system's check_prog() function which doesn't support 
arguments
+       mozconfig_add_options_ac 'Gentoo default' 
"XARGS=${EPREFIX}/usr/bin/xargs"
+
+       # Set build dir
+       mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
+
+       # Show flags we will use
+       einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+       einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
+       einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+       einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
+       einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+       # Handle EXTRA_CONF and show summary
+       local ac opt hash reason
+
+       # Apply EXTRA_ECONF entries to $MOZCONFIG
+       if [[ -n ${EXTRA_ECONF} ]] ; then
+               IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
+               for opt in "${ac[@]}"; do
+                       mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
+               done
+       fi
+
+       echo
+       echo "=========================================================="
+       echo "Building ${PF} with the following configuration"
+       grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
+               [[ -z ${hash} || ${hash} == \# ]] \
+                       || die "error reading mozconfig: ${ac} ${opt} ${hash} 
${reason}"
+               printf "    %-30s  %s\n" "${opt}" "${reason:-mozilla.org 
default}"
+       done
+       echo "=========================================================="
+       echo
+
+       ./mach configure || die
+}
+
+src_compile() {
+       local virtx_cmd=
+
+       if [[ ${use_lto} == "yes" ]] && tc-ld-is-mold ; then
+               # increase ulimit with mold+lto, bugs #892641, #907485
+               if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+                       ewarn "Unable to modify ulimits - building with 
mold+lto might fail due to low ulimit -n resources."
+                       ewarn "Please see bugs #892641 & #907485."
+               else
+                       ulimit -n 16384
+               fi
+       fi
+
+       if use pgo; then
+               # Reset and cleanup environment variables used by GNOME/XDG
+               gnome2_environment_reset
+
+               addpredict /root
+
+               if ! use X; then
+                       virtx_cmd=virtwl
+               else
+                       virtx_cmd=virtx
+               fi
+       fi
+
+       if ! use X; then
+               local -x GDK_BACKEND=wayland
+       else
+               local -x GDK_BACKEND=x11
+       fi
+
+       ${virtx_cmd} ./mach build --verbose || die
+}
+
+src_install() {
+       # xpcshell is getting called during install
+       pax-mark m \
+               "${BUILD_DIR}"/dist/bin/xpcshell \
+               "${BUILD_DIR}"/dist/bin/${PN} \
+               "${BUILD_DIR}"/dist/bin/plugin-container
+
+       DESTDIR="${D}" ./mach install || die
+
+       # Upstream cannot ship symlink but we can (bmo#658850)
+       rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+       dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+       # Don't install llvm-symbolizer from llvm-core/llvm package
+       if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+               rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+       fi
+
+       # Install policy (currently only used to disable application updates)
+       insinto "${MOZILLA_FIVE_HOME}/distribution"
+       newins "${FILESDIR}"/distribution.ini distribution.ini
+       newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+       # Install system-wide preferences
+       local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+       insinto "${PREFS_DIR}"
+       newins "${FILESDIR}"/gentoo-default-prefs-r1.js gentoo-prefs.js
+
+       local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+       # Force hwaccel prefs if USE=hwaccel is enabled
+       if use hwaccel ; then
+               cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
+               >>"${GENTOO_PREFS}" \
+               || die "failed to add prefs to force hardware-accelerated 
rendering to all-gentoo.js"
+
+               if use wayland; then
+                       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
hwaccel wayland prefs"
+                       pref("gfx.x11-egl.force-enabled",          false);
+                       EOF
+               else
+                       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
hwaccel x11 prefs"
+                       pref("gfx.x11-egl.force-enabled",          true);
+                       EOF
+               fi
+       fi
+
+       # Set dictionary path to use system hunspell
+       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
spellchecker.dictionary_path pref"
+       pref("spellchecker.dictionary_path",       
"${EPREFIX}/usr/share/myspell");
+       EOF
+
+       # Force the graphite pref if USE=system-harfbuzz is enabled, since the 
pref cannot disable it
+       if use system-harfbuzz ; then
+               cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
gfx.font_rendering.graphite.enabled pref"
+               sticky_pref("gfx.font_rendering.graphite.enabled", true);
+               EOF
+       fi
+
+       # Install language packs
+       local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name 
'*.xpi') )
+       if [[ -n "${langpacks}" ]] ; then
+               moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" 
"${langpacks[@]}"
+       fi
+
+       # Install icons
+       local icon_srcdir="${S}/comm/mail/branding/thunderbird"
+       local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
+
+       insinto /usr/share/icons/hicolor/symbolic/apps
+       newins "${icon_symbolic_file}" ${PN}-symbolic.svg
+
+       local icon size
+       for icon in "${icon_srcdir}"/default*.png ; do
+               size=${icon%.png}
+               size=${size##*/default}
+
+               if [[ ${size} -eq 48 ]] ; then
+                       newicon "${icon}" ${PN}.png
+               fi
+
+               newicon -s ${size} "${icon}" ${PN}.png
+       done
+
+       # Install menu
+       local app_name="Mozilla ${MOZ_PN^}"
+       local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
+       local exec_command="${PN}"
+       local icon="${PN}"
+       local use_wayland="false"
+
+       if [[ -n ${MOZ_ESR} ]] ; then
+               local desktop_filename="${PN}-esr.desktop"
+       else
+               local desktop_filename="${PN}.desktop"
+       fi
+
+       if use wayland ; then
+               use_wayland="true"
+       fi
+
+       cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
+
+       sed -i \
+               -e "s:@NAME@:${app_name}:" \
+               -e "s:@EXEC@:${exec_command}:" \
+               -e "s:@ICON@:${icon}:" \
+               "${WORKDIR}/${PN}.desktop-template" || die
+
+       newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
+
+       rm "${WORKDIR}/${PN}.desktop-template" || die
+
+       # Install wrapper script
+       [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
+       newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
+
+       # Update wrapper
+       sed -i \
+               -e "s:@PREFIX@:${EPREFIX}/usr:" \
+               -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
+               "${ED}/usr/bin/${PN}" || die
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       if ver_replacing -lt 136.0 ; then
+               elog "In this version of Thunderbird, upstream introduced an 
in-app notification"
+               elog "system. Setting pref 'mail.inappnotifications.enabled' to 
false and nullifying"
+               elog "'mail.inappnotifications.url' may help you avoid these 
messages, if you don't"
+               elog "wish to receive them."
+       fi
+
+       optfeature_header "Optional programs for extra features:"
+       optfeature "desktop notifications" x11-libs/libnotify
+       optfeature "encrypted chat support" net-libs/libotr
+       optfeature "fallback mouse cursor theme e.g. on WMs" 
gnome-base/gsettings-desktop-schemas
+}

Reply via email to