commit:     0b720f36bc2c09b0eb9cdd700043033974f061e1
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 20 00:57:19 2021 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sat Nov 20 01:13:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b720f36

mail-client/thunderbird: bump to v91.3.2

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 mail-client/thunderbird/Manifest                  |   64 ++
 mail-client/thunderbird/thunderbird-91.3.2.ebuild | 1133 +++++++++++++++++++++
 2 files changed, 1197 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index f00c04963279..1a9f1f9f17cf 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -259,3 +259,67 @@ DIST thunderbird-91.3.1-vi.xpi 706358 BLAKE2B 
7cfdb545b0c532f9077d7266e443e4692c
 DIST thunderbird-91.3.1-zh-CN.xpi 714607 BLAKE2B 
c9edc522533149bb7ae3e753daa15b77581c67d2c2372b783ac86489c98d5fb1b167982f94ce7d535a2a9b8b47c3a1a1cd62ece804c708ba926dc05d245f5401
 SHA512 
66556244cbf6e700dcbba0b61d0561ed848941e9e929e37e96c47060ce8c98ec3ff064d7e1c95082fa2b6e6e9e29b8f9a93eab7623b4ca62d1b4a84c877585a6
 DIST thunderbird-91.3.1-zh-TW.xpi 715955 BLAKE2B 
1e8d785f749cc9825989992ff8e8ba4f2094742c383dab5bd3638c4af34d3d4b85eeb23bed98cf8c030b24e25115fa6de87db5439a5cd0663f41fb19df465620
 SHA512 
87610a5e557a04b3e0bb0fdc1970fa294681d0f7607b46228980be56e7737698e3edad46647c8b7be67d22d7c3033bff5d6d7dab6ae8fea2284ccbb0f5516b93
 DIST thunderbird-91.3.1.source.tar.xz 403764984 BLAKE2B 
55dc404797f3ed4065d14d1b9360218c2f24dd9bd22472446a2bb755de68495d974e1bb647caef8cf9a27af0e96ba53cf57504fe0332d23ba76e9230b3e2dd3c
 SHA512 
4938f676ddeeba37da1f2086d76a2ef2c870738169f7e10b35b83e4ed772df634825ee25c28232df1ac1e3a18a9466e97dc7ee318abbf43f1f4ce6479a13975b
+DIST thunderbird-91.3.2-af.xpi 560247 BLAKE2B 
38c67858d7d20b7ef3c0148b13b261e47dbcac6b58c4cbae03abcbc8a12f60cc06632df26b99db499dc5581fda11fe94599904dec291bfc196a9e375049df07a
 SHA512 
19352b7210a0edf2770a3d174fac12be53719e82adc42911e37736bdb8f9f5d5320dad1f583c79bbf067a2aa21e2d8f8152db8aef91406e571e6f709c569a781
+DIST thunderbird-91.3.2-ar.xpi 660313 BLAKE2B 
e0c82ea24c98978341366cddf3a65fcd0e80e369fffe86e83b9bf66fd39a0c876865abbd9b56fa3b7b729aabef14e6d24de7a63b23e5b7909479781058de497f
 SHA512 
61555c72082338f7b1550a76809577edf0f3df67aa3c5fc66ba8cbca95272ff9cb15e70bc7e846936038fd7939460cb7dcda63878fbdca2ce44dd9a848ef5c78
+DIST thunderbird-91.3.2-ast.xpi 577052 BLAKE2B 
079ebab5eb77843bb4d3139080af7f9845afa74be48258af92b6c7c191957f97df40e577f83fa8a8c2f93269e322eb4de44057be0db58007428e83a2723418d6
 SHA512 
b05517ca2ff26b308c78e7e601533464fb8b1816b081553a99bc0daf9393af39ffe68a16bc28fc2b9ab6200ab81b889ba9005b500bd0258aa9ab7f4dcacc6f48
+DIST thunderbird-91.3.2-be.xpi 687227 BLAKE2B 
c2bfd7388282ba3098a36628b7841dd61a20877014df538539dcd29269386b98775e570ad1b5ea3e7bca79c19afa9cd1e2e886cbef878e72e7463a18ff3832ff
 SHA512 
1ac362e2e581c92f8ba1d68e6a1aea35c5a2450bcf46d60ed6e9a24aa602fca60f8a474ca995f0a740f0315bd5c1594006a67df9fd52f039fa7733e2d4ea06ad
+DIST thunderbird-91.3.2-bg.xpi 686416 BLAKE2B 
4c6d176964274acac85d3d79661744dcaeab77f4f1c2b94e7dfb9e1addb28b7d3d219897026ed568184fccb85fb2779da944d26c3399ac86ab74f0bbadfa316d
 SHA512 
56dd370da78e783dd1cfafb5b7f3e32ac1dd23967dcea9d257aa5132334e29967e69de96a30fda4d71aa3d4abf6179824ca3a10641e284002c158001ceb2fa08
+DIST thunderbird-91.3.2-br.xpi 616018 BLAKE2B 
ff4413e928389f1467ce172a99bbf98028cbc8ada135191992751ac79dfe09b1ca7b7ab99dd5d0eb42e8ecd9ba3acc5d9c6a11a591482c689a2eec55a21e09ca
 SHA512 
37526df45b3db0aba6016fa681eb01b294493c2c937a4923d63fbc8f0bcf7840623e24eda5e48784e4d7b8414cd7a52b69ce4934bb9dc218187335789e681bde
+DIST thunderbird-91.3.2-ca.xpi 641158 BLAKE2B 
cb34a99bc522dc8f183f18a22d1d8feebfb9d4ada3e815a75e0daca88449c93733f9896028017bf9259de3fe726edcf030df0e4fa51f51ba5c5d9d2956e7521b
 SHA512 
290af4ab5e14d3dff3738049af519896ce0b75a173b4d3b9558405bd5c79b0b4a6dc6af4ecffd7eaceb28882a511a1cd6a33c5a118959617289f8c2878045295
+DIST thunderbird-91.3.2-cak.xpi 647217 BLAKE2B 
1d18eb059f934c8287530c4c39fe23754e39985e652c2e00255e6eaf2bcff590e27c3f0bcb16aa1b2e42207eec3cd04cd99b67efc4db380f0259c1f03b5d6aac
 SHA512 
8c9219ae0580cff202cd368fb1cc006eac1cf41ea38ab1cdeaf6db54469281051f695bfc24e466a70cb7f7d8f3ca53bf436ad9d721831aa0ab9bc7666e39a269
+DIST thunderbird-91.3.2-cs.xpi 698287 BLAKE2B 
7a80b95fc48c1efdc649f375f8e67ba6128fbc056638c3db45665752c4289cb3be10b15436aa65f280a58033532a85fba7f4473c6a3d17302c02a6a2c96542da
 SHA512 
f29f45956775496a2b8c50442155ac16aa58389d558c75b38e186f7d46a9aca60c38e8626e05bda09c16fb5be40342d5479f55ff797bbe13e067f0eb6845a1c1
+DIST thunderbird-91.3.2-cy.xpi 673997 BLAKE2B 
e732eaa0f9b662ecd08e079b25970a72a153d0020915d26644d75eb3b97608dec918e0bc85c595067da70910725cf3f82e886781db1b71a209c1302a470c260c
 SHA512 
d06281cffaaa38e3c1e3192c38b26c875cb2d032821bf5f0889ffce462dc6df5ca7027b2a145a0eae3bb957451640e9f385fbba4af497fe35c55a647596bed8f
+DIST thunderbird-91.3.2-da.xpi 655951 BLAKE2B 
f6417f8523ceec63f56d2113171be49fc984deb6f833ef8bfae35e7fec47170d801c1b1039392dfb4d8d25e41eeb576af9f1d11f37ecb30c833c00f99fc99978
 SHA512 
e5e19c0d02ae421aed818e55760883e43a30084e219df81dc68b25f2560843da1531b0c0cf011af7e4dfd35e921485c3305078545e1d96c22683dffc7cdf6e9b
+DIST thunderbird-91.3.2-de.xpi 687003 BLAKE2B 
ae3aea3630d4d53d100ee58e85fd64d2622e9dcf91bab240608a71a8d50ee80c8d2f0cba9b0e47b0519b982690daf6c09980d2c66da47f179730ee9013da9151
 SHA512 
5f55286aaa5f86d010caa3cc3e66bd574b715eb63a6189ed25cb4bd6205f519ad974f0b5185a0787e000a3e7cb1afc3c4efde908cf2d8ec78c0ba74e5bd16b05
+DIST thunderbird-91.3.2-dsb.xpi 707237 BLAKE2B 
408e1e2659f1adf6a7473aa9039e983bf76d887b1ceb4499a09839cee0f870632bee34bee5784351ac317466f54f140400ee864125ab9636dc09f8275417c89e
 SHA512 
5713163c6f9cb6eaf06e7b1ee2ecbf5dce9adfa905bf672db77d89859d9a1a9ca780d699921f64d298b8844c4c51890694460303f2dcb148fd1d2f290961b08a
+DIST thunderbird-91.3.2-el.xpi 803551 BLAKE2B 
3c087b5fbb72d0552c80fda9d2a9e0534f4453ca2680eb6e5a9ee63a2993c4a965471319bcc78b92e8004ae5fe48b9975d1e39cb68a9dfa748ef59d12d131d8d
 SHA512 
9b7fe4a982d7c659eff134f8f77a4a6c342aeeab4211ee680dd46f967e27edc2965a949d2faa5e5c56a98bc6d50ce8307a4cce0e8a41760c856557729503c756
+DIST thunderbird-91.3.2-en-CA.xpi 634128 BLAKE2B 
db114f45dc2f39a844d6ee91ef66f442dd7ea85a431d7fbd1db16ef13f7ce0745fc6384e860b9efe3bf8b387abfc5856f4d00fe48e2b4524d305631c1194a382
 SHA512 
748164d529f6cc3ef998cd1fe8b26f3e6d36298b02d2d988572135f7cdee781daf2857bc772cec726a4a79cc82fbc25fe61f70cf0c4ee1d35d50da6ccde22158
+DIST thunderbird-91.3.2-en-GB.xpi 636515 BLAKE2B 
7718d5e0045fe393ea56cf759da60f3ebc603ecf1ced736d53035a6fe95599994ec9bb0b60e6d14740b362b5be2f7241b9207483df9cdec430c4a446e00576a7
 SHA512 
ceff847838893ae23c088213a5454f70ccba8a84763be57d63de6f52e98dcb15b82f9f13b24fa09cb3341560e2a450467db13fb3f4aff6f399d8cda05c34a270
+DIST thunderbird-91.3.2-es-AR.xpi 685105 BLAKE2B 
e35fc668ba7105107fd1a7e7bf57a24f73d7f018efa8304e882f60d455a010c4a6b36e4d4c3c1b8a8c9e9f0b82db0df307831a655d183fc8d122d6d1d07c8de0
 SHA512 
2a414d9365bacb223ca84c0fd83d86bcb17d39563adcd61244170919ec873b257f3e8a88d128a0d5cd54eca94c705e1b7633d538e552b7dc0638f99c0bf54339
+DIST thunderbird-91.3.2-es-ES.xpi 573862 BLAKE2B 
d295efe75600f921f489a745e7ec9507427fab5b2dd72576bf3a72133ad05090d865d6d7acbf14df5e670369f69b5db46f29ed43a9e0372d0e34f149c54b334e
 SHA512 
226d783316a15d18a1cc3a6b8666eb7a282270b54e5c8033dc02e39547220534a703a46aa60c702eceaa9c7c5318b2b69f886df4154c06825be3ebe3e9a9751e
+DIST thunderbird-91.3.2-et.xpi 598832 BLAKE2B 
b4407203bfbcd362f80d1d14bf0891ab7587e613e7f7f0767c1523d1b227e990217d70f810452ffe26c5a69fda7c63bcd607a6785562b521d4b6dfbec4c9706c
 SHA512 
9ab950b3a3238435aa511953ee06a23ed2a4604f4b5d12c7a03734551c98662546dc5fddf7bc93978114a6ff09f213fb7378fc78a1a54de59a9738e50ca76286
+DIST thunderbird-91.3.2-eu.xpi 666124 BLAKE2B 
8e544c730262e6060c873522267f79ffc60e04a5d65f40603a11a010a5ef649a516c9be2a0da413dd22c47eb63f50ce72312be4cfd7b857e64564c6b58c7df48
 SHA512 
e5960720304672ce9189e85117f62b796fba3d79a0198bf8352a6346a5cc3e0a1101f0921cbde1b40794a2fb81a1c7c8b1181c34026b7c427a7efa33cbfcf496
+DIST thunderbird-91.3.2-fi.xpi 664678 BLAKE2B 
7574823ecd0f5c073abbf087d48b04533387e1d737c5727af9d353dc7004bc853d16023624da6c72ce1ea16a46e77988d2fd67784924de3e154ad0dcb15828fb
 SHA512 
bd0a08c5524df3899a1ff240d993b3bc081b67afd940d4243c049c27e425f0ece7390388f23420ad01c96826803edb05e091bf0240960099df4358392ac85096
+DIST thunderbird-91.3.2-fr.xpi 697504 BLAKE2B 
82613f55810b82533b51f4e4acd63fc571b61fc13b3a11e08ed9d5f21aa5fe24412694a78e21cd002bb8fd16d3722ac85452f8eeeb5d1ac616a93fcf6fded1cd
 SHA512 
aed8f85c941970d0aa83e56d5d32ff9dab5b7027b885b9e388b4f20b40fe7b1ad46120ec2ed27c328d4d13166eacc00aca103a63d530ae7a1191ed97a9d47f4d
+DIST thunderbird-91.3.2-fy-NL.xpi 680172 BLAKE2B 
4e40a57d98e38f9ed86faca0be6ad3607923e1596c01fad534cfb4a88c1be3ec5634b699df0513dbccf158a611d52e7bbdd8e5157effc41c2d3bea2068cf88be
 SHA512 
b314051ee38d7b7213b44394db7af9694556a4cb0e6765e9026cb36d275b4a7a0c3d788438ed5695815d5beffdd485cfe42fbc1984b590f8574b77a57cf4fc7b
+DIST thunderbird-91.3.2-ga-IE.xpi 601909 BLAKE2B 
18b8637edc6c1559dbb6e9a6c35db726faba3030b17accef1f44b2d4990ff3a126b516ba8b5b4eca7e4c7d7924b607c3077cdab9691e029a866eeac648d876eb
 SHA512 
eca8ff21ca222ae5f9a7aec49a0d1124db4cab6e9a285de35a6efb8de567eb779f03e76ac454d7dc3527f0a8695f339c2dc1626ab41fa305edd789440364bd01
+DIST thunderbird-91.3.2-gd.xpi 635776 BLAKE2B 
0c60fc44c291167c5937c19f54e180ea5e1dc256efcf9e1f6e9d7958c6f47881ec6c80a8262b236d2c8c25c05090724a4317a06885926ce304938d844df0cc1d
 SHA512 
5108c9f0c3ca44632024420f23d84a645b67152a905f31428d9eb4fa61cb1a5dd51c64e52070f1103a3f0b7d6be5d62e66774e53f78a6c0f8b4a87b0b73d677c
+DIST thunderbird-91.3.2-gl.xpi 671075 BLAKE2B 
d41618f40f59bb96245d7137fa57c635a1b98c663a36ecbc0b8d09db3a89a968dd3571fb8923cdc48c1bf1ce6999a18237cf0337e9d1053f307159d69a47c2d0
 SHA512 
d02a69e163bafbaa437b0319d12aa990328605aade936eb82ff53c4c220c7594e13efc5f91668544fdc0cb05e8b85168e25b566d60f3f8915b6aacca7610b492
+DIST thunderbird-91.3.2-he.xpi 665955 BLAKE2B 
ccfba17dbb046ba2a41bdbb4b13801ee98aff10b6ef6417928cc6919a49c8b1e0501061714e1bc3bb06bfe783080b87e825d5115bb5a523ff4afc84ff579c63e
 SHA512 
c3e4b2df644ded90b11632bb31760a4c56b225a8872d5cc74584c1690e99c95d17d461a5a16eaf7c12124ee0b7d2af36ed1303a5d9c04666cdac8dbaa8f83537
+DIST thunderbird-91.3.2-hr.xpi 641171 BLAKE2B 
f12a2853311527ceca3dc56defccf6496b621306058c81555819010b8daddcb417e7c391f690bafeab1de958f1969a65a49cbbb23729515495cf3461d1be4fc2
 SHA512 
180007026ea04c8128abc5088b8b1ec3a2251892f069c75bf8e5188c8131853f054198786fbbab122c7a99a7eb1604c9a578482ff0c4e2360bc7e5845e1cbcf7
+DIST thunderbird-91.3.2-hsb.xpi 704705 BLAKE2B 
a40e1b8378b1bf70401604375aa44f58426380d868f21b737b1a8384098c4784f053c82274fa9632b1c71f902e59697b7bb0ca98bf61068406bdd396a3f449f1
 SHA512 
29ffac8e8d4615bfa8254a9c16e6fa4d9ddbab96430417a090147fc3106fa0510395f7ce745dfd2c9c5942f3e6dde0219ac6b5be88171d8d5c7355b73083c366
+DIST thunderbird-91.3.2-hu.xpi 707540 BLAKE2B 
76fc85d7781d0b93c76ce72fa41a54a5e278b572413b0c23539160fc0603c0aace256871abaddad21fcaf89cb925c32e023ea83593d3fee8204b519bcb217359
 SHA512 
6e1f053bc22e0569faf914d450e2e29b2f4ca772ba9609806288b30ff24c1d738f3671797d564ecf777b27478ab0606d19b42f76fdd1e632b7a78b45b01791e0
+DIST thunderbird-91.3.2-id.xpi 639034 BLAKE2B 
b20f2f8bf991c430fa0a108983b0204b8ddda8d64d4dab1e629700283eed02f9d03f9626ecf692f468919e6480878c5eddb9b6578d0c73ce166b6ee17210eea0
 SHA512 
61754ef24f38fbce192d56a5bd6997fdd8e745e66bac367d44cfcd04dad3a905ffa78d1a67e1b6c65d2d4225ac6aba9fc55a76f53920dc3bf97a2d49156ca506
+DIST thunderbird-91.3.2-is.xpi 575006 BLAKE2B 
c4ea47ba06eb9e60914ba442c650cb679990620ba2e26da1ff008dbd0328f6dd47177d88cac2fd83309e1490507bef9c6a03a0930b40d7c8fa5bcfbf5d823a0a
 SHA512 
82aa5207902de6e707b5eff7cc134c190394de1ffdc697a683b81bec775ff92aaa0bf699a49ced6fe5638097348648bf8fc50435ac2f5dae5ced37ec600b1476
+DIST thunderbird-91.3.2-it.xpi 600160 BLAKE2B 
064284f9ba14d573baec489a36a8674e5423c6e5b208ddb5151bb0e0b255c2b4351b0a0d3697988cebd6b77a08d9a2db8e03d6bffdd75400bce22db28b11cde9
 SHA512 
8ebf1e674e5829b2bc5e0b673ee1f8e784440634afe0c821ce7abccb60a0c702980fa8d8a641f105f087c8156a57c310ef12e8a2513c7cc3a072c46d9337c246
+DIST thunderbird-91.3.2-ja.xpi 741229 BLAKE2B 
f25417938d405bc339dfa07d0f8a34c862a0ad6ecb2e1886c159eeb39ccd69d556bc01ba97523acc70585d1d36f047dcc670a01f4aaa3f81d23afefc8cfc5fa1
 SHA512 
25803d3a298530fec752833ad103d0751c9c5b946151a5e070c96638bdd978794bbce32fe8c0cf4aec16c12e8f9e46f4070e807b139e13a4c1cca167a1533263
+DIST thunderbird-91.3.2-ka.xpi 746751 BLAKE2B 
816e1f7301ad0b759f2dadc0d2c67ff6843632ae0ed117c7cc5d554fadd8a354b5ec10d0c05f1200a35b5cae495640c2dc0aad5238926aec7255edd29424b330
 SHA512 
2ae723f19734fae5e2bb74893b4284658f3bbd1089919cb96470409c258c4aa95c85716412a8e2da09e44974a2cabe316c888dd926df79c0f2b6de81fc6a3cf6
+DIST thunderbird-91.3.2-kab.xpi 672040 BLAKE2B 
4bf493356a500a641decb6ff2e4da293475837f3c065c9c64be65daf8a89f1f7b85319f3e0046bae33ce8b4700e40e43addf83e2972c52c4184e2c3daf469cc1
 SHA512 
a9b5bf910d83bb13c8d8417f5749ff0b2360e35d52d3943ad660c3de3c652869d491d1b1d81a0ac86078ccd38c13176221eb729b38adf6a32e9c1ab333b7dab8
+DIST thunderbird-91.3.2-kk.xpi 731346 BLAKE2B 
37645d4ee29c815a4ee723f4986200385f48444d0984df9e3695f8265b90f33849e9969e6042390c3bc7b838309a27f1dd06d33200bc725e24ee7af7615aadcf
 SHA512 
47c5f8eee3eaf2035677b252181cf1c7f755b3d804cdf105d09a876798cd6988ac50af21f83c01fd4bce811095e618a297c7c73a2da16fc0a441a331183ee165
+DIST thunderbird-91.3.2-ko.xpi 695482 BLAKE2B 
6e9503bc19d2668aa849d5b599f5dde94324d57aba756e3982d13a0233c37f8781704338982f8005377022a8f90bfe24bed1be445b3ec3f3e3980403c0430697
 SHA512 
c9b51094838ecf071fe866dbcf9b06ea8cf72fa1a5b6dfd58966a6215ad1a44d5f55ac564faaf3fd3c5cdec641eeea51ff9569a413661fcd518f187267baac4e
+DIST thunderbird-91.3.2-lt.xpi 688959 BLAKE2B 
1e43f373d9e68fac9913e70821392faa53a9fac11bf30682b2612410e6baa8839a63d508621dee3a1b2143b10e1541f7e0ed7753d00e0ca2b31f97dfce0ceadf
 SHA512 
f20da26920a8e4b13cfc019e955edad6649e0cf95b81a10631c11d8c3f05e3416e5f388ee1054a0f916fba6605834b82a27b013543ec188f7be8ef92946b0837
+DIST thunderbird-91.3.2-lv.xpi 614287 BLAKE2B 
cb41176e1c2e21e6a2b1de69e0e5d841e9f402f13d94d38d6bbd602acdf9dda17112ae653c161d2479ded1470f20aabea899a412b792ee593a16aca5a28fe82a
 SHA512 
b30a9733d3dfd17abd715f6e5c8428054d029bcd846d9a5d4aa19338c19fcb0735e20c9d39d60eaacbe59b096021d140f63b8ab8494d739b2247846cc38f4b61
+DIST thunderbird-91.3.2-ms.xpi 574046 BLAKE2B 
acad772cb822e26d4c8a5672e3fc15c3eef538e11ca7bdd11ffb0e000ef05e92334f64d8613c3178ba46c1042f2e83646720fdcde38b3b5c6eae5e01a768deb1
 SHA512 
e7e2b706a2f5e2c4001ffbf039fa1015b0db8eebd57a007f291cda061a4c43932a7cc9a949f6aa3afa03dfc64d3499fd5722d81c20b7ccbf192cddf0cc1bcca0
+DIST thunderbird-91.3.2-nb-NO.xpi 645840 BLAKE2B 
009569ca3d372ba8007a42a02d8481f1b584cd22a358d9055f06ec488f3c5642d7e683b764bed252c06a63da92bbe3fe9158f0c80926c476898441d0edc5e3a3
 SHA512 
326e7482456d708240bb5d0838778abc220afab7caa281adbaa1d83921143c6ae6b6319ce736e4df4e42d47d1620a1c47e12c89c6ad5e67b3f7c8a17df7430e0
+DIST thunderbird-91.3.2-nl.xpi 671291 BLAKE2B 
c37ce3120d29e3a3829a54db07eeabf7930bcfa2ec1e06c17c6f36aa77b01ccea1411b1fe786290d9fb126cf694cc15b8cd1fe6461f2e1163b94c183ccebdc6f
 SHA512 
2b4e7ec15314932811b26cc0fc804b84ed8e3684a029c79be4be5a3af65c90d786700560c45355c45632c787cdd85accd617debd1024583fd9b3ccd5c946fe68
+DIST thunderbird-91.3.2-nn-NO.xpi 649226 BLAKE2B 
6c29a2a484b026684e590c26b045742d72e3c7d7a82c5452f54014b1542e83de515be2b2c5895046809597b0baa192c2ab75d59d90a340e9baa57d3c4f0f906b
 SHA512 
d869ff911d2ffd23eb9ee2a5e32d9742ee64217561fbbc911366964dee839a39722177a6a7a48888872b21f1eacef58142bda1e02775434d7843bc3ca70a4877
+DIST thunderbird-91.3.2-pa-IN.xpi 647734 BLAKE2B 
6e44de327fac80f8164f15ba77e61e2bf0adf340310b82fa9825e1fc2f84d4688144c298e09e3cdeac8474a5c8c6fc38e8854614649661f1b4861a4fd3a4331c
 SHA512 
aecc12d0383a60e658e9ad51762b3b5f5213db1e3700268e458a4f3d91d2fb89d78c5906776334c195874ab79771fc9f0d11f51d70c5ecfe33da826bfa97bf31
+DIST thunderbird-91.3.2-pl.xpi 680304 BLAKE2B 
7919a217a943b9cd3b29fe3dcb789439fe702800e5ded99f5728c5b715f4d58b1f14c4e4c1f71e12538d7b2e59b8a4ea1bd10d06d100f18b93e0e45282fca6d6
 SHA512 
a188e9690ba058bb1c3023ca233e16dcaa71fdd36dc4a29274a2ca39efeab14b83a535b94a64c099265378d006cbeff258a994b354506e805bcfc5fafdac72b0
+DIST thunderbird-91.3.2-pt-BR.xpi 678981 BLAKE2B 
9bbd5dfd3a44489e6997e9b49cc72aa8b02fbcb11cc4b51d2429e9cd8268590072ca843a0ed3094fd924334d9452452432423d2b238fe263b2392a7b64a3d181
 SHA512 
0c56fca765dc6cec7d86d1718da68c161b80e8fe1f5ef80604d5782153414f6a8ea2b9c0eb415d206444ee2f000c811dcd0c4192a8d2c5089262914ce369540a
+DIST thunderbird-91.3.2-pt-PT.xpi 665707 BLAKE2B 
54acef3442d9e7b07138a247b3a38929bb0d65522e38f6bb6035aeed1ac5b8ce377c89056f96d2a9ec8547fea67529fe20522317834e329c9a5bf9969e707652
 SHA512 
bae7f82ac6572248582b87be2403d18f2b0320a0ef7e0451647ba2af3730808ab703552188b12c8d3941cbee49242e5442caef49a25371d0098474ce82e16a72
+DIST thunderbird-91.3.2-rm.xpi 671677 BLAKE2B 
086c0e71f50585bccf9a2e163a6d1116d75f08960d7d6179433e9da544f54d111c3b07390b26ca3a5a3f061bcfd709f9065aa5338a070394c5eb0a24af07c39c
 SHA512 
37966ade0ddd611a4584c86e417fd92f0a0139952955df0cf3d421a6128f5914d900b45c52ed6ea2850aff910bc80b322a3acf5f960ac7656e4bb7906a3bf66d
+DIST thunderbird-91.3.2-ro.xpi 656464 BLAKE2B 
c2168d3a2859bc5736e8ef7d4f34fde6b95f7c845ace11d4a297fb187c3cfc7c37dc806e54cee44bcd164ce6f522e8d0036d7fe44139da62abae918eb738071b
 SHA512 
609b4b19425c6b58117b2dc04b88de7791a9e51e674551de1c3e70fd398ffb0160c8dc13b38a1abe590ff02676eab88c6cfe70850ef658ad427c9591b4e3bbca
+DIST thunderbird-91.3.2-ru.xpi 783358 BLAKE2B 
18a6f4c61903b6c3ea36a58a30aedee9db65dce557f130344acaf31643a1e9ad067a1268b45b73742546c503224786b35c9564c543910f4d8d542e5fc3b207e1
 SHA512 
f96df9a299afca3cf62ca476b3ef844d898dadc36c7cb02978b6004f421d107f6f3710b6b85903049d8b8399f11b215967fa6796d5df075dedd453cd9fedcea7
+DIST thunderbird-91.3.2-sk.xpi 707731 BLAKE2B 
8f9242c1c792091c419833569a9bbd5e0271ba98182275efa00f50d33890b0daa7aa2fdfc302961a25a7cd7292ebff6539114e6ccbbea4a6042eb94b934212c4
 SHA512 
f6f217e285b1681f293034e2836830937e2136f89fee25175781e09d65d65489d68b8bf59338aa31bc4122056bc77e66ee7c387c6977d827ffc4128f2a7d6864
+DIST thunderbird-91.3.2-sl.xpi 660446 BLAKE2B 
660cc282735dd0b87e0d474d004514f5ef32f29757ee99130d2103183082f60d56408f40bd8194efa49bc473f375e8c4ce4791fee8c4461cbe67515447697ed3
 SHA512 
08aa812923eeb087c3af51d0fcba4743f17c8aba0770d3fd75919dc1cb92fc2f496568ccd347c6bc6dffdf0ef1d4821ae91b2b0e3dc5b883213cf921900852ea
+DIST thunderbird-91.3.2-sq.xpi 693388 BLAKE2B 
af4c67acd2c7b8b0d0aba77fe762025bd05621c4c72cd15168042806cb886a7a63f251531c8b2813e803c9d721932ef6a522a4944e75e7b4d50f3c66efd7c594
 SHA512 
6a5c51b8bf7986b2d0d47a245f64b05203941193844758a973829c17fa2882ced83d97b3de6b1fc876180bff2f9dd0f087ae3b11e045c47e81bc2e67b5f86dfd
+DIST thunderbird-91.3.2-sr.xpi 703326 BLAKE2B 
ed6beaa710835bdfb5711ad011f32ce9ebba3f46990e11a87c40a783a24a1120041cd1f8d37f844e50c0b4686e7b2f58c7143d0c0317d8cc98fc063cc34fc3ab
 SHA512 
87ba1b687dea40a154aec863934258c0810c2ed8556a9539cce2341e9d17ae7fab9805d230201d62c62648e062f453ce24b3591e1106496d4a198df898f9e3c9
+DIST thunderbird-91.3.2-sv-SE.xpi 675811 BLAKE2B 
e5d2aef26c8d182724e096bc1b524cb074e46e8a9ef6f5fec7a462da439b81ac9c7e8185ef1c526948cc43bf4ae62dce7c508117ca923be5dbdeabf422094b39
 SHA512 
696a35a6734bd3bc782d8f7eb21d0081aa11609a48a57fbd66445b617d159945e96b1de21dc7bb84294dd0464c19c8c04a401db7ae14024ccf1b9003491a18ed
+DIST thunderbird-91.3.2-th.xpi 741242 BLAKE2B 
491c71f031911c844c3b04c4d992e0196d4e068e59279b97a27075844ac493de7be2d6e2c37dbd2828ef07a1b749e314375c82992eaec3e6f79a8706f749ec6a
 SHA512 
e2e5a1d32250934db0b2ac8312f0da1830f7830f4ed60179a11cd01429f4bdd21d2ecc3ac3184a0d57e485fe6aa47a9853a215acda0335046108edce4753bf6b
+DIST thunderbird-91.3.2-tr.xpi 685072 BLAKE2B 
7c0b8d274a85357227dffd2cfba5c55d5f779d78abeb98e88f60045283c093daee89f718ac43a1c945a101c683e4daa4046ef273b503ca11df0ebe839fda7a7f
 SHA512 
5d2121b964049d19dac24e12913d99d027733a64971a23daa7c7a397b5ea2c6e3395bca297e94438b4401000ce71a89ab56a05ff37f85dd5f3020bb8be32490c
+DIST thunderbird-91.3.2-uk.xpi 780970 BLAKE2B 
c5d8fcd5b4d9649c4b1106ac74eb08d416132a5a74583a050d4ca2ddb2fac9f513dc7ff7672179788d5403f3b645da3a1ff13687a6ef9705cd6bab7391e469b6
 SHA512 
54834e5ca88f6e77185352c9592a37ba539788a179eaa8690b17d04f6cc2d78d685253affc3f5042952a76574bc2946155d0d964f30b46e3cffdc8e84e9c9760
+DIST thunderbird-91.3.2-uz.xpi 588119 BLAKE2B 
df1a76076bdeebacf886b59ca850a4e3df200583d5912609741d0528c76cee61cb10ba9ec13faa2a5b828d0c186b9efa451aef3baee26e4867e5b54e0b55c361
 SHA512 
fb94400618a9839053902c39a62924000cf228969881d7868a3b2a59613eea752af9d2c0664231e5cd7869ac159e412da5cc304da4d82ff7f5ff314af8a14cd8
+DIST thunderbird-91.3.2-vi.xpi 706359 BLAKE2B 
6dfba5be7833c2e3058e2698971212480d7173e4d93f4e87d01bd5cd347eba49ec16863b53bdb73a464fd8d82db552366fcbbf8a5eaeed2b7d7649ed0a1f71c4
 SHA512 
e01b7e442ce2bdd00bc225dbe3fa1aa4b12e04b629e6996c7fbba3198dcd9460a84f869f1f4f43353ad31ad9c3b4a4435933ba1fec8db9b7d1f6364c838e62af
+DIST thunderbird-91.3.2-zh-CN.xpi 714607 BLAKE2B 
2ff1e8d346dcfeb7b5f69e49f98532c0f7ede33cce59ae9a17a9e7490be4641c78b23e0ce2bd6c9cf78bd4b81792d84625fbd45ab285dc485fb6896afc60b412
 SHA512 
9e5556afb814df13e67203742ba9faa5befe1d72d4fd4eb417d6c4f97500a258260c8e9d3e9fe11e527c572326deab643d3e94fe9a9cc09736b5496062c5b055
+DIST thunderbird-91.3.2-zh-TW.xpi 715955 BLAKE2B 
c03f07d9b7ac5deffc5bd55c6bbe29a9d6e954b0b3e7ab9cd76f370c73341cbebc9761f259e1b38569a48a5cf91bec7113462ed70019ae5eec3e8de897e4e97f
 SHA512 
66f6909b3cadd6e560b3cdec8654bcbfb65f84b81a3c96d6a13aa0e75f166c4dbb744131d525c31f3b09c10c73884e72f0d4aeb2ea574c3f41229bed16b69e77
+DIST thunderbird-91.3.2.source.tar.xz 407454432 BLAKE2B 
e4e90272fb2f0491503e3b1a7be0722b5873ec7b65fccb7c48b227a1edcf62715fe4c820442f89507663c794274906a33a1e1906788c02975f604b3bff67ca06
 SHA512 
954be27795935e494d27d57da99b49ff61db8a2b26fa8e159a30d6c272033b015790735b40129d7de94f861af23cf748f88a7a45df3861f753d6e15d28fb366c

diff --git a/mail-client/thunderbird/thunderbird-91.3.2.ebuild 
b/mail-client/thunderbird/thunderbird-91.3.2.ebuild
new file mode 100644
index 000000000000..d053304bbe36
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-91.3.2.ebuild
@@ -0,0 +1,1133 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+FIREFOX_PATCHSET="firefox-91esr-patches-01.tar.xz"
+
+LLVM_MAX_SLOT=13
+
+PYTHON_COMPAT=( python3_{7..10} )
+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 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/~{polynomial-c,whissi}/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/$(ver_cut 1)"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+
+IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
+IUSE+=" jack lto +openh264 pgo pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent 
+system-libvpx +system-webp"
+IUSE+=" wayland wifi"
+
+REQUIRED_USE="debug? ( !system-av1 )
+       wifi? ( dbus )"
+
+BDEPEND="${PYTHON_DEPS}
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.19.0
+       >=net-libs/nodejs-10.23.1
+       virtual/pkgconfig
+       >=virtual/rust-1.51.0
+       || (
+               (
+                       sys-devel/clang:13
+                       sys-devel/llvm:13
+                       clang? (
+                               =sys-devel/lld-13*
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-13*[profile] )
+                       )
+               )
+               (
+                       sys-devel/clang:12
+                       sys-devel/llvm:12
+                       clang? (
+                               =sys-devel/lld-12*
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-12*[profile] )
+                       )
+               )
+               (
+                       sys-devel/clang:11
+                       sys-devel/llvm:11
+                       clang? (
+                               =sys-devel/lld-11*
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-11*[profile] )
+                       )
+               )
+               (
+                       sys-devel/clang:10
+                       sys-devel/llvm:10
+                       clang? (
+                               =sys-devel/lld-10*
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-10*[profile] )
+                       )
+               )
+       )
+       amd64? ( >=dev-lang/nasm-2.13 )
+       x86? ( >=dev-lang/nasm-2.13 )"
+
+CDEPEND="
+       >=dev-libs/nss-3.68
+       >=dev-libs/nspr-4.32
+       dev-libs/atk
+       dev-libs/expat
+       >=x11-libs/cairo-1.10[X]
+       >=x11-libs/gtk+-3.4.0:3[X]
+       x11-libs/gdk-pixbuf
+       >=x11-libs/pango-1.22.0
+       >=media-libs/libpng-1.6.35:0=[apng]
+       >=media-libs/mesa-10.2:*
+       media-libs/fontconfig
+       >=media-libs/freetype-2.4.10
+       kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) )
+       virtual/freedesktop-icon-theme
+       >=x11-libs/pixman-0.19.2
+       >=dev-libs/glib-2.26:2
+       >=sys-libs/zlib-1.2.3
+       >=dev-libs/libffi-3.0.10:=
+       media-video/ffmpeg
+       x11-libs/libX11
+       x11-libs/libxcb
+       x11-libs/libXcomposite
+       x11-libs/libXdamage
+       x11-libs/libXext
+       x11-libs/libXfixes
+       x11-libs/libXrender
+       x11-libs/libXt
+       dbus? (
+               sys-apps/dbus
+               dev-libs/dbus-glib
+       )
+       system-av1? (
+               >=media-libs/dav1d-0.8.1:=
+               >=media-libs/libaom-1.0.0:=
+       )
+       system-harfbuzz? (
+               >=media-libs/harfbuzz-2.8.1:0=
+               >=media-gfx/graphite2-1.3.13
+       )
+       system-icu? ( >=dev-libs/icu-69.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-webp? ( >=media-libs/libwebp-1.1.0:0= )
+       wifi? (
+               kernel_linux? (
+                       sys-apps/dbus
+                       dev-libs/dbus-glib
+                       net-misc/networkmanager
+               )
+       )
+       jack? ( virtual/jack )
+       selinux? ( sec-policy/selinux-mozilla )
+       sndio? ( media-sound/sndio )"
+
+RDEPEND="${CDEPEND}
+       jack? ( virtual/jack )
+       openh264? ( media-libs/openh264:*[plugin] )
+       pulseaudio? (
+               || (
+                       media-sound/pulseaudio
+                       >=media-sound/apulse-0.1.12-r4
+               )
+       )
+       selinux? ( sec-policy/selinux-mozilla )
+       !<x11-plugins/enigmail-2.2"
+
+DEPEND="${CDEPEND}
+       x11-libs/libICE
+       x11-libs/libSM
+       pulseaudio? (
+               || (
+                       media-sound/pulseaudio
+                       >=media-sound/apulse-0.1.12-r4[sdk]
+               )
+       )
+       wayland? ( >=x11-libs/gtk+-3.11:3[wayland] )
+       amd64? ( virtual/opengl )
+       x86? ( virtual/opengl )"
+
+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 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="6400M"
+               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!"
+
+                       # temp fix for https://bugs.gentoo.org/768543
+                       # we can assume that rust 1.{49,50}.0 always uses llvm 
11
+                       local version_rust=$(rustc -Vv 2>/dev/null | grep -F -- 
'release:' | awk '{ print $2 }')
+                       [[ -n ${version_rust} ]] && version_rust=$(ver_cut 1-2 
"${version_rust}")
+                       [[ -z ${version_rust} ]] && die "Failed to read version 
from rustc!"
+
+                       if ver_test "${version_rust}" -ge "1.49" && ver_test 
"${version_rust}" -le "1.50" ; then
+                               local version_llvm_rust="11"
+                       else
+                               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!"
+                       fi
+
+                       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"
+                               die "LLVM version used by Rust 
(${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
+                       fi
+               fi
+
+               if ! use clang && [[ $(gcc-major-version) -eq 11 ]] \
+                       && ! has_version -b ">sys-devel/gcc-11.1.0:11" ; then
+                       # bug 792705
+                       eerror "Using GCC 11 to compile firefox is currently 
known to be broken (see bug #792705)."
+                       die "Set USE=clang or select <gcc-11 to build 
${CATEGORY}/${P}."
+               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() {
+       use lto && rm -v 
"${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch
+       eapply "${WORKDIR}/firefox-patches"
+
+       # Allow user to apply any additional patches without modifing ebuild
+       eapply_user
+
+       # Make LTO respect MAKEOPTS
+       sed -i \
+               -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/build/moz.configure/lto-pgo.configure \
+               || die "sed failed to set num_cores"
+
+       # Make ICU respect MAKEOPTS
+       sed -i \
+               -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/intl/icu_sources_data.py \
+               || die "sed failed to set num_cores"
+
+       # sed-in toolchain prefix
+       sed -i \
+               -e "s/objdump/${CHOST}-objdump/" \
+               "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py 
\
+               || die "sed failed to set toolchain prefix"
+
+       sed -i \
+               -e 's/ccache_stats = None/return None/' \
+               "${S}"/python/mozbuild/mozbuild/controller/building.py \
+               || die "sed failed to disable ccache stats call"
+
+       einfo "Removing pre-built binaries ..."
+       find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) 
-print -delete || die
+
+       # Clearing checksums where we have applied patches
+       moz_clear_vendor_checksums target-lexicon-0.9.0
+
+       # 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_src_prepare
+}
+
+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
+               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-install-strip \
+               --disable-strip \
+               --disable-updater \
+               --enable-js-shell \
+               --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 \
+               --with-intl-api \
+               --with-libclang-path="$(llvm-config --libdir)" \
+               --with-system-nspr \
+               --with-system-nss \
+               --with-system-png \
+               --with-system-zlib \
+               --with-toolchain-prefix="${CHOST}-" \
+               --with-unsigned-addon-scopes=app,system \
+               --x-includes="${SYSROOT}${EPREFIX}/usr/include" \
+               --x-libraries="${SYSROOT}${EPREFIX}/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
+
+       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 system-libevent 
"${SYSROOT}${EPREFIX}/usr"
+       mozconfig_use_with system-libvpx
+       mozconfig_use_with system-webp
+
+       mozconfig_use_enable dbus
+
+       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
+
+       mozconfig_use_enable jack
+
+       mozconfig_use_enable pulseaudio
+       # force the deprecated alsa sound code if pulseaudio is disabled
+       if use kernel_linux && ! use pulseaudio ; then
+               mozconfig_add_options_ac '-pulseaudio' --enable-alsa
+       fi
+
+       mozconfig_use_enable sndio
+
+       mozconfig_use_enable wifi necko-wifi
+
+       if use wayland ; then
+               mozconfig_add_options_ac '+wayland' 
--enable-default-toolkit=cairo-gtk3-wayland
+       else
+               mozconfig_add_options_ac '' --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
+               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 tc-ld-is-gold || 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
+       export MACH_USE_SYSTEM_PYTHON=1
+
+       # 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"
+       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
+}

Reply via email to