summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2022-10-07 09:52:41 +0300
committerJoonas Niilola <juippis@gentoo.org>2022-10-07 09:53:12 +0300
commit2f6a615c5499468b7ecbfc3b345ac07515b5c0ba (patch)
tree922320cbb4ab24ec0ccf17146a5722dc408dc9fd
parentdev-python/requests-toolbelt: Bump to 0.10.0 (diff)
downloadgentoo-2f6a615c5499468b7ecbfc3b345ac07515b5c0ba.tar.gz
gentoo-2f6a615c5499468b7ecbfc3b345ac07515b5c0ba.tar.bz2
gentoo-2f6a615c5499468b7ecbfc3b345ac07515b5c0ba.zip
mail-client/thunderbird: add 102.3.2
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r--mail-client/thunderbird/Manifest65
-rw-r--r--mail-client/thunderbird/thunderbird-102.3.2.ebuild1165
2 files changed, 1230 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 9c4c82e57da4..999c401ba5e2 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -65,6 +65,71 @@ DIST thunderbird-102.3.1-vi.xpi 725408 BLAKE2B 175ba67dd70acc7fcc917d5249257b54e
DIST thunderbird-102.3.1-zh-CN.xpi 723936 BLAKE2B 4909615711dcea8bbb23e2dc0b4afd566c855ae0a0f0da5b9e8d0a211acb38cc65b96da7f3b644b5d17b4f13eefef6b9fba3f91345ca2efcda876d8c33d74e69 SHA512 98b77d42a496171c055068e4cbbf803aaab1df3d83f04f6cb0948eb52b45f72d284df99d370d1d96f876022b7dc57ff8ebb8efdc3755f968bf42c27ee9af346f
DIST thunderbird-102.3.1-zh-TW.xpi 727835 BLAKE2B a3dc198cbd322a3151b96c65684ef6bf3644ec72dc94e1103ce235a9c1b086d594ccda83f877f064e4eea765a3b0457f9f2c8780e1c59428e4594a1441a44005 SHA512 058e0303d255b114fac7db6ba7aa8ddba4b3525bee72018b438c9d8ca33d2b48562e4050b538a521f430ba5056ba00a4a437aa7397fa7ef28ee35db3da6f9810
DIST thunderbird-102.3.1.source.tar.xz 502887916 BLAKE2B 7eb98d8f1d4c42e2e7e5264983be1cdf3cf6e836653de9012558e6787569bd5ea3e9d9a31f15896d1729f3031ab8ffea765bffd0d70b157e9b9c0e180ea0d585 SHA512 8a127958b35c1c14b8acaa3ac256f8a3a7e9bde89fc810299ae4036c80c41d0c0d45c85ed47099d6ec37e2774a6bdeefe0de6b0b4b8bceca8206c7e54c3f93c1
+DIST thunderbird-102.3.2-af.xpi 551429 BLAKE2B 893b6540c36ae2c3178b45c9d771daf86db5e756bbb5eb040947a0cb473f678b759f51258e5fe97bfccf0fa24394689bafe88f810c1570fb5d5d7719b2a92fa5 SHA512 90953b13d343e8176cb6aff06615137bf3fc90f167b4f57988cf392339e52b1373d0bca52f0330eea7fa81744973a0f543abc6364702cbf7ead2f929753d0510
+DIST thunderbird-102.3.2-ar.xpi 655776 BLAKE2B 31cc5327128639365c883e610b003abef83c82660b8ea97abdf3e1659fe1ef249d4a10480da9db9d5cd2b4a8dd69c6057b5021c4b5b7fe32729c5f8769bb897d SHA512 bb4ad986ab1b2ba394b24115a5c42a1b03890268a786178cfd3ed516129056f5c77a04988059711df2ac7309f097a281bb7619d9834d56380d0f461ffcdd22f9
+DIST thunderbird-102.3.2-ast.xpi 572188 BLAKE2B 3a5613351e2ff235d06ee8292f50b45e9a441abd1e43f7f094bbf3be06e9f8c1669a1c39c1c9205c3809fa8c737e91fe30665cf0d5e4bfa0201ecfa583e46b32 SHA512 4011120af5cca3fa37459cc15f043b0851b9b27ee130de160e5281531b91671641cd9dfaf385007f913236bcbd262b6fc1605eb465522387846c8c221a5bb225
+DIST thunderbird-102.3.2-be.xpi 687888 BLAKE2B 948f524d8141279db58fdade014b4ed190b2c909228fab2412483904c499e5f995ebe5eaf55b349b063caa340c0659052f66a104aab0a19c688a2998c8ef66c5 SHA512 12c24d099b6aca49a09b6be124c0149cf1c2cd02735895be0085c1fdffca89c15469c4eaab16fb79e2fdcc1aaf6768d1c7987174b693ccbc88ecbf27aabe52a1
+DIST thunderbird-102.3.2-bg.xpi 683814 BLAKE2B 5db119090604c71b950cdc1d98680f3ac4db9525547bfd90909013d5d0bd5f4243e83e207c8164b5eb8bb44b03111a4a898bba2ab3051888eb9be467d38c6a66 SHA512 cd937f20ac6fae0886066c8b19622b8f867ca4d359c2806d6e771799a6307697b193db1f33f9c54eba8db33c0f1ab4d24b157bcb6c9942b81ac7964388367064
+DIST thunderbird-102.3.2-br.xpi 615535 BLAKE2B f6eac77d4b3ecdf471f108cc6fa9a5253a62a406b0f0cea1b4c67924ed35db2722c0315259dde5adff7ee5f65f40fc960e8b5dde92cf920b527b9f4c92967141 SHA512 6978b456e21434a922d605e006d875aa8afd78de50966b08e88886b817e85966a56bfe94fb4deffdb9edd550683896a2964944bdd2cf994f6127b84c12e8e7a9
+DIST thunderbird-102.3.2-ca.xpi 637764 BLAKE2B e923172ecf883f4cc920de79f2d71e447693c587615378d73a880cdffb3c7d4c3a6310370be8ddaf4e5d1e9b22be2e4d4e9f8410493429746e70947e8404b69f SHA512 224a334bf2b7d4cd6cedad901e87f934182d7c32ad359f268bdd5770e581d6c99fdc4edb834a2d6b92dbe27814d15b3f100f2d58500d69123315d884dc9406c2
+DIST thunderbird-102.3.2-cak.xpi 643999 BLAKE2B e29b18a77420a9ab470db0338a50c8224951bb733c78a63cb28955491a8704d2c5a8b4e7214dc44870b5e2a4458fd5dcbc274849961e7c4026e661b7d6f0355c SHA512 feec7d3beae7102f74d2076c4ffd98649ddea0cfbcf1b9f36d646924098439705ab01e81e71309dc38546a341060763b5d0bce2390b1efab5a348050bdd9fa59
+DIST thunderbird-102.3.2-cs.xpi 708438 BLAKE2B 797274570bdb89485639f31f0ff67ba1db8820d4cbf464b81c907317fb7e069dff140af37e101d95ac0fbf2eec4ad37960af18dc315bbffda5b422031c1d76eb SHA512 1a26b31e2daa8772fdb2e95f2823269b7103c597b039ffc82cc96044ea7efd826d42b0b9fe143ae5f7cafbb076e1a630041e2692b05bb092d01453c7ca70c292
+DIST thunderbird-102.3.2-cy.xpi 686632 BLAKE2B 2edd310c85abaf48fc1e1c92f0bb4897cfae750e5a3476f93f84af5ae0a0806d213e129ad6aa11e2a6fd94c00fe6d9b927837a5a57397c7785600ab02606f3a9 SHA512 846049f76079fec63f672f15300add157c65bb28c43fab0b5fc85bb8001c0337c861d0bd0ea6efbbb1bfa47eebea16a701e64280cb358367591afb644e9895af
+DIST thunderbird-102.3.2-da.xpi 672076 BLAKE2B 246ddf3eb1b26d5ac910bc67b2a10b87e96f6bcc6145c818eab243369368d613e734291285277c75eb9f42e012268099b407c24cabf711baaae851e508ae264f SHA512 f6a5463ea906c2b5f33e7d756dffc7d4821a7f12b0c8f3431605bde03574dc1ed444c60bf8c94464c701b71d4ffde4dcc1d1d479c75caf7e31728ac489590db2
+DIST thunderbird-102.3.2-de.xpi 705096 BLAKE2B bb802e1bcb2e6b713bd88d96f2a614ebb676991e8754e5a431fffe09ed6924862196cbff2f951cd6e6cae9ca77805e0649ec7e29eedd50a5550dd7df70d3a9b5 SHA512 88f3b94bd83c64daa0bfa248c19630a52fd1321625ead9545b7c01090e031fba3fca2c9dc185ae8c0536ae89ab5757316c798eadb250a9dd7d2aebf9bd5391cf
+DIST thunderbird-102.3.2-dsb.xpi 720127 BLAKE2B eb757cecba58ca36b0d963569ee3e2078cddf3a4550d42fbbbed0b7a44e63d5a15ae652a5abdb11f7568fb4f4fcd845ddc1925d7f78b4d7d63775483e7fc9fa5 SHA512 055d38f2c747a7f4435320a93fb47cc72e2d5024360f19b541d38401230cc3fe24f3daa74057509661dcb3ecdaecd39008e6d101fe7a5c2cd1f787f5b69f8df7
+DIST thunderbird-102.3.2-el.xpi 816975 BLAKE2B c2bdb8ac716d3b5170bfdfe99ea143ff46660122cd4b7948d3cf7ff04c8ff0e957fa8382eb42fe13cc7c79b24c8bd755f25eb2c5f700463c9951360cad8658eb SHA512 d3f9c10e3847d6dc31edab16867751b16f03d09579eb2e7a1bb41d4f9f8d5cd90266dfacb6aef4143e5cd8ff7900955a2a8ae9f4daf5f06c59ad01729cfcc0f1
+DIST thunderbird-102.3.2-en-CA.xpi 646633 BLAKE2B 16375423101614d8a9dc7bd32e49f83926ba43f4eb1ce4d9b05b9dd5db3fc6f6751563b731d90579cb9c7c85f3886cf00c493e2450a54ab9d938906f9bdf16bd SHA512 5b59e82f4d5497122a227135a27e1b1d87452670a441a68b05cae82a1d2f8535c58d31b2279490d4763ec0c8a60d672522a0851b0c9bcb8e86dafb39ac24b246
+DIST thunderbird-102.3.2-en-GB.xpi 646925 BLAKE2B 27a04c9d934c5c620e8d2b7eef104cbc5af2e39fdda58b0eaffa140fedf6ca75dfa3e7c59bb341c33c6a907fed0313cc767fef895743baf4946a919255f0b65c SHA512 94a81018e8cb02d6369895c59aa7e6e99b2ac9425d5ce353d1dfa1533ec60eb881a3811869d7ef391de8da3897b4eafba34cfa76da1f33bd63cf875a2095b44f
+DIST thunderbird-102.3.2-es-AR.xpi 696738 BLAKE2B c8afa8befa942ca03a57b945be626214b342ca978e51f07ea7613a91edd810146a86c729f2c0869abf6a5fbd82e988daab3ab2234fead33bb345523b115d5395 SHA512 7b6356d36e019ef19ef39b4244134fdbf5eba6c70833647175c889898e7b94df40dd4018ef93264a0bd1bf09c4505f9a7a866f35d4f2e602b62f814faf577a38
+DIST thunderbird-102.3.2-es-ES.xpi 652535 BLAKE2B 67c3b24d34e561a3fcf7956f9c5318141c6df6caba3144b1acdea4356d60bd15be2ce96bc372ab1a1f31316f5096fafd2af85025bc5c47797f8d64aaf1e142d4 SHA512 558a063fbf11b1158544e09e8eb4d9aeb4edc0c28bc2ec4075a0c7efebbb14cec5b8b1c5b2aa6761591c8d9c52b8d7a7d56c00ee495cc3b4ec1d76bdd8f45594
+DIST thunderbird-102.3.2-es-MX.xpi 699368 BLAKE2B 446a6ae01c2fbf78a0bc3e94db0d74501dff1635d30e75179082e81fe0d30901329b86c3532419fae94def12da33efae3950d080b64b6dde14edaca6971d9745 SHA512 0ff1c831d2137d1ca27e2e78774c3b9737199b48cb0d781b9f61a2e844c43ffdae633457981400e4de5efac7f08304d52208f7cc0f1b1112088cf980948eaa83
+DIST thunderbird-102.3.2-et.xpi 667781 BLAKE2B 1e99e9c4859030fa623a99d8dd3a773752a54eacf68ff9bcc52116a6e53cb22cb8a82aaf52ac006db431f0cce83776f1fffddd9e4b4ec236c0d09db92029a9db SHA512 5d30ffd9090c8eaadabe83a155be9b56e76073a959c89350cf63b73fbff7add8d8c22b77ff2af6dec0ce9587490ce602d0b2eca80a4ca790a6e5c15d14c5b5cc
+DIST thunderbird-102.3.2-eu.xpi 680746 BLAKE2B 29ee846812cd68e71db349d671eb7be2ace14aa1508a7e8fb68ed47883570e5a35d6f00663c11a95dc4c39467ec3a72ea7a41e792ae81613727275dc8e63946e SHA512 30c044c161a0d58288ac4a8189fc91d306ee2f1a47b00a9322c261431c8dbf763c0cfb6078cbee7ceb358155f4a3b82c9bcac9d5ffe3a6584b6bf13734c3b27c
+DIST thunderbird-102.3.2-fi.xpi 673890 BLAKE2B ca8ce5d81b246438dd0441741b0f2d561879223e17e15bf306b20a17c00c64ecf7cee8385352509967b73eb93101ff7285c3137e1ce02ac78f2d8fcf4463e983 SHA512 d296035cc09a813ea7cca50fe7e46076ed607a3cf08f3953ce33fb5af7de4dc7db8ec5cd974177882ea3ab0228ed18777b0587da8c8c6fc337123cda7b13f51d
+DIST thunderbird-102.3.2-fr.xpi 709323 BLAKE2B 83ffeb07cfba46ad709eb463e468dd011d78b8083dc5f36ae35015d20c3f8c6153c374fedb5a7a31bf11743c6b0c417e7135394b10885d351fb4e1e853fa5cc9 SHA512 005ce48eaf55014c7b09aa81afc32d5968a910d0bd9639bc35ee9e7cc069770449f8aa754aec68c213d112dcec0b5c4d74eb6a662cb781c66e9675b5f18904c3
+DIST thunderbird-102.3.2-fy-NL.xpi 691751 BLAKE2B df7b0fb1ebef2fffd1c3d7287d21d0d0a359d76d3069cc6139dd76ffa89aff97edc5957c940c0737f1c3e0b7e72d7aab9cf1d89755406361fd02c79662dc34fd SHA512 81ed53d980713f9c1c1d4f38fa601183152df1d8deae79f8178285cca1fec1d522c389da1016c09f365f8a36bb8b133ccd820e9acdf2571be1b2a64d67699c09
+DIST thunderbird-102.3.2-ga-IE.xpi 607655 BLAKE2B 4fd90486d5eb17f828ab554983a8720fb89bfe064e629f3832bc6bebed442b1f3bb031183d2102c1bbda6dc6c61799b1fd0983bc5cfa71712c6c4d450c4f3b41 SHA512 fa9d443ca8a664f28212130fbce49612be1153ee383798f902fdd047050edb1eded2493661606a26e9f03ba1d33ecdcbd63e997ab773bd1f0f183804062e0cc9
+DIST thunderbird-102.3.2-gd.xpi 632516 BLAKE2B 7d0ee5d4d5ed6942c10e6fdc381b4470855d836e672387c7f28b33edfd2dede5d451b40e4c4d6d103a385115b9b7a2378142e0dafb653b7685dec4b562d716b0 SHA512 702a33062ebc93c65b4066a396cd5ec7a84c4c4eb6282f6ef506f33235061639a9ed348b4de712f89b2d52b7932416f6bba291c2b786da32827cac9083500e02
+DIST thunderbird-102.3.2-gl.xpi 665403 BLAKE2B 99c8c2d4f32e57c76fa999e5d2bb17d939abbdd17e520d379e351973c07096363da2af78b3986654a50f6a90d8919f53671d9e960fda85e7c5ec787fa1e80f95 SHA512 fdbb6f371df6f43856ed89d57b00b00d3dab7c5efac5c10aefc3e499cb514ee468c4db3c99610b7a0abdfe6bb5129e14ce0ed40dd247ce990e799a9e10d6d25a
+DIST thunderbird-102.3.2-he.xpi 664220 BLAKE2B d957ec65613ede783d9ba8b0b25f0bab5c26e54cc8cdb50d81c7b8c7bd1c415edf3502c9f0dde333479f648ed934141f1a7f88ab2810fb96ec1c8dc60945b6d3 SHA512 1f5b13525316949c4e8bcd15daf4ca2e400a685d295bc9b37777b903177e69fe350b6fbf23876ffd871104170cd70a702c65d119410f85d43a8a70cc75496bdb
+DIST thunderbird-102.3.2-hr.xpi 662851 BLAKE2B 388930b8f55fb598b33810fd62b025335d81c7407cab470a60bd9e374e1a2c95e4d9498b113a8adf30218e6ed6ce144b60fc4c1b93c4fad5152cf367a3d586af SHA512 ce8fba8c774de3ddca0e2b70bdbcbf3faf5ded6ac9385802b5f30536c4387b669685893ad54e76b7adcd9fb62121cda71959b1afb6bcc6bac199d922c3420b28
+DIST thunderbird-102.3.2-hsb.xpi 716922 BLAKE2B da2631dd81f31a8fca352f02d693d41a6052afeb744bd5ae11252f0862104fa7be5bef1c70387079f639338d473097f4263392b96474fe7bd8be82eadd12ffe7 SHA512 39ae66b9ad1a63d773c634c3ae2aa697115a77bee67621b27200b1b7181409295d5f9872e91f267a721e15554dcb5f1377eaaa31078fbf574a677ee9896bb7aa
+DIST thunderbird-102.3.2-hu.xpi 719821 BLAKE2B e99758938afcaae467717bbc4fd75529466123ec631164d35d560a7e525d0bd1b5891e3537aeedda6f505f42e6fad9b92dc4fbc154812fedeb940212b52b1b1d SHA512 a36c26eb0f1aa03553c772197e016e9e445fd222e79bc500e28e9c8c0b648a5379c01e78b04c6c98b70d77f6f78ebdab50b8d413e9a118686c7f897acdb833b4
+DIST thunderbird-102.3.2-id.xpi 642174 BLAKE2B 8095070cb3340b3ab475ea52460034ebcbbe14151f6f7bb5760d3998c1ee3f19ff054a94db6345e6bddd0517a60cbda28a9023235ad628b461f8f9c193e5b851 SHA512 ffc30225007a997ef07065708eb290fefb62f570a7482b71447914179eb304f5c782e9797e45344ad6706445722a9cb04e11fdc31813e96083d43f44865dbaf3
+DIST thunderbird-102.3.2-is.xpi 683544 BLAKE2B de7e6dde6f6b909dbe1a8e2ef3f9cabf32e245817cd4ee275a7b65267fbb876da486df23b3e6200e4dcd4de85403d0c76b09a0264e96f073028e4945989ea100 SHA512 01ab5eba30167299db389c4c84ed603a55cec4b3cf5bc124d1d5198783e22f96272d2941aa5f7e0227c0138bb20abd3eabe5bd11b5fc74d47e8e4acdf240c4d7
+DIST thunderbird-102.3.2-it.xpi 600699 BLAKE2B fa74cc9aef662e409348a4db22e4a762f4e83d1e4d0ca4b80b32935519dbd16993a9132fedf157ce1d6c848e18a52b75476bd8a80fb9e6a83cbd769352ff8183 SHA512 6bc7a3bf9c543383e4d7d8e0fe815a6f006a68f75de92cfa5598d66d8b209612adaccc13b76e5cb06b24d37c851a6b88020c3ba59987155883609fcbe02251ee
+DIST thunderbird-102.3.2-ja.xpi 738138 BLAKE2B 1943a33638685e7d91f075686f5e1a360ca02b2984f8de0d673ca3efab90b4c6f697e45263d586bdc7e408b6ab9462946ee337017bc2d3f13d4644732f747ee2 SHA512 e4333146b58a0cf438b28a45474c65ebe9774a5ae8cafa3ab46e7a20877a0e650bef17e1f8ff09c200b5ff2813acfeae8905d297bdffe95a89c95a70764445c2
+DIST thunderbird-102.3.2-ka.xpi 751856 BLAKE2B 2436059978bfef26a4b998893237f85022f2d02f4c9c2a5202f96e4a94db7f892894fdd4e0af3e323e735c06353dd5168f96667d6ed30019a7383db7a71bd19c SHA512 b7f21f8473ce143473dff40e0cb66130bb34fbc634103c0661e0b8ba28c7d413159be236c239568140239cc4879cbf07af8f04c7ea1b4f81cf06d90bebc8b083
+DIST thunderbird-102.3.2-kab.xpi 690533 BLAKE2B 222dd5874f94fe276d692b0428e3a88451f9e44fe23de73ba5506c28c86ed7db171a3c8e6a5fe84691d041eb23977c620d4b8c379d74a5f6b5be01a2826e46cf SHA512 a58d13b94f36dc72cf42c57c201ff3c89af566f1388fc8539c95f28fb4a799025e9d1e037f80060d5837f09f373e54ec4b61125b90df95b4e8f17dbd8e70b4aa
+DIST thunderbird-102.3.2-kk.xpi 734106 BLAKE2B 30b485511463aabfe492bfeb77d2bd7d6af317797a2ac585cecd5ce900811cfe43795e3e9905114f48d5811b53d3cebef6e0bb734d675f84f7c38eb620cc47c1 SHA512 73a1cf6b5780d762d93bacc94565993f7c8729c67257cc39daef8afbfe88a40fc4216c559eeff09119aa2ecd3578cf4dd2225f1762b5ebf0119243c791404a17
+DIST thunderbird-102.3.2-ko.xpi 695397 BLAKE2B 531862efa4356db67b9f1630c22a380e44c36279c708e70f24cff6d7876bc99955e3208dc85905b997909f8fd185332530ecd2742f8480e2bca4cf954f0d681d SHA512 72b54755016d8002c62b38b2cc29c66ac5b60fc686ff4c8abc15131c3ef733e41aa48b568abe6543c78d3eda35fbf1254edc61f44135360b4ecef1a98545b593
+DIST thunderbird-102.3.2-lt.xpi 683221 BLAKE2B d48fd1e1da6ac47b8443449ec21859d4b2b09c8f02d7df77425b3fec8bee3110fe390a8cb2fe7c5ac6255c87813c4d5ceca9c2aa9983f16482d313e6395432ae SHA512 f26e0e8f5e81251568bdb671c38b4c70564d628f1f1f2fe50fe661dd7f89228441bc5405c8664ea34955f32a1ea9c446c6917999b065cef62d0be238c75825c2
+DIST thunderbird-102.3.2-lv.xpi 610783 BLAKE2B 5790ff1b4ecc1fd03f5c58d18160266026057f33cacb98866e7b90ddc0163d758c23aa67775c7cd0908afdb9e80c2a3ec286ee71960b4f94481773f7e810a4e1 SHA512 3f15f36164761291d45352ce54b0cdc4b8e91c175ceaf823a3d799ce9d2e5c8c19b4eb01cbbc8f9ed43d78c1b3a4bd391e4000c79ac9bd4bf7a3b38e1d487013
+DIST thunderbird-102.3.2-ms.xpi 571587 BLAKE2B 49dfba2add7ab4eaad53fa4353f9ecb7c5a5b4d4ad90be78dd11f3155327ca1008d6a339b36405524a050e6a269b4e356d48c72cde7282b337a2e3309c923821 SHA512 b4d7293863ba895dfba9c0f044a9d273c2bc133b7439975f131fe66590572b74a7a2e47ba95a1b5e7c6b548fabfe4da38a371646a7ffc77cf6b98f72f6539ae0
+DIST thunderbird-102.3.2-nb-NO.xpi 650154 BLAKE2B 0e17497bd187f44ce86e7510e619a611395da6313ef8a2b54ff5ce1316448546316e19a34b9af7c511739bca66cd61c4271dfec5704623f2783e6a42fb61debd SHA512 bb110e10c6f2662b0dcd34a152b7803c22efbe4f05f21e3bc9442137e93ec58aa9be0df15e55db15b27518e2938f28b13e83894875ae3230c7f4e8d44d811851
+DIST thunderbird-102.3.2-nl.xpi 683405 BLAKE2B 1198c6b312927b3ccad5dc55bf841cd5421c8eccdedcd9ba4bb91aa282525477a901b76aef03d75c174a79ee2807a1f5ec734b57d066339771137fcf0ee7ea47 SHA512 ed3b4db9f54eb74343500d62118c7bab5512ccde20391426b1d147dc401232fa137fd426382c19b7cfe57bfb110044727db4139a019f8edbd670f0be10f4de2d
+DIST thunderbird-102.3.2-nn-NO.xpi 658083 BLAKE2B f0b61e8bfdd1987c664c0378f4c99b8eea4ea29afabe5fb1a8335648e73e3eb1ecc36068f2baa5cdc59ba5631d5b9ad4457aecec66086897ae0d4b88d93b6f9c SHA512 a270700f3decb52a88f505461ddffb9ed137935a515a1a809e62b38bc73ae118c3794cb8156a31b4cc43c3a8b2bcf5ed5272e915d3f21869242a9af133ae3e01
+DIST thunderbird-102.3.2-pa-IN.xpi 647410 BLAKE2B 6a0a0ea055af1d8885a603941e2d1d09c3997ad8e51b00d9c68e5c07cff44decd93b785a60899e42f8c966db3d70f08f0b5532329916d7e6a2093d48e5532450 SHA512 a247cfe2f57c405fc799a37e09de8114d5259815cfb406d10303e0c0e5d76680f8059949774eb60054ca6fd1c4fbe901800bd9acba26b867968b6bbe8b3dba0c
+DIST thunderbird-102.3.2-pl.xpi 695625 BLAKE2B 9f306eadbb658f78ec3bf554adc059fb410c2533c45d4467548f050e96e455ad7044e9d86e6e5ca1577568fbc8f4217ea40aad903116df55f7bda29ba2622707 SHA512 10b1d114d1b2d458615696524da60a7a797edb15684d88322d756962042c65d0ddc725627e4af05238531c77569ed8a0d77d4fd7dd9ebfb87e8343adf037eb89
+DIST thunderbird-102.3.2-pt-BR.xpi 691271 BLAKE2B 7767971cae63605391ab9f4f00010686df57bc658404d9df26b21ed51d271b46b3770d0509450973b56bdf5ad37011f2f5d1dfa97f66d7e4ca8641d36d5786df SHA512 fca5af088c334ff2858fbd658b661cf705db670c3f41aedd8d96f474fdf6a7891e7a3e0873cc3227528a2d24a2b82693ee340c5478d2c70b28cf1fb3ff6f77f9
+DIST thunderbird-102.3.2-pt-PT.xpi 667544 BLAKE2B 4fd88560da974ee37fb0e9e94b00aca45fe4b2b3fa6083b50a69a2b965f1088a938c887c9701b9aabd4b9fe9708ccbefa62e89d54735222e6f53702a8e3196fe SHA512 816d3d9107f0fb2f672a41acca54bc28509ea1063bb30c403fd61556e5ae05ba1ddffd024b9deb630ddb69c78a9b28f141a0e95eb0830d5d28bcd28e14dcb6ed
+DIST thunderbird-102.3.2-rm.xpi 684539 BLAKE2B bc4d99be3b58d09dc2414be02a0058160f45efcd93aabcd977dade5d8697ecdf2f018b987674aa677dd5a918236263dd296eaf71eac8e17d9b5a0904cea7cabb SHA512 b6f14b89a6847e1586c5d81a752e4be2d38f1bb27fb6bd7f3c2d558b20f1825f736c873793b0cbf47fa7eefaf21c6b1a074c3222dffe35bd485ac65cb5e1a2b4
+DIST thunderbird-102.3.2-ro.xpi 652957 BLAKE2B 1b5e59745f1289e38d1857e336a20759efb237c011f90f0709916b7d583ecff27a6ff9526961358e19c0d9e036d101b231da6e3768d5c49bceb988fe81e68342 SHA512 ada45df85caf9c3005423e5b82b7a982d44c2c8202b7f8d4da29dd9a444a31e3d3a2ee1c80d69c7eeceb5dd05a913a5f7a453ba5133bcbb19081822d246e5f01
+DIST thunderbird-102.3.2-ru.xpi 802038 BLAKE2B 6ba717f9387862a55df4c76f17b202ea0b433a75233e49ba64b58b22103a6b91f2aa60226bcc70c60c8d8b00a260217e4e0e99782dcc80ef336dd5f022cc6fa3 SHA512 2419429dd23db866334754f36d0cf7848f21cc41dedf4c567c5ba10b447d60b2983fa0e7cc0e9a17db267cbc5904deeb515e0189e78a5db9281c73a8e9dc0d5a
+DIST thunderbird-102.3.2-sk.xpi 718946 BLAKE2B f9b544fd61692b2b18d8e33d0006c188cb1471c4b634eaaaed59417e06f9ac5aac1e07fb66166d68cf268f3fc9a57726d515eabac00205939166b56084356a17 SHA512 db603812c0d12bb7d3090b676fbe4e1b4612aad0b8df90cd15405f07f5da249e6fb03e567295980a16c050028fb90f34bfb5efc5e490ce44113cdbfefb24192b
+DIST thunderbird-102.3.2-sl.xpi 684477 BLAKE2B e0c4d2b2f7218e8c27b0d6786b3b66583864cc4d27222581a0bd9eadac0703dd5e83ecdd989dc701739b3e130d9c481cca8ec86429402cbeb6d4eb94df78f50a SHA512 4c32b07f4802ca1d55a48adf2e30e002e87ae3d50d30e37d44e50c6bec5be631c9864c907e8c9a481ecad60bcb0300a9de6e6ec199a35b1437319cab675e3bca
+DIST thunderbird-102.3.2-sq.xpi 692095 BLAKE2B ca811e623092ce356774da084d1cd2ce77616bfb5aab5b1565d534b3295777d1268c61de4c368c966d1474e54592a47e224df16a786974a944e398467766dca1 SHA512 8a6ee02cbb5641820e4dad6620124177de0fa64943d138161493632f9e70a53b21167967f1cb3c04993a9e25029864bb49b835d00e0cf9374fd07d1d2927d08f
+DIST thunderbird-102.3.2-sr.xpi 704614 BLAKE2B 2838753b4e23f7bd0421950e11b11acf25f48db920fbb391e9a1a661ea621ebfbaab87e5c0a04be124b016465d1ad44ed56b17c7fa80f8b6498c74c9e29c311e SHA512 2944086637949d19ca0961b67b2e6fc353ffd5d463f30f2cdd022676eb2704efc9465890e03955e9ade9bc1bdd7b744677853a80f3353d3a17cd0a9bf3ece0c6
+DIST thunderbird-102.3.2-sv-SE.xpi 687165 BLAKE2B 18591140fd748706f2e91d142b8c8dbed99f7b30b26e75caab39b92207e2890792200d89269d609d5bdb565d0d94ff074d715c4702c405a5caf214706911c4d3 SHA512 6f95e4238739c0cdf80754892ec0f72e083e5a6253a6366de6173454936a99c1145bd12ceeb02816fe63944037c27a21bde2085e5b0fd094199530687a72df0d
+DIST thunderbird-102.3.2-th.xpi 737390 BLAKE2B adbd728fdfc9c9bd3113a05cfd578bdef3f4ecf1c30537456db6b06707ca5bfb0adab9597bf445f2e80801b21e87c93e0caf6683ff098a2c269cf74f0dbe7b27 SHA512 7e784f8757050383b899df951da1dbc3d50ceac30e34d06774fb0878e22c2b711562b5d07a15b84c6e5dbc7494d0bc3eaff9cdf88f29109e18ed6ba77a1d597e
+DIST thunderbird-102.3.2-tr.xpi 697911 BLAKE2B 73f49003099f3d3d703c41df8b83dfd6fe150608a60ecc7c667621f91ede4faa093552a4db70ea03043794652c32050fc086acf4c2d8ec5df5c4c3c0210cfc87 SHA512 9277a92ef131b4cf2a078356ec570585444def67555e3e3a81e2874432a2add98debb2019fbcc17c65219e3d600a5cc2033d9be8f50cdda68d3af3544bb116a8
+DIST thunderbird-102.3.2-uk.xpi 794504 BLAKE2B 0c838a48d27f85025a1c070115dfbb9568eba096e01e277fccb4b2c0b95919453bed6da1906d9e9e7eab362793b6bac64ec0f4e0137ca6855edc5ef16946153b SHA512 8dcb7e059ca023a466bbd4f74a6eae787390dea9056df7450a9ffa06044bab18477702ab8f769a043999802dc3631740b8373d74c8b69dd4d163714426e64cc4
+DIST thunderbird-102.3.2-uz.xpi 588029 BLAKE2B 3582251ed9d2682a90e51e998b7f1f02b1e4fd2b599bcd8e1d3da601ef2b9ba04830b96aec7153eb1dea4b07f747e173f9da0421208b9b976ed1ffeb670beb27 SHA512 87866d48b87c39a6be71eb5b8cb2ca0206f7951fed580614087f2168b215317aadd148057520d86c871c824ddc968ca537bd0279356bbc97b4145a64e30186af
+DIST thunderbird-102.3.2-vi.xpi 725409 BLAKE2B cacf3c086077c13767fcd690abb324c026008224f4a7e514c9d4ba4e9d58ccfbea1eb0d50bccfe214d7c283de4c18d2bf5a67d1dd8c50720dbfba5deacfbacf7 SHA512 91fdc61353fac5e7f094db40cda9d84fbef105fad60e2616575cb93b7a37cddebaa0030ea5487394095d46c7a640c73ba7a645a9d7ee622fd92be47d809869a4
+DIST thunderbird-102.3.2-zh-CN.xpi 724290 BLAKE2B af8278ebdd50b3ef7db42c70d374797b73dc02697c28d76e4f3e58d403b92f12d47299583e2409b3d55133072281c0ba9cf79f8254ce3b4de807e32d8d6e600b SHA512 da1bc2160e201b36ec7980f7937fa1991bb40a92a6d9850205d97ea881c95f4cd0d3ecc7d2ac97137b6e882cb606899e48fc5ce261a7145fd0f25f9307ea474c
+DIST thunderbird-102.3.2-zh-TW.xpi 727975 BLAKE2B a6580f53529165b401a9bc4d665d0b0deb4108531ba298fdfef4c52208632dd47eb9ebac923599144abe586c06d0492b34027fbe6bd543aa92626dcb8c17d9d4 SHA512 370d80ef21fd1c143ad47d8657d23288e375b62b00a28042d145a63ef190ac8cb60c68bb503b556db06923049a104a56eab9b3732887f160ef4423ad6ffd7399
+DIST thunderbird-102.3.2.source.tar.xz 500105016 BLAKE2B e09c854dc9e3aa68a08f8e76fa436e69c3b48a7f4ba4fd49902b0e5be93a8f6d68210d5bec8fd0de95bbbb7c4d6e3054dda583cb51c488756a1d213f6f415393 SHA512 e10b0322293a723c5683231e4337b1c3a214c064bbcc7f569c111c4ace42e74ddc312f2f30a260020dac48e44662f093538fab935a78ee0f6fc4a2a70488f74a
DIST thunderbird-91.13.1-af.xpi 561879 BLAKE2B b3b2f9303e0540dc258fe2a9653a4283ca88645edd7717d3fa885cb3b79cc428b281e53d86862c6a4a78ff0609670749090ef637481f230ca8445686a33beaf4 SHA512 c3eb26d200ef6d121299e041b69d82951b1fdaf40eb409d002e2bec4082f501284463020c7cdb486775062fd5d71b791093c9a188276e51c2287b95043250013
DIST thunderbird-91.13.1-ar.xpi 665731 BLAKE2B 4a82e82a241b00e501d4558f13f021c87d8f90403bae36705bdce155b2f90aca1c8eac98be4c443da06bd62253d6805be5011025b0f61343d5f5e949ddbd0905 SHA512 03792643d2fd90ab3f33b065e9078882c607293bc674e44e4960635e946de8bf5843261528c70a8cf04218386b8058d83b9d3a952115bed5883931bac36b3feb
DIST thunderbird-91.13.1-ast.xpi 580512 BLAKE2B 660ddd94462b403d82a3b26b4e89e515c33a3467bb978da0cbcb6fbbfad45986a99f83d93d6cdff67ae2e187ab4442821f82dbb2ab4a864291afce7aeb681359 SHA512 1ba13cd42b30bfcbd1966e30c274eb790b5f9b92d6705f06d607d6a38460cef9ef1f4fe873a8560413a86cd3a7186461a1d953332c3cfc4a80d47afc260b1124
diff --git a/mail-client/thunderbird/thunderbird-102.3.2.ebuild b/mail-client/thunderbird/thunderbird-102.3.2.ebuild
new file mode 100644
index 000000000000..96dac65ec06c
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-102.3.2.ebuild
@@ -0,0 +1,1165 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-102esr-patches-04j.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 )
+ wayland? ( dbus )
+ 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
+
+ # 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
+}