commit:     58e081d6798861b95a8d1e6eae2f7b1904e6391e
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 17 07:22:42 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Oct 17 07:30:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58e081d6

mail-client/thunderbird: add 128.3.2

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

 mail-client/thunderbird/Manifest                   |   65 ++
 mail-client/thunderbird/thunderbird-128.3.2.ebuild | 1192 ++++++++++++++++++++
 2 files changed, 1257 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 7c5c0e562be8..154dfd2f20a1 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -260,3 +260,68 @@ DIST thunderbird-128.3.1esr-vi.xpi 788485 BLAKE2B 
eb1bb3b36602f56db702d8063a1ac1
 DIST thunderbird-128.3.1esr-zh-CN.xpi 786952 BLAKE2B 
659dc16bf96349f5fea4902f2c47af6edbecd2b1f60b923d0fcbe1732c8883b5eba3349937bfa83caef3c7a000e365722135b8db2f0ed79f965eaee04323a689
 SHA512 
3f5f828588d56b76f14ed128baa6e681f8eb07d71898faf65a1acbe6bf5d83d04d2c4ad0b5a785c561b30d6dee338b2e72235a1411f87b1527928e0d26f7e35e
 DIST thunderbird-128.3.1esr-zh-TW.xpi 791295 BLAKE2B 
4c31f3758723116182f0c67308ef8e0b924c121c44a5543626c8e88fbf1b77fc332c6cb0bd262d359cf586755f6d68c672f52f8620de9cc50f846ea82aa3cf4b
 SHA512 
d1537ba6e1e27a63d60f290795bf6d689fc56b09e34fbeae8a7327be5fbe294aa569379d40c60130c26471b5e141f4f79ca53fad36151cc286ddd990a0800ec4
 DIST thunderbird-128.3.1esr.source.tar.xz 678730388 BLAKE2B 
7de505ca886c72ce4a783d56e3024165b823eac85a1cad9fbf482f30467f4a0c81b179782bae756fdf596be582a1a4adbaf85a60fbb5c274bfc03a8c264a4d9e
 SHA512 
9fef04a0c498eb16688c141cb7d45e803ecc75ea6fc6117ff8ad1e6b049716f49b435f3e5a1baa703fa937e25483137e22256e58572eeacf317de264b961ba6a
+DIST thunderbird-128.3.2esr-af.xpi 530347 BLAKE2B 
2719d594e5347bd48db4ce34a5bbd01456a87d6ead7e074f58aa581cb5ae9ac70b1542cd082fb87484c9f7799d7d16b6ae6729db97ee040d9f3f15336fd29cb8
 SHA512 
b4ac5c55b637030fdefe3734591aeb8cf970c802164b2f49bd66f1f433bd72c584095303fe31bf026dfd252b27bbe1e64d60f43eb8ad83509cd5b475e893ba66
+DIST thunderbird-128.3.2esr-ar.xpi 679865 BLAKE2B 
861ca7c89a26da2ce28e097c310180b2355df8cbb7408b5c72d26cd16eeb4729b7481838c08af06e4f3ebf19ef56b7898b6f917ba949ab32c6b851305143c352
 SHA512 
bd53c10c34cea0101c1b334730b2140376a7ee533068ab29b02cfbb9cbce5e8cc39018bbab6fbd9d4febbaf534b809cf1ef8cd6923ff4de30011b5d24a42f66a
+DIST thunderbird-128.3.2esr-ast.xpi 561052 BLAKE2B 
f129364570d54bf4b71968ade41ce33bf7192c0ace1fa3cadc34aa3b3925a579af92b496a549ef4920a39c1a65553414caff6ed6df6eea7837e3daf13174de82
 SHA512 
6300cda9bc0f0870c777145cb174aca5fe8bea86d8e43d340cf7f3c53b8d87b6ac82e0d48b21a3353f1747017c1b97d2af29d579aff48ecd9df889ddc8993dfa
+DIST thunderbird-128.3.2esr-be.xpi 766041 BLAKE2B 
e32955f711c1a7f48b628394b6738c900c2ad0c5350116314900b6c0403e0ce775f9e7851b8b024e9c8cb5965fde3f203915733ab1457c0373ec993ee63e1ced
 SHA512 
5e88493c75a938edb7d8529d1e6eb86081fe27172a7119ec6a773ae6a58ff81ad5a02020a14a54079b2f779180a289b0e7153c8c3b3300cb04b88a33bbc58431
+DIST thunderbird-128.3.2esr-bg.xpi 809920 BLAKE2B 
3dc79807528e96c4692be2a06666777ad4a181d4ba7af2f873238c8634fc5412914d9fbd6ac002070fbee8db5fb7ff2c17a75abc1ba9d9835d54542e19b68995
 SHA512 
544d06334a8a16548e81c4ba847552e77e42760230869ea2320714d9b8657b5f4b476b81c9fb04bcf5b02f820851817a91c919e43dbc1c0aa467e4f47cc7f9e9
+DIST thunderbird-128.3.2esr-br.xpi 653013 BLAKE2B 
c0dea23f0b7b85efab85b5401e01393832c445292e1b4664eefc91bd1fb35bc0960782bf1ae1cd1aa07eaa285faec33fa659e0af8aa6bd2d2836d035a5e558de
 SHA512 
ef67d2ed6c847621315c1c42462977a703b489bba1d3aafb07a1b3aeb207f03bf4a0a614d4d856fdeb43cafa088c1dc9bb8ee0cf6a46f7eb814423eab0ad4760
+DIST thunderbird-128.3.2esr-ca.xpi 709739 BLAKE2B 
cad4f6a3889f33da3c48ec3e6093d5253b13047d034bc81b4b3ef4377dd0059865d6d98d523bdb33932933fead308176225876e72429a443a120669b6845f64c
 SHA512 
2837b313f6f9a69c2a3c3977f6d4d1fc21dfa1bfbdd655212f2d6d615cb20bb511b99d8455f0e0a10df3855554f79a8bc536be16a763836c90ac2d1e0eea83b1
+DIST thunderbird-128.3.2esr-cak.xpi 671701 BLAKE2B 
5bd7dda767a164127b87c3c4fc2ab84fca2ae9ccdbe52ac12682d7da5d440b786b4c297787979bad69a93a2e619a1980feeeb2585ceb855d4f6c12dd5974232a
 SHA512 
d50dd6e73d3d84c7beeb043c887775dc9758576e85db4063a642af2a1689f3a468849c4ce66783ba5552dc6721ed5c157e8abe40f90ac838724d2790990b8b05
+DIST thunderbird-128.3.2esr-cs.xpi 787254 BLAKE2B 
bb9a2807180a9206ae991037c2f80c6495dc16208e2f211e95ad4632c8fabe31bbb4cf8487e9a5107d6b9b0e237df557cc4c12e25f2959d319038da33abdeaf8
 SHA512 
8ba021ed8cb88ee44b021c3fddf4d119760ebfc318408a7a651e5d5ec5ba7648a748bd344369ebebb194a5cb890045c6c49f1b12ecd424ee8117bbe6989c4a64
+DIST thunderbird-128.3.2esr-cy.xpi 752024 BLAKE2B 
9a43204f2be5fe4121e122ee914543479b5d015241419df1ba9aedf94eab0e029b60f482e9c4458c1e305b36f29353a7bea5bbfad8ee289eabc23808bbb6d8e7
 SHA512 
61cc8baf91cdb177525fadb9438f0f602d4497f365db2e1405db31f3c743b33eb5a16d4b2ab366e26cc582af8c1f2364d5d5dd60a2bff2a98d3997b9666610ca
+DIST thunderbird-128.3.2esr-da.xpi 734115 BLAKE2B 
dcfcc918beae623e1a4256003d066eb5bd62ac13c5296890725ea75fcdaca40367ae853c042c5a92c6f887427fb997e6bf7a88e42651b86a8d073bb6cd1bffed
 SHA512 
905626c153b9ae430c8c001fb3ffd1029a0908655e124f241d50c0b393e7db255f17745bce7e7eabe0201552b24c1e23bd8770917003d3d870ac7bef75ea4ce8
+DIST thunderbird-128.3.2esr-de.xpi 769100 BLAKE2B 
87f0a301559ab855ff1633e5dac104a031adcf8dce8beb6df067d2aa80dcc7eb1639354073639defd1f975367b2fca966fdff842fa001c0e6b762b4e7d8eb950
 SHA512 
894112e01b63d29b28d45cb17dda9e158afe27445c7cef0b7750a09a50768e9df7b33009323b8f6a7dac53f4f4772f08e18b0d7d852d9c39ea72d98f55f31006
+DIST thunderbird-128.3.2esr-dsb.xpi 785745 BLAKE2B 
174dad015627a577ee7df0771c17f5a1bc9fe96c746b4902db82ad01f80a8be7b691daf5cc84f6683b075b0c38574a17fb2fa66fb3fc84f588043dd6d9eeff91
 SHA512 
468b0bc7a620e2287283d3f38dd1256c21eb9fa82ac3ce84ab0a0fbc6afc9af60c40cd4cf0278a6c8dd16a93a7841e0afe559e7eb22079142e3d399c42d1f411
+DIST thunderbird-128.3.2esr-el.xpi 892515 BLAKE2B 
19c07885bb7113b51283a2b076270dd0d200a8b0014812c8411d3d41759bea15bbd04835de37a4142feb1677a94dbd6e39b70710b72ec283bd50ba8c2c290c34
 SHA512 
f028a08b21eedce9d6d3a739d37dd074bdd625857b59d82da08b40a1637001ee92d97496e67c1501a715283ec9ec96652d350f491fd178eacd482c69a8fb5717
+DIST thunderbird-128.3.2esr-en-CA.xpi 703807 BLAKE2B 
8c14321420707285f22e3e9d46dad203117d7bd1535d6e6216f02058862f715cf1a6e7bcdc4bba6a331c3bcab5462f3dbf987e57937c2e3210fb0388447cc626
 SHA512 
3f84229eaaa3c55c21e95048e91826cc1786ceb85725d5518f47df4d795ec3c3ab975a8511305ead7f69fbed0c2210bb9a37776bd40db7244d4b768867956fb2
+DIST thunderbird-128.3.2esr-en-GB.xpi 705295 BLAKE2B 
f687572b1274e6c886c649ac32865f76aa03b410e61f880a4aa663a3f99619abab615a1c0e06309b39d8364243bdb8bc37c38a22b2079a2f2522bba5b1d95c69
 SHA512 
00877ba2edef6b33ea44a78faeae53f1f4d9007c9229bb19f7920e7831f143ce0fad2c80ae98a8a8189da3de227da5d6b1e30c885a5fdb80bb88359f08dfe1ee
+DIST thunderbird-128.3.2esr-es-AR.xpi 761097 BLAKE2B 
6fd7a80d50a412037837d17d54f79fbf2e2415a90d372250f8d63bf588148243b7521b2795728daef367de582a31b7f514e6a4a76325cf1f579afe28dd3ee412
 SHA512 
1ab82b89b6e6a3e2cd7c293a112aad937e2ecc86881a8d0675b5c175ba0bc8ce81e2b6a56748da6814220e4513b85341f1b71387bf3deb0b3bc3ba2ed2f57cf4
+DIST thunderbird-128.3.2esr-es-ES.xpi 725275 BLAKE2B 
dab9f2501f3c89a423d22e9a0a1e18087494e9ff96cd568f6382a1b2dd86150eb217a7e25914494df35aad864acb31f0c3b7f25e96a50aada4eb568e4e5d4dd0
 SHA512 
e757fc0a2e5dc100128ee82ea464aab5d23e073274894df173f7ce53af67647b3b7c82d579791c3a39fa49d064dc3df832563e8cd228846ee1d02e4fb263238a
+DIST thunderbird-128.3.2esr-es-MX.xpi 737706 BLAKE2B 
1962d9585367af3f8cd6a000bb5e90a97d978b8517ab2f791d21420f20dc532466fc74821f330868c221ca7e3a71e09cd9ded087eab3d426db56140c9c02a2e2
 SHA512 
389364f39b60046774e0f6260b2e7142063a390756af3364c43e8a6ba69ea0d9ead2e3efe4383198b020ed095dbe795f35d1f708ff6420c5385851bb83229ffd
+DIST thunderbird-128.3.2esr-et.xpi 696279 BLAKE2B 
c838b1019f14554bd3c51eeffdcce060ba3ac17e27fff636c4ea935c380f26c0a542f494b7969f3e0f79525d1916aec6bce3067e571a7c495ad38b8ea322bed7
 SHA512 
5b3c22d54c1f12a486bb3144d6eb01256e23c79e4e008379d26dca41c231d3b64828114f4605d6233439c8478d998b62b226b9329145aa2d6cf1cd5f6bcb2ae9
+DIST thunderbird-128.3.2esr-eu.xpi 733819 BLAKE2B 
ed7a3abcb703086840b26c58971c1b0f62996593c7f035602b707e8bb5ad9482a310da454661578eed9cbc8abfbb5167919ffb469dd5b4e1c68b9a750484a23d
 SHA512 
003a8b2686a5b959b091b97703ff8745b60de02c6bc2e627165d2691b69c1014e14d5b60edf179a376c6a285493f74e76a9eb24e9784194c9f065475d43466b7
+DIST thunderbird-128.3.2esr-fi.xpi 736705 BLAKE2B 
baf3cd1ae3e4a1d8a4ab6c6ac08815c9b4cf30b1ea264069d2184c94a03451e4157166248df11f30d135ae27f987b7f30ed4cf33d5638078a3fcea857406c61b
 SHA512 
36a404c29018cc02291fc9b19230835ef81ee9bbb242bea19233b13d5b6e9b30a9bc9f6b846fff85b7537a36c252d3db9289746a59bb0fb1b576a340e11222b0
+DIST thunderbird-128.3.2esr-fr.xpi 772886 BLAKE2B 
8cfa201083825ad5824c8646b10196acb71aeacafd969218cdbccbc91457a3ff197a0d8a771d17555348cb948f0b75ae8e34b2ce3afd7e6a0bb78c0fa24ed675
 SHA512 
3be0a138bbde4a768f24398df139538fd8eeb99beaee89f0472787c0632666ef8e9b00571049761238e7ecdd85ccdcbf727bd5031c7fd4b249dd7dda45840d04
+DIST thunderbird-128.3.2esr-fy-NL.xpi 754428 BLAKE2B 
592d580acd20d4d37372c07ff0986f0d747734b40baa77d95d26156f818dd79a571670cd30a472f6efe487079aa51efcf844e3e451cdfefd604aafa4b3b18286
 SHA512 
6f0944657c4aea66e8411c05e109114b1757ac159f77246d310fcaf66b78f4e291c48adc278e689a199732804b378b8e5f20edf8ddecaab83d8a14fd21a7bcda
+DIST thunderbird-128.3.2esr-ga-IE.xpi 615878 BLAKE2B 
7927196dc292fd69bcc3eb1d4c88ec815527f637d11a9c2eabf0635a8e6502403d593f549df39e2e6747c31e046ebd33ffd3107ca42b870096c57702cd71389e
 SHA512 
e16a788497b87932fe20673e71a35f43e570dcca4785495a1ac7204a399bc59874ff28969fe50f133c187e0e6c2230768f6ee2c724615d1df24284bc631ff16a
+DIST thunderbird-128.3.2esr-gd.xpi 728529 BLAKE2B 
e28c8c3f9cbba1691c11fd8316b38ac6cf739d2dc0e5c36d65a88adfdb26fa75485f0f7685f9104c52dd4f9bf7763b6f687273983514e5388728d31036598d3f
 SHA512 
78e8d1e2799399837f86dedec3c10e721b447cca40b1b171cd68797f819e80f79360a0b697bbf10e3fb8ec05342a3f386a7a021360d80b2eb56ca0c9d7d271af
+DIST thunderbird-128.3.2esr-gl.xpi 741501 BLAKE2B 
658988b54c3bd9a6ace31645521ce714863a781f85a53273fa273c97adf49f694098aab7ef58a9a7cb316f31f69af7bee063866157abf95bc7e2d48a8ca51792
 SHA512 
597386ab22fe8a426dfa5cc24eec3b68df59774897cbfe1e47515fa547811e6410e09319e855489001dd4b30b3f38b4525d40c3721e4d5c808dc6ec90f22f9dc
+DIST thunderbird-128.3.2esr-he.xpi 700300 BLAKE2B 
f5227611947dd4b6f1b23374068c376b319a5bc370e2e96d5bfbe347518b2813dd2598e3b6245456928a0866eae6ba46ba955ce601fadf75d5d8d10627acdc44
 SHA512 
807196cfbfadbb47a317d4d03100da680d35521d57433d8a0ccd517b171ae207e9cc2234ee62d4acd630f382f5385499b9e057c83648a5be505a457c7c71c9cc
+DIST thunderbird-128.3.2esr-hr.xpi 718724 BLAKE2B 
9e2165beea437cc7d0a2352d93bb6aa57ce2efb7189ee1900fe6c00b43cf58fd10fcc38a674496b7cb2a65c828c2aae48ecac5ff90c27012e1810a6bef956231
 SHA512 
23d029926f2658d8c3ee3c26dd93f083fbf71abd3887013b2218677bfc0c80730d3852110edaa8eb2bc5dc6c01282beccb2ac5dbf326f4de2103de0ffcf7d3ac
+DIST thunderbird-128.3.2esr-hsb.xpi 783146 BLAKE2B 
e937657f079a5008f6b67fde74323abf0e0f8ff09a961b20a1e1fb775ace3c72c731fb57068e039c2a627daf832ec27245bf0834a506fe286172ff89f0baa3f5
 SHA512 
124c53c20ea4035aaed2a582141a4d33a0b4c523a97ddc894d920509da09c4502fb8a12c2360d4a0d14256d2a5635cd0f69c0cfce6f406fd30e2972c6816077b
+DIST thunderbird-128.3.2esr-hu.xpi 786081 BLAKE2B 
47c9ceed4846942447f9bf9ae15aa51b1b0b8305b6f890f3feb8f091a866a9413e4320adaae84f985ab000931dd89bc02c591a9a877c6a832cef6622e7ad7406
 SHA512 
da390af147bb43b20bb0caa67e4e778dfaf858d9fd9c8266ca6bd1c357fc2ae96f7e4b74dd79c23ad6d7710bf10702ce25d40fd61791c9e43537e2ae82fd1ed8
+DIST thunderbird-128.3.2esr-id.xpi 666006 BLAKE2B 
26964d7d8c8449209047f6880f9f1e59e1272cb5a85c74315c94b91cddcb815fa7c4b2e2d81acead42ed4f88343b9d5f909cafed7b08675402bd395d90c41ede
 SHA512 
5c9b5821e4db384c438fc12b9c44c6700d9c59fe761938536502b6e1d35e91582db146291609fbeb9493ac88e9f716e0267e982ec8e036c86121e539c1156537
+DIST thunderbird-128.3.2esr-is.xpi 745510 BLAKE2B 
f971155409278f67fc879ec5d58b44396a9744c1aa4df6e34297bfcb268ff99751ea4ba3db96e2ee0525dced13a2c617a25240b1f1f750ca042d98ed890085c3
 SHA512 
ba3eb835da7dc776e3ee954c0a3e74b34e9c0a4199ca5e917b7ebe52f9665b00dbcab77fb450c5cc00bf71d9022244de76c61d05b54b5315dd1513a81ea525b7
+DIST thunderbird-128.3.2esr-it.xpi 693197 BLAKE2B 
70a9b82f5ac971f1af2dfa579777fc9ee4794300281357becc7ad36d29c5871a95e202b8b5de8b9e784f76dbc1e26c6f3e3f517ed738056c7af9b7353aa6d81f
 SHA512 
e412e64e147206bc519fc99ba9d3971bb03fde410aebf949a50a07d672e8fd08199af7e99cb391b411db249aaf35dca079bad9d99d14e5aa40a86f4d363d3733
+DIST thunderbird-128.3.2esr-ja.xpi 822830 BLAKE2B 
42620e0dbe37f87e2855de91a66e00a24a40b0c4581af919435ce458fb3d82489a224025f2a0bc81903891f0e67404fcd34353dfca7ade5ae7a49f6509b17715
 SHA512 
ea85b34fbc5ac29463199e5db22fe14f4f01272579aa80a8acd6a5e21cb1efa836b268a927fd14e276e4d2d21f43677cb5bbf700e0af44122a7b684783cb75c1
+DIST thunderbird-128.3.2esr-ka.xpi 796045 BLAKE2B 
d8f06e76fa1e401d88dc95554c1c7cff165f735cfc3e729923393e31d78742f783366e747e55902115f78b15f699de9a340bfc927335fbe5d1b8a88698c71caa
 SHA512 
a21ebee48dd5fb7442f9a85f4f410b1a8d65a7a31650dc98efa37f4c4bca74bd14d1a0e0e5a6bcc339e25b0255250a4ad63039fa27ccf103b8690f5af019ddf2
+DIST thunderbird-128.3.2esr-kab.xpi 732378 BLAKE2B 
cd1d42e12f19d46a9f683ab42a85d5353e787e8df2a5dcb06d44b4be8fbbd4edfa6ffd7a488cf74b6b288ce5c6b37a52f64a190ebc856ab549fd8b6c2c727fbf
 SHA512 
82e7d23c984c4223afa6a5a82cc929b8b577abaae0aea4081dc5d60cb8873d829ffe6341a3dea9f4da9cd048fbd79575b19fc7263c2f12d3cee9da2482fba10b
+DIST thunderbird-128.3.2esr-kk.xpi 859195 BLAKE2B 
90e54763d4ccedbb29bfac23f3f359e7f9205cf104f21c4f930c7fc03684c62aa14887547de78aa7f884396fffe66860a565f5029c25b69876981f921f19e47f
 SHA512 
78767f7ae15d203c0f2bca03311025e6a94d5b9ccb1e64ddbeef575560dc80a0a5477374659db4b50f10d88e5ca7b90c10970d2fa6b91d8b38bef5cc71a16926
+DIST thunderbird-128.3.2esr-ko.xpi 755134 BLAKE2B 
b851e10108068877348f2935b6a664e7525a966d1f6a3eba42cea3008430155ccb5289fa1fd498921b1a9f65adf54bd56f0d2ce859021375cf9350e0e12471d3
 SHA512 
27342881323dfcb40f3d8b095dd8813e61d4e50aa025f882e46688e306c9ecd5bd0f72ce16fcac0f30076f12d72609e54c0c85f8376e7babfad128c624665f83
+DIST thunderbird-128.3.2esr-lt.xpi 700917 BLAKE2B 
8bf2a3c986e3cafb2945bc1cbba25b44c7f45a350da7fda6e42fe32028a74d6adbe6e28cd4b96fc864879f656e6a8203b85c0e48cbd086fdb823794502ea2541
 SHA512 
fc124e92d8a8f9252cd2d31a2f11216f3a1233f01b58c90bc36ccc82adf9479f311e60fb7e2c146b14dd3b140cda392570be38f2f53c7790b1c506893abd5640
+DIST thunderbird-128.3.2esr-lv.xpi 623623 BLAKE2B 
29dd14649dcbc0c039e7c49e40f6841387932f4ddcd119de8ef7fc7e1804d409af073d5a9b127d5d9ac76b5e3373c46f78a08b2ea3c88473ac54a96d68d46abc
 SHA512 
89ea58102261cab3ae403e4033f459c293384acd41590c0b4e534f7234bdfc908c2eee79ab64c53a783c48a65ff5c909789ffdd9f2fb08d94d88a1cbf84c3706
+DIST thunderbird-128.3.2esr-ms.xpi 581081 BLAKE2B 
a1bbf095bcb0053f7c3fbcdbab736ac7ece9db8e0eaecf8771b29cc65b99e0e2e28154c69059b3205b0777cd5063cd0754287c12f99fb485abc9a1aa8b51cea3
 SHA512 
da33ed626ea3b6f8a8e5e696501bad28f4c5d977e564d3deba009cc9c47350a64428629f43593e5af38b5418dcf48df57a85da59254f8a26ff26724517b6ca61
+DIST thunderbird-128.3.2esr-nb-NO.xpi 703764 BLAKE2B 
9968b9d910310c95c89a4cfb8387a57496ad5b04b9e2d0d07d7df622f1f610c17b5daf46542833814e923ee1961bcd336453fafcc55febfebdbfc7e325e78928
 SHA512 
d28b222ceed1c19d3baa9945f8aca882a4f531f9aee109f5889e772928a5302822c928ab036e478b471a6b8c54cb0b06c8e67322d343fe90d6deaee92060a53e
+DIST thunderbird-128.3.2esr-nl.xpi 746833 BLAKE2B 
188e670e6212391e289b0feba29acc7735109692831e78c09aaea8489c7440801d15741ead1c7298267a6af13d19f9623578c807737f86d178c9a1d235b8d040
 SHA512 
68e7044dd0a76cc396e52a9e17abe7fcb8f31b85de202592f25ebad62720bc6ddebfbff3fa9d181c3fb45567877a0e0d86fa0809b77f6f3a1368d8b264924280
+DIST thunderbird-128.3.2esr-nn-NO.xpi 725949 BLAKE2B 
087ee7e19da37d366d19028a6730b9adcca4d624d3b289589e64d13ce6fb07ff1e2376079dfd6bf8c27a91823f4ab0c3b40bfff7f8b52ea0ff1c5d53ca290749
 SHA512 
fb16063026ef4d4112d309ee542fbe725bf04a68df2b8140e5ecde9db56d45a2c03c25acb17fa1f0cdb4663e54317dcacc6dd0d88a4a582eb94c9f60f315dad8
+DIST thunderbird-128.3.2esr-pa-IN.xpi 683343 BLAKE2B 
0b0611b657f7cb253bc46005054d6a915245637a98c59c99404e677cc523d198f9a8b9952dd9bf0f6d16538c7295bafb151f8028bc86524e3f9f8884040c7a3c
 SHA512 
71e17f4f7702a0ef19efdcc260f162a18edfd3c02e077b2339033ecbf8a0dbe6fcc5343f2c1885a3d600a1ff06769ea61d4173b86e3aae61788bedbe98f5b1ab
+DIST thunderbird-128.3.2esr-pl.xpi 764578 BLAKE2B 
af95363e64aaa75e53ec61ee2936d4b97cd180e1f00a97fcd509620dd633d7b0e1631350d45ac0bc6669fdf46afb91bb022169da74a03531840b0c4b578f8e79
 SHA512 
b0e8cf1c8cf024f66356b7041022e8dee990293a0da88acfdd4f4ccd917e3365a9b1896bcc1a20d8221160207eac4494da7b0c97775dd4999c05e6ff3d7dd65d
+DIST thunderbird-128.3.2esr-pt-BR.xpi 754205 BLAKE2B 
ef17e7d083150f4e64a3fabed45ae0006aff7c796babc20797a3982603d0850eef2765b3aa106374ba524f90c25c498a5b8c1a195b98721e38eafb2902bacf67
 SHA512 
87f8be2005caf6303e7bd3650599fd142b916eb17b4e35676bc64b782e1ba428c4378d3bc68da5d063bc6941dc2909d475e6e19848f67869bd46deb2aeb0d0e0
+DIST thunderbird-128.3.2esr-pt-PT.xpi 747130 BLAKE2B 
a6b396c6ae57ccb3404307f55c948ded8d3f577c2a768d2b22597299e995817ee917843b3fc3c589fa24bd45040bdc4520e89f770f9e7843cff6a768c5ab6d97
 SHA512 
4ad59cd9b1b4310af422b7c80ac6d1ff867da75722a3bf6115b18a23552aafcb9311366a0ba44adff7eddbe411d77e3a6ebcefdc6b1c7c0df5b5f1dc6437bbae
+DIST thunderbird-128.3.2esr-rm.xpi 747953 BLAKE2B 
86a173936764390b82c1b76bfb8a144263f9c627a1af7abecb556d2e1a33aa147a512576bdc0c40e5e2048843c46b2620b12ccb18104e14485890fb9fadcf86e
 SHA512 
c274ad442fc5046fe4f1fff9ec773020ffaed0c38f30c63677c6d7bd5425e67ae90cb9da7af2c0d3983b190a248b74588e0da17c18c95d34f0d12ceddca9bf31
+DIST thunderbird-128.3.2esr-ro.xpi 669739 BLAKE2B 
2ff5875668d5e67cecf600ab8ac114357637c8ecd941ae946b28007742a93947aec7da12e62f23d83ce50031f0032ce171cf94139efbd5a23eaf49b0fcba6b45
 SHA512 
f2356fbfccd6dfa1323d61bbd2d0193f0e752a9ba4d9580481039b161788ebfd73c3326a17ff93cdedb95b5ba97ff49006a2a30fa3d8b963829f0b9729e2ea70
+DIST thunderbird-128.3.2esr-ru.xpi 875462 BLAKE2B 
0139c46d07fdbae979bd33505f5544874d99fe801127a843502448ba9f0d047f4f88ef9adfb79360568663b0a976df4a9cf40cf76b93e57f942fe79faa75b8dd
 SHA512 
7d67132802c01485537efe2b7ad247af8d8a1ca7f0844222761fc597dfa74278b1532bc048d5a4e394c6154766cba2363a2fa70aeea788d8b1e4b3e182c02943
+DIST thunderbird-128.3.2esr-sk.xpi 787303 BLAKE2B 
96be62f4218a8073231f9f16b5009859fe46df465ba050011275e0257a4714b1010aa26bb3e1f3e7e346764d57c1afa8867c1e5128f981a46aac0b251add25da
 SHA512 
cb72bb7d4faac2353c53687cce92c004e5e2f6a860d433f98fc07e5bcdd802525494d1dc288f607a8aeadf9c899d6b69148f4a5435d552eb4e8a04f9269f7888
+DIST thunderbird-128.3.2esr-sl.xpi 745304 BLAKE2B 
66ab3376bf21ba991bd25230e542afd689e831ac8f8f8c242c44dab8f6b55935cd613de7dfe5d646cc1b1359170984425e67109e792f0548467b8162630049b8
 SHA512 
1f43e6003aaf7173b08dc25604d3754a86ea75ee6036395cfd3b1f7c5c737690269ce7c7a5a40207d3369fecdd90afd05570f2f95a71181b866a2d8e27e20870
+DIST thunderbird-128.3.2esr-sq.xpi 767679 BLAKE2B 
62ad2b69c7b6f177a4edb9de046ae7c3e6ca753fe016fd47c3b5aa63ca306c5996eb5a944199ba596e4d26c4fb6df52a7bd17a8f9e3ec2ebe8707cb5cb06a6ef
 SHA512 
6ebbf3e9bfa8b89c4c91187c0435b48c3b724339f37034d12f4301f613566462665ba18ba3930a737aebd5b1ea1822089127cfe707e88d7e788ff12f13280560
+DIST thunderbird-128.3.2esr-sr.xpi 771101 BLAKE2B 
e96145a3c12d03f11a99fbe15305b00984d77688ff02826851b8ef63bb79f2a5bcd63c1127480351f61fa3ef9297237ecfabf1a6ba45f346b11bfbb51fd5185d
 SHA512 
4fb9e8e93da40553f0eb58078d768f184e82d6c8554061146c57cbbef7425f1c8983855ebff2c0bdadfc2b4f78fce49bc248be859cf3d858279afb63782f939d
+DIST thunderbird-128.3.2esr-sv-SE.xpi 750250 BLAKE2B 
526fb3c68cdcd1c6f9ea6dd613187d179d34e61d9ebc5a3b03410b2d65f9025e26d661f9b5d2026897b971cf387f2fad9429066830ca06f71f53b75e7d7b7f4e
 SHA512 
45b612549ad8dc088fbee7f201e16b6e1636a2de7cf8d79d19755105783328caef3084d44138b596b84a475f5e9f2525073c6acc01810127eec1412e6e62fdbc
+DIST thunderbird-128.3.2esr-th.xpi 814078 BLAKE2B 
5b6135560de09677a424e700d1f4a51b366f9e4d31b0a24a8851eede1075966e53dfd01ca64ef123f9f062fff9fcb73e9a30e6ebc9dc80fd5ba35c9935c0796d
 SHA512 
41495365939485856ee3d9e37593eab75a00a8caa73ab03ec6af33c5c4e555b5f885e245b7d1578f449abe9999424a5e7d3407b760a7344923cc3091a49c1594
+DIST thunderbird-128.3.2esr-tr.xpi 760389 BLAKE2B 
ae086152ca4b0fe360443a1acbf230f35331651986877d3102a04039fd379efd7c1b6fdd52ea704dfe5e09bd2216e764e30d153229facd2742f80c1513d75df0
 SHA512 
89537bd43917f97879c0f1905ac67b2e698a401ece93693a8a7fa1df5fe2445551d340e7683989c196cd88425e8b274d1c96de90a6957377c2d5a07266d34dcf
+DIST thunderbird-128.3.2esr-uk.xpi 861341 BLAKE2B 
fe91fa0dd7581549d83e82b2a0c430cba4891ff2dc14842402516b4d25387a683fdecf6aee12a28655bf4facee2ef85295dbcccf3a382e81ae68866d295aa9e8
 SHA512 
4acf9ccf8d02a6b06ab4b16228aa9c6bca3c0c001e5cfae526b2c7476bfc8ae2150190cec5dd7db26ab9bbfe5a3ab3f956d8d1b779e9f8a4ee3dbe23c9ba2847
+DIST thunderbird-128.3.2esr-uz.xpi 592132 BLAKE2B 
20ffc9073326adabb3d1eefa2c78f3927a0f9df66ef76c4dc9e45619b722164d09d5fb843aee8614667c3c6f3c5026df109e1fb32ffd1c19ec60e2c0da3e6843
 SHA512 
d2b0b5a020930f34e45c5ce33a9419d1eb890db2d12dc06305cdec2dc01c861ffa8165319fcf4334216564cd4f44f8da6ce8fddd2fbe7c3f44c88479e90417fd
+DIST thunderbird-128.3.2esr-vi.xpi 789694 BLAKE2B 
c360793dd9a633a311e2c4eaf6323696585d19961205871cc0f0be765939f9879203a935949165152bb33e67cd42f14ceeef2847e73a28af0f61ac11f4d698e8
 SHA512 
f951281dbb5669138a3e223ea01658159721cd54a132a4ee5be6b12a2aae7acbd8c758abfa87f77838a9ce7fcadb55462659f6e091a84f908af3b0aeb181b495
+DIST thunderbird-128.3.2esr-zh-CN.xpi 788217 BLAKE2B 
d2156337cf524f49de6e13b9d520408e06299f14b20f74457a3a0a468a398a1e72ef14243b8c7de1f059f3c915e2c38f75b853b95bf705e274662543c134fe25
 SHA512 
b812958f7941fda5c9eebf5af4a87e4d40342af39edaa85850b0eaa6a6f5f8259fde0e69db8fa14dd33ed1e6e2f39b7b38ee4ff475a2f7f4e746e979be1dd344
+DIST thunderbird-128.3.2esr-zh-TW.xpi 792577 BLAKE2B 
056d561d4bc69acfef8f95ad1e3f59840a9df496ee3e36eb5571da620badb2601578256853e428b9e6243a2adf21caa1d4f6557f200dfb9ce73b5c86788cf00b
 SHA512 
90d18b3378068b94e39e2ff17bba925eed957ecd9a206a3257b32dc943f7a0ae5d162c110ab4d4e1070e1644c626f2af1cd7056333db698a8ca473507d829156
+DIST thunderbird-128.3.2esr.source.tar.xz 671832068 BLAKE2B 
0358b56af736eee89d40e06a63d51a26834d03e3d724286fa70483478d2890ee934a6ced0c38de2604a4f76c13071ceb65c60146cf2936bd36b2fb402f5d6cb8
 SHA512 
65d542554d775f5501208bdc85e38af4084e4c5b474a83e8f1a8595ce2873265ebcb833a0f134cac67dab82f0d0c7834745c44cdbe66d2251247eea5e4ad2723

diff --git a/mail-client/thunderbird/thunderbird-128.3.2.ebuild 
b/mail-client/thunderbird/thunderbird-128.3.2.ebuild
new file mode 100644
index 000000000000..2bfc08ccbbce
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-128.3.2.ebuild
@@ -0,0 +1,1192 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-128esr-patches-03.tar.xz"
+
+LLVM_COMPAT=( 17 18 )
+
+PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+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 autotools check-reqs desktop flag-o-matic gnome2-utils linux-info 
llvm-r1 multiprocessing \
+       optfeature pax-utils python-any-r1 toolchain-funcs virtualx xdg
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}";
+
+if [[ ${PV} == *_rc* ]] ; then
+       
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}";
+fi
+
+PATCH_URIS=(
+       https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> 
${MOZ_P_DISTFILES}.source.tar.xz
+       ${PATCH_URIS[@]}"
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/";
+
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+
+IUSE="+clang +dbus debug eme-free hardened hwaccel jack libproxy lto pgo 
pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent 
+system-libvpx"
+IUSE+=" system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +rust-extensions +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )
+       pgo? ( lto )
+       rust-extensions? ( dbus )
+       wayland? ( dbus )
+       wifi? ( dbus )"
+
+TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird )
+       !system-librnp? ( dev-libs/jsoncpp )
+       system-librnp? ( >=dev-util/librnp-0.17.1 )"
+BDEPEND="${PYTHON_DEPS}
+       $(llvm_gen_dep '
+               sys-devel/clang:${LLVM_SLOT}
+               sys-devel/llvm:${LLVM_SLOT}
+               clang? (
+                       sys-devel/lld:${LLVM_SLOT}
+                       virtual/rust:0/llvm-${LLVM_SLOT}
+                       pgo? ( 
sys-libs/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
+               )
+       ')
+       app-alternatives/awk
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.26.0
+       net-libs/nodejs
+       virtual/pkgconfig
+       !clang? ( >=virtual/rust-1.76 )
+       !elibc_glibc? ( dev-lang/rust )
+       amd64? ( >=dev-lang/nasm-2.14 )
+       x86? ( >=dev-lang/nasm-2.14 )
+       pgo? (
+               X? (
+                       sys-devel/gettext
+                       x11-base/xorg-server[xvfb]
+                       x11-apps/xhost
+               )
+               !X? (
+                       || (
+                               gui-wm/tinywl
+                               <gui-libs/wlroots-0.17.3[tinywl(-)]
+                       )
+                       x11-misc/xkeyboard-config
+               )
+       )"
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+       >=app-accessibility/at-spi2-core-2.46.0:2
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/libffi:=
+       >=dev-libs/nss-3.101
+       >=dev-libs/nspr-4.35
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/freetype
+       media-libs/mesa
+       media-video/ffmpeg
+       sys-libs/zlib
+       virtual/freedesktop-icon-theme
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf:2
+       x11-libs/pango
+       x11-libs/pixman
+       dbus? ( sys-apps/dbus )
+       jack? ( virtual/jack )
+       pulseaudio? (
+               || (
+                       media-libs/libpulse
+                       >=media-sound/apulse-0.1.12-r4[sdk]
+               )
+       )
+       libproxy? ( net-libs/libproxy )
+       selinux? ( sec-policy/selinux-mozilla )
+       sndio? ( >=media-sound/sndio-1.8.0-r1 )
+       system-av1? (
+               >=media-libs/dav1d-1.0.0:=
+               >=media-libs/libaom-1.0.0:=
+       )
+       system-harfbuzz? (
+               >=media-gfx/graphite2-1.3.13
+               >=media-libs/harfbuzz-2.8.1:0=
+       )
+       system-icu? ( >=dev-libs/icu-74.1:= )
+       system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= )
+       system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+       system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+       system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
+       system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+       wayland? (
+               >=media-libs/libepoxy-1.5.10-r1
+               x11-libs/gtk+:3[wayland]
+       )
+       wifi? (
+               kernel_linux? (
+                       || (
+                               net-misc/networkmanager
+                               net-misc/connman[networkmanager]
+                       )
+                       sys-apps/dbus
+               )
+       )
+       X? (
+               virtual/opengl
+               x11-libs/cairo[X]
+               x11-libs/gtk+:3[X]
+               x11-libs/libX11
+               x11-libs/libXcomposite
+               x11-libs/libXdamage
+               x11-libs/libXext
+               x11-libs/libXfixes
+               x11-libs/libXrandr
+               x11-libs/libxcb:=
+       )"
+RDEPEND="${COMMON_DEPEND}
+       jack? ( virtual/jack )"
+DEPEND="${COMMON_DEPEND}
+       X? (
+               x11-base/xorg-proto
+               x11-libs/libICE
+               x11-libs/libSM
+       )"
+
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+llvm_check_deps() {
+       if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
+               einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM 
slot ${LLVM_SLOT} ..." >&2
+               return 1
+       fi
+
+       if use clang && ! tc-ld-is-mold ; then
+               if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then
+                       einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot 
use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               fi
+
+               if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then
+                       einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! 
Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               fi
+
+               if use pgo ; then
+                       if ! has_version -b 
"=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+                               einfo 
"=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2
+                               einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." 
>&2
+                               return 1
+                       fi
+               fi
+       fi
+
+       einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+       af ar ast be bg br ca cak cs cy da de dsb
+       el en-CA en-GB en-US es-AR es-ES es-MX et eu
+       fi fr fy-NL ga-IE gd gl he hr hsb hu
+       id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+       pa-IN pl pt-BR pt-PT rm ro ru
+       sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+       # https://bugs.gentoo.org/587334
+       local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+               fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+       )
+
+       local lang xflag
+       for lang in "${MOZ_LANGS[@]}" ; do
+               # en and en_US are handled internally
+               if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+                       continue
+               fi
+
+               # strip region subtag if $lang is in the list
+               if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+                       xflag=${lang%%-*}
+               else
+                       xflag=${lang}
+               fi
+
+               SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+               SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> 
${MOZ_P_DISTFILES}-${lang}.xpi"
+               SRC_URI+=" )"
+               IUSE+=" l10n_${xflag/[_@]/-}"
+       done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -ne 1 ]] ; then
+               die "${FUNCNAME} requires exact one argument"
+       fi
+
+       einfo "Clearing cargo checksums for ${1} ..."
+
+       sed -i \
+               -e 's/\("files":{\)[^}]*/\1/' \
+               "${S}"/third_party/rust/${1}/.cargo-checksum.json || die
+}
+
+moz_install_xpi() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local DESTDIR=${1}
+       shift
+
+       insinto "${DESTDIR}"
+
+       local emid xpi_file xpi_tmp_dir
+       for xpi_file in "${@}" ; do
+               emid=
+               xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+               # Unpack XPI
+               unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+               # Determine extension ID
+               if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+                       emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; 
s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+                       [[ -z "${emid}" ]] && die "failed to determine 
extension id from install.rdf"
+               elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+                       emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' 
"${xpi_tmp_dir}/manifest.json")
+                       [[ -z "${emid}" ]] && die "failed to determine 
extension id from manifest.json"
+               else
+                       die "failed to determine extension id"
+               fi
+
+               einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+               newins "${xpi_file}" "${emid}.xpi"
+       done
+}
+
+mozconfig_add_options_ac() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local reason=${1}
+       shift
+
+       local option
+       for option in ${@} ; do
+               echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+       done
+}
+
+mozconfig_add_options_mk() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local reason=${1}
+       shift
+
+       local option
+       for option in ${@} ; do
+               echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+       done
+}
+
+mozconfig_use_enable() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 1 ]] ; then
+               die "${FUNCNAME} requires at least one arguments"
+       fi
+
+       local flag=$(use_enable "${@}")
+       mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" 
"${flag}"
+}
+
+mozconfig_use_with() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 1 ]] ; then
+               die "${FUNCNAME} requires at least one arguments"
+       fi
+
+       local flag=$(use_with "${@}")
+       mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" 
"${flag}"
+}
+
+virtwl() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+       [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to 
be set; try xdg_environment_reset"
+       tinywl -h >/dev/null || die 'tinywl -h failed'
+
+       local VIRTWL VIRTWL_PID
+       coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo 
$WAYLAND_DISPLAY; read _; kill $PPID'; }
+       local -x WAYLAND_DISPLAY
+       read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+       debug-print "${FUNCNAME}: $@"
+       "$@"
+       local r=$?
+
+       [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+       exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+       return $r
+}
+
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != binary ]] ; then
+               if use pgo ; then
+                       if ! has usersandbox $FEATURES ; then
+                               die "You must enable usersandbox as X server 
can not run as root!"
+                       fi
+               fi
+
+               # Ensure we have enough disk space to compile
+               if use pgo || use lto || use debug ; then
+                       CHECKREQS_DISK_BUILD="13500M"
+               else
+                       CHECKREQS_DISK_BUILD="6600M"
+               fi
+
+               check-reqs_pkg_pretend
+       fi
+}
+
+pkg_setup() {
+       if [[ ${MERGE_TYPE} != binary ]] ; then
+               if use pgo ; then
+                       if ! has userpriv ${FEATURES} ; then
+                               eerror "Building ${PN} with USE=pgo and 
FEATURES=-userpriv is not supported!"
+                       fi
+               fi
+
+               # Ensure we have enough disk space to compile
+               if use pgo || use lto || use debug ; then
+                       CHECKREQS_DISK_BUILD="13500M"
+               else
+                       CHECKREQS_DISK_BUILD="6400M"
+               fi
+
+               check-reqs_pkg_setup
+
+               llvm-r1_pkg_setup
+
+               if use clang && use lto && tc-ld-is-lld ; then
+                       local version_lld=$(ld.lld --version 2>/dev/null | awk 
'{ print $2 }')
+                       [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 
"${version_lld}")
+                       [[ -z ${version_lld} ]] && die "Failed to read ld.lld 
version!"
+
+                       local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep 
-F -- 'LLVM version:' | awk '{ print $3 }')
+                       [[ -n ${version_llvm_rust} ]] && 
version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
+                       [[ -z ${version_llvm_rust} ]] && die "Failed to read 
used LLVM version from rustc!"
+
+                       if ver_test "${version_lld}" -ne "${version_llvm_rust}" 
; then
+                               eerror "Rust is using LLVM version 
${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
+                               eerror "You will be unable to link 
${CATEGORY}/${PN}. To proceed you have the following options:"
+                               eerror "  - Manually switch rust version using 
'eselect rust' to match used LLVM version"
+                               eerror "  - Switch to 
dev-lang/rust[system-llvm] which will guarantee matching version"
+                               eerror "  - Build ${CATEGORY}/${PN} without 
USE=lto"
+                               eerror "  - Rebuild lld with llvm that was used 
to build rust (may need to rebuild the whole "
+                               eerror "    llvm/clang/lld/rust chain depending 
on your @world updates)"
+                               die "LLVM version used by Rust 
(${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
+                       fi
+               fi
+
+               python-any-r1_pkg_setup
+
+               # Avoid PGO profiling problems due to enviroment leakage
+               # These should *always* be cleaned up anyway
+               unset \
+                       DBUS_SESSION_BUS_ADDRESS \
+                       DISPLAY \
+                       ORBIT_SOCKETDIR \
+                       SESSION_MANAGER \
+                       XAUTHORITY \
+                       XDG_CACHE_HOME \
+                       XDG_SESSION_COOKIE
+
+               # Build system is using /proc/self/oom_score_adj, bug #604394
+               addpredict /proc/self/oom_score_adj
+
+               if use pgo ; then
+                       # Update 105.0: "/proc/self/oom_score_adj" isn't enough 
anymore with pgo, but not sure
+                       # whether that's due to better OOM handling by Firefox 
(bmo#1771712), or portage
+                       # (PORTAGE_SCHEDULING_POLICY) update...
+                       addpredict /proc
+
+                       # 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
+}
+
+src_unpack() {
+       local _lp_dir="${WORKDIR}/language_packs"
+       local _src_file
+
+       if [[ ! -d "${_lp_dir}" ]] ; then
+               mkdir "${_lp_dir}" || die
+       fi
+
+       for _src_file in ${A} ; do
+               if [[ ${_src_file} == *.xpi ]]; then
+                       cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die 
"Failed to copy '${_src_file}' to '${_lp_dir}'!"
+               else
+                       unpack ${_src_file}
+               fi
+       done
+}
+
+src_prepare() {
+       if use lto; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+       fi
+
+       # Workaround for bgo#917599
+       if has_version ">=dev-libs/icu-74.1" && use system-icu ; then
+               eapply 
"${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch
+       fi
+       rm -v "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch || 
die
+
+       # Workaround for bgo#915651 on musl
+       if use elibc_glibc ; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+       fi
+
+       eapply "${WORKDIR}/firefox-patches"
+
+       # Allow user to apply any additional patches without modifing ebuild
+       eapply_user
+
+       # Make cargo respect MAKEOPTS
+       export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+       # Workaround for bgo#915651
+       if ! use elibc_glibc ; then
+               if use amd64 ; then
+                       export RUST_TARGET="x86_64-unknown-linux-musl"
+               elif use x86 ; then
+                       export RUST_TARGET="i686-unknown-linux-musl"
+               else
+                       die "Unknown musl chost, please post your rustc -vV 
along with emerge --info on Gentoo's bug #915651"
+               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"
+
+       # Make ICU respect MAKEOPTS
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/intl/icu_sources_data.py || die "Failed sedding 
multiprocessing.cpu_count"
+
+       # Respect MAKEOPTS all around (maybe some find+sed is better)
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/python/mozbuild/mozbuild/base.py || die "Failed sedding 
multiprocessing.cpu_count"
+
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/third_party/libwebrtc/build/toolchain/get_cpu_count.py 
|| die "Failed sedding multiprocessing.cpu_count"
+
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               
"${S}"/third_party/libwebrtc/build/toolchain/get_concurrent_links.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 -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/python/mozbuild/mozbuild/code_analysis/mach_commands.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-gpsd \
+               --disable-install-strip \
+               --disable-legacy-profile-creation \
+               --disable-parental-controls \
+               --disable-strip \
+               --disable-tests \
+               --disable-updater \
+               --disable-valgrind \
+               --disable-wmf \
+               --enable-js-shell \
+               --enable-negotiateauth \
+               --enable-new-pass-manager \
+               --enable-official-branding \
+               --enable-release \
+               --enable-system-ffi \
+               --enable-system-pixman \
+               --enable-system-policies \
+               --host="${CBUILD:-${CHOST}}" \
+               --libdir="${EPREFIX}/usr/$(get_libdir)" \
+               --prefix="${EPREFIX}/usr" \
+               --target="${CHOST}" \
+               --without-ccache \
+               --without-wasm-sandboxed-libraries \
+               --with-intl-api \
+               --with-libclang-path="$(llvm-config --libdir)" \
+               --with-system-nspr \
+               --with-system-nss \
+               --with-system-zlib \
+               --with-toolchain-prefix="${CHOST}-" \
+               --with-unsigned-addon-scopes=app,system \
+               --x-includes="${ESYSROOT}/usr/include" \
+               --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
+
+       # Set update channel
+       local update_channel=release
+       [[ -n ${MOZ_ESR} ]] && update_channel=esr
+       mozconfig_add_options_ac '' --update-channel=${update_channel}
+
+       if ! use x86 ; then
+               mozconfig_add_options_ac '' --enable-rust-simd
+       fi
+
+       # For future keywording: This is currently (97.0) only supported on:
+       # amd64, arm, arm64 & x86.
+       # Might want to flip the logic around if Firefox is to support more 
arches.
+       # bug 833001, bug 903411#c8
+       if use ppc64 || use riscv; then
+               mozconfig_add_options_ac '' --disable-sandbox
+       else
+               mozconfig_add_options_ac '' --enable-sandbox
+       fi
+
+       # Enable JIT on riscv64 explicitly
+       # Can be removed once upstream enable it by default in the future.
+       use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' 
--enable-jit
+
+       if [[ -s "${S}/api-google.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 
}') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+       else
+               einfo "Building without Google API key ..."
+       fi
+
+       if [[ -s "${S}/api-location.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 
}') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-location-service-api-keyfile="${S}/api-location.key"
+       else
+               einfo "Building without Location API key ..."
+       fi
+
+       if [[ -s "${S}/api-mozilla.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 
}') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+       else
+               einfo "Building without Mozilla API key ..."
+       fi
+
+       mozconfig_use_enable rust-extensions thunderbird-rust
+
+       mozconfig_use_with system-av1
+       mozconfig_use_with system-harfbuzz
+       mozconfig_use_with system-harfbuzz system-graphite2
+       mozconfig_use_with system-icu
+       mozconfig_use_with system-jpeg
+       mozconfig_use_with system-libevent
+       mozconfig_use_with system-libvpx
+       mozconfig_use_with system-png
+       mozconfig_use_with system-webp
+
+       if use system-librnp; then
+               mozconfig_add_options_ac "+system-librnp" 
--enable-compile-environment
+               mozconfig_use_with system-librnp
+       else
+               # This controls the backend of the bundled librnp. Choices are 
"botan" and "openssl".
+               # RNP Upstream recommends to use botan. In Gentoo it's 
preferred to use system-librnp.
+               mozconfig_add_options_ac "+bundled librnp backend = botan" 
--with-librnp-backend="botan"
+       fi
+
+       mozconfig_use_enable dbus
+       mozconfig_use_enable libproxy
+
+       use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+       if use hardened ; then
+               mozconfig_add_options_ac "+hardened" --enable-hardening
+               append-ldflags "-Wl,-z,relro -Wl,-z,now"
+
+               # 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
+
+       # LTO is handled via configure
+       filter-lto
+
+       if use lto ; 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
+
+               if use pgo ; then
+                       mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+                       if use clang ; then
+                               # Used in build/pgo/profileserver.py
+                               export LLVM_PROFDATA="llvm-profdata"
+                       fi
+               fi
+       else
+               # Avoid auto-magic on linker
+               if use clang ; then
+                       # lld is upstream's default
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang" --enable-linker=lld
+                       fi
+
+               else
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "linker is set to bfd 
due to USE=-clang" --enable-linker=bfd
+                       fi
+               fi
+       fi
+
+       mozconfig_use_enable debug
+       if use debug ; then
+               mozconfig_add_options_ac '+debug' --disable-optimize
+               mozconfig_add_options_ac '+debug' --enable-jemalloc
+               mozconfig_add_options_ac '+debug' --enable-real-time-tracing
+       else
+               mozconfig_add_options_ac 'Gentoo defaults' 
--disable-real-time-tracing
+
+               if is-flag '-g*' ; then
+                       if use clang ; then
+                               mozconfig_add_options_ac 'from CFLAGS' 
--enable-debug-symbols=$(get-flag '-g*')
+                       else
+                               mozconfig_add_options_ac 'from CFLAGS' 
--enable-debug-symbols
+                       fi
+               else
+                       mozconfig_add_options_ac 'Gentoo default' 
--disable-debug-symbols
+               fi
+
+               if is-flag '-O0' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O0
+               elif is-flag '-O4' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O4
+               elif is-flag '-O3' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O3
+               elif is-flag '-O1' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O1
+               elif is-flag '-Os' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-Os
+               else
+                       mozconfig_add_options_ac "Gentoo default" 
--enable-optimize=-O2
+               fi
+       fi
+
+       # Debug flag was handled via configure
+       filter-flags '-g*'
+
+       # Optimization flag was handled via configure
+       filter-flags '-O*'
+
+       # elf-hack
+       # Filter "-z,pack-relative-relocs" and let the build system handle it 
instead.
+       if use amd64 || use x86 ; then
+               filter-flags "-z,pack-relative-relocs"
+
+               if tc-ld-is-mold ; then
+                       # relr-elf-hack is currently broken with mold, 
bgo#916259
+                       mozconfig_add_options_ac 'disable elf-hack with mold 
linker' --disable-elf-hack
+               else
+                       mozconfig_add_options_ac 'relr elf-hack' 
--enable-elf-hack=relr
+               fi
+       elif use ppc64 || use riscv ; then
+               # '--disable-elf-hack' is not recognized on ppc64/riscv,
+               # see bgo #917049, #930046
+               :;
+       else
+               mozconfig_add_options_ac 'disable elf-hack on non-supported 
arches' --disable-elf-hack
+       fi
+
+       if ! use elibc_glibc; then
+               mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+       fi
+
+       # System-av1 fix
+       use system-av1 && append-ldflags "-Wl,--undefined-version"
+
+       # Allow elfhack to work in combination with unstripped binaries
+       # when they would normally be larger than 2GiB.
+       append-ldflags "-Wl,--compress-debug-sections=zlib"
+
+       # Make revdep-rebuild.sh happy; Also required for musl
+       append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
+
+       # Pass $MAKEOPTS to build system
+       export MOZ_MAKE_FLAGS="${MAKEOPTS}"
+
+       # Use system's Python environment
+       export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+       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 tc-ld-is-mold && use lto; then
+               # increase ulimit with mold+lto, bugs #892641, #907485
+               if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+                       ewarn "Unable to modify ulimits - building with 
mold+lto might fail due to low ulimit -n resources."
+                       ewarn "Please see bugs #892641 & #907485."
+               else
+                       ulimit -n 16384
+               fi
+       fi
+
+       if use pgo; then
+               # Reset and cleanup environment variables used by GNOME/XDG
+               gnome2_environment_reset
+
+               addpredict /root
+
+               if ! use X; then
+                       virtx_cmd=virtwl
+               else
+                       virtx_cmd=virtx
+               fi
+       fi
+
+       if ! use X; then
+               local -x GDK_BACKEND=wayland
+       else
+               local -x GDK_BACKEND=x11
+       fi
+
+       ${virtx_cmd} ./mach build --verbose || die
+}
+
+src_install() {
+       # xpcshell is getting called during install
+       pax-mark m \
+               "${BUILD_DIR}"/dist/bin/xpcshell \
+               "${BUILD_DIR}"/dist/bin/${PN} \
+               "${BUILD_DIR}"/dist/bin/plugin-container
+
+       DESTDIR="${D}" ./mach install || die
+
+       # Upstream cannot ship symlink but we can (bmo#658850)
+       rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+       dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+       # Don't install llvm-symbolizer from sys-devel/llvm package
+       if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+               rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+       fi
+
+       # Install policy (currently only used to disable application updates)
+       insinto "${MOZILLA_FIVE_HOME}/distribution"
+       newins "${FILESDIR}"/distribution.ini distribution.ini
+       newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+       # Install system-wide preferences
+       local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+       insinto "${PREFS_DIR}"
+       newins "${FILESDIR}"/gentoo-default-prefs-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 desktop_filename="${PN}.desktop"
+       local exec_command="${PN}"
+       local icon="${PN}"
+       local use_wayland="false"
+
+       if use wayland ; then
+               use_wayland="true"
+       fi
+
+       cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
+
+       sed -i \
+               -e "s:@NAME@:${app_name}:" \
+               -e "s:@EXEC@:${exec_command}:" \
+               -e "s:@ICON@:${icon}:" \
+               "${WORKDIR}/${PN}.desktop-template" || die
+
+       newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
+
+       rm "${WORKDIR}/${PN}.desktop-template" || die
+
+       # Install wrapper script
+       [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
+       newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
+
+       # Update wrapper
+       sed -i \
+               -e "s:@PREFIX@:${EPREFIX}/usr:" \
+               -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
+               -e "s:@APULSELIB_DIR@:${apulselib}:" \
+               -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
+               "${ED}/usr/bin/${PN}" || die
+}
+
+pkg_preinst() {
+       xdg_pkg_preinst
+
+       # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
+       # does not need to be forced into the LD_LIBRARY_PATH
+       if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+               einfo "APULSE found; Generating library symlinks for sound 
support ..."
+               local lib
+               pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
+               for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
+                       # A quickpkg rolled by hand will grab symlinks as part 
of the package,
+                       # so we need to avoid creating them if they already 
exist.
+                       if [[ ! -L ${lib##*/} ]] ; then
+                               ln -s "${lib}" ${lib##*/} || die
+                       fi
+               done
+               popd &>/dev/null || die
+       fi
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+               elog "Apulse was detected at merge time on this system and so 
it will always be"
+               elog "used for sound.  If you wish to use pulseaudio instead 
please unmerge"
+               elog "media-sound/apulse."
+               elog
+       fi
+
+       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