summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2023-09-21 10:37:47 +0300
committerJoonas Niilola <juippis@gentoo.org>2023-09-21 10:38:10 +0300
commitb40a28ba35d2389cfd0da9bfb13d041118029f62 (patch)
treeeaac424056cc114c2333cf2ce837ba4f2887146c /mail-client
parentapp-admin/ansible-lint: add 6.20.0, drop 6.19.0 (diff)
downloadgentoo-b40a28ba35d2389cfd0da9bfb13d041118029f62.tar.gz
gentoo-b40a28ba35d2389cfd0da9bfb13d041118029f62.tar.bz2
gentoo-b40a28ba35d2389cfd0da9bfb13d041118029f62.zip
mail-client/thunderbird: add 115.2.3
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-115.2.3.ebuild1313
2 files changed, 1378 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 6ec1556b1c50..62d75d64501b 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -130,3 +130,68 @@ DIST thunderbird-115.2.2-vi.xpi 742715 BLAKE2B 91843e09f5408e2ca94fd8e0ce1a21297
DIST thunderbird-115.2.2-zh-CN.xpi 740786 BLAKE2B e2b1623fe8a323d852b9b49b46e920bad7873938a8d15ce8ba67d33733ec2be36c8aaffab8e528ce7991cb59c30b19116c05888f1471e44385e2937367abad67 SHA512 613fd2e50aed4b932e8dda6486b0e0af1d5d40633adb81f5d9d9a64feae30ed9023460157fcc3e566f9117796e077cd8feed918bafcd178a55afa62f4152594f
DIST thunderbird-115.2.2-zh-TW.xpi 744413 BLAKE2B 295da23ab1803db39a516629fc86fc576c185e50a580d1c3153f5b4472b3dda9b0949cf5257ebb66f26283514ae14d4f7ffcd1295132360cbbfe71ff7bba59e4 SHA512 446489c2ca1a1bfc6e5d3459618c5cd4e8551d09083f70575998ceeaa91a5de6ec6a1e012383f8b61fb1d5b47fbd30617e1710539b54ae94d960d18c5e25e05a
DIST thunderbird-115.2.2.source.tar.xz 531561372 BLAKE2B 634460d713c102a2b923aac44865e22d24dff57c3fd1750018cbcfa67a908ca0912beec74803a35a668f7a685dd26e65c7a861efa1ac05a1e5835f29b3c6b898 SHA512 45843709c21eb19d69d43205da6b2f943b584811a29942ffef1933c1ce7882b48046b201c2ff198658fec2c53d479311d8a353731afe6ea53f97b31674d6074a
+DIST thunderbird-115.2.3-af.xpi 542155 BLAKE2B 3462ac1188ccaea3a08e34c18e0810f366c10b93ae8d5070a7ba7b76bc9fd807288f6e732202a9724dc3fa5ef324ca2044b4b04996cd64d11c6039b3c96429db SHA512 295d04ad81651876847e9fd1352c9a82c06570f8b20f05dc55544ebdaf17c131396508af1b77e22f0f41320dad0c1720a100f7dfc6c4691f62a90cdde7e61455
+DIST thunderbird-115.2.3-ar.xpi 654725 BLAKE2B a6c2b2ba0a43f3260d06934d85c3356f5e79d48e351ecbd9f18caa5d732e93ac58983299612831eaba1c6a2e0c2aac760cda200cb75ba2457f05e2ec220fc402 SHA512 3f1a56446ce92ed615332a1a001f38e036b5786a78f01d64856e9bcd4f83b6baa89cfed6dae0ce75be76c4fe1313db769362562b927300ff28e1be1b290541df
+DIST thunderbird-115.2.3-ast.xpi 561120 BLAKE2B d877c6806ea76962dbf56b94fbb4976d5ecb9767218f2ba2e6318f7e6747c194326a2060b2af5a36ce4f56c065d98b758b4759f4e9ba81da74bde9dcee69a969 SHA512 f9e66762e197483f53dc775eb315a923e98ae60494b82e7d2b3be4e9b8a75ebe6d6c561f4c7bde057e4772d25789563b6b76de71905da6828921d1014d5dfd3c
+DIST thunderbird-115.2.3-be.xpi 694084 BLAKE2B a4dc8d62332f44b20123e2bcdd8a6fb21fb1bd62bd7a2e4f2068eb9dca9a40e99f575dbe5670d52c51deee99fa4d60c4b73a27f4313c66b12c84002016cfaa96 SHA512 4def6c67f50428e3cea9eee29170e399df5cb1d0124ee879d92df50e4d5f1d6426a2dadec8c1cb4fe7618b7fae669f6b07b07fb2247d22fa92fec4ee39cdd7fe
+DIST thunderbird-115.2.3-bg.xpi 681248 BLAKE2B 7354ff6051d46aea07ec29ef4f77b2189c806b0ee3d0c095367773c52e63e98d4e7453d8d9b6e7196fd74c82a931e53670e6eb2dbbdbe87220368aaae1a66970 SHA512 25ac28a576f15fcc43ac5240fa637e610ee0fccfa08ec1860b61eb14c9c49836e4efd246405723fff05bbb410c901d551ca1c153a9b3331c33d07c5c12fc4b87
+DIST thunderbird-115.2.3-br.xpi 626489 BLAKE2B eb0c02ea275439c243600ef292b97dfbfd23e6b1550c0c13e4a3c49283d6cbd5a8501adc27645be686621dde1e395233629c8bf141425bf2820f761ea2cba85d SHA512 4ef1e777d1e539c77b1e99e2f4c59c1746319a4a91e4c4ce5462fce7d517c6946698bebff97223b3faca089d33700ef546a728445e85d9614dd48f49586d04cc
+DIST thunderbird-115.2.3-ca.xpi 664392 BLAKE2B 2ab736278c547d4b5a9df8230d4046ce676f62c3b395b8ae2f13c1fadea02639825136826d7ddc48ba8d005bfa995caf5506a0f9e55ab7da85d595a6bf28de17 SHA512 03259d32f81cb3f6240b82f00b225485837c110d22c8ac0ac73c16599428e407792145bec916e9be34da45e4bb7fc15d021cee4633e2a95c1cf4000cce4e8928
+DIST thunderbird-115.2.3-cak.xpi 657816 BLAKE2B 05edcea3c916cfd586eb403977c3ac4f1505bd6c3b516afd78043cff0427e396b2196f6ce7c3ae724d0e6184b7584090ffabeb33851d0b54627bade2673f0834 SHA512 f0bea1ddab84e2a3c6da87d742912081dd43247214367476df6f370b4166aa03b759ae3d0810bb63a21dc6cde728abdaadfffbca49740daf90fccb321cfbf38a
+DIST thunderbird-115.2.3-cs.xpi 733926 BLAKE2B ab6d20ed878684623614114d839ea844d920fc7dead35acdaf9cd082b18f1ec30dc0037fd8673cb94107d1210da00fbe6190689916e562f2d5c629966c271131 SHA512 ac309ab5bab209f01b97d4e97f6c76c65f8f632f76654f421b36ddbadc8fd567c72bb18697eda6c6742902685faf14d3c32e1bae84c7d0455cea79bb9d446038
+DIST thunderbird-115.2.3-cy.xpi 703326 BLAKE2B a737921b4a1560d927760dab77910518c489111ee0feff3a3e5c998f6c5335c532a0ed9634b11488db78b3656d4cae33f93d759b615e93d15e2e661bf49e0da5 SHA512 dc2818fbef11c4577b0930d120e10ee3bd7eb59de4fecb574c0d592f4d59d1a0cf5d6ce970da57258c529d18a7f6efe62c3ceb0392751c2f6009c1f5c452bb06
+DIST thunderbird-115.2.3-da.xpi 690779 BLAKE2B 86d8a6f9160b172fab54058ac3c67d479215e50a31140cad0f85512a4ba2a3de77f41674290c60a1f7b15310ac03c3e22e3ec50f85aa07d2e056d08c555f3663 SHA512 47866179c361257da0ec6e36b68ff2df6f8e14999091e63675bdaab7c5e4615202c9c8fc3035f981ebb2aff7d248f086eaa76f0f6d7d7b7156e075e952214157
+DIST thunderbird-115.2.3-de.xpi 720271 BLAKE2B cc4dd39769375eb1655d62e88b59d00f8eeb2e8ac99721bf7c882c8c81fb96b42688839b26835eadb3311f11ca4b3013e74bca16f89cc101aa70f35bd2c530f4 SHA512 3279d045f3c692b3b9cdf0f7dafcbab7723ff163d1810d2e889118f52a712f503f1a8b6add542af45c62126545eb59848e2715807462a13006059bcab5016e80
+DIST thunderbird-115.2.3-dsb.xpi 738024 BLAKE2B 549d503b590509b293fd4c56e85401eb6c9c58856739485c80a6b09d218e0accc7728253769cadc7bc1cf3d936803aabe4da258c8a0b154a11a657b02890df0f SHA512 7d74243e0ea60e09d1d31c25b71d3031cffc383463c2fdef48e248a985598bb7ed8a788e79bfa1da8cf224c3802248b9741f04cd9606a00894765f63c19fa6bc
+DIST thunderbird-115.2.3-el.xpi 837360 BLAKE2B da3d40bd236f4e092ba938567129532e00adc8f8cdec3ed7f79bce24ac2be2983824ff939f64d3f0ecddf58dbee022c7d40e6fb11cc0205bf1417b6ddda52666 SHA512 583dd7821a452b30ada35189225833eb3e260ba0aa479c797178b1db308c05a192a0412c7c1720ce5cc34a6bfb01973e8b873572c74465d3b0e7bac170ab66c1
+DIST thunderbird-115.2.3-en-CA.xpi 648451 BLAKE2B 774e803f43fa25d4be1105849334f79c84a2697d1146d4d75f96bf866cd9d629794f381a1b9d4b1679108303e61624182605c5afe0e9c9a74e5bfc3b19a44cfd SHA512 4c83cb0f2996a8eb7a3ff928a3e1b958b840763a4ab88390fb13392f32a64cc7db7cc0edf4465ac9da66678c684983f24a756e7c585ac47075a1f8bc146cf6f6
+DIST thunderbird-115.2.3-en-GB.xpi 661515 BLAKE2B 79e5152aac71118e3dbae6f877d106f3cdea123e39ed7f08dddbf980cdc3fc7622230839953ce49f8af69f23125697e82066c5ab5e3e0b176f6f8323bccc792d SHA512 a0c32d1767807dbaecbc25971f183fff0963e02d3c59e19120cbfbf2d91765bd51faf73bc7d6349532c60eee28e052fe9aad54ab50291ef4b6134ee2f068fc2d
+DIST thunderbird-115.2.3-es-AR.xpi 713109 BLAKE2B a5167c9e9cdcc0589594012e0ad7dd562c6fcf13a8610f2c36befbd565d4717020a2de65bfb3764b24f1710d4709f330ccac9a381ebc38ac25e55e677a7a3a8e SHA512 f7d73c112535fe03a6fdfcab712615435823935e7c5b8d312e2ffd96fa85fa4dbb6666873f488f97d254819238337dd70d4c8d45ed2ac85c05b3964dfe3d90f7
+DIST thunderbird-115.2.3-es-ES.xpi 675706 BLAKE2B 72482c89d2a9439d8ac276a81b40a53c7459552b83d51b28d4a607eb2fd1081127de5ffb5ab789d95b6aae7b12e38b09072dd5edcd5476de2f0b2959a6cd0aba SHA512 e5b0a4a9a2c1d3f742af532e9666de34c25132405188362dfec100bbade2e78b52bf640e5b664a686981a544ea3b168666b1c6f533c6cbdf05bd00137cec5638
+DIST thunderbird-115.2.3-es-MX.xpi 710141 BLAKE2B e4fcb0c3103d2ceebc56bea36746da8a737853f7de04bb64ae51d358a50818ec9b9368c215fe5e69628f6c8aca999feb7366d6c03c0f50448a2c06bff8d1a667 SHA512 8dc618fb2a0a6fc05fecf96090f60ac683cf68817fab0724eb7f496bb406a41c2fed02c8e0c7e13e07692d4cabafbef545c4375963548edd2bb2d46a9fc2b88e
+DIST thunderbird-115.2.3-et.xpi 671820 BLAKE2B 273b1e2ef818b307ed82f81e901c53021b9a012299c6753a6efdd220849343d00cba2eee167619935c0fb4a68511c7eecd1d87153e82b2040f01db3878d4b178 SHA512 d2324225bbb33730c49d9432ffa9e0967b6c00a6a107902e65c3dda0b32117b5bba67f73724ce40dc798cc8afae261f15a8f632914b8905042d97de7b2277311
+DIST thunderbird-115.2.3-eu.xpi 692541 BLAKE2B 388d3308acd878a400a0007f89887ff158c9a601693a3448fdc7eb0825781b68956be42469d29cf1aec1af0a77dd0c774e04c0c25fa819b47f0d8364c53300dc SHA512 ec5c2372b46fe6922c1ca3bdf684e4cb4051d2bfb71c0b39281543aa275dce328819e894f1e82720b03a9f74d17f749eee9fc0660999b30c77355ddabeaf7028
+DIST thunderbird-115.2.3-fi.xpi 689877 BLAKE2B 7e6e02fd033bc42a2e07ea5031eb65dbdcf8155304ffcd6d37783e3ce28b1d74e096507e7bea5417062a93f0fa8bf0db807c7686ebf9ea5c6e9bd499c4d65cd2 SHA512 5e6be5da2e512cc20a9f8f9cfd9cb0f42d099d2df3d9aa03f97ddf60a64484897591e470dccb8a4c53829c1c17a460fa5c9b99db6a374b672ca90415f82a9f44
+DIST thunderbird-115.2.3-fr.xpi 725335 BLAKE2B 8c29724e5445b5e0447be0ceeebf670d7efde919daab0e2d7f20e76ea14f195c3bad6664294773ade65ca480a0ebcf5ce7a5f8f4338d2096bd769792e6293c93 SHA512 9ad6eb13f73de43c088724a47a5e8fc2ec9184618484c7947227a034de0b5c08e9515324c265afd36ee0444cdf5bc2beea1e14ad203bb67777a27f7eccae919f
+DIST thunderbird-115.2.3-fy-NL.xpi 707903 BLAKE2B 671d4d789b8e184c9189777326765df0e627cd770a389d1aaefa8a270028f7499b1fa79ab067fac47b28f0461eac0e20a43baed1ba9d2b613dd1d95d357532ed SHA512 091c906901f3ba671e0f66183b499ca4049598d0515d1743f6bc2fecd24f81af14ac3b4949fa123501c16e07ac9ba3adb34a32ae33eda5347d957175a4ad7f9b
+DIST thunderbird-115.2.3-ga-IE.xpi 601818 BLAKE2B d2263231f1a741ea24c19a273e112c0cf411d427dd13b02a13d292bab8efffedbce8941e1e2b0c7190d6f2eee51b4f50837124e45f5c515e15e1300b222e709a SHA512 fbd4502a2cc9fb0ac9580bcfaeca6c7d8362ab74490fc582b59613a3574b28461f1904360518507a29abad04d80e93c0570e5d0e57835abea134bc6e7022625c
+DIST thunderbird-115.2.3-gd.xpi 702993 BLAKE2B dab1e76a1a3d206cec52251a22aae35084f8fe389b0e2454d4886fbaab515e5ba54471769a0806267c2b1fff7560121d8eb9bc9edd0c77a03fca2e8121befb55 SHA512 8d80c7eb491f3e8ee6f90a5620c0844231022776b84906fcb30be07a441f950b57d13fa62fe9eef6b2dfbf43e618aaa49d8c0ef2de0f36a9cec0c4a8822a52ba
+DIST thunderbird-115.2.3-gl.xpi 705421 BLAKE2B 6bb2965e31ac959a30b049b231dcea89d77f9a20bc3084afe7be7eb7b5db59f6b63de335ab49ec4685eab3d37bac7c235734a5b90b33b310b249f3d05d01b9d6 SHA512 140bced807cf6d9d87f47848df4c97ec10eb158e174383e31cd8baaf77d2fec0df78936acfe4093b6f04c11ac354e55c0eef55f53ac8b5f29a0145ed1ecb7848
+DIST thunderbird-115.2.3-he.xpi 667478 BLAKE2B f1d7e4e123b244b567a13a7bfe168a0d77ef0173605581b3d40e319372436493ad90f6477fc0612c9ee5d5617e5b46336bd36b64f24213bd80dba0a5492f5bfc SHA512 fa9dfc42a209c7b18766c3fadc84affb05f109193675e13286deb81a3f26b1dd3498bb97a093170fd630b473008f3b40847c2fae1b060ce60576f503fb71535c
+DIST thunderbird-115.2.3-hr.xpi 674902 BLAKE2B 338f6034dd0b9c991d0523a650aeff4492604e7ab8d1626d34ac371e81a8c70959bfe00be83c8fa5f0806174d843540b3514db199387055e1c8830eb81472b20 SHA512 96fd00361f5815eafc9cde41db40d1b13e744eaab8ef98d5bfdace9817b0d3402b681a8041c3f0c34b65eb7e9670d1df0252d46e769af4193cba94e118363ce4
+DIST thunderbird-115.2.3-hsb.xpi 734548 BLAKE2B c43ce19a48a1a8bc77ecb8e48d9476096948a901f7ded5e974b8033198e0ba355d8a50b19f2521d2eb2a652ad1c3e21d83f80819d9839c1df16ec50c24fd8e0a SHA512 8e940da705b77b845b68e0f427c71f01ec8d28de7cd3dac8e0e2490b3c23bd003f0fd711f4d8d16dca88a78c8bc4dcbad2b5965a3f564492e4bdad0011023510
+DIST thunderbird-115.2.3-hu.xpi 737468 BLAKE2B ea2b1e817ee3a052504d05a620f058a171a2c8859f6716dd187704f7dbbe632175d895a502af736b8a94ff7846539fd2957517be539f8cce749f7054a5550b4d SHA512 0c45170c2dc5b52b3644ca73bbfce1cf48c0a8563a21120ca960d6d2b95562f2d30e76ebe0451818ad918c546c666808e9c977200e19ccfc323bf2812d4369b1
+DIST thunderbird-115.2.3-id.xpi 642538 BLAKE2B fbe4c5314c635802c89fa9368e73d8a7c9c845f998a404acd5a754a4e7b39c286020a8b99605f95d4d5922003f0328930ec4306c05c89ebe24222dea52123528 SHA512 d68445db4e087062eaaea08300402924d3e79e093ba8eb952e84493202f4ccabd2687bfcd00623f2a2b9fbfcae32c596e5b5b0ce832f42983c79bd00597e23f9
+DIST thunderbird-115.2.3-is.xpi 702210 BLAKE2B 53f1ef076d07cad4e8254ce50ac878f9d74c0d5705600757c547de2f4ebbadcdb5777473560694e9175d47d7d275fc01ba7008b87d13f544a7ef4d8fe241d539 SHA512 8564af41feec41c6ea2ca2cbf7de588c46c59cb9269327228c966c0e4f41fd889ac1fc8ce749fdd326ae8f367a3a65bb10f9cc837137099ac8b7afe20a4f39b6
+DIST thunderbird-115.2.3-it.xpi 643537 BLAKE2B b227a73a7711d3a4d8666967f6c19be052173b9ece5a656a6fcc70b4a9ddc44071f1611be0639b9f12c17d7142c414d7eb2682f5d861a995783b46420d587489 SHA512 72ea5862ab418fb6566dc2bdbb5772e98862dba6bb2f10250c3d19807212f07e4db43036c17fb14edb6d4cd89a1e2b422d4aa95e062c2a5b51377dc4f4fda524
+DIST thunderbird-115.2.3-ja.xpi 781688 BLAKE2B d38e2ad0f44efc00e09290fd7571f82b5be8c59b92a6271ef1de6834e99a381507d78b35d4c8b93a30ebeed90f9359f81b6898abadc74af25c2810a1a0cdf40e SHA512 8b105f8ad5eb470762949d5afa824d37d751fcde8b554952eb8ea823687b2354df30e753776a869776d18d4f1a44322b2374cf161794d758769ffd79762c40a4
+DIST thunderbird-115.2.3-ka.xpi 764449 BLAKE2B 82adc9f00862916d24effb1099e4c9b1dacaa471aba5cc224faf89122c25033a9f97b14e5fe864a06ed91e115e8df93637f9b5cb0e1881b8af39722f14e0120d SHA512 3bbe240f5a90f30bce907d8a010333907d8e3d51a15d02393a3b42261df0ea62aa1677fd129753df0e9b2ed5eae02cb25a19cdc0c7c9cd82e722fc844ce10f24
+DIST thunderbird-115.2.3-kab.xpi 698917 BLAKE2B 9a5ac723f6ec5ec051cb40e0aa4c93a2762875f5793485892eb8e9724134e570721d9569f288ab2d7bc6b3b854a54381d6d02464f5bfbb6eb5aff034a40bc934 SHA512 4cdd7648532be3744299467761e6228a0579f309f7e8cd2ac2905c27645a8a66252c20354fcaac6d934913ef82926ef87efca0ae5902f681de38dc5181a7c47f
+DIST thunderbird-115.2.3-kk.xpi 805071 BLAKE2B 70689138a9a596318fedda028c63935e78d8a8ea0de99936de6bfd787898f8fca481eb6f52e9845d161f94bd7a52114489c747b8e61978790e397fd2ffce0fad SHA512 9b940f154690096dc6e2153a5a9d02f389326932fd9f6699140eb33cc6fb47bdc45a74d1783c2042314f7a300a13fdb4329d251e2c0885adeed87246d1656c3b
+DIST thunderbird-115.2.3-ko.xpi 712208 BLAKE2B 057a1ce5abd0058bba22b22f8f6ec669ef82c1742df97aac10e56543dc82b36175cbeb663ecf1c9a6d8dc562f77c993b7ccc55de4268e5ccbc865fcc763a1b86 SHA512 dd1ca450f7894a92f118fe570d9924bbf052a26ef5b62952ee5f2eeadd0cdc747703a7e2c1a229b442b6711e7df37de70b9a04a9fcac49b40f04d38d6e37d452
+DIST thunderbird-115.2.3-lt.xpi 680094 BLAKE2B ef208ffc6eb1d42178814a9f1631ea0325494bb41b792328e49237b28fcb5acec77e665d22f0772ea4de457811c749dfb89ebefa0315342a90bd581b70acf4b3 SHA512 520a2c45a3ea77112417393532b29076903788b16cc02f231905ef110c8dce8c42229de26393eb9b4bc728ea0a6cde192b2134d43e312b87b47c9d7fda7ca6ab
+DIST thunderbird-115.2.3-lv.xpi 604647 BLAKE2B 1e7c845caf2b683f1273ed114f803ba87c81be3cdc65da753e36f0a769c06bcb1fe7266c9a70a0631a38291b6f221f11cc67e00413387b84c3d30d1cb37c3470 SHA512 4b51e8c96950077375ee9ab03c3d5234f778652732a7b7ce6049bf0990a7739b469c96e171944b85b5356d5adc29f0de8d3155b4beb1c19b681c54e8a696eecd
+DIST thunderbird-115.2.3-ms.xpi 565733 BLAKE2B 3cfde8acb8c76378b80bb5ae40c7f4e17ce3b3c7a9d02c1b408868cf032c9bba21dbe4e308f521ae783d82b4e71a3ff0d4e424fd5353ce4f2630c40f3cf1a7e0 SHA512 0012362ba459ccb2a441200784b01652520faee5a94d774ba4d54856c6e535c9ff0b842195600e17198fd4a132340e819225fc01a1114e006cc3048b22630f97
+DIST thunderbird-115.2.3-nb-NO.xpi 653866 BLAKE2B 3150b16e7936cb5c7089c996af8ca801541ef3fa27ef3ff01190f792e78198bf136925e776dc8bf37dd0248a41aec2733e8f60de531a50fa7987b2ac9c1f45d1 SHA512 5b65fb881ce29952421a0656f206a71170979a0e7eee741ba9982f569856f5bb66a8356ae45801480156cf5e097ee1b6e71064041f477d402299582333d7f52a
+DIST thunderbird-115.2.3-nl.xpi 699498 BLAKE2B 94356198147bf1635a41119799779ce9608c6c5226e7b8580e9503958526acd0253f14e33f94903d9f8c6bf6e0cf254a89984552fc7225e18eabd721dae51cd4 SHA512 1dbd932c07632119c2f7fc4aa82ab9c704966519d2385f4d24f70f1d001a6bf5465af56a09b67f033b2e31e6ce8f66a2e1c6fc96c0d99b45e7bc2ea49d393a00
+DIST thunderbird-115.2.3-nn-NO.xpi 673379 BLAKE2B ae98286d6dfad5b29f6eb150050ac5dfa3dd16065bdf62dddd5e3961f0087a9a08f7f4e9ef2b59356d701a68f95c00ad2db7c916b6e8edd662cbdb6dd6f35229 SHA512 67d87dde60b4adc0979e3bc328e847141ec9f948f961a49838cb98679416fbde7c5dd8c1fd63d70881d73f70ddcfaa00dbf8307910e9c2284f7ef4260a5bcfd8
+DIST thunderbird-115.2.3-pa-IN.xpi 655777 BLAKE2B 3082ae0ba442d9fb6a17c822479323a5aa7cc5f25f3b810cf7fd9de1d02bf034dd6fda3778433503806a810b74a091cb996e511fc746f3dcc7a43ea2dd823f38 SHA512 8689dc3502178ecbdc3fa3e1325343dea8247edd66ca927719884bfb0763e4f6eb5a4752ab9252974bf5cdb08981cbfaf6a44c133ae327dee78b744a635fc9ae
+DIST thunderbird-115.2.3-pl.xpi 716597 BLAKE2B 8c5bfefb9d484aa9a013c5e6faf97e5c792e12f3ba17f2eb27f07b663e624b27a854b0c8508abd7eadd8e1a9b4d577179d9a566980970c5a237640a3f04268b8 SHA512 fc6fa335c126a5a9498391901960ef19cc4bdc612d99f495bc3b8117d7ac749b15167c2e34bbec68fd37e5522abf0aa0fb970f0ea72a843e3d66b955225d0163
+DIST thunderbird-115.2.3-pt-BR.xpi 707263 BLAKE2B 0822da0fca6492953285dd19924e3124f543eb19790c848fa7226b34c6171c35f23f0a88db9a79da7d3e52b7295c20a3c03e54436470cc51a88aa56fdc7d34dc SHA512 e2bcbf554507bcc5913c2bf87e74c029a588e1625c39c270abed3031e6933c0bb6983ddce40eb69e015708485005e87244ac56d7b330f54f6af251762b9c0a60
+DIST thunderbird-115.2.3-pt-PT.xpi 687833 BLAKE2B 79b27a8932ed2ae29b49696ccd042ef9d70a9bbd4166939929f3061767d5ea3a8c65c772d881a3887359841e174501fda23b6723ccf3c40f4c72755a4fb4ac6b SHA512 1e54ae3665a18fc997041ec8972e49bf42dcbc473f00103cdb671f60afffd82f60f01397c4559de8b96238373c11556335a57e112a4eacc95bf288b03cfdeb8d
+DIST thunderbird-115.2.3-rm.xpi 704043 BLAKE2B 6d347c449b8845aa99f6c460b24d976b36338480b1233362d8a22d0b5937be3ead95cfeb609eb919b5a01247db19b73a715b0712ed30c9919db46c6ed552ebce SHA512 5991d7c5eb287585a7b5eace901fc8aeba46ce998c12f9ee5813f52f84fd29ded7a59505328ba2e752bddfe28d72c3f71cc4e565b06d961f0cf2344df36004dc
+DIST thunderbird-115.2.3-ro.xpi 651297 BLAKE2B d6c71a84db684bcca9e5b3d1740ec97e9c06f1395ed7f403bc836d2ef6aef48aa955a23dd04eaae62bc5b5d4a12701a860e78ff5b02a54248d574d8189fbd669 SHA512 c2748cba6542c6cc1c50b5d2a369be19c4c2ce82fff99421c8e713219bfca12d97dcf7f6aa25479230f1170f2c8f9ca2917dedc073772848c2cb5d4d3fa54755
+DIST thunderbird-115.2.3-ru.xpi 820866 BLAKE2B ea176c828f27d9ac2e448ab1b671de7b2e2bf57b65584c11153e42818750aac12d61f44f97604e5a1c63bc99b878c329247579bbd24b605d38089de168867867 SHA512 243b8ef81801dadb8d89fa9533a7afc7f010babddeb8bbd5e11721a985f9b4ba4db083210144c4906daa662cf51864d14c2357662e8f12cfa4a6a55c0cb97567
+DIST thunderbird-115.2.3-sk.xpi 736658 BLAKE2B 54c44b6e208d523ca8be4ae0f21eb61952e5e1dd2a5e59734c234aad736ddfc314e650a37318a6075ff6d84db8a4aada61a6ef8325921251ed601022188fff35 SHA512 883448318a5dceb86166224c447750ce592aa45dfda4ba4056159cc41c00dfb19f06eb3611f99d96a224aebab46c3dd2b01ae26a78350d78302b7cd81c3182da
+DIST thunderbird-115.2.3-sl.xpi 701218 BLAKE2B c911d4a3e599a1e6887b56ff7875c999796b02aa4d49d3006979a00963dee6b3fd4a8ed00fcf8eafcd8521faa0ac2d10b858c85958c68226da7e641242988279 SHA512 5f2bdc8245429cf815384212fa51bdbe3964408f99d913e6f6226def74eeaf88a252b5f909323f1906ed15970400c677539802b0f666e2036204c7f247c53e8e
+DIST thunderbird-115.2.3-sq.xpi 717450 BLAKE2B 3e25a28c6e7880b55713e8cf5008815e744afbbdc7af0595c290df1126253685fabd646e1628b7416400cf34f9e7582fe50d9a3f908d23a629c1d4caeec7cb0d SHA512 3db77c06451d5dc9fa2dd509086fcfad82a1c94edc7bb7ca32456f1b3c3d416ce31b2570cd8e66884cc10d0389621a3592ed4415fbaf46f7596334e48695220a
+DIST thunderbird-115.2.3-sr.xpi 740172 BLAKE2B 92793fba7b28f623de64e0ca5a65201c0736575b13b6c34889c37d6897bdc6ecfd765fdefb82705d9c4a6ec758bdee2e4bf828c7dcf8af09314ea93ba131e540 SHA512 194147593f5f9ae15a7d1b0592d772c4db9a01cdcb6ae01f834cb2143ac4ddec3edb39f170f291c45b1a2bed5cc9c6bb9b86f40ca910ba547473704e2c57bae9
+DIST thunderbird-115.2.3-sv-SE.xpi 702347 BLAKE2B 30de0adf340ee331aebc5dfd467a5f0f0c910bd7f23c4540849e3952998d5c34896480d76496e2a7ef9591722cc38301be005a4c73d2f6caf95bf544699ae046 SHA512 cbe50ff4bc393466ebd952d1bb9793135c9773dc7b2266d67249e02a5a4ecf8fe83c3a73710b9e26d4bcbc56d952dc7a7056f548e691ac33ba73850338c2e3b7
+DIST thunderbird-115.2.3-th.xpi 761857 BLAKE2B 02e3d7afc996079728960dafdb37adecd024af4c41b7e01184f9ad1413db7cec6de85623112786a95dd0eb8a17f6669c590193e1a5de43c60efc90561b6cecf6 SHA512 d3f20d1e97ebbd9338e4740647b05b8fae9d90a336c22cac8610e20982a86d6408f030a08997a5700f0512eafb738e097625f2a34599792d417ead6c70bc9f2b
+DIST thunderbird-115.2.3-tr.xpi 715003 BLAKE2B c681ea40a96cd47674dfc25ace14eadfa647c1b2d7978094e1b39b58e2ddb0675ac7d498db19aef0af1ab255e1e8aa4f4499172be774fca8bf8d6ece0b9b0573 SHA512 4c99fb1c07da37a8e465ba210f3bf67b2bae03c342c408660c764d7a6b689e331b36420561de6c57dee09366be5e46383b7772e0eb61aa1e55117886a041b9a2
+DIST thunderbird-115.2.3-uk.xpi 813757 BLAKE2B 78d22487103d6938272cc3edc62024191eebb2996414571fea98d4fadb21c85e991cfac38402b8d29d3b998531fef2951855ea3970b199064a759fe1e58e2169 SHA512 e5f376ef17e43031282abb4e15ee45e4fe937065a48799d71423c3ada35c19d52a1f0ca692ca30477d78715db3b379b5b40b4e164cd3f8c0e6faf0ef589fc9bd
+DIST thunderbird-115.2.3-uz.xpi 579987 BLAKE2B 2042c8cb84e7329a28583f19b09b96d4eba9a4cf7c42e9530ed04fb17122fc632e035f2c012153a9b14b83ee86f05d201e2f8ca5326636f2bba4e7026a331170 SHA512 90985a31889fbdddf03d80f40f626db5b62284d3ec5db90171f5b1126f00d6e794962d13ba8f397373911faca9f61aec5a5358589c843044a3c61bc0f7fd57f7
+DIST thunderbird-115.2.3-vi.xpi 742716 BLAKE2B 75eff177732f0c004c8e30a60aea190085f16639fa2819d9b9c093376a69e866420bbd092cc190e41d527a52c361901b10dbffa09a6298d4846a1f9e1acfb458 SHA512 8764e3ba77472b482cefa19840c457827c3b47cbb81f6f33e2735ef12853c074551ff6e793f3a8a1845189d3ecd7d22e2a8526bb45af32e6c6edaf5ba30fa2e5
+DIST thunderbird-115.2.3-zh-CN.xpi 740787 BLAKE2B b601731c6713f4b184ce0c496c13887ebc87e6ab4b3ab6a6aa39cda6e0b9f8017e9b55198f7811a67e0233a039e65eb2aeb3bf4ad5403ce824acab0d6f992409 SHA512 54b055e0714e58b50b749ccbd3c8feb36bb6d33547a87d4e9db7c510b3a223fb7123a706de5747d81b282c84b6b1f456a79461e8615f9d38c659af95ea7f7ea8
+DIST thunderbird-115.2.3-zh-TW.xpi 744414 BLAKE2B 7f000ef1c8eb2022285e0326eb0e4303cc5fe43bc8b67d7e1942c1d5e8f2016f33dd68ce034a2f40b107ce8d1d13e373202cca84f2638e2230cfa8e18bc994e0 SHA512 26db18ed305d8007aa02f0b4e408ba259c0eb7b2c2ceced9f6bf40d41576a84ed6edb532178b8e4e17d8e98c186281a8b9b2ab51c807212bd6d822785baf31f6
+DIST thunderbird-115.2.3.source.tar.xz 532512216 BLAKE2B 14e8c23e4ab2fdd381e5bdcf87ca9344945af075eefce54e41d74cebd339a1ee452a94b0efb2c16750756ec9bda9da8c66c2b1ab6ae0a747892936b82a005190 SHA512 983547b2be67ffbe7727efa50bd925f576ec19bcfcf940d5d36def19aebea27494b3af0a37756a441b544ebbca0cf546fcaf8737e76a859b4d860c8294bba1dc
diff --git a/mail-client/thunderbird/thunderbird-115.2.3.ebuild b/mail-client/thunderbird/thunderbird-115.2.3.ebuild
new file mode 100644
index 000000000000..e7a18ed43a3c
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-115.2.3.ebuild
@@ -0,0 +1,1313 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-115esr-patches-05.tar.xz"
+
+LLVM_MAX_SLOT=16
+
+PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+MOZ_ESR=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+ MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+ # Convert the ebuild version to the upstream Mozilla version
+ MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+ MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
+ MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ # ESR releases have slightly different version numbers
+ MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info \
+ llvm 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/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 +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+ debug? ( !system-av1 )
+ pgo? ( lto )
+ wifi? ( dbus )"
+
+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
+ 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] )
+ )
+ )
+ )
+ app-alternatives/awk
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.24.3
+ net-libs/nodejs
+ virtual/pkgconfig
+ !clang? ( >=virtual/rust-1.65 )
+ amd64? ( >=dev-lang/nasm-2.14 )
+ x86? ( >=dev-lang/nasm-2.14 )
+ pgo? (
+ X? (
+ sys-devel/gettext
+ x11-base/xorg-server[xvfb]
+ x11-apps/xhost
+ )
+ wayland? (
+ >=gui-libs/wlroots-0.15.1-r1[tinywl]
+ x11-misc/xkeyboard-config
+ )
+ )"
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+ >=app-accessibility/at-spi2-core-2.46.0:2
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/libffi:=
+ >=dev-libs/nss-3.90
+ >=dev-libs/nspr-4.35
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ sys-libs/zlib
+ virtual/freedesktop-icon-theme
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf
+ x11-libs/pango
+ x11-libs/pixman
+ dbus? (
+ dev-libs/dbus-glib
+ sys-apps/dbus
+ )
+ jack? ( virtual/jack )
+ pulseaudio? (
+ || (
+ media-libs/libpulse
+ >=media-sound/apulse-0.1.12-r4[sdk]
+ )
+ )
+ libproxy? ( net-libs/libproxy )
+ selinux? ( sec-policy/selinux-mozilla )
+ sndio? ( >=media-sound/sndio-1.8.0-r1 )
+ system-av1? (
+ >=media-libs/dav1d-1.0.0:=
+ >=media-libs/libaom-1.0.0:=
+ )
+ system-harfbuzz? (
+ >=media-gfx/graphite2-1.3.13
+ >=media-libs/harfbuzz-2.8.1:0=
+ )
+ system-icu? ( >=dev-libs/icu-73.1:= )
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
+ system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+ system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+ system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
+ system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+ wayland? (
+ >=media-libs/libepoxy-1.5.10-r1
+ x11-libs/gtk+:3[wayland]
+ x11-libs/libxkbcommon[wayland]
+ )
+ wifi? (
+ kernel_linux? (
+ dev-libs/dbus-glib
+ net-misc/networkmanager
+ sys-apps/dbus
+ )
+ )
+ X? (
+ virtual/opengl
+ x11-libs/cairo[X]
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libxkbcommon[X]
+ x11-libs/libXrandr
+ x11-libs/libXtst
+ x11-libs/libxcb:=
+ )"
+RDEPEND="${COMMON_DEPEND}
+ jack? ( virtual/jack )
+ openh264? ( media-libs/openh264:*[plugin] )"
+DEPEND="${COMMON_DEPEND}
+ X? (
+ x11-base/xorg-proto
+ x11-libs/libICE
+ x11-libs/libSM
+ )"
+
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+llvm_check_deps() {
+ if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
+ einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use clang && ! tc-ld-is-mold ; then
+ if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then
+ einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then
+ einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use pgo ; then
+ if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+ einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing! 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}"
+}
+
+# This is a straight copypaste from toolchain-funcs.eclass's 'tc-ld-is-lld', and is temporarily
+# placed here until toolchain-funcs.eclass gets an official support for mold linker.
+# Please see:
+# https://github.com/gentoo/gentoo/pull/28366 ||
+# https://github.com/gentoo/gentoo/pull/28355
+tc-ld-is-mold() {
+ local out
+
+ # Ensure ld output is in English.
+ local -x LC_ALL=C
+
+ # First check the linker directly.
+ out=$($(tc-getLD "$@") --version 2>&1)
+ if [[ ${out} == *"mold"* ]] ; then
+ return 0
+ fi
+
+ # Then see if they're selecting mold via compiler flags.
+ # Note: We're assuming they're using LDFLAGS to hold the
+ # options and not CFLAGS/CXXFLAGS.
+ local base="${T}/test-tc-linker"
+ cat <<-EOF > "${base}.c"
+ int main() { return 0; }
+ EOF
+ out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version "${base}.c" -o "${base}" 2>&1)
+ rm -f "${base}"*
+ if [[ ${out} == *"mold"* ]] ; then
+ return 0
+ fi
+
+ # No mold here!
+ return 1
+}
+
+virtwl() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+ [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset"
+ tinywl -h >/dev/null || die 'tinywl -h failed'
+
+ # TODO: don't run addpredict in utility function. WLR_RENDERER=pixman doesn't work
+ addpredict /dev/dri
+ local VIRTWL VIRTWL_PID
+ coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; }
+ local -x WAYLAND_DISPLAY
+ read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+ debug-print "${FUNCNAME}: $@"
+ "$@"
+ local r=$?
+
+ [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+ exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+ return $r
+}
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ if use pgo ; then
+ if ! has usersandbox $FEATURES ; then
+ die "You must enable usersandbox as X server can not run as root!"
+ fi
+ fi
+
+ # Ensure we have enough disk space to compile
+ if use pgo || use lto || use debug ; then
+ CHECKREQS_DISK_BUILD="13500M"
+ else
+ CHECKREQS_DISK_BUILD="6600M"
+ fi
+
+ check-reqs_pkg_pretend
+ fi
+}
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ if use pgo ; then
+ if ! has userpriv ${FEATURES} ; then
+ eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!"
+ fi
+ fi
+
+ # Ensure we have enough disk space to compile
+ if use pgo || use lto || use debug ; then
+ CHECKREQS_DISK_BUILD="13500M"
+ else
+ CHECKREQS_DISK_BUILD="6400M"
+ fi
+
+ check-reqs_pkg_setup
+
+ llvm_pkg_setup
+
+ if use clang && use lto && tc-ld-is-lld ; then
+ local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }')
+ [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}")
+ [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!"
+
+ local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }')
+ [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
+ [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!"
+
+ if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then
+ eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
+ eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:"
+ eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version"
+ eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version"
+ eerror " - Build ${CATEGORY}/${PN} without USE=lto"
+ eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole "
+ eerror " llvm/clang/lld/rust chain depending on your @world updates)"
+ die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
+ fi
+ fi
+
+ python-any-r1_pkg_setup
+
+ # Avoid PGO profiling problems due to enviroment leakage
+ # These should *always* be cleaned up anyway
+ unset \
+ DBUS_SESSION_BUS_ADDRESS \
+ DISPLAY \
+ ORBIT_SOCKETDIR \
+ SESSION_MANAGER \
+ XAUTHORITY \
+ XDG_CACHE_HOME \
+ XDG_SESSION_COOKIE
+
+ # Build system is using /proc/self/oom_score_adj, bug #604394
+ addpredict /proc/self/oom_score_adj
+
+ if use pgo ; then
+ # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure
+ # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage
+ # (PORTAGE_SCHEDULING_POLICY) update...
+ addpredict /proc
+
+ # May need a wider addpredict when using wayland+pgo.
+ addpredict /dev/dri
+
+ # Allow access to GPU during PGO run
+ local ati_cards mesa_cards nvidia_cards render_cards
+ shopt -s nullglob
+
+ ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+ if [[ -n "${ati_cards}" ]] ; then
+ addpredict "${ati_cards}"
+ fi
+
+ mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+ if [[ -n "${mesa_cards}" ]] ; then
+ addpredict "${mesa_cards}"
+ fi
+
+ nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
+ if [[ -n "${nvidia_cards}" ]] ; then
+ addpredict "${nvidia_cards}"
+ fi
+
+ render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
+ if [[ -n "${render_cards}" ]] ; then
+ addpredict "${render_cards}"
+ fi
+
+ shopt -u nullglob
+ fi
+
+ if ! mountpoint -q /dev/shm ; then
+ # If /dev/shm is not available, configure is known to fail with
+ # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
+ ewarn "/dev/shm is not mounted -- expect build failures!"
+ fi
+
+ # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+ MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+ fi
+
+ if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+ MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+ fi
+
+ # Mozilla API keys (see https://location.services.mozilla.com/api)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+ MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+ fi
+
+ # Ensure we use C locale when building, bug #746215
+ export LC_ALL=C
+ fi
+}
+
+src_unpack() {
+ local _lp_dir="${WORKDIR}/language_packs"
+ local _src_file
+
+ if [[ ! -d "${_lp_dir}" ]] ; then
+ mkdir "${_lp_dir}" || die
+ fi
+
+ for _src_file in ${A} ; do
+ if [[ ${_src_file} == *.xpi ]]; then
+ cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
+ else
+ unpack ${_src_file}
+ fi
+ done
+}
+
+src_prepare() {
+ if use lto; then
+ rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+ fi
+
+ if ! use ppc64; then
+ rm -v "${WORKDIR}"/firefox-patches/*ppc64*.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; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+
+ local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }')
+ [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}")
+ [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+ if tc-is-gcc; then
+ have_switched_compiler=yes
+ fi
+ AR=llvm-ar
+ CC=${CHOST}-clang-${version_clang}
+ CXX=${CHOST}-clang++-${version_clang}
+ NM=llvm-nm
+ RANLIB=llvm-ranlib
+ elif ! use clang && ! tc-is-gcc ; then
+ # Force gcc
+ have_switched_compiler=yes
+ einfo "Enforcing the use of gcc due to USE=-clang ..."
+ AR=gcc-ar
+ CC=${CHOST}-gcc
+ CXX=${CHOST}-g++
+ NM=gcc-nm
+ RANLIB=gcc-ranlib
+ fi
+
+ if [[ -n "${have_switched_compiler}" ]] ; then
+ # Because we switched active compiler we have to ensure
+ # that no unsupported flags are set
+ strip-unsupported-flags
+ fi
+
+ # Ensure we use correct toolchain,
+ # AS is used in a non-standard way by upstream, #bmo1654031
+ export HOST_CC="$(tc-getBUILD_CC)"
+ export HOST_CXX="$(tc-getBUILD_CXX)"
+ export AS="$(tc-getCC) -c"
+ 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
+ mozconfig_add_options_ac '' --enable-project=comm/mail
+
+ # Set Gentoo defaults
+ mozconfig_add_options_ac 'Gentoo default' \
+ --allow-addon-sideload \
+ --disable-cargo-incremental \
+ --disable-crashreporter \
+ --disable-gpsd \
+ --disable-install-strip \
+ --disable-parental-controls \
+ --disable-strip \
+ --disable-tests \
+ --disable-updater \
+ --disable-wmf \
+ --enable-js-shell \
+ --enable-legacy-profile-creation \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-release \
+ --enable-system-ffi \
+ --enable-system-pixman \
+ --enable-system-policies \
+ --host="${CBUILD:-${CHOST}}" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --prefix="${EPREFIX}/usr" \
+ --target="${CHOST}" \
+ --without-ccache \
+ --without-wasm-sandboxed-libraries \
+ --with-intl-api \
+ --with-libclang-path="$(llvm-config --libdir)" \
+ --with-system-nspr \
+ --with-system-nss \
+ --with-system-zlib \
+ --with-toolchain-prefix="${CHOST}-" \
+ --with-unsigned-addon-scopes=app,system \
+ --x-includes="${ESYSROOT}/usr/include" \
+ --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
+
+ # Set update channel
+ local update_channel=release
+ [[ -n ${MOZ_ESR} ]] && update_channel=esr
+ mozconfig_add_options_ac '' --update-channel=${update_channel}
+
+ if ! use x86 && [[ ${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.
+ # bug 833001, bug 903411#c8
+ if use ppc64 || use riscv; then
+ mozconfig_add_options_ac '' --disable-sandbox
+ else
+ mozconfig_add_options_ac '' --enable-sandbox
+ fi
+
+ # Enable JIT on riscv64 explicitly
+ # Can be removed once upstream enable it by default in the future.
+ use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' --enable-jit
+
+ if [[ -s "${S}/api-google.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+ else
+ einfo "Building without Google API key ..."
+ fi
+
+ if [[ -s "${S}/api-location.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-google-location-service-api-keyfile="${S}/api-location.key"
+ else
+ einfo "Building without Location API key ..."
+ fi
+
+ if [[ -s "${S}/api-mozilla.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+ else
+ einfo "Building without Mozilla API key ..."
+ fi
+
+ mozconfig_use_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 X && use wayland ; then
+ mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland
+ elif ! use X && use wayland ; then
+ mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only
+ else
+ mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3
+ fi
+
+ if use lto ; then
+ if use clang ; then
+ # Upstream only supports lld or mold when using clang.
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
+ fi
+
+ mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+ else
+ # ThinLTO is currently broken, see bmo#1644409.
+ # mold does not support gcc+lto combination.
+ mozconfig_add_options_ac '+lto' --enable-lto=full
+ mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
+ fi
+
+ if use pgo ; then
+ mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+ if use clang ; then
+ # Used in build/pgo/profileserver.py
+ export LLVM_PROFDATA="llvm-profdata"
+ fi
+ fi
+ else
+ # Avoid auto-magic on linker
+ if use clang ; then
+ # lld is upstream's default
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
+ fi
+
+ else
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "linker is set to bfd due to USE=-clang" --enable-linker=bfd
+ fi
+ fi
+ fi
+
+ # LTO flag was handled via configure
+ filter-lto
+
+ mozconfig_use_enable debug
+ if use debug ; then
+ mozconfig_add_options_ac '+debug' --disable-optimize
+ mozconfig_add_options_ac '+debug' --enable-real-time-tracing
+ else
+ mozconfig_add_options_ac 'Gentoo defaults' --disable-real-time-tracing
+
+ if is-flag '-g*' ; then
+ if use clang ; then
+ mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
+ else
+ mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
+ fi
+ else
+ mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
+ fi
+
+ if is-flag '-O0' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
+ elif is-flag '-O4' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
+ elif is-flag '-O3' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
+ elif is-flag '-O1' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
+ elif is-flag '-Os' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
+ else
+ mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
+ fi
+ fi
+
+ # Debug flag was handled via configure
+ filter-flags '-g*'
+
+ # Optimization flag was handled via configure
+ filter-flags '-O*'
+
+ # 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
+
+ if use elibc_musl && use arm64 ; then
+ mozconfig_add_options_ac 'elf-hack is broken when using musl/arm64' --disable-elf-hack
+ 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 tc-ld-is-mold && use lto; then
+ # increase ulimit with mold+lto, bugs #892641, #907485
+ if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+ ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources."
+ ewarn "Please see bugs #892641 & #907485."
+ else
+ ulimit -n 16384
+ fi
+ fi
+
+ if use pgo; then
+ # Reset and cleanup environment variables used by GNOME/XDG
+ gnome2_environment_reset
+
+ addpredict /root
+
+ if ! use X; then
+ virtx_cmd=virtwl
+ else
+ virtx_cmd=virtx
+ fi
+ fi
+
+ if ! use X; then
+ local -x GDK_BACKEND=wayland
+ else
+ local -x GDK_BACKEND=x11
+ fi
+
+ ${virtx_cmd} ./mach build --verbose || die
+}
+
+src_install() {
+ # xpcshell is getting called during install
+ pax-mark m \
+ "${BUILD_DIR}"/dist/bin/xpcshell \
+ "${BUILD_DIR}"/dist/bin/${PN} \
+ "${BUILD_DIR}"/dist/bin/plugin-container
+
+ DESTDIR="${D}" ./mach install || die
+
+ # Upstream cannot ship symlink but we can (bmo#658850)
+ rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+ dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+ # Don't install llvm-symbolizer from sys-devel/llvm package
+ if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+ rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+ fi
+
+ # Install policy (currently only used to disable application updates)
+ insinto "${MOZILLA_FIVE_HOME}/distribution"
+ newins "${FILESDIR}"/distribution.ini distribution.ini
+ newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+ # Install system-wide preferences
+ local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+ insinto "${PREFS_DIR}"
+ newins "${FILESDIR}"/gentoo-default-prefs.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
+}