summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2022-10-27 10:14:43 +0300
committerJoonas Niilola <juippis@gentoo.org>2022-10-27 10:15:16 +0300
commit21bfdcc4f591e6220ab4b8f0fd0cdb87e5083d13 (patch)
tree5a72c5d356ac3139a5e715531fb0d0010c4adef6 /mail-client
parentmail-client/claws-mail: sync live (diff)
downloadgentoo-21bfdcc4f591e6220ab4b8f0fd0cdb87e5083d13.tar.gz
gentoo-21bfdcc4f591e6220ab4b8f0fd0cdb87e5083d13.tar.bz2
gentoo-21bfdcc4f591e6220ab4b8f0fd0cdb87e5083d13.zip
mail-client/thunderbird: add 102.4.1
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/thunderbird/Manifest65
-rw-r--r--mail-client/thunderbird/thunderbird-102.4.1.ebuild1165
2 files changed, 1230 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 83deefad49c9..899ed0d33679 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -64,3 +64,68 @@ DIST thunderbird-102.4.0-vi.xpi 724847 BLAKE2B 66c99673ec9b66a4fd3d0820e2f853a40
DIST thunderbird-102.4.0-zh-CN.xpi 722697 BLAKE2B 464fff02ab6dcfb8c21e10162883ab76dcf9b6fc67e750be6603c17c17ef54620bfa4d75d9f81a4ceabd8816095754ccf26f5bd8e3e15092a3b917c4df861b3e SHA512 93dc589af87444651e29c1208d4c3e301b0eb73fb03d2ae927620c5c3f36763695e28a5cf7fc15b88a111148a8b86a47de8002955cfa32e62af60c9beff4a45a
DIST thunderbird-102.4.0-zh-TW.xpi 725967 BLAKE2B ffe45ffff1b2564b6882afd85fb86ed3819bb06aaccf84597b0809be8b6a65adfb307c5c7ca0e3f5d095e12da2b8d80f1b4fe97022604048dd3da7ac106cda61 SHA512 de6327c2a9059a89768c72ada5f62d6d1dbc5b48c824702aa0ed8d4ef29797a4f5d2d1045dfe0973316190330ebefd512b791d01d3c67c591f994df053fcb944
DIST thunderbird-102.4.0.source.tar.xz 508467296 BLAKE2B 3831504f898a8ff1625ca352f4257b3d0a6debe54eaf81f8f46e74aeb2d6f8b6d7a354127872c860e75ad41c0860c116ed074f7950324e05a01a98ba88f79f12 SHA512 e2ce59eefb0c4df3eb20af01af2b7ad78a09e0fbac7bcc8800538d6655ca63a5d132c0700e2465654cc707a50aee01c62df0532f2c53b5f11c2d3a7ca881d8f0
+DIST thunderbird-102.4.1-af.xpi 551913 BLAKE2B aa0c741ed51cc85e06fb1c1663f6cddfdd476e67db5017727ec3f5c4da2b076065f1c63cd2035ebb2ba6cac6ff8268fbe9f6f85928884b0c90ae75196203c34c SHA512 f7535bf1168d6a4eaa34ff69482932b13cab7d0905c0c3291a1751b0508ded05ed9a4d29c81ca23612a9aa40848008ee5e83caf8db24d073a691db3a9bcb8c58
+DIST thunderbird-102.4.1-ar.xpi 656146 BLAKE2B 1067786f1f81cefd52ac6762c86e3ada588b40e364375a11546b8bc8a9c0e589bd7a65140b0cc8cfe9bf7dd4f9f3c16e10ef51bd4b12f0597e6b84a63708076b SHA512 8462de14dbe7841ea2e56c9fbe38de0d66ad4ee79e2fbbef6f8db76881b2f563daf02bd759ed35d79ebc1cb18b2bd10a7b1037a5fc627b434525140bd5b12905
+DIST thunderbird-102.4.1-ast.xpi 564830 BLAKE2B 564beff0b077d53efae9f0e31e5ba1fa44af27c5db87269c364a8bb44ddf34418851c754ccb31067cd67c08205e5383972d7731b477c911035eb734425a3856a SHA512 b6ebc43d766c9308df388162c2ffa847f2d97fddc2f21f1f8dbca10aac1a85059b6511e267e285d937c95748131dc980657761559cadd7f2a31735d56b022a70
+DIST thunderbird-102.4.1-be.xpi 686675 BLAKE2B 5581b7bd811d1ff00641ca1c67406735efcaac4091a823afb74fb13ca162dd6559a28746f5d2b5d686f97931a52e782dae9218214b46d1d9e31e2e7494ff0611 SHA512 7e353496ff74bb41c73709ae249318f7eeb8d67ad3d9183e6c6316fe4be06bb197890c757de7e47cd7e4e3f7ffeb741dc61fd50562ee713f6de0d5bcf4ecb78b
+DIST thunderbird-102.4.1-bg.xpi 682263 BLAKE2B 6590f0cb502c3e7ab9283ce625c481741451b27ea16abcbc210706d455236ac574cff403f669ef96fb9db909d542855c6acc3be7e828507ffb39f264ef883f73 SHA512 421b441cbbda5de4fed41ebb29c8feaf45153088c22d703a33e29efc64d6ca3060e435e4e5a70ec3bec8cc7ad09171945341da6948e7b3fa8949c9ce14e52f8b
+DIST thunderbird-102.4.1-br.xpi 615111 BLAKE2B 0f028c217c23cbfb3219c416810faacba6f2452b2d62889c55f2b3704b59ac182619e49314cabcf3b0d451e53e172e5026bd9701e97f777e47d1d676c83e3e8f SHA512 856682c8c23f3c7a1303f4371d757fbe4a8696ae332fbca556e6a419cac9772b2f339886936d6920e44830d78f0fd9ff6b7c422f032028ab6974c1fd15e7650b
+DIST thunderbird-102.4.1-ca.xpi 636170 BLAKE2B 75049531ed0384fd0344c8b071c18241c156eb5d8655ea18d9b94daf0c42c2d96bf9da8f8674b3edfb58994bd42fdfbd2cee2266cba22d1211d5f5951733a377 SHA512 da847ada754b53363de3cb16af5888fe1eaa867981f65d78023c0fe5954cdfce70984834ae3bbd2af4964710aecd8d03eb1c8786b4010e1128340aa96aaccab2
+DIST thunderbird-102.4.1-cak.xpi 641838 BLAKE2B 6ea8b4ead80269ebb5b77e69f969f4f5509e182a2a0fbd1735853cd7f66d4bc48f94ec0fa249145634cfba4858d752f7aa687a8e16a195e4cb9187ec2ca2f487 SHA512 0e16d1fe76af4cc4cbc533640d6b3d996230c7d8de06f7b540155e6aaf40a7134866f33386248700d5fbc67b04425a2a1a3b76a56d3a90df5aeda68f43b29d22
+DIST thunderbird-102.4.1-cs.xpi 706220 BLAKE2B 93dc0fc082a7b7c1d5d66048105855e5f9acb4dced436dadb0ff26746ac7103b77dcda85f64eb9d287a7cdcb424765c438d8682159dcf96bfe06364fc8446921 SHA512 bc2daf5ff6081717c12dd5661c24e16203cb30daf0186793f6a2fa56ae91e76b1b31559a704c9743961af5136de22037a3a17364e05cfcbcaebfa4bd42b52ec6
+DIST thunderbird-102.4.1-cy.xpi 684713 BLAKE2B 30a5b279e72684680584aabe819c05e78062550c04f4e6ea2458882efef8a79c530226f9b331a8b8a294eb36aee15ee27e429189334cb4d914216091fb02e183 SHA512 82bba0fa116a13cd16ef62e8d9228d1466990fa22c35e0bd420f416ace90462f59999a359a62bf3bf4f143ef23717ddca403abf62ab71e0927f7a129e3267e49
+DIST thunderbird-102.4.1-da.xpi 670574 BLAKE2B bab12715eba2975327d46836469af10e82796c6638ddebdaa21effd94dbe607c511c12c4c5f12391ab8417bb1ff6a803a247d5dc1d1791268fcdbd05d6b1d4a5 SHA512 36070b41af89271791d5918f4cc879302fef33756eab0cc26e3d61af00b8ac8ce011adba4344c32cfac10c031d0e21c9791d2b5ca347f8fc1ad8831c9dbde13c
+DIST thunderbird-102.4.1-de.xpi 703556 BLAKE2B 4609c9e624bc53f300675243a4e52ceaf52e8a0d6ee057ccd2dad4a30ce2d767fe9a648157a788419c6a804923c89d18fd088666139c50949603f0696809b423 SHA512 71a8aa397ddf362178f5633d4f23b19374eb4d4a10969992e71c96d4f182b38656b86189719d106a9d3943bef69d8e98486d3878c7edc1ef28a2af19620681ff
+DIST thunderbird-102.4.1-dsb.xpi 718465 BLAKE2B 114baaec27d021e727d0991d62c904dab6c9b6044d10c1a6810fe99f0273c62bd05f33beb306610bfff766a00aa94ea9ee14bd0fcf6ba0266afb30ea960de4d2 SHA512 90df2bc57299c0926ec970da6c355e25548ff830102a3db8973f5c2f4362061a653a9f8e13b0c0898946347a126245aaea9149811e556f44ede433aa046f716a
+DIST thunderbird-102.4.1-el.xpi 816311 BLAKE2B 4c3fe30510dee4bcbaca43bdfda6bd34e0655b6cc55afdeae166b1e89cdadab859aa3c7e4fb1b9776c5ba4f442295168ff1c02a6276b008e54ebbe5410554ffb SHA512 db60038f1a3e89a19ef4805084660cc4f5808cdbec6199afe64a369fa89137ddbb73a4c40aa80de6408876925d6b0081d8bc5461577c4aa4e54399ade0d40da9
+DIST thunderbird-102.4.1-en-CA.xpi 644391 BLAKE2B 22822deb32a7a62f3266b0e148be2acbee2c22a53e37cdeb343b23a2ab64e875182a8e39a93243a43566bee9d9d3debfa9dbb3178893bf8322c87aa1bb47adef SHA512 402ee2cb88d7632a49aad128928ec61e26dfb65e825abc3d58ca34a91bec1308d8ebb7053da79d3b37c987e664fb4ca63d4e8c3e1e875ae98edf3a6a20ef6eb1
+DIST thunderbird-102.4.1-en-GB.xpi 645394 BLAKE2B bb7563bae6dd771295f2564e06c05780a1b502a51a2f41d5f19bdf33a17485fad782e100f2095b137709dccb2983f7fca8a5509fa5d81467a0aa1bd911ea6867 SHA512 95353390b852c32fafb8350b90ada079c9e4fe740b9466145c89ccf7798e2ad990fbbe9d51eadb6906657de885159e91d57bf87c3221a0f4d07c0451cac312b3
+DIST thunderbird-102.4.1-es-AR.xpi 695960 BLAKE2B 3ea36d033f62fea9d82fd42f3bfefb3ec84f58ee8bffd3ff142a263c943fb85af5f17f30b8398fa00b9ae741bf39a361a9d11bd0f919a753c170b4d70eb9a100 SHA512 11227deb04221e088de089413ff3dcd0fbd29dce990e2ff7fe0b1a663288729fca0f14feb066cda3832e747379dcdec4f4668dc17a10534b23fa2214027e7e0c
+DIST thunderbird-102.4.1-es-ES.xpi 652042 BLAKE2B e5e0f9a921742f21194963dad942a711b6b22675102d1ded1870fbbd590b947546ab4d25b4181eb048815e70f8cbc6d8e9e57ac5fe717ba5ef871c96b02fe2c8 SHA512 389b66993f2b4a410aeb86080a96bd290176482dd9e59db30bb7ac231868bff371a226791c628ff9c40bff7178092a0fdc051cce4e495180173dc0ed25b88ca4
+DIST thunderbird-102.4.1-es-MX.xpi 698645 BLAKE2B 80a8a7a124cf53bb16caf7651090dd8be8649c8ab724de4ee847af34ad75cc2acf1ac8b2678e466e17ac8c4ce64b0e0468951e32e833304e3b8e7c550a71d06f SHA512 0062c2a798c4589fab31934d97181b351d9699c0edd4654bfdacf7ee93c57ae07dd68346a32a0c480432d64d11df204df6b520ea8c1d10a320a27d98fd1a3dbb
+DIST thunderbird-102.4.1-et.xpi 666811 BLAKE2B 26c2a61bdf751fac0faf9e97ac18949b5993f3bca93372e1a6c6094d9a6be8a3aa3a4c372a2a33e59696eb55a3bbff4365b6b5af7f1bb24a89fb648c1a641a5b SHA512 4cb53a719e7a0938b269fe112adc94eac94913a89037c76130dd0f4f93cdd2373b75f9295be1749b4874ec4518d26bb60088ef93fc625c3a3ba8c44bb415866d
+DIST thunderbird-102.4.1-eu.xpi 680207 BLAKE2B 192659a5bda8e248872efd3a845feadfe73e63d9284dcb6ec4400f8397d6f0b677022ee341c938fb004a3085135cdaa22e070a27be89132024073f6ae25b8348 SHA512 3f770bd6359c3ddfe16dfa59001f54baeeb96b0507a7da349918afc2a04b4056340abc8e7f833be7561900e6a9ecf2c531f14dfc7220c514641ad9dac6cf93bf
+DIST thunderbird-102.4.1-fi.xpi 673897 BLAKE2B d6ce9c8074d5e67381c3a7ea3a34f49590ba5432290e4527c778ca93ad5e0c9bf194de6d098b783f35fb78d92ae532a5843e1b3b2617c761d60a78d252340f30 SHA512 b1d1d19027c78cb2d8e21c07a0fbbca8a65d2e8d72e1bc2c1129984691154128f38c6995621eccf69cc6b115d293bd9ab642b97143fc8200d92d6f7d17937ddc
+DIST thunderbird-102.4.1-fr.xpi 708763 BLAKE2B 31ed005f63cbeb12732a8c976922c72bdac9170939b0bb2db15a04c5ef39abe21937cf57d5263d3cca5da5f38de465904a059b8f2c175b147dcc2952b04f797b SHA512 561828e6102fa54153a247026bf42f13954fd4f57e530434bcdfec4308e414a8a7186d6e236b470fba6d54ce46df621f47ff041a47f12209e5ec9435dc21683a
+DIST thunderbird-102.4.1-fy-NL.xpi 690677 BLAKE2B 683ae66ae07859318ad41e30ea71b51042fc4cbcfed0fef84225fd4d36d4c42bfdb7394d56304baf5cbf5cc056012c339515f247c7bf311a3b1bc1462cefa4bc SHA512 b60b86c5f2aa43b8fef35915df798cc714cb275aefbfd483664dc6bfce01da9a97fba04a7b40241e2f9fbcd68dc6c503bb2e29507e9430e05bf9fbef3c9dd494
+DIST thunderbird-102.4.1-ga-IE.xpi 603094 BLAKE2B 38ee7d792c066bea2a9500f98cc6c23e0fe1c2023f1d8560bbe53327b418b7337fa62d419846f7590963ee1349c6993145050b10a5e7e9a1c3ce8f9a57bb52e4 SHA512 dc17d98d64d21fb910f60e073e927fccb14d7e9d356974455f7ca4cef18cdabe124a99a57d34d7896a6d6900373bb17dd51c56768dd90c1d3f4b2286e422a957
+DIST thunderbird-102.4.1-gd.xpi 632440 BLAKE2B 82b151e70e1763963f10ebfa0e434344e60d210159f81f4bf339796c69f3599225a1151c375172bcc104831f9dff4fb2ea05b1618796757ad4a548faa3d4ce89 SHA512 a7b62d0cc4c48581df1a6338f8a510ab0566a4ca78aa22c239396d428f4a322fd7fc31c68af716f9c3335f75eb8457d5694017eb3a82ad5e22fc45df1eaf0f61
+DIST thunderbird-102.4.1-gl.xpi 663205 BLAKE2B c48569f93f005619cecb426227969fcb0a303400e010ea004173f96312ff959173aa7dc5680bcd4d7fc989e7728970d1da2fea07a146d2af55bf1042a83cb867 SHA512 26ffd5e75a6ff041f6c7c238d0352975e63b1646ea564e47d3c6a715112520075da75fa449f8a1e50f4cac9e2a5300555befe636598f1234a3510846fb465c28
+DIST thunderbird-102.4.1-he.xpi 662886 BLAKE2B 99e6438268c7e88f1432ca898311890dc98761a1bc6711f8d47f9e6725284de6395b9099c29a0a31d69a71309e422ccf08876627b9cad66d77c84b33f02d395f SHA512 7c33b71ecb264ac0ead64444c1039c6723335c2e7e13ef362e0f6bf76245a9aca11ef2a3196ed7b9bea4070a62878b8443b29e1c61ba678ee2aa9f2495b32255
+DIST thunderbird-102.4.1-hr.xpi 661109 BLAKE2B ebbaeab0253ab728e275011663d6b83b5f2c20dd118ab8db262a222bd93fdf0ebe99135c32a4153fbaaf52fa12e0b6444613c2b5d1df9a40c01dd2911543fba1 SHA512 b76751056dd963bc2c90776c7d8ab98162109aa63a3eb2548a4864323c32e4ee020ae649c4925464c97e22362dd637f26bbddff238ddf56128c1d8cb58e778e5
+DIST thunderbird-102.4.1-hsb.xpi 715750 BLAKE2B 1b70b4a07918c5e602a79e556d030b17729556bcde600958cc809a2593ed36225fd591ddca6ae5ab01334087bfe91acb9f760dccb8905783e0abf319efc5d778 SHA512 5297f66e593af2928ece3ddbc7734ceffb558538bcb303aca50101adef975e054022781090c7ce431820f70c159e9f000e6244de2aa47247e0d88cf5655a93ba
+DIST thunderbird-102.4.1-hu.xpi 718781 BLAKE2B 31209bc48a3dde15f88fc233828a2dcf166148b612a1e23d1f9b14b7fff90a162e0083d088285b29ac7149b2797594be0688166cf091fe4c627741b2beee17c4 SHA512 73e84458251ddfdd3d1049f79892688f29f4bcaa001be7f07ddbdee30808240f9135b05805d4b75df82890da9c79770776d21697a34fc01e4847b74f250bea36
+DIST thunderbird-102.4.1-id.xpi 639538 BLAKE2B 640bb3ee30607086ae44d0115c3cddd705665713734bccd71ba0f80c883e94ffedf311368ab365eef96c360fbfdd0b6c7aee32d628544dda886a7f5e38eefd27 SHA512 95e315cac0a89d8eca2cccfd4cca2c27c38ca4ba594f8073bb9fe722bf91ec99a79484463fd309fd4b3c08e50c34e5278603af236aecc92047ec64fb975411bf
+DIST thunderbird-102.4.1-is.xpi 685612 BLAKE2B 3a438654d05e03639a19646cd09f292ac92b566b4dfb06fd151932ce381bd7507888ea7390754bc822fdb46ee93cb00344d600c42c3ec4e6561b637278548f09 SHA512 523c55f9e167787dca2cce26e43615d162935f0413e7d8c8e48c982f1d2cda5a211873e58384ecf694142532b26a10471254baa7bf45433ab73c86d2730ff9f3
+DIST thunderbird-102.4.1-it.xpi 617776 BLAKE2B bda2e130553c9faec448b1a60bf21d72c2d14226f4f24f9e49c2f02697008beca1791a918dd464e5cbd3c106f9b832961416e1f92043709a2c5d9ca5bf5170f5 SHA512 3d468613124c0f8d8bd31a54829e159800c0a07ad58016725f1b38ab7411bfcf0877fcce4bdbff661919600b0ca591eb1de3af2abe864d258c3cc4154112ab08
+DIST thunderbird-102.4.1-ja.xpi 755141 BLAKE2B 113490e5dc77ff7289c4c1d73f331ef5dc73a300273fbd4c0d6e605bccf0d27d784b5a4d3c33f44e4db0761d8eb59a746831062603b60b1962491170c64a10c8 SHA512 aa3991f1efdef344cd3140e58b8fb374ee09b1a9015c68d6b317bf0a4b23617762baf69dbf4396ecd2afb21398d6a6836b6e1ab2446b77ffa8e292536aaf6570
+DIST thunderbird-102.4.1-ka.xpi 752973 BLAKE2B bb0bd98a910070ecf204b4d480d9ce8fa3e395c3929ba8a7adb2de388998fc6f879f2b78aff7170bf14377cdff8f97b3e49d7c8f33dc486295de95c030a399cc SHA512 f65ebeb758f2aa4dfe12058eaf2a014714eed80321ba21033a9e12db8153e2c5c26cbe574c4b81bb6008d9e1aba782cf2c28908401c18d555a13a6112a2cfa9b
+DIST thunderbird-102.4.1-kab.xpi 688568 BLAKE2B 1d776589361dcff111395c992164b69b95ebb86b82899c9d05078a6e0d4b2ea436ee0bae960b92419387f5a8d24a3f63da753e1750cac9416b7c36b697d96be3 SHA512 ae61c136e1d11c24cd4012302c1486ed71a1670810992b0187ad94e9f44a82084964015a0904e17911da25cf7a4aa70cb8d4662f80f844f93feed8eb02ba7d75
+DIST thunderbird-102.4.1-kk.xpi 731938 BLAKE2B 8e23cdd6a72b22adb9a13cc5acfde19a800cebbbb8d39066b09a13b96c5f69c4468651da7b4ab46e3affcb867f687afe545d58a3d8f8fdd5f7ec6bc9a902a449 SHA512 abd21386ecd519c3392903e12fdc5a2ccc0dc2427b9979b5ae1bc0aa815359751a01f3eeb07c66bb8d97029c19fbf6100f31cab06e9ac58cb79a634087728b16
+DIST thunderbird-102.4.1-ko.xpi 692938 BLAKE2B c856ec6f50733588c57513ca2470c027efd4ddf10e4312b60e044ad548c5817077a9b6bac3d95775dd0cab9ad8456cbc4dc5531e8f7787f5aa51cafe95c850aa SHA512 a916ff13a4cadae8a211f56c378b9e445bbe7fe1a81f8aeaa21a9fe0e88d95bedad2bb12f44d835ec29b7c89040b7cfd67bc429d18a465d2749d725cb8d77a22
+DIST thunderbird-102.4.1-lt.xpi 680715 BLAKE2B 3a784f4a38d4b318f7cebe757b1eaf91ff0fa3d802c83bf5e4e2352d232ae23e0b522943e4ae21e310c1e846ec3dbdefc70cea40445de03c75d26f88352b5903 SHA512 e64c667adf3585475e3b023e669360e4d799b1adfe61e917f8d3cfaecf4b2584dfb1ea556d3bcf16f57ce5c0a34c63b785a4131153d23f1cff6425cf05ed8741
+DIST thunderbird-102.4.1-lv.xpi 608584 BLAKE2B 36f718d4d5fc87a95c913cab4d4a94007e0b0060a4ef9c53795d303cfbc80d2e961bb9a82fb8c5e5675a1a7ef391c23b3652d09a8c93c2a5a316db9cbaf7cc50 SHA512 d81ff36f22516bb7c1fec81f0ebff2953e25e8563a0ffa2fae1eb6907b090045a853a453908a08a72097a307ce9ba3262cdad5b20e1c3909ff95f2791ed9ba85
+DIST thunderbird-102.4.1-ms.xpi 568529 BLAKE2B 54c4493259e6983dcc7bc73f38c16cee8cda6c392689c3d565fcfbd98d94b679d341238806616b53c440e72921884814083908720b9e73295784d4a2530d1cbf SHA512 7b55eb9c3e914f75b418011703cd189f6c78ce7120688d3b5c12060ad7978c5880655462a850856be9f2cdff4a85c337af5361055274b0f3bf3f5c71e0952d7b
+DIST thunderbird-102.4.1-nb-NO.xpi 648579 BLAKE2B 669b0208287fb755564709883f4d4eeb02f4ba2634a9a9f859da8118ec88f6fdd8a81a822e879cffbb04b4eb0ba7adfa8908613fb9ad138cf3779f4511d89ac0 SHA512 909646804c577006f543dd217d6113f0c6806545cf6c560da949ab233efea849f27b4d2f61ebda2257af3a03dacada73867c2909616d861bd14ca008b615a0e8
+DIST thunderbird-102.4.1-nl.xpi 682264 BLAKE2B 94ddd1b85c6716a7094a44e28eb7a702b017aef8e4c8c1dd0087437eae67c9387fc52e54482efc6f505c64cc4415b7ee946584e16d472019ddd69b1532bbf864 SHA512 779bd6dd717c5b5e52967e662f61aa7a4478dd5e543b72478a751bb45ac0e98e68fb6245a811b652040e6a34db9a9ad4a778570acee347f513aee4a71bd46743
+DIST thunderbird-102.4.1-nn-NO.xpi 656903 BLAKE2B ad20289ae66398896c580129e2ddacb4001542db2d261e9ffd32e51e65738770af18644738d34ba1f5a3d85fcd2e5d1c661e2e10c86be6a319c2dc58ea40e086 SHA512 90c13dd621718df86ef7dcbb2c923e411f8e2e4e8e49547b4b33907b235533c0df975ce00c6e1b984c8e44238e953b43f2f32a21d7d38fd37a0399b41bfa6d83
+DIST thunderbird-102.4.1-pa-IN.xpi 654092 BLAKE2B eb77925c190f7474cd3ecc845262c12dc95b0c0b79a2d1f413afa3b7a9454f15d9f91e195956a1e5210fd10a111b6e389d7a1b2fe2b180026d9cf940d604e46b SHA512 605835043067b2d56eb74bd0b38d52d76787716b1ea8ffe6ef2b8b4f1a3ac6e2356826c2b8814ca513317db79dc469cb6308a7f56295dd1e1c47fa46c1656977
+DIST thunderbird-102.4.1-pl.xpi 695413 BLAKE2B 4eb5fd1e370734e54c1f1be596b19d328e445887f2f283a63ae0863b67dba00ace29bec3b52e5c7358fb6a3ee1b9b0c099974ac696f947b206e0b05f204e8898 SHA512 c7343669a238c4493d9e98ff9da7efcb49c09a24f0c4634569c935adb544407727b4cb720c87dc316b7a6471f7bc725715a6d7d7ca24c7595190d4cce6be324c
+DIST thunderbird-102.4.1-pt-BR.xpi 690284 BLAKE2B a5f01b6897dffa4d5559524fc675553dcc70163213b53fc062f6c6d003716076799035cb9b1775f660dea31ce1b7d1fdf72561d94ddd568e3da6f4e4a67eea77 SHA512 eebaf36da98cd69ecc29fdccfed96937079b8d8f41325dd9e10d55f91e8e09ec420ae2294557c52b23b481bb9d6ac077fed139eab625e033366c7faf845db645
+DIST thunderbird-102.4.1-pt-PT.xpi 666876 BLAKE2B a846c08f490189eac4725f3d3fa76ef80267444d45eb8c43498de5e39d2de7faac48caea45b59369f8b07ebe661d774a2cde6f0a0bdc7106c764b803277092d5 SHA512 708d457880641f09177c56a723b43f0cdce8d7be2fd781bbc96066387d6c0bd342c6a4e205622d24c341991cb59a94fa3233c865b1d18a107e370a2bfa393f14
+DIST thunderbird-102.4.1-rm.xpi 686107 BLAKE2B 51ebf49239cd70e382986541484b17417a9bd1bf66cb8ac737274e16c1564c465610a348a8b62099a74e0bc1ae50ac4688600ed845fd9159dfe55a9e0361d572 SHA512 aa32c7e86c2776b17315a178f8925cb2584224f91623f41eada0f5bcfcd88b0f71b478ce45cf58e732fcdd3287827af185340d372c3e7b863253399129df30b2
+DIST thunderbird-102.4.1-ro.xpi 651331 BLAKE2B d6c06be751bae1e6c914a7ff2001dec8320ac799f09ef01c74d5dd99b3ef313cbb9bc0b4b26ebba87aa7cb39869a71edb743b7009351797e826591c98b999888 SHA512 32173185a3fafc65028ef46f2d73c4ac2bd63ec8892282548c5280bb411249708db922f585c47c25d007de2e15bc0e246e07633b73f0873d448450933e84e126
+DIST thunderbird-102.4.1-ru.xpi 801781 BLAKE2B 687a2ae95869921772abc6561b605b76427fcd68272aaa1d30ea5bc6660b9b7499cbdddaceacc607339992b9f6a9b3d8a5143b727a1a2cec6bc2fa8d4962f03a SHA512 fa196bba13feb9a32c77a8e5fd04583e5b188ecdea5c431e91076d43caecb7ce75897582a66a9eb71da431e4192ffebf75e2fb774aa1f0e64120536efc7a20e0
+DIST thunderbird-102.4.1-sk.xpi 718249 BLAKE2B 61ceffeb8ac1b9b751106d509c19e81b730b56ce2c53b3759f35c394b9191a7191a376c1f6db247c5fe9775f2c759a9e1ca4b359fb96e291ea5d1a1e0ae582d4 SHA512 1fbc2cc2b47edb5d95e93d6bc66a7b1bbaf36786a71b9db72234d193ca05690dfa9653d7b83b201b28a63591fd7553f978193f51a525e31def1ff03bae71cb73
+DIST thunderbird-102.4.1-sl.xpi 683683 BLAKE2B afb3be965c68922a270809151aec34c758e2d99533d220a2a78cad70893067945e8b9a1db47a06caf12e3d0bfa9d2e22220440dcfcc43578cfd610551f51fda6 SHA512 29c0cfe21b8394c8c822a2f4acfb252750513df99a5429c0fbc8fab2705bd2579cac8ccea507bd8f8a0cdbd40066840d21cdf660969bdfe1d8b3f93d81a6f264
+DIST thunderbird-102.4.1-sq.xpi 690222 BLAKE2B 6092a554dae6f40fb31f7a902b93b5f414b8ea9ffb57ada2836a7fd224fb27c86b03e4cf40704c1c2ac9bf1ef1b38bc5b68c9ed356ff1dd7f6b19b2bd11f8d91 SHA512 7e4bdbedcdd86d8611f0498b7f2ddf71267243dd101d4b9aad97478e1890c01a08003cfcd19af2a631652d5a58fffc7fb0a90ac223f65f94d2c745b6e90b26af
+DIST thunderbird-102.4.1-sr.xpi 705266 BLAKE2B 77533c80f1698860170fc1e84aa3d0631c8ae020b71350b7485e8b4e0562011e89177118f060acfb3a10a4c861549e91faccc5fb1048244bc941fbb5f9711b3c SHA512 607a06a44978d6d430fa18472db50a9d3ae0707c723e9ef2d0362210973f0b4efae2834fa2b476b88a589d13460831de9e3ef2185e6e2ebc44ee772ecaf0fe0b
+DIST thunderbird-102.4.1-sv-SE.xpi 685680 BLAKE2B a7bc90bb147289f960cd72157a96b0d53d8d50a785e537125b208dc407b4a3653b87f1d2f46b27304055485fb19674c6eedc14f162729a78459dd1b5fc8cfee6 SHA512 2925b2c084160d83ec685e3ac3c6580200871e8e8090a1183a8e96eaa8ebb74fd216b58042d5bfdee0955a7719a3bcec216631558ea53660c22d2978f14cff3f
+DIST thunderbird-102.4.1-th.xpi 734538 BLAKE2B fb83bb4d5feb735e3fd9ca6bcd9ea1cc307df630eb33fa00524a035532fe502fa1bbd88ab7f825d7c7c10018e107d664b820509b1453e756264bb79897e86938 SHA512 0f9ad745a83a3e19c2e6e5178d392e9a13e00e930623dea0a7787eaf12fed7c7c37e9c24d2ce90967d88f3ba47f399f3e3423cb1e0a947c13b1d3405ea90629f
+DIST thunderbird-102.4.1-tr.xpi 697052 BLAKE2B 219718a9737b148cd48302b4811cb2941ca46f4e75eea6fc773b8119f5abc41ffc432298dc738cca38810e7be79bca086934f1ce48505379a95bc2d3546e3380 SHA512 7ee577080ecf13a64a6261285607137b3d5497991c3dd24fafca2a470a2c8fd6040296685a11ff7ad4afa187ca2d8bb4bee17b02aa8c4719e275ebd14d911ef4
+DIST thunderbird-102.4.1-uk.xpi 794401 BLAKE2B 6a731707d87f71a902e15cb19fe47bc98014c9e8960b6b798591a95d8ed7fe046e976118210f61c02e1f4325b3e25b37dd231a93d96cff3e8a2b867ac7ea3ea3 SHA512 40dc0dcdf0572841cca89bcd85149c85ea0129c5ac0fd6ad0f721621131f4bb41c6b48c8a580d1eeb08526ef2c915edf8bab601317313345ae9fb2b7989f7727
+DIST thunderbird-102.4.1-uz.xpi 585348 BLAKE2B 4af7f5212a07edcfe43b2ff3c9e7bd7e3b0e73454f4571e723592806145c3a97139a06cdab95924004a74e54d341a2f66b7e08694779990d246f441b2e031c3b SHA512 3d527e39fee618767ea45eabd7ea684d318f690a0b3853b6c444812cd58806d78d8e7935a51117fcb090e1a55b422cdda9a2ea70408116983ed1968c75bcb64e
+DIST thunderbird-102.4.1-vi.xpi 724844 BLAKE2B 5e8a9477e941b796fcee5d2c191396290adb849b87b33fe2ea9dbd9573bf03d14233a3b5c3085b9730976e14c1de86505c1810f36d3038c53dbe1ba9d24a8990 SHA512 21592c9ea990968bc0501d40cb148033e22b81f9545041430c45972eeedc3159bf415b729be2470a6c58841d30a74509d88e7a5c5a44acfa13e993efa4f4a221
+DIST thunderbird-102.4.1-zh-CN.xpi 722695 BLAKE2B 455c56d5756066913b9e4192f47e1b96d35c6122deacd6e26328dd2437f7f54e874efd27dad0113e286dfe704446ac4bd49c78d6cb71e3580692c5b2c8ef0c31 SHA512 4d9845511c89a5c641e74f524f4daee3c6ee36bb616499393ffcec9b336bcc91d04997dbec1bf2b833bdbd38f96d4e49882aa65a7c03258b08dc435d37c2f6ed
+DIST thunderbird-102.4.1-zh-TW.xpi 725965 BLAKE2B c4d532dca6fd01e31756fd4865abc4726a662ffe8f9221705ea9936b826d82791a3eb6bdab2128acbf5f6bf6152b16d3b98ca8c53fbf267b511b74d1b6a40345 SHA512 14b190ae8b0886996d9660d1ea32e9f33442d96f7dc61ab26731e119e3236a23c358d1a2385b6ee7facae53c78f1e94000b451a4c36d98ccc80630042af6f2a3
+DIST thunderbird-102.4.1.source.tar.xz 501950000 BLAKE2B 3e846245e8208c046ba87f0df984c7f875fe9c03122e71d1af82db42e987007478104a56edf640f75932145dbd7ad9812cad0aff99295be5fd551d0396034fa8 SHA512 8855f7bf1ee2c9f6859189f3aa8afa5d851af2f4edb1a63e3804ec7796f228addf2819028ca6213f7c3f6c452cf4915801df1e706d7c84d8f15e0a627c77b7b6
diff --git a/mail-client/thunderbird/thunderbird-102.4.1.ebuild b/mail-client/thunderbird/thunderbird-102.4.1.ebuild
new file mode 100644
index 000000000000..30a2eccaa1c3
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-102.4.1.ebuild
@@ -0,0 +1,1165 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-102esr-patches-04j.tar.xz"
+
+LLVM_MAX_SLOT=14
+
+PYTHON_COMPAT=( python3_{8..11} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="pgo"
+
+MOZ_ESR=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+ MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+ # Convert the ebuild version to the upstream Mozilla version
+ MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+ MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
+ MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ # ESR releases have slightly different version numbers
+ MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit autotools check-reqs desktop flag-o-matic gnome2-utils \
+ llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \
+ virtualx xdg
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
+
+if [[ ${PV} == *_rc* ]] ; then
+ MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
+fi
+
+PATCH_URIS=(
+ https://dev.gentoo.org/~{juippis,whissi,slashbeast}/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
+ ${PATCH_URIS[@]}"
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/"
+
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+
+IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
+IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp"
+IUSE+=" wayland wifi"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="debug? ( !system-av1 )
+ pgo? ( lto )
+ wayland? ( dbus )
+ wifi? ( dbus )"
+
+# Thunderbird-only dependencies.
+TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2
+ selinux? ( sec-policy/selinux-thunderbird )
+ !system-librnp? ( dev-libs/jsoncpp )
+ system-librnp? ( dev-util/librnp )"
+BDEPEND="${PYTHON_DEPS}
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.24.3
+ net-libs/nodejs
+ virtual/pkgconfig
+ virtual/rust
+ || (
+ (
+ sys-devel/clang:14
+ sys-devel/llvm:14
+ clang? (
+ sys-devel/lld:14
+ pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] )
+ )
+ )
+ (
+ sys-devel/clang:13
+ sys-devel/llvm:13
+ clang? (
+ sys-devel/lld:13
+ pgo? ( =sys-libs/compiler-rt-sanitizers-13*[profile] )
+ )
+ )
+ )
+ amd64? ( >=dev-lang/nasm-2.14 )
+ x86? ( >=dev-lang/nasm-2.14 )"
+
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+ dev-libs/atk
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/libffi:=
+ >=dev-libs/nss-3.79
+ >=dev-libs/nspr-4.34
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ sys-libs/zlib
+ virtual/freedesktop-icon-theme
+ virtual/opengl
+ x11-libs/cairo[X]
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ x11-libs/libXtst
+ x11-libs/libxcb:=
+ x11-libs/libxkbcommon[X]
+ x11-libs/pango
+ x11-libs/pixman
+ dbus? (
+ dev-libs/dbus-glib
+ sys-apps/dbus
+ )
+ jack? ( virtual/jack )
+ libproxy? ( net-libs/libproxy )
+ sndio? ( >=media-sound/sndio-1.8.0-r1 )
+ system-av1? (
+ >=media-libs/dav1d-1.0.0:=
+ >=media-libs/libaom-1.0.0:=
+ )
+ system-harfbuzz? (
+ >=media-gfx/graphite2-1.3.13
+ >=media-libs/harfbuzz-2.8.1:0=
+ )
+ system-icu? ( >=dev-libs/icu-71.1:= )
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
+ system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] )
+ system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+ system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
+ system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+ wayland? (
+ x11-libs/gtk+:3[wayland]
+ x11-libs/libdrm
+ x11-libs/libxkbcommon[wayland]
+ )
+ wifi? (
+ kernel_linux? (
+ dev-libs/dbus-glib
+ net-misc/networkmanager
+ sys-apps/dbus
+ )
+ )"
+
+RDEPEND="${COMMON_DEPEND}
+ jack? ( virtual/jack )
+ openh264? ( media-libs/openh264:*[plugin] )
+ pulseaudio? (
+ || (
+ media-sound/pulseaudio
+ >=media-sound/apulse-0.1.12-r4
+ )
+ )"
+
+DEPEND="${COMMON_DEPEND}
+ x11-libs/libICE
+ x11-libs/libSM
+ pulseaudio? (
+ || (
+ media-sound/pulseaudio
+ >=media-sound/apulse-0.1.12-r4[sdk]
+ )
+ )"
+
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+llvm_check_deps() {
+ if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
+ einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use clang ; then
+ if ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then
+ einfo "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use pgo ; then
+ if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
+ einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+ fi
+
+ einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+ af ar ast be bg br ca cak cs cy da de dsb
+ el en-CA en-GB en-US es-AR es-ES es-MX et eu
+ fi fr fy-NL ga-IE gd gl he hr hsb hu
+ id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+ pa-IN pl pt-BR pt-PT rm ro ru
+ sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+ # https://bugs.gentoo.org/587334
+ local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+ fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+ )
+
+ local lang xflag
+ for lang in "${MOZ_LANGS[@]}" ; do
+ # en and en_US are handled internally
+ if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+ continue
+ fi
+
+ # strip region subtag if $lang is in the list
+ if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+ xflag=${lang%%-*}
+ else
+ xflag=${lang}
+ fi
+
+ SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+ SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi"
+ SRC_URI+=" )"
+ IUSE+=" l10n_${xflag/[_@]/-}"
+ done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -ne 1 ]] ; then
+ die "${FUNCNAME} requires exact one argument"
+ fi
+
+ einfo "Clearing cargo checksums for ${1} ..."
+
+ sed -i \
+ -e 's/\("files":{\)[^}]*/\1/' \
+ "${S}"/third_party/rust/${1}/.cargo-checksum.json \
+ || die
+}
+
+moz_install_xpi() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local DESTDIR=${1}
+ shift
+
+ insinto "${DESTDIR}"
+
+ local emid xpi_file xpi_tmp_dir
+ for xpi_file in "${@}" ; do
+ emid=
+ xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+ # Unpack XPI
+ unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+ # Determine extension ID
+ if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+ emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+ [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
+ elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+ emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
+ [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
+ else
+ die "failed to determine extension id"
+ fi
+
+ einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+ newins "${xpi_file}" "${emid}.xpi"
+ done
+}
+
+mozconfig_add_options_ac() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_add_options_mk() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_use_enable() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_enable "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
+}
+
+mozconfig_use_with() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_with "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
+}
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ if use pgo ; then
+ if ! has usersandbox $FEATURES ; then
+ die "You must enable usersandbox as X server can not run as root!"
+ fi
+ fi
+
+ # Ensure we have enough disk space to compile
+ if use pgo || use lto || use debug ; then
+ CHECKREQS_DISK_BUILD="13500M"
+ else
+ CHECKREQS_DISK_BUILD="6600M"
+ fi
+
+ check-reqs_pkg_pretend
+ fi
+}
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ if use pgo ; then
+ if ! has userpriv ${FEATURES} ; then
+ eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!"
+ fi
+ fi
+
+ # Ensure we have enough disk space to compile
+ if use pgo || use lto || use debug ; then
+ CHECKREQS_DISK_BUILD="13500M"
+ else
+ CHECKREQS_DISK_BUILD="6400M"
+ fi
+
+ check-reqs_pkg_setup
+
+ llvm_pkg_setup
+
+ if use clang && use lto ; then
+ local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }')
+ [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}")
+ [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!"
+
+ local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }')
+ [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
+ [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!"
+
+ if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then
+ eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
+ eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:"
+ eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version"
+ eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version"
+ eerror " - Build ${CATEGORY}/${PN} without USE=lto"
+ eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole "
+ eerror " llvm/clang/lld/rust chain depending on your @world updates)"
+ die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
+ fi
+ fi
+
+ python-any-r1_pkg_setup
+
+ # Avoid PGO profiling problems due to enviroment leakage
+ # These should *always* be cleaned up anyway
+ unset \
+ DBUS_SESSION_BUS_ADDRESS \
+ DISPLAY \
+ ORBIT_SOCKETDIR \
+ SESSION_MANAGER \
+ XAUTHORITY \
+ XDG_CACHE_HOME \
+ XDG_SESSION_COOKIE
+
+ # Build system is using /proc/self/oom_score_adj, bug #604394
+ addpredict /proc/self/oom_score_adj
+
+ if use pgo ; then
+ # Allow access to GPU during PGO run
+ local ati_cards mesa_cards nvidia_cards render_cards
+ shopt -s nullglob
+
+ ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+ if [[ -n "${ati_cards}" ]] ; then
+ addpredict "${ati_cards}"
+ fi
+
+ mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+ if [[ -n "${mesa_cards}" ]] ; then
+ addpredict "${mesa_cards}"
+ fi
+
+ nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
+ if [[ -n "${nvidia_cards}" ]] ; then
+ addpredict "${nvidia_cards}"
+ fi
+
+ render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
+ if [[ -n "${render_cards}" ]] ; then
+ addpredict "${render_cards}"
+ fi
+
+ shopt -u nullglob
+ fi
+
+ if ! mountpoint -q /dev/shm ; then
+ # If /dev/shm is not available, configure is known to fail with
+ # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
+ ewarn "/dev/shm is not mounted -- expect build failures!"
+ fi
+
+ # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+ MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+ fi
+
+ if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+ MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+ fi
+
+ # Mozilla API keys (see https://location.services.mozilla.com/api)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+ MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+ fi
+
+ # Ensure we use C locale when building, bug #746215
+ export LC_ALL=C
+ fi
+}
+
+src_unpack() {
+ local _lp_dir="${WORKDIR}/language_packs"
+ local _src_file
+
+ if [[ ! -d "${_lp_dir}" ]] ; then
+ mkdir "${_lp_dir}" || die
+ fi
+
+ for _src_file in ${A} ; do
+ if [[ ${_src_file} == *.xpi ]]; then
+ cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
+ else
+ unpack ${_src_file}
+ fi
+ done
+}
+
+src_prepare() {
+ if use lto; then
+ rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+ fi
+
+ eapply "${WORKDIR}/firefox-patches"
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_user
+
+ # Make cargo respect MAKEOPTS
+ export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+ # Make LTO respect MAKEOPTS
+ sed -i \
+ -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/build/moz.configure/lto-pgo.configure \
+ || die "sed failed to set num_cores"
+
+ # Make ICU respect MAKEOPTS
+ sed -i \
+ -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/intl/icu_sources_data.py \
+ || die "sed failed to set num_cores"
+
+ # sed-in toolchain prefix
+ sed -i \
+ -e "s/objdump/${CHOST}-objdump/" \
+ "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \
+ || die "sed failed to set toolchain prefix"
+
+ sed -i \
+ -e 's/ccache_stats = None/return None/' \
+ "${S}"/python/mozbuild/mozbuild/controller/building.py \
+ || die "sed failed to disable ccache stats call"
+
+ einfo "Removing pre-built binaries ..."
+ find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
+
+ # Create build dir
+ BUILD_DIR="${WORKDIR}/${PN}_build"
+ mkdir -p "${BUILD_DIR}" || die
+
+ # Write API keys to disk
+ echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+ echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die
+ echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+ xdg_environment_reset
+}
+
+src_configure() {
+ # Show flags set at the beginning
+ einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ local have_switched_compiler=
+ if use clang && ! tc-is-clang ; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+ have_switched_compiler=yes
+ AR=llvm-ar
+ AS=llvm-as
+ CC=${CHOST}-clang
+ CXX=${CHOST}-clang++
+ NM=llvm-nm
+ RANLIB=llvm-ranlib
+ elif ! use clang && ! tc-is-gcc ; then
+ # Force gcc
+ have_switched_compiler=yes
+ einfo "Enforcing the use of gcc due to USE=-clang ..."
+ AR=gcc-ar
+ CC=${CHOST}-gcc
+ CXX=${CHOST}-g++
+ NM=gcc-nm
+ RANLIB=gcc-ranlib
+ fi
+
+ if [[ -n "${have_switched_compiler}" ]] ; then
+ # Because we switched active compiler we have to ensure
+ # that no unsupported flags are set
+ strip-unsupported-flags
+ fi
+
+ # Ensure we use correct toolchain
+ export HOST_CC="$(tc-getBUILD_CC)"
+ export HOST_CXX="$(tc-getBUILD_CXX)"
+ tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
+
+ # Pass the correct toolchain paths through cbindgen
+ if tc-is-cross-compiler ; then
+ export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}"
+ fi
+
+ # Set MOZILLA_FIVE_HOME
+ export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # python/mach/mach/mixin/process.py fails to detect SHELL
+ export SHELL="${EPREFIX}/bin/bash"
+
+ # Set state path
+ export MOZBUILD_STATE_PATH="${BUILD_DIR}"
+
+ # Set MOZCONFIG
+ export MOZCONFIG="${S}/.mozconfig"
+
+ # Initialize MOZCONFIG
+ mozconfig_add_options_ac '' --enable-application=comm/mail
+
+ # Set Gentoo defaults
+ export MOZILLA_OFFICIAL=1
+
+ mozconfig_add_options_ac 'Gentoo default' \
+ --allow-addon-sideload \
+ --disable-cargo-incremental \
+ --disable-crashreporter \
+ --disable-gpsd \
+ --disable-install-strip \
+ --disable-parental-controls \
+ --disable-strip \
+ --disable-updater \
+ --enable-js-shell \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-release \
+ --enable-system-ffi \
+ --enable-system-pixman \
+ --host="${CBUILD:-${CHOST}}" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --prefix="${EPREFIX}/usr" \
+ --target="${CHOST}" \
+ --without-ccache \
+ --without-wasm-sandboxed-libraries \
+ --with-intl-api \
+ --with-libclang-path="$(llvm-config --libdir)" \
+ --with-system-nspr \
+ --with-system-nss \
+ --with-system-zlib \
+ --with-toolchain-prefix="${CHOST}-" \
+ --with-unsigned-addon-scopes=app,system \
+ --x-includes="${ESYSROOT}/usr/include" \
+ --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
+
+ # Set update channel
+ local update_channel=release
+ [[ -n ${MOZ_ESR} ]] && update_channel=esr
+ mozconfig_add_options_ac '' --update-channel=${update_channel}
+
+ if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
+ mozconfig_add_options_ac '' --enable-rust-simd
+ fi
+
+ # For future keywording: This is currently (97.0) only supported on:
+ # amd64, arm, arm64 & x86.
+ # Might want to flip the logic around if Firefox is to support more arches.
+ if use ppc64; then
+ mozconfig_add_options_ac '' --disable-sandbox
+ else
+ mozconfig_add_options_ac '' --enable-sandbox
+ fi
+
+ if [[ -s "${S}/api-google.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+ else
+ einfo "Building without Google API key ..."
+ fi
+
+ if [[ -s "${S}/api-location.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-google-location-service-api-keyfile="${S}/api-location.key"
+ else
+ einfo "Building without Location API key ..."
+ fi
+
+ if [[ -s "${S}/api-mozilla.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+ else
+ einfo "Building without Mozilla API key ..."
+ fi
+
+ mozconfig_use_with system-av1
+ mozconfig_use_with system-harfbuzz
+ mozconfig_use_with system-harfbuzz system-graphite2
+ mozconfig_use_with system-icu
+ mozconfig_use_with system-jpeg
+ mozconfig_use_with system-libevent
+ mozconfig_use_with system-libvpx
+ mozconfig_use_with system-png
+ mozconfig_use_with system-webp
+
+ if use system-librnp; then
+ mozconfig_add_options_ac "+system-librnp" --enable-compile-environment
+ mozconfig_use_with system-librnp
+ fi
+
+ mozconfig_use_enable dbus
+ mozconfig_use_enable libproxy
+
+ use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+ if use hardened ; then
+ mozconfig_add_options_ac "+hardened" --enable-hardening
+ append-ldflags "-Wl,-z,relro -Wl,-z,now"
+ fi
+
+ local myaudiobackends=""
+ use jack && myaudiobackends+="jack,"
+ use sndio && myaudiobackends+="sndio,"
+ use pulseaudio && myaudiobackends+="pulseaudio,"
+ ! use pulseaudio && myaudiobackends+="alsa,"
+
+ mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}"
+
+ mozconfig_use_enable wifi necko-wifi
+
+ if use wayland ; then
+ mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland
+ else
+ mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3
+ fi
+
+ if use lto ; then
+ if use clang ; then
+ # Upstream only supports lld when using clang
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
+
+ mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+ else
+ # ThinLTO is currently broken, see bmo#1644409
+ mozconfig_add_options_ac '+lto' --enable-lto=full
+ mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
+ fi
+
+ if use pgo ; then
+ mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+ if use clang ; then
+ # Used in build/pgo/profileserver.py
+ export LLVM_PROFDATA="llvm-profdata"
+ fi
+ fi
+ else
+ # Avoid auto-magic on linker
+ if use clang ; then
+ # This is upstream's default
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
+ else
+ mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
+ fi
+ fi
+
+ # LTO flag was handled via configure
+ filter-flags '-flto*'
+
+ mozconfig_use_enable debug
+ if use debug ; then
+ mozconfig_add_options_ac '+debug' --disable-optimize
+ else
+ if is-flag '-g*' ; then
+ if use clang ; then
+ mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
+ else
+ mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
+ fi
+ else
+ mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
+ fi
+
+ if is-flag '-O0' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
+ elif is-flag '-O4' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
+ elif is-flag '-O3' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
+ elif is-flag '-O1' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
+ elif is-flag '-Os' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
+ else
+ mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
+ fi
+ fi
+
+ # Debug flag was handled via configure
+ filter-flags '-g*'
+
+ # Optimization flag was handled via configure
+ filter-flags '-O*'
+
+ # Modifications to better support ARM, bug #553364
+ if use cpu_flags_arm_neon ; then
+ mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
+
+ if ! tc-is-clang ; then
+ # thumb options aren't supported when using clang, bug 666966
+ mozconfig_add_options_ac '+cpu_flags_arm_neon' \
+ --with-thumb=yes \
+ --with-thumb-interwork=no
+ fi
+ fi
+
+ if [[ ${CHOST} == armv*h* ]] ; then
+ mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
+
+ if ! use system-libvpx ; then
+ sed -i \
+ -e "s|softfp|hard|" \
+ "${S}"/media/libvpx/moz.build \
+ || die
+ fi
+ fi
+
+ if use clang ; then
+ # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
+ # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
+ # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64')
+ local disable_elf_hack=
+ if use amd64 ; then
+ disable_elf_hack=yes
+ elif use x86 ; then
+ disable_elf_hack=yes
+ elif use arm ; then
+ disable_elf_hack=yes
+ fi
+
+ if [[ -n ${disable_elf_hack} ]] ; then
+ mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack
+ fi
+ elif tc-is-gcc ; then
+ if ver_test $(gcc-fullversion) -ge 10 ; then
+ einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..."
+ append-cxxflags -fno-tree-loop-vectorize
+ fi
+ fi
+
+ # Additional ARCH support
+ case "${ARCH}" in
+ arm)
+ # Reduce the memory requirements for linking
+ if use clang ; then
+ # Nothing to do
+ :;
+ elif use lto ; then
+ append-ldflags -Wl,--no-keep-memory
+ else
+ append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
+ fi
+ ;;
+ esac
+
+ if ! use elibc_glibc ; then
+ mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+ fi
+
+ # Allow elfhack to work in combination with unstripped binaries
+ # when they would normally be larger than 2GiB.
+ append-ldflags "-Wl,--compress-debug-sections=zlib"
+
+ # Make revdep-rebuild.sh happy; Also required for musl
+ append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
+
+ # Pass $MAKEOPTS to build system
+ export MOZ_MAKE_FLAGS="${MAKEOPTS}"
+
+ # Use system's Python environment
+ export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+ if use system-python-libs; then
+ export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system"
+ else
+ export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+ fi
+
+ # Disable notification when build system has finished
+ export MOZ_NOSPAM=1
+
+ # Portage sets XARGS environment variable to "xargs -r" by default which
+ # breaks build system's check_prog() function which doesn't support arguments
+ mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
+
+ # Set build dir
+ mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
+
+ # Show flags we will use
+ einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ # Handle EXTRA_CONF and show summary
+ local ac opt hash reason
+
+ # Apply EXTRA_ECONF entries to $MOZCONFIG
+ if [[ -n ${EXTRA_ECONF} ]] ; then
+ IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
+ for opt in "${ac[@]}"; do
+ mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
+ done
+ fi
+
+ echo
+ echo "=========================================================="
+ echo "Building ${PF} with the following configuration"
+ grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
+ [[ -z ${hash} || ${hash} == \# ]] \
+ || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
+ printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
+ done
+ echo "=========================================================="
+ echo
+
+ ./mach configure || die
+}
+
+src_compile() {
+ local virtx_cmd=
+
+ if use pgo ; then
+ virtx_cmd=virtx
+
+ # Reset and cleanup environment variables used by GNOME/XDG
+ gnome2_environment_reset
+
+ addpredict /root
+ fi
+
+ local -x GDK_BACKEND=x11
+
+ ${virtx_cmd} ./mach build --verbose \
+ || die
+}
+
+src_install() {
+ # xpcshell is getting called during install
+ pax-mark m \
+ "${BUILD_DIR}"/dist/bin/xpcshell \
+ "${BUILD_DIR}"/dist/bin/${PN} \
+ "${BUILD_DIR}"/dist/bin/plugin-container
+
+ DESTDIR="${D}" ./mach install || die
+
+ # Upstream cannot ship symlink but we can (bmo#658850)
+ rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+ dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+ # Don't install llvm-symbolizer from sys-devel/llvm package
+ if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+ rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+ fi
+
+ # Install policy (currently only used to disable application updates)
+ insinto "${MOZILLA_FIVE_HOME}/distribution"
+ newins "${FILESDIR}"/distribution.ini distribution.ini
+ newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+ # Install system-wide preferences
+ local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+ insinto "${PREFS_DIR}"
+ newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
+
+ local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+ # Set dictionary path to use system hunspell
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
+ pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
+ EOF
+
+ # Force hwaccel prefs if USE=hwaccel is enabled
+ if use hwaccel ; then
+ cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
+ >>"${GENTOO_PREFS}" \
+ || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
+
+ if use wayland; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs"
+ pref("gfx.x11-egl.force-enabled", false);
+ EOF
+ else
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs"
+ pref("gfx.x11-egl.force-enabled", true);
+ EOF
+ fi
+ fi
+
+ # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
+ if use system-harfbuzz ; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
+ sticky_pref("gfx.font_rendering.graphite.enabled", true);
+ EOF
+ fi
+
+ # Install language packs
+ local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
+ if [[ -n "${langpacks}" ]] ; then
+ moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
+ fi
+
+ # Install icons
+ local icon_srcdir="${S}/comm/mail/branding/thunderbird"
+ local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
+
+ insinto /usr/share/icons/hicolor/symbolic/apps
+ newins "${icon_symbolic_file}" ${PN}-symbolic.svg
+
+ local icon size
+ for icon in "${icon_srcdir}"/default*.png ; do
+ size=${icon%.png}
+ size=${size##*/default}
+
+ if [[ ${size} -eq 48 ]] ; then
+ newicon "${icon}" ${PN}.png
+ fi
+
+ newicon -s ${size} "${icon}" ${PN}.png
+ done
+
+ # Install menu
+ local app_name="Mozilla ${MOZ_PN^}"
+ local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
+ local desktop_filename="${PN}.desktop"
+ local exec_command="${PN}"
+ local icon="${PN}"
+ local use_wayland="false"
+
+ if use wayland ; then
+ use_wayland="true"
+ fi
+
+ cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
+
+ sed -i \
+ -e "s:@NAME@:${app_name}:" \
+ -e "s:@EXEC@:${exec_command}:" \
+ -e "s:@ICON@:${icon}:" \
+ "${WORKDIR}/${PN}.desktop-template" \
+ || die
+
+ newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
+
+ rm "${WORKDIR}/${PN}.desktop-template" || die
+
+ # Install wrapper script
+ [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
+ newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
+
+ # Update wrapper
+ sed -i \
+ -e "s:@PREFIX@:${EPREFIX}/usr:" \
+ -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
+ -e "s:@APULSELIB_DIR@:${apulselib}:" \
+ -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
+ "${ED}/usr/bin/${PN}" \
+ || die
+}
+
+pkg_preinst() {
+ xdg_pkg_preinst
+
+ # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
+ # does not need to be forced into the LD_LIBRARY_PATH
+ if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+ einfo "APULSE found; Generating library symlinks for sound support ..."
+ local lib
+ pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
+ for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
+ # A quickpkg rolled by hand will grab symlinks as part of the package,
+ # so we need to avoid creating them if they already exist.
+ if [[ ! -L ${lib##*/} ]] ; then
+ ln -s "${lib}" ${lib##*/} || die
+ fi
+ done
+ popd &>/dev/null || die
+ fi
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+ elog "Apulse was detected at merge time on this system and so it will always be"
+ elog "used for sound. If you wish to use pulseaudio instead please unmerge"
+ elog "media-sound/apulse."
+ elog
+ fi
+
+ local show_doh_information
+ local show_shortcut_information
+
+ if [[ -z "${REPLACING_VERSIONS}" ]] ; then
+ # New install; Tell user that DoH is disabled by default
+ show_doh_information=yes
+ show_shortcut_information=no
+ else
+ local replacing_version
+ for replacing_version in ${REPLACING_VERSIONS} ; do
+ if ver_test "${replacing_version}" -lt 91.0 ; then
+ # Tell user that we no longer install a shortcut
+ # per supported display protocol
+ show_shortcut_information=yes
+ fi
+ done
+ fi
+
+ if [[ -n "${show_doh_information}" ]] ; then
+ elog
+ elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
+ elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
+ elog "DNS traffic to Cloudflare by default is not a good idea and applications"
+ elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
+ elog "(\"Off by choice\") by default."
+ elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
+ fi
+
+ if [[ -n "${show_shortcut_information}" ]] ; then
+ elog
+ elog "Since ${PN}-91.0 we no longer install multiple shortcuts for"
+ elog "each supported display protocol. Instead we will only install"
+ elog "one generic Mozilla ${PN^} shortcut."
+ elog "If you still want to be able to select between running Mozilla ${PN^}"
+ elog "on X11 or Wayland, you have to re-create these shortcuts on your own."
+ fi
+
+ # bug 835078
+ if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then
+ ewarn "You have nouveau drivers installed in your system and 'hwaccel' "
+ ewarn "enabled for Firefox. Nouveau / your GPU might not support the "
+ ewarn "required EGL, so either disable 'hwaccel' or try the workaround "
+ ewarn "explained in https://bugs.gentoo.org/835078#c5 if Firefox crashes."
+ fi
+
+ optfeature_header "Optional runtime features:"
+ optfeature "encrypted chat support" net-libs/libotr
+}