commit:     92519528db0841f5f4532657aa8f4eaa2807af16
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 11 08:11:39 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Dec 11 08:19:47 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92519528

mail-client/thunderbird: add 140.6.0

 - sync changes from firefox (nspr, ffmpeg version requirements)

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

 mail-client/thunderbird/Manifest                   |   66 ++
 mail-client/thunderbird/thunderbird-140.6.0.ebuild | 1156 ++++++++++++++++++++
 2 files changed, 1222 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 7d07e404e2d9..655abe1a8603 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -1,6 +1,7 @@
 DIST firefox-139-loong-patches-02.tar.xz 3096 BLAKE2B 
2e9c0f3dac780c808a13f70fe3808df9976898360b55113def97bf3594893166e0647c70ebc389b2d14fa2c2453fc1dd68aba20d92178670ef97d70c34205e1c
 SHA512 
e1244007290e2e15d14cf519e3ade6a4da06abe41c416de60569a11396609661cb62fb5b592e763cc079406699dc33d6a34851f71068f4d09bdf34021b035a59
 DIST firefox-140esr-patches-03.tar.xz 13452 BLAKE2B 
f1e5da9400ae5d15dec852f0d68d470f40cff11764813bb7429f320d82cbf838e4e6cc7097f42d154a4a67061a66ad31c0749020067fd2a7f891c9003d163b80
 SHA512 
966aa2d0b8472bd4c002676572b0755cbf0ecce8709776d07fa2cfec512d942ebc735c6ac20c5a5a19af8e00d762e8967c7d43325987c3b331c8c86183eec044
 DIST firefox-140esr-patches-03t.tar.xz 13772 BLAKE2B 
a62d981c81690306845b28375d1db9526e26a59d9f08fbfe3bce9711fb90567ecf502e398f929a7d98d3c563d8b98ddae760ffb7336be8fee96703cf13912637
 SHA512 
f357bfcaa4f51fd67c8278cb42b4fa9fa2595288a1ed44009dedc4080a7e1b70dba8495ea19c9f18a482b83a5ba261b5fbd91f29ed257cc80ba043316b95b573
+DIST firefox-140esr-patches-04.tar.xz 124424 BLAKE2B 
89fd2cedb67a9d82c339fed01b79c9c4b3f58051b68764121f982d4eba04d979c9d16238a7599fbab4f9d3965253f3ec4886f2da590b05116bc6ea0ee027e935
 SHA512 
b8c268fd5118007490edb7ef99f90148af4fa88ec7cdec03d028630476c85862e896b1ad3a6964215835f6f442aa71df96d6dd9aab632802773792bced8dc17b
 DIST firefox-143-patches-02t.tar.xz 14036 BLAKE2B 
7d84726e1d4ababc088052382e72aecce413ac02acb0ae0aaa974d258ebabe971a622b9c765f3f03d3a58a80e053f5d3c831c845b357df02bf88135fd416e7e4
 SHA512 
8d66d77a04b68018eac734b4eae4618d91b1a1f069733276a2187577ff13c4d08baee9fb0532159aaa3e3269716583ffc8af9f26502376907e87e3ed58bd6845
 DIST firefox-144-patches-02.tar.xz 11860 BLAKE2B 
94fc2a688a938059cb4127c20d674b042418bc994714becf815780c3c775cd3bbd6ee12a267cb38ae3b5b5daba045a692600881afa2b4435031a55838ff9de48
 SHA512 
187fdf7e8d094b89a17bac55448ef4e32879573b05afc4e21b2685fe0bf266526169614ff41516bd3fb05a02406f4c7c5dad680720913a964aebba23801ab334
 DIST firefox-145-patches-01.tar.xz 10908 BLAKE2B 
b5ec713e92609c44c58303e296098462f2a28c075394ad90cd9d0a5d3c54022f9d84a60cf95f521ef03ab14229fcf99d2bf0c95b91cae6851f5e87cb8d419e56
 SHA512 
4a99db63b9e24035e1bc290cc33cd7a01cb0e95ec682886828d25d494163bfd24f945e0743c60f2bcaefa168b825a06f4398ecafec603ba523bab0956515916a
@@ -200,6 +201,71 @@ DIST thunderbird-140.5.0esr-vi.xpi 518874 BLAKE2B 
dd28e4911b4839602ec4136154e694
 DIST thunderbird-140.5.0esr-zh-CN.xpi 507840 BLAKE2B 
af0769298764b66a984dbd9ae60f1beab02815435b0e5a6d37cc2f3001480d6aa5e4cdfe4d70b71ef817c820675bc809bdd9109da85b627ce5dc4f9d598757c6
 SHA512 
a8e5b8f07734cf9ed6d7ba5636c5a077b4c9c2a4a2460d87f0864c66ae86cc2dbe776c71a60acd9285513a4a07fadd9d73997783dfae8061e53ee22914499ece
 DIST thunderbird-140.5.0esr-zh-TW.xpi 511163 BLAKE2B 
feff2877b6a9bdf27ef5893381204c33812e70d99efdfd9e9ad9db46e954777feb71ab2a9675a54ccd0af0d200e8e9fa949341ea358788c7956cd66819e5dbac
 SHA512 
a4336503647ada5faaea42fcf2a1b2033259691e9ad43e4549224a16013e586b26457af216d86005efc3fab70821168d0b3db892eaa0669f01ef99c1cadcca89
 DIST thunderbird-140.5.0esr.source.tar.xz 747338592 BLAKE2B 
c858c92b981353fc7c1808cb01ad2578bc2616509ef02adc231a6276145589a633cc40b4a80bf7155f1554299123dfe26fc50912d840bbe2b40d52df1d7ba9c4
 SHA512 
ce0d0ab4715831656e6c841d75a69109db6d64b4151ab69ecc954f1d3a045abf64e641e0fa46113cc7f3149bfe237687d4c11de1c14d013ce76e55679cadb1c5
+DIST thunderbird-140.6.0esr-af.xpi 316217 BLAKE2B 
c7238abeeca8275eeafa982c35d46816de5c0c0751f037f6acfc07833077c521a752946b56b1c3b92e756212be2105b8203b4172da6cfffb66f47d1f34f2aee7
 SHA512 
f7ae8f8ba1e12e85a6cade91d0520ef957f1ea4b8da086805aec9c5e2d22b0d3667b5437bd5a9177c9a7e4e4759e083e23ac4b6473a3858d98465073540d2148
+DIST thunderbird-140.6.0esr-ar.xpi 436191 BLAKE2B 
6a00d9f3b2a2985058dee6065c320b66d37a187f48be4d6ba7f970382a2ab564d12d1bb4babd2692572c7f1e7cb320e8d03e510814e295bb9c00a7eea1ab076e
 SHA512 
38c52544ff236113c57a1722e2767a2838a371bc93c2b028d0cc52e188bf407d35e99d37584d3c15fee465975e5f8d0c2489d987220e7016a9436f50f21bb903
+DIST thunderbird-140.6.0esr-ast.xpi 340597 BLAKE2B 
2e7eea3d13f0e84650f425d5ec8a4705ad78416f095726db60fd0f2cbfc0947e9b3b02439db7c7dae310f8fa8a92f63f24b2a47287f60f03b886e8124bc97510
 SHA512 
c479cf7a42b8698b520a6bd29490000d47c8be24d37b49b1344d797a2d80fabe9a42676403fa210cfd12d676695fbf90e09325b4ded1ad69f05fc68f1b4fd255
+DIST thunderbird-140.6.0esr-be.xpi 520643 BLAKE2B 
b8f0b7bf7bd42a8b55347520ade526f4261977d5e5c768fe356b33452c283b95264445513f73317a967cd374fad5f9492f5f098dd081078477af75ade24dddbc
 SHA512 
c26aefb2d8d48127239ee4ea4f777ce5fc8ba27655e44ac90328191b1c1b6e33c804bad636e0e6e781f52286354a1f6513d4c343e19599dc240f0a8a357e1906
+DIST thunderbird-140.6.0esr-bg.xpi 536115 BLAKE2B 
f6018cd6c6acb9a8c8af4406c2a7e6451f3c64b2e96e5d3ca1e32f9b12656ea37050cf9a9471bb8d45fdc74c8c4d71585defe171239090dce7cc432325264c26
 SHA512 
cdfd405e480bfe53ac3cfb43fdae85b06c3810824964eb29dfb0e95719a3a68c6ee2fdad983903fdc3970dcac1864c69fbc64e4d81a29d4fb5cb8efcb88abba7
+DIST thunderbird-140.6.0esr-br.xpi 402747 BLAKE2B 
56b53654f52dd69104f813b0022d97c1ab9a66caf23741ecce87ee8a158b75808218300ee49db3d658387e6a85506ac19c2a73590a888142df4607e51c158431
 SHA512 
dbbc22a5deeb9d191b10cfe19caa69ecad94d462560741a3d2a7816926cb442fcc39786ca9188c3b7cf0aa4eb11917119ef71b393c6eaacda06db84bd7f8b76a
+DIST thunderbird-140.6.0esr-ca.xpi 440583 BLAKE2B 
19df0e5b6dd7b3554122328469cbd75dce2be6f12d1fd24ed60c2c464208d962a026ab03f802f6d075c99388b277e295fb15e52834b95fe647b77accd3ff4f8a
 SHA512 
ef1318aa8d46a36e13a9eb4411eb63bd59cdecb74ddf00355e504667fad312a545e70bd6ef0127088939c2a5aeae91dcb567c608b108bedcdf8ca253514d65da
+DIST thunderbird-140.6.0esr-cak.xpi 418015 BLAKE2B 
8cf3d40db61d0d2179799b2e20708ee4b5a0c497fab1bbac615671af4dbdbc031c272445237bf3f4dd8af93aabba9066d8101f3a78aa2f0ad7b56cba3bffa704
 SHA512 
86bad9fa12199a658916154ada0d19c616e9baf01a603303ebbef5a17dbae3ffdc16cb1e8c39e220f4f0a1deda83b019743729439f3c4d34da3ddd5dd2c886a0
+DIST thunderbird-140.6.0esr-cs.xpi 519495 BLAKE2B 
076527c919fa0c7ed14be3d53a3fced3aed451c9a771acc64476dbeff55e10caf257c9f8a243190152adf816baa216f1d75feeac71d976f4c2221a1cc907b6e5
 SHA512 
5272aa222ae8669e8f811eec9eb9dd1befd7ed52af14d22e172eb56700440c849b6ee2aff2fc8ce28ef4bac6878ee2d2d538019398cb9e0c96dc2505028ff43d
+DIST thunderbird-140.6.0esr-cy.xpi 487641 BLAKE2B 
d48c1eb5835f5285acacf2016b0d9eba5fb3d48eb605d08175253ec2d5d8dc0cd1f2a56af37d5b72a2469b4c5e526cfd17ba83f2087304bfa1d1084b38243e05
 SHA512 
0eefc2e1af001faf772831436bae8b875878f10b6cb98600ab0db26eff1acf33809bb0a3565d5f0048201989c10719d1a9b3957eac1d026a5d6ab3de78592882
+DIST thunderbird-140.6.0esr-da.xpi 476637 BLAKE2B 
0074d59af15661175dac0c418a1176e98ea3df86d54fffeb8985b267100f712ffd6efff94191a5abe1441c361bfe36d76b91df1fa7e2b4dfe5fbd221c7c4cb07
 SHA512 
e4f29c9f4df8d79076c0f64b251a120e9f244ab81b5fc8bfbf9b621ce05127bb9f16e5c7a247a40098e876e81dd6960464f2bdfbf7ceecac4b1abd232af9866e
+DIST thunderbird-140.6.0esr-de.xpi 505061 BLAKE2B 
08d01a7aff58b4bb35512399f59c634d87934687bf237ecbc383826e2113e4bd8cc44258a69be7ae74d9f15799eec27ebfae928a6d3a0c200972ce555d612b7b
 SHA512 
f3d21197935c89937482687272e96d7552baafed9ea940bc1a7cdd6d28ed81d9479a9baa056c47ddbbf75e7e49509b63411869af9f5781c79b1d393d82392e94
+DIST thunderbird-140.6.0esr-dsb.xpi 517902 BLAKE2B 
01fca0ae71bbe34ac6c42ba1aad79f866c980f19f2047b0b4b40ad9a25dcb1dc2de03e95d1731b4b7c3b5d18fc952b8d896b27a2ff873e9971f0525fcb49a954
 SHA512 
acf8247566c83a6506585c476b9d6138992f088cb9ed51f122acb2eb56ed3234a9b63085c30ffa9aafad9186556f74078e849394271922f4cdc04c444e3e836f
+DIST thunderbird-140.6.0esr-el.xpi 609075 BLAKE2B 
78c24ab8d8a2ec402dfbd37d5e4d4ad47d1adfd2d3fb2aead0ba61b69cebd45fe02358d2c864396f9e1765a68ae0eb99bc7ddb5782ff609472c2023dc7e376cc
 SHA512 
70f6486acf0c148daed93acec3f28e5e2fabf31f6b1854549cdb978e7c36c132ac7d8a8e6d6688a2ed616728e1066cc63a72fac3d725af13e18ef8bbe4bfe009
+DIST thunderbird-140.6.0esr-en-CA.xpi 451442 BLAKE2B 
fb41500ceea1e1e8ac3b210f97ac57306b8e3cb77f6adfdab661570aea85651569c73ef85a449d4a53e1e821c6f4e6533fc32031aadfb10d5b0a9e8fbcfe4e78
 SHA512 
51cd61d87b61347e39250153cf874e7713e67f9c0f75470968defed14e039fa05b838e03c04fa9a678b3042df65d355ed2859432b50abdce8fcc231de4d1d2bf
+DIST thunderbird-140.6.0esr-en-GB.xpi 452065 BLAKE2B 
9acd79cff437c69d57e1a1804a6402ddf62580aa1498a12135995805f3aed1dcdbece2c91dfc8c17a66659842b81b2061affad7dab24baaf233a1362743436b2
 SHA512 
d8cd8953c8af3aaf857fbd3856c4f66fba5e2d85b87e1583501f177c4ce5f736ea75ac42a9b634c148225b40768b36672706b3f4128689ce663640adcaf4d867
+DIST thunderbird-140.6.0esr-es-AR.xpi 495265 BLAKE2B 
e0e22a64bd2ba0d581ad4b7bca50f7b1ea20ee496955b4f7d8bd34bc6c6be444a812177c3cc3704c4b20509be4cac7c8a1b30230df28f969e0ea8c4c2e06130a
 SHA512 
7711b9bbee0688b512433b9e2e44104a1e401628a204e85cf2f282dd9e29394f5ec8dc310ca068a279b520303b04d98e92702a73394e873eff9307d6012ce682
+DIST thunderbird-140.6.0esr-es-ES.xpi 497279 BLAKE2B 
4178fc26c469246c39f92b273a55e4e94c50bcf1f770ed392fb826b19bf413d58b89b9060fe9f756d967a368e4ade83d99eb7add8ba84baa62eb150db51163ec
 SHA512 
49dc394e1651a396b8c5d0bad705035557041bb6245266403cb98cab8b6902fb0714df031f689de755128e2859a729d93fd70e0dec2451d91064ce8a2d5de65c
+DIST thunderbird-140.6.0esr-es-MX.xpi 490405 BLAKE2B 
c3d63e824cc435aa313c07d9a173201175e67a75c996ffc96d82a68cf70c6a4d7916d15fe96c8048a602f713895c02439953587bd7c001ba29f00fdd87637729
 SHA512 
7fd5a9fae190f086e5aacb540da5b662d99adee08efe10101e45669d6541852a7f4312915e70e1592cba244d57b4c318f5f826c2b0a4053ef4588feedc2fcff4
+DIST thunderbird-140.6.0esr-et.xpi 443606 BLAKE2B 
0226ca55046dc3f9302dce76b4a170c0c34e854726baf23ae822ab645f119a40c6a02143e9170ca02a77a8153601f1b598d23d32eb5eef16514d9a999eb7484f
 SHA512 
ccb8baffb881469abbfcb535a3881d1a2cdb37cf59dadcc578e5552c20983afc277adf709c0192cddfa5453c4b36dc164a3c04f787a291262b4edd8a19b9ee5a
+DIST thunderbird-140.6.0esr-eu.xpi 473741 BLAKE2B 
ab3c25abc4405fca4c271a9df7021ac06f51cbc46504fa8c029e45ce8cd93021f366c7f34ef04a63470cdd498811cfcd9391476600946078502649edd2d5385f
 SHA512 
3ad121483988335a196ead2af83747e8ba1724df71459ad64020e0bb6c80796eb82364cae8965bbc2c23f65ea6afe625441412303ffd330144f928a6ef7b38cc
+DIST thunderbird-140.6.0esr-fi.xpi 474613 BLAKE2B 
432c41aad84ef09812e40bd7718370aabcde937ea2b287a9befb52fcd787675ee98c7468d5b8241c21415ca61be591757950a8fe5f87dad7b1494fccfc6a86bb
 SHA512 
2f495d974db0e35f583e3176c5d4f5cedaac0e90b74b2b8accf6d48def1b3bb63fc0697f6732ec0e79cb7ab6d755e29588ac3adddd84417152907ab404b8b6ab
+DIST thunderbird-140.6.0esr-fr.xpi 508256 BLAKE2B 
3dabc65e4e20daa54fefd9c55663c166966add55828cfadbca0a7d3a71056fcc547331add965dc4779ba76d50818ed7d835dd9603f53744ac7d7ef7a881bd32d
 SHA512 
3a9730651ffc98e85a9caa23ce39596327d4fdbc748e0f6002ffabaff956c9c03c65ad3995bca190aa5438803c8758a51ff443048965abfbe378fe7207039bed
+DIST thunderbird-140.6.0esr-fy-NL.xpi 490669 BLAKE2B 
6fb464dbe65b1aaa0e8f3dcb7c0afd0b207ff4c89bfaf60153ecb0c74990620b3404dc7189fc14c085436e960d9e71ba6a2b26937b106740a2d040e7e7ea5687
 SHA512 
95d5e50a1c876e52fb98070293cfb53972290cc2861e97b75cd8aeec5ebea711e90994f4ae83687967dc7548f8417a53af4dfb04bf718de69c3b22b50090ad7c
+DIST thunderbird-140.6.0esr-ga-IE.xpi 376738 BLAKE2B 
d135395de569dd8ba52691222640e6c50c1f116821f8d2c2e2d8f0c40d0b4013caa9abf691cfdb64adac03b28dda2f30f548d2c622117485c6df1f915f4de2bc
 SHA512 
067376719408caded8a422db50eba211d124bd5f4ad9aaacf426dc1144ecbe038269640dd7fc00ea15f43f6744a9fb6c7cf92d6afdc610c3b9824f912832be07
+DIST thunderbird-140.6.0esr-gd.xpi 461955 BLAKE2B 
e041d900d02d011b06fa4486ad4c6015bcf7c5053504ee5e83a387e973c8608b7f16776bd00112692450880d19406e9f70b64e514b030bece42eb6b1ec7944d7
 SHA512 
86b855480621e59cb384c8c0df8b46a6072e40a273eb7f6dd55c447dd486e2459d19f8eb72a75a5f73a716a8c03316a63cd6284152b3e176f3cec4916d5acb77
+DIST thunderbird-140.6.0esr-gl.xpi 486669 BLAKE2B 
97d08356c141a3bf4824ec3b84683c569562d637952b6cc4e48d2501370cbce2f203622c34ded2180411fe22ab2f4a1a26d73ed909da901967eba800c412c611
 SHA512 
6aed957d95c19223bc13cd9a7c6037a937d6a438f1cd442d8db3757d9d62625cb9f66d52a14d10c14f6d93a5473f4f60ab8a7add91919cea7500b851f0efaf6c
+DIST thunderbird-140.6.0esr-he.xpi 441607 BLAKE2B 
1d741cf23780344ad479c79f1e729d1485a218e0baef8762ac721b332ea2cb0fd062aabab8e89ef96ad5ddb81fe5d8a5ef6a0ae325d7ae4f07644c76511e136b
 SHA512 
8679b0244abb6b657f0738c1f90c0cebb71788a2d7f8caa1c5f2d18fe5d7009698aa4f3250b7b5817174c5412ed1c20a6cc95f1775c023081b3fe20929e7ca8e
+DIST thunderbird-140.6.0esr-hr.xpi 464031 BLAKE2B 
25c330462c1efa04b533787352ef9534588c55b2045fe8d590a5837b79a1d509cd00473b0bdd2c70ffb1c9cefdaee7d8fcb9aad3f46f899140f853ff00755a70
 SHA512 
7c0ee5be513c1244bb55cd07b258d1e5e376aa5cbd4bf323df8e8d3078ce10b26c776d7bec6837875ad44254e32559a0f58ba5a5c40e3ff270f5f613775c3771
+DIST thunderbird-140.6.0esr-hsb.xpi 514943 BLAKE2B 
37438b879f059e229ec4360288835e8c0b5d19e0e2db9dd96d12bfdd746ca8118fd1540c3b858c0bd4829ad573c1eec31c751d275e4c66cb986b69041b9d2313
 SHA512 
48715da7f4e940cea3ed13da82f393202ae35d73aa76a275307daf6798f314fe2186bdd9dc0ea46778d86368c05c0b7d935cdd61f96aa2ef57738bd619718bc8
+DIST thunderbird-140.6.0esr-hu.xpi 517536 BLAKE2B 
b53a14f253638c1dba138ad22c7cf5799870fd74a3444582586e7979636289388a8735009ce6dcd75b4c354921c3ef5625b931b34b8b753fb952059e5a16aef7
 SHA512 
81ccbfd044bf434c5443813a3fcbfdc0ba27e2ec7e0422a98c0a3d768151da0fdd091dcc83c59b1599b4f91c4a12a8721cab8890b2c90b986a378dea9d42e3d2
+DIST thunderbird-140.6.0esr-id.xpi 464963 BLAKE2B 
c52119b3303d1eff075770d1d2d02e21cdc20c0d9aad3726038aa9d5f2d20099bc5972dd837d8b5f5495c2852e0efa8bafc9cd7d567f39fead7fc861b6ab5e10
 SHA512 
e2f65a7bc0d1d00bf1bf7d3e4ae0c2ec398f997054f3eb3965cda44f68e1a1999b2f25288c5d890831ac1ad54711a47e0260b1985fd8f6b5db403af97707282f
+DIST thunderbird-140.6.0esr-is.xpi 482735 BLAKE2B 
c8899f10a03513d69d24aaaacf555712e6d06368d8d10a2ac330e3dd28adfade5ef47ad5e885ad7d6bf665d510f223ffce8dc5acbae02f70480e4b2ad68cdeb8
 SHA512 
f59cdc203ab55621cbb2193e04b1193d086b2ad4440bb07453ef5e8dcb12231c5bcab62d27e24d2bc0be1e9dfb5f35835a06246b742627d8f1af7f7a869187f8
+DIST thunderbird-140.6.0esr-it.xpi 488525 BLAKE2B 
0f0ac397f3d59c2803047ba950ed7bf9bf7b28c368eb1c116ef4cc68f1d926a5aa09829ccbaaf28bae6ed1b31e5e4a5796b66bcecf27b2792d7269e78e2b73b5
 SHA512 
5a48e4200e9045e3d846b0a408f8beb92af27077ad4d57d20949d78d4b1ec8df4c1f5b4a1fce316ea98c8a4b9ffe9f85fcb6e4d89db63c3077624dd7461c7832
+DIST thunderbird-140.6.0esr-ja.xpi 539339 BLAKE2B 
8e873e560d74a1e5d8ddc2e33ead0899f3c9235caea6546327c1051531696d268559eb0018b607e6a392738d94d80ff8f1dba113899239f46430667b532377df
 SHA512 
b67c93c7656e9a9426c2676b21ba6fdbfb8dd0b14f779f8c2365bf1466960b12068db90090ab4b363a162019e458d0ff56ce96a81daa9001e837a51163fb8035
+DIST thunderbird-140.6.0esr-ka.xpi 551190 BLAKE2B 
17cd3976ffe29f0ea816f9b2ddfdf31936b597355ab7c519df89c8ce2963c088a976fc995023204d69a0ba097dbce3c4552d4aa06937809d7eb40930a76a78ba
 SHA512 
22fe98ea549af63cbee2548550519946b18ba60cb3849340d2eb0398b4523247d8e24bcbff96078469e31c48254a1b9342f4c0576a8d5b396638a9b20680e9ea
+DIST thunderbird-140.6.0esr-kab.xpi 470184 BLAKE2B 
add5b7a181155687f487ee0dbb0f541ebaab310e57114b2a7e7517cb6a9e37f37dc56a90a1d8184826ca670fe68dd2f36dafbdf87b56a7df38dc5158a35d887b
 SHA512 
ad696fb61b9fd970aab0e78e04730503ad55bafc6cba223584ea1f2f3dfcb0a9f063123fba239fae4585d5f8d4a3ec0efa565f098c1b41b1e2acf339f96843e3
+DIST thunderbird-140.6.0esr-kk.xpi 573876 BLAKE2B 
994a11a7a138290cf0deb9364351d1173623751f72405c638a285bccebd01c40a5d19770eda95f495d7900176f33f8dd51706947fddebcd377e4b8e315fee525
 SHA512 
e439ca07892702767e23d53dab84bb1604a094c85b3217d34be971a88aee60d8b9b6c1c630f30dff2072dd170711dae5fdc0a178bb183794c9b8df2ed418d7d8
+DIST thunderbird-140.6.0esr-ko.xpi 514489 BLAKE2B 
e10eb62ed5649605e65597451a6075f4f8a1bde7065de6207a04da8eefb4be54fe7d1ac8b0806faa2220f4e94759c87f361430a9b53d9d46c90fb18549dc4f8e
 SHA512 
dfd6cde12f3f13e9d031bf05e62bb54349555ab1bc7c95b6ce9bf75256935e4a019ea89223a409fd627d0c57fe1b1da4f520bed67fd02f9943eea501bdc34ecf
+DIST thunderbird-140.6.0esr-lt.xpi 441852 BLAKE2B 
4d796ae1d3b43a6b5f100c2cb784a16a1f747ec4b7313d74bdd3a83e7d9f9662e4dc03c9e3d30fe42621383b682bb6c944c01f67aeed2230f0d15bfaaa211023
 SHA512 
7cc78ff05005008e2b4a9677bdd5ac97b8f6f3fff94659a82730fe3e910f1c9135e011af903a5c9254ff4995ecb7119c55441b475fd38333c28390688499927a
+DIST thunderbird-140.6.0esr-lv.xpi 392814 BLAKE2B 
059979b84a05462579991bd5c2989541f2b3ee7918a6a0750f297cc78359d9fe2ddf804c48ef280844f41fe1e9325f294d3a4e7e4a15a56ac09cddbaf2d8562a
 SHA512 
c6782faf23a3c4b8d32ceb8ee49cb0d8f166daf9d7e326fb9c4feff5308c583cbd89ab575a28dc226f1aa04234c31d2d2309b2ebf874f3a65e18362502e47b03
+DIST thunderbird-140.6.0esr-ms.xpi 352173 BLAKE2B 
89697ff96a0d7b0dfdc60a8a64113421cb9dd312dfcc02d3d50505317938f34cf09dd03afa599a6f232f4454b4d277b591a5e709a69af392342ec4de33f1ff95
 SHA512 
32c2f9c779ef29d67178488236139c3ecf00416063e1a3cfdfa84a66e39ced57b5f8222fcf7e40efe3240a57b05562687288ab7c88f18d5dc52318533c84483c
+DIST thunderbird-140.6.0esr-nb-NO.xpi 447974 BLAKE2B 
d45e1636628d003a55c05494a11fe5caef8657bfcfeabf2b4443e2502051d1b084494ccfb756d50d4954fdae712d2b0498b046109ac72faaf1fae15c20200c48
 SHA512 
a0ee9e33472e664e83ef8cb671aab81b2898b45dbef8f7de4ad4d126dedfb87b7266ed481606ce62253b924eb95efd4ed9f5b67a7d509927d50030760ede6f58
+DIST thunderbird-140.6.0esr-nl.xpi 482130 BLAKE2B 
201b6e5657fcf715a3aace8c6143931a2361ef3eb9df3cd6208a1c7d90e24913c707f1a587ccba8bcac7ddacbbbbf8a4e3936449e5817dfb5fe1cfd9169c6413
 SHA512 
533a410a0f87a2bb608166145f0daf2c672d0d9df38a5a9ecc9ad4f76e56b9099d424d692cbf773d166cefb70d59681b3ffd05d0a3687457c094ba366a34ec37
+DIST thunderbird-140.6.0esr-nn-NO.xpi 469410 BLAKE2B 
a93c7512c80e9dceb29d077229c64c8b8331a74e33e6e5f145f5ef691201ef340272607a570a841d0186807da8f999efd9bd0798870b1385efd584f4a63393a9
 SHA512 
89888e10da9afd1fa8211f7447536af97942f533c17199c4c42976003b107c09aebf7e9b14d332f65fb864bed22fc4e66a04395063a2bf4c66f7408f3a7c95cc
+DIST thunderbird-140.6.0esr-pa-IN.xpi 435421 BLAKE2B 
8389844249acb88ac902893ea9b6e83858e4e857096bdde91817601fde19824d383f846cebfa3d24b35001c1056a9a1eb0e9c65c6bc814c69739148eb09ff3e5
 SHA512 
867a3c5db1547d60fbc7b8e9fe7faccb79effa228cdfc8ea0268ae2b70c7c37a0e823e48c292c71368ea5652f1d1616ca3f76d802f3d416e7df1c153731a95e4
+DIST thunderbird-140.6.0esr-pl.xpi 515046 BLAKE2B 
f3a8ef8a0e883677e5e6053b81def1f361d8a99622deb21f07c57f938367a8ef965bd712b095e93d710ac471f0c01f10f18be3072e09c42794ff0413808907b6
 SHA512 
c77217aab9bbf1039bdaf7b69bea5639bc564075c1db32158497b0f0a85a8240bba3a59dc8ce4fc18ee3dd51c0e280e2a02f2db6583f16332dcf501e9524bcbe
+DIST thunderbird-140.6.0esr-pt-BR.xpi 489972 BLAKE2B 
cbbd7e88a45e1e8e5a7231baf000200cc2695f908100789dfe21e62c48090d3237cb96d0bcc5823c82064328828a73dba5e25c08695314ffd2817f62730c5496
 SHA512 
16a4e36c351e11c2a50b31bf4699ed754a30e34678a6195e0a98b8b8a05746386e29b38b919a0ea880abd1a7f602f840456aaf454ded73e5dcd5468df6660434
+DIST thunderbird-140.6.0esr-pt-PT.xpi 486390 BLAKE2B 
d20dac01e9808af5ba65a08cbd6502e4dcab0e75dc2e28b126266218a0388e45cc7ee1bf7de87139644fb8c21529cb3696ebc6c48855a463b93171ea753e371c
 SHA512 
07d0b878605fee1a8b7e6e65cae15cef2e57a79a0c9f02a61512897f5ff433f784855add3b20e7b65e11128ad56a86a25de920d39724b1c4c4872b45fd899a2e
+DIST thunderbird-140.6.0esr-rm.xpi 487373 BLAKE2B 
f8a0fd05caa410b569a51c44c7accb43aa91abea577141ca29bebb814d92cb176f214b73f58cd7ca30c0846ce6dec1b476c53d5a0d7653b2fe0b1db908b28642
 SHA512 
4c092cdd64564b8abc5943624c899d314d249e34335083e9f8f28cded02ec3ed74820fc3355b37425271ac1abc48fe91b9727fa9583c710bd0573adfbc14baa0
+DIST thunderbird-140.6.0esr-ro.xpi 451873 BLAKE2B 
ff8ba34bd3e7cc964b1e1c741f8955f2faf338c7e838e7ff402598b0e951c5faeed303b610a7ece6eb3b76e1fc66266028a390e1aa24e21f5bcbc4128a390bd4
 SHA512 
b405a435f7dcdaa5b042d7970f7267da98d1fe191f9b89f3d91d6352b2490e4235fc220e9c8ba948516fc20888d33e76d2038d51206bab85971b21843a6708b5
+DIST thunderbird-140.6.0esr-ru.xpi 593181 BLAKE2B 
70d4f0c8a050ea968680f2428b7ce76da66c6eb43c595da23d7a98e30471bd10c174b25afd6820c1b9ba25f4edf9cdf240754156eaaaf2a7ebd6dd3f5ad54840
 SHA512 
7cf8c1df843aa4246f73d8b9714e92df0f0d6d37b2aa6410beb7a298ff400862a9ddf6f01bb3d7a9bd4697c2907059f1e0636c9ebbbca791a4ec17a6cc3a171e
+DIST thunderbird-140.6.0esr-sk.xpi 519337 BLAKE2B 
7f84db783034b32f6a882a6ab3855d71bdaf130d4fac6d13e6cdbaa741ee94156614a624c3b23a41a3520bd69f7a39e70937f042f71abffc7a5ab1931500864b
 SHA512 
199fdd78110d0bb73f8d7e1036dd65dc019cec1f24101ca5d2488041ecec146c06f80bf81f3c73fd1851f0c8e39dd4805f38b6a005be7b6b3d01dd4065a69783
+DIST thunderbird-140.6.0esr-sl.xpi 485954 BLAKE2B 
027ae372451d65100e19a70acb25a2e5109011d63b2d4ed00a072283eb867de8130b030a7d6aca81c9056e22539b4309f363908aa3b81dbbfe529e3a7e5be213
 SHA512 
d10b2b9ed208a5f787fffb6ad89d603a4fbcc148103742f5e2f92e00d0c34ce12ec3adb26900231fd1ad13cf6c8f667ab386b36cb03a48f70fea3f69d18d94db
+DIST thunderbird-140.6.0esr-sq.xpi 505906 BLAKE2B 
cba18e31d6768ed573fbb2408681319e2530cbfa0c0255796e28895f28efbe9e656dd22a1362f77b3753ef0fd95b01ccab57af60a63c62376e6de6c1295fc762
 SHA512 
43266ee3be189232e501791eacea3ddddad4a53ca6dffb310112e933144915a5b6d985ee380b9bbef519f75636e0a60ada214c7e490abdffccf7b206b0426cd1
+DIST thunderbird-140.6.0esr-sr.xpi 495986 BLAKE2B 
ee497e75f58dca799d92fb286c3f262b57d19c6be1e38dd1e951a00acde4e66939c8c1b64143b0f4f39b8b9cb72bdea23701ed0b8741d1b591d796c4e8a7c924
 SHA512 
de6a25c080b913f019439efde5341f61dcf65ea63c986443634cb2061428c735089324fe33f6ea8b3e3fc7060efcdde42316d710d7e26ea715648ef3b6e537c5
+DIST thunderbird-140.6.0esr-sv-SE.xpi 484416 BLAKE2B 
3f4a2227e25c40144d138cdd42c40f14d75c80e7fa783e6d1b7f8bde84effe6b2d06d9ce2b79ad4c02d3eb3a0ae1ba30b96fb3756386e19b03349e0a2879be32
 SHA512 
ab2c2180d3c7ad076eee14908b8184f163ab60c762b5e808ef0d447fab73f77f6dec07ef2c4503c72973c04fadbea4258bd576f98b1fb905f85874c6e6612d78
+DIST thunderbird-140.6.0esr-th.xpi 565611 BLAKE2B 
aa1df5e8c51c5581e3dbc1f6685e762961bd43343dadef4edcbd8f51017bd2be248ce6e6b75e1f885a9c4172a518404358973595964e6cf205d415b18ff67248
 SHA512 
ac07ca14386d8e41c167d0116597ad8505872a614505c0cb63312f5399c0de1031ca39a4d5ffda9914cc6e1ce2073ffb751af8e9238ac24493a3f82e8ae50d31
+DIST thunderbird-140.6.0esr-tr.xpi 495575 BLAKE2B 
046c3a2bdd751f3684566348b9deea18981d7ae1ddf6fa212cb97b2d5d1171d7a111f74dac8ea15b9fd0ebd6ac8c31e258a086f2004a3f87fb2b10d66dc6992e
 SHA512 
3e1d605b3ca14f06250f3b45c5ce5b1fd6badcd2b5ba26bcdb4febb0c898f66c3e09ad8a8c7818712faeaf8774d4bf794775c632989c77909c50e3671832850f
+DIST thunderbird-140.6.0esr-uk.xpi 582127 BLAKE2B 
503de93fb6db402af8bbf652d5d583727e40db4e6d3bfb14c14412d158ba1860129c096e3b9b7cb21cd422dfd40f6f5db6bf3366f3358221e8a549caac7521f1
 SHA512 
0fb636018417e91147dcf387681453f20b554afe23445dd63a923d295f8131bbabed33ece87121efeed3b2be42f368791d9aed9a2aa517db6244cd03e2ccdc3b
+DIST thunderbird-140.6.0esr-uz.xpi 355262 BLAKE2B 
643dfb68ff2e284ce81f237fd22873736f3f870484ba1f62577cde1e6df9b5a725b72b3b8152cb5c222a6cd46b2a06d0835815da85f261ab94e70c91b4cb6a3e
 SHA512 
371b9437637549dab2b853796dbd69952fa27ff3e1504ce4310848bac49e51c7423ccb5d37c86ad984860927726f12f494cd2252da6d8cd1f0fd9ccd510bd392
+DIST thunderbird-140.6.0esr-vi.xpi 518884 BLAKE2B 
47f3212e30dee2618eb656f7be8e927782c8373d1b529810dd442eb6c13c2ad42b1fc4dda4389bac33bfca6b4f931c576c5c8278cf98ca37404fb43535d58f49
 SHA512 
815c0f065c60d57c750f7c64e80968fdf33abed80032e6fcd27c7ea16836bd2e829827cb10b0813d36732631c35b22d92e8617afc4f8fda126493f54c3f67654
+DIST thunderbird-140.6.0esr-zh-CN.xpi 507816 BLAKE2B 
5e12d7bd198298d123696cf4c2d2548c9fe79380ae0051fb1adabb174d02f51fb12fac379d11e7a6ca5f6fd95d49ae1c1bb8bb510274091b69c0f067966c7bb3
 SHA512 
6112a797abfb744e351abc5d3f1a37c1cd7b19942484e2a39853ac941421772d2f7deb8bb1594f62f387e1cf1a2097062c9185488ef4c3f69323f0388df9c64d
+DIST thunderbird-140.6.0esr-zh-TW.xpi 511176 BLAKE2B 
556e5c8543cd750da47a7111a1362da6579480b5927a11c6c619c7b463b0baaa3875dbb8244163c0a089327b413fd66035841a802a1d568afe2160e64df96103
 SHA512 
ba84f99cb3bb79beb2444585e2f3d55fa7e86d41233a866f4c513cba2104918a5f71e69b11ef23e3b55dea3eaaa2a4136137aa8be56528b4a85299db00e2d643
+DIST thunderbird-140.6.0esr.source.tar.xz 750981904 BLAKE2B 
84a34cef3e30e65223220474de251e8075754bade9cfd1499de2f713bec4fdac6b29ce3c60d5297a0186e330ba04b80ff55c6c4ba362484a335b8a16cf0e0001
 SHA512 
817a807381fa0b5e5e2c3f961931855788649ed596b1c6773ec5b0d6715e90df137ab0f755408a9137b5573169c2e2040bf6a01c4ecdb9a8b010e6c43dbb6381
 DIST thunderbird-143.0.1-af.xpi 316517 BLAKE2B 
10bd73a7df193b2e22003ea0795c6c1892a3d0d0cf38d90bf990ba338680bc051df2a8685579bf35ef40168944516af226c7d63f3ebe3e9376a4bfdeaf15a65d
 SHA512 
75d9ec847977fd5afe47b6c1c83e4c820139c1d8861758a76ba4f6487c6e87d93276b7e41542dd82ad0cbf0a5cd9675ab73b76629593ac7b332694d5092ab3bb
 DIST thunderbird-143.0.1-ar.xpi 436468 BLAKE2B 
c92ed07af0a8a3e72fdd877212cfd63af8e1b2aeb7c1a1298ba540c62dcdd629b002642cb0f41d0c41b7354de16c5a7e5693c11a32e60509dcef9fba7fb309cc
 SHA512 
92f369ffb1f7101dc7bbd2b248059dc77fd1968166e08fe617e88ba4810dc4160ba6ad3de28a07f09cbc919002de895ec5985c3622d7439cd9ac3b28261c5270
 DIST thunderbird-143.0.1-ast.xpi 340775 BLAKE2B 
75faafb06e36b6f9c8782cb4469d8b60ba152a526d8b430c04e161f6b6a5a997af4489db1af6b6dde78eb22dd00c32977ef5398cb48adb44f14d694adc5d23ab
 SHA512 
2825d66a736680bb1107d02c7a98be8ac8f79c038b010ef8d9be8ed34a0646ca1d68af3783e1c31d1c6d8ee3e0de50dc00606e507fedcf7488594decbada4809

diff --git a/mail-client/thunderbird/thunderbird-140.6.0.ebuild 
b/mail-client/thunderbird/thunderbird-140.6.0.ebuild
new file mode 100644
index 000000000000..c4111d069cb6
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-140.6.0.ebuild
@@ -0,0 +1,1156 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-140esr-patches-04.tar.xz"
+FIREFOX_LOONG_PATCHSET="firefox-139-loong-patches-02.tar.xz"
+
+LLVM_COMPAT=( 19 20 21 )
+
+PYTHON_COMPAT=( python3_{11..14} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+RUST_MIN_VER="1.82.0"
+RUST_NEEDS_LLVM=1
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+# Thunderbird will have separate release and esr channels, matching Firefox's 
rapid and esr.
+MOZ_ESR=yes
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+       MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+       # Convert the ebuild version to the upstream Mozilla version
+       MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+       MOZ_PV="${MOZ_PV/_beta/b}"  # Handle beta for SRC_URI
+       MOZ_PV="${MOZ_PV%%_rc*}"    # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+       # ESR releases have slightly different version numbers
+       MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit check-reqs desktop eapi9-ver flag-o-matic gnome2-utils linux-info 
llvm-r1 \
+       multiprocessing optfeature pax-utils python-any-r1 rust toolchain-funcs 
virtualx xdg
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/";
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}";
+
+if [[ ${PV} == *_rc* ]] ; then
+       
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}";
+fi
+
+PATCH_URIS=(
+       https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> 
${MOZ_P_DISTFILES}.source.tar.xz
+       ${PATCH_URIS[@]}
+       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 
selinux sndio"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent 
+system-libvpx"
+IUSE+=" system-pipewire system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )"
+
+TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird )
+       !system-librnp? ( dev-libs/jsoncpp )
+       system-librnp? ( >=dev-util/librnp-0.17.1 )"
+BDEPEND="${PYTHON_DEPS}
+       $(llvm_gen_dep '
+               llvm-core/clang:${LLVM_SLOT}
+               llvm-core/llvm:${LLVM_SLOT}
+               clang? (
+                       llvm-core/lld:${LLVM_SLOT}
+                       pgo? ( 
llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
+               )
+       ')
+       app-alternatives/awk
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.27.0
+       net-libs/nodejs
+       virtual/pkgconfig
+       amd64? ( >=dev-lang/nasm-2.14 )
+       x86? ( >=dev-lang/nasm-2.14 )
+       pgo? (
+               X? (
+                       sys-devel/gettext
+                       x11-base/xorg-server[xvfb]
+                       x11-apps/xhost
+               )
+               !X? (
+                       gui-wm/tinywl
+                       x11-misc/xkeyboard-config
+               )
+       )"
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+       >=app-accessibility/at-spi2-core-2.46.0:2
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/libffi:=
+       >=dev-libs/nss-3.112.2
+       >=dev-libs/nspr-4.36
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/freetype
+       media-libs/mesa
+       media-video/ffmpeg
+       sys-apps/dbus
+       virtual/zlib:=
+       virtual/freedesktop-icon-theme
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf:2
+       x11-libs/libdrm
+       x11-libs/pango
+       x11-libs/pixman
+       jack? ( virtual/jack )
+       pulseaudio? (
+               || (
+                       media-libs/libpulse
+                       >=media-sound/apulse-0.1.12-r4[sdk]
+               )
+       )
+       libproxy? ( net-libs/libproxy )
+       selinux? ( sec-policy/selinux-mozilla )
+       sndio? ( >=media-sound/sndio-1.8.0-r1 )
+       system-av1? (
+               >=media-libs/dav1d-1.0.0:=
+               >=media-libs/libaom-1.0.0:=
+       )
+       system-harfbuzz? (
+               >=media-gfx/graphite2-1.3.13
+               >=media-libs/harfbuzz-2.8.1:0=
+       )
+       system-icu? ( >=dev-libs/icu-76.1:= )
+       system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= )
+       system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+       system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+       system-pipewire? ( >=media-video/pipewire-1.4.7-r2:= )
+       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-packed-relative-relocs \
+               --enable-release \
+               --enable-system-policies \
+               --host="${CBUILD:-${CHOST}}" \
+               --libdir="${EPREFIX}/usr/$(get_libdir)" \
+               --prefix="${EPREFIX}/usr" \
+               --target="${CHOST}" \
+               --without-ccache \
+               --without-wasm-sandboxed-libraries \
+               --with-intl-api \
+               --with-libclang-path="$(llvm-config --libdir)" \
+               --with-system-ffi \
+               --with-system-gbm \
+               --with-system-libdrm \
+               --with-system-nspr \
+               --with-system-nss \
+               --with-system-pixman \
+               --with-system-zlib \
+               --with-toolchain-prefix="${CHOST}-" \
+               --with-unsigned-addon-scopes=app,system
+
+       # Set update channel
+       local update_channel=release
+       [[ -n ${MOZ_ESR} ]] && update_channel=esr
+       mozconfig_add_options_ac '' --enable-update-channel=${update_channel}
+
+       # Whitelist to allow unkeyworded arches to build with 
"--disable-rust-simd" by default.
+       if use amd64 || use arm64 || use loong ; then
+               mozconfig_add_options_ac '' --enable-rust-simd
+       fi
+
+       # For future keywording: This is currently (97.0) only supported on:
+       # amd64, arm, arm64 & x86.
+       # Might want to flip the logic around if Firefox is to support more 
arches.
+       # bug 833001, bug 903411#c8
+       if use loong || use ppc64 || use riscv ; then
+               mozconfig_add_options_ac '' --disable-sandbox
+       else
+               mozconfig_add_options_ac '' --enable-sandbox
+       fi
+
+       # riscv-related options, bgo#947337, bgo#947338
+       if use riscv ; then
+               mozconfig_add_options_ac 'Disable JIT for RISC-V 64' 
--disable-jit
+               mozconfig_add_options_ac 'Disable webrtc for RISC-V' 
--disable-webrtc
+       fi
+
+       if [[ -s "${S}/api-google.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 
}') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+       else
+               einfo "Building without Google API key ..."
+       fi
+
+       if [[ -s "${S}/api-location.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 
}') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-location-service-api-keyfile="${S}/api-location.key"
+       else
+               einfo "Building without Location API key ..."
+       fi
+
+       if [[ -s "${S}/api-mozilla.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 
}') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+       else
+               einfo "Building without Mozilla API key ..."
+       fi
+
+       mozconfig_use_with system-av1
+       mozconfig_use_with system-harfbuzz
+       mozconfig_use_with system-harfbuzz system-graphite2
+       mozconfig_use_with system-icu
+       mozconfig_use_with system-jpeg
+       mozconfig_use_with system-libevent
+       mozconfig_use_with system-libvpx
+       mozconfig_use_with system-pipewire
+       mozconfig_use_with system-png
+       mozconfig_use_with system-webp
+
+       if use system-librnp; then
+               mozconfig_add_options_ac "+system-librnp" 
--enable-compile-environment
+               mozconfig_use_with system-librnp
+       else
+               # This controls the backend of the bundled librnp. Choices are 
"botan" and "openssl".
+               # RNP Upstream recommends to use botan. In Gentoo it's 
preferred to use system-librnp.
+               mozconfig_add_options_ac "+bundled librnp backend = botan" 
--with-librnp-backend="botan"
+       fi
+
+       mozconfig_use_enable libproxy
+
+       use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+       if use hardened ; then
+               mozconfig_add_options_ac "+hardened" --enable-hardening
+               append-ldflags "-Wl,-z,relro -Wl,-z,now"
+
+               # Increase the FORTIFY_SOURCE value, #910071.
+               sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' 
"${S}"/build/moz.configure/toolchain.configure || die
+       fi
+
+       local myaudiobackends=""
+       use jack && myaudiobackends+="jack,"
+       use sndio && myaudiobackends+="sndio,"
+       use pulseaudio && myaudiobackends+="pulseaudio,"
+       ! use pulseaudio && myaudiobackends+="alsa,"
+
+       mozconfig_add_options_ac '--enable-audio-backends' 
--enable-audio-backends="${myaudiobackends::-1}"
+
+       mozconfig_use_enable wifi necko-wifi
+
+       if use X && use wayland ; then
+               mozconfig_add_options_ac '+x11+wayland' 
--enable-default-toolkit=cairo-gtk3-x11-wayland
+       elif ! use X && use wayland ; then
+               mozconfig_add_options_ac '+wayland' 
--enable-default-toolkit=cairo-gtk3-wayland-only
+       else
+               mozconfig_add_options_ac '+x11' 
--enable-default-toolkit=cairo-gtk3-x11-only
+       fi
+
+       if [[ ${use_lto} == "yes" ]] ; then
+               if use clang ; then
+                       # Upstream only supports lld or mold when using clang.
+                       if tc-ld-is-mold ; then
+                               # mold expects the -flto line from *FLAGS 
configuration, bgo#923119
+                               append-ldflags "-flto=thin"
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang and USE=lto" --enable-linker=lld
+                       fi
+
+                       mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+               else
+                       # ThinLTO is currently broken, see bmo#1644409.
+                       # mold does not support gcc+lto combination.
+                       mozconfig_add_options_ac '+lto' --enable-lto=full
+                       mozconfig_add_options_ac "linker is set to bfd" 
--enable-linker=bfd
+               fi
+
+       else
+               # Avoid auto-magic on linker
+               if use clang ; then
+                       # lld is upstream's default
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang" --enable-linker=lld
+                       fi
+
+               else
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "linker is set to bfd 
due to USE=-clang" --enable-linker=bfd
+                       fi
+               fi
+       fi
+
+       if use pgo ; then
+               mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+               if use clang ; then
+                       # Used in build/pgo/profileserver.py
+                       export LLVM_PROFDATA="llvm-profdata"
+               fi
+       fi
+
+       mozconfig_use_enable debug
+       if use debug ; then
+               mozconfig_add_options_ac '+debug' --disable-optimize
+               mozconfig_add_options_ac '+debug' --enable-jemalloc
+               mozconfig_add_options_ac '+debug' --enable-real-time-tracing
+       else
+               mozconfig_add_options_ac 'Gentoo defaults' 
--disable-real-time-tracing
+
+               if is-flag '-g*' ; then
+                       if use clang ; then
+                               mozconfig_add_options_ac 'from CFLAGS' 
--enable-debug-symbols=$(get-flag '-g*')
+                       else
+                               mozconfig_add_options_ac 'from CFLAGS' 
--enable-debug-symbols
+                       fi
+               else
+                       mozconfig_add_options_ac 'Gentoo default' 
--disable-debug-symbols
+               fi
+
+               if is-flag '-O0' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O0
+               elif is-flag '-O4' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O4
+               elif is-flag '-O3' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O3
+               elif is-flag '-O1' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O1
+               elif is-flag '-Os' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-Os
+               else
+                       mozconfig_add_options_ac "Gentoo default" 
--enable-optimize=-O2
+               fi
+       fi
+
+       # Debug flag was handled via configure
+       filter-flags '-g*'
+
+       # Optimization flag was handled via configure
+       filter-flags '-O*'
+
+       # elf-hack
+       # Filter "-z,pack-relative-relocs" and let the build system handle it 
instead.
+       if use amd64 || use x86 ; then
+               filter-flags "-z,pack-relative-relocs"
+
+               if tc-ld-is-mold ; then
+                       # relr-elf-hack is currently broken with mold, 
bgo#916259
+                       mozconfig_add_options_ac 'disable elf-hack with mold 
linker' --disable-elf-hack
+               else
+                       mozconfig_add_options_ac 'relr elf-hack' 
--enable-elf-hack=relr
+               fi
+       elif use loong || use ppc64 || use riscv ; then
+               # '--disable-elf-hack' is not recognized on loong/ppc64/riscv,
+               # see bgo #917049, #930046
+               :;
+       else
+               mozconfig_add_options_ac 'disable elf-hack on non-supported 
arches' --disable-elf-hack
+       fi
+
+       if ! use elibc_glibc; then
+               mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+       fi
+
+       # System-av1 fix
+       use system-av1 && append-ldflags "-Wl,--undefined-version"
+
+       # Make revdep-rebuild.sh happy; Also required for musl
+       append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
+
+       # Pass $MAKEOPTS to build system
+       export MOZ_MAKE_FLAGS="${MAKEOPTS}"
+
+       # Use system's Python environment
+       export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+       export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+
+       # Disable notification when build system has finished
+       export MOZ_NOSPAM=1
+
+       # Portage sets XARGS environment variable to "xargs -r" by default which
+       # breaks build system's check_prog() function which doesn't support 
arguments
+       mozconfig_add_options_ac 'Gentoo default' 
"XARGS=${EPREFIX}/usr/bin/xargs"
+
+       # Set build dir
+       mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
+
+       # Show flags we will use
+       einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+       einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
+       einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+       einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
+       einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+       # Handle EXTRA_CONF and show summary
+       local ac opt hash reason
+
+       # Apply EXTRA_ECONF entries to $MOZCONFIG
+       if [[ -n ${EXTRA_ECONF} ]] ; then
+               IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
+               for opt in "${ac[@]}"; do
+                       mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
+               done
+       fi
+
+       echo
+       echo "=========================================================="
+       echo "Building ${PF} with the following configuration"
+       grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
+               [[ -z ${hash} || ${hash} == \# ]] \
+                       || die "error reading mozconfig: ${ac} ${opt} ${hash} 
${reason}"
+               printf "    %-30s  %s\n" "${opt}" "${reason:-mozilla.org 
default}"
+       done
+       echo "=========================================================="
+       echo
+
+       ./mach configure || die
+}
+
+src_compile() {
+       local virtx_cmd=
+
+       if [[ ${use_lto} == "yes" ]] && tc-ld-is-mold ; then
+               # increase ulimit with mold+lto, bugs #892641, #907485
+               if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+                       ewarn "Unable to modify ulimits - building with 
mold+lto might fail due to low ulimit -n resources."
+                       ewarn "Please see bugs #892641 & #907485."
+               else
+                       ulimit -n 16384
+               fi
+       fi
+
+       if use pgo; then
+               # Reset and cleanup environment variables used by GNOME/XDG
+               gnome2_environment_reset
+
+               addpredict /root
+
+               if ! use X; then
+                       virtx_cmd=virtwl
+               else
+                       virtx_cmd=virtx
+               fi
+       fi
+
+       if ! use X; then
+               local -x GDK_BACKEND=wayland
+       else
+               local -x GDK_BACKEND=x11
+       fi
+
+       ${virtx_cmd} ./mach build --verbose || die
+}
+
+src_install() {
+       # xpcshell is getting called during install
+       pax-mark m \
+               "${BUILD_DIR}"/dist/bin/xpcshell \
+               "${BUILD_DIR}"/dist/bin/${PN} \
+               "${BUILD_DIR}"/dist/bin/plugin-container
+
+       DESTDIR="${D}" ./mach install || die
+
+       # Upstream cannot ship symlink but we can (bmo#658850)
+       rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+       dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+       # Don't install llvm-symbolizer from llvm-core/llvm package
+       if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+               rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+       fi
+
+       # Install policy (currently only used to disable application updates)
+       insinto "${MOZILLA_FIVE_HOME}/distribution"
+       newins "${FILESDIR}"/distribution.ini distribution.ini
+       newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+       # Install system-wide preferences
+       local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+       insinto "${PREFS_DIR}"
+       newins "${FILESDIR}"/gentoo-default-prefs-r1.js gentoo-prefs.js
+
+       local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+       # Force hwaccel prefs if USE=hwaccel is enabled
+       if use hwaccel ; then
+               cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
+               >>"${GENTOO_PREFS}" \
+               || die "failed to add prefs to force hardware-accelerated 
rendering to all-gentoo.js"
+
+               if use wayland; then
+                       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
hwaccel wayland prefs"
+                       pref("gfx.x11-egl.force-enabled",          false);
+                       EOF
+               else
+                       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
hwaccel x11 prefs"
+                       pref("gfx.x11-egl.force-enabled",          true);
+                       EOF
+               fi
+       fi
+
+       # Set dictionary path to use system hunspell
+       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
spellchecker.dictionary_path pref"
+       pref("spellchecker.dictionary_path",       
"${EPREFIX}/usr/share/myspell");
+       EOF
+
+       # Force the graphite pref if USE=system-harfbuzz is enabled, since the 
pref cannot disable it
+       if use system-harfbuzz ; then
+               cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
gfx.font_rendering.graphite.enabled pref"
+               sticky_pref("gfx.font_rendering.graphite.enabled", true);
+               EOF
+       fi
+
+       # Install language packs
+       local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name 
'*.xpi') )
+       if [[ -n "${langpacks}" ]] ; then
+               moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" 
"${langpacks[@]}"
+       fi
+
+       # Install icons
+       local icon_srcdir="${S}/comm/mail/branding/thunderbird"
+       local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
+
+       insinto /usr/share/icons/hicolor/symbolic/apps
+       newins "${icon_symbolic_file}" ${PN}-symbolic.svg
+
+       local icon size
+       for icon in "${icon_srcdir}"/default*.png ; do
+               size=${icon%.png}
+               size=${size##*/default}
+
+               if [[ ${size} -eq 48 ]] ; then
+                       newicon "${icon}" ${PN}.png
+               fi
+
+               newicon -s ${size} "${icon}" ${PN}.png
+       done
+
+       # Install menu
+       local app_name="Mozilla ${MOZ_PN^}"
+       local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
+       local exec_command="${PN}"
+       local icon="${PN}"
+       local use_wayland="false"
+
+       if [[ -n ${MOZ_ESR} ]] ; then
+               local desktop_filename="${PN}-esr.desktop"
+       else
+               local desktop_filename="${PN}.desktop"
+       fi
+
+       if use wayland ; then
+               use_wayland="true"
+       fi
+
+       cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
+
+       sed -i \
+               -e "s:@NAME@:${app_name}:" \
+               -e "s:@EXEC@:${exec_command}:" \
+               -e "s:@ICON@:${icon}:" \
+               "${WORKDIR}/${PN}.desktop-template" || die
+
+       newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
+
+       rm "${WORKDIR}/${PN}.desktop-template" || die
+
+       # Install wrapper script
+       [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
+       newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
+
+       # Update wrapper
+       sed -i \
+               -e "s:@PREFIX@:${EPREFIX}/usr:" \
+               -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
+               "${ED}/usr/bin/${PN}" || die
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       if ver_replacing -lt 136.0 ; then
+               elog "In this version of Thunderbird, upstream introduced an 
in-app notification"
+               elog "system. Setting pref 'mail.inappnotifications.enabled' to 
false and nullifying"
+               elog "'mail.inappnotifications.url' may help you avoid these 
messages, if you don't"
+               elog "wish to receive them."
+       fi
+
+       optfeature_header "Optional programs for extra features:"
+       optfeature "desktop notifications" x11-libs/libnotify
+       optfeature "encrypted chat support" net-libs/libotr
+       optfeature "fallback mouse cursor theme e.g. on WMs" 
gnome-base/gsettings-desktop-schemas
+}

Reply via email to