commit:     680c1461f47c0f66c0cbea085dd1653a4c037533
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu May 15 08:14:04 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu May 15 08:17:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=680c1461

mail-client/thunderbird: add 128.10.1

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

 mail-client/thunderbird/Manifest                   |   65 ++
 .../thunderbird/thunderbird-128.10.1.ebuild        | 1171 ++++++++++++++++++++
 2 files changed, 1236 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index c401a77bb8aa..49bf82c24c81 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -71,6 +71,71 @@ DIST thunderbird-128.10.0esr-vi.xpi 790624 BLAKE2B 
ac19c0c326a73b91ef07ae7eaa95e
 DIST thunderbird-128.10.0esr-zh-CN.xpi 790964 BLAKE2B 
9b94aa2cc524c5b9f41bd4646189106b2339331eb2e41d308fee2bb24f906e0c27eaff856529202ed7205828fc9078744a833c67d55d572b5fcd411579a99aa6
 SHA512 
2852628927c6b86a71def252054438357e43623d9d2844ede6db6d1c07d656a80b1ec42467a779b97c81aa850d4303434ed4f594ad82a7ea0bd1647b93cc031a
 DIST thunderbird-128.10.0esr-zh-TW.xpi 794257 BLAKE2B 
ed5067bdb78da9d4a404d89908fc71a53d2ddf7bf20ab00fe1c8c34d752c660280765c84a3f367d918b25266c1894c580fec623aad7e63338f3fe3e665e6582b
 SHA512 
c92abe6d0e186b134fdbdba934ec25f341eee6ebc6d86f0899f0ad2c9f595ac69a197d0b18ca92cf309c2b604be672fdfeef55fb01454fd59e40874d751528cb
 DIST thunderbird-128.10.0esr.source.tar.xz 681806200 BLAKE2B 
48aabea18211e80f679075e902ffabb7fe73b04b7903725ce45f7b43ecbfabf4298e33b9978b5601bf5f96ecbb3335c8c46a550a3ceb23de521f089f3151a563
 SHA512 
b02582ea4fa0297a06d30eda1555bbf3ed79ae7a35a8993f2a70b0ec84af28a4d084cd7ebe1c73676e689ff9366e779cc5ef67a197638949bf232a40b740d1b6
+DIST thunderbird-128.10.1esr-af.xpi 534915 BLAKE2B 
a9bf637027672d7cfed377a8447cb9cf679f4d57439f663e5f8a09f589b75b32180f2bc9fc7a0d972e9c1157fd96b8f56f87afd5250d4d6e1d35f7887886add0
 SHA512 
bddca968f0864eb6b8feea8547a4552f12ab42b076b593aaed075c0c7a6214240f1767090e17333800929329b3779954edbbc420588269e06817d46b14733146
+DIST thunderbird-128.10.1esr-ar.xpi 686463 BLAKE2B 
33b2c690e058a1b1c470f0375e37463eed9623f69136c26d6186733b28b4914e8f909d4d7dea20b57e6b837298318b6ccb3416f9bb226b1b55485d06122eaa36
 SHA512 
887db2fe338f7e7ae79dc05c1afc8bfd7f7bce20cc644cbfb7d7e645fdadc0975aeab638ddc415f2f4b48ec9e7eb60737878f1f2a9a858663a793303a3f4300f
+DIST thunderbird-128.10.1esr-ast.xpi 574780 BLAKE2B 
2a99cab2c52577f88c226bfb2933502510ad06c68fb4e8f6d6b9f59e8d210a25387d423269cf1fcedc67af7209995da77eb6d9a376137e04fde6dcb56699d930
 SHA512 
38fc3cd80ee2394364bc1c76e1b7e157b2b082f65208a4b5e2e3b4afdadac230d13866cc8cdce0c8570e1cccbc0377f856a1c324df8e561bec478293786d03ec
+DIST thunderbird-128.10.1esr-be.xpi 781613 BLAKE2B 
71126fc0d55666a07fc9e20f4aa95d743e156b8fe65b3fe003790f428ff3166348cc0f3023b9b73e5e27be0ac83b33349c28014dbcd3fa36ef454c7802ab02c4
 SHA512 
c50e43b150e28e5c86292cb1b59c7277dfe1321cf123066c243fb63bbf764d9cad8e3ecb651f7c18c1436fbbb09bd0638918c5a1d209816756ca88e5a957c232
+DIST thunderbird-128.10.1esr-bg.xpi 814009 BLAKE2B 
804f619c61d6d21a335bfdb167c282c81fd1177be12434e82d5b42e5c6506248de60191a0759089bbe0ca205b9ca19eca9351d19cc4ca560f1b660d699098109
 SHA512 
3abd49ae66ca3287d2f9d2f3c31935a976524f7bd99078f11c7b54f78553bab96d3dcd52acf5df86a346a63ed5459ee123b6268d8d8db62e552d1fe2686cc681
+DIST thunderbird-128.10.1esr-br.xpi 650140 BLAKE2B 
ef7fa42d3d73c325f17d0bea974a3b8ce4bb64fc61827b1ababdc89b29ee32a9d17435c0f8203d4ea29b829822a9351b3e490affdd1b6e164e42ba9a9f7ca546
 SHA512 
8de32519a17c2d72c011d08a2984111779428b1348809395f6e3b7fcdacdc39973fb67fbc8f7f1b5d99914684573a542e08e8cd517e1762c5e9571052f990e3d
+DIST thunderbird-128.10.1esr-ca.xpi 704674 BLAKE2B 
292451dae4359726191dce1aa35cd4e51d6c80ffe3a29ae7f6a8d3ac4d8bb9f00bbea1aa5e6729f38681d908c35fe6abf45e4297b0b083cd2eacb83e54b04418
 SHA512 
eec5aff1b0b432f40246add215cd8ab63beb5ba2a8e93fa0f99e230dcb913901356a12eb6cca2c0c1948217bda1619c09647a13ec58336abbb6b0a83ca676cc5
+DIST thunderbird-128.10.1esr-cak.xpi 669096 BLAKE2B 
e8f8e397bde9ab76ebf151912cd4ec2bbc35450d14a8bf084a0754cfca3906f4123a1a99ac4f30b1d32b1d92ccfabd306ef047672a75914c64603a88506bf152
 SHA512 
84265d9725a0191078d6b94f14d45213ece0747582029a920898cf20e3e16f0869a2495c3a0348164ebb69ef65a6b405e9636d68491ccce0b9ef2067dad49810
+DIST thunderbird-128.10.1esr-cs.xpi 789854 BLAKE2B 
347b64a1027a63b457e33f04c9414a358d83f1d83a628ea1585111a75f0d8ea72ee5f63995531abba75bfed41e20565e7b9c2e625d5b3ae9482fd302027a32ea
 SHA512 
e209593475aa2233f0cf3b5ac95586d1abdbbc2ae00bd28587e10113a50969ee41a7976204b49f1d4b6ead4ab719c50bc28c98f240cca467ab08f6407af2d962
+DIST thunderbird-128.10.1esr-cy.xpi 753577 BLAKE2B 
89b2e02bf536881c7fb7adb7567ccb2a00e16ff6295106f360322a3bf3c5c3026e7ed29cf5a2694b60e4dbec32b91da5a586ad8af28ed86ac1f7d4efcbe0379f
 SHA512 
50e8a5df6b05ade13970d1c6d67696c5e67d90e0684fbaa3c56ab5bbff36508bd84b3b6ea6a45ff8b71f793adfbc9d6d78cb1c4dbaaba90c25dfd95086830de2
+DIST thunderbird-128.10.1esr-da.xpi 738603 BLAKE2B 
7ff19ee7ea04e1e10f9929384f19fafa2fa22f9bcf0504cab2602540b302ddc48e90b608f0d86bdeb44f25b25ca06643f139c1ea1dae8dfa30087cfc025aad2c
 SHA512 
bc078cff2473e01af11bfa536dbceae48a1c384e56ab1b647079bdd078c14e74b4a16af4a02e5951f74942d7bdaa4e07903230a8dcad0a7200b6e202e242cf1f
+DIST thunderbird-128.10.1esr-de.xpi 771424 BLAKE2B 
569aa84ce143a312e4d0285524e8bcf91bb348afc63aa27fe255e9af3d45f99d8304f4435a926c0540e4974a1059e5833901b9bca35ca7d5ba250467c3c6b9fa
 SHA512 
98eba7c3a02c7eb8dc11ed20c4c1a5833478e3264df03b12ba961b4c857fadf44e3c6fb097cf4561101f587f37aadf9f26aa18e5795b59b144c127333db749ef
+DIST thunderbird-128.10.1esr-dsb.xpi 787499 BLAKE2B 
478c403ac0e53844f980a963b48fe20dbed52911e323956076e8c69e9d2bb68fd1644369df1a964a4bf45d7b0856a91372abde59fc9b631d201be817015d7429
 SHA512 
d55b4f5e0cd0b1ff57e3b734ba25948e9cd37c08de53712caf345a34e81adcfeaa4cdc1af499b8c52deacbf82a43576d64bd6570534ef3137a123fadca992377
+DIST thunderbird-128.10.1esr-el.xpi 892795 BLAKE2B 
d1abddf8124efcbb543488dd8b0f6c26a14b522c69769ae5c2cd4190505e93f261f9fadb06c55f1ff1dab004eb90eb9ba2b9208fa0b59a414544fb09a8014893
 SHA512 
bb616c78fb1de16e0e86c7fc7c62cdb4136bd95fe93e56ca13ac499fca774792397750ab2cd15c33f5c1e8b207cddd540ae6d0beda179da83c6c6137969a7208
+DIST thunderbird-128.10.1esr-en-CA.xpi 705371 BLAKE2B 
acb14af2b991a731281156bb5d3cd8cf1b4d94ed625e31b5782a09ed2fd9197e808d90d0ec78c4b840f10c2de35095f4b41d19e73967970b41643f9c3af0db1d
 SHA512 
1a3d4200ad0e401217274c49e582a6470c277f9cc5d56119b98228e8a4e9ed146e6043bed076b1fdfc416802cff49b16c17d91b086b2e1a289e14d129ba3f6b1
+DIST thunderbird-128.10.1esr-en-GB.xpi 705109 BLAKE2B 
bcf644871f241312028ebd1ceaab93b838ba8bb6377c0cc3a8fcb657d2b9a7731c038c35b9fd5bb90577e2c3b4bc8c94f15b067824aa58af598a8357dfcb08bd
 SHA512 
44c1a45158682691d8b6eb7efeebc862208baefc07618c4e471734f9f680bc5285ec6e1496ae77f92371e3c0e26da5c754a0515917ca5daa5ff8a6320d0a7aef
+DIST thunderbird-128.10.1esr-es-AR.xpi 760992 BLAKE2B 
ed92b2076092a5f5d8cdad1a9c45a98f66a75c94c064c4c4a7c7bd3edf9e83b7f333a6c75b98f25974f448de4a99120d3bedffed544e750d8e4bae56498a7e1e
 SHA512 
33d4c56bc48c6b9476c1eada1dbe78932115fd58cd9400b3e9e7142af76f7767296bb3c44e52e0df277793519b9584caf42f8d6cb5f02378e737935b57a79c11
+DIST thunderbird-128.10.1esr-es-ES.xpi 761588 BLAKE2B 
b0ed883753820cf299aa13b7d24d3fed5dd4f78077e90e5e7e1f5362b631515b947f107a9c4a6d2f5023ad2cac909dffc76c52416793aa7d8e82880449da6c2e
 SHA512 
ddbf29e3862706f3d83135f4f2129c6846b43bf370c9cb208e77389f7f3afda3ffbc8efcae95ddaa1dbeae141114b436c303d307aa76a5b9a902af95e50540eb
+DIST thunderbird-128.10.1esr-es-MX.xpi 756970 BLAKE2B 
2eb6063dac30d2385f26cf248b2f59da4aae3fa97253c42fd89ff11b4553378ef61c9a5033a1f9075cd77e039b188a6517fe8d765feb8cd231e3177b8e24c7bc
 SHA512 
07520db24ba1311a407e0fa7516446289483802e8ba54bc5961c1665ba931cef7aeaf8c35cca976418fec7916a540b436cdab6bb207fc31e00799dd52ce56770
+DIST thunderbird-128.10.1esr-et.xpi 692378 BLAKE2B 
1394c813d2440ce5156348ba69dd04120b85e44f528ce4bc98dfa2772d39563df9d6d8b2c886e7ee0b988aca33586df3e4354aca87bfc9e88a3c523dcadc1d32
 SHA512 
71ee67cc67e5386473cb9ff7b6cb66555159e3bbf35a1db5c3b8d1008162e9535d6cbe87221abece09db40cc96c2f6cf2c16817a255745782b723dbcc2b0dcca
+DIST thunderbird-128.10.1esr-eu.xpi 737441 BLAKE2B 
64400078e3f827cf78825a30d1f72434a333030b8fc9b3df68d2f9c93e6045061c0277e80c24d887bef109c311096d9b049f854473945268f475b4eaa0e51104
 SHA512 
fdb7f3192b5ff8f548f15bfef7d9c5b59030815c3ce31eaa6f86a91f1c3674cdcde6515a84db33e3a6d7593e505a259dff70f67cde75fdac3aa537a22793d02c
+DIST thunderbird-128.10.1esr-fi.xpi 735348 BLAKE2B 
e7e85bd73fb3ab46b105698cd534b0f271c3299b65e64f6dd7366b26ba4ced235e1e2524081688557a2afe6ee0b26871903c838537c49f0c24d2ed66f15808ae
 SHA512 
fa916946aeea97dd3fcb26b420673edc421fcde717c6f1a42bb2ccfd92bac8cf9f6ffc21fd8bf74d181c8a480c39ff20208776f7e49afcdcb9dc91d68d8353d9
+DIST thunderbird-128.10.1esr-fr.xpi 775201 BLAKE2B 
0f72b13d1ca1ec52949611d17b5509e2603a4e1e1881203a5fd572ab3e56705edc98fa7b7fed4f55005b3e9ed3d325b98e343f5ed2e15c0e9dfe080c2eee226c
 SHA512 
247cf77308faaf235f3290feb2bf1713065719b6397bd58d765743645a17747ea474b048cad4000ddfd4e23134963b7cc10b218f7295f58a06a33eab63558fe2
+DIST thunderbird-128.10.1esr-fy-NL.xpi 756477 BLAKE2B 
ed565e8c263a3e8f8969895bc9eede1340255f3f8ef8e7f89f0808bc04056701e21f4ef127324038db8161cfe636a7d95d38b36b162b05afe1baa2fd6748b84a
 SHA512 
d12ee86b6de95f59ef0d1bc05c0e474bc05285e44d20d88fb89d4cfe9e03c881633b1d56796477ad1e242624b7a26e087f504becce8d61294e5026e993a231ba
+DIST thunderbird-128.10.1esr-ga-IE.xpi 614302 BLAKE2B 
df0874091261adb1a3b4b51e884db60a8e83ce6935950b63b39badb7fe456fff2d493ed56dc770a4613bf84859b92c6592b751abca807db9ffbfa4d19ae13991
 SHA512 
3ec22ba6b97116f24b2930df9321f21625ef5e2939ce49df81d12413b63a8872de9599ce7b2469d4010c551c787c8d00f8f5944dc092a5e654de77f41288d110
+DIST thunderbird-128.10.1esr-gd.xpi 723347 BLAKE2B 
6e4994c893782889fa758c11684b292771a9b83b9607bc7b6ea66335b0aa5a2aa9b2d1dac0985efbfa907916a390753048e6ce282c79e41c8fc1887d658a96de
 SHA512 
024daf10fe34e4898d68f5f14fada4c29e3171f2ca0f5e3cacf298e6014fc92b4ea0b8b16f63d6aadd9a53fc75df5549d0c82ae7c4e1029c5f9394d5c08424f3
+DIST thunderbird-128.10.1esr-gl.xpi 738666 BLAKE2B 
79b191c5f94701e16f407c012c29614c7d4fae8a2d541f1bf5ff18fbbcd7331c2c1b2270be9d1acf4d33ca935ab7cc807d327a56e7784777a27b3ecfe40aa483
 SHA512 
366acf775dc0edbcc353915deee42dd99db0f042d63c22b71d2cb60748c3a888a813905099a11b0f337c291498897db0db662bd097f6f2183c75e6fe1c1c5db7
+DIST thunderbird-128.10.1esr-he.xpi 697002 BLAKE2B 
7003fd1acba79818888dfe09bfca52c2f8992a1d09aee52487271eed18bb3d36beea8a4e4c884e99db0b78eaea9b14a1020f2a620c75c42a0a2ba92fc4910551
 SHA512 
cb1d4a02f662ef7f79c8c9ef46002959a9d004f35de8198cd46edbb8deae70b64698098a0a2de580179d7a2e007893eb6496cfe0d27dda63ada404c09008116c
+DIST thunderbird-128.10.1esr-hr.xpi 724041 BLAKE2B 
c9726dcc8c6d95c5b021ddfd3d17771806e70bd7abbc8cbd2e2a06246fad56ecac357fa4990ba1d5244010daab102139ae0c133098461605b5c7e82c8d00cba2
 SHA512 
0eae142886c2766e0079f884d7a87b4f288746b538de1650405cd434f4d16260467b9f50a0c9c3da14304de423412cd3ed17245f09558a2954cbb2d20187e038
+DIST thunderbird-128.10.1esr-hsb.xpi 784038 BLAKE2B 
73db72083168b295f112b9d0a0b361677f788bb0af693d4f5d5d954232f2a8968ddf8d135a716818b105ac75e9376620aa7a5ef81cd0262f430d8e9f9874e927
 SHA512 
08b17df3d9207d730eecf2c56477efcabfabb57b64694732370d8a8d8b7a3d37c4c5c89f6ee2ffcf73b508e536144178ebfc1168f8dbdd47ff17d168a2b1ee4b
+DIST thunderbird-128.10.1esr-hu.xpi 787702 BLAKE2B 
48ae30167e54719ccfed444e5f8a61dae7a83e268bbb053fad6844aa72da58f20c1d40170d28af76fcece26e9998bb84665fc89659d7fd41f32895f9cb1df020
 SHA512 
87b065fb9ec85e8386050d591abf1e0e5e5a2331889400530eebcf7fd3efb5f5b94673015dcdd6d89d4ceede6ac6b6be2a342c97edefbe524674cb8d16b3408c
+DIST thunderbird-128.10.1esr-id.xpi 721181 BLAKE2B 
44a1725c88b0baaf38b62da1051d5df088326d10ec8a70473b15d06565388f4a0d67668cf33c2f6f42e378c413415c18be5257c5d4bd3ceb41e024c1f2287830
 SHA512 
d1e378d0aae16c13525fce5397f5b7cfb0101af8e295a4386eeceedc2dfafd45f71499064de86d649dc7d41c4830dbdeea2381360caa6308c6e8b14483ed2f67
+DIST thunderbird-128.10.1esr-is.xpi 750937 BLAKE2B 
95cfc4b744d513cc58e29a3073f3ce94cfdad50a80877719de8a62c16f9c49a070909c0b0498ca5e3663eeced8be4b36c99a8d914a1bdecf8a6a166f9324876d
 SHA512 
0b3a548d03c98f00b2b25348b43ca4ff8feff776e3ec00ef2430519d3fe1ae75cb060575fe349869ca5c5a9d6027b08c15b7556e3199f632e978d9c60a961698
+DIST thunderbird-128.10.1esr-it.xpi 752078 BLAKE2B 
b5da2b7a70cc3b84473169fa8ccbb903df2b45f9f3eb04a6680fd353f9a13f97853018b98eb97201d3a7842afdf0412f53cdc73a145562a40668b4e8da7e4f60
 SHA512 
2b84380949ca5400e1fa91c06efd9b5a337a7d3552388095bb64ad0051b20ce42d81232833074a54e735f4a90541dc9e1e76f40fb12ddfd1fbabefecd194e588
+DIST thunderbird-128.10.1esr-ja.xpi 822946 BLAKE2B 
59f26f93fd71989e0e3a6b1f901cad0a1fba079e1f1eaa05ade5778a852073231bb029780efa751a9307a3f3288810ff6949283cf7c310b5ea41cf34a99909ff
 SHA512 
1d69eb666323b0ae35582c29a98f3dff2c307a5bf2061a7c0b39293697b0e347655ab679a370ff0324e254095b802e68e0835cdc3a02769f9375bac0a494f8a5
+DIST thunderbird-128.10.1esr-ka.xpi 814156 BLAKE2B 
2b869e59ccf844edad5ddc512ebcad2346a0c7044ecf53d8a14e727076263f0cb397e367cf875e6a100e7f947be3765265cd9324c9f04d7f55206d9b9babddb0
 SHA512 
d850572644ba417f539ddde7612d32a2d8729c8c7ecbe9e235a06ac0cb70695d6a226ad8b331739b63b3314f2a9673103ccb644b6c8b185e715184ed744fc13c
+DIST thunderbird-128.10.1esr-kab.xpi 729663 BLAKE2B 
432ca594fe85ae9fbb471279a202758326aae538e6f35ba8a5a3f3b3f4660ed00beccb52b75e45d99bd95477037cdd9820e7dc5fdc9b74f068419289e28fe810
 SHA512 
d0406719ea7fe1d1110532e720e09c0b943815c764809be3c35d9b24c4dc72702c6a459bb2ba8900888551c3b3a50e2b7b837e800efb396db606a07eaffcae5c
+DIST thunderbird-128.10.1esr-kk.xpi 856121 BLAKE2B 
a437780873e7e8db03c91058c485501b8e09ad64cde2db1cd71f30e5edb5cc6079209278f0d709b6c1111fafc03623e451e402f0bd35b2c9160e5592af8f5984
 SHA512 
248e61d0752f601d39e3738a7e50ebeadff54358a85be198a2f29d2162871ed89badd878afd060fbe1aa2e2eb7ff8b8760f289b2f3f706c5c077878cb9753ac7
+DIST thunderbird-128.10.1esr-ko.xpi 790141 BLAKE2B 
c53b85d857921b75b9fc5c9442d0a87b5f9716f39f76b5538eddaa9b503ca8e1d735e8883263589d164dc4b60440179af8feafbe7828ef75931ae233a1217e54
 SHA512 
64969b9e8f5f9aee41c84b4b9b9ffd26797394db331254eff1289f7a1c267aa88234e3ffc7c05f824d6579a412625be6135e8a61858f7bd6a1fe1420658f7114
+DIST thunderbird-128.10.1esr-lt.xpi 696751 BLAKE2B 
2cecdf21e6521738f450c9d4d4717b07cfe13573f06d66046b3617a491a667ae6e078601be86e4eb5901c6a714cdafa2cc8b488c4993f7a49e427120f7da81be
 SHA512 
a73b4550d08dbca621a2d6b9d093f89ffab117cc86aeed27f3b30082d3d463693afd6aaa78bcb4455f49a03f362210f885990b78b3700ab9234a6bb3795f077e
+DIST thunderbird-128.10.1esr-lv.xpi 626198 BLAKE2B 
78d0e092030186cdccb88d2bbe9e40ecd7577cc581ef5eb77d199853a416d07d130e935713d0ddbe19af06886b8fa7a6bc0620fd61b57676881b0928d551c674
 SHA512 
293e9eba7faee1339c977794cd6d7fec165de9f45523be9f7737abe5a018a5a1f4a5c72d535846be072918296f9c39c3b42cfb7bfed9bed3843591cad9f5f045
+DIST thunderbird-128.10.1esr-ms.xpi 586658 BLAKE2B 
7d636b6ef044ade1fe35468f833eca67643fb4e6edaee1cdd8f9882ca93af214fe0c5a0ae1e5af73b863eac374f7c9ee69dde5df0c14930a98644eb2c0029f27
 SHA512 
6769994e280921ce04a5b5bc644ce04a5907279325b34a2711f53a1ce101ab87b370d88012413194f4e0bf594e4de6d2ce5147cc519a97550728e0c0e09488a2
+DIST thunderbird-128.10.1esr-nb-NO.xpi 700495 BLAKE2B 
7d5f7717ef86bb9ce1d50c902b525170fee828cc77a09860145a3250e9086914d65e20f6b758bad5616f7ddf74cbb32b6ea23183cf3d5d043ed99d944f085b85
 SHA512 
8a857a4cff40300475c68647a95eb1b6eaf53e613dce83abe4a7ef31486ad6d3ef8bbc22a3e0ef17327efe53ce3cef33c10fb232e09aefaacab086785994c3d1
+DIST thunderbird-128.10.1esr-nl.xpi 746759 BLAKE2B 
6d3b20bfcd86bcc7db4f7741988d93b58eb99afd5b6c16c333d5342ee365815e3e3dafdf5c367d85ec09fd13b24f396735f0f58b92444535c319af7b7fd69c42
 SHA512 
33bf855cf862c6937590aedcd54b68ef4e20a38488bdc708dd5926e0efb2872237422b27c6cd8d88f039b72d37b51454919a76812cf5682e182f77f255175e0f
+DIST thunderbird-128.10.1esr-nn-NO.xpi 726227 BLAKE2B 
fd3c5c3f6ea73c40c78aa9849bbcf95f3fd9a704d761145da2ffc03eef45c754794391ec7fbed07132fd5033c9a2ef3c40bbe4c4845aaebe9bac127e81883ef6
 SHA512 
9c3ba74d77c32e990555799aee45cacc0d67bb061ebd06b4dadc6afaf77818604052628684e50e129683816211700b41d0b832362d39235c1af555a3fdc69c39
+DIST thunderbird-128.10.1esr-pa-IN.xpi 687934 BLAKE2B 
740c6ba58d51ef6f745a37a52f996c998ce8a9171e999328e12db5125d628078fb4adb0dcfd39e173b2359b1f63e2e301dfef2abf48391163b6127f5b9b1358e
 SHA512 
6d43639d99e97fefb9bef9b0fcfd315bbd4b265ac2e105e033c2b571049da3537e29da3f9abb04e155286a3c2db7677e3512eaf11728f11c1c51ccbf1d4f1927
+DIST thunderbird-128.10.1esr-pl.xpi 785524 BLAKE2B 
d137578a2e2aa849a5fc55b9462b84c0f40bc63c09abb5c61eaca3b7b569dfa1243dc3d73ebb35624794f75b740450ea9ec8f30c27b303861833d2da5931b9f7
 SHA512 
124e367435a6235595cfa6b52f3d50ff4a89bb8d92c38ebcbddca6b5c36a292d34026e1a7bd881f2bb3d988e4e47abba1c8609b8dfb7f89448d3354eb202f0cd
+DIST thunderbird-128.10.1esr-pt-BR.xpi 754955 BLAKE2B 
a28113a986b3037f6222888af78be223403367cc5e0f7416645895d6848a7af45489ad95f9da7777d1074f86e9e0851886386084111e637fb86074805727e078
 SHA512 
17c117266d2c85922b8043583573fb21081253a701835015d0940fb173570e044dccdc745c0c1282a255d6bc87ed94e38056b893dd94b227b3fdc847a7889c97
+DIST thunderbird-128.10.1esr-pt-PT.xpi 747656 BLAKE2B 
ab739ec8e7f345f09d66d05d69fed9a63b31b879334e716ee1e1bd187048f984ffd20f01881f8ff495db876d44cbab910f2999e60afd34dbab24aea7389077c2
 SHA512 
516309332580e75eef19291db3edc1a4ec2946ed7f6df58bdeb15152ae9fce9f28d74bef472ac97ceee34e8075c7366064f1ba7a35407be0a4d506d9f50e7da8
+DIST thunderbird-128.10.1esr-rm.xpi 750658 BLAKE2B 
b0123610dab4fd6fae1743e39ddc53bb054cf5f0841f5851df4a1aec79e4024b1b2d671ace21f258b1ee1ccccc0464be4f8cbab4c834da52e288815f76ea82bc
 SHA512 
a8852081498a4015bf47aa0e02debae8ec44b3f68da59007c080a28537daebed87deef08725f6b3572926f903f2c264e7de510c8254f9c150e612b2ef5840c6c
+DIST thunderbird-128.10.1esr-ro.xpi 666555 BLAKE2B 
470fa3ca4dde379fa53ef38eec57445c70526440f63c798dd3057c42669b980046d26ffbc8234ce905f073c57380dde598c5b1170e071d5cb907e331611a21b6
 SHA512 
0a198a8b7e01e8bf7595fd3f8ed52e6e368d04935cfff3fdc050bd836c3d5331863b71e7e219c6446190cdf9691496d6d9e4cb4a7b468693de874c3a4db905b1
+DIST thunderbird-128.10.1esr-ru.xpi 875880 BLAKE2B 
65331175ac89a21f003bd772aea5b54be130a62eba833dfd58078b8a209d09d28b039f80aa4f404e237240ba0edec01ce66776275204819d030511fb368d080f
 SHA512 
af7347ccffb0e7089d830024a1cebb0a410ce7e583409ffcf842c3fe35ee2ce6e32ab815c4935595798b52593bbc018eb452a40df2ba051af63f45f1e647f044
+DIST thunderbird-128.10.1esr-sk.xpi 789278 BLAKE2B 
9bb67de4e212758b3fdd123294fca49c3b4e935ad02120d4be17f675ac13d4420451e2dadb6a266a3b70ca5f1fe6166fada87641c5cb1cde59a1199dcc37439f
 SHA512 
be6732e958468f5e1112c492849c7d11ec4ee26f8d547f8ffc9149228814910cea62f5720c418ea3b0276c2748da4c7bd584afafe6f447cbe7cb83f15411079c
+DIST thunderbird-128.10.1esr-sl.xpi 750623 BLAKE2B 
7109a5c6b5ceb7d50a6957489ff734813e0cdf8064c2eaa437ed3153621f176a4d308f414ef7edfd20ab804505de433e72deb7ffefdd5b58ed6564c8b1235290
 SHA512 
b396d629214e78cd10bb15366352677165698e03f8307472fb63b04e9e763c485b58e43a5b91a31859395b98d17b7dc0fb31dda6209cb017439a7cef6054b0aa
+DIST thunderbird-128.10.1esr-sq.xpi 773102 BLAKE2B 
3e3ec7fad130795719ff5dfbf2bbe3d363c445417c307c80812dd0784f5e6a4c7d2648ccf1a34a7c8c2fc211d17163f61949e22268ab116acd462b9b7b07993e
 SHA512 
6edbac0b81eeb42914a9d355faee9abdf18d958415c3f707160cf6ced7f77bb6c0c298f5466e1dcee77ffb8b4d3fff87f2a3136bcb70fca7ee2543691b3e7dd1
+DIST thunderbird-128.10.1esr-sr.xpi 766345 BLAKE2B 
6fa81b9b4a2ef6db0ed31482332ff344e0426a7a5a41a000ec82b3663ca78da76af96205e9e523b37a0d075b4d16e1edf380f89ccebaafb40f4c64407be78471
 SHA512 
2bdace2ae0efaa3644a176b68e3695350f14adc4ec7191835a18391ea91850cf38201e5bc708c2160016648137c88e44fcbf0cbc9208141fdcb39562a051920c
+DIST thunderbird-128.10.1esr-sv-SE.xpi 750540 BLAKE2B 
59ba61e5ff0eaf8737fbf7b5134d100220f3a146391a2d7d4efd376f4a7a6bbe56e8bb2571cfc2b4bfd5186294434ec2f30a5529a1187a4b746d6177aba19dc4
 SHA512 
c7454d17193b3d8b40d8a6419ea3ee502f8e8c80d1121f4b5ad4356601a8480e32cad50839431acfb51fb69e6b9b4d9934ec2e71abf4a392d428e3fe33d1cd9b
+DIST thunderbird-128.10.1esr-th.xpi 846503 BLAKE2B 
d535d1c774a484f90943b74fc7792c8a24c465f24eefc5c3d60a5767974b9a19dd845a15e66c45ef5aec09acf65508b21043b376c65fc960a35398d3997e1e32
 SHA512 
e4d7b3e8e47901827f0fb918c3c6a23309074904928ebb38961b9f0aee9520b80fe2871d67d88959e5f0cc305b7523712ddaa8f7a6a9b7d9d3322a086a96e1fe
+DIST thunderbird-128.10.1esr-tr.xpi 762700 BLAKE2B 
e67ab2c6709bec5ba255d038ff7eeccacb026b36228c3aaec9773ad3f3b1bab23a8636a059218fef004374f0125389d07bfb8695b6a6c36d5e83fb76e75ac21f
 SHA512 
3a3b998580251cd07d56ee2f180acdb823829a5a172c82a8bb5663e682d822fb7cbc167cf3fd9bdb3e80febe339fdb6b5ce200146837013c4f85771fd4b92e7e
+DIST thunderbird-128.10.1esr-uk.xpi 864133 BLAKE2B 
b34624dcbc64494ea5b9600b0af90593e51b3f7d8ba0624df38066c0ea4d692492d1c492336734ba5eaa8be975dc3b0c84053d2f0ab3332950ee29edd6165110
 SHA512 
637d8f64a482b22548d140b18c4d1f504bfbcee726871d0de439cd02a4a2b92f5c56f7658d50b969788f7fbe3e03768e3da440f385bcf98ae7eba276a5534f93
+DIST thunderbird-128.10.1esr-uz.xpi 589341 BLAKE2B 
023c6eefa80c0fba43ddaa091041ea91600b73bf3dae04ce43b4ece9c5353968069e474ba4c1f1a230e1e3b86d7263279c2e01c7e17910c2ebfa791435893f35
 SHA512 
d0260f75caf025fce0c2ccdb2d22f6cdd7c11f64bcf2a279e5e9e0ffc944545aa501fb14aae7129ec4a809e08270e1502982087bffd543c51f156ff94c3e8737
+DIST thunderbird-128.10.1esr-vi.xpi 790627 BLAKE2B 
191d11d802dc6cb6cb96f9cf1f2e9e15f9fb18084c51248756a1fdda790bca2c6a9afcb7f83742a6ae90c01fb77b436da4dad061fc252d91de7c57f54035ccd3
 SHA512 
60ef8f68c5bf60d43e6a53b9eb4859e8a5ddfb4d5fdca2d1b48045d377bcdd6aa9dba687e7a1bcd2b9e326cf097c3b0bfb20155f4d744d1e58867b9ca2b005e1
+DIST thunderbird-128.10.1esr-zh-CN.xpi 790965 BLAKE2B 
c0b33d73490a48ec8650a9177e05bbf0c686b65213e2244e6f94315941eb648f89ce9bfd6225b976f8e0e19a30d643da21b6a48468229eed889ba105c53d9e46
 SHA512 
abeae6372c7a7587f6006298dc1de002f3c61d62690fd4ee1bf98e113cabefffc4931aaeddf9efa094a2c35f83ef0587dd0d2f9606e6e9f0360d9093a8d207cf
+DIST thunderbird-128.10.1esr-zh-TW.xpi 794258 BLAKE2B 
293a275cb1a1cecc205648a64f07d129af6800d26de8370cc9af311facd54fdf6ea8457c84264eb8982f6e16470ee3d018ac89bc19603c4390a4b443c75f9b9b
 SHA512 
7560191fbfc4c683a8d6c47e24607308f4a949cf659c3aa6fd90d6bfcc5f9b116bfb58359dc31327c164caadcd8e1e289fc2919509802861406e874135bd7f2e
+DIST thunderbird-128.10.1esr.source.tar.xz 677156592 BLAKE2B 
c7861611d953b535e5f62e61935bc47c74508943b2bb2a5a9d401f8702e8ccabf8600c243c83595578c29d2d0ab376563559ea2b3049fb886b8a63577dab8f71
 SHA512 
09b54450928c6e0d948cd79a56c28bdb5fe5a81d7c710470a1ec195dd295c433b872682102c74930f19b1184391c30115293dadcd7dc8a08ae8baeb12770ef9c
 DIST thunderbird-128.9.0esr-af.xpi 534911 BLAKE2B 
5a1c56938294faa34f0977d2aff750bee6be148ba3bf461f3fcfdd923633ee6af4deafb9d8be1135981bd7ce5a4cb3cb0304e98d9c776559ba80ee562db6159d
 SHA512 
da3da34b7e99271dad924db5ae578838662c70dfb34b0470a0084ed46b60d852929d187b258dec4298958a05f792b6e7598910100c70087258f9f28501e1ffa4
 DIST thunderbird-128.9.0esr-ar.xpi 686460 BLAKE2B 
1d2760c20e419bb64637368e1eee7f589ea8a1be61715f245fde35ddc36205e5de41bccf1de76cf9f44122b428f0ebfbd8b8054ddfd2bc258e3e05480756c2c5
 SHA512 
48c304691c1caab6e782b1ed085d13cc78df4ccfe1ff5dece8ea8a4b34f731557888a049ebd5d66c11a2d9249d1d22e2eda9b4783fd9ceb598f07012570a5cb9
 DIST thunderbird-128.9.0esr-ast.xpi 574778 BLAKE2B 
71d2e27bc6e4b9af5cce9a5c5d1220243ca4b84b39c07202b2e81d00a99a4f40cb4c09fad9c6eb9da843e7f8866dbff16818ba20d04f7581d805152be66a8194
 SHA512 
96ba88bb6a1eb7ce04cb739037504d6d27c46c8996252baee069b18af939850d0f55e062da49086b4da122a2f3ff8a2f7ede126d05c26265c3d6b3f9adc622b0

diff --git a/mail-client/thunderbird/thunderbird-128.10.1.ebuild 
b/mail-client/thunderbird/thunderbird-128.10.1.ebuild
new file mode 100644
index 000000000000..1e1f68d257b6
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-128.10.1.ebuild
@@ -0,0 +1,1171 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-128esr-patches-11.tar.xz"
+
+LLVM_COMPAT=( 18 19 )
+
+PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+RUST_MIN_VER="1.77.1"
+RUST_NEEDS_LLVM=1
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+# Thunderbird will have separate release and esr channels, matching Firefox's 
rapid and esr.
+MOZ_ESR=yes
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+       MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+       # Convert the ebuild version to the upstream Mozilla version
+       MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+       MOZ_PV="${MOZ_PV/_beta/b}"  # Handle beta for SRC_URI
+       MOZ_PV="${MOZ_PV%%_rc*}"    # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+       # ESR releases have slightly different version numbers
+       MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit autotools check-reqs desktop 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 ~ppc64 ~x86"
+
+IUSE="+clang +dbus debug eme-free hardened hwaccel jack libproxy pgo 
pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent 
+system-libvpx"
+IUSE+=" system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +rust-extensions +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )
+       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 '
+               llvm-core/clang:${LLVM_SLOT}
+               llvm-core/llvm:${LLVM_SLOT}
+               clang? (
+                       llvm-core/lld:${LLVM_SLOT}
+                       pgo? ( 
llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
+               )
+       ')
+       app-alternatives/awk
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.26.0
+       net-libs/nodejs
+       virtual/pkgconfig
+       amd64? ( >=dev-lang/nasm-2.14 )
+       x86? ( >=dev-lang/nasm-2.14 )
+       pgo? (
+               X? (
+                       sys-devel/gettext
+                       x11-base/xorg-server[xvfb]
+                       x11-apps/xhost
+               )
+               !X? (
+                       || (
+                               gui-wm/tinywl
+                               <gui-libs/wlroots-0.17.3[tinywl(-)]
+                       )
+                       x11-misc/xkeyboard-config
+               )
+       )"
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+       >=app-accessibility/at-spi2-core-2.46.0:2
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/libffi:=
+       >=dev-libs/nss-3.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
+       )"
+
+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
+               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 debug ; then
+                       CHECKREQS_DISK_BUILD="14300M"
+               elif tc-is-lto ; then
+                       CHECKREQS_DISK_BUILD="10600M"
+               else
+                       CHECKREQS_DISK_BUILD="6800M"
+               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="6800M"
+               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#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"
+               elif use arm64 ; then
+                       export RUST_TARGET="aarch64-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"
+
+       # 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-pixman \
+               --enable-system-policies \
+               --host="${CBUILD:-${CHOST}}" \
+               --libdir="${EPREFIX}/usr/$(get_libdir)" \
+               --prefix="${EPREFIX}/usr" \
+               --target="${CHOST}" \
+               --without-ccache \
+               --without-wasm-sandboxed-libraries \
+               --with-intl-api \
+               --with-libclang-path="$(llvm-config --libdir)" \
+               --with-system-ffi \
+               --with-system-nspr \
+               --with-system-nss \
+               --with-system-zlib \
+               --with-toolchain-prefix="${CHOST}-" \
+               --with-unsigned-addon-scopes=app,system \
+               --x-includes="${ESYSROOT}/usr/include" \
+               --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
+
+       # Set update channel
+       local update_channel=release
+       [[ -n ${MOZ_ESR} ]] && update_channel=esr
+       mozconfig_add_options_ac '' --enable-update-channel=${update_channel}
+
+       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, since it's not activated 
automatically via "known arches" list.
+       # Update 128.1.0: Disable jit on riscv (this line can be blanked to 
disable by default),
+       # bgo#937867.
+       use riscv && mozconfig_add_options_ac 'Disable JIT for RISC-V 64' 
--disable-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
+
+       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 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"
+
+       # 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
+
+       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