summaryrefslogtreecommitdiff
path: root/mail-client
diff options
context:
space:
mode:
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/Manifest.gzbin3383 -> 3379 bytes
-rw-r--r--mail-client/thunderbird/Manifest68
-rw-r--r--mail-client/thunderbird/metadata.xml2
-rw-r--r--mail-client/thunderbird/thunderbird-128.2.2.ebuild1192
4 files changed, 1261 insertions, 1 deletions
diff --git a/mail-client/Manifest.gz b/mail-client/Manifest.gz
index 4f23bae740c0..fac0a9031ee3 100644
--- a/mail-client/Manifest.gz
+++ b/mail-client/Manifest.gz
Binary files differ
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index e9eeaa87257a..c47239ae7a50 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -137,6 +137,72 @@ DIST thunderbird-128.2.1-vi.xpi 787028 BLAKE2B b8855d3fe3afd29cf88252458cf5d298c
DIST thunderbird-128.2.1-zh-CN.xpi 785328 BLAKE2B c0074053890028a8888e04fbc803337888715f9004b44823af4d6dcecfe6de70b8e8c5d45ca234d7ce4276bdd6e68d38e74866b9bc8da345b490b1dcbb870e28 SHA512 641c7296e86a859061116e7b5c9f0077d6dc02e1c81212c21ce0247e9e92a88f3d7fa2be307f717e6f95077c29c236487dc8fd93d7f9795aba569e36f9f5f1dc
DIST thunderbird-128.2.1-zh-TW.xpi 789780 BLAKE2B 26dd81ab3b1066b0e4e1fb94d7d1f0a6241a94420fdd34fcea42f841c6f86109a7d53e422ada0378b865998d7946bea315051e1df47f04e278840db4d94a752b SHA512 6e8c435ed7f07b1dd1b201730049aeb924a7b1b44ae2fa9ed1a209e7862abd0316845c929fea24f73e43262f147b7e092bfe26ed7f3d2914c09bc60f160ccd98
DIST thunderbird-128.2.1esr.source.tar.xz 672402456 BLAKE2B 0a082fc46148162979c55da1e43d4592b1f012c01d227444f3157824a66dc7035cf81d9f200c834f62226415f52c550888bfee70eabea8c4765addef6409d3d3 SHA512 8a04c57f7c4c8f19ca3aa5f62a65fe05944a8425e074ff49ff087c542bb64091666078ed0b887528d2662d92e65f7a00a5fad98e7897d2f1e1def963923523f0
+DIST thunderbird-128.2.2-af.xpi 530349 BLAKE2B 5eaa31b141d9a52ba51a4571520d6a83540f036dabfa5178c3a7106d0d22980ebd27c607437ef6dd795912504e32ecef8b1acca0b80d540fe1d2bccbe91b1178 SHA512 b7fa16adc69576b42119dcf65c4e45e31e00e98987e260df7e728be4e9fad5db7e3ee7704a3893ee85ecabad9cfcd05d81f6e7dc6278764fc0ad80ac97c530b6
+DIST thunderbird-128.2.2-ar.xpi 679867 BLAKE2B 27dc65b70f05954af61e2b47bbc6ec28288a8c2f44b32c616144b87e02c60f236d6ff2a8fe29e217afa322dd7e138f075e6d9726d95415628c3dccb6a030c008 SHA512 0faaca4ec5ba7867bbe4d3f57ec9cbbe66b1bdf7ebbe4dc5519a49aaba776eb0d1c4374c9b8136b416d61471805ca9dae7a2e5a12b6d3b7eedaf5d953fab2c95
+DIST thunderbird-128.2.2-ast.xpi 561054 BLAKE2B 6d6fe7db3bfa5f6ffb9e3bc93cbef8b49eeb13ea2332d4026712e1ec5d85a8571e9c191dd42250d92d31dc87d60c59c341452cca9867688b242664d3146e8e25 SHA512 a4b6a92b2bd2b2926e06ba8c43ec7803b5b3ff82ad240c6a90de65a25671f6dff686beb32f0f21f253564dd5403f2e225d1339989b43aa4d80bf3a9c6a3fbd90
+DIST thunderbird-128.2.2-be.xpi 755103 BLAKE2B 45e203ce7e29a7cc67e1f18fac1407f4c81d67b79e3ae02c754cf180d6c1a46ada7b468cb9a0a3e9d4045841e6fd10531d48b41bf3ed6ce94712285d6865b67d SHA512 3263422945063667f62824134f9b1aa0f4aae3780caba3306c0df60220f6aa2b0f1e666b58fed90e0c83a8b3d4e3ade2e0b4b9e719f0768ec07a2602380e683c
+DIST thunderbird-128.2.2-bg.xpi 807860 BLAKE2B b6b61e6814b858c55aee5b42963424d2e1f53dd17c75e4245806a207257973203de93e012776c2c92d680c3335967b2924064e28038e1b9e88cdd620a1ae730b SHA512 5fef536a4b59667343c0b480776d88b0d389eea2f75a78996d40659a3960b84e3aec498357da7e8df0b9b1457e4926d314d30fc97f7d838fce4f2fa65c872cbd
+DIST thunderbird-128.2.2-br.xpi 652476 BLAKE2B 83b6fb3638774a6a1b8b041c9346b550da5a63cf62255ab2463b8278d58220773b8292f615babeecc1f1a15d75606a57c128ead33c2b6a26b04df623483515c9 SHA512 05a442876965d6f70654f27499bb89e4314369c2dbae34a3e3769c4b43ff25e6816993fcebf5ca65d0f81c27c6cbd8afc0d7c4ae59297d84fa677065582480a9
+DIST thunderbird-128.2.2-ca.xpi 708965 BLAKE2B ab1a9d953816b8a19b30eab974802ee86219f75e0e7e2fc3346ce130c06ec216cee822d68edb9e238d78688ecbee6b55bb3818724a7eecd86ca541b53d5e83c2 SHA512 97e30e2ff485f83ba1612fb205d0542ee8c14307630985823f6dee5bab91a67fdc3d92da806d93efd57dd78487e8c6063ca0e2034f8126d22b1242c05ac560bf
+DIST thunderbird-128.2.2-cak.xpi 671704 BLAKE2B 4aab96d35224b5722f1e9ba230abcfff9b990dee52dc8221537521e64b42d93b6a6e2946370f83a0259eed8df48d01b96ccb3c24780f3bd522a4e4b8c5e17487 SHA512 70abfe9ddba026194866f7ee3580e749b0a6fcdc3d9a574b80c3007acbc37eecded23efc69f0db31e17166825509faec8cbf24479e3be8304aebfb3aa3f58abc
+DIST thunderbird-128.2.2-cs.xpi 785044 BLAKE2B 436909104d905eb197af8f1d1f36e5560a1efe836b4b4916090b2bad3e7199d5639f56f2c995d6bec209546fde475ae4e52d9fc63b33939b9770519935ea0d3b SHA512 df01acbe01daa0100a300b57ed933ec31dd671c9b7ea7cb19fc76f07aeb010b7362b640312f511860d2285d057cb3da08091bf7a8f7574f72ef3310a9511a99b
+DIST thunderbird-128.2.2-cy.xpi 749050 BLAKE2B 194c5d39cf68ea157e36bed4e95ddb87dd807e3258ffe39aa7e7064c40b5b33ba5b8579026d7ff2f1e60f0d74dbd5ab9d4a3fbe1f783075a62bdc2b0d5729a09 SHA512 9a822522fcc3a18193f3a5046f7a52dd3d467dc2855a9238f33473272aba4c6fbe59e5873c98a1d50b82ec10dd58285e5bcdeaf58b1040889b3b9e5d3094207c
+DIST thunderbird-128.2.2-da.xpi 734115 BLAKE2B d67c877852a541c18cf913e7920f0e34a981bd13c5d5879b5de5ef0922df308453f8d10115085d6869cf69770e2aef1e258e57bc313f23cb28a2d4fd368c5a0e SHA512 8b470f007dfa79d11f3fa55cf6f36fbd4ccd0ad7dd436a53d9761d20a04e7e199555f04f765e6e9221e3079ecd96792b3cb1c51e826596aff147b6b728313be7
+DIST thunderbird-128.2.2-de.xpi 766250 BLAKE2B 817a18baebbff78c08f7f28ddb7563fc0f8002fda98c264d344a5623eacd4fcc6487285d567bce7c9ed0a3d92a147b71507b847d884a58400add9af8f77555ef SHA512 f1cbd3ec218d41eca12e8fcde90319ba3acc3d7ccdd0fd8d0d535daefef5e344428684b544cafe24d23d31cdd8e2397d44d03a65dbddb2d679decccda12e21bb
+DIST thunderbird-128.2.2-dsb.xpi 782741 BLAKE2B 57d30baa8a7c74b7e211e21c70e6bbd7a52979747c24e3d496cba1322ea3d1a88c44d151040bb2f12109383e0ae0a08823e3a73a2a18f82b93f703849b69993a SHA512 8c8aa85a43ab884069061eb09b9227a7604da7826ead0313d754aa6842f02f237f466e502c979d000fb69addc0a6bc8812a8d650bf90e002aff863dfb924cf59
+DIST thunderbird-128.2.2-el.xpi 889267 BLAKE2B fb1febb9726de7356330015ca659436a1b961bc4d368b49498fe86cb410c7fe707ab7e7fd6ae8f7be9617f74a0aafbff8970e93fcfc7dd3db03903ae1ead28d7 SHA512 7f0132917a7472a2351a7d6c508455a9783a1c947eaef910147e64ab98a812876b6bf7e1039e7c5f57a46153aadc2a31a67c004857e0ebcae288eb9726c5995b
+DIST thunderbird-128.2.2-en-CA.xpi 702143 BLAKE2B eb53739465510736eac8d5edde33e3188960861270c7fc169bc5a0db72b31dd04d7de5ddb59570dab5fc396d3d7c1d5ccbce4ecaedef111dc6710ad314f5648e SHA512 49ddb0731c27aab5ecd9c35269439866835454723304c49491d1034585a6c6e7e7e052f0331c09ce3a218c79ec23919255bb6d60e9a194e453b572ec0c9e9696
+DIST thunderbird-128.2.2-en-GB.xpi 702698 BLAKE2B effca0c4ce13366f7f52bb7e9d1b6649a6c266747da06537a9be4df80407acdd7ce44b3251354fbbfafa1fb05da77054aa207f8efc829084be0388a34fde7533 SHA512 2c39705e01179244373facd5de6c0122187d4e7d4476e8571bcadd2725d9a78431c19c53b091abfec0ab3e4b2b22aae868c95a3886e2bf4598cb00235a37613c
+DIST thunderbird-128.2.2-es-AR.xpi 758350 BLAKE2B 29ac3165963c6d2f6ff12fba8d6423b6c023ede2a0395fa815d28325a7b544f8cf72dfffdc607ede7c2006844011bb645109aec2592df02c85be111e1a650807 SHA512 dea206ebc27ac17f68cd11c488843109cb512e6bf4f40eabb076c9568517d3ab3d43e9a0335ff9497c00b2906c9f28840f05c85c9f3adce060b34ca132a37d7f
+DIST thunderbird-128.2.2-es-ES.xpi 723514 BLAKE2B ab795afb266dc446f3b99bce6975053b9ba11e1cd8bb039e6dd72fbc3bf8f7084504fbb91af46cbb770f9d81946a7082b0e1f30c8661c8abd6d99cb1981d711d SHA512 b75040158484dffeaae54b0bbe4f3943531e46ebe9e4bea2df8d57a824bfd163fdf4136ad8104847893e8dbd9ebfa86d6dc2a2dd5391d10652833030c9dd9253
+DIST thunderbird-128.2.2-es-MX.xpi 737707 BLAKE2B f7d5120d9c1b21967a5b7e880e5d9d72542897e7468c8d83da780ab3d723d1a248bec8022a0ef6ac0c87d4dd6286f682275eb782f98fca00c19273bc3c2dd022 SHA512 6fd973a1a351ca80b961ec99e60936beb98ef50fffa80a47cd6703732363c8a25d27679336ef353f35362cf831dd0947b4ce77bff7d6f7f4f9dffcb66129979c
+DIST thunderbird-128.2.2-et.xpi 696279 BLAKE2B f0ebe0f02d09630b3f5c33606a46bb07a916aee95bc5343a7fb988e9adb318d776fead30d0e6877d3b426307bb394502b4cf61cf8d2baeaef296b21def49e5a8 SHA512 8dec1a219b4ea2b4e186d8120129176defbc317830198e2211f1aa8cc89ef16987294e9444aa250748798eb748ce8e5cbaed209cdfbae4615b69b683b3d20b26
+DIST thunderbird-128.2.2-eu.xpi 726801 BLAKE2B 1827c2d6c2142e52cb08fe4f17dee71da7b80f91264afa06bf89f401b02660f05730967631378ec544ee70cb29ab6efaf15faf462a6602c3a0d275fa187cb500 SHA512 c52309755ba065f666c4f66c0fba2782c593a6a7d2c85c6ef072948914cbc820e7aa726418e4ba6e56310e7704c5dca127c04eabf4f02598edb70fc171520431
+DIST thunderbird-128.2.2-fi.xpi 733649 BLAKE2B 462f2bfbcdc12aa7560f9092659a68fbb5bf37295a04474ef080416afb56213d9da562efc039f6bbe4eeab750c04c1b268a54bab442244b4b58b4228792b3ac9 SHA512 20c0d9f1d85e0ebfac38f1bd3d45e86fd9784d02fbea3b003f57acc85f0e1e5500ee4db7a065ef442679f5710bc5bc7e2dd55bc5b53d6e82fbd1a5e1ae9f328f
+DIST thunderbird-128.2.2-fr.xpi 770186 BLAKE2B bef36af72a56ab5965217501d20181ea75eae47dc9c1f67ae5c7ebea46d6cbba91a73832cb60876121372ef8568c8553cda2061a93debf86303170659ce3c99d SHA512 1d47991f193b992b133b391e1ef973ff6dc186c0e363d0ef1c83e288f56214384482c3562c4a45dcc375a23c43c75e9aca6702acab2201b93331d0b438213783
+DIST thunderbird-128.2.2-fy-NL.xpi 752848 BLAKE2B a292e6823319c2f91767bd22f9a595a8b61b24b69abb0e059c56f2ba58c6ce716edfcf89ddc2287500e1c4970b9e2d0c7203743111b5f8397d18c2078a82eec6 SHA512 7ad1aa764b030b00b114fc6f0a16265de1fee327303fed96ab4adead7b7c14941c2f8ea4703d1ae8a1956969db3b54215dc44f579c053d9ae7f86f189e91e671
+DIST thunderbird-128.2.2-ga-IE.xpi 615197 BLAKE2B 080b9cb464049731acf64c73ead986d884daf6dd7275cfa00a23df16285aa92bb48588702bba255ee79191dfb178360ff5dd4c2afe8eab533e67be96ff67e134 SHA512 22d06a3ed77ec8346ce994d765bb7997015c66c63644cf7840b4efea64c60907a5c32a1d506d97be8350412ea1b9a7cedb6e9610140799a4fe963a3e85b91936
+DIST thunderbird-128.2.2-gd.xpi 727803 BLAKE2B 9f9c41a1631b3f637991317f8a3773dadbb99dd2643ccbc80aac524aa8d8207fe676a03013de086fc0addf5dc5141d6099791bd4c7aade8aaceddb99da73f994 SHA512 4e10a62b3275ecc5ba2eeb3f81b880da33e90363ccb84e6a19e0bcd4d950a6efb1714b9048d7a7abb73ed09306af7c9108dca28ac3267ffbf53f5c2cc516fa3f
+DIST thunderbird-128.2.2-gl.xpi 736571 BLAKE2B d2cc440ee4e3722e1c36a4da68753fb69b7abac394eec5c61212dabba6b633319cba0b1862cc18cdfd76c8de0c9bb97b95f08187573bff5518d0cc4ea2def846 SHA512 e275162e37cd1d3f43c3e33af5bfefe42ca875c58f26a5478ccfc9be73575f5643b25107cb6569192cdcef460fbfa428811c1a2cdf43ca03ae7379f26ae8909b
+DIST thunderbird-128.2.2-he.xpi 700301 BLAKE2B 12f2bc196456da04d4549fdee2596b51148acd01f3371e776911a370937c6ba052d694a5b1a5459face5d8e19ccdf0c7ded30c010c32d99242693017c1e4e93f SHA512 e6b22bde8ce7470b88fb0ff3ba57ab3dfeecd616411cbccefd27106281c2e60a8337b69ebde2d286ebd1e84cba32fbd0b2c2dc4094ea9263294ed5f2571da26e
+DIST thunderbird-128.2.2-hr.xpi 715017 BLAKE2B cd35408eab5bf605e0e9e55d15a6dfd6be3d6c6a0ef1fd1335ddbd0ddff9878177d7ea298b43ebdd9074049a4085432e1953d69ed9641f954db73f2c07531522 SHA512 4bdf8cf2cace5f41c53b19c4b8aa2aca0532369fb1d777acbeb9fceb3b5a8e18934091d4ed3b358bf4d61345976e2c72124adc57fed8b73485a2cbca31ecb9aa
+DIST thunderbird-128.2.2-hsb.xpi 780137 BLAKE2B f9c38da2ba17c44c22553bee202da03cf37ffdd2ba9b594cb887cc2357743df4832dbd0bd0860e213156adacb61e3e76cabc9ab87e89bf4d17afb110f13b3167 SHA512 60e38453a6bcebab8ff3b58df8a771e92fb750260b0e9db21b0dd162b75b38694204d35fa50000a1bad57b9a52f583514c322b28385a205e903fe37dd6d22159
+DIST thunderbird-128.2.2-hu.xpi 782932 BLAKE2B ada66a9f56dbfea99864fb021e8bea226f255d54ce9f95ea7cbede9a34bcde4ff44c85c3b040ef22514a1078cf6658d1e0492059b14f36967f2f31bf0ec2646b SHA512 ae6775bc5fa417ada71054c4f09b50037bf5fada2e155dff71446256b3cedfe28cc66cf0280e78d399b9d988aeab296abec02e34946695cd789885cc231482bf
+DIST thunderbird-128.2.2-id.xpi 666011 BLAKE2B e7ffab246eabc957fabad9f1a44b281a5f922e4786955169d5452527226de602ef174249ea5b4fc8191c1aeefe9ef3969cbc280b96d5137557ad4ed9765e272e SHA512 0df571d988ae5d36013d93f86cb5dc2942c8b04885288932fafd269216eb45a638261719532d9ab5640052c2f3af9ffb72235de99ae93697d4fc932867a69332
+DIST thunderbird-128.2.2-is.xpi 743886 BLAKE2B 1194a26ecb666dbc1675c1a6546b65b9132748ff9ca3cef03635a6c8ab014cf82483f816d9fab214cc8e9b5ceffbdea093219184e635e19460702824b59de29a SHA512 934375a444a0c97a9559d6e625bac69477e04129ed8b1ee084ce2be100e0422411a1b6cd439318c31e708720f3cc8d7e4fb57afb95489b91577bc4d2c3a92bd0
+DIST thunderbird-128.2.2-it.xpi 690397 BLAKE2B d3c81362ef8acce58ac9bd8e5cc86845fa7afc7aa817c5bf1976dd716aa76eae856bae25ae6c8e910718f09c28c0e14d183de94e1848fc84b40e5bf1cde9de92 SHA512 e912e81e16c6d594de1db3fa1e31f6a809d9b5cd630076d5c6346f956d4f4f7b40d8a12943c993a5181823aa0704a9c121c5b13a13cd74ab9322608ae6a3da70
+DIST thunderbird-128.2.2-ja.xpi 819902 BLAKE2B 0118c465fced58ba8782557776e767b6474c36b635e8b380045f7ff639aca3fdae5be5222429782fc7075c8afc2c1a63247d18546a1e8bf2ecd605e6ee57144f SHA512 b2082cbcdc4b7d888a7b2949d20e284048c56582aa365d47d505db2ab2951bb94ebdc48769ea7614d4cc856a1d326e0c28cb2d799e8fbfa9d107037197590c45
+DIST thunderbird-128.2.2-ka.xpi 796045 BLAKE2B 60d3c3f1d20d75d91014e738f0f04842d8580abb9fc21173fc66f61df45b0da61228fb402f45aa3566ad4605e9e9fc019cfb4a2b6767d90210588c920cc01283 SHA512 325ce0d81111f7adb5aea2ab2941629d21c041d3440398757d8d761cd7285a2c38e5e6d992859821d2869479b4146047f48e0c7ab9aa3cdd9f17e38e9d307002
+DIST thunderbird-128.2.2-kab.xpi 731859 BLAKE2B feccb64e54a2d0e3d4230971572445ba58d9efce7183085385a014619c199dc6de26b802cc4c2723a2166eed21cf1e26dbe6feb579b69eb59b472c8e41ec6c34 SHA512 177d4df8a2f0a09f7c48aba46fe7e07705467482ba82cf8b9031ace3375c24d70376fc3d067a6702999db3e093c78e08942f6d9e1f2226e5d32387fc3b744c75
+DIST thunderbird-128.2.2-kk.xpi 857288 BLAKE2B 1985ca4f666353a697d668053bf7b2c14d1d807babf09f5a78db6bf19afd26c50709c17ab5ba580a74510ba35636281c3f7542ca5d085ad69bd6473b481b1ec7 SHA512 94e132fa08c1dece0e3c2b47be24b063bb0f4155d4318534143ae4606fc409e5cd82034de6a93423726ca96a89969d94833551423ee02d041d644cb3507becbe
+DIST thunderbird-128.2.2-ko.xpi 755165 BLAKE2B 1206f17fa9cd4c900f024272d93a5db8c2a3e2c1c8a1901bcd6bf962e55203e2bf03cc4f10243f2329de7f77549fe26e650d71be29d6e37e34e7388e4cede228 SHA512 470fc5bfdc0d139d19a236cd1abaa72d9da2a3e87ed8c7bd2f23282217241d5611537033cd28e5938b8d19d64ba0d3d75b200d4073db747d60482c838fa9b63d
+DIST thunderbird-128.2.2-lt.xpi 700917 BLAKE2B 82ee9103889b2e7b8625b7646f8436a8c5b12a45237c7203d8d3a33b0d205bdad0e992e58582c0ee43570f4a601f69a3def5149e4f6443e72159b1e267cf3f3b SHA512 fca2e33a1fbe684efbd96b6f74b2d811c329fabc7ebff26fa9152b36bf316851e8390537d05255dee0e1c5e47ad2336036b76526573791d7ece6c127e2feb538
+DIST thunderbird-128.2.2-lv.xpi 623624 BLAKE2B b537c537dfdcc03d68737aeaa2fc13482b9f57ce5646a444bff7e788abbb02d5f4c7c399b467d83b2684de28b597a1b4223c8889a3b6906bfd32ce0a2fe5e538 SHA512 4b9f301ba9ede84aafc5518a8650d48469ad79826ddb5303a0df433f4b10d268f47ccde0492fc0ac9aac9e03f10ba3524962841ddabf7ff304398fdf309fd154
+DIST thunderbird-128.2.2-ms.xpi 581083 BLAKE2B 6906fa8c3abf7539eb3569139bf615f9f6bfc2933a82bc15f31c73dd85c689b35f0fe1f6f02d8894541733ff69072fcb7b4701c67b0b395dff6bf02e71419d6c SHA512 3e1807a9f3b0396ac79981f4104bba73d0b1357c8e8dedd67b06703144f419059c5c104a2d0030b16fce15aa55923e2f0efedcad5f080375a7713f362301a184
+DIST thunderbird-128.2.2-nb-NO.xpi 703762 BLAKE2B 5dc2fdbe2368cb1481e470b347abe248d968f0dd7bf4374ef2b4f719e746619b49f721f0c03f5d01341db8d8d72e48511b58b693c0438f80603d1f7ddd4dbbdd SHA512 a6732fceea73299362855bd4fca683f0944b3955f9668aa369932ec8e8bb39cf1f8e8a011ee103c5f642e0e22310ee3a7b422d773b705bec04fe1f81fe71131b
+DIST thunderbird-128.2.2-nl.xpi 744105 BLAKE2B de180ebeaa93a970e4e2caa315531dd3a33bbd2868ed0281c084f4a369cf8f7e5aea0e3bf34e3a5283bfad4f904fee0db9d0bce91b5230e96bc209dbbd4a388b SHA512 fb978ad3fc6e70b117fac9aacb0377d7e488d8a8891ccebaae6fe845edb1c87bf05a6286a764343707bf44bbbb29b6b62cfaebc18d90308838eee3c5cfeeef91
+DIST thunderbird-128.2.2-nn-NO.xpi 723767 BLAKE2B ea5f20c8e761796d18e0e08c1a7c3b8ffd04afca6b08445c98faae9cb37c0f53819cfa43ae264d31ebdcc02cc658a3e8163c2096c6a3aec4b64d04c96cb73eee SHA512 d0d5f91c1d3563cf61f86bb0f58c9dd91ffa9809db112fa2114ed8b938c64cab76c14be04b94b794bd07e07b91755bb6e8cbd8efc089dab52bcb1d0720b1acce
+DIST thunderbird-128.2.2-pa-IN.xpi 683077 BLAKE2B fdffb7bded96a4a2b156392bb72f0dca89bd8c3835b5bbcb9a811a311a4dfb0df0274ba0ce99f3427d8744b3734f0f4c53dd74bd4d1416a4bf085cfc495dcfcc SHA512 a536b95560e84affb3d67173773a0b0a69053dcebe2abc9dc4c05469f7895fe31977a4bd3e3c22870d191882546e1168518c7444c1baf2153e7556b6f88815ca
+DIST thunderbird-128.2.2-pl.xpi 762951 BLAKE2B b130f1fb22fd05fe58cee3ee470d40358e490767df5ec3ce278fe91edfb5775b7170d2ea11525389f6fc141961bca3256408b0fadf222a59ffcd779ad05acae3 SHA512 8d008eb7b0723c6d8fea007a926e2b5b929d65fcac5c4009ec4cb7e7927af79eb5f5e62c14b4e0d9ce3b310a67155857c0c36649842b0ff259bfb9ea7dae43d4
+DIST thunderbird-128.2.2-pt-BR.xpi 751312 BLAKE2B 532ab4de97a86d7ef08457af3a6254db0c13b35739c3dc43d439d8dbe66ab0496447b4ea2bb90216c73451f716cf3bdcd70639b2a179f65ab6693a99f55f5c7e SHA512 5b9ccc6efffe4d096fe8a011ccf0ed0d75801ba6fbde7448d61d86c67445a81fde037332f962b7a8718f07f15c540ae11584911f007a335f37dd6c370a16b8bf
+DIST thunderbird-128.2.2-pt-PT.xpi 746870 BLAKE2B f17c0e3065d028b7c9798d4b0a1f2915817bd51c20780e4884156c6464f3fb3fb26bb44e59285a403287055a4cb8689d08d0d46c363207c4998c1b79f2ca091f SHA512 5d212f4ad1829206c99c269e440142274288470e997b362ffb8a2f22081858d44be8432ea2bedca5f6ca31c02bbd31e0559e8e562bfe83ac4b69eeaa23a4019d
+DIST thunderbird-128.2.2-rm.xpi 746779 BLAKE2B 57ed03115b45eeeca524d359915e604766ec1fc6a572cdddf792c81f5683c5211c97cef4466aeb70fdbec11b8b64b163d4b11c0db9e4eba40deb9c512e06407b SHA512 44f8ab9bcf893ef4f6fbfa9c549b7c0dd84e87bb6c8c35fc8257a04b449c19e55c38a3d0e3321e938aaf29dd61d0636384390c8ec20b276755b0a83b70875bfa
+DIST thunderbird-128.2.2-ro.xpi 669742 BLAKE2B c8a3351698503cd460a94147ab145eca308a598ce151bfc19d696f5d0b8bf59f91a54c26a338d0c1db88cac673071bad71814d99a583d6d1a0575148b22da410 SHA512 affab7161952ef70aa8f6147e048b9209ab9996de1416e8c645726ceda9ec694a46a95e91fb4da3de7bef95ef9d7f9a2fb5c0e0cc1c20cf440b1b09e4eae8582
+DIST thunderbird-128.2.2-ru.xpi 872245 BLAKE2B 97afe1df85d1f3870ff50af4a2c8756a6ae00b0e21990fe80e0ef3df7d6c65106eb317a5faa8b97c496e7a7230c8d021dd677e957e00caf1de644e8571fa207b SHA512 5fa1e5810cd442a8a95b29c4e1f6e0a5c447d4ac43ca8b3de3cd21aa3ff215e281a7c73ab85309b261274578b99f52b95e60abbda876f434adf91be3860ab2bf
+DIST thunderbird-128.2.2-sk.xpi 784168 BLAKE2B 0604012ee5bd5101cad8cac6727c61680993ca307ff49af10fc162d760095453a7c642aa8bb77a13c34fcf28c7e290d286efe4e4104e9d9d83a5aa0f05099ce3 SHA512 028d4c99b393bcd245d02cd0e97c98dcc20bdd153a08afd623de06579d9ff71108997840a757c84c6abab322ed20cc5c87a5dc273823ddc6610d74f268b08241
+DIST thunderbird-128.2.2-sl.xpi 743551 BLAKE2B da17cc1ce9d00f3ed713f0fed9a5825848b008eb359b905b894d2e0d9398c4d678bf329094ba98b0348962bdf87315b3f35917f5c136a1f6b99a53f19f7b1a51 SHA512 c505cc60ea3fe60ef1a0a252e99ef3aec14eed535b181c2f2ba21e607a7c41ec7dd37f9afeae7d7ca2e7ed0486908ee019b7397c3eb1d1ab0ba69a2132950ef1
+DIST thunderbird-128.2.2-sq.xpi 765885 BLAKE2B 0cfa9eb328f260dcad69784cd2d6502d01b5fee740a73022363e770fd1bc06572a1ddeaf308b5381a39d7b391746c8dcd4019d763df6d001a13dbf45d720b9de SHA512 956daefdf678b71adb87fe64e8004382a47e2fcfbebc9552bb0c3d83871347fe77e13bc9dc1a4220c124357bb6121392b58168f12f178c88c0c40009218e6ba5
+DIST thunderbird-128.2.2-sr.xpi 771005 BLAKE2B f7ba13aafe1e6042494650d2b5172bf788e04f3919491d5f19e542f5d4fc6090bc89ea1b89e4cc7fd1370b9194c2799544b3bfabbb88df03ed03782075788d6f SHA512 6813b47cb79ceed6f376238480488f3ef2c388775bcf2cebe77dba4b9af4cfa6205219a3850635eddc9f3a363df65f63435b42e6a3afebe33b1816bdb5b21c15
+DIST thunderbird-128.2.2-sv-SE.xpi 747521 BLAKE2B f6ea783938e5c2cfbf6d0b1c1020b1ed45df1a55655a6886c70b9d24250cf920bf9e95233878ff3e832b9ccdbcb6ec69f7a7a59737de7b908dea21579aa10a4c SHA512 9f93d3180d2b64ab5dc6682a74a9a2d38acc0274733940e51a257a87903e0375093b25e3189673786473f1553047cdfededdf3728266cbb2dfaf52a2dfe6e76e
+DIST thunderbird-128.2.2-th.xpi 813953 BLAKE2B 2eca50868dd09e7d8576da9cc5f204fc816a7ef3fd459ea6260e429905e7d6c9768cbd8f7b26817a23d6b64699164c6c604d5d06939c01a9ed743015d83f38bd SHA512 490ece4ddb5ed2155084ee3d2fe54a2d216f5622eb55088b399e92da55ff598836e787a1dffc638122f3c80de0c35214121bd84884d25c51a3b83b3288f77893
+DIST thunderbird-128.2.2-tr.xpi 758165 BLAKE2B 9e502939d4ed61372e0e16df5ee1a30d0c89caccc1edf8a0778baf8f01f1a37dca4408d081332cf74b2c74c683273de070675fc85044704e69fae6991502bb70 SHA512 232e52755661a339650a76b701610cc136c7a7e5b11788afdf470e18ebd13a3befa7464ab073579bf7a7b7b340a82ceb9328df93e8995b2356c87a55b8110a1e
+DIST thunderbird-128.2.2-uk.xpi 856053 BLAKE2B 7530213593db5e282dd54e2f5f1f26b982f1a3d01d206676f9f8641c7ecfa54f126e5b095ef6c528482eedb1e949aab5696a67b4883d760c9393d079076a9a45 SHA512 02072a6eeb9f03a71cae1f7ef4de4272aa677657b1cc8ed1c28badc713510c9d53c6029e3647817769fdd79caed735373263d0150c4c5ae6997479cd0291c64e
+DIST thunderbird-128.2.2-uz.xpi 592131 BLAKE2B 569538d472409a3ac52a4891c07446220d2d9795c1e2a51afc15604814b19ad3833fb16a7f46958bebd89fb8f47958647f56321105612954216b8c0caa3f7f1b SHA512 415f903c63ffc47a9d6463ac41a2b842164497377fe9ac225875b8f3babb3c798b988ee40b5cd609cc2559eee96c2b19d91e51d8df36381cbdd2a1ecf892ccbb
+DIST thunderbird-128.2.2-vi.xpi 787028 BLAKE2B c9fb95cbd3055b58f38d8e166eb64899ac3cfda96fb223dcecf70123b21781d607c5ba552b177f91edcc9af9e378ce799b9497e740b19d5a9e8f4e7b6daec995 SHA512 4cb791209a31f87a481085fe8925b470f51ae4ba357a415bbfb01f974bad4080c61edeaf3805c5544636376ccd85470e26e24c7477a1a6436944b4a2072fd28b
+DIST thunderbird-128.2.2-zh-CN.xpi 785327 BLAKE2B 095094bc0b01974406837e776d263b96c85699123f7c5bb6cd9126e5da03c5320eaafac24344205b49a463a8b1729121f73882734aedd723ad43178ba24f0bf8 SHA512 345bba000b277941423af0f3f47763208a565a408c99a6a8ff5619d3d5a91a8c5c18d867d667f6ecdc2f56dad4007ccd2f75cff113bb7eb294f3ee2d9b8d1def
+DIST thunderbird-128.2.2-zh-TW.xpi 789780 BLAKE2B 1e1d95617c86fbcc00804dd18dcad0cc1b876ba09a2162696d14075e4814810aadc24e2124b25df935f380171a6dd1a95ec679b28ea509aeeb27d99b3a1e5950 SHA512 0b650d6c00a0dc05119e20b4d072124c98e70f70a7b98f05644e344fe952b8992d9aa5ea0f320e0f13c3c80e07e8a23f3160e4443510c139ebeedf2eb7778d1f
+DIST thunderbird-128.2.2esr.source.tar.xz 676994144 BLAKE2B e3eec7d15b4d855376ef1aa9ae2de490134a156f8ca817fbb88d6a942a567692656235ed3bf3cd11e6846b033a4ae56cdfaacde8365ac1d1facb2f41f4abf30b SHA512 6300f3f6d3a907e849a6acf06101d7441680a4eab965955887ac829886d4f2152e49a0ca97255e3cd9de579fea9ff5c03f75c70a361116a66c735face885ab89
EBUILD thunderbird-115.15.0.ebuild 39759 BLAKE2B 2da23464f236749409d2809acf66d836379e9fbf393039c144c4223d942095b1235d0450a57cde3ea4b2e0867d285f5af336b9da95a299c9eecdf8a3a39302f9 SHA512 dc244a723ab46e1e781eaecbfa4c801b00687eaa58acd8569fc9334d28a5cadbf1c7d87d86af4d82857cd3241f7e3ed7e3ea2caeea32dcddb4da002049f94ce3
EBUILD thunderbird-128.2.1.ebuild 35775 BLAKE2B 698bb70b80b04d0505165c867c6b4835d8d72c58c5291f736e87caf5fa329578a3d4b8a16d357468b307466d4e473c1d7a19aa06e75f12b71a55bf8d680dc73d SHA512 1eaca1ab731975eb94255cf3b62527245575c252d2fc7139038bbd94d97511961771486791a867a88632c7e7351d0d1f7696e2a323b998f1d4f826fe76cbd599
-MISC metadata.xml 2387 BLAKE2B 3602296d8cca60f79ea66089332dbce63b9da3625e476659e0a663966e65bc060e67b263c8fdcdbf8fa5545adf7b8f958cc36f9011459c715ee31bb494e7ce5e SHA512 e51ee84ed715cba36beb240db27265ac37b8df684c0e98f3b81ccf7785c1f465f1bbe3729c1c01717445e787129b449c009815f62a7455ea3fc4db8d1d9e82c3
+EBUILD thunderbird-128.2.2.ebuild 35846 BLAKE2B 4cabe6828e8f85c236d04e8d967adaa58a33abbb16cb782d3bfd913fbb898723bf1c9e38ee5aa6fc795c3ae88849a4dba7334aa6086f74b0f5017c29465e77ad SHA512 0c829e16e7e5519c7c8c52b2e643680709f23ccfd9d2264c1529e0d6c1a706ccadec6c3273173f871cc3cacadc55ce8afb465f777e8daaf70995ad6dc384776c
+MISC metadata.xml 2522 BLAKE2B ae04a037a2497aa3cdbe64ab396557f8f73b67cedb943e48823261348645d4d2d88e9741f6724cc7b0dc68edf7d9b7a79bd738efef39a196ad14ca6353bbf377 SHA512 ff4f36837cea680c924d108e5110c04f3fc55537905f1ae73e297db3ecbcdf0f4409ba6e7a046e188554d640ddacaaf781ac0618c62b214b13a6a15599dbde8e
diff --git a/mail-client/thunderbird/metadata.xml b/mail-client/thunderbird/metadata.xml
index 51a24c64cf6b..27ca960df2ea 100644
--- a/mail-client/thunderbird/metadata.xml
+++ b/mail-client/thunderbird/metadata.xml
@@ -16,6 +16,8 @@
for faster binaries. This option will double the compile time.</flag>
<flag name="pulseaudio">Add sound server support via media-libs/libpulse (may be PulseAudio or
Pipewire, or apulse if installed)</flag>
+ <flag name="rust-extensions">Compile and install experimental rust extensions, that may become
+ part of Thunderbird some day.</flag>
<flag name="sndio">Enable support for the <pkg>media-sound/sndio</pkg> backend</flag>
<flag name="system-av1">Use the system-wide <pkg>media-libs/dav1d</pkg>
and <pkg>media-libs/libaom</pkg> library instead of bundled.</flag>
diff --git a/mail-client/thunderbird/thunderbird-128.2.2.ebuild b/mail-client/thunderbird/thunderbird-128.2.2.ebuild
new file mode 100644
index 000000000000..1599513d8ece
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-128.2.2.ebuild
@@ -0,0 +1,1192 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-128esr-patches-03.tar.xz"
+
+LLVM_COMPAT=( 17 18 )
+
+PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+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 linux-info llvm-r1 multiprocessing \
+ optfeature pax-utils python-any-r1 toolchain-funcs virtualx xdg
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}esr"
+
+if [[ ${PV} == *_rc* ]] ; then
+ MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}esr-candidates/build${PV##*_rc}"
+fi
+
+PATCH_URIS=(
+ https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}esr.source.tar.xz -> ${MOZ_P_DISTFILES}esr.source.tar.xz
+ ${PATCH_URIS[@]}"
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/"
+
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+
+IUSE="+clang +dbus debug eme-free hardened hwaccel jack libproxy lto +openh264 pgo pulseaudio sndio"
+IUSE+=" selinux +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent"
+IUSE+=" +system-libvpx system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +rust-extensions +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+ debug? ( !system-av1 )
+ pgo? ( lto )
+ rust-extensions? ( dbus )
+ wayland? ( dbus )
+ wifi? ( dbus )"
+
+TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird )
+ !system-librnp? ( dev-libs/jsoncpp )
+ system-librnp? ( >=dev-util/librnp-0.17.1 )"
+BDEPEND="${PYTHON_DEPS}
+ $(llvm_gen_dep '
+ sys-devel/clang:${LLVM_SLOT}
+ sys-devel/llvm:${LLVM_SLOT}
+ clang? (
+ sys-devel/lld:${LLVM_SLOT}
+ virtual/rust:0/llvm-${LLVM_SLOT}
+ pgo? ( sys-libs/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
+ )
+ ')
+ app-alternatives/awk
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.26.0
+ net-libs/nodejs
+ virtual/pkgconfig
+ !clang? ( >=virtual/rust-1.76 )
+ !elibc_glibc? ( dev-lang/rust )
+ amd64? ( >=dev-lang/nasm-2.14 )
+ x86? ( >=dev-lang/nasm-2.14 )
+ pgo? (
+ X? (
+ sys-devel/gettext
+ x11-base/xorg-server[xvfb]
+ x11-apps/xhost
+ )
+ !X? (
+ || (
+ gui-wm/tinywl
+ <gui-libs/wlroots-0.17.3[tinywl(-)]
+ )
+ x11-misc/xkeyboard-config
+ )
+ )"
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+ >=app-accessibility/at-spi2-core-2.46.0:2
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/libffi:=
+ >=dev-libs/nss-3.101
+ >=dev-libs/nspr-4.35
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ sys-libs/zlib
+ virtual/freedesktop-icon-theme
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/pango
+ x11-libs/pixman
+ dbus? ( sys-apps/dbus )
+ jack? ( virtual/jack )
+ pulseaudio? (
+ || (
+ media-libs/libpulse
+ >=media-sound/apulse-0.1.12-r4[sdk]
+ )
+ )
+ libproxy? ( net-libs/libproxy )
+ selinux? ( sec-policy/selinux-mozilla )
+ sndio? ( >=media-sound/sndio-1.8.0-r1 )
+ system-av1? (
+ >=media-libs/dav1d-1.0.0:=
+ >=media-libs/libaom-1.0.0:=
+ )
+ system-harfbuzz? (
+ >=media-gfx/graphite2-1.3.13
+ >=media-libs/harfbuzz-2.8.1:0=
+ )
+ system-icu? ( >=dev-libs/icu-74.1:= )
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= )
+ system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+ system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+ system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
+ system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+ wayland? (
+ >=media-libs/libepoxy-1.5.10-r1
+ x11-libs/gtk+:3[wayland]
+ )
+ wifi? (
+ kernel_linux? (
+ || (
+ net-misc/networkmanager
+ net-misc/connman[networkmanager]
+ )
+ sys-apps/dbus
+ )
+ )
+ X? (
+ virtual/opengl
+ x11-libs/cairo[X]
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ x11-libs/libxcb:=
+ )"
+RDEPEND="${COMMON_DEPEND}
+ jack? ( virtual/jack )
+ openh264? ( media-libs/openh264:*[plugin] )"
+DEPEND="${COMMON_DEPEND}
+ X? (
+ x11-base/xorg-proto
+ x11-libs/libICE
+ x11-libs/libSM
+ )"
+
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+llvm_check_deps() {
+ if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
+ einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use clang && ! tc-ld-is-mold ; then
+ if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then
+ einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then
+ einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use pgo ; then
+ if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+ einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2
+ einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+ fi
+
+ einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+ af ar ast be bg br ca cak cs cy da de dsb
+ el en-CA en-GB en-US es-AR es-ES es-MX et eu
+ fi fr fy-NL ga-IE gd gl he hr hsb hu
+ id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+ pa-IN pl pt-BR pt-PT rm ro ru
+ sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+ # https://bugs.gentoo.org/587334
+ local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+ fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+ )
+
+ local lang xflag
+ for lang in "${MOZ_LANGS[@]}" ; do
+ # en and en_US are handled internally
+ if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+ continue
+ fi
+
+ # strip region subtag if $lang is in the list
+ if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+ xflag=${lang%%-*}
+ else
+ xflag=${lang}
+ fi
+
+ SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+ SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi"
+ SRC_URI+=" )"
+ IUSE+=" l10n_${xflag/[_@]/-}"
+ done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -ne 1 ]] ; then
+ die "${FUNCNAME} requires exact one argument"
+ fi
+
+ einfo "Clearing cargo checksums for ${1} ..."
+
+ sed -i \
+ -e 's/\("files":{\)[^}]*/\1/' \
+ "${S}"/third_party/rust/${1}/.cargo-checksum.json || die
+}
+
+moz_install_xpi() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local DESTDIR=${1}
+ shift
+
+ insinto "${DESTDIR}"
+
+ local emid xpi_file xpi_tmp_dir
+ for xpi_file in "${@}" ; do
+ emid=
+ xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+ # Unpack XPI
+ unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+ # Determine extension ID
+ if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+ emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+ [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
+ elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+ emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
+ [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
+ else
+ die "failed to determine extension id"
+ fi
+
+ einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+ newins "${xpi_file}" "${emid}.xpi"
+ done
+}
+
+mozconfig_add_options_ac() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_add_options_mk() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_use_enable() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_enable "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
+}
+
+mozconfig_use_with() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_with "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
+}
+
+virtwl() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+ [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset"
+ tinywl -h >/dev/null || die 'tinywl -h failed'
+
+ local VIRTWL VIRTWL_PID
+ coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; }
+ local -x WAYLAND_DISPLAY
+ read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+ debug-print "${FUNCNAME}: $@"
+ "$@"
+ local r=$?
+
+ [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+ exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+ return $r
+}
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ if use pgo ; then
+ if ! has usersandbox $FEATURES ; then
+ die "You must enable usersandbox as X server can not run as root!"
+ fi
+ fi
+
+ # Ensure we have enough disk space to compile
+ if use pgo || use lto || use debug ; then
+ CHECKREQS_DISK_BUILD="13500M"
+ else
+ CHECKREQS_DISK_BUILD="6600M"
+ fi
+
+ check-reqs_pkg_pretend
+ fi
+}
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ if use pgo ; then
+ if ! has userpriv ${FEATURES} ; then
+ eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!"
+ fi
+ fi
+
+ # Ensure we have enough disk space to compile
+ if use pgo || use lto || use debug ; then
+ CHECKREQS_DISK_BUILD="13500M"
+ else
+ CHECKREQS_DISK_BUILD="6400M"
+ fi
+
+ check-reqs_pkg_setup
+
+ llvm-r1_pkg_setup
+
+ if use clang && use lto && tc-ld-is-lld ; then
+ local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }')
+ [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}")
+ [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!"
+
+ local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }')
+ [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
+ [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!"
+
+ if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then
+ eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
+ eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:"
+ eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version"
+ eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version"
+ eerror " - Build ${CATEGORY}/${PN} without USE=lto"
+ eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole "
+ eerror " llvm/clang/lld/rust chain depending on your @world updates)"
+ die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
+ fi
+ fi
+
+ python-any-r1_pkg_setup
+
+ # Avoid PGO profiling problems due to enviroment leakage
+ # These should *always* be cleaned up anyway
+ unset \
+ DBUS_SESSION_BUS_ADDRESS \
+ DISPLAY \
+ ORBIT_SOCKETDIR \
+ SESSION_MANAGER \
+ XAUTHORITY \
+ XDG_CACHE_HOME \
+ XDG_SESSION_COOKIE
+
+ # Build system is using /proc/self/oom_score_adj, bug #604394
+ addpredict /proc/self/oom_score_adj
+
+ if use pgo ; then
+ # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure
+ # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage
+ # (PORTAGE_SCHEDULING_POLICY) update...
+ addpredict /proc
+
+ # Clear tons of conditions, since PGO is hardware-dependant.
+ addpredict /dev
+ fi
+
+ if ! mountpoint -q /dev/shm ; then
+ # If /dev/shm is not available, configure is known to fail with
+ # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
+ ewarn "/dev/shm is not mounted -- expect build failures!"
+ fi
+
+ # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+ MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+ fi
+
+ if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+ MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+ fi
+
+ # Mozilla API keys (see https://location.services.mozilla.com/api)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+ MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+ fi
+
+ # Ensure we use C locale when building, bug #746215
+ export LC_ALL=C
+ fi
+}
+
+src_unpack() {
+ local _lp_dir="${WORKDIR}/language_packs"
+ local _src_file
+
+ if [[ ! -d "${_lp_dir}" ]] ; then
+ mkdir "${_lp_dir}" || die
+ fi
+
+ for _src_file in ${A} ; do
+ if [[ ${_src_file} == *.xpi ]]; then
+ cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
+ else
+ unpack ${_src_file}
+ fi
+ done
+}
+
+src_prepare() {
+ if use lto; then
+ rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+ fi
+
+ # Workaround for bgo#917599
+ if has_version ">=dev-libs/icu-74.1" && use system-icu ; then
+ eapply "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch
+ fi
+ rm -v "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch || die
+
+ # Workaround for bgo#915651 on musl
+ if use elibc_glibc ; then
+ rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+ fi
+
+ eapply "${WORKDIR}/firefox-patches"
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_user
+
+ # Make cargo respect MAKEOPTS
+ export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+ # Workaround for bgo#915651
+ if ! use elibc_glibc ; then
+ if use amd64 ; then
+ export RUST_TARGET="x86_64-unknown-linux-musl"
+ elif use x86 ; then
+ export RUST_TARGET="i686-unknown-linux-musl"
+ else
+ die "Unknown musl chost, please post your rustc -vV along with emerge --info on Gentoo's bug #915651"
+ fi
+ fi
+
+ # Make LTO respect MAKEOPTS
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/build/moz.configure/lto-pgo.configure || die "Failed sedding multiprocessing.cpu_count"
+
+ # Make ICU respect MAKEOPTS
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/intl/icu_sources_data.py || die "Failed sedding multiprocessing.cpu_count"
+
+ # Respect MAKEOPTS all around (maybe some find+sed is better)
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/python/mozbuild/mozbuild/base.py || die "Failed sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/libwebrtc/build/toolchain/get_cpu_count.py || die "Failed sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/libwebrtc/build/toolchain/get_concurrent_links.py ||
+ die "Failed sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/python/mozbuild/mozbuild/code_analysis/mach_commands.py || die "Failed sedding multiprocessing.cpu_count"
+
+ # sed-in toolchain prefix
+ sed -i \
+ -e "s/objdump/${CHOST}-objdump/" \
+ "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py || die "sed failed to set toolchain prefix"
+
+ sed -i \
+ -e 's/ccache_stats = None/return None/' \
+ "${S}"/python/mozbuild/mozbuild/controller/building.py || die "sed failed to disable ccache stats call"
+
+ einfo "Removing pre-built binaries ..."
+
+ find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
+
+ # Clear checksums from cargo crates we've manually patched.
+ # moz_clear_vendor_checksums xyz
+
+ # Create build dir
+ BUILD_DIR="${WORKDIR}/${PN}_build"
+ mkdir -p "${BUILD_DIR}" || die
+
+ # Write API keys to disk
+ echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+ echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die
+ echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+ xdg_environment_reset
+}
+
+src_configure() {
+ # Show flags set at the beginning
+ einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ local have_switched_compiler=
+ if use clang; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+
+ local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }')
+ [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}")
+ [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+ if tc-is-gcc; then
+ have_switched_compiler=yes
+ fi
+ AR=llvm-ar
+ CC=${CHOST}-clang-${version_clang}
+ CXX=${CHOST}-clang++-${version_clang}
+ NM=llvm-nm
+ RANLIB=llvm-ranlib
+ elif ! use clang && ! tc-is-gcc ; then
+ # Force gcc
+ have_switched_compiler=yes
+ einfo "Enforcing the use of gcc due to USE=-clang ..."
+ AR=gcc-ar
+ CC=${CHOST}-gcc
+ CXX=${CHOST}-g++
+ NM=gcc-nm
+ RANLIB=gcc-ranlib
+ fi
+
+ if [[ -n "${have_switched_compiler}" ]] ; then
+ # Because we switched active compiler we have to ensure
+ # that no unsupported flags are set
+ strip-unsupported-flags
+ fi
+
+ # Ensure we use correct toolchain,
+ # AS is used in a non-standard way by upstream, #bmo1654031
+ export HOST_CC="$(tc-getBUILD_CC)"
+ export HOST_CXX="$(tc-getBUILD_CXX)"
+ export AS="$(tc-getCC) -c"
+
+ # Configuration tests expect llvm-readelf output, bug 913130
+ READELF="llvm-readelf"
+
+ tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG
+
+ # Pass the correct toolchain paths through cbindgen
+ if tc-is-cross-compiler ; then
+ export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}"
+ fi
+
+ # Set MOZILLA_FIVE_HOME
+ export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # python/mach/mach/mixin/process.py fails to detect SHELL
+ export SHELL="${EPREFIX}/bin/bash"
+
+ # Set state path
+ export MOZBUILD_STATE_PATH="${BUILD_DIR}"
+
+ # Set MOZCONFIG
+ export MOZCONFIG="${S}/.mozconfig"
+
+ # Initialize MOZCONFIG
+ mozconfig_add_options_ac '' --enable-application=comm/mail
+ mozconfig_add_options_ac '' --enable-project=comm/mail
+
+ # Set Gentoo defaults
+ mozconfig_add_options_ac 'Gentoo default' \
+ --allow-addon-sideload \
+ --disable-cargo-incremental \
+ --disable-crashreporter \
+ --disable-disk-remnant-avoidance \
+ --disable-geckodriver \
+ --disable-gpsd \
+ --disable-install-strip \
+ --disable-legacy-profile-creation \
+ --disable-parental-controls \
+ --disable-strip \
+ --disable-tests \
+ --disable-updater \
+ --disable-valgrind \
+ --disable-wmf \
+ --enable-js-shell \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-release \
+ --enable-system-ffi \
+ --enable-system-pixman \
+ --enable-system-policies \
+ --host="${CBUILD:-${CHOST}}" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --prefix="${EPREFIX}/usr" \
+ --target="${CHOST}" \
+ --without-ccache \
+ --without-wasm-sandboxed-libraries \
+ --with-intl-api \
+ --with-libclang-path="$(llvm-config --libdir)" \
+ --with-system-nspr \
+ --with-system-nss \
+ --with-system-zlib \
+ --with-toolchain-prefix="${CHOST}-" \
+ --with-unsigned-addon-scopes=app,system \
+ --x-includes="${ESYSROOT}/usr/include" \
+ --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
+
+ # Set update channel
+ local update_channel=release
+ [[ -n ${MOZ_ESR} ]] && update_channel=esr
+ mozconfig_add_options_ac '' --update-channel=${update_channel}
+
+ if ! use x86 ; then
+ mozconfig_add_options_ac '' --enable-rust-simd
+ fi
+
+ # For future keywording: This is currently (97.0) only supported on:
+ # amd64, arm, arm64 & x86.
+ # Might want to flip the logic around if Firefox is to support more arches.
+ # bug 833001, bug 903411#c8
+ if use ppc64 || use riscv; then
+ mozconfig_add_options_ac '' --disable-sandbox
+ else
+ mozconfig_add_options_ac '' --enable-sandbox
+ fi
+
+ # Enable JIT on riscv64 explicitly
+ # Can be removed once upstream enable it by default in the future.
+ use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' --enable-jit
+
+ if [[ -s "${S}/api-google.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+ else
+ einfo "Building without Google API key ..."
+ fi
+
+ if [[ -s "${S}/api-location.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-google-location-service-api-keyfile="${S}/api-location.key"
+ else
+ einfo "Building without Location API key ..."
+ fi
+
+ if [[ -s "${S}/api-mozilla.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+ else
+ einfo "Building without Mozilla API key ..."
+ fi
+
+ mozconfig_use_enable rust-extensions thunderbird-rust
+
+ mozconfig_use_with system-av1
+ mozconfig_use_with system-harfbuzz
+ mozconfig_use_with system-harfbuzz system-graphite2
+ mozconfig_use_with system-icu
+ mozconfig_use_with system-jpeg
+ mozconfig_use_with system-libevent
+ mozconfig_use_with system-libvpx
+ mozconfig_use_with system-png
+ mozconfig_use_with system-webp
+
+ if use system-librnp; then
+ mozconfig_add_options_ac "+system-librnp" --enable-compile-environment
+ mozconfig_use_with system-librnp
+ else
+ # This controls the backend of the bundled librnp. Choices are "botan" and "openssl".
+ # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp.
+ mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan"
+ fi
+
+ mozconfig_use_enable dbus
+ mozconfig_use_enable libproxy
+
+ use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+ if use hardened ; then
+ mozconfig_add_options_ac "+hardened" --enable-hardening
+ append-ldflags "-Wl,-z,relro -Wl,-z,now"
+
+ # Increase the FORTIFY_SOURCE value, #910071.
+ sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' "${S}"/build/moz.configure/toolchain.configure || die
+ fi
+
+ local myaudiobackends=""
+ use jack && myaudiobackends+="jack,"
+ use sndio && myaudiobackends+="sndio,"
+ use pulseaudio && myaudiobackends+="pulseaudio,"
+ ! use pulseaudio && myaudiobackends+="alsa,"
+
+ mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}"
+
+ mozconfig_use_enable wifi necko-wifi
+
+ if use X && use wayland ; then
+ mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland
+ elif ! use X && use wayland ; then
+ mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only
+ else
+ mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3-x11-only
+ fi
+
+ # LTO is handled via configure
+ filter-lto
+
+ if use lto ; then
+ if use clang ; then
+ # Upstream only supports lld or mold when using clang.
+ if tc-ld-is-mold ; then
+ # mold expects the -flto line from *FLAGS configuration, bgo#923119
+ append-ldflags "-flto=thin"
+ mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
+ fi
+
+ mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+ else
+ # ThinLTO is currently broken, see bmo#1644409.
+ # mold does not support gcc+lto combination.
+ mozconfig_add_options_ac '+lto' --enable-lto=full
+ mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
+ fi
+
+ if use pgo ; then
+ mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+ if use clang ; then
+ # Used in build/pgo/profileserver.py
+ export LLVM_PROFDATA="llvm-profdata"
+ fi
+ fi
+ else
+ # Avoid auto-magic on linker
+ if use clang ; then
+ # lld is upstream's default
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
+ fi
+
+ else
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "linker is set to bfd due to USE=-clang" --enable-linker=bfd
+ fi
+ fi
+ fi
+
+ mozconfig_use_enable debug
+ if use debug ; then
+ mozconfig_add_options_ac '+debug' --disable-optimize
+ mozconfig_add_options_ac '+debug' --enable-jemalloc
+ mozconfig_add_options_ac '+debug' --enable-real-time-tracing
+ else
+ mozconfig_add_options_ac 'Gentoo defaults' --disable-real-time-tracing
+
+ if is-flag '-g*' ; then
+ if use clang ; then
+ mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
+ else
+ mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
+ fi
+ else
+ mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
+ fi
+
+ if is-flag '-O0' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
+ elif is-flag '-O4' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
+ elif is-flag '-O3' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
+ elif is-flag '-O1' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
+ elif is-flag '-Os' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
+ else
+ mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
+ fi
+ fi
+
+ # Debug flag was handled via configure
+ filter-flags '-g*'
+
+ # Optimization flag was handled via configure
+ filter-flags '-O*'
+
+ # elf-hack
+ # Filter "-z,pack-relative-relocs" and let the build system handle it instead.
+ if use amd64 || use x86 ; then
+ filter-flags "-z,pack-relative-relocs"
+
+ if tc-ld-is-mold ; then
+ # relr-elf-hack is currently broken with mold, bgo#916259
+ mozconfig_add_options_ac 'disable elf-hack with mold linker' --disable-elf-hack
+ else
+ mozconfig_add_options_ac 'relr elf-hack' --enable-elf-hack=relr
+ fi
+ elif use ppc64 || use riscv ; then
+ # '--disable-elf-hack' is not recognized on ppc64/riscv,
+ # see bgo #917049, #930046
+ :;
+ else
+ mozconfig_add_options_ac 'disable elf-hack on non-supported arches' --disable-elf-hack
+ fi
+
+ if ! use elibc_glibc; then
+ mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+ fi
+
+ # System-av1 fix
+ use system-av1 && append-ldflags "-Wl,--undefined-version"
+
+ # Allow elfhack to work in combination with unstripped binaries
+ # when they would normally be larger than 2GiB.
+ append-ldflags "-Wl,--compress-debug-sections=zlib"
+
+ # Make revdep-rebuild.sh happy; Also required for musl
+ append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
+
+ # Pass $MAKEOPTS to build system
+ export MOZ_MAKE_FLAGS="${MAKEOPTS}"
+
+ # Use system's Python environment
+ export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+ export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+
+ # Disable notification when build system has finished
+ export MOZ_NOSPAM=1
+
+ # Portage sets XARGS environment variable to "xargs -r" by default which
+ # breaks build system's check_prog() function which doesn't support arguments
+ mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
+
+ # Set build dir
+ mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
+
+ # Show flags we will use
+ einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ # Handle EXTRA_CONF and show summary
+ local ac opt hash reason
+
+ # Apply EXTRA_ECONF entries to $MOZCONFIG
+ if [[ -n ${EXTRA_ECONF} ]] ; then
+ IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
+ for opt in "${ac[@]}"; do
+ mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
+ done
+ fi
+
+ echo
+ echo "=========================================================="
+ echo "Building ${PF} with the following configuration"
+ grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
+ [[ -z ${hash} || ${hash} == \# ]] \
+ || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
+ printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
+ done
+ echo "=========================================================="
+ echo
+
+ ./mach configure || die
+}
+
+src_compile() {
+ local virtx_cmd=
+
+ if tc-ld-is-mold && use lto; then
+ # increase ulimit with mold+lto, bugs #892641, #907485
+ if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+ ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources."
+ ewarn "Please see bugs #892641 & #907485."
+ else
+ ulimit -n 16384
+ fi
+ fi
+
+ if use pgo; then
+ # Reset and cleanup environment variables used by GNOME/XDG
+ gnome2_environment_reset
+
+ addpredict /root
+
+ if ! use X; then
+ virtx_cmd=virtwl
+ else
+ virtx_cmd=virtx
+ fi
+ fi
+
+ if ! use X; then
+ local -x GDK_BACKEND=wayland
+ else
+ local -x GDK_BACKEND=x11
+ fi
+
+ ${virtx_cmd} ./mach build --verbose || die
+}
+
+src_install() {
+ # xpcshell is getting called during install
+ pax-mark m \
+ "${BUILD_DIR}"/dist/bin/xpcshell \
+ "${BUILD_DIR}"/dist/bin/${PN} \
+ "${BUILD_DIR}"/dist/bin/plugin-container
+
+ DESTDIR="${D}" ./mach install || die
+
+ # Upstream cannot ship symlink but we can (bmo#658850)
+ rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+ dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+ # Don't install llvm-symbolizer from sys-devel/llvm package
+ if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+ rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+ fi
+
+ # Install policy (currently only used to disable application updates)
+ insinto "${MOZILLA_FIVE_HOME}/distribution"
+ newins "${FILESDIR}"/distribution.ini distribution.ini
+ newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+ # Install system-wide preferences
+ local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+ insinto "${PREFS_DIR}"
+ newins "${FILESDIR}"/gentoo-default-prefs-r1.js gentoo-prefs.js
+
+ local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+ # Force hwaccel prefs if USE=hwaccel is enabled
+ if use hwaccel ; then
+ cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
+ >>"${GENTOO_PREFS}" \
+ || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
+
+ if use wayland; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs"
+ pref("gfx.x11-egl.force-enabled", false);
+ EOF
+ else
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs"
+ pref("gfx.x11-egl.force-enabled", true);
+ EOF
+ fi
+ fi
+
+ # Set dictionary path to use system hunspell
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
+ pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
+ EOF
+
+ # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
+ if use system-harfbuzz ; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
+ sticky_pref("gfx.font_rendering.graphite.enabled", true);
+ EOF
+ fi
+
+ # Install language packs
+ local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
+ if [[ -n "${langpacks}" ]] ; then
+ moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
+ fi
+
+ # Install icons
+ local icon_srcdir="${S}/comm/mail/branding/thunderbird"
+ local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
+
+ insinto /usr/share/icons/hicolor/symbolic/apps
+ newins "${icon_symbolic_file}" ${PN}-symbolic.svg
+
+ local icon size
+ for icon in "${icon_srcdir}"/default*.png ; do
+ size=${icon%.png}
+ size=${size##*/default}
+
+ if [[ ${size} -eq 48 ]] ; then
+ newicon "${icon}" ${PN}.png
+ fi
+
+ newicon -s ${size} "${icon}" ${PN}.png
+ done
+
+ # Install menu
+ local app_name="Mozilla ${MOZ_PN^}"
+ local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
+ local desktop_filename="${PN}.desktop"
+ local exec_command="${PN}"
+ local icon="${PN}"
+ local use_wayland="false"
+
+ if use wayland ; then
+ use_wayland="true"
+ fi
+
+ cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
+
+ sed -i \
+ -e "s:@NAME@:${app_name}:" \
+ -e "s:@EXEC@:${exec_command}:" \
+ -e "s:@ICON@:${icon}:" \
+ "${WORKDIR}/${PN}.desktop-template" || die
+
+ newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
+
+ rm "${WORKDIR}/${PN}.desktop-template" || die
+
+ # Install wrapper script
+ [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
+ newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
+
+ # Update wrapper
+ sed -i \
+ -e "s:@PREFIX@:${EPREFIX}/usr:" \
+ -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
+ -e "s:@APULSELIB_DIR@:${apulselib}:" \
+ -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
+ "${ED}/usr/bin/${PN}" || die
+}
+
+pkg_preinst() {
+ xdg_pkg_preinst
+
+ # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
+ # does not need to be forced into the LD_LIBRARY_PATH
+ if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+ einfo "APULSE found; Generating library symlinks for sound support ..."
+ local lib
+ pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
+ for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
+ # A quickpkg rolled by hand will grab symlinks as part of the package,
+ # so we need to avoid creating them if they already exist.
+ if [[ ! -L ${lib##*/} ]] ; then
+ ln -s "${lib}" ${lib##*/} || die
+ fi
+ done
+ popd &>/dev/null || die
+ fi
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+ elog "Apulse was detected at merge time on this system and so it will always be"
+ elog "used for sound. If you wish to use pulseaudio instead please unmerge"
+ elog "media-sound/apulse."
+ elog
+ fi
+
+ optfeature_header "Optional programs for extra features:"
+ optfeature "desktop notifications" x11-libs/libnotify
+ optfeature "encrypted chat support" net-libs/libotr
+ optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas
+}