commit:     eb9d40ef5492dc164a48b295ff87d34a8695f595
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  8 09:02:15 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Sep  8 09:02:37 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb9d40ef

mail-client/thunderbird: add 102.2.2

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

 mail-client/thunderbird/Manifest                   |   65 ++
 mail-client/thunderbird/thunderbird-102.2.2.ebuild | 1169 ++++++++++++++++++++
 2 files changed, 1234 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index da39ace333ce..273dd738ed8d 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -65,6 +65,71 @@ DIST thunderbird-102.2.1-vi.xpi 721452 BLAKE2B 
d7a225305a51d837a019d6679d0f6c6ba
 DIST thunderbird-102.2.1-zh-CN.xpi 718569 BLAKE2B 
83d586f5ac233d8fc7b58e90fe43d006a5342ac5ea916ff90e733465b93dcaac1102b22ba509cb13bbf20bdf85cb6a273252862baaf386de7d43c81412ed56c9
 SHA512 
0c9d1b26cd3f127aa2d308375088f623d1d84b2bef5b6ea949aa28690d0567089a793e1aadf6baf1595845c9836c4589bb3b096543121947eabf735a7a576ff5
 DIST thunderbird-102.2.1-zh-TW.xpi 723809 BLAKE2B 
ecf4e2a43b96ac2c4b1962522ee5d7dbbba04899dba8965ca19cc6227be7c22d1268889e7fc180155c52ca5eb8eca55adadae9d708b6a87427e003f7bdeb9ce0
 SHA512 
3be070c1acf7606b4fa124a4285454f0e3d5d2c4db4c1da22092bcbbeaa8e0f8a256a86568ef2582bd735fd4c44196dfd6fb7514aa27528afa2d309af043e554
 DIST thunderbird-102.2.1.source.tar.xz 501438680 BLAKE2B 
4d37c3fba8fc4e09fbc53c5153de1fa18dda621428c38079be827f015f6afc1a6241e3cb4f5d65fcac2128f1dc4ea336c185aeca35e67f4a9acaf529808dba93
 SHA512 
7b69cfffb5de56690cbbd97f6b627733072dee498a15adfece990f9019df8df948762ce8eb2ca2d91ef12ff56262fb1905476d8a477aed70bc71cd2f9f986ea4
+DIST thunderbird-102.2.2-af.xpi 551019 BLAKE2B 
1d531ec1cc1d1ec8131a851611d07833b2085fee672b8ef2fbd3afd31dd2a529e021e3774e93c9a269a401348bc7bbc1ea3240aab64cf43c737f415f7c6a518c
 SHA512 
859e1b5ef3f3a25eb1a18f16d9b29177bc16cf3b87cabed70f29412d836e05426e9997baba52c2b92238e15297a6e2a8b0ebb4ab00a0d8938e2c96cdeee34007
+DIST thunderbird-102.2.2-ar.xpi 655343 BLAKE2B 
c4b58bd6ad024b1d4f59973507c321cfb6d9d5be63ae9dc606a68cd19ec3af36648f8c57b3562f43b6b015aa4d998e58916366863a3bea6e8f1331fc111e5ae2
 SHA512 
52962d371852ca8a2af452ba8d27b9f963d1cac4ba2c7675990cdc51c4f0666c8a5985c94a58d56e1cfede5d95409bdbea0d5d0e7ef20d400057ee610cd3ea1f
+DIST thunderbird-102.2.2-ast.xpi 571773 BLAKE2B 
ef01cf049ea05985d98b273871039ae9bae917bef48a799993a75418e15b7fc412bc110ba4b77177d4d52c32cffd69206635c749b25d90bef8ecf8b652f70bec
 SHA512 
f0baf717491cf326b732f9af819373ef1b8fdf286b20f10b28d0e50528f38d030ac30fd72b8805f2cb32214e2f9226e6fb1f5dac953bac85700dbf917d2ff6f1
+DIST thunderbird-102.2.2-be.xpi 686439 BLAKE2B 
7e3ae9abd3d54bccf34a27140f2cc37d15236b02bf4da959ad46133f4d2ac2413cc8c9de0c54541c545befc7e24f84850dbfe29af211ddfd60696b871f5f28c9
 SHA512 
2e443c4d989dc8a4cb276f56cd767726dca0d42d74760f44e08e3dec6b38b9487dbae9f75cf64bb3e89eb65df6c41f5f83b786598de557ce1275b448ea36376a
+DIST thunderbird-102.2.2-bg.xpi 683356 BLAKE2B 
82bf2d17deb8461f90f1140e31085e382c4d4998ff67cdba2d381e9099e25168fb765db9001971d883b796da47dd09fefc1009b017d90241c9a0738a7145cd3b
 SHA512 
77361c7ec9791ffbc0a5471340454ecef8e4c51afd715ae1f78ecf16bf45f3ebd81e212cf125b92dff44cc1cd745153a354e96a9ff88305df9b56bc8bb452cac
+DIST thunderbird-102.2.2-br.xpi 613887 BLAKE2B 
32e269a9452297b63023463d5ba6a132e0bfe4add0e89234c340a62f841a6d61dd69e42171589164f1359d88f9f5a9390614c58f4712778c9570e19bd8204378
 SHA512 
bb799d0c40d8a72be96da6fe3f403d03c3a89893e8535dc0891db528998072c0b31fec68741b5850482fc3f53235aa15f7b98343022d6aaedf7140c48837d688
+DIST thunderbird-102.2.2-ca.xpi 637360 BLAKE2B 
cd0b2fbe5af4721f1b8f23a2f06a20d41090d7fa5335fcca60760a28b2cc8542d7cb9daf483dc3b444de2cda4be3f28cf0154b5dfcb37f9200aecdaef63a7ac4
 SHA512 
15cc28c3450d457e4f877b46177d659f37b407c839b86f6d1ef67706d5d803dd0a4e866e4747a7260dc4bf48a7534b97460dc4ecafc268f4ccb8ee9ea50ed89d
+DIST thunderbird-102.2.2-cak.xpi 643587 BLAKE2B 
b72bd8ec5eb2ef8baec22117b0ebd1ab600eb521586dcfc92a130d500fe2c6686c617e5ce3feb1b1e943203b7a06d46354ca63674ae5dd1bafd0fbabfce98f77
 SHA512 
185099e834b389c438fe6a70fb646a7c7f0d9109222bec8f960df0b681e84df28e29e37fd7a11fc6ae2328b6f042f5273aeb0b78dc58280997d99a0a0fdeca85
+DIST thunderbird-102.2.2-cs.xpi 708029 BLAKE2B 
8ce398c8ff7da9d3b083053a5f9513cc9fd3f3d172e1c547708067a425abd0d65b68f2c29cf6770c03e0735818f3ad4dcdad1bdf4fda12a04752bb54fa2ac41b
 SHA512 
2c51eafaaab345799fabdbf0c926d15cfd0f6916d82016e1fc9632b3544d698bd44284eb2998d92b2ef3a26a5d592a18f038b061c6353e3bd9540400a8ef0708
+DIST thunderbird-102.2.2-cy.xpi 684010 BLAKE2B 
c14308c2a440e631b7811be182887da311548fe253b30f9ab79449181b27f9c6351a59164933551ba2e5b0f463f411ff8edbd5a154d1c38b869169248a797681
 SHA512 
63422801eba13b6dbd7cb7465d3cf7a58ad035f401a63639e14b2766e2b2b2256f4b10193e29e4e4e0159f293e0bc09bad502a79c753c9bace76279351e3f1cc
+DIST thunderbird-102.2.2-da.xpi 670190 BLAKE2B 
5c4e95230bdb7c388e6763d6af1b0184d729ea970e24c9e386707d9f4c9da0d8b1da7c183e1be06e1249a81ab0c248060b21129627f98687bd2a30dbf6bf2e96
 SHA512 
a89e8683cb84e233f78b38bcb0105e216c7399dff6fc55bbd1294e5169fc424b72167f509d36ea728d042cc5818267de0ab8e0aad4b27e701f25cb100dcf045a
+DIST thunderbird-102.2.2-de.xpi 704110 BLAKE2B 
312a62232fc010856025ae7f067980c3e5500843b5c3c1a066a2d16d1c4ec9420d2d8ca72b6b600c3c1d55f3a9d1e802aa48bc40c6fa1c8320b26148c366e2cf
 SHA512 
b5a9cf4c78284a02eaaed15c094ebc7b67f460a086b4ba2af4f37db8507cb10934282c2dacf02098ddc18636cd3360627d027e19a664717871217be24822e2f4
+DIST thunderbird-102.2.2-dsb.xpi 717400 BLAKE2B 
11817d12bd3c899896ce8849d65ba536de76a34773a7b8136ba0ab3418b7042119c6cf6535bfe96801aa7930233e470a0f8e2bfe22fba2e756429955c724465b
 SHA512 
0ba6e645c43a2184f8093058de1f0c64de71bc6635405d415ed5f69dbe821bb348374a729f8233a2dcd9a57e6675115ed7b6060f743ee9ea07770a4e565d8025
+DIST thunderbird-102.2.2-el.xpi 814989 BLAKE2B 
d16c705b82141450d0582fd9ccbb66eeebc5d975609e6fad9ae7d77f6a152619df0236138ea37f9df681a1a1748140144574eec713c05a5305da11d10433437d
 SHA512 
2ea56353550414823d1d3c94c94ceb6e4fa419ad03681e18b66bb7d7429f7258bacd2a53ae778601900186ab32b776ed42a6e354add893fc23e8bd2d3e29f6e4
+DIST thunderbird-102.2.2-en-CA.xpi 643665 BLAKE2B 
322dd91e1f05b4d7a1b25ffde54c23c817ea1826b4539a0803ffc585aa9770cdc9dcc121d97b742a9c815e46b75746b8ab3e0fa4a09ca138370a82d634fb0145
 SHA512 
3c4c7a38ab271b4fb0e196c6e156fa13902252683a3e112107f89ed2a12b8430372e0400e87336a762b1c385fef1b8e16296df4f075c5e167617634346bd72ee
+DIST thunderbird-102.2.2-en-GB.xpi 645536 BLAKE2B 
362c01e48ba68749dc55ef3a944d3254292dc63202360624965484997c03a88686b3a24a314ee749b26619bb180a14878fc779d400bbb307b360553e2936b372
 SHA512 
f80910605533843e5684da98c2c92afaed8983ccb25020af5cacf73a40f3cbad68a01aec81f01b58d6c230a82694a9097066ed071c2877e8adbcdf779f3f7f29
+DIST thunderbird-102.2.2-es-AR.xpi 695179 BLAKE2B 
8b5ccdb1f08bf4055c4f556d97dd2b68fa7de973a1bd2d0d793c3a29a10e63d78586d0b0d23ef2666b28541bd4542ff79c48ca836879e79108b0e2d2cd4adf74
 SHA512 
f8b482d2352afe7d2a476ce41d557b4a5dc76bd5cb79fb9f0b833032c9372414eacc244e45197659e675ac8e3e64ff03010e07b754800ac2e5a18c6d8b2a3555
+DIST thunderbird-102.2.2-es-ES.xpi 650070 BLAKE2B 
33eb10395ae5783b62819945a9105c1fa57511f9a001825b5d6d43c96010c725ee327cfbbc0c2224be0b45d08b3f3ed5bbf64a7d910643de8ae2ddef83743d0a
 SHA512 
29cecb9eb4025ac874692ffe8c493c3848613f236bdda7212beb1a83ed38ad86c748be46bf63406a1627adc20dbc3ab03e2a5dc76c3265271040f0caec9eb06d
+DIST thunderbird-102.2.2-es-MX.xpi 697885 BLAKE2B 
24c2befaf884ecd43bd0c7d54d7ad08b18c41f3631a842e7013e83e690c0c4680883763ce7b3475ca3a756ef4f0fbef63cb2a593157e2a3653e1d3771a3b2d9f
 SHA512 
6f910ba1e2a23da12ff92dba3e5b35f8998f41d84d206ade1b1a1153efce4a6240b70af804ac3895fdcd5a45c8674746dccd6e5f6912e55170a45f0f5e83b4f3
+DIST thunderbird-102.2.2-et.xpi 667399 BLAKE2B 
ff5cd8e9630cb7d76df244ca979e7644123e2a89565a052930ce96e65c5a5bbd47154c9b58afb8aa2de73b7db48eb52d0bc1ef67780bc13a1b99184509114ebc
 SHA512 
227f5d661d93b716ff3d3a3a88df368098f007e1d3abd8575712a6a8964d0d4c828ffb3f7d0cd8bf122024e7f76647830d4d843cf49bd392a829fb9fbbac90b6
+DIST thunderbird-102.2.2-eu.xpi 679390 BLAKE2B 
ed342cabe838369f877e785c560c9e90bb368b1a76d78adf69fecf5ceb3e161cb2c813c119234693aa4c4d497c14441ea0e93186d712ec3a33e0865063746a5e
 SHA512 
cf5ebca53b78f52cdab68b8f01abe62915b868d64d9ecac3e6eeb6caef1e1a3128abb7d078cab5693f62b235594cab89b441d452e837266b1d21908a448d5c38
+DIST thunderbird-102.2.2-fi.xpi 669905 BLAKE2B 
ed4bfa065211802266ce17ea566ded22a5cd1e2f2407ada61807a6db5527cf62333d9ca4d22f2d827daa0081b6ccbee4c562b01ec415fc92e81effd13e9aa1ed
 SHA512 
b48346a5620878c30aa6800acaef43b9b6b0cb345305ed071524df7848260c2216d56aebc257e7bd1ab18a88f223f71bdc24613b7f149b42772579134e4de5f9
+DIST thunderbird-102.2.2-fr.xpi 706739 BLAKE2B 
0802c58bef02229a2edb7efd0db1741bfdd62eb6a97765484baefae64c9992f6951acaa625e452e5dbe8eb48867a906185455049e40fd313eee1b7849f4c5642
 SHA512 
33c64d813be6c284a53d720c4d8c89eef953a07a81b7254b390e7bc1e6c1de039ebd997e7b257a5e62bc1051e165561d30d514805f799475ee90588dd3fa6eff
+DIST thunderbird-102.2.2-fy-NL.xpi 690269 BLAKE2B 
278a09e9e69bc95b4526a346084673b0d98d2b44561e826374a0aa6d516bbba10310a613d8f652c43a83cfad549004de8b0db045865fa09cac663033b39f7f97
 SHA512 
0e296381f5e2ccc3e4318b7f6f245094e66985aceeec755fa9eda3b927d517e7508911d66e5b47930b0496bdf032782019602c82383265c259585fcefa1e369a
+DIST thunderbird-102.2.2-ga-IE.xpi 607248 BLAKE2B 
701981a13badbc0365d0299d39e3a9af22b05b056ac97bff48cc3d58a6732440002603921181f7d631c86c8d34c966533d07a758f280d95e9f4273134cca898a
 SHA512 
270dbf27be672781478f3e01af71d4f588917fcbea404deb835ed5b56c67a76fe995d32274593b0d42b6ac4fa9cbfc64076e8634ea7f6f0ad664db49e2515c0a
+DIST thunderbird-102.2.2-gd.xpi 632123 BLAKE2B 
aa9c3d4d725bd2f79a8c11e74004edeba5f8f301ad8831737202d752a712e8c12a69884478b9b89e4f645085fb920cb2a0c284b163213f3f7014cbe8a5e742b6
 SHA512 
e097b40d9faeae18f53b85fc001a9dfb2cbcb7d06ecc405d4d76882ef1fa8348ad70bbd29546ac2c768cf0d2cbf1780bbeb3b357cc963cacc83e5d53455b3f89
+DIST thunderbird-102.2.2-gl.xpi 665001 BLAKE2B 
41b4f320f2becbbbff5e5cf44fabec75bfb596bb818fab02f0a70a7efe82c942f8c104622ad76b1e698758da709538b2864d7bf71b65342c56ea5dba1958bbff
 SHA512 
8c4c19b62af1e9a7bae13ede48fb88ed92f3469ea29c6beb73366c87ed06d462e708e97dc4ece421a94bc62ba6a56142156391702dcc16383f7369c1a92c5cd7
+DIST thunderbird-102.2.2-he.xpi 663365 BLAKE2B 
eb95586c0f253ff3026136ccc9bdbdd07200d5fac950a698e5f0db8d87179bbdfc12cd0782d85f875995573709fe9b480cdea361ae6bcce21b15e8359a322972
 SHA512 
ad31eaf38bc65f5f1c82210f86b93d54c902ad8e751e6f419d57345911da91c13ee1cdb8f8cf0e7d3c3b5427aba7f9dfd3d9b5f8df7640bafb6a9bc5269dc1a5
+DIST thunderbird-102.2.2-hr.xpi 662452 BLAKE2B 
e50270b5ada2e1c935846873b48f49a8b1dbafa6a4836ad12e230583ee9faa075f449320ff991a75fec428de61fbb808e95565cb3f6435933d1ed71a05a66f64
 SHA512 
e92341dafcf9ad7fee43eced957314e4f9d85599adaccb0377d9ada79706163ff1d081d90c21826e5e103a38c4e6ad70eddf9897ee31293fb8f1474c0ca110dd
+DIST thunderbird-102.2.2-hsb.xpi 715209 BLAKE2B 
5ed7670ec4d65d0e8549fbf439edd3d6f05e09363c9f6b315fd5c2eb04a7276e7129419b29b8c820d6cd6d5083575ed194deda2e0a17afb1381d1d0688ae7f2f
 SHA512 
1b70f3eaf11bb9235f770e7345e2cc48a8cc2d30f3bdb235bd3c5c8256782bfe2709475010f9c075d3a5211f2c3ce4a6b120847ccf5b507ee7af45a0fbccd12a
+DIST thunderbird-102.2.2-hu.xpi 717426 BLAKE2B 
952d0a07cee5346a3847f3ab4fb2573529cf45463fb0b3349c3cd4e05ee081cfde753d5341a66a37b065bdc570425b54c48439c711112d5c119d2f26d5b1a5dc
 SHA512 
ea2209ea7b46199d10f635c04b0419f25ef5ff6a9776b294c25d267d8010d01de9510af3ee4f3ee4a533a57686635b12a943e96f943076d7ff04b819f7613fc1
+DIST thunderbird-102.2.2-id.xpi 641542 BLAKE2B 
c7542797fb7fd4a755ce602a5b35835d1a4558b3fd845a811f19d6b143ed4c2b96dddaa76dae93d8a2015ee0bab3b6704e0f4539f6eb4e8d7d0c9e87fcef0a23
 SHA512 
0f3a2579a972adc57d0e0c2e501cd62b6d34db1811ce6df0e52adc0d5c9d386a9bb4fa66dab0969ea593fdca1a98371c6463c7bdce43b7f4668ae66f3af1b1bf
+DIST thunderbird-102.2.2-is.xpi 682148 BLAKE2B 
bfbf15dd02a801d12d42af9e7c7107dc3d802314c537ec5e6e22d4f219b1a7d21058d376ff69f006e915a6a54a739ac5b737d906d79beea1ba45d022b4bff2dd
 SHA512 
ffa8b6088fa2d4bd1d836b5eb475ea01edc5305185b6158f50f4affedaa953c80e6e55f4bc207a32fac616ea4c3310defc208ac48abf6563bf33309d0dcb900f
+DIST thunderbird-102.2.2-it.xpi 599312 BLAKE2B 
6af84ee88742ddd1ff535d042f7c154f62237a1f008abdb8e6246907b9c15dc4f4fa07f3998fedf581ed0ad01d2d70febb9ba7901c4680e4628bcd74b3184569
 SHA512 
77ead8ff8eb603c37dbaf9c519fd63f8e5e8ed144b8d81025858e83066ce49064c1be66dfe93e3352ac2b48bebcea47d9789a3ed40722b90cd7afd17d63533a1
+DIST thunderbird-102.2.2-ja.xpi 735624 BLAKE2B 
4960bd1ae6449612f12673b42c06d5b966ddf5d1f8b038773ec0f3e6e9172de180a92d4e24fbb3759bde5d817c39277cb99f10344d8718d8082aa207ff7a905d
 SHA512 
470d0c4f6e5e3a1eff4744df9c145f402a6c82085bf0a2e31a3ba0faff8cdd81e94479d59f31a057dca9d70fb1eaa962e67a5af5b2001c0cab9cef5bd7133ca8
+DIST thunderbird-102.2.2-ka.xpi 750626 BLAKE2B 
99d2116d9a1353a0f2c136898e7d8e0deab78a01013c750375b441b6c08d179a537235c0bfb78771517c29c3921220294b55e85fbd2d0f40fe61c8c92d2248fb
 SHA512 
f8fbafb4779259b134f63ac564bb6e00dd205e098f63933ce1073a3bf8c814cbadb5ba1c423092e7c20f710fb49dfef55c127dd922700d24d077528f4a9bcccc
+DIST thunderbird-102.2.2-kab.xpi 689693 BLAKE2B 
1a4a04e28978cefe0259bfb7908a51b40c0c61b4b3a6dae0dc43d347dd592dfbf7aa08f9e8e1798390c20fe5849ff91d9a868fecaf20d6f133934c03af30704d
 SHA512 
1ec7018205c16e230f90a6fc389a4d23032ca83af50f371af2d9009dc64c4c41393636ab55838188fe1197de77bb84e5d66357757e3dd56f82d276ca370c335f
+DIST thunderbird-102.2.2-kk.xpi 732212 BLAKE2B 
9904232535a03c5ea3cf2a9a967fe52924e79f0146071873a6f13cdd7c51458340db55fa04bedd3c392da3feaf150e8fd67b547e1182de3865e0142756e5b31a
 SHA512 
d9587c9eb5b40959d301b94bc572af56bbd8944510fa5ef897ef6019c73ce2f3746f6a06e290b43d148434827e5eae64845d93f580884c789baed636c4824f7b
+DIST thunderbird-102.2.2-ko.xpi 694690 BLAKE2B 
20e4aa58243d70150224ac0e639f444a7a632934d83c3e76587ae38fab4ecfb49140faeb12c10633e7243fdd70f712a4dab1a81e781ead9ea3a5ab0c1b549591
 SHA512 
83130a82e034c0288391a6c90fdbc25d36ea2ea2d3e0ba0c823646828740b9ffc84013f05f8a17b54aeb434af57f99f3fcf89fc5467d878e395df96a8a7385c5
+DIST thunderbird-102.2.2-lt.xpi 682839 BLAKE2B 
36aeaf13a1513d0f638a2cbcc61135cd9e482c0abd3b901b41f3db939d1dde168a2354e2ec6fb20450f0bb0419956ba7b0e6a0b38e6a6c2fefbfc1006f948054
 SHA512 
8d5b84d6bbd3ec6b8f6916b325b18596bfb4053d9441e291069192084edc25452107e76eccc803486f59e2e0bec221b0bd8651a36c388adc3385e18143e96fc2
+DIST thunderbird-102.2.2-lv.xpi 610373 BLAKE2B 
1e25b3583e88f5621dc782ec0aceb93e61a286f10acccd9b1a22977d8a66879c4554d23ad8557aa4ad06c0ade420fe9b0cb0eb470f8b0c681fe99ba5955b10dc
 SHA512 
c31f6f8579360b41163d1d38b44a83bed5a113633902216463a4e2b45237911fbe7bde2029debbde680c1034208df6f5bdb3800e2e9e2df13ec06fa4ae887728
+DIST thunderbird-102.2.2-ms.xpi 571202 BLAKE2B 
eee5c54da9a6e7d048c0d0c541a2e6ea1b62cb2c18994c07f7cf9d22ec2e84a130878d715b621119139a97a82cdaabf8208d2718c0fe9a02db5053dadb9cf7d5
 SHA512 
b469ee9b4dfc1e7c57f2c335e384110a876e158f3d5941eb29e7877449d6c64f7a5080e3a3c3742d09310af06f34a8ccca7bc34e72b4e6e2a6b75a18bc5bf4b0
+DIST thunderbird-102.2.2-nb-NO.xpi 649304 BLAKE2B 
6a5b50faf242ae87b85175f675f7d7896dea3a84fed1828cfaafebe4eabb6b91b755c3bc1d7267dd107c51517e9467d922376691abd13c277574b000cedcf0e0
 SHA512 
a72b411707e5b71cdc606de623fc4042c20e4e32321459eb2880b6c6379c282eafe22ebccee26bee79d6f53bde8b01f1a8e41fa54acf479c3767d3384083ea02
+DIST thunderbird-102.2.2-nl.xpi 681881 BLAKE2B 
cf88ff09254db058c9d0c2f6a47f92ff368ad842e59b85d8eeb77b4b981cfb3532561edfd84fd06e450dcc739e77bcab002df89a722c81a4b0068cb24126e2d5
 SHA512 
cadde077541a46256d8b64879ca29f7975ad06f07c12812d4d983f9f27f869f4f40bb8c8c7f18c56b95610e23e998a787b3b05a17318f9c9520a54cc4f06f299
+DIST thunderbird-102.2.2-nn-NO.xpi 656314 BLAKE2B 
1d3c9e88a9cee5e94434e1b58b438e8cfedab9f9fa1cab8a5d563aecf96f895acaf391ccebf749f6410f0379bc883a95146262dd9a5c10293a1572db5d539614
 SHA512 
312f9b7e8538dc26261ba9b0086fc966a77309fae62350f643961bebf5040b0a5d2794dccd12848dc237505c0ba7467fc6cb7011cd2f4c64755ffc74cbc258c4
+DIST thunderbird-102.2.2-pa-IN.xpi 645953 BLAKE2B 
af0a53e6f05fb4d1e0a1edeac4fe91c8ca3a866094d9042f270ebef72d62a22aa3b1f8bffaaca1d7224a5009fef81f16e086b817c42fe6f79949a448d11ee15f
 SHA512 
d53d004517581177198d32836b0cff2f839b3a5cfa945ed0b7aa0030506ddcfe0f473153d72ab677e219212c068932e905139f6488cab64fa20c1e13f0d9c89c
+DIST thunderbird-102.2.2-pl.xpi 693052 BLAKE2B 
5ab1fef7888807be2b6b785d53fe4a006da71ec436c0ad6c1da912a300975f7156b7cb4b446ffa0a25b190d351b17629f068d08ead761c17207651eec843dbfc
 SHA512 
154bc52388d8145856f6f336e7b522a93101884eb110deba23b9469ffdb14e251df42fe144be27be3c0ef2d4656d04346a3530df96f4a4b85ef563b7d2dddc70
+DIST thunderbird-102.2.2-pt-BR.xpi 689716 BLAKE2B 
f84d73b04011fef91151e696486375ee550cd7ba035e129e23f6e76ca07290fe1481cab3bde1e5f2eb8b451023c2525c601d29f82891bd4f2ebb79bacd23059b
 SHA512 
8aebce012dd7049a1d1bfb6532eb36cca5f5416c2a6df98840e8efa0d1e0a653bcf31406cf0bd3c43e5095c851564894860c3e939b0c5dda9bc1f1dc7ff3040a
+DIST thunderbird-102.2.2-pt-PT.xpi 666852 BLAKE2B 
f8f2b382dc0f5ed92f24bf6aea26695141b94b5b999c99ac0899851659906cb7f20b6146176cfda6edb3fe04358c2140c02030429c89ef872dcb975aa9b6bc1d
 SHA512 
083b72bbaca165d88a380df267b69cf35afd8389a3e9df82e9989a31335e19dffef0811c63558cb1f5e62377cdcebaa4089ce814777d38dfabe344b7a6e2bce8
+DIST thunderbird-102.2.2-rm.xpi 681991 BLAKE2B 
b443646b06cb81abd4266466741238d04531d0d82efa99c7f6b3a01e4987a7b1d40aaefadc30ef232640eb8a4389e0fc2aa3cbee0f9cc81017df0fdf2cc017cd
 SHA512 
4a39a81b980a25ba610d61dd5a06fc09fa709fcd79b6303f8237cc58c5c77b659ee6ffe7062c84326b9e8a2be78a11aa770cf1b99b65b34af1d40506f480ada5
+DIST thunderbird-102.2.2-ro.xpi 652512 BLAKE2B 
075c5d692e347964772c45ca048b183d1723334d74ab2c63726363e0f9f01db85ace909c37f77669e9a68e978ca2f807d515efdc33fe8575c6cdd5bb8f743798
 SHA512 
358a128d632e58c7f115b7e9f84a6d4ea009abcef5c90ca77eb1096ab696aa71f08d413540777ec707e6978fae6fbd2f9f23fba4a3d0f7a0ed3b2c5a8ff0c9e4
+DIST thunderbird-102.2.2-ru.xpi 799077 BLAKE2B 
dacc593ad9c7274405b86a6b59d09afdb8a2a96dff58a17e1177a9354e8794fb8930070616b63f250183c63156c2832a8365e034b1b78a7539f6d0054fcb90ec
 SHA512 
2f0440116fb72c87af9d448dc2e99cacd50ddaf61769f80f5650e92dd117e2d48359250436dc943e76086e0a00b45c8557298786567182521fcdebe0dc28a6d9
+DIST thunderbird-102.2.2-sk.xpi 718203 BLAKE2B 
679f45222a61b99c6e794fc502b794150cd01e890f308a66d10967f4b1c1e0cea629143670ac2bd006a7e9e0af363c937611231cce13c5fbdbe99b42e8d68110
 SHA512 
321a6d86662b08bfc2ac711c901c9b4dd53be06d60dc51f845377380e118feec46717ae5c826cfa5243828668f64c8e5741ec9bab233441319356dba83291c0d
+DIST thunderbird-102.2.2-sl.xpi 681765 BLAKE2B 
ff279a85600312e162487cec1fd1f8310d53d4222e72542588d5dba1de9531562d59d0ae534a31f67f643454b827842cea27fe8771d020f9fc12518120c8657d
 SHA512 
4cba33f9cbf104b158a934a9ee8f9493b3d55f9c81f75b419d5bb2bd86409a751a94220d66b488c0c2361ec03d20f606fd7b4f9bef7a54354edd7274a8adb363
+DIST thunderbird-102.2.2-sq.xpi 691694 BLAKE2B 
26749ce2f595265fe80950d53ed2048a294028d003bcb93fda700a56e880967e29b81d746ad02a5acfd32ce77437bed8ca8a174b4b84b62a34051f32588e4916
 SHA512 
08571acad5a19bd8e9190825669622cd73b1bb7db50bbe60639c8825ff086f1a4ba0133874aa5e2b2ff90e705650d3f2222cfd76496792df13bcf57d43163c31
+DIST thunderbird-102.2.2-sr.xpi 701538 BLAKE2B 
9216366b0b9aba36426444b4cebd8b306703bfb9acaf893e1f8880c3e3d0ed61eff8e7bcdc83e77c721aa482d39ee9ebe69b627df5f6dc40e50e3d8e961b5730
 SHA512 
bf6230f10051872d83539ffefaf4f6f0ab8a4c68e9e9b01b86d723638e1e9322c02046c751f1daa74fc0497d1f7b19e106475693dcf73873ad944d46f3343acb
+DIST thunderbird-102.2.2-sv-SE.xpi 685591 BLAKE2B 
c16b56fa7635b5097b051de9c1115ebe881299251d9b65dff4aa59564c2bfa04c318749b1953f3d43161968810d671a1bca71f2745e39b082e19caeaaddff105
 SHA512 
395ca455cff9987974b6915dc48d4dd2ab82461ea061ba482946d115ce068ef08369ea84d21a8afc61baee20ad513b71a96f62cab69353beffb4b04f38a0a8eb
+DIST thunderbird-102.2.2-th.xpi 736310 BLAKE2B 
73780f77d3fe10f7cdb103b425be764610719cf3b823e76d240d7d9f42e116582b43308fd079d37caf93070408edfe47d799176be1af457d5ad1f3f77d49d27a
 SHA512 
982d2f8543dacfb5748e3026b3da80ab80b8833c1baf22d6f0fb86cd98eeca94aaa728177348c16d60d4ebbfcbd83ab45bcbbf756f9bc52f5e536d32e6734232
+DIST thunderbird-102.2.2-tr.xpi 693690 BLAKE2B 
9a1f4270524ced9d2a7323a2363d2caf864f500901cc9053cbd748b030391544a911cef79087c47a8d48f3f7178055c3753da25526d3b58ea2ab9c89117ca52d
 SHA512 
22d952ab7d28fe81c9a12a50992f41fdf52efb711ccab1d7e883ed3eebd8307d30d93380413c9dd5b7c9296cc8aa53905a96ef1b2fa130a7aea3ed39470cd8ed
+DIST thunderbird-102.2.2-uk.xpi 792340 BLAKE2B 
f44ee129b155d23a918f05d508d89e2117aa1f9d8ad7745277b5453770005d23a98f3af7f0faf9795dcaf4baf4d60dc33bd0397c4553bcdc6ec4b0d87c80253c
 SHA512 
cdf50971d33b9fabf8173dae4d6b96e8010464fdd0b202d682c51c77b63b67e2d4dfedaf12821bb6daa35eddac4d3bda6051e944487b814ee82a4e86bc8338d6
+DIST thunderbird-102.2.2-uz.xpi 587622 BLAKE2B 
7e7f3692f42efe9f51626cf369518bddb3b40e4e8f59af26bc0c1471ac4837c80af568b0585c7dffd4767793e693a0aa93e4c86b049b24d6283f2d236bec99bb
 SHA512 
f611b57ab9b0b766fc94cf2e471ea93ba2bdb0a66e25de7cedeacf9ff1c4d55cf68a4eb7c19cee46e7e8525378a1e608c694f8194e31e011167cff0b32a37ee2
+DIST thunderbird-102.2.2-vi.xpi 723630 BLAKE2B 
c80f2f3e2b875a7466536a080945f07972fc3a46afb4d9d1f6fde61505c35a0bab663576353f4aca7ad1b101b6764205fcf49bcec934cf8a8c6825b80984d15b
 SHA512 
b7ddf3d8cb7f94b7ec75f1f7b2dccfcfbaf2ea0758f63611c7bb3c0b269c4db1d9817c3728d4b0e4bef95cf1df566c00aa7db214c061af970260463e255a2003
+DIST thunderbird-102.2.2-zh-CN.xpi 721837 BLAKE2B 
2199036d4567fff975db0480d0648567453e49a47a840c3884728a89600f4dbbd8f6f5ade31d1252af56a63028095390bd6fe0628934963e3380dcfcec598510
 SHA512 
5ee58a8c9cf8fb0c46f22115224b723b8fc73ae79905c68a8c9c26c282a778cee4d2b930f626eb9a7326c7082c4bbb94c48fe41d38205ff2946462e82d5752e9
+DIST thunderbird-102.2.2-zh-TW.xpi 726300 BLAKE2B 
572a2504f82b2be81263c043125a27a526faa8228065ac853bb4018f4941819fd7b39fc2348c31d76219d16d90b9875f64c6d1abb792e319a7e054c933fce21b
 SHA512 
bb839a7ac91905f79259492b5a252e5eeba7316c6cd67f514e8da872ae8afc3ebe4ea76eedf9db684c11f8d0b891320d6482258c53c2d491dfa5563aaa416124
+DIST thunderbird-102.2.2.source.tar.xz 504122840 BLAKE2B 
1925eaadeb11627bf7bae156f881330cfa3f111b373ace732139606f72141a90df17890e1d9b2507e53603a85d47c11b8fcfa3a2bffec155415553c683a0ee8f
 SHA512 
fe72ddb81d35d4a85b25a6d955a0b0f705aeda2dca0f572efca7ce94041c4ddcead6c690bda8d4bded4c43e12a15669f9608db6debec38d8b5157a914e280db5
 DIST thunderbird-91.13.0-af.xpi 561879 BLAKE2B 
69a959c61b28e7ee9733db245ffc91ebefa3396c1561b933b1dbfe1135ff88b3c5199be2d29e43e404e63f0016fa05838c7612823727fd061ad8f0407a762d2e
 SHA512 
bd52e0f660db3046c8641038451e439c79f3961df342b69365faa9b8f2fb5d8e165a8b9249989524cd4e0bdc5867c872ff6ddbe5aad1c88bc0a869d4cf16e9c9
 DIST thunderbird-91.13.0-ar.xpi 665731 BLAKE2B 
3302223e35bef747a8c04a2cb25c1bdc6482674fff85bd4c6b278ff9be0a1f72615d075e13c185dce6296331bdde42bd487d9fda1f47f8fcad8806dfb9882009
 SHA512 
b510f1277a4a558f9e2552bccfa6f988c62b47366665c934bb173cb58480104b026f487e1b1d778cd25990a14b2a4b39b6f78852c3d0b220bf31e8f021ece2a0
 DIST thunderbird-91.13.0-ast.xpi 580513 BLAKE2B 
811bde79b93aad145f92dd7df9a998622b5d097c13edd6195c67f83bfdd8526dacdd29f35c2a33652997659b68ea2d745714b8b521236e6f6ec91ab324ddf994
 SHA512 
2f229377f089e383badebc251f40d6fd7171f3c6e4dfaa3eb2cc205cea0de6495f42efd940c6db8976c8c60997229c61b876f428b8a71ca2fc43590ba43c4cf2

diff --git a/mail-client/thunderbird/thunderbird-102.2.2.ebuild 
b/mail-client/thunderbird/thunderbird-102.2.2.ebuild
new file mode 100644
index 000000000000..5b45a09b43e3
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-102.2.2.ebuild
@@ -0,0 +1,1169 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-102esr-patches-02j.tar.xz"
+
+LLVM_MAX_SLOT=14
+
+PYTHON_COMPAT=( python3_{8..11} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="pgo"
+
+MOZ_ESR=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+       MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+       # Convert the ebuild version to the upstream Mozilla version
+       MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+       MOZ_PV="${MOZ_PV/_beta/b}"  # Handle beta for SRC_URI
+       MOZ_PV="${MOZ_PV%%_rc*}"    # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+       # ESR releases have slightly different version numbers
+       MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit autotools check-reqs desktop flag-o-matic gnome2-utils \
+       llvm 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,whissi,slashbeast}/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 cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
+IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent 
+system-libvpx system-png system-python-libs +system-webp"
+IUSE+=" wayland wifi"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="debug? ( !system-av1 )
+       pgo? ( lto )
+       wifi? ( dbus )"
+
+# Thunderbird-only dependencies.
+TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2
+       selinux? ( sec-policy/selinux-thunderbird )
+       !system-librnp? ( dev-libs/jsoncpp )
+       system-librnp? ( dev-util/librnp )"
+BDEPEND="${PYTHON_DEPS}
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.24.3
+       net-libs/nodejs
+       virtual/pkgconfig
+       virtual/rust
+       || (
+               (
+                       sys-devel/clang:14
+                       sys-devel/llvm:14
+                       clang? (
+                               =sys-devel/lld-14*
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-14*[profile] )
+                       )
+               )
+               (
+                       sys-devel/clang:13
+                       sys-devel/llvm:13
+                       clang? (
+                               =sys-devel/lld-13*
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-13*[profile] )
+                       )
+               )
+       )
+       amd64? ( >=dev-lang/nasm-2.14 )
+       x86? ( >=dev-lang/nasm-2.14 )"
+
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+       dev-libs/atk
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/libffi:=
+       >=dev-libs/nss-3.79
+       >=dev-libs/nspr-4.34
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/freetype
+       media-libs/mesa
+       media-video/ffmpeg
+       sys-libs/zlib
+       virtual/freedesktop-icon-theme
+       virtual/opengl
+       x11-libs/cairo[X]
+       x11-libs/gdk-pixbuf
+       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/libXtst
+       x11-libs/libxcb:=
+       x11-libs/libxkbcommon[X]
+       x11-libs/pango
+       x11-libs/pixman
+       dbus? (
+               dev-libs/dbus-glib
+               sys-apps/dbus
+       )
+       jack? ( virtual/jack )
+       libproxy? ( net-libs/libproxy )
+       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-71.1:= )
+       system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
+       system-libevent? ( >=dev-libs/libevent-2.0: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? (
+               x11-libs/gtk+:3[wayland]
+               x11-libs/libdrm
+               x11-libs/libxkbcommon[wayland]
+       )
+       wifi? (
+               kernel_linux? (
+                       dev-libs/dbus-glib
+                       net-misc/networkmanager
+                       sys-apps/dbus
+               )
+       )"
+
+RDEPEND="${COMMON_DEPEND}
+       jack? ( virtual/jack )
+       openh264? ( media-libs/openh264:*[plugin] )
+       pulseaudio? (
+               || (
+                       media-sound/pulseaudio
+                       >=media-sound/apulse-0.1.12-r4
+               )
+       )"
+
+DEPEND="${COMMON_DEPEND}
+       x11-libs/libICE
+       x11-libs/libSM
+       pulseaudio? (
+               || (
+                       media-sound/pulseaudio
+                       >=media-sound/apulse-0.1.12-r4[sdk]
+               )
+       )"
+
+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 ; 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 use pgo ; then
+                       if ! has_version -b 
"=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
+                               einfo 
"=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! 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}"
+}
+
+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_pkg_setup
+
+               if use clang && use lto ; 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
+                       # Allow access to GPU during PGO run
+                       local ati_cards mesa_cards nvidia_cards render_cards
+                       shopt -s nullglob
+
+                       ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+                       if [[ -n "${ati_cards}" ]] ; then
+                               addpredict "${ati_cards}"
+                       fi
+
+                       mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+                       if [[ -n "${mesa_cards}" ]] ; then
+                               addpredict "${mesa_cards}"
+                       fi
+
+                       nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
+                       if [[ -n "${nvidia_cards}" ]] ; then
+                               addpredict "${nvidia_cards}"
+                       fi
+
+                       render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ 
/:/g')
+                       if [[ -n "${render_cards}" ]] ; then
+                               addpredict "${render_cards}"
+                       fi
+
+                       shopt -u nullglob
+               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
+
+       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)"
+
+       # Make LTO respect MAKEOPTS
+       sed -i \
+               -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/build/moz.configure/lto-pgo.configure \
+               || die "sed failed to set num_cores"
+
+       # Make ICU respect MAKEOPTS
+       sed -i \
+               -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/intl/icu_sources_data.py \
+               || die "sed failed to set num_cores"
+
+       # 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
+
+       # Clearing checksums where we have applied patches
+       moz_clear_vendor_checksums audioipc
+       moz_clear_vendor_checksums audioipc-client
+       moz_clear_vendor_checksums audioipc-server
+
+       # 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 && ! tc-is-clang ; then
+               # Force clang
+               einfo "Enforcing the use of clang due to USE=clang ..."
+               have_switched_compiler=yes
+               AR=llvm-ar
+               AS=llvm-as
+               CC=${CHOST}-clang
+               CXX=${CHOST}-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
+       export HOST_CC="$(tc-getBUILD_CC)"
+       export HOST_CXX="$(tc-getBUILD_CXX)"
+       tc-export CC CXX LD AR NM OBJDUMP RANLIB 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
+
+       # Set Gentoo defaults
+       export MOZILLA_OFFICIAL=1
+
+       mozconfig_add_options_ac 'Gentoo default' \
+               --allow-addon-sideload \
+               --disable-cargo-incremental \
+               --disable-crashreporter \
+               --disable-gpsd \
+               --disable-install-strip \
+               --disable-parental-controls \
+               --disable-strip \
+               --disable-updater \
+               --enable-js-shell \
+               --enable-negotiateauth \
+               --enable-new-pass-manager \
+               --enable-official-branding \
+               --enable-release \
+               --enable-system-ffi \
+               --enable-system-pixman \
+               --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 && [[ ${CHOST} != armv*h* ]] ; 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.
+       if use ppc64; then
+               mozconfig_add_options_ac '' --disable-sandbox
+       else
+               mozconfig_add_options_ac '' --enable-sandbox
+       fi
+
+       if [[ -s "${S}/api-google.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 
}') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+       else
+               einfo "Building without Google API key ..."
+       fi
+
+       if [[ -s "${S}/api-location.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 
}') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-location-service-api-keyfile="${S}/api-location.key"
+       else
+               einfo "Building without Location API key ..."
+       fi
+
+       if [[ -s "${S}/api-mozilla.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 
}') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+       else
+               einfo "Building without Mozilla API key ..."
+       fi
+
+       mozconfig_use_with system-av1
+       mozconfig_use_with system-harfbuzz
+       mozconfig_use_with system-harfbuzz system-graphite2
+       mozconfig_use_with system-icu
+       mozconfig_use_with system-jpeg
+       mozconfig_use_with system-libevent
+       mozconfig_use_with system-libvpx
+       mozconfig_use_with system-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
+       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"
+       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 wayland ; then
+               mozconfig_add_options_ac '+x11+wayland' 
--enable-default-toolkit=cairo-gtk3-x11-wayland
+       else
+               mozconfig_add_options_ac '+x11' 
--enable-default-toolkit=cairo-gtk3
+       fi
+
+       if use lto ; then
+               if use clang ; then
+                       # Upstream only supports lld when using clang
+                       mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang and USE=lto" --enable-linker=lld
+
+                       mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+               else
+                       # ThinLTO is currently broken, see bmo#1644409
+                       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
+                       # This is upstream's default
+                       mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang" --enable-linker=lld
+               else
+                       mozconfig_add_options_ac "linker is set to bfd" 
--enable-linker=bfd
+               fi
+       fi
+
+       # LTO flag was handled via configure
+       filter-flags '-flto*'
+
+       mozconfig_use_enable debug
+       if use debug ; then
+               mozconfig_add_options_ac '+debug' --disable-optimize
+       else
+               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*'
+
+       # Modifications to better support ARM, bug #553364
+       if use cpu_flags_arm_neon ; then
+               mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
+
+               if ! tc-is-clang ; then
+                       # thumb options aren't supported when using clang, bug 
666966
+                       mozconfig_add_options_ac '+cpu_flags_arm_neon' \
+                               --with-thumb=yes \
+                               --with-thumb-interwork=no
+               fi
+       fi
+
+       if [[ ${CHOST} == armv*h* ]] ; then
+               mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
+
+               if ! use system-libvpx ; then
+                       sed -i \
+                               -e "s|softfp|hard|" \
+                               "${S}"/media/libvpx/moz.build \
+                               || die
+               fi
+       fi
+
+       if use clang ; then
+               # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
+               # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
+               # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 
'x86', 'x86_64')
+               local disable_elf_hack=
+               if use amd64 ; then
+                       disable_elf_hack=yes
+               elif use x86 ; then
+                       disable_elf_hack=yes
+               elif use arm ; then
+                       disable_elf_hack=yes
+               fi
+
+               if [[ -n ${disable_elf_hack} ]] ; then
+                       mozconfig_add_options_ac 'elf-hack is broken when using 
Clang' --disable-elf-hack
+               fi
+       elif tc-is-gcc ; then
+               if ver_test $(gcc-fullversion) -ge 10 ; then
+                       einfo "Forcing -fno-tree-loop-vectorize to workaround 
GCC bug, see bug 758446 ..."
+                       append-cxxflags -fno-tree-loop-vectorize
+               fi
+       fi
+
+       # Additional ARCH support
+       case "${ARCH}" in
+               arm)
+                       # Reduce the memory requirements for linking
+                       if use clang ; then
+                               # Nothing to do
+                               :;
+                       elif use lto ; then
+                               append-ldflags -Wl,--no-keep-memory
+                       else
+                               append-ldflags -Wl,--no-keep-memory 
-Wl,--reduce-memory-overheads
+                       fi
+                       ;;
+       esac
+
+       if ! use elibc_glibc ; then
+               mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+       fi
+
+       # 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
+       PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+       if use system-python-libs; then
+               export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system"
+       else
+               export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+       fi
+
+       # 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 pgo ; then
+               virtx_cmd=virtx
+
+               # Reset and cleanup environment variables used by GNOME/XDG
+               gnome2_environment_reset
+
+               addpredict /root
+       fi
+
+       local -x GDK_BACKEND=x11
+
+       ${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.js gentoo-prefs.js
+
+       local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+       # 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 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
+
+       # 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
+
+       local show_doh_information
+       local show_shortcut_information
+
+       if [[ -z "${REPLACING_VERSIONS}" ]] ; then
+               # New install; Tell user that DoH is disabled by default
+               show_doh_information=yes
+               show_shortcut_information=no
+       else
+               local replacing_version
+               for replacing_version in ${REPLACING_VERSIONS} ; do
+                       if ver_test "${replacing_version}" -lt 91.0 ; then
+                               # Tell user that we no longer install a shortcut
+                               # per supported display protocol
+                               show_shortcut_information=yes
+                       fi
+               done
+       fi
+
+       if [[ -n "${show_doh_information}" ]] ; then
+               elog
+               elog "Note regarding Trusted Recursive Resolver aka 
DNS-over-HTTPS (DoH):"
+               elog "Due to privacy concerns (encrypting DNS might be a good 
thing, sending all"
+               elog "DNS traffic to Cloudflare by default is not a good idea 
and applications"
+               elog "should respect OS configured settings), 
\"network.trr.mode\" was set to 5"
+               elog "(\"Off by choice\") by default."
+               elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
+       fi
+
+       if [[ -n "${show_shortcut_information}" ]] ; then
+               elog
+               elog "Since ${PN}-91.0 we no longer install multiple shortcuts 
for"
+               elog "each supported display protocol.  Instead we will only 
install"
+               elog "one generic Mozilla ${PN^} shortcut."
+               elog "If you still want to be able to select between running 
Mozilla ${PN^}"
+               elog "on X11 or Wayland, you have to re-create these shortcuts 
on your own."
+       fi
+
+       # bug 835078
+       if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then
+               ewarn "You have nouveau drivers installed in your system and 
'hwaccel' "
+               ewarn "enabled for Firefox. Nouveau / your GPU might not 
support the "
+               ewarn "required EGL, so either disable 'hwaccel' or try the 
workaround "
+               ewarn "explained in https://bugs.gentoo.org/835078#c5 if 
Firefox crashes."
+       fi
+
+       optfeature_header "Optional runtime features:"
+       optfeature "encrypted chat support" net-libs/libotr
+}

Reply via email to