summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/thunderbird/Manifest65
-rw-r--r--mail-client/thunderbird/thunderbird-102.14.0.ebuild1190
2 files changed, 1255 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 2039b4ea0e63..22ce55e7a2ee 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -66,6 +66,71 @@ DIST thunderbird-102.13.0-vi.xpi 745663 BLAKE2B ada366e22a8ada1fe584c1f087cb3b55
DIST thunderbird-102.13.0-zh-CN.xpi 739887 BLAKE2B 7f4564d89192cafeccd99893bb44f74ffc316bd106b28b580c1f8f8967cbdcc9247528dd59cd9fa62a49d1ca8907766ddee5bfa7c08d8a35940da135edf2dc90 SHA512 4bf08f0c26474da4592a21438fad776562763a6207fbd8c4a13ce8c8353f85f5fdcab7878210665547972d27ad27b396678425ec19d623351af6b7b3e0f53a20
DIST thunderbird-102.13.0-zh-TW.xpi 748347 BLAKE2B f3d419e179b2840c56079204708f9fe3b0db1d0e606b6c87c17ff987d2c3ab0459dfd7a8d0e10d1718b944b7f30174c8dce76f8f03f84e3c18220845fa5cea3f SHA512 d682ccb94b7a8cc39668e3f7c09cf62c6e2fd8ed54609f2d8ba96aa79972f250c04012e7ccdce65e6df8375f89bdc8434892513ac1fe4cc2390f632e03dedecf
DIST thunderbird-102.13.0.source.tar.xz 503365504 BLAKE2B a4da44665a4b6f4d7a49d0e0e92a99c5dcd3d0064e5fc547f7c29a9df9e3efdaca6f9048bcfdd5fe9e52f1d30a49d79e8021158a61319e29cfa2ca95e14f9e09 SHA512 1ed48220f91cc2c38f59067664c02f1f2098c843810b8f81cb8dee4fe98911d87aac352ab8639c68d0eed74297240cd9e0ce0e64a40360511be85315f2bfcfc6
+DIST thunderbird-102.14.0-af.xpi 556871 BLAKE2B dbeeef43b45578f9f5b2114acf48ebfddb13a10085724d9a109c4122170807cfdda5c4cd7af3a29c0159d088c4f405959be754888fc8cfee10b5cead3a469e2f SHA512 4699349cb086d450b77284aeb732c6d6442c640b0e9e1e2b5940d04297a16a85c2eeb0d2c77cd42b870519aac3d17acf3d06266007a6682c9ffd899f655dc82b
+DIST thunderbird-102.14.0-ar.xpi 666810 BLAKE2B 3157febda2f6f3270922550e4ddeccd9ee644856ea9b19d595fe74a7e7fba6aa2c50a11826c46fa8ea9baf4dffa3076c1ea5f343f51c4509662ec2f3e70ac34b SHA512 c9d37aa31bd54f913c30ce2b349846d065c21e3b9dcb1253d737c5e48e5d670ec6bc155644b0219bde8c4cb446e59e3c7fba77ccf4e6d56bbc55bc9f05b101a1
+DIST thunderbird-102.14.0-ast.xpi 572288 BLAKE2B a95ed5eb74f47204406d5d1a94a209de9cde7e021a2531beaf9caa39c96fb1bfffa2a898935a13b95d0867c2d142fcc7e7e06bb3f79f593392c7970512f050d9 SHA512 45f650f85f64369654d35f52f67784614db07c13edd1d7a23d4dfc4832e752f80841ea94b0e86540d1fed93bb8bd0b03d9e6f5f7200392c35c77ea82628fd7ca
+DIST thunderbird-102.14.0-be.xpi 701914 BLAKE2B cd75b48cf249c4961a99b81b84d12e0507520932afb4abb96c7738010166d2b96c71bf902f3acdb66b3ae79f535e310a1e5075fbe05c2e329c889393a1b3af31 SHA512 f91ea51137f47c62dedc5bc2b4810a11780cfafef3643681a82384c337b6d4c2105746443c5d72b461eb09f3d3ea23cfaddb0cd5f9e6df897b59e4c9cabd464c
+DIST thunderbird-102.14.0-bg.xpi 693377 BLAKE2B a2acd5a1b686596b2ab3bff7e8471eee9daa7c3d547acfb31310c4d375f441f743603c702b73d18a07559e6ada248f99259c3dd78350a23f289a3df015fd1507 SHA512 51aa103967335711f5847ea60c7c4d3226483e6d7a0f7096f515f9bcd84a1e43dfcd3b3574dfa02fa5dfba329bae94cbf66a459afc52298c14615fb499528de7
+DIST thunderbird-102.14.0-br.xpi 626471 BLAKE2B f75b1b02528e2a66f6b0506e6d19178f5469791249faafe2283c3ba71fd0871246116c3eebdf35f221c49efb48d1b3d15a62b2625f52b3c6c1876accb6f0d316 SHA512 e905f031b3f022087dd5c4abfa38c3ce8c7af47ee423b3b7b1d9d09584290dc81a2d20bc8d0e3fa6bbbed2de0d73da2cc88e613a70191ac1bb3cc64a66fa6053
+DIST thunderbird-102.14.0-ca.xpi 651368 BLAKE2B 068b2d9f5b9a782159908cf77211b9db6e7aab4c29bcabe89f1b36cc658d32f73afbcbbf994ca020bf38c5254d2a40cf3e1e103a00a2d8a0acebe525522a7ba1 SHA512 1e5c912953c9bfa275ad788f9c1cdcbf2a33593abac8aef8531042dc720f00fdeab4c1a96aa56777cd0959d92e36fc064119845d1816aa4d524ef6f6cf7aa872
+DIST thunderbird-102.14.0-cak.xpi 651779 BLAKE2B 673b4056f55c7753cf8995c80a72749ffc906697518a4fb3a2115bd4213065f80625d941ed893abe3229a69c5ae417291e27a524800f1009cb8e046d26f8d98a SHA512 cc4cef34d87d2d806316276cc8b28ff9786c9cbe1a41b4a0cec97ccdc2235d03d425fb10eb1606d781d981687741906cb0204897504662f3c14669ba90969418
+DIST thunderbird-102.14.0-cs.xpi 728625 BLAKE2B 0c0c6bf9c4c87a3705d1dfaed337b9772e5ee9e2ff897b4d5a30bee7133918e46c5bece11b4fd8850eb861bc6071b4b698c097a2c7d7906f4e41037d50504c8a SHA512 521f35b36cd8eac7403183bc728d62b258807e08043909f11c79dc7da74b653549ea1b7e8fa618ba7cb1c06b6d075174c04aebd4bc2292397790e26d0aa8545f
+DIST thunderbird-102.14.0-cy.xpi 705575 BLAKE2B 5d2a07ece97c8b07d92ffb14b08cf11642fd185511f411161b08e6f198716f07ac149d9ad4604348ff766291a399163cc30d156917257a9dc6bc3f897a8ea8f4 SHA512 fd1a8988c66f3bc97e5c1f243cd170babf6246787081e5b237b8984de62e09d5fbde282a01176fd68c3e467e272811bc88b36ec6c15dbd6be21e0e7e5e0dd3ee
+DIST thunderbird-102.14.0-da.xpi 685256 BLAKE2B ec66a796f7bcc057eb31f45fa47ff84718753bf6dbd5f7692c435cf675dd2f864190fc8e2502865557928163bd48851c83af5f17018c6f0b66ff97e0f3b48ac2 SHA512 df0bcb8fb08720531437a33f048ac5188b92fd8c3c952b89a2715036779fc9fc79f26f53e51c053dd1d35800b14ca0d62dd0547e654e934404dfd1ef27d03635
+DIST thunderbird-102.14.0-de.xpi 717945 BLAKE2B 799312a2ac8a6f571d7fb3aee820209644db9f7561a479e332e226649e29526ce9c8d1b3ffd82acbcfa018bf5da1aec4342c81ad238784610d74e827ed5b1bbb SHA512 01bc37fb7fe5a2a5d9eab13c95871f816047ddbb6070a06fd12dd92a386d46743a107b919689fce06b3706da894c0242a804ade262785448a101cc12209dd92a
+DIST thunderbird-102.14.0-dsb.xpi 737087 BLAKE2B 7a5d5eea980da90862946989d5ad3fc0f0d5dba5f98e3323155b942a2d06e96de90f42a2fc434150d77444da46a7d592291c5b69192d7d4d26ef6bdca982fdfe SHA512 9e32a7e3e6118144952f3ddd893cb45173410270cc5844c15c293efb71f6de5c1c92d70aa4644ec2f43da03e4f1e3083898a05461b90ef8969d0e4143191a5f2
+DIST thunderbird-102.14.0-el.xpi 840813 BLAKE2B 44a142955fd065e5d3a0ae3830d20501d2452087d1c0ff094d62410b585e0e5f0386d56ef61d06f1b0406f73f65edaa689c919512b8e42dec8e49b5d58b268e2 SHA512 a4b923ca844b18ad83a93ab38d7c63759b0ceb9dfeab2c511a241cc9f3a64325d8844beed687424b68f85042c015900b5e7a03af2e6d6190fcd87c6c358f1ffc
+DIST thunderbird-102.14.0-en-CA.xpi 659094 BLAKE2B f70df0f19dc783e9a7d99a6634e994ae790d913c7b7e15200c2b010ef3ded6af2dc430caa8d8f513aa2f3ece52aebc502006cba3d75743f46ab25c2eb4d8e577 SHA512 cbac6c43ed2272a65fb0d1db7331d32cd1d6ac1bcb53b6639d526c978f3402e6055c65669e780cf52d46f5a02ba9dfb6090ab342c476f031e0dde92c69de9032
+DIST thunderbird-102.14.0-en-GB.xpi 665009 BLAKE2B 29d1cc1b4359576730e7943518b1ac02a450faae17ff53e4acaea802573a96aaa1bf78c01f1fa3314409a127f7dfdd398bef9ddfaeb1d3771a39e4c76d003abf SHA512 43177c3fad03c8b63e4f33961d4cef001b542d89973a5780b3be60dd7f7fe62e203213736237e67a62b6d8baac58a26256a694e903b45e44cacf18d3ec2f9730
+DIST thunderbird-102.14.0-es-AR.xpi 717277 BLAKE2B 68a6065c64dc9f67dc47f01f14c603467053a498b00db8beebd9d7f2841fbe41a6050caef78714a5978e7082d9014ff61120626a8dc8341ef515ff2f9a88e386 SHA512 5f26b74130ceac747c90f1b3c00fffa0563c98ad5a4a10d21468d06c00e15ae0727921e8ba61d568f4c277080fe45d617bb92f10d8b284f4648c5a551f995b14
+DIST thunderbird-102.14.0-es-ES.xpi 677483 BLAKE2B 40e84cae50de16dce7e58a422c30592282c92ab395807b22605c440e79be7866c745dd1412a97ddda2f96877ab89bb61db713de4159848cfbf724255f8f0d944 SHA512 55acaec04f5d77cba69397422696dad030be802707a0c075046db721c600a72fcd25c394b34fdae13f3dcec8eed6af2de298382860bc86a359bbf0e4cf883a4d
+DIST thunderbird-102.14.0-es-MX.xpi 719710 BLAKE2B 1e10efadd2b4c7b5cef35f0a5804825b71fa4509f122adb6c3aa86469d51e1fd87ceae489a116985ff3fa031a16eeccb901ad98a20b9a90afb1c2ad5120c6ba8 SHA512 14390406aef07b214fa6884e94ec9ab5bbcea5e3f9e3274ea9df3e673415d80e5921f3bb7e4a091af18aecd413510a5e4fcb50285437d3976d927f4d9df7c4c7
+DIST thunderbird-102.14.0-et.xpi 676677 BLAKE2B 1fcb1beaaea6b6c5d67e150cd181c61922d54274dfa3591035b04ab2bad09913301f22d4e0606fcab399b859c94b3645107b5a400ac84f49f94240e0c40d5f97 SHA512 4ba33e6eee282017ce53a2b0bea9e9f6a4eb5d41f5fd4a67638a4baefd1a2bb7498551fcbf0933c087980af21044e58d8e08c9ad039cb1726300d6d8712c9aa6
+DIST thunderbird-102.14.0-eu.xpi 701828 BLAKE2B c36ebc6827381b0c1ec696d1123062e0ded455b117010679dab93ad13d5ddc3c42a51edf32845c898ac130736600992c687920fb2e0c50a0f1260cb08ab5514a SHA512 570fdd8604a097c395153bf913a3b400bf3a24102a66af25fe2878dfdc239ba1590b8ed2954a213a8892dcd2b2fd7a3e491a52a016ff5b029d3d160f6e2e27c0
+DIST thunderbird-102.14.0-fi.xpi 693484 BLAKE2B b89f8f7d7660915bed575ebe99d2390063608c272b0e01fbb86454b9c8fb6a64ee1259937af89b7a6b89145668af61d9dc9a97e9dffd0470cb830f7db6b2555a SHA512 2ba462b2e37d48279cd8b45fa1f6c7e65fae740a52cead000bc1880d5f27f8edfd83ab13ad79021fe84db39319b30387a45728c151760a90d9578eeba6528207
+DIST thunderbird-102.14.0-fr.xpi 730318 BLAKE2B 100a4c66d33d84322edadb13a88993ed22ca4aec37ec5decd04fc3a8cb065a07fc6050cf18f302a490c62e498411828eff0a463c83d676fed7fb198c33339af7 SHA512 94596eee15bee7f8586306f76bad4feefee464031fe8d8a319acbf3df75d803c33bb898ce65480f8d72203d63a854083c6f0dd5b3f0b53722bd7d457b1b7cf67
+DIST thunderbird-102.14.0-fy-NL.xpi 711991 BLAKE2B 0431f8ba33724dcbda33f5b38bc9ecf4c98f5553745a1151bc6d82ec276fe9e0136d5cf0b71d6bfbc6ef7328ec65b925b0c0e6208a524549671c0d903cb58df1 SHA512 6739b769459af9b211d08ee1779ae6f8f194ee7a51b66b73539f271a2978fbdf767fe16dd659f8c926f6e7c987bd060d8db721e3cf8bfdc00fb3346b9b98a6a6
+DIST thunderbird-102.14.0-ga-IE.xpi 614537 BLAKE2B 15c0be2dd4dbeb2d76b15ca3ed717ad521c376156e4dad1a383e72d211755d44aba1d8f1120e16eb972667ec93f8dd2c5a68f5043cb6f875ea8a7ccbd174e16f SHA512 78093a0426f79786000a6ea6b2e106bcb2a3cfc2d9c893c19f6333627819d930a07640876d7a8b80251c305fe971768077c1c880d141e6e11cdb8efe136d885c
+DIST thunderbird-102.14.0-gd.xpi 643575 BLAKE2B 1a895a81de8f2a20240e08267565f25eecb8740701d99912ab516b588b141e27ed5d876f10fe046374840db6e5157d6e739b24dbc7c2411343765368a1d27bef SHA512 8503efa379c5e243c7baf4203878b8ad68b129d5ab51828cc6352889889235437ba7ee90d51e03cc32e21e1de5f2a6c534dd74d4cc9a824ce106c750eb69fe34
+DIST thunderbird-102.14.0-gl.xpi 673003 BLAKE2B 0b972b9b734fe3be31207d29aba488c8cfd2588fe328b20a28ddd47ccb9ce63c360af3eb4848a9819ebbca1eaabdfd396af0592234b67772ab85eade5ac15ac1 SHA512 5fc03d6dda39ae69b2af93c366b7d1f6bb458c7fe5ad68f172f325eb3fa4e104bc6fb190b9fa3a922bb69acc4f8670f1539957661a52a525fb825f6f47616eb5
+DIST thunderbird-102.14.0-he.xpi 676371 BLAKE2B f986ecbddd8c86e30874cd4890f1de0688e90b7d38214955fcfeb10c643c91325f7a679caa11205912e06a3c47a7033dd9f6755883879c58c2aa9ae1001fcc96 SHA512 25c634ef0e6116d5f88c5f7250c1078bfd92880bdbeb3ae046c25e6bf122b8e4e291d8017d1424c13faefe2a916098fb8ef97d673a967fab2b5c816ebdb54e25
+DIST thunderbird-102.14.0-hr.xpi 677720 BLAKE2B 41c454c50aaebd7a08e8c12bbbf600c3976cade6c8bb29aedb0b79acf4eefcb5026afc7ed9d2425ebe103236f9f27ecf39eef6031249209a5ce65bc5d76a9925 SHA512 4fd8c4f0508bf774e41c1b7af77f35c73bbe4856d00b88a3af5a1eccc544ba45706a9789d9c150796968474d15293e65da208e55237cbe13c691b1a48e13fa6f
+DIST thunderbird-102.14.0-hsb.xpi 736542 BLAKE2B cd943f540188eeb962e219e16137d2adc6a41bc3da33b316bffbeb5fd069752f12eb1826064f50454490d090ac11087559afad189a0d242f3805ec732796661e SHA512 89038d06d94ec0b2924a490b9394dd8c134d1ae304d239fd9b3e52bfc919bb6306dbc420aafa846e0ad9d5910e29f18236655de80bb8c46f00e2e7723ceaa7e3
+DIST thunderbird-102.14.0-hu.xpi 741201 BLAKE2B 816f9ba99f4beb51135aae79b691f0acea64fe00698db0552b752e05d34f4493a84519010d00cbbbcbdd7bdae9dfd5fb37d1af2031def380b89d8cee1ee2d945 SHA512 02c8f6cee07c4fd6a124b196efb3d5a123ba885a3f90c035d1c1ec2eb5d642622cea399c3beb83775c37f664383957df5688c8d1cdddd46f89a5c36cfc7f99e5
+DIST thunderbird-102.14.0-id.xpi 653192 BLAKE2B 24a3ee59dacb6bc94f6f7a518f448471cbb96b7b082eb43698da720e70bde7f45ba2da79531f9782c9de3e7ada4afc89c6687945842ae24a26bb52752ebe82e1 SHA512 9b15eca767e2095754cfe08131a29df34e594f35e44056a4a916f3f82463c2b4d3ce4fd2602358a982f73834cf80f32055bbc686004a615d9fbd591eb3b914b1
+DIST thunderbird-102.14.0-is.xpi 706391 BLAKE2B d22501eed35d8a5dcd24ee6b0a4cd4721163dec8e483965039292b32050e748cdacaaae92ff890f2fd37ac68af8dfb9a8434722d441f245874c6592c20757f6f SHA512 da1248279baf4df0f16fa612df1bf3683e3a47ea3fd1c38a1372197f631c1fc28e15eba43f7e3f79d9bf42979df89a55f2eb1d46a11a110266ebfd6a240e185d
+DIST thunderbird-102.14.0-it.xpi 639988 BLAKE2B d1607076a1b962011d1572ac6546db464b9ad50787110c1f5360a574ef6d38018a37c30aea152ec1ba034c47413060865a30276cfad144f0064ea291660b6a33 SHA512 c5a01b248aee245bc322e3af3200d2e517a8b3d9437fe808f40a8a8939859766739522b773f54d0046d3143296718c6f573c9363948c839bc41bd8113aff818f
+DIST thunderbird-102.14.0-ja.xpi 781908 BLAKE2B 89a3d58208fbded32d51334bf6d393a4a2869e2468c4c80dbc89c23949eceecf767c2c96d51426e1129bb25ee9d8ae48e18308115c77257769551a084b9dc101 SHA512 1fe764809c5ac890b94df9e62bb293f4c859fabd217c8da2d8c70279990381caa4e8dac7efbcd7def3ca65759adb57daec07b3727feb0bb024f970e59878a320
+DIST thunderbird-102.14.0-ka.xpi 769803 BLAKE2B e115fcdd124c0a12feccfca0baa97d7d2e075f95ee1efac27820f7dbee218c5eaaec0aae84244e46ffadb54c425763da7cc08daab6f0c9ccc017b83453f195c7 SHA512 88a20cd5cf80bac7d43bd3d14e4d89177b883a034a43aa37ab5cbebc2286302a7ccc84136f81d74e67b1a63fb80a41fdf34c75ac8d99441ac6dd55e6f5a4e92c
+DIST thunderbird-102.14.0-kab.xpi 702704 BLAKE2B e9e1601e3cf584f6b4037297cfb0d163a20f43ccb8c24298987367885e28660f74513faece188a6a9799fb8eef59ee0595af8de578fa66b28e10a5506cb5ed33 SHA512 ca0340754f21574c6c1ad5f02550d76429661935ffe2a0eba8ce6fef16823af82f27624b560064f233e10d9fcef4d708936290e247406bf7a52ef55d1fc87a70
+DIST thunderbird-102.14.0-kk.xpi 810968 BLAKE2B 65e8ea8946974ff35c3874fc4fcf9ce8caf781f2f1cca004658e718aee440aacf5d3715d940c72c2c6a2eace5c5b690b80d511ca9d54b72d48af335ef371c001 SHA512 85d6c722f31cfcdc10ad7d59ce2bc3fbe1acfa2346d3754fdd24f5e5e475e7ac12553ffee1142ebd5ee9b801169b9c51de75713f9e598bf9ee1b841382a0b181
+DIST thunderbird-102.14.0-ko.xpi 716821 BLAKE2B 93bb1317e8627a7e376541adb5c448ed325724048a5c7c3d43e6fce15b0b4483eab8fd84e38d7964fbe2c660f9e78f46f867258e1cc290888c63aaf47ce19900 SHA512 ffbf27dfe05e8aebd03f1f7d153a3abbfdcf8f86e1e266c5a052becb52d049c55049386ea001502ca81f85ed719930e466db9ee7240ccb88739f686195326863
+DIST thunderbird-102.14.0-lt.xpi 690856 BLAKE2B 211278c1bde7ad836ae683aa9ed6a63e17be077410a5a63df8f9d8b4c607e732bb5a65ea906fbefc5fff671c4d335b1bcb262551b4484ebfa3d6db49da946351 SHA512 c3acf05aec3c6d2b8a5acf879f7719bd162e0d3f3c4f459bcf8ce21423fb712cd05133c6ab6f050a3dbdef5a7a1d2b20b4756d6dbdfc7d4c616112054439c02f
+DIST thunderbird-102.14.0-lv.xpi 617767 BLAKE2B 41a2481d4c14e8332fe9d5a6cc284e2f1bdc4630f713f11eddff80072064b71fc9fae2a3e5925de4ae85b851fa64fefeff1dc3f4b67bd159e4b52b148695eccf SHA512 ca049da1026fc5b828b7548c70ed23c6ba40dd583d84ae5821d65b719e2d77e2bfc3d4a402a8eb9fe2e0ac24d15fa556317777b0930c3585ee5e92b4efc68414
+DIST thunderbird-102.14.0-ms.xpi 577757 BLAKE2B 993b9b98e4776f51f770a2355c9ea218a8abccb7b91528c9f7015a1c7a5ea9b9f19faba139a1e5c99b7af69a58ce291ccdc3d960a5627c2adea6910d22832720 SHA512 9b179b257cb21429b5f6ad4657b0f5c54c5f99ca7062f18f9e9928e4f539255adbf352ebd5efae995501426f7c9ab2a017aa86f339b880d8fb9406062663b3f9
+DIST thunderbird-102.14.0-nb-NO.xpi 662683 BLAKE2B 0a1f11f24a8ff645881010280afeb6771248ebf5717458859856c66029f7d61733b24c2fd92ea1259aaa891756bb5d3be6d8cfa29f385b5f13036936c68394c5 SHA512 ac758b4dc80483043c523afe06f5ad8ae7688873edf064fa343de4b3e66e7d58c5b2d957ae6dc511f549c53a26ca576443ee582dbbb7cab2ea3141aa099fcb87
+DIST thunderbird-102.14.0-nl.xpi 703276 BLAKE2B 500d7a4daee5292de9f1b59327ddbcbe793dd705c2a2e507b1e3d90a7856ce49c12d193fba17b9cb1eb0cf0ac1328331f1658937bf5fbebbf160130f32d5b82e SHA512 72f56ead0ec768ed8b1770600b42b86d2a1243644ad4cdeaefa549571712241b7ee8eb55853370acc342fea028044aada9c651cbc9c7bc031cf2fd174683c9ff
+DIST thunderbird-102.14.0-nn-NO.xpi 672832 BLAKE2B 29a5a62d4674dbddb89ce2f82261536ec49889979787bf81c04b099851835c32cb1d9f939e66db468b9192c18c8c371a5d59dd4b4657731e7edfb8ab7e0caefa SHA512 1be79ef164374e30583a480bc599881633255e2324ff0c44ef878f27c1896041053a74cbd844dce9373c15d5c3f3ef505aa3adae880d4b1df2b8fc6836b38b1f
+DIST thunderbird-102.14.0-pa-IN.xpi 668032 BLAKE2B 87627a28512c06c4cbe548f3f02951bfb86a1e6a477b1ab2e9c3a4610afade81cc73fe3ca6291b048af16db0dbbcc434474a4c64e2db55f3b81fd9c57e8fbc61 SHA512 a3fc078532dfdf7fdf9dbc7c25942abb1f82663a74f6029a605f93b1e36f325462b97a90943dcccabcc18f5855a96bcc312066e5aa039ab1629e012ff2f4d9ac
+DIST thunderbird-102.14.0-pl.xpi 716232 BLAKE2B 70bc686f429c7181708746e7ecc6f046406a81b041067c59a0028bcba888009e00327ace7885ceaea3b37c7a48d336da6af3c81a223a990ffcccc96c89ece7f1 SHA512 4e5227bb4ae5b317fdbbdeca1f5fede293fd045c6cb88060d4e3a587bdeee759bd6fa625e01fdc2c3060966911b4af18e1bec5c70322f82fa1182a9d4af3578d
+DIST thunderbird-102.14.0-pt-BR.xpi 711151 BLAKE2B 6134f38b19d992238e6a21f189724a53ac333fb1f49e5d57b6c1305f2ae53f6a0e7113478d6e1ed84173722f445bd67db9755f67a0613f719f3c25696ada16c4 SHA512 f1626825aa64674bc5b4bd4eb06c23b5736a9ffa4a96dce944ac7038a55fb15551eed7364cf17fd964253612d79147a4175d7af0beab294720545fc378b8e40c
+DIST thunderbird-102.14.0-pt-PT.xpi 686909 BLAKE2B ffad7413606a4fe48dbd290d1da00d31fe448a6544803dc9783ea9f63b7e156fd56b4250fe41980cdb16ad6b2d5fcf3035171b73ff080f323f3d1c22143aa4ae SHA512 5e4f9fba14d9d57710861760876105b819c06dc4639cd10fc4b68f6d37118f8a322594e5a1b69c138e7f0b6cd7ceb7fb3cd72fbc8a3c03dba535fd89d82652de
+DIST thunderbird-102.14.0-rm.xpi 701683 BLAKE2B d566cae47e00a1f1c9e782cfbede9f58505ab2fda76107493f17f8c3c179834f2655db5d076894ce96e536ac01d3570afc097b3b1ce6eed6252e8bd9299e60e7 SHA512 8a5bd9248704e54f24d19ee3ce9cea5d6ee1afe7736c0362a84f93f2b022c4379c0a5ef6c169fe16bedecf9a0469b087c942a7ed5c321e373199ffc173d07ace
+DIST thunderbird-102.14.0-ro.xpi 661283 BLAKE2B 6c7a65fe02f289bc83bcb43c0b5f08bf769b7a9aa959f96d95f3dafcc42b7f23d23fbedcc8c8786e72c69f1e584fd167230fbe3995a089422dbb54889bb187f7 SHA512 f0668079f9462d4f538fc70f2f54a1eb4fdd28a74525fbd00d4a7fd49d7e4d914bdeadf4ba4734a8cd4a9d994c9da5978f6888f3313b3c592f034ff68f113334
+DIST thunderbird-102.14.0-ru.xpi 827221 BLAKE2B 15501458aedd3604e7b312800cb2e7451593a7267fc4a310e880d9d46f7227a6e6056580162066e1d653af374a2958571fef8835b8ed73a3c585b782f56cacd1 SHA512 9a2dcce2d8b20c0aafecd44f40b55e296e0da44db6f7811a3f6d702d595996e220368710f19a9cf5e8587b97ef7fdc81f0a79a6ad72219f175249e017b1b2930
+DIST thunderbird-102.14.0-sk.xpi 740982 BLAKE2B 3674b3b3affe6933d5c73d51ae054f02a0189417f0e0484d7f4b300843fc31ec5868b94d2f60dc1e7bdcd10d88c3513e6737adcf02bd0f278b119419930a692a SHA512 fbebe250297f2fc49738e4cd3b0166608e2589fade0a0fe5ebc8a98008f7e78dd45d07a7b85cf297483c3dca3865adee68f7d979d9172bf8df99163172b89d81
+DIST thunderbird-102.14.0-sl.xpi 704061 BLAKE2B 49bd349efb66c123cbed026bce69f986ee415b91e6ca0fd80eda193da013143875e1ef7779ce0844f8dc2f4a67d760fac8df76301ba75cd9f4694488194c03d8 SHA512 556c42f0d246e9820f9378fbb30e3f3204faed90adbd206ebe0db98635ade4aca78bc905206eeb3f87dd59b2e4f83c3d055cce9f5de2e817cc2b3891b4d88f79
+DIST thunderbird-102.14.0-sq.xpi 726037 BLAKE2B 2cc88b93cbcf314b72d19695ad70856ffd41be61eaec0d91f26108495412881fd503c5d7b14d0835366029f6903d4821326c3597d148e5a994c4c5cdaac69971 SHA512 22d4638cb085726ab0ddcc2a8c3b5cf2c8b8557757065081b9bad5949bb17dbdb7ac3160f8e075b9835368cea9936eaee2134fc2ac6196aaa8aa084693fbbadf
+DIST thunderbird-102.14.0-sr.xpi 720557 BLAKE2B c623425619fce52355d42d3db59b85376d4901501a31b8dc69f78f1e3f934ecf0a48e7121105a97707be5610a2a8eccf763571f8163e3e1d7f95f32037c7cf2e SHA512 46c9886cb93866f113f75e9dba24248a327fcc470289143215882a90031fc444d43059345e916de31f13934d02b399285255198f5e300451f7e3c1cb0535875d
+DIST thunderbird-102.14.0-sv-SE.xpi 706954 BLAKE2B 27f5710e1cd2ae3590ef4737c0b5cdc91439a00fdeabf39d5fe21de89aaa9fc6be65657b11a82272a2673a431dde83e844d5dc7fa4e4ebd704e181cf26d3e80a SHA512 c89f75450412ef38ea06d4b741278a84f89eeb4f0bce76f4e9f57fe35860e64b2caa4500ad61ae4eb0bcc29e265a1f632dbb38ec39d4824cceb352a3acd54eb7
+DIST thunderbird-102.14.0-th.xpi 758237 BLAKE2B 0478b70dbcf0bc508949679dbed9caa398a6f815ad3d9a5ddc622ecef6bc8462b6a4b4e93c5e89a4382f3ba117b7f9928607d2b622a4a1a659a1f4a26d2899da SHA512 18e42472175b4d9fa8c0a01451002b49a1c76a874c2b4431c49440435c050a29538a617271aec3e192ed8ee0abb3d9ad15f8dc0cde40604eee89f6abcac558c2
+DIST thunderbird-102.14.0-tr.xpi 720176 BLAKE2B a4b784ca6f19cdee0b06eb0b258db67d0969726d8087c8dfa296d06a661ce913c7c7179895efefc52a53ed097dd976b008ecb6f2493ad3ee0dd77e64eefbc06c SHA512 98a6eacecf6df8564f0833c83782982252c34019e3b2bbd808c3f6188735986247c01aeaeddc204c4eff294da7fb6fd78778cf6ca7d716767b036a7b588afc28
+DIST thunderbird-102.14.0-uk.xpi 818663 BLAKE2B 8dd68e3cbf4591796505e4fd6728a806c974e82de0ea94d55643da1a2c2ca50d0bf05e0ef37057fef735eca415e9c2ea692361a7bcc99edaf128be839db64021 SHA512 0c4c11ae21349adf3ff85049d9bbd019b6bf023fbddc5d95cbfebded03af187fb102934996dffaf046158802d5d5b3557c498424669c77207d26bf9419875b8f
+DIST thunderbird-102.14.0-uz.xpi 593013 BLAKE2B d2256b59dfe670c8482b42f58f7cd067726ccfbf465333530f5ff171b49f1acd6108c9ee08a8505248dcc749b5732473026a3a1cf7bb86d66509e13bea11b406 SHA512 815ae8869728ee9da7cc3492c65f72024012d0449737f9ef099921f2a43a3d6728d13999456fc19b08cf4f02062025d3cde7e71d893f632010fa2df6b7967673
+DIST thunderbird-102.14.0-vi.xpi 745666 BLAKE2B 7e7fc54e9a78af51a2a6c5bbd2129a1ea0519474a1b9024e8aac4a2010643dffbb1836174f886409dc70a6677ca368b2e02f0efa069cb544c36e0caac29ed71b SHA512 81628ed26a736358285e01e0ad2f065a2b046e4a8ac9b7e48fde86218f967084008fc5a43463af17627e9ad60c784c37cc24996ed7cac27d5261c8f6a957fb74
+DIST thunderbird-102.14.0-zh-CN.xpi 739888 BLAKE2B 151844f6eb4ae2de5908ebf098ff49a8d63d49d4adcfada737b64034a38ba8e96ffa4066f611823cfe239dc4073afab6e74583a6df9ec1b975b00c74eb30785d SHA512 e2def4a03303b8e6697e1c490034429a69033b1f6a9f58c422ae3b1ee4733c6229e728124077f72f2d7fbfb19be9e1418856807c573e0c91c78bb5c135772344
+DIST thunderbird-102.14.0-zh-TW.xpi 748347 BLAKE2B 7c6f8e915e7c7966055c2480c7c119d693aa89643117777808068d1364ccdbae7a02a429f60ac3de72354045dcced11e3a575287d36381b36661492df48a6a91 SHA512 40e494ed03ad2894af29026c63b4a94ba2e26e1870ff04c7db9002e20c4d5967c0e7247180ec9d3ae150477dffa3bf2a165c98edd05a2a358b964a25387f4755
+DIST thunderbird-102.14.0.source.tar.xz 502877912 BLAKE2B 19aacace87e019aa0523ce080f2fd867860af50813118136c141ef38fcc15f913dd531161e3c9c2bed1450c9e94bb85a30933d60705049fe50ffadf5539ac37c SHA512 4ae3f216833aec55421f827d55bc1b5fc2f0ad4fefecb27724a5be3318c351df24d30a4897b924e733ed2e3995be284b6d135049d46001143fb1c961fefc1830
DIST thunderbird-115.0-af.xpi 545521 BLAKE2B 6d23137cbae72eedbb75ea4b247939d9f5a7210fbcd3400e0a99f5f5d454f91a22c32925a7e833e80920114c7f0af4ab8d0609af3a06e00e6ab4a7d3355a35da SHA512 f5b9d7c2ad7454b395381c9c1fdc49376df6865ae461c8dfe423b71aa649ee8fb4a0f7f55e250468aef7e695a5a07fb61ed9ccbe504d0c03955bfdb4a07e5414
DIST thunderbird-115.0-ar.xpi 656072 BLAKE2B 64ad948cc913cb43b204de605171864fa166f602fe25bf757d0876ce7ce9813d7989488a7a23ba44b172292a54eaa36b413b37ba2f94444d0d1522aada4e2a11 SHA512 0f1b2f9a4a3b9d7b0c4d3a81c192ef852365b3eb104ae4c005c7d85e063aebe5b38aacd46d6d260b19c210e91ad659708104a1286f633465e461bf94bcc314b1
DIST thunderbird-115.0-ast.xpi 563019 BLAKE2B d2a040496319af411af9514f438773d129e2d2f04d927339804f115f4cbe5c501eaa209516c90d04511b4dad333dad5f38a5d5a4f615e6aff9776f35cd050830 SHA512 bc5c605feb7712ee7a149ae88fd092f50e4aedad07530d19674b5c1be67d10389bd7ce4d5e1ad25eee048f3003f542ef0669f3c9bc948bf0be654d9d9909b580
diff --git a/mail-client/thunderbird/thunderbird-102.14.0.ebuild b/mail-client/thunderbird/thunderbird-102.14.0.ebuild
new file mode 100644
index 000000000000..c7fc1afc671b
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-102.14.0.ebuild
@@ -0,0 +1,1190 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-102esr-patches-10tb.tar.xz"
+
+LLVM_MAX_SLOT=16
+
+PYTHON_COMPAT=( python3_{9..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}
+ || (
+ (
+ sys-devel/clang:16
+ sys-devel/llvm:16
+ clang? (
+ || (
+ sys-devel/lld:16
+ sys-devel/mold
+ )
+ virtual/rust:0/llvm-16
+ pgo? ( =sys-libs/compiler-rt-sanitizers-16*[profile] )
+ )
+ )
+ (
+ sys-devel/clang:15
+ sys-devel/llvm:15
+ clang? (
+ sys-devel/lld:15
+ virtual/rust:0/llvm-15
+ pgo? ( =sys-libs/compiler-rt-sanitizers-15*[profile] )
+ )
+ )
+ (
+ sys-devel/clang:14
+ sys-devel/llvm:14
+ clang? (
+ sys-devel/lld:14
+ virtual/rust:0/llvm-14
+ pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] )
+ )
+ )
+ )
+ !clang? ( virtual/rust )
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.24.3
+ net-libs/nodejs
+ virtual/pkgconfig
+ amd64? ( >=dev-lang/nasm-2.14 )
+ x86? ( >=dev-lang/nasm-2.14 )"
+
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+ >=app-accessibility/at-spi2-core-2.46.0:2
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/libffi:=
+ >=dev-libs/nss-3.79.2
+ >=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 )
+ pulseaudio? (
+ || (
+ media-libs/libpulse
+ >=media-sound/apulse-0.1.12-r4[sdk]
+ )
+ )
+ 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] )"
+
+DEPEND="${COMMON_DEPEND}
+ x11-base/xorg-proto
+ x11-libs/libICE
+ x11-libs/libSM"
+
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+llvm_check_deps() {
+ if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
+ einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use clang ; then
+ if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then
+ einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then
+ einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use pgo ; then
+ if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+ einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing! 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
+
+ # Clearing crate checksums where we have applied patches
+ moz_clear_vendor_checksums bindgen
+
+ # Create build dir
+ BUILD_DIR="${WORKDIR}/${PN}_build"
+ mkdir -p "${BUILD_DIR}" || die
+
+ # Write API keys to disk
+ echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+ echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die
+ echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+ xdg_environment_reset
+}
+
+src_configure() {
+ # Show flags set at the beginning
+ einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ local have_switched_compiler=
+ if use clang; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+ if tc-is-gcc; then
+ have_switched_compiler=yes
+ fi
+ 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)"
+ export AS="$(tc-getCC) -c"
+ tc-export CC CXX LD AR AS 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
+ else
+ # This controls the backend of the bundled librnp. Choices are "botan" and "openssl".
+ # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp.
+ mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan"
+ fi
+
+ mozconfig_use_enable dbus
+ mozconfig_use_enable libproxy
+
+ use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+ if use hardened ; then
+ mozconfig_add_options_ac "+hardened" --enable-hardening
+ append-ldflags "-Wl,-z,relro -Wl,-z,now"
+ 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-lto
+
+ 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 programs for extra features:"
+ optfeature "desktop notifications" x11-libs/libnotify
+ optfeature "encrypted chat support" net-libs/libotr
+ optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas
+}