commit:     815daaa3ee96ab15c9234cb9f8c851dac8fa8980
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  1 07:32:07 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Sep  1 07:32:44 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=815daaa3

mail-client/thunderbird: add 102.2.1

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

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

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index f660555da5d4..6336ec88d995 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -65,6 +65,71 @@ DIST thunderbird-102.2.0-vi.xpi 719956 BLAKE2B 
0fe46a18b7886280df5050532b7259aed
 DIST thunderbird-102.2.0-zh-CN.xpi 716463 BLAKE2B 
91d9022eff74adbac74cd036074134804ee0f4f82e93bb74bc183837b736a574f712ac9cf1f2af0dd939e69378272a204d7473863e972d86da739384c03031fb
 SHA512 
3d12e086151cf7680dcf9fdb417431eff36dc9b8de7ecb876d9d726c8ed8829831d7b62021ba67e55c2952acab8a161e62a22cfadbe026b1cfbfea715c4efe58
 DIST thunderbird-102.2.0-zh-TW.xpi 722339 BLAKE2B 
0a6d8498a8209798326fcb8ec868db550a594b57cb0450268d9fa9c49ffbbc8163baea214fa4b09e3c4497d101a4758552e7a12f1f70400d6945e333e1e4988e
 SHA512 
98243637a26161cc857ccfbabc39a58d31962b8cf695f000fda58328b106a5850ccab55b9f5b59794f5c23bd529c987ad65e3d9850095d50120a374fbfdf6b44
 DIST thunderbird-102.2.0.source.tar.xz 500331516 BLAKE2B 
1c48e2c0fa02f4c2745e5f5db7efc393efd2c2a882cf5be02751be1e0d04dd217afb6cb393ee698416081de533a7583ae7f6a9312fca8c2dd9c0ae3a777321c1
 SHA512 
a9ca311e3c55c8703aaecfe30f8a8040a16acc445530f7462baeaaf941f7221e60b66b0894ea0b3c0eb83ccc882706674cfa319ae93557405946ffffb1f6b5dc
+DIST thunderbird-102.2.1-af.xpi 550105 BLAKE2B 
e9bc1b0daed89d6ba0c0098a07efa028a348a83cc770aecf90583600963a9131d4131fca95ec0b20bec3bc92b15eb4c1dcbbb3339b5c64dae86472b44f911b2e
 SHA512 
3d01ed1ed68515d8c3e4dd74f98dfd624be3dc1c825bbdc21ba387f84741960d5cb35f3e26b05bf44c4682ab02f52570ae235bb4173f41832a1734a87abf8bf2
+DIST thunderbird-102.2.1-ar.xpi 653972 BLAKE2B 
7778728e756c61af75a32f1737f39ef56c462045d83c4c5f90e312be429325bc0f0256514e7a55e8c3afbf1609716708952ed12fa7f1120de4d76b281721728e
 SHA512 
3dcf18dd2c3233d0698f47211cb6ab02e86a4104cf7885e048dba9e18dd9353f95477d657def270c8b54eb1f9a47c550254c1011b8eb260add12a94bcf763ab2
+DIST thunderbird-102.2.1-ast.xpi 570833 BLAKE2B 
811d65e39bf4739a8b69c33ec2010768264f8094ca20fcc31d4b96ba319eef8a41261dd164db79e5558dbd14d8aabea0b0f5e762db3256c828b79840cb3339f6
 SHA512 
a256e8a63e2551dabd278b7e1d863716efa35836031af0b8beec22e4e0c8cfdc9606ffc436617f4e7d2c252742937c6df5321b6482a44e40578e1bec27b48e28
+DIST thunderbird-102.2.1-be.xpi 685076 BLAKE2B 
d5b71f3e531d01c46b9c11f43ad6673b372be9de5c700fe9f4ed93b7509bd9bbed67eadd49b1d129506bff28d9477ab0e867589a9b16c7193e5e116492e99847
 SHA512 
93c0e3696630db05b4621be539c2ee58282e47e22341a6d61b24e3014db02f55b0c140b2d4d527ea4ce789bd18f2a2ac9db55ebd9013e47872effc56334202ac
+DIST thunderbird-102.2.1-bg.xpi 681980 BLAKE2B 
c41bafad4c0e0e56ae4c4929a3f949dfac870db0359b19371d43046d54cb0bc9b5601fe89f05567a145da225d249c0e50e1fd91d09113a69fd93d1a657206fa9
 SHA512 
ca75408cb7a6fc15f757868fe518a9aff50a4a2f015ccc743e4e335b048385164071600dfa4b6f171022dad2a3b7c3528e8a5764b1f3e2474fad3d4bf2c04f31
+DIST thunderbird-102.2.1-br.xpi 612641 BLAKE2B 
5ad584a0244f6a5349e51dfd9b7b53148c8e7d58b61eaaa5e45f53ab00549cf3fc1c6c32f05efd999afa61b542ec575eed5c5b436b8595072b8013dad397dc78
 SHA512 
aaf8ee6514a8b5d05fc62d5d1237328802def64dbb338559b37eaa8dd7a312a7c130020a9b29008f2b06cfd0f08099895cccf28ef663b9a21b297dd93d585664
+DIST thunderbird-102.2.1-ca.xpi 635815 BLAKE2B 
76556396519512017cb896b191895e001f3421bf4ed5c753014a8fd5ef22fce0575ca8e91c79d55d51b5bfbc594e05f77dbad2d545938bbcba3cfad86e92553d
 SHA512 
5a70b04712260deb62e007532b93fe4c864fa582756e0c97be02cc708e4acf56953b29cf3002ebd07713a56451ab5e0e447c27bd47cd5ce3e27a48ccb621811d
+DIST thunderbird-102.2.1-cak.xpi 642306 BLAKE2B 
411799a35ad29924702cf288501cdf236480ff7b897dee6e474275afe5c5585278eea54185344422ed1af9ead466f033c5c8d0357c6b6cd8f85bf80992e92e40
 SHA512 
0e44bf866f29dfdae03f0c9ec15dd6d61febeb122440cf6081fc04fcc098e4de169ba2dd4ea678c212fd97b94c5398dbaa77b09c1770b2b1d76f05319ae403e0
+DIST thunderbird-102.2.1-cs.xpi 706772 BLAKE2B 
0b26a59f7b459837b145d1b92a4e9465a434c5d1cb6ab397db83a9ec98bf089bfc43e8a2b5c504a2cba859de981fb65917b47708f4bb99b8e07e95bbbcea107e
 SHA512 
6959e16e49608ea988cdecb798886a0ee1b5f378f69c8de4033b516735499fff75133f6caf5a3ad455e4c7ca84a02045163cd604ecb449cb00935ce54b4bcf3e
+DIST thunderbird-102.2.1-cy.xpi 682669 BLAKE2B 
23d17b7ccf0b8ba40396af52debb2b027edd4e633bc9e3b86cd77386919fa39f307bd14e8c3ab05cc0a45d1c8ae7eabd5aa39c98db7e62f0aa1bc9ff57ea8839
 SHA512 
eecac4e0bcc97182d79813588b42d74621f0af59631e872323f945257db65776f783d7c0f5ebaa56a65543ca89a98e022cfc0b3ce312bcef78933746fcf405c1
+DIST thunderbird-102.2.1-da.xpi 668472 BLAKE2B 
827dabf445edaf997cfced4c8f012a310d3ad83972c1dce903470302cf247490980281cda541ea816a10533d35a7e3ec5b43ea2a988b8082891ea1d1d63469a2
 SHA512 
77fdf0a28e2d74d8b502273381ec5d34615d8e1784e960fd5d4c381b1702d2a3be43e7627e955ff6e53d2aea247496a5058d70f1444dbe6eda1f7afbdcad4077
+DIST thunderbird-102.2.1-de.xpi 702890 BLAKE2B 
a50a707074189a75f875f1dbe3ac255ceb2dfe45cbb09001afc86cf44ec9c97170639b3e3423c93a955beb7d7dd03822bee0ca4d4e1d97d5cdca635f3ae4e939
 SHA512 
7f7a26c216964fa6194ac513bd7e0b698e5b1497591458ec2f8b7dda110957b23533aa2ba7dee0d4dd576bb661764e448f53a3ff704250844c8ee44d7a3d1199
+DIST thunderbird-102.2.1-dsb.xpi 716113 BLAKE2B 
fef710ded898276afff2ed5aafc2b5c17e48592b5eb111354bb1a3d443db38bbb9982cf4e851f923cb81b7e4fba61646861bf153378efcb2dd3baffc32df296a
 SHA512 
c708c1e26aef41dd563571fe7b1aad2fdad3e0317e2bcc0271260de46f364fa338c4215055ace0a54519dd0a91eec8292e9164f13e58c682160bbda23e15c7ee
+DIST thunderbird-102.2.1-el.xpi 812220 BLAKE2B 
95516daade088ee344efb096f40eda726740d2c9a5f86ca7ee162d4355a082e93eefd31a61f1b232990c89a4f2a33a2783d1095d08ea2c0f7b30ff93f5dd4009
 SHA512 
9a511c96fb789fca8c5380878ed62442551643e74f31a32f692c3216ac73aec705c5e62b69a813985090ba36ed9c04a862263b75965a6e85a2dfe11c26d23774
+DIST thunderbird-102.2.1-en-CA.xpi 642442 BLAKE2B 
d1f9755cb9717d2f050b0a9f9ab90f4e7beb3f16347c1c2031bd13148d15febc97bd0d147e08ce4328641ef7563775f2ae3925a7d531ed61fe252ae14f539cbf
 SHA512 
1a6f4ef6dd0e4f9993293e6a0153745774eca0428ec2a8ab8f0665f6ebee9a78aea14bbfbc55cb4b87bf73eae6904ebed19fece50c62e86f788a4fc53d5d5840
+DIST thunderbird-102.2.1-en-GB.xpi 643348 BLAKE2B 
3e573d3165c5c26fa58fe57a6e8b856ba19254f57439fbc35b439d765555bd03eb576244834970c86aa0c60e966b33444b568064e0b995970aebf49d2c2a0775
 SHA512 
9a6578616ce8976ab97af832890e488d3c9aaf357b4ffe53135824aff6f09268ee764d770876f5aa434b3a506b24f565bb8734c3a0aa9cdaf60065c29411d314
+DIST thunderbird-102.2.1-es-AR.xpi 692820 BLAKE2B 
a5fb6f2d770994a2559779ee1496ec3ac7ab7cee6ef82bdaf97f77ee31a10db69efdcb34f771788427576f048a36b96974271eb6a3ce23de79c2c1f8077bd0eb
 SHA512 
4512c3d2a269d5aa5827fea8d4967738dcecf459766db3a0aa06761a219aea0681e73c5d2133d51978dec06c60e82518c089c1e75ed89823d71fffc68eaa73cf
+DIST thunderbird-102.2.1-es-ES.xpi 648799 BLAKE2B 
2e86cabdd6f69493d9751935c70e06194519ce0e726d6679e4ebf95223835e9e08a66e0b0059d1ff0058ba6d8fda51ac620cf1ac9b7544bda1b0857a17cfeb08
 SHA512 
14b6c312273b53381063672f6134ef47865a08583c29f11c1e8b1be8701996855e5509d89cba9d8270b6c386e2dc15c5460eac68a78f24e4c1c85c1d6ce649df
+DIST thunderbird-102.2.1-es-MX.xpi 695514 BLAKE2B 
6b29d56e0621b48390e6913a7083345103cad19e92e21a03dc8266b13b6a12999b4091eb6fdb1bddb43330978952e420ea36cc7ce2f7c4e2a070dbc919833f6b
 SHA512 
6c95f8369237f2629ece753746f1061ec37d6262d3f5c7472858aed6f9e6d291cb3dc79afa51ca3fc0fe413fe052853f1747991fb829d472a9bc1bf7ff3f28ef
+DIST thunderbird-102.2.1-et.xpi 666174 BLAKE2B 
1418a9d70a7a0855e0c67ddbd4eb3fa30364e57b80f680c6fbdfa252ff5fdac319c9916fe1b239b92e130c94f65c1891821ed49a4e1d6e8d17fb48a978beb71f
 SHA512 
fdcb218f572443ffaa8887e1f28041a12b9b24b520bbeb6c1c2928481caba9ed9618fe89b53d05adf5cf9f6d0baee8837e12530773d3202fdc06bfe91abd1a42
+DIST thunderbird-102.2.1-eu.xpi 677898 BLAKE2B 
3da5de50f1db75ca336448127ec25165b30baedccba645913fa43406c39e9f31b9e93f1418149c6ebdc14f7d255e5e1cacb0b22be89881e513bc0cfebf95b0b1
 SHA512 
d98f8b2afb0a6973362a396dc6f637497ede8ce1d6ba986dfd4daf60e456e0fc1299049b0434ac8456e33ec46e856db12486581597f171ad040351e9afc8a881
+DIST thunderbird-102.2.1-fi.xpi 668660 BLAKE2B 
5d0017ba20e9861513947dfd984c1119a12feea37b3ccb7270f13c43e019f8a408efcbe59cb7b5e15003c550bd332e69c7b72b282038c1bf2608968cf29b2118
 SHA512 
720335ba39fceb95cc176499bb214c9c25b8beb52e1a86c4f50fb21c892c58bf883e5d4683306c1975bb83b9de48a1a490c29d113ded8619301dced3cfad2318
+DIST thunderbird-102.2.1-fr.xpi 705312 BLAKE2B 
afa226e5d85c387c1acce6bb099bc4a00ad53dbf553541f7459f3605380a235d3fac3ab751559b4ba2afaa7ce6d8d78f43c8ca52429d3a1fbd847dceb51a3b4c
 SHA512 
5254bad21421cb67de203459477325b3959d57e3a5809634dcf0bf6a9be8a15445f89ef566642eb4b1b22f14bf432b6104c0e0e9c962f8c54c740644d3f02a7f
+DIST thunderbird-102.2.1-fy-NL.xpi 687950 BLAKE2B 
4fd79f230d25880272235f41428baa2957ae96d3c704cdd748ece9bd70165dc96fb63f13d28724a22d35174fd73991a9165b220f936c684cfc27426ab7173252
 SHA512 
0a2e78f8a4b19612db54efe636122cfadc9be15ac1e434ba6ae15f05f01db152c56b045c93b381ecf8145db23e8d3f519ee27f629759ef3ec5f41e7f01414ff8
+DIST thunderbird-102.2.1-ga-IE.xpi 606319 BLAKE2B 
242131fa8bce326aae8f4e32862f3fe2484c701263b5ecd3639e7a043d28433d4aa0fbabcdbc9e425b04ecb8eb14201a1dea6ad3f6cab99b79d3ef1736e0f5ed
 SHA512 
4227d74014d6b382762ae5fa21beddd1094ca2509b3ae309525db6b77b6429ded5dd013e405c7ae4732f6f151ee650a82b6c7c41666159cbc0ce1cfde804e28e
+DIST thunderbird-102.2.1-gd.xpi 630866 BLAKE2B 
77af416f25e53fa8efcc84c98b696bc599f683093647172f3af634397ea931a248018cb6d89169e7db7f83d4e2a7fd6057357f9633569da54884b398c5d62085
 SHA512 
1a71a7291d4cb7187694acf606240d584bd4b7983126b34eef8427110acf6e554a02fb9a3463f509676ae39ccbba1a9912adefabd33ebb49fe8f7fc2ba8c7b59
+DIST thunderbird-102.2.1-gl.xpi 663759 BLAKE2B 
88e39afe4154b42a27bf023a4c9afb5d915dd4674b8e7792d5e58e7d9ca28fdd404525a6f5d37f6ecb8fdfb0e2d5affa55eff14cbbec70dbaded1075c26f9793
 SHA512 
1b5401f297c3e16dd82ac846b673ab7f750c097d59a54e78ff30ba1d267127c191a7e9b51df5d7de726d17ae4a0338be37c11dc9ab0fb20552ce5869084e4b66
+DIST thunderbird-102.2.1-he.xpi 661738 BLAKE2B 
c9d28bff019e1c55adf9793c7b42d0b2686520b39816d593f58b4cb309261b170a7479c515e2017c02dbd8ecc000c6ddb67e88e796b616042facd122d8731541
 SHA512 
d450fbe618bbea069922360e885e2a2e70864e03b7bbf02dd3d5f43d5803b062b4367de9f36fa0e841e2f97f77d0185a37d5fc3b11f1f62380a6a12e88ef988b
+DIST thunderbird-102.2.1-hr.xpi 661213 BLAKE2B 
823a23a8202dfc27405c473de86acdfff94fcc248e99d54f523f3a1b62db003530a25845a0db023f3ac3abc6c5f2f4b7f2dd4a02848e4793e9703a1789859de8
 SHA512 
670c6e54fe1094aa907dcd58898d253f22c010ea1fd8e3b72e815f4502143f1cbb2c52c02579fc23963769432c62d7f8a4428fa0180eeb694bb2335e9a9195c6
+DIST thunderbird-102.2.1-hsb.xpi 712946 BLAKE2B 
ec3b08ce32e3b3d3c2c285d2fca55ba1206ef0123f1899707906c35fd3be220692d24b234f04ad3a434e3d647d1221ffe57347cda31fcadcf8ff0d0245d578f8
 SHA512 
50f5a1ccab590ea618ace8c3264175a26b356fb683c4809455d722f9de319ea91bb96fce20ce215b751390dd1cae63cd5b3f30381b6543002b10a520dbac3297
+DIST thunderbird-102.2.1-hu.xpi 715823 BLAKE2B 
d0c19291dff98e33697210ef5b06b8b12241243acb152de018ed975c0ec67619e8f662174d660b582c31ecee78fb5fc563cb94790269303cf4890ad6e976f5de
 SHA512 
6b2fad69d4247d8bf10ed955b68c8788c406eefef48467cffa66906fefc203d691c13286dab1a5e128a523624cc66691c6fff5d9da986f7cccd8a3890ef0a22c
+DIST thunderbird-102.2.1-id.xpi 639688 BLAKE2B 
2fdfea50798344bfff2fb66c5b88d6e8908627799e0cc943ba0e6991800f5fb68ca1ad3e72a4ef3125ca2b25bd03dfd1c781f55a8ed1befe77bd62add1c1820b
 SHA512 
88db7b33ef9cd19abca5f71ae693fa92949634422b27d76f4028e8a64dec2fd4904160a6edd20fa0da699ccf88a33a132068d203dbf0cb480ec67918a00d284b
+DIST thunderbird-102.2.1-is.xpi 679301 BLAKE2B 
e90303dae3486de9ef6b6b03bb1924b9f2fbc392fc5a0c96dcb17bd01bcdc5d5a3e69ac46795ce28494152f6fd0e86a16a90a4f94dacf8dfd9858e874f532353
 SHA512 
87f493aed4fe67485a5242bef82a4152f7261578db07ac1aa1425ec3e06d041f9c9bbad4071676c4cd30d855fcfc33f9a6bd3c9ed5a5267dd0c7c6ada8647005
+DIST thunderbird-102.2.1-it.xpi 597643 BLAKE2B 
4a714d65eb00dc269444a2a15ced0fb6d71ca4469c2a5c1be35886cee37687f8ab2fde643443b5d4872a096b0985eae709e2b993f6d641358c75e756b8233c92
 SHA512 
26871667226ad4506f42880ad4a9bf2114e530162475c70edaa372a65968875d00587e904574b8785578e0e0c9c053c8bc2f44d869c61dd3fb6caa6070aa5a51
+DIST thunderbird-102.2.1-ja.xpi 734595 BLAKE2B 
641dd8dabb969f332a384e1c52f3ed68f4178f223288555022c8a30df020ffe4015f4515d0e35940de2f52e7715485b023997fa745909495e8cbffafe11a8966
 SHA512 
4a9fed720296759a853867c762b8bd28b3d0ecf5284a743af71186c2ff47652c8ef986028397b2b1c64c0a32f969d89cc33ac16a547294ddc7eccb7b2e1e25ef
+DIST thunderbird-102.2.1-ka.xpi 749215 BLAKE2B 
4f0a78a61edf38a26f14d723f0db06a172f067fc375a71ffd264e2106033b27a6399f44707b3778305b2e2aed32ec091aa937745dbed97c53e372890ce73f44c
 SHA512 
99b4849bea2efe7a50056d17b3043e505cd7488085ea8f13133e63e5de1cb169b51a14bc908dcce3a1a55a4cdd2e7e889a46b5ed07fbe4465474a336f7616c84
+DIST thunderbird-102.2.1-kab.xpi 688250 BLAKE2B 
84d364501980689deb0bd069d8334a8149b589a474308e55018f55e728731a462803e90387ac753dde7ded0f50b41ec1eb96ca104e3d46729be4ce439cca2d20
 SHA512 
cddd2ad7a4c94361ee2cf37437591613f883515b73617bc79ef26c4d81fec47b5f879117406e78ca194c3285380f7dae1a3f006feeea9b1ae60be36200013b54
+DIST thunderbird-102.2.1-kk.xpi 730864 BLAKE2B 
220d5df99aad395b70457f275fea01ee3e5b864072c54c9a36e2f86c151c4a3dd6d27fccc2c271d4c429ea7f0123689a803f0b522807d827da37306e1f503ba9
 SHA512 
6cf042fbb654e178cb8906df98ae11d33e466b0194774ecf272f45430e1142e62cc41fb079e057b42635c7ae53dd46531a08c05bd10ddde85152d751ccf139bd
+DIST thunderbird-102.2.1-ko.xpi 693030 BLAKE2B 
c905bae92bf8494612f57f8f4aa9cd73a71a66e6c9ecd790e15e8e73f646818cc5c973da8e0409b0145735a3ed8e1b6aec079dd80a7a3d5869731571a4f29bab
 SHA512 
2ea50b6ece8d75203f009d050185867257575ac50fdccbac22bdeeeb87f0d1ec7b2150b7235c0c987a026e70a47aafcf63ced190ce98f765d43af7380be72bd8
+DIST thunderbird-102.2.1-lt.xpi 681567 BLAKE2B 
eaa9bf3d881dad8acef7fb50615f84acdf88795cdf5d6d053ac82269cf425c75e2b22f375dff8781e8b0bbb8298af0ae5ae6a78d3e7e2651345381c938689af7
 SHA512 
1ff9e5ca556a2c768751b7720444da077e5d5be920ead102d725335793cd40a67dab3cb40b49243345614ea02958de667e3fa1d30b91c9771803508eaaf6a8ad
+DIST thunderbird-102.2.1-lv.xpi 609152 BLAKE2B 
6f4967d1f6c8c37c0d2954d2b1f79882c7516903fc4515341b7a4b97f4e6c18fbf45c6164ea17c450668ca28f3ce21a5112926d45c525472c905fb4d12f7a1da
 SHA512 
d9cdc204f3b21a16096cf6748d17cdcd3823ca159760db3f8a1f96d2779eff4bfcc77ad379662977ed01042d2d704f1623730238cc513a24ae382b45e75f6dfd
+DIST thunderbird-102.2.1-ms.xpi 569973 BLAKE2B 
769f35a8b585f7cdd8a16d037af4e99a4a459a5e65eb8c3fb343be41f32bf6326842722f96ac57c7ca863b9bcb2935fb0c18863bd58b2f9b0c75847d0565d706
 SHA512 
038a4ba119bf17e6c05ebe8e10de3e2f8ee2f793fa6cb5e04ed6460c4323199ded2bacfdb053c408c8d701e64779308960613eafd70c15d1f41c3b1ae22db073
+DIST thunderbird-102.2.1-nb-NO.xpi 647802 BLAKE2B 
7dfa2304b9cfe31b93a3c11ca173d4c1c9b25a78801abc26c1123e53c03afba32fd1f394d5c7447b1628beec1ed7e4e35ec02c545c289bf819ff776731bb4913
 SHA512 
25a0a8a8f5db211ab48adf25c1b0b787702d2cac373f30f562f46103e1ac32dd2af2186ab95e42d5fcfcc9217e4f26e855be7aa32f7b31ec508ccd609c27057c
+DIST thunderbird-102.2.1-nl.xpi 679619 BLAKE2B 
dc6a48b8d27d4768d9d83afd979da28b02dfb7dadbc17d0a80dfcf666cf56ad511492935ff49b260d0dfd23778f33bb15c13d7195682cd43ba9d88e7e12d40ec
 SHA512 
bcc6b146ff1b6bfd14bf4e25c0d96e2b8a607c61b95c63e933a0b12915582705399cbe2ed4c698fc98c28e5728914c7c6e830ef9955ceeb472374c6c26475597
+DIST thunderbird-102.2.1-nn-NO.xpi 655077 BLAKE2B 
5a3d94963aaa58f278a55430767f490cf8bcb3997c4fc9b743de36839d567b59bc56b5a3a1c518ef38f360b97f73e99a8863e8e173637f710c5568aebcda167a
 SHA512 
74ee35dbf115fb88f0f66d86f1eae8ae7830a4d1921a58653b387c7f59a57fd257726a9d499e00f032387eb3b0b24a4ea7e767e3fe6e5e37eb93a1671105bd4c
+DIST thunderbird-102.2.1-pa-IN.xpi 644807 BLAKE2B 
d8e44ba3e404d29044f33484ab6316f05e8cd9c30caca79753323e116e9b0b4a4d2d29b0f0f3220c653a8bd22f61a8215088f57c1a3a54c2ad0fa1b627493999
 SHA512 
263fded44773747a11772c3be8f218f8d774ca2e5b53c7e3abe7abfa0d7a1b90892893a40547790ed5f83970895ef6f3fed6c622a8c2d7038059674218d365ae
+DIST thunderbird-102.2.1-pl.xpi 691781 BLAKE2B 
f76b2ae62824f2963e779e846b57d5a3c2b22f9ac3ea338092bcb6f15ca6e5df2e6876c1616754d9d063027bec876373d6a2b7b733a3bf6dea0f44730cec1ea0
 SHA512 
4832bd0b2f68ce6b192b8dccb1735e7341f67df731f97834c04bcabce48a85eefc5a9b90af26acde93f0db638cce8c04e60364c56da9d913a7340f29f1adedf3
+DIST thunderbird-102.2.1-pt-BR.xpi 687262 BLAKE2B 
a0e5801d64c0efc4c8709bf06f69fde1a65e23b3f4625f88aad0aadb9920fab8e2de79c7d6967ec37d6c3c4bbf9d4e0dc4acfe89f7c29c1994b6e862c67ecdb0
 SHA512 
a62c865a59fdd60498cb223b8d1852e4ab20c7432ca5128d145bb2fabac83178d2e0a6e82ac3bee93435cce15c4919191291e53f4dfa0d8a19ac6732ab2a8fb9
+DIST thunderbird-102.2.1-pt-PT.xpi 665589 BLAKE2B 
5a7a471071096c0a47929224be82d8ce8bd5af0b6aba60f91bc51cd49a25c0c453de03513d0a69fcc40100165396b8859d02ea8ad0c5dd0bd573426c014fc21e
 SHA512 
566f2f932648e9288b9bcfb75a4d9799dfed94e18cc17c0992a8c587083d1cfbd9aa9398ca4e26f4b9a73b63f6790b8352a2c304d00958bee9cb9ac7ecbe8525
+DIST thunderbird-102.2.1-rm.xpi 680752 BLAKE2B 
297a20b1611a737463e097860dddeb2c66b49b810c7a3dec8801a6174735935cef9fc4d24121ee7b231648b352fbd9128105a07b3afafd28c1c482b178bb05f5
 SHA512 
745b8f1aa2946c15aaf331dd207dbd3be5acc725feba47c5135475475db6da2ba58259b4043ce451a9c5b54b1e21bde2482005e33792248d5dee4d068bd3b7a9
+DIST thunderbird-102.2.1-ro.xpi 651252 BLAKE2B 
20fdca39e7d2decd88f94ab374f74f3332abcdef0fbb0518d8b4107e58ce1f40fe5f139c77e2510252f315832ccf3cf0087e7adaedaa5b03614b483d4c196be5
 SHA512 
0e9ceac3d12d3a81becaa6fa41aec97691e8e2179417c48c3ee4ae8e8eac45827d2bdd3d1475731d0bda3aa3009d4640b9336499bd894d98c740b504871b5819
+DIST thunderbird-102.2.1-ru.xpi 797369 BLAKE2B 
89acad260dad71d846d05da21004745992543072edbd36e0e50105e0bf6812b48724c411c88e281d339572f75f1bc7c3eee462e917bef8ac9e65360a6803c60c
 SHA512 
62ca30f53c1682869c45793e0f4a403d26b956219f260072b6fc6eeac9c4118b988e616bfd5d5c1d3cac22ddb71f8b7db24ba7ef6fed6465871684ec32240513
+DIST thunderbird-102.2.1-sk.xpi 715673 BLAKE2B 
7db6d3163584b8ef8cf97f073480e06b8a78972924451b583ad66fab7398b74e89443d04e1a7ee80ee75530371c54a6567ee35269ba84ced02d676a1300d8156
 SHA512 
2357be4eec0c7892ab6479dff2b2856643b22449650a6f3c84be0f0693060a4954479d4c723d98c18adee13fa7a2a9be32eacc5bebb20e13bcb39a812f601846
+DIST thunderbird-102.2.1-sl.xpi 679736 BLAKE2B 
83cab4e69c99c24e1653bae9215ca4b9f3fdf4f47008025054a414a1b3b46781668cb5a52f66e6b57bc6f27e1c91e408a57debbc114f4db32e7c53101883dba6
 SHA512 
16638e4df392909340d6f1ea1a284035df1112cfd27dd927ee04f321fa6ffdb0f1a93f47462c1242c9b3c1caa96095a094ae8d0e36a740b704e5bc33617f34f8
+DIST thunderbird-102.2.1-sq.xpi 690437 BLAKE2B 
7b501a37555438d6091bef95d92dbca500d232f00754b1bea3b27f004480496aad885ebd34082f97b951fb21675dc93d32c146ff2d7c75c5a2a2db1bf90d7a07
 SHA512 
ea416bcb450de42e033c728f1c620a6b250c037e757fd27add62f6c53f7a67e42522e19d0a889ea04c64ca51d2551d1e9e2f7a6ab3118fa23c8298fd2ff620ad
+DIST thunderbird-102.2.1-sr.xpi 699187 BLAKE2B 
2ba6b3882afabf9806c958fc801908890b70b56677db943ff8069201b3ca9b53a97977f3d967ffe9dab2a4026fbc0f9fa8eb759dc1c6ed48991093f01876d423
 SHA512 
76bbc071efc26c65630f00d8f0b1964489a33c4da22ed3a32c6cb4c2a8fa54090522cfccedb9bbb9e95e61806f4d62bb67dc617f2f934236dc3d81b36b747b85
+DIST thunderbird-102.2.1-sv-SE.xpi 683269 BLAKE2B 
fecc1619b2b408c1b8f56c9ca9d1744a8e59bed5faa850f68d1c7d2efc333777bd7e42f43081bebbc280bc8266eb584e96cd5c12a119ff16172b1af9dbb9a11b
 SHA512 
684610cc4598d09e3f9db631d0373eddf6a56a61c7adda1b2f658bfec7ce2668c101dc882dcf53a1780b153a5d79bf5f7e289d05ca08163f71bf0b8ce2006b5b
+DIST thunderbird-102.2.1-th.xpi 734935 BLAKE2B 
373e2f7eb84ce78af057e0650603f1e0e675bee47b29807be715b10e468f1e08f9068c99f54fead1bdff214b10354804173d23e336429e0ee9ace77419ca9aea
 SHA512 
a0de3b0c799e432fefc2c3b7962720b2e4bc759e88ab8f6a7cfdc748ca3f0b2bd4d130ad454db4bc23c60331ebae5dd881fd689bcffcbb7e302e739957b3e2de
+DIST thunderbird-102.2.1-tr.xpi 690951 BLAKE2B 
1c017489e9b974c8573d4cf918b1337fcc4c69ac51fe80372e64a537ce150514f979714bd96b36ddf4edb74381c6f36fd22f1fe6ea163433b26dc0393a0e434f
 SHA512 
2436f9e8d5617a8cd6e4c885020eeef2c86dec2d777fe9faab9413a11cda07ee1fe72235fa9937e2d911a38e73baedfc139309a57e2daaf2c7b10ed71d7b4009
+DIST thunderbird-102.2.1-uk.xpi 790045 BLAKE2B 
08d71f78a7e3bd9b7e0c2d0f482b6fe3db3bde9e8749c832eaa3ef3f4507ce7ff75c52048949f398a57303788ff97bda033b825b6ad122193c83ea56002d39ab
 SHA512 
d52ea74907380e1ad9b9ad8a9dc49b8687f59b445f74d7b649d6abf57794df5f83ca3201985a2dab9fc80478461540d1cc40e63e0fc2f4b43d1554dda90fc0d3
+DIST thunderbird-102.2.1-uz.xpi 586791 BLAKE2B 
0f692b6937d38db766c5ab51a3223f979845f12fd53b040864b9ded4e5554c8f584ac4ecd20b00961c2197411766f351da0f90a6850e1912a466a24e5e1e10b5
 SHA512 
68a9d8d253c75da028a6e155d64fcef550b00cdb696602a824fbe53566c94d163b25ca6743721854b82d9d61336a27341528f1d0acdb8ea05db044006cb323c7
+DIST thunderbird-102.2.1-vi.xpi 721452 BLAKE2B 
d7a225305a51d837a019d6679d0f6c6bae08edcf18b0e44a448e1173ff17094702d381c3a844f05165c08b0b589b8666e95825480a1f16f5ce62f93a4c9575c2
 SHA512 
5cc7b7a3b314cde1337af6bb5ce73620a7880a790f96b2be1766439033c806f201dc0e97f74f7bfdd410ea9cf985faf5f1dee2d3a512e48d378faa673ec2b5f8
+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-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.1.ebuild 
b/mail-client/thunderbird/thunderbird-102.2.1.ebuild
new file mode 100644
index 000000000000..5b45a09b43e3
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-102.2.1.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