commit:     21c0f5d96b01faf83cca3d8ada557fd2d98b24e8
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 17 17:42:53 2026 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Feb 17 17:45:41 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21c0f5d9

mail-client/thunderbird: add 147.0.2

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

 mail-client/thunderbird/Manifest                   |   65 ++
 mail-client/thunderbird/thunderbird-147.0.2.ebuild | 1163 ++++++++++++++++++++
 2 files changed, 1228 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index e737a55e9e08..fcdd18334ebf 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -523,4 +523,69 @@ DIST thunderbird-147.0.1-vi.xpi 525246 BLAKE2B 
6d6bccac26064f5e2d80694c9064e2e0f
 DIST thunderbird-147.0.1-zh-CN.xpi 514162 BLAKE2B 
da588c5cf6b81b93b7bde3f67877d44c619a0223c9dd357af6d6fd87381642b855164e16f63ab6761c77f5d17e048238b29db8330bd0e0552bd4787f2fcca06d
 SHA512 
7ffe5e15bffc097904afcc2152589dc27d96b3e81e88ffcb72a2b4056fd21ee1afc926e26792aeac9fcc3190696f30e65b80668c98cb9b492ebcc1337e511be6
 DIST thunderbird-147.0.1-zh-TW.xpi 517870 BLAKE2B 
2e4afa7f9619b53de13cf4737411b25beefc15b0adca128077a1a5728400bb9b0dc3a0522dc44231642a942c662ad75e5fe9b441e195ca09261a30d863d97290
 SHA512 
24925956e15289e924a9cb9f3d4a433d3b49794faabfca918af4bb630e5f799e0acc4b30ee43a0828237bb747383edc7721ca418c3b293c1aee93ace41c0f6d3
 DIST thunderbird-147.0.1.source.tar.xz 781853284 BLAKE2B 
22993efa57b297b202e2dd0971361ff06e1a41b3a11a018494efeb509268496dd55545201276e5caf71eaffb2401c19f09f2a1a5465eb98b7edd296ff2e6d5b3
 SHA512 
bae9adbcb1d45a7644e4d699215a3da85b612b9d99516bdf12f84482f1a6f89153ec4d5ab6dd8bcf69dc512cb50080db4630a5bb52525f22213c7af92b4b77d7
+DIST thunderbird-147.0.2-af.xpi 312139 BLAKE2B 
8cfe583bd0e55686d3a77517318aaa46d2b4038cc7eeee9480c96e775a5eeda6dc3c97736210763930fd9ca28896dab0100a770e1b4213381a26d2866a1270d5
 SHA512 
bf7a22ad64e2fd2479411f14f1e8f81330a200db87e5d7e3eb4475ffc001fe0ac51515aa9c50172d974f53ef2210a3fcc2493755bf642cfb6aa9106ccb9d4c59
+DIST thunderbird-147.0.2-ar.xpi 434055 BLAKE2B 
b8d9a4cfa2c13c1a940e14cff780a52cc4db60a9b856ccdf2348e90a07785fc6eec4ac9c399aaa14f6f29e7d8046d4ff8f9693327dbf5843a80bfe1ec8d0a031
 SHA512 
e1f24efa472c31693ba4dd9de7ce81eaadad6759a8699a235b32ec73fbe05a86a20b0c4043b82ee74ad5ea5dee63481da0c59fc1eaa76595a80049732b3fa2c9
+DIST thunderbird-147.0.2-ast.xpi 336206 BLAKE2B 
4a72da9cb6087969f2ddca2a060db6f7e0b6ecc5e3508f49ffb566fa260045ea527f3d938e33c68551abe29b8c779fce50346f415f1b1eef8d5ec539dde957a9
 SHA512 
c6857c61c1ab2bf72c55ba6f967e53eb0b5a2af524f2c4eece806ca689ac6f451a49e2978a3b268d46f669d4205527532cb75de8abb78386b8c160831d25db8b
+DIST thunderbird-147.0.2-be.xpi 522338 BLAKE2B 
66492ebcd93a5b83559842082a3e69ccab70ada620e1946590e7a140d01dd22b98be68e79d6da200b0053571ae583072d7fb659f733f34b0509581f413e3c4b8
 SHA512 
39bc3e1c0809199eda25661c59e1f209c53a94ccbbfa6696ba782c4c53f49efda618b37b67bec082e9fd17b14cede274d244aa2562b0f45f9abf9759ba426c40
+DIST thunderbird-147.0.2-bg.xpi 543151 BLAKE2B 
e7e1ed93f68799cc1d2edd204eeb5f20ce1838901a386582cedd6095b297f744a345d0eb2b2e132e7d3bc2418491a80cdea630344ca7149776421aed87b42267
 SHA512 
46f4ab404b5292df867c6ed4097d15e344afff4fa2df1d636a688182d809efc12b7cdd720dd8f36b96476f6d4bf432803a7a4c063e17dbf3a6c6837901d2d81d
+DIST thunderbird-147.0.2-br.xpi 401078 BLAKE2B 
df389d8509fe46c46b14c0eadb50dd1eb006c1d03674750c339d73f6a688102968a13da3c721d54cb41f5d072d9376dbb664cae9bc7fc4ba7957df553ae93ed2
 SHA512 
8cf28876f123642c1696ab0bbfa5c3cd3ff7676664b4e49af225ae473649241b6ffcbf3e41433e7e7d2c4d9f572396c0237410e53445d53923b9f70a9874f3ce
+DIST thunderbird-147.0.2-ca.xpi 438291 BLAKE2B 
9238ff89742e585fec4f12c096da10f72b2a9ed3a812a5303228adf19f00fa527e5322f3be3d4cd61bf46d8fafdb8ff0ed66bbe2abc6c1a6f09a11e628eacabb
 SHA512 
8747fe482da70b31d429e5126b092da89e88a2779e1cff5ac07a235bd3a56b2395908e728ebc6a7357086402755efb23ebd2c02abda8a39a0a53bcf0a817e989
+DIST thunderbird-147.0.2-cak.xpi 414736 BLAKE2B 
ddf173db5c463ba63b78462419a91e8a9afd61feabd0916d27563a08d02b00ad333bf1c8c392b363e4fcef4419bab61bdec97bc5b7dec7528e5ff63a1bb84d2b
 SHA512 
e57f08b59eef03be05f3fcb57a7533ac5b20d9c8a6266d694cb04e7507eed6a45aa29f8135b20b662ddc6417f95bcf0beee1679c465592f0d1739a9bb3f0d638
+DIST thunderbird-147.0.2-cs.xpi 527273 BLAKE2B 
1e132ccf32d140bbcccec40dee21dae47ce2558cbf526c7439d6a6e5ae85767dcb0b35b2b23241bb3b3cecc167ab85b3a72f5e5ba5c1a2e67cf3fe0bee6af0c8
 SHA512 
af21abe2b0956ad7c60448ffa2116ec4dcbcdb0eb6912babe941582c8cc61843421833932cc62d70788b07796077c51d51a86f7fa7d0f38d25ceeb0291d3a0f3
+DIST thunderbird-147.0.2-cy.xpi 494799 BLAKE2B 
12ea8248e4199c2a8e541a262d702541852b0d15966dfbb465459a878f6446d9661801ce1b7499cf8c578cf636884138a480ce9fd3705dc2af21f6125b33cc8f
 SHA512 
4d98b28a1eba63887cfcbcc7d1946c35c418274f05c19cae676fe850e751e5d2408d2ec137f5533280dc32c469283729a3477d161da34ea83cffc991dc6b35ce
+DIST thunderbird-147.0.2-da.xpi 483073 BLAKE2B 
04e3d3080f777650864f95244bb6b4564e891a7bd533cc1d8624186da914ade1f76878063d4631b5615c4ab2373abf54d4166382610580c7715ac6cf95d61495
 SHA512 
67dfb5d6c14db201d82a28c6489e1b1c57d1f0c0cb1a6691ddaf149d73fad7491a9526d42a637f11ec15dceb69d9a6cda912047c46c667a9b1c148437345a2b1
+DIST thunderbird-147.0.2-de.xpi 511734 BLAKE2B 
f7eea184611d61bd53c6810da55429fe87090d0addff3952f4fb4aeab8d6504dc9798b4dcd3c5e1903fec963729782ad04ac2d10f26221be7837fe5ec8a0f8b6
 SHA512 
2da3a09103413ed15ca368606cc20f69c35aa808ea6ffbe31541d1ffe7cc3e8d2a66b96da57cf593a9603772909ff6e536eaac997349a4d6b0b2d21433e73ebb
+DIST thunderbird-147.0.2-dsb.xpi 524707 BLAKE2B 
bfb74e548cfab32658825063e520d50a4299dce4e8eedae83b913696a928e8dcfaa298f7b5ff4586f240cd09953f2471fb3cbbdb365f109581ab40261adfb8c3
 SHA512 
92707bda9fdd92ffa5521d1bd170d1169680493a66e9e4b061cf60d2528a8da817f5fe47f7b94aff1dcf7240d6e2bba7cf983a6b4fbffbe0fe8e96b0f47c2fc3
+DIST thunderbird-147.0.2-el.xpi 616560 BLAKE2B 
f3830c1d3a0868bbd95d0d9bbf730dcc555992777dca935d25aa0192cd1aa96d522b1d3824ff983db9936f68d3cea5f039ba3ff93a93865ad596608402bcd232
 SHA512 
5ca22ee6ea593d606c36710d73f226aaa405cf7adf339137f7bf30e135e9b7d0843679797c816722d190308f67bea9487834237c16427955a00bd38b05787092
+DIST thunderbird-147.0.2-en-CA.xpi 458186 BLAKE2B 
293ec0c6aeb3e87abb28f035bdeab1af1b9afc9feed98533e0862cc2d1a85aa44b8284529f02362f1124730d17f5b60f8ee666cd253d941e76ffa822f68ffeba
 SHA512 
fb7d6bcf3b1bad87cd4a3fbea8afe63ef25baca38ba0097efd2043a646bfd372199769b4d4da0694dcdf55c2595d9a3d02adc0e4011b7252c95ecb6c4f56cb41
+DIST thunderbird-147.0.2-en-GB.xpi 458132 BLAKE2B 
52818eaac1892053577e74c2b9341ed2b0b25c76eb6e276542d232042fe2a1aeeff2db8f6e6c9bbb518d3528c9de06e65f879d6c98f052e4739714f7b64836d1
 SHA512 
e1f9e965c1d584d767b0e3193e29331342f9c503f15e097e45399d74173a1c827230364c12e33085ffb0dfe360028e36ff2f6d01a08f21d75867fc04b8600190
+DIST thunderbird-147.0.2-es-AR.xpi 501883 BLAKE2B 
8f7d99418dac64dbbebe14da59ffe0cdbbc6ec15b051ee56bbc6d595eb7f9e72e91bf99a195ecd2b64135d5e0a8b96637c81a21e53e0a9cfedf82042972c0fca
 SHA512 
4d284107a5c73f9ca54fe98025c41d1153758a1d27d70d52d7bcf2f4a2c3bb5ee0cfe2d50d9d901ab9899852d82c1ac58362c2a9a3488be0a57626930c60f581
+DIST thunderbird-147.0.2-es-ES.xpi 504070 BLAKE2B 
7a6892e5accda7278854aefde031d03f6749472e9839ddf830c23413a82a556d388c9aee1b70858e76857fa96ffcaf28886846d17289fc9eb3d17b6a208daa97
 SHA512 
2c3e21d2b696fa7399028847881e409711e5f4c65ad1ae11035cf6e09d17e7acdfed978df719a6caf3b4d745f590834b4b83880bf238298810a642c40f218818
+DIST thunderbird-147.0.2-es-MX.xpi 489657 BLAKE2B 
2f0647c79503b001e94ad4c92ded26a01fac409e1c36e5246e6fad432438c0faef89c8e2872b80855ef9e13ab5f7d4e82ce37d9045de51e688d8d5cbff3d10d5
 SHA512 
6c233497ccf170e814c70aca69a064e50add4fa1e315849d4534b7248657d13e2c9b330b6aeca2d830c63a810c9228ef256130a138a0d18dbf6aaf0e47437e9f
+DIST thunderbird-147.0.2-et.xpi 441295 BLAKE2B 
23a27437e5e583b1594bb806b35150511dd71d70147160a555f9e9bbd0dc1a8f7b2d46d104d312b9d143b1d3a98f43f9cf042c77c06a24184f2537957b7cdb10
 SHA512 
975d794fcdceb3cd08494a9fc88c45a670c6593bc2145449132e557e9594660a318e556d2a152c4014cf4dd23ea1566c86f2542215130afbee953eef8930835e
+DIST thunderbird-147.0.2-eu.xpi 480259 BLAKE2B 
506e05ebc06fd3bbbe0c544ebfa124151a75e305f517481e92da53aa51f9d38d3ae4d8f6cb093c26973207114f6f8648cd334cd582793579ab9292ea682f6676
 SHA512 
e0bf75433aec8cbc1fd2d498d752aad140220d71db18498a92fa562a58aafee454a7aa93321d70c07c04c030b1a921ea27fb6fa7f0ee648fead43a260ad181e3
+DIST thunderbird-147.0.2-fi.xpi 479304 BLAKE2B 
64bf0dd75ad5af57d1833ead39d90fb7b2bb85c4e360f01131508fb79c6d296292358b5c79ce5a6891931649441cfb577354f81ee49b89015691ee8004f68004
 SHA512 
38db6dcd696a3e44fbac91b1636148ed4851c1e1bd68166208249f2aa9388073efb6c58437244461516c9e66ac7d248c690e999b4bf426246f5b9446362ee941
+DIST thunderbird-147.0.2-fr.xpi 515109 BLAKE2B 
a973e20caabbc589f01242929515bea16331f67cbb090dcc7e62263e337a8ee7a7112683f73abb28f2e9032151e35b1d31d45c7cdfdd835c514579e0622705c5
 SHA512 
697f923cacd6ff63a7f232f853293595b6b869da73dd95f2c2df40531dd12c73cf09ce43f63513ab81cd590013bfe959dd3f33b95ada6003ddf1671b1a422203
+DIST thunderbird-147.0.2-fy-NL.xpi 497415 BLAKE2B 
10a92d01f2dd34df254848ceb5785a3e14489a3145556e2298ef6ef07bf53a002156097395c3b2475a13d18c1fc0d71ced96068799606dcbc9140a9dd588bc1b
 SHA512 
db84a14f898d43dc75d8513f6133e5b650930227f0f656d4e9b22b4de0ae1345fe035d1ba57eb915b342b310b646b0d4df4c70e8c2eefe6c961e8a365ee1ca75
+DIST thunderbird-147.0.2-ga-IE.xpi 374259 BLAKE2B 
89f3421a31f570ec526f3642f2e31459dc10eff3fa8fbbd1a6c6775a32708f71616ee39b78ac7b83be0e06c402720a6251256f01b3e414360b687d71a452251d
 SHA512 
76f57812d1af3965af11d138151cd908119dea0ae2edf982b619e4806408c53bed068ba6deef9d37a742230f5ce5c5b3bb296bb281ef347775268bbd023a28a3
+DIST thunderbird-147.0.2-gd.xpi 459621 BLAKE2B 
e847644e40a6b20127487deac4a3513cb4442c9fa6bfff2c03262767a0eb2eae5efa8a736daf66b7a8841d302231592f23c15002622811ad10bb17c1532417ba
 SHA512 
3b4275bb4142fe245de596b31a2b379ac3632f964e3482e649ed2f8bab0f2838aae5cb605627e43db59415665ed14228d92c44f2a72c4384ab949792717dc347
+DIST thunderbird-147.0.2-gl.xpi 488945 BLAKE2B 
dc9e010950081ae7e26e0662fddfac912c000e293d653a1c74f1e76ee3bcc7d4fbae7919e7bd0a75e3fe385d10cc62cf32a0fd7d127e47e98befbb67fef235ec
 SHA512 
e04ab4384ca944e4f7dd1634c71fd264c909625bf3d44025c172e13f305cbb0ea22d09c25682ddc1e9671b6e1c15261fbdac1e73e9f8318171caf20f3bea5b61
+DIST thunderbird-147.0.2-he.xpi 444168 BLAKE2B 
781aa81145fb67330081ef0606afb9a7a452780c88370e55e41482b67f331169ad1a92a3d2b159657c801344e1b99f3390efcbcb05b73e3955d2b9912f68ab3e
 SHA512 
a7fd857bd502e6d925bf5de0bda403f85af2324b01eb7a6f9b6fa935ced4859c0377e69ec76452efc579abac817993a2fd29dee78da01d764d3f104bea515e2c
+DIST thunderbird-147.0.2-hr.xpi 476344 BLAKE2B 
14cf77aaf01c7ae8bcaee10e394caef56b22fc46ada054b3da90d26a256852062af101a5d93e5299b4fe9cabda922f3d2fa21a5dd9e2040c8c32eca75c1c441c
 SHA512 
222460fc4d637f327745768276a6875e93ac48e2a0055ca86a0a98131a4a40b47914cf105f71756d78e558b8ea0c3904ffe9298f3b61da01ad021a38cb7d908a
+DIST thunderbird-147.0.2-hsb.xpi 521891 BLAKE2B 
302c01c9cee582cd40d4938eca96366d5014a325e71510c05130d3ea447f7a74fdcdf5f399d7dbc243dfe34f0f494e1e0328123a40fbb29b5806e3d92dd3249f
 SHA512 
624ee85674e517bdcb6ed39f570c852cb1c209a0ba4dbd99cb7f1583e00b9ab0bf692fefa19a04a89be88b8b61a2c306927de9f2cdc1774f9c4a4b3f68a995f2
+DIST thunderbird-147.0.2-hu.xpi 524547 BLAKE2B 
c716e996f736a9e87e361959e0d39c2b97c92c94d60a3b7d525a0c33e58e5164a5e0a96bc35b2c5e82eb67a5d47fefe9d8c1a22aea2e734bf504a4d111d69deb
 SHA512 
b43fb08f307c5323f021b5d03ca1778c7b4b869c991ac4f9c832839d478dcc595b8bf8ef35086a633ad3f79496d3e12ef61d3d22e9818b62c0a18cd2cd817d3a
+DIST thunderbird-147.0.2-id.xpi 471093 BLAKE2B 
db07616871873a44e8045bdb2ea06012583f79be07dc26ba7355a4657b82195b6447cf7ea742788e4cb8d8ffa45e7753e9fdaf228d42ac80e96ceb7b6011a784
 SHA512 
ee3f42e591665a9b78812cc96bcbb69d63edca381fe11a90edb57ec563e9aed377289f2ae7a2113bd5f5454fe59cdd27138e8732449b842a2a70e24669d3daf7
+DIST thunderbird-147.0.2-is.xpi 485923 BLAKE2B 
1fc80fdb2996f28b431f90b9406ee639f49bc8a6bc0cff2fbde7df7b4c26541495238885c1f9e09731e3e8014500996f5a666345f73b74d25365f7095d7f4882
 SHA512 
e083308c41ea8715a0d008c6bf40d168da5439e86f6e072786e2ad2e2e7348daf45561c0917fe3ee3bea94372d8829e65b0386c695ce5cbad315ad0b7535cdee
+DIST thunderbird-147.0.2-it.xpi 494991 BLAKE2B 
0fe021b123c4ebd10a32b362cb8ff771f4f907c9f2669e2c7a63a71129896c2461d56d892cc4fae43c9520b2d183d138f27833dc897db44f5d58c4d4a9b06072
 SHA512 
fd7c496c33036f185b343c5b08947bbb9d6125f92a00b782b6a1fb0d6f3bf02b5fac7fee51f4ea296e0ff0cf06f717c7c71d9e34c2f2884f85a0dd70d49c9c75
+DIST thunderbird-147.0.2-ja.xpi 546207 BLAKE2B 
c25aca97e1c640eb57dc4eb4232a3217cc4643df6eba2de5c6030e90cc1b71098dbac08a37580fe61f09844e77681642a9920c9afed18018ec7dc889a29fd385
 SHA512 
c930037f7d473d8887bbea3d0fe313e6236dfda8e26e082f5dbb38e35d9f912b33c9fb02aee61c8e7e1017bcbe086d03bdde98c07184f5e3971259428dacd867
+DIST thunderbird-147.0.2-ka.xpi 562231 BLAKE2B 
605afb85548789d8a514a2c721ccb80087182da76fd03c6c9216f569764abf1ccce35b3c552a21680845bf3856eb93e438a7720c0e244549c67566fa35536f91
 SHA512 
6596570e7e586bb9f90899c1b4d3734d1223619b159c697c364f0d8a4b8ef2fb8dbe47999ae0f3de5a1c8beabd264aff57f19fc52422d83e99441f292ba9fe68
+DIST thunderbird-147.0.2-kab.xpi 469114 BLAKE2B 
c7e690d5b5f33800ed1caff9827229624a2131ca3a45e9a1f73c1e71a9c71ae7351f154600dded4fe7dd676f69f67a0b80945f0f79a2951823995ee7d3b132d0
 SHA512 
8f28ab1ea9c22f68f74a7ea61f7b0133e749d10ae9d34bc475888dbe484ab4171167af932a7f3f73978211c7a196b691da2c4b4a115b7e4c8774ccd0ecdae135
+DIST thunderbird-147.0.2-kk.xpi 586396 BLAKE2B 
bcafd62cb61eb173efb7cbe4c36b2187cb5d53b39971a74ff28eefccefd9e9e97d4d8f73d5d234d36b1c4f1caf8f744a93341843e94dc4f45a3773a755cfe08e
 SHA512 
9bfc30b88a05c6364b2bc4291953a2663af0484c0fca25f2ee3e748124238798e5ca3cf4f198e7bb41bdad81eb11affd900520b99be80bca7afe5c0f2e9e10f8
+DIST thunderbird-147.0.2-ko.xpi 519362 BLAKE2B 
a12d9a1b80260b6f564238e209b91a5e4238ffc0045b2217984c15d175fbfe90e0f8985e7f9a7b48c4a9b45d6faca4260403e26ca60da445ea42f9f272841815
 SHA512 
da0e172febe2824627ca948a150811c7d5ea1770672546e9bbb8a31d8b3790fa9cc1cc685de279f70a15093abfffe4abd15de7d1c96d18bf8ec9488497a8ab07
+DIST thunderbird-147.0.2-lt.xpi 451107 BLAKE2B 
0f706096ec4d81fe7eb2e38e3f2ec23c0466e690b4360d7cf5282ccbf141deab8c15c5c2f1eb7424dd577d74d8e6940b1a8e5bdcca9d027d652103237a0085ef
 SHA512 
246d148faaf8570d79f6ae5ffa89b8644b3e9ada28493a29e3598582b5defa02aa3e14d0dbb5e7eea0af2d80d1ece2e997d8c0cdff5ff613882d4ed56cf28023
+DIST thunderbird-147.0.2-lv.xpi 388697 BLAKE2B 
60a2eab275021322b2866b7e00a7094f34a6e02159499a3433a18f9201b68c9366f46cd379111b182ad06400fa91bd2e821d3e40e5520fad80d29df9197df7e9
 SHA512 
0b31dcc81d20712cf537e8c7c606a74ab57fe8d1aa64adc3cb3d89df7fbeaa916e7c8d6bcd0684e8a403f52195111de506e94e67ac9609c224ef56ebd98e8166
+DIST thunderbird-147.0.2-ms.xpi 350561 BLAKE2B 
42322ac1333c01a9caad4122c4391917514647a9809f4cf97cb9cab664130e5a3d43d0cee72275cf7564cb9cb2022def3c71632518ac12be6a95ab8411203ebb
 SHA512 
ff33e0a159ef708f7a2fd571bb3f812f29db1beb0f9a01e1714c77fa1b5ed483c5b437023a4632db33bbc1ef7702d8e264fd79b784293e28fc420e5d5f60c8b5
+DIST thunderbird-147.0.2-nb-NO.xpi 482518 BLAKE2B 
5cbc87bb524bb5a87fd25b9c0c275a1fc0ab63fad6142d0d2b4c1ac44acc0144a6805179b55c64590195b5a1047febacf77de036da33a94111086c3cbb3e29c6
 SHA512 
1d865536acf4bef5c1f3dace3514555a284cce1a4ca41044938cba802608770ddda3e05e9cf5e2dfff603bbc99389e3b065390a94d27f2558e91f6838dc14ca0
+DIST thunderbird-147.0.2-nl.xpi 488672 BLAKE2B 
10a46f3113bb0231e636a1ccbf6861d101e3493c518628748bb9f8985d83ed8489b071356edcc8da7b656e1e79c58527da77da13c400d928730bcd066f96b108
 SHA512 
98d837b8a0c827d4a21f44f28dd95529d8a4767530e32645f3185eb40b3a76735fd3e1d49b6f4e1fe3a8e7dd18f9d872cad35e9b91671bc316ab666069b59a97
+DIST thunderbird-147.0.2-nn-NO.xpi 486396 BLAKE2B 
fbfb5bb1734b657dca1787c80df26aa97eb023972cdacca2ff4f18eb64eb6d3f7cd5bf4fa3adee8a10d48e934c0546fdfa53e27d0461919636f0637aa7a10805
 SHA512 
a5b639d8e4b36c74299773ee13f2052ae5c3e3903fde07164c012425627f017fed80980bd0b00b109224ac7263289f2fde95325fb45d4eb540ff4a6ee8622c28
+DIST thunderbird-147.0.2-pa-IN.xpi 435803 BLAKE2B 
28dcf95f1e6642577dde1a82c51953ab9d02b09a8264a4183145ab7628c910f117809c0a2e1db02297c908145eacc627c362a5eefc5855eff9771673c6b01597
 SHA512 
775c58d746853ec71ba4438e1c21f8b63842e6a48a2d1b3a019589b1793af5a76b7007bc87ad8fdf3f5da380ffd1594e71f07547673a16ecffb8229f24401d28
+DIST thunderbird-147.0.2-pl.xpi 522618 BLAKE2B 
6112dd1d430f04c7d2f54a050936015befe616ffc582ba643e8d44605c444160a287f623a9dac1f5b319b8b00e2a41e76a4292b15fe8e9fda152d447cb0ec6b4
 SHA512 
f5f513a38c41fe263ac8d46a17ad6b0e02a60d155e9be565687c65de4dc49acc1ba681b815f8642001f042b0a6887dd28187e7ef4990e9e4e9c9ca55f8722a5e
+DIST thunderbird-147.0.2-pt-BR.xpi 496742 BLAKE2B 
e7a3f39a032331adb1e1fe46d2b62b817b54712dc91d706fd5220c1379f75537a9cb5745121651d24f1877267740c41dc37a35e2fc0b784521407fa18b09d9d0
 SHA512 
2237552b42413a1acc670aa12a2297ca637374ec2daa39197dcfd6b9b4e6ae884db429cbce9a3acf4d6285152fd7921269af956c2fd71038741172d34ab97fc8
+DIST thunderbird-147.0.2-pt-PT.xpi 486345 BLAKE2B 
b1bbf166fb6d28402c4cce8aea2d95dd9ffb234305b6685b46d49517ca0d623b84ced590e99aea9f917b5e5a28176f5d369af0dd6fe348210b9d0e4f75095c44
 SHA512 
770b05db55143ca77523f87e48fa423d6c367f86172091bf0a3375f05faa589055f0c7d529afccff80a2e1a857466b2afb7fca6d9151810659ddb0cd3c7345e5
+DIST thunderbird-147.0.2-rm.xpi 487588 BLAKE2B 
80d4891358ab0312b28ea18f3504989291e5cd02380e3d9b1cd5a4305b13454ae58102e004485b1c087a2ccb901a488a9d92c703eeee0552f028c49928226da1
 SHA512 
960a0dd9ccf9fe95de281e45e1a8d1cba8e5d9919f0b033790be4eee53940a245e046b6c61f2196d441dee4c7f8e1c52a525b4338b4c4106e8381f97fb1d54f4
+DIST thunderbird-147.0.2-ro.xpi 507922 BLAKE2B 
0c5c77a30c26b65a637cdffdbd54143a184f2245b5878e8950f7142120ad140f79f69297ecc3113f08cfb2b60f6dbab9bda959b36ccc3b70dc45a4b16b0c5f40
 SHA512 
a431ad1e5a30bdb6883c9d639c8c07f9ed5cc45a13b07a886adbfe9f0879de410f43eed9675d133c8c14259fc70da37fbb880b8e11a8d0c0c8458944e81b7e89
+DIST thunderbird-147.0.2-ru.xpi 601167 BLAKE2B 
1264438b3c78618d0047899927c0fe69c0c76577beaf9d7923cae195a21d3e5ef3e6aff580fad8eaaade8c252f7463a67aabd2daa68610f0156adc8665bd0faf
 SHA512 
2eaff7cc4c627ddf5d39a296b14063240418504ce1b268f80bdacd1a1928d978d53bf85a7eb3df5fd12a9e0624f0cfa153010fa9c1775e6f53e1a60a6320432a
+DIST thunderbird-147.0.2-sk.xpi 527055 BLAKE2B 
671625e90fd722f4d1fac776fe12aa1049ae6bac6e69e282dc5b7809cb658881fbba50fce7bd6f45aa0dbede0d2caef1aec8639376f093d912bd0a49d51b7d6b
 SHA512 
5f16590c0403f87be4270296f041f6531f35511bc9b1c27eb1c7c77ba4602fda6ff26ababd19b15e088d37dbb46e9a1be098f3cc6c09ff5c144d534b2bf1bb69
+DIST thunderbird-147.0.2-sl.xpi 491183 BLAKE2B 
9b60dad49d6128e4b9650d0eec63d629e8ce7c88e4a3a9d6b31b9cd00f5289c65637c42ba2c222a54e9648f213a7f4f81cf6cb07cdc9f8b7a7d244a126d75355
 SHA512 
9e9a46de5ce25b0debcce347d8be831f79b50eb835ebae8c6ada07659eef81d1a5c1e738a547d78518e4d23bed8096d81d55d06a2c24799303d553b044315102
+DIST thunderbird-147.0.2-sq.xpi 513074 BLAKE2B 
9be58eb19c9fa7985dca4403ef19235a97f79c77ae8fbbcc2addd693e30b6cd7a0f44b6993e6d650f80902dd6f2bb33f7a38daf19c81b0ee7767fc69d38d84af
 SHA512 
e3e6ec8f80ae0969bcf2708c5728ce84ad4d36c2accef5ccaca18e547cfa76350aeb964ae8286b9950dc7ee3d718c4de62c533180234db420bfa8adae0de5150
+DIST thunderbird-147.0.2-sr.xpi 493073 BLAKE2B 
85a32420c5863035c08d9b8e7ac24c7c8b9d11b76387df703da0a35c3f584803bcc3db1130f40e397524b771625fb28f0d7e61796aeae4f56a60293a3ae2d30b
 SHA512 
16d48f6423c9141b0cdaa8780ec9b7edb028c85f81e689ed9a342fc19f996bbcfffdac510a940076aa7b9b2f76f8ca6ab11d9f00c13fc70f46330e6a32ae60d4
+DIST thunderbird-147.0.2-sv-SE.xpi 490953 BLAKE2B 
29b510192e7c76ebe7fb05ebacbfa58eb5f9faaa1df413a9cc189ed8a234a18e3737a1762e75936defead7bfc6ede7e092106c1dc46b0ba2efd3b7482c3d65e5
 SHA512 
dd020b761b76d5013fb666e3c01000ed8240122ac851bd75d6ded0106f33a0c2fa8afddeca6624368f9e471696612e517e20d1521b9f39cc29039fb393307c59
+DIST thunderbird-147.0.2-th.xpi 568261 BLAKE2B 
cc61a5c2101adc5d504d18ef0df5a9efd02dddfe7683a0c60a4f5fcc7e57cf6720547abe7c486be495e6bbc7d97b21690086ad692b09f28ece4d6266833ca1e7
 SHA512 
dfacd4622df44ab65065dd7a97dc23f468b3d9f657b6b7fc33f70fd47aefb0ae067f6ab9f626faa3bd445a49ad5aebb7d82608e3be407bbd548de756cb75b085
+DIST thunderbird-147.0.2-tr.xpi 502702 BLAKE2B 
d51b4316b9e1c6b45a4a1c78eae08856984c899354bcea0e0c67fa381e32a4890d989101720dc7ba34a3cd86d35e01602af74f6b586c8fde5695a090d3aaff71
 SHA512 
cc7dd90fd4cb2fae9ba75ec82bf694f7281a231a8f02916a23ce9127052e9a3719c11b17a792eb965a57479854dacdb04bb1dd285c39242a19ac33e114165859
+DIST thunderbird-147.0.2-uk.xpi 581931 BLAKE2B 
8d07182cd393cf640b85c2547e5ccda950580f0e2094d7217d6887b55541738c885a7cdc4a02d31a8e77167c01012a0ac9c381f1431eb076f4a610c8b02467eb
 SHA512 
cac62812d27143bdab1431bd846d4ac8e1b062e8aaf03d5bf3d652e8c4701e4cf3710eb26960cf4c2f8500ac5695a52abbbd34c5be522026bd7428f5a933f374
+DIST thunderbird-147.0.2-uz.xpi 352854 BLAKE2B 
8f6f8f4331b83d1ecfd4325431cf4d09c1022a3a9dac3b3db2d6efe3f41a388de7490c40de48224d0f8c2f829e9a8a6e46b91847b4557767283fc801521659b0
 SHA512 
147ec42fd9fa70bdae5792497c63341b7d01f2cc3c55f01fd931ed136a7fd9a4144986717b213fd7a005269aa49596b140b4feff4ba6c9a03fc23a8271bf91ec
+DIST thunderbird-147.0.2-vi.xpi 525245 BLAKE2B 
5fe5f7d6b125d72789c593679ea264cca5defba481b80c276786415a257507f385ddf404cf03f3856477013e32e47fa16b1372d0482263f3f1fc66034a4aac1a
 SHA512 
9487e8babedd829a9741aa836e9dd471451d73dbecefc70351f85cc53f2318a85f7f8fd1c3d9ebbfe52e73b302c25f0a2b18a130a4340c800617b38a0bc8af36
+DIST thunderbird-147.0.2-zh-CN.xpi 514162 BLAKE2B 
96b946a52aa1babda7f05fa8e3d83aa56211373c97373d4586a4075af72cf6a9d623220a4ae44463291cf3ff320d32f96d000715550f190ebe6f19d8e4219296
 SHA512 
a369cd0f74acdb481e6491c6ae227577a0c13b5079eee0c9ebac030208f8db08f6a1679f6fbb3436d06802ee9a90c8e486a76cd52617111f6a34b8eec596d0a1
+DIST thunderbird-147.0.2-zh-TW.xpi 517870 BLAKE2B 
cde71845b27d99dcd75c3fefae6f4b7223095520340db2ea84c78368cd7ea28eca205ba29a36a0f964f58ad6d480f7da964a78600d404d010ec95ef689c2d04b
 SHA512 
4a46bb590881ff16ff22b3e9725e937ae65de3c90f2d737df94277a8acd4089f79b4047a40b085e9ff6c4e491906e36bfb2ddf9c5e1be70e96eb082d4473ac62
+DIST thunderbird-147.0.2.source.tar.xz 786893164 BLAKE2B 
316f52a3feabe705a85f3e3e4c63829ff8f95bd39b6169d326258e8e3f2df2d4abf0bcaac3e3f6b53808e8a413865fdc6c01f1cc4ade3dd0c1d535e74bf8e985
 SHA512 
4fe6d0389e8bc6078b3d4db79d1f8547666950de4a5a72e49ba24d5b60cb531908b88efa9f3dd32e154ee917a8b80786389ce9b1186b6c45fb0717d4e180e537
 DIST thunderbird-147.0.source.tar.xz 780223936 BLAKE2B 
59fe7ef910e65dfa5b2e7ad5308123df86b854c336fac47c2e8e96ab4d40c04ac28561084796a8c33d7c9159d2186abacb8362cbc6c12440b5965ee3c6fab5cc
 SHA512 
d04a135f23572123d5cca41c2611704aa06cb81e0226c89c267dc527f59fb0d9d5d8b8a49cd126626c2fd934624c9d2420ae71dd10a912b3011f3342fbaf7511

diff --git a/mail-client/thunderbird/thunderbird-147.0.2.ebuild 
b/mail-client/thunderbird/thunderbird-147.0.2.ebuild
new file mode 100644
index 000000000000..352d3dced614
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-147.0.2.ebuild
@@ -0,0 +1,1163 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-147-patches-02t.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=
+
+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[@]}"
+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-pipewire system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+# "-system-librnp" requires clang, bmo#2006910
+REQUIRED_USE="|| ( X wayland )
+       !system-librnp? ( clang )
+       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.29.1
+       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/glib:2
+       dev-libs/libffi:=
+       >=dev-libs/nss-3.119
+       >=dev-libs/nspr-4.38
+       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-78.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:= )
+       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 and bmo#1988166 on musl
+       if use elibc_glibc ; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+               rm -v 
"${WORKDIR}"/firefox-patches/*bmo-1988166-musl-remove-nonexisting-system-header-req.patch
 || die
+       fi
+
+       # Enable jpeg-xl only in Firefox.
+       rm -v "${WORKDIR}"/firefox-patches/*bgo-928126-enable-jxl.patch || die
+
+       eapply "${WORKDIR}/firefox-patches"
+
+       # Allow user to apply any additional patches without modifing ebuild
+       eapply_user
+
+       # Make cargo respect MAKEOPTS
+       export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+       # Workaround for bgo#915651
+       if ! use elibc_glibc ; then
+               if use amd64 ; then
+                       export RUST_TARGET="x86_64-unknown-linux-musl"
+               elif use x86 ; then
+                       export RUST_TARGET="i686-unknown-linux-musl"
+               elif use arm64 ; then
+                       export RUST_TARGET="aarch64-unknown-linux-musl"
+               elif use 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
+       # glslopt: bgo#969412, bgo#969871
+       moz_clear_vendor_checksums glslopt
+       # TB-specific
+       sed -i \
+               -e 's/\("files":{\)[^}]*/\1/' \
+               "${S}"/comm/third_party/rust/glslopt/.cargo-checksum.json || die
+
+       # Create build dir
+       BUILD_DIR="${WORKDIR}/${PN}_build"
+       mkdir -p "${BUILD_DIR}" || die
+
+       # Write API keys to disk
+       echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+       echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || 
die
+       echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+       xdg_environment_reset
+}
+
+src_configure() {
+       # Show flags set at the beginning
+       einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+       einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+       einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+       einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+       einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+       local have_switched_compiler=
+       if use clang; then
+               # Force clang
+               einfo "Enforcing the use of clang due to USE=clang ..."
+
+               local version_clang=$(clang --version 2>/dev/null | grep -F -- 
'clang version' | awk '{ print $3 }')
+               [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 
"${version_clang}")
+               [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+               if tc-is-gcc; then
+                       have_switched_compiler=yes
+               fi
+
+               AR=llvm-ar
+               CC=${CHOST}-clang-${version_clang}
+               CXX=${CHOST}-clang++-${version_clang}
+               NM=llvm-nm
+               RANLIB=llvm-ranlib
+       elif ! use clang && ! tc-is-gcc ; then
+               # Force gcc
+               have_switched_compiler=yes
+               einfo "Enforcing the use of gcc due to USE=-clang ..."
+               AR=gcc-ar
+               CC=${CHOST}-gcc
+               CXX=${CHOST}-g++
+               NM=gcc-nm
+               RANLIB=gcc-ranlib
+       fi
+
+       if [[ -n "${have_switched_compiler}" ]] ; then
+               # Because we switched active compiler we have to ensure
+               # that no unsupported flags are set
+               strip-unsupported-flags
+       fi
+
+       # Ensure we use correct toolchain,
+       # AS is used in a non-standard way by upstream, #bmo1654031
+       export HOST_CC="$(tc-getBUILD_CC)"
+       export HOST_CXX="$(tc-getBUILD_CXX)"
+       export AS="$(tc-getCC) -c"
+
+       # 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
+               # mozconfig_add_options_ac "+hardened stl" 
--enable-stl-hardening # not available in TB
+               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