summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2022-09-24 15:23:39 +0300
committerJoonas Niilola <juippis@gentoo.org>2022-09-24 16:57:17 +0300
commit9ab6668a87c4e9e228e699634fde9b6717668def (patch)
treef5b210d43e34d2e75858ee76d156f3fa4979ac36
parentmail-client/thunderbird: stabilize 102.3.0 for x86 (diff)
downloadgentoo-9ab6668a87c4e9e228e699634fde9b6717668def.tar.gz
gentoo-9ab6668a87c4e9e228e699634fde9b6717668def.tar.bz2
gentoo-9ab6668a87c4e9e228e699634fde9b6717668def.zip
mail-client/thunderbird: add 91.13.1
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r--mail-client/thunderbird/Manifest64
-rw-r--r--mail-client/thunderbird/thunderbird-91.13.1.ebuild1131
2 files changed, 1195 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 951d17010c84..e1f675ef609d 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -194,3 +194,67 @@ DIST thunderbird-91.13.0-vi.xpi 725528 BLAKE2B 1b85c9add75e6101b2d41c68673ed123a
DIST thunderbird-91.13.0-zh-CN.xpi 730903 BLAKE2B 51259b77a32d37f665d3692ca4f21088cd51020c5dd319bdee59ce8467621640e830f51d44caedda0bbf1328522ca586f831046c3d15c759e53e2fa59367f990 SHA512 b89c58ea8279c5bb4ddf612c5d54a2d76a5a4d1e90bd7138040b2e86414d95f02eb494b72d4fd8f83525d68f80cb5f1c0c25d7022feb9a6e27ea115c93f65689
DIST thunderbird-91.13.0-zh-TW.xpi 731945 BLAKE2B 76d5b5b9fe50f5c6e4c4fb8198491da688aab2d0781019d6d91a0fefda056075c3bd4e94b7617a1068aa7d6934d8eeb2730b7dad5f8e6e55067f651f950a2f87 SHA512 95b6cbb404ccc87ab02cc44ca612c1201bb28d19ebc1957b1a25b35ccd8983dd104985483a6ac1caec2a8cb949244593e15b63e3a20af6def0e25d23684aff89
DIST thunderbird-91.13.0.source.tar.xz 403859320 BLAKE2B fc0b1d3866ae7f65e1ecb59341895e0f9ad2c811c748a9fc3cde623ccbf7d5e2d29391d39eca20f4ece251cdc1fc7be0f9213e6fb525f7b19165a0bc95dcf15e SHA512 e73d3db4333ad659ec1ab249bd261e8c28301c125d0c39b473c83f8fccace6d4916a2bfef14fc20c065055ff6bbd3ca618b5aab178241b53509543640dcd541a
+DIST thunderbird-91.13.1-af.xpi 561879 BLAKE2B b3b2f9303e0540dc258fe2a9653a4283ca88645edd7717d3fa885cb3b79cc428b281e53d86862c6a4a78ff0609670749090ef637481f230ca8445686a33beaf4 SHA512 c3eb26d200ef6d121299e041b69d82951b1fdaf40eb409d002e2bec4082f501284463020c7cdb486775062fd5d71b791093c9a188276e51c2287b95043250013
+DIST thunderbird-91.13.1-ar.xpi 665731 BLAKE2B 4a82e82a241b00e501d4558f13f021c87d8f90403bae36705bdce155b2f90aca1c8eac98be4c443da06bd62253d6805be5011025b0f61343d5f5e949ddbd0905 SHA512 03792643d2fd90ab3f33b065e9078882c607293bc674e44e4960635e946de8bf5843261528c70a8cf04218386b8058d83b9d3a952115bed5883931bac36b3feb
+DIST thunderbird-91.13.1-ast.xpi 580512 BLAKE2B 660ddd94462b403d82a3b26b4e89e515c33a3467bb978da0cbcb6fbbfad45986a99f83d93d6cdff67ae2e187ab4442821f82dbb2ab4a864291afce7aeb681359 SHA512 1ba13cd42b30bfcbd1966e30c274eb790b5f9b92d6705f06d607d6a38460cef9ef1f4fe873a8560413a86cd3a7186461a1d953332c3cfc4a80d47afc260b1124
+DIST thunderbird-91.13.1-be.xpi 695198 BLAKE2B e00db126092d94b9f92721c284165bc8dea3ad8bd26119848daa30773e0aa2e2ba87565a2c540ab48da544ead5002e45ab0e85dee597c6a57a322b95f7624e81 SHA512 c957153b423624b903db6afb7d0f99c48db2497726e14bd703579a982f6257cb3ca5c037c35c65f2c58cfab793164229da5f1f8f7365c770ef85a98a8bff7c55
+DIST thunderbird-91.13.1-bg.xpi 690996 BLAKE2B 0044c883bf838e96762e6087c4c3736efd4b675c71720b3630bcaad517c895c9c8fa4e1d15716d77f8db276fd7263037a40530ac2c42ee752b8dd9a6f0d25332 SHA512 a84ae392e122b9d16ed34274a8b44e9bedaa6878f908f255e5cec5fef87509874587c1048efb24172345f7e438071108b3cd4ddd112c89c0d41b45e853c023f6
+DIST thunderbird-91.13.1-br.xpi 620588 BLAKE2B 5a17895dee441441199fb6c372287446c09eeed6b8bc9d39ce00654bbe9d6bda9b95f5508f437175fa6ad203208d79a6e75291f0ff65955d81af1ec58f0ccf8b SHA512 69fcbcb4b69cf3dfc4fea428454e0a1a7ff58b0b607ebef8360e27477f65e174ad72488136d4391a0646c03b541d8c1e958ab12f2104ebad1b3b9907af1ede4d
+DIST thunderbird-91.13.1-ca.xpi 645975 BLAKE2B 6d1ed9c1707d4af96dae8d6d6a282103ef41db6e2ffa9a6851e3058b1a15ade6b276060146a7f0e03951babb289982ec19fb634337e69caa7fff8a99300195ef SHA512 79d45c9b72e4e64516ac7a425aec22cf10bd9eaa407a4293d52f5638ceffe376c49f0afd4ef3321c4d4ab955f59d13b94741335e0b583db6b84adbfd5600a44f
+DIST thunderbird-91.13.1-cak.xpi 652065 BLAKE2B bc4370fed4a2a553e57379f6be689ab47eade81e9aaddd1d84c0a0e25904236cb5212cf5600ba4778dd623d5ea1913abffd6017475d1332309b5e2960dd972d4 SHA512 823770d16138a59393a5e25e57a50b8e5158927d138b553b6a73c6671a77fcceac6429b2806172634d5409c6f779738b8d135191bb4d089b46b67fedce6def67
+DIST thunderbird-91.13.1-cs.xpi 711936 BLAKE2B ba966468ba446277109a330ce96e5da9ebed13763c158fd8f0fccb65d99aff60908795c30bd0fc657a4326b4bedeb1a4cea536d61812f42a0b91598bf522867e SHA512 e48443fab4a8be056ac15b6246cf6ee3e55465a09efae728d1087698201b56b2abc318ec65d7aab7d5a65f011825d38bb2ba105167d1e2a2852cd1a48861310d
+DIST thunderbird-91.13.1-cy.xpi 688889 BLAKE2B da3dfe9a21564900ff1bf3bd1e8c2c3ac362363916b4db592bf40e3c279b3bd58906e312f27980f982b372de48ad5e86cc5cdeb074c347c2eb431cf5c7814a7c SHA512 40db19f05e6ef7c9232c986e5101c6f415e26d6a15c7be4f3f2cec983a1e4ebdbd2e3ba146a8a7af22cd6716dccbc801ec0bbabe40105a0934881e2c20f331f7
+DIST thunderbird-91.13.1-da.xpi 674443 BLAKE2B 96e815cd5e2187d6e35b052ca3a82ff3987a902c882eb0a9fe16be12a8c8cd3977dd6a7e968d3bc35e0c8e1c74c42daac1ea265857de65934153ac7e45dd8f65 SHA512 4592d984819406f70bc16f464b4987e4ded9ba7673d7f36c4f765d2cc442343683f4f2ac522f0906086807da3a7001732af726b7745de40c4a10231cd681722d
+DIST thunderbird-91.13.1-de.xpi 697527 BLAKE2B 2b8a9467ff7babf884a67d06ef2fed13cda832a38d86572d971ec9dca28b296424bb1d6162c635ea0fa0da8715413ae8bc004cc64744fbbbb1e129686ffa44bc SHA512 e4e71c8860b33e39e3e6b325d38be0e5034b7f84ac4128f40fd818139de9453fa56af88ed82f72d8a105de843ba88e43ee6e69cb4860ce8ed2a08f87a6685005
+DIST thunderbird-91.13.1-dsb.xpi 723999 BLAKE2B 3da24a736ff8ea7f93eedfa7b412402a8cee24267259a4a6e2d9fe99cd3c82b9b84c313b53487e0c95df2e6b201ec8061983518750b8e68f0239f43cfdb5b4f5 SHA512 3e1d71e08cf9d5adcc89dc2bb9aeb6a8d3ab1520593427eccc0f7bb06e8d57fe90e561e556ada8585f3c6ea318970235c84580ea733f1b193b69c8455332a44a
+DIST thunderbird-91.13.1-el.xpi 821181 BLAKE2B e40d084cbda3c3291f45a3759575917beae5945720a411d9185085d9e530bda22606cac4334077b481f53c7afdf814a3001e9d13d75c77e3328283d1fa72be7b SHA512 261edd8cc15ba9bfa941474c59a577795daaf2d746df78af25a98270c3cb770d561175734622f7c247ff75b01434a7290595db46283d319aae55c09d62acccc5
+DIST thunderbird-91.13.1-en-CA.xpi 647814 BLAKE2B db9797b0833114f1ecb88e65f1c7c6f49db325a18321669843fd033735c4113be171558312ae0cbe55f5ccbfe51fd85a7c383d2407b7cc90d9bcc3228c6659b9 SHA512 6568061ef35d15f0381fdbd29b3cdf826ce85f4c0a651716a34ed46574960d157622f5b88aecd8cdb877f9e08d1c89ae152339e40174dfbac9ec2d8fce953f7e
+DIST thunderbird-91.13.1-en-GB.xpi 650554 BLAKE2B 914ea9eb29fc4fb156578f0fe6a38593486d5f4dc2c2e63b552c94ed542dfc021d09537b121d47886bdc197632d0e1cb1b973e8d1ca66242d61160f6a1a93531 SHA512 71ff59ddb550129ab5998633412d75fe7a80017336ab5b825a60131094bae6599f0bf45dc17e29bd91f763872e676c84381f7c2f2b1ed99d70946c24eeeaf1e4
+DIST thunderbird-91.13.1-es-AR.xpi 700497 BLAKE2B 406b91a44e989ae443993fd61f7d486bcd994c362fb221ffc6c19305636761e05d9458cf2e22362598cfdd9f34ff483ed35eeea8aee453318621c25d95d1bdb8 SHA512 5677b56dea0d46b79cb0a44a8664e961e8e1e12e1968ec88238e4119acd91a990d3c0934a2d4d5e3d017e1e922f93467e8a149240d213db191030c6252463c97
+DIST thunderbird-91.13.1-es-ES.xpi 630921 BLAKE2B 24b799e99c457617aa6b8cec5be923cc2f04fee0996fd803d54c4eea90e479596b8cbf419514d593c357715e7cd47f09ede7a84338836f66990e07d7a630b6e3 SHA512 a3a93898a8b49a0997cf7a922b1ad75c2de982a58470edec953c0d33c706340c193869eb88c931f20aed605da9c2b34870d860b0a2e2a090543ae567ec805468
+DIST thunderbird-91.13.1-et.xpi 672171 BLAKE2B 78f7f81a834e60b5e3dd8ffa8e23091fe6d6e994920906962aca013283fb1b6f07d098e5cd6c7eeb51435a2252c46570e4bf24d5cdf5943bfd418da10dcf675c SHA512 5d92074412f1d1b9e0f274a4c6eaa4b08bf930dbbdb9e1bbb5477d758ad031e1a36b8b34ba029c5c8ad6c96d9f2e721e33a1b07dbff0b5787776e1ad54d45574
+DIST thunderbird-91.13.1-eu.xpi 678264 BLAKE2B be3739e8899fd91e675a9726687c6ce1fb2408bbf0b7edbd226f782fbaf62126747faeb4ad7d889d9002ae30e8a47ceb8f4b716d5dfc097edae945760c096be8 SHA512 a98e784b8baf1c077bae4a079a7fc9d2b1c0243fbd8f9694e7b01c85a013fee1da87216735f6e18ed95bd2a01c69b68b0f76df52e801a530c6bb8c4394079fda
+DIST thunderbird-91.13.1-fi.xpi 676630 BLAKE2B 5f41b7b5636e2802cdf8b3c2ad2bd5ac1c235bc4934ffdaeb28a2c42ae2751c83f61af9215facf2b8a173538c402da88bdd9d1dcb709a3518ed3aafbe3425087 SHA512 f33664adf5722735ceb7502706a93100e055d0fb3dc63199480499f2970ad4bd19326a8da06a8ed83c1ca50cba93e62505afeade3efe53b8d15a4fd4451a7907
+DIST thunderbird-91.13.1-fr.xpi 711454 BLAKE2B cb27d43a677b1daa2f421902f2d4ab5e24b7aa52dbc6bebfb3b4524b8d4713c713d01d350bf13126bca21de7e486329b33e05249f8834344c8c2e3e051e8f837 SHA512 d1925097dbdd6194c6da44413cd308719c6eb1b3483b700236cd0e6b0f0000cdfe29d8168f225eef1ca11e33cbac83bfb5b1275e3f74dd478f2c2ef0090b4cb7
+DIST thunderbird-91.13.1-fy-NL.xpi 691880 BLAKE2B 5d24f4c502617e79e4ca4dd035c9a38d8a8369a55471a611e5080926ff1e626a7fbb57602189f0f7576bac1bb4b9e9ccb8c08be5cfd7e99bb65560f37b4b5372 SHA512 ce4ade10bf5746d005c7b04ab7b7726d611addb77a39a74359ae2eddec65a018cfa5f878973808639d39b8063ed957830ca3432ffaf3be6aac90864f91667f64
+DIST thunderbird-91.13.1-ga-IE.xpi 613124 BLAKE2B d2e5dfb0418985f89842ee75924470cfd2df8f3a421cdf0cfeb648958264d5d751d33b6b2d600389c2b3eb5208aa829c6643f4577b38cc6a7875185fccbb4a45 SHA512 90a989f5a5d6c876cf4ed1565225d3c2ddcc21629cfc36f613eb38786d4949e3abe5024b076807d3610696b46606b9e6abc5d127745cd467fb66d7460e2f2376
+DIST thunderbird-91.13.1-gd.xpi 640649 BLAKE2B 73bbb1f27ae819f69dbdf0f400f83eedb67c163b6cde42ef2aa900a837d2c73d856bd7c75571e03a624eddda383727ceb8223cf77965a8f8bbd4355612b489f4 SHA512 d38b95c70c7f0cff95ed67a4ad746b2266ddd29bf46f9257a8d3eb2f7357060fdaefd8c74e05d19d5d4eda0a8c300171e28c790170a5d9a7d05191dc8aa7eeb6
+DIST thunderbird-91.13.1-gl.xpi 677790 BLAKE2B f3ea61c88f46dd820a2113050731cc46464a8230197f2be9779bdab9bd88ce728c5ae5ed9be0edee2fb7aedd07d5b0c711385426e6e2a89e576f56219857f5c6 SHA512 35b0458ed1d073d54a02f5b9443d8d4eaf5fd487be0ab6d414c3da56a32083c2027f39c341eddbb2ec7f3c7db17d928319f99c1d647bbf297503fa69bac3b1e4
+DIST thunderbird-91.13.1-he.xpi 673191 BLAKE2B 85475a9ff13d7c85239223408244e6aca1e566e93c81762cef41b59db137b9feced8e75c33f4f10dce93763b25257a1aefbf24ff11ac0dca7607952c9b540881 SHA512 bd42e4ac1f00aa3ca8b545ded36f9951b9857bbe733118af20210c9cb027c24da7224655a24a3f35ff9e04138aebe604c4709d201a694891afe52480e62798c8
+DIST thunderbird-91.13.1-hr.xpi 653581 BLAKE2B 5498822d72d9c0792616b31a121db655427ad13d5d447114a0bb64203287e8079022e06458e7b8867dca4e34188e13af036fc6decbb38a225fdbc209fb60c2eb SHA512 9d89bc3fb8424cc6853e8b7c517ba59c08b04b8abc8dcfe0ea40f8505b3be206b7d7d4d18fb3477a1b52cfaaea12a932fa7c41e13083b788a19fa63e3684f327
+DIST thunderbird-91.13.1-hsb.xpi 720813 BLAKE2B 435dacd02f044572f1648f9e392137f62ae5b6ede4201d914e14fe00b271d9cd847042547201b76c5ab27a1ddfccb6e4623360c31349147ed6798bf8c935b8c7 SHA512 1ac74d2705b4eb61a2ed4fe1f512856fb6e042c4001a7b79b55e542d54adc1e4ab1f7012e0fd9d75a1bd56066a3dcb187e0fe327f59c529f9354dd01079030c9
+DIST thunderbird-91.13.1-hu.xpi 723400 BLAKE2B 181fe55f7ab7f763090cca3c21df77bb384101ed256140f9c101aa2b4f1b9ecc6196f36e01fb12dde3316970b4a81921c65bf7c03dc1e30e7c431235675c76ee SHA512 afb19806cd954e86af04f71a10db2bcfd2b4a1bd665b9da77a6676da29c25ba36f494af007ca41fd46727cf498c2ee35a0242760a1d8b77a182dfaa5fe6f7e99
+DIST thunderbird-91.13.1-id.xpi 648251 BLAKE2B 290b194aecbf9b9137d58905e68f46bd551833eea08a7eb7b80f24916b2a8003350399f53df0a5caa124815e5c4d7af42be4884d181e8789f9b88e4e04210f59 SHA512 4c3138e032e9e1054a706b4379a787ec5083ebedb2656267091656dd9dfa37f3662470d7f89f7b4a1849f1980f96d3df6cd7741e1f0eabb6accdcd3fc0453e56
+DIST thunderbird-91.13.1-is.xpi 682263 BLAKE2B e5fa8169ddcb92dc42c5d8aa001c10c50f3954bcc6f754cd4e14fb9fe9b00470474e9eb8cc39efcdbb26b97421985202fbc8b9fc23e6389436c700154fbe897c SHA512 0d1f5f81d50afac11670230044300bc2e4a02a83777af5dc97b3e12c0ea098d44a93d014419f39c49ea6dc6998423b5b30393e7f39d68da5d223e192ccd6d9d1
+DIST thunderbird-91.13.1-it.xpi 613334 BLAKE2B d4394136857239545a4ff7deba47aea32ed289cf54ac8a84cfbc6c4a4f84fc453a1ebc9a00de12b09395cae5d48a9f81f7d961aadaa706bec666412e62402abe SHA512 a2a6cba163f828144ec02948a6ddeb6004757869e0c9b23eddb6adf77467a81fb00ea94d5a15306ea3529d94c4a7a8d600d90d0827c2bd8b486c0ef6aff5ec90
+DIST thunderbird-91.13.1-ja.xpi 756467 BLAKE2B 0bac08106bcdf27254c30ae0f3b5733d254c9030dadcd8f3e2b78c880cfbe95f8815d414a48a6149e78a80a167d24950f26e4bb4e04109dce09a0ed94410ba6c SHA512 b272b4c1f80ffe2300625ab9e0c91f06dc5f5e10c781be1797356897bae855fe23535cd6a0a3bdaafe4c5d8681641522013f981fec772d0c59c0e7eb0a95a9f8
+DIST thunderbird-91.13.1-ka.xpi 762627 BLAKE2B 1789d237d20b05b08c0fe8685516aa28950b340e2f518121d858bc5bcce854dd58b2c2342ba94e37e1ac86914fe128764572748d14626ab60bb210b50fb0a663 SHA512 357629a8718f32bdc6192095e6cd4cc13c3df938197f86ce6f1633d62017a7fadad67f27e936dbc269bd3f2f450ad428d448929b6ac07800e9f6790c40e275a9
+DIST thunderbird-91.13.1-kab.xpi 677084 BLAKE2B e79342079a004891e7f0690f513735316e931a2196693589c6060d3b110338796f3725827802a30bcbe4998cbfce8b3a7a34e8efe81de6be932b298f1e59a494 SHA512 6844ae031894a498c404b62b49fea70a00959b1cbf918e07f3fe5c5d3201a5aa2908bc20648e0ae71251e4b44caed81ac323e21b026ba663936a66f8e4f742e8
+DIST thunderbird-91.13.1-kk.xpi 745524 BLAKE2B 657acda66881c6ed498ce4e4076af5676dbb8f94622a1053daee77542eacc186c56e5e90b795aa5bed3b2e329f0419a44369897eb24c04ac5c301f55e77e689f SHA512 7f19a76a80a41e61851d77c5202e8616be27765e83d72c4a0efff8500e746a2e330492ca2bfd0f29458e4f1333231b5042c47c136182a1a47f6ebaa4ef574fee
+DIST thunderbird-91.13.1-ko.xpi 704769 BLAKE2B 86d98807d871cce94fdfde497e801c796f3bd8486e31cd8e790502d70340e5c70c5e648d56af7514ca5272c36b79705e6eda55401f36d738efef80f1508acd92 SHA512 90d08fc3547d14c1c53c3951b06c4f539b76dc47b3bd3e0183a6f332b03495c0abbc26b6d15f954dffe60686eb00147cc311e98f64cca53323867644c8e15315
+DIST thunderbird-91.13.1-lt.xpi 696045 BLAKE2B 13487de0a99f756c1311afbe8f02ce24f8b8c2d972445b647e5dedb64a836b592a949b4e33a47d5afa706a017c5d27266aaa5a438986ea1b36496e208ac45348 SHA512 f3fe45cf3c25d765b9bd9667977be7baf8d3cc1ab5f6dfa821adb453eb9d30cafd3142c1667131abb9f05983163e83b5065c612e223818e36ebeacc384e856c3
+DIST thunderbird-91.13.1-lv.xpi 618525 BLAKE2B 0d01b52902cd49c9ea1b59ffe1978230526cb2771a7fa21568dce09042ffff9823abfbc37d2aea036c3bdd74f88472d751b78110c1f01d91f654cf70ccdfa6c4 SHA512 743439b52c52343aebd74490f96cac3ff34f078672d9c7d3f0e2b5622126da6bd0b51582f1f1e844bf4c66d5b5a0e1dc1236c18d7281a2d4ddfc9a212cf9dc01
+DIST thunderbird-91.13.1-ms.xpi 578080 BLAKE2B 4cb90fe2c1b17ff12a04ae3fef1d9667883e91f8f36506e18126af46124f834aa3b3e83b683d93043e223f335eb80e7e544ff834d265eaf0949f4d25c6f6dd21 SHA512 b4dc625fdcb26bd92101a0d53f0524e7e517fda1a317797f77c010a37ae27cadf5e4c233a7c63052fb707a5f983b40a34dc551ece6b585563c242ce4ff9e9e6e
+DIST thunderbird-91.13.1-nb-NO.xpi 653326 BLAKE2B 34073bc856e36f9efd88ad7717f35101044e62a4418cf069ba6b42f60ba7e22854cc85524e413033d0ffc9a92579fc4c13792a0aa890c43583cbce59c61efd84 SHA512 d1804ffe2b435bdd138a267999211dc0c8b3b95d89ba78d78be6befb4406550e87427764c9381de95057c4336ef27be65fae9ffd920f2b192ae892b29526bd1b
+DIST thunderbird-91.13.1-nl.xpi 685342 BLAKE2B 6e867ef578c8275d4b164cdab906a0249408df77a5fed4ec0f2e108fc4be5f8644dfa1e9f93631a02e845948766bce83f207c0d48cdb6111bdef6fc294fbd216 SHA512 12298513dcbf8506f806551d2478f5bbc5c650d43a0c491e0fb1d61e4535fa5c843dc8f0ef5f1440a06f26ff34366b206acd38326ad9415f3e7ef0db8515cd8b
+DIST thunderbird-91.13.1-nn-NO.xpi 658572 BLAKE2B 380c40e0fcba60100151d418ed354eaafb78a95b93103aec49edb388d3cf94406d3654cba91994e2cafd01df6c517eba450a26ca4c7c2c69b17ba63284e0809b SHA512 cede9a3d36294d51bf187b68ce7113c7fa9d96a1cce31fddd142b8e5fd054bf2d626300259f608dfe62b77a1158e7e651e45c07f00e3d28c8356ce2585dcc63c
+DIST thunderbird-91.13.1-pa-IN.xpi 652335 BLAKE2B 18ea7fdf6da1b3db6acd9f2404d2dbe8a5e3fccf8a2964220f04a720013d7a0afa2f0235cee366c3f257d4e1927f6c95120b0d14d1f9c549603eb0155c428b48 SHA512 bcbdc5f0c9d99c4e312dc7abc97947849af5d8b0e29e12bd8c6ca6b05a21bba9e7738e54795823a06461b9e729528cfe6805e3a3f1fab2d25286c87336ce3d25
+DIST thunderbird-91.13.1-pl.xpi 694112 BLAKE2B 35064b4e75b5d7647636652d49d9b132f655851fe61645064358ecb90c2cc311ccc0b3f6132c719ea19c8face99b0d8522a666dd72c357ab52d54268f8368d2b SHA512 dd6f86ca52741b89813dfe39fe40f7108797e4678e6c010e463a39b617fa67be96ab28e0f1d6f3ad9c17f63a9c717001faadaceaaf426940ca672531478ee886
+DIST thunderbird-91.13.1-pt-BR.xpi 694133 BLAKE2B e811fe90ae243240ae52921bbbc3743c0dbe46a939ffad4cc043230421fbcd5eaf4d89b57e31f9af209343e159cbba5836fc9c8146de8d479d543f9e0ef8ce80 SHA512 12757482fc0897bacd19cfc63c3792adac093959f9e21d6780ea87737497bbd56d10d2f58d4dffcfe7aed2fb1df8d122910250c6d2f3d5086ea9e462b1f5bdef
+DIST thunderbird-91.13.1-pt-PT.xpi 674673 BLAKE2B 320ea22b1b1287a42d7c4704e1706ff326a69747fd3ee35a8fc5677b2f1551c0c751c02226c4ab5bb14c3d59626fa406258f34077340b8ee661cee6ca6941923 SHA512 e74ebddad5906323e3b60530f2f69fa3c65ab74fe5e8eb463394ff5f81349930d904afbeeff0c153289ccd75eb06811b474091b3eaaaf2c65579e679011ade94
+DIST thunderbird-91.13.1-rm.xpi 687615 BLAKE2B 7fa1a9da4f84c31c8414eed81d23a878331f9c20a9997abbbb185523bb9094978d406fb60aca67eca7e58a0af3248c46cc8b518da98b062dba14919c2aed0c9d SHA512 fca6dcc5c430f39d01aa4971c50a6595d22e766c55ec5f8324b3bc5c78ba131e7b03217e35f681ca5534abb31d6bd15bec1ba8009959cf3cd696a725b1f78f9b
+DIST thunderbird-91.13.1-ro.xpi 661347 BLAKE2B 492ff4527b6b40c3031d3d3b0fbe13bc38371ff8dbd5a848832680553ee3ddf066c438beb3aea7e74de70a73a1f4a3c219741f3b95df7caa421eabb9de4d94e2 SHA512 f5ded1a90fa5053736bafb201993560b8e400001c09945687d52e252ef4675d14c14368b4675bcd08e71300620de95e482467a8f08af064ab01d8dc95d670c3c
+DIST thunderbird-91.13.1-ru.xpi 793375 BLAKE2B 4a477abb164b62d11ca771910e4c45e0729067738ad9d7ab1fa2ec4a27ea230c2ce5d1d8f4d41d5fcb5980751fbf35e598652f495c87ea2779eea2abcbbe84c8 SHA512 510d94b65cc6ea78b2a760e68a11874c53eba5e22024ad56ee73f938a13c61db61a5e29f6bc97b29b65a20cca69a59f1bd202c7687375e915c4e30b979c98a70
+DIST thunderbird-91.13.1-sk.xpi 721093 BLAKE2B a2fd89c1e06dab250cd73e0ae6d434219ea93323f896816b9d8706d95f23044e03671608e7f160b273f8aae68d156800f5b55ec4c85a3d482e84e75022f879b1 SHA512 72b9cbf1ba6c6a2780eb7abf77a7ac5d950107c14cc31a30df3ea5371c554d60c79d469248602a8d0b42ab8f813fc36d13a63d4c1d09f968a2267425f9a43ecb
+DIST thunderbird-91.13.1-sl.xpi 682544 BLAKE2B db7754f7c78122e56cb5cc764e446ff06074c2681fe270d072e6aa284dc7e597dcd116ad74700e2096698f9cbb10500e0ad684991dcb26a13fef1fc73faf6f7e SHA512 50421c0d4cec1ee2c0c86fef1dca56f3f38de3e25603e1c0d509c73d1e8b8de3a59a1d7b1fd6bac07d6eff7c6c141717c05ca4ce641afd8bce88d4f1a9356861
+DIST thunderbird-91.13.1-sq.xpi 703627 BLAKE2B cf6b630e94e0e1c8e8e2c491358ebf774e6d1b0dcd8fd89f647e82fbb54a3b40efb97f0d7126f65b581a16ccef7a4d6682f407a44a78bd3c066c6c20ea161d07 SHA512 9198cae43314a5df2e955e0add9c3aeccad1d22d1420c72000997e484c84a49991ec346bf25039b2e2e98d3bda9b807c1fd88e2f95af7eff6e3023c8494249b7
+DIST thunderbird-91.13.1-sr.xpi 710564 BLAKE2B d8c651e9167019366c4ebbffb8729386e32f70b2b662fc81548404ec534a04ed025693687b7b4f9fb3a1b29cae61675564702cdf575fe0c56cf2d1b256ab2476 SHA512 ef67a441ca6a3d832dfabc0632187d24f5a45c526f174ae91f0c17f1bd87e9aff2f42d4afc5a84ff0d5179b1f90f36f0e18be1a95421f6c2a32a70b163701e16
+DIST thunderbird-91.13.1-sv-SE.xpi 690968 BLAKE2B da1fb70df0cb71ea7aeec559cfd1cc3a9a610130507f25b9e17f23400c801c80c5fd75ca129f8791a404ccde4fce84647018098d2fbd0fbd740d88ab9c84b452 SHA512 dad7c9b5045115643371d19c805892e4041a4ba21133ec12e894db661af31f39e6f722d582f862d2229c351cc9e882d030670bdf71fc1c21ee1b5a4f92724292
+DIST thunderbird-91.13.1-th.xpi 748757 BLAKE2B 559ed2f57119cf92352c75cfd48619b6f1dc5025714a9221caa94a7cc50c1213765b487c8366c1289b8d0dae575a713daa6b4929b5cf232f82dffc9ed402278c SHA512 46af4e7dcbb0c8ea7baf4b6feff6e6cd388b2b45f303145b9d17558d71b56aaf638f2191eb07ef3d67707e96664715c2528b73738a64232b089c77626ff74f1e
+DIST thunderbird-91.13.1-tr.xpi 699653 BLAKE2B 60a3fc1500bc38172ff0154037d865f2a42ffa8fe81ce3514996dc20f654b09e080ffbcf0a13b39a1e12a3a4fca9c323f3be767035860433ea3e45dbcdcf3096 SHA512 a82f52f6b0e52c33a465a72ba7a5f6fdd89034edecd4761d94f4b4931a605f9fff6f25743835f4e134fc847a76b382e7a9101793bf782c53e15ad4ca0713189b
+DIST thunderbird-91.13.1-uk.xpi 798483 BLAKE2B c6df1f65d353794377c10a054520022fc59db8c4b103e0a6eadd03a1c53760c39107f24e0807d635529c0928667fbe9d827cff1b874d1f99dd178ffc79c970b8 SHA512 78c750a050c083001397100d8e08c352a3307810f65f9bfa97dd01ef32a554daa581ccc0fc552dac10e7c26f359cd7c18a3c4e9821f706cf6a6041c31f7f3ecd
+DIST thunderbird-91.13.1-uz.xpi 595925 BLAKE2B 3be732abd1e0421b1d3ab727fb63ed1a6bfc51a5e5595959b0e4860d289e46f63f187b103168934d79830fabd3f500abcca06535841dc26ff7808efa8c2f72ab SHA512 7ecca89e964563c174b29c95f50cfa41ba9f5ec9e1e321b476475e4506ee6a70be8c36f478dddbfce71a9e4993716828dfde87f4baf0554be22778645813a3ab
+DIST thunderbird-91.13.1-vi.xpi 725526 BLAKE2B 9fabf9089f53297081a88c2083950759772b1f31713f85eb6521f24b7fee5ec4dd4a5b797feb0c18ad641df70fdde32b0ca36bb5a78c42ba56aae0ef04c435d0 SHA512 6495894c4ca638a92826f9e4bfd0043f0a5311f8ad074aa1b3a2b52e8a9e387e4837ebf2218886771a316c6416c5f4980899f1f7ba13b1eb7321ff1af59f6a97
+DIST thunderbird-91.13.1-zh-CN.xpi 730902 BLAKE2B 2558ad7077397092ee0007891c785d29e1a6eb6045a970a1b9c98ecc38a4b6958aced83465c62cc432e9d0dd0b691e020ec29586b16f103e250b467453784595 SHA512 d8a86dd9b79c9f0f13095ec8b1069124d125fba21a9a8732294e9b3087fbdefdc516e79a2c3864ca11199e8e0facc2023cbdd8bff616ba1f941cb51e2177bc01
+DIST thunderbird-91.13.1-zh-TW.xpi 731944 BLAKE2B 5641671442b5c87560a1b13c3f9715e2bba22b897a1a8bfab6bc86dd90837f46fbe8d28507c5a73ebbcd0f79b69f73753f1987cbd7d4d0a8cc2626fd01b6f8bf SHA512 91c2e25f7ff34c70621006e33b0663c52ed70861be407b83c8822ef8eb8fc01e26b03141499ff71dadb63bb1fb3d9f79deb2c58ffaed6843d783a7d369c3ec4e
+DIST thunderbird-91.13.1.source.tar.xz 402696448 BLAKE2B f5219c185eff49932cd417267665b8e8327d8f5f4894d8adc35e9d46c944e110e5ad2461ffba36bde990509c552d75f464fa790406b1154f3a6e70bd1bd6ea24 SHA512 ca1bf821e6ca010c554fc111157af60e627ace7a0d43785ba39b260cd0606480dd5736c188c49ef6c3f1bda4b4c6870767b75e483241e7fd5a4290d689017e73
diff --git a/mail-client/thunderbird/thunderbird-91.13.1.ebuild b/mail-client/thunderbird/thunderbird-91.13.1.ebuild
new file mode 100644
index 000000000000..6a8a806a97f7
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-91.13.1.ebuild
@@ -0,0 +1,1131 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+FIREFOX_PATCHSET="firefox-91esr-patches-10j.tar.xz"
+
+LLVM_MAX_SLOT=14
+
+PYTHON_COMPAT=( python3_{8..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 optfeature pax-utils python-any-r1 toolchain-funcs \
+ virtualx xdg
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
+
+if [[ ${PV} == *_rc* ]] ; then
+ MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
+fi
+
+PATCH_URIS=(
+ https://dev.gentoo.org/~{juippis,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"
+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-png +system-webp"
+IUSE+=" wayland wifi"
+
+REQUIRED_USE="debug? ( !system-av1 )
+ pgo? ( lto )
+ wifi? ( dbus )"
+
+BDEPEND="${PYTHON_DEPS}
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.24.0
+ >=net-libs/nodejs-10.23.1
+ virtual/pkgconfig
+ >=virtual/rust-1.51.0
+ || (
+ (
+ sys-devel/clang:14
+ sys-devel/llvm:14
+ clang? (
+ =sys-devel/lld-14*
+ pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] )
+ )
+ )
+ (
+ sys-devel/clang:13
+ sys-devel/llvm:13
+ clang? (
+ =sys-devel/lld-13*
+ pgo? ( =sys-libs/compiler-rt-sanitizers-13*[profile] )
+ )
+ )
+ )
+ amd64? ( >=dev-lang/nasm-2.13 )
+ x86? ( >=dev-lang/nasm-2.13 )"
+
+COMMON_DEPEND="
+ >=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/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-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
+ 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="${COMMON_DEPEND}
+ 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="${COMMON_DEPEND}
+ 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!"
+
+ 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
+
+ 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() {
+ if use lto; then
+ rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+ fi
+
+ if use system-av1 && has_version "<media-libs/dav1d-1.0.0"; then
+ rm -v "${WORKDIR}"/firefox-patches/0033-bgo-835788-dav1d-1.0.0-support.patch || die
+ elog "<media-libs/dav1d-1.0.0 detected, removing 1.0.0 compat patch."
+ elif ! use system-av1; then
+ rm -v "${WORKDIR}"/firefox-patches/0033-bgo-835788-dav1d-1.0.0-support.patch || die
+ elog "-system-av1 USE flag detected, removing 1.0.0 compat patch."
+ fi
+
+ eapply "${WORKDIR}/firefox-patches"
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_user
+
+ # Make cargo respect MAKEOPTS
+ export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+ # Make LTO respect MAKEOPTS
+ sed -i \
+ -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/build/moz.configure/lto-pgo.configure \
+ || die "sed failed to set num_cores"
+
+ # Make ICU respect MAKEOPTS
+ sed -i \
+ -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/intl/icu_sources_data.py \
+ || die "sed failed to set num_cores"
+
+ # sed-in toolchain prefix
+ sed -i \
+ -e "s/objdump/${CHOST}-objdump/" \
+ "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \
+ || die "sed failed to set toolchain prefix"
+
+ sed -i \
+ -e 's/ccache_stats = None/return None/' \
+ "${S}"/python/mozbuild/mozbuild/controller/building.py \
+ || die "sed failed to disable ccache stats call"
+
+ einfo "Removing pre-built binaries ..."
+ find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
+
+ # Clearing checksums where we have applied patches
+ moz_clear_vendor_checksums 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_environment_reset
+}
+
+src_configure() {
+ # Show flags set at the beginning
+ einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ local have_switched_compiler=
+ if use clang && ! tc-is-clang ; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+ have_switched_compiler=yes
+ AR=llvm-ar
+ 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-zlib \
+ --with-toolchain-prefix="${CHOST}-" \
+ --with-unsigned-addon-scopes=app,system \
+ --x-includes="${ESYSROOT}/usr/include" \
+ --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
+
+ # Set update channel
+ local update_channel=release
+ [[ -n ${MOZ_ESR} ]] && update_channel=esr
+ mozconfig_add_options_ac '' --update-channel=${update_channel}
+
+ if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
+ mozconfig_add_options_ac '' --enable-rust-simd
+ fi
+
+ 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 "${ESYSROOT}/usr"
+ mozconfig_use_with system-libvpx
+ mozconfig_use_with system-png
+ 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
+ # ld.gold is known to fail:
+ # /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld.gold: internal error in set_xindex, at /var/tmp/portage/sys-devel/binutils-2.37_p1-r1/work/binutils-2.37/gold/object.h:1050
+
+ # ThinLTO is currently broken, see bmo#1644409
+ mozconfig_add_options_ac '+lto' --enable-lto=full
+ mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
+ fi
+
+ if use pgo ; then
+ mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+ if use clang ; then
+ # Used in build/pgo/profileserver.py
+ export LLVM_PROFDATA="llvm-profdata"
+ fi
+ fi
+ else
+ # Avoid auto-magic on linker
+ if use clang ; then
+ # This is upstream's default
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
+ else
+ mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
+ fi
+ fi
+
+ # LTO flag was handled via configure
+ filter-flags '-flto*'
+
+ mozconfig_use_enable debug
+ if use debug ; then
+ mozconfig_add_options_ac '+debug' --disable-optimize
+ else
+ if is-flag '-g*' ; then
+ if use clang ; then
+ mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
+ else
+ mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
+ fi
+ else
+ mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
+ fi
+
+ if is-flag '-O0' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
+ elif is-flag '-O4' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
+ elif is-flag '-O3' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
+ elif is-flag '-O1' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
+ elif is-flag '-Os' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
+ else
+ mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
+ fi
+ fi
+
+ # Debug flag was handled via configure
+ filter-flags '-g*'
+
+ # Optimization flag was handled via configure
+ filter-flags '-O*'
+
+ # Modifications to better support ARM, bug #553364
+ if use cpu_flags_arm_neon ; then
+ mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
+
+ if ! tc-is-clang ; then
+ # thumb options aren't supported when using clang, bug 666966
+ mozconfig_add_options_ac '+cpu_flags_arm_neon' \
+ --with-thumb=yes \
+ --with-thumb-interwork=no
+ fi
+ fi
+
+ if [[ ${CHOST} == armv*h* ]] ; then
+ mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
+
+ if ! use system-libvpx ; then
+ sed -i \
+ -e "s|softfp|hard|" \
+ "${S}"/media/libvpx/moz.build \
+ || die
+ fi
+ fi
+
+ if use clang ; then
+ # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
+ # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
+ # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64')
+ local disable_elf_hack=
+ if use amd64 ; then
+ disable_elf_hack=yes
+ elif use x86 ; then
+ disable_elf_hack=yes
+ elif use arm ; then
+ disable_elf_hack=yes
+ fi
+
+ if [[ -n ${disable_elf_hack} ]] ; then
+ mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack
+ fi
+ elif tc-is-gcc ; then
+ if ver_test $(gcc-fullversion) -ge 10 ; then
+ einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..."
+ append-cxxflags -fno-tree-loop-vectorize
+ fi
+ fi
+
+ # Additional ARCH support
+ case "${ARCH}" in
+ arm)
+ # Reduce the memory requirements for linking
+ if use clang ; then
+ # Nothing to do
+ :;
+ elif 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
+
+ optfeature_header "Optional runtime features:"
+ optfeature "encrypted chat support" net-libs/libotr
+}