summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2023-08-16 10:42:27 +0300
committerJoonas Niilola <juippis@gentoo.org>2023-08-16 10:42:57 +0300
commit7dee4d2f4eb6ec4e47570904eb0026ca079e32cc (patch)
tree452900c4edd1255e9fa37f87028e2ae4fa490c2c
parentdev-python/pydantic-core: Keyword 2.5.0 ppc64, #909772 (diff)
downloadgentoo-7dee4d2f4eb6ec4e47570904eb0026ca079e32cc.tar.gz
gentoo-7dee4d2f4eb6ec4e47570904eb0026ca079e32cc.tar.bz2
gentoo-7dee4d2f4eb6ec4e47570904eb0026ca079e32cc.zip
mail-client/thunderbird: add 115.1.1
Bug: https://bugs.gentoo.org/910229 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r--mail-client/thunderbird/Manifest66
-rw-r--r--mail-client/thunderbird/thunderbird-115.1.1.ebuild1319
2 files changed, 1385 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 79006f11998c..33ed29e84464 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -1,5 +1,6 @@
DIST firefox-102esr-patches-10tb.tar.xz 21740 BLAKE2B 46da143f4d2ef474542752b7648cd80faf52332dc1b315fad6474dc2d1cb60848852f3a1f3e96934b50247f4c9add94d4a5d0d279a848f7d3b959d743ad98482 SHA512 6a0e9661ce30786e5480d3a81efe7df67f550da4b2fa5e71d4cbfd191320c975bdc1a4a9971e7df366e79242c89e58cc951d5a7058452773b354edb20b7f60a0
DIST firefox-115esr-patches-04.tar.xz 14608 BLAKE2B 78143b2ed2f0c71bef84c26ebbb9f29912e6d8bb2f513cf95f5d97203efb556cb339bbb1f61666300786eb5b1f93294816481a0396bd8acc497c9f51b138376a SHA512 f6b07b9f94a79c766b864c4f73044dfd6aea5faf16e742202ca78f4f6e0399a71fc3dcf4d40d4dd67d3f13612c26a5e1a5f845e6892901c0ee6168aabf131f79
+DIST firefox-115esr-patches-05.tar.xz 15000 BLAKE2B e6e6918d182100616095119f1da7fd6ddc8fa3dae236d075292451f2b2ab1be7b16620eb17f01e5c10fc81324c81b25c596b9e99e7d7745a7ac0b22a27ae3e97 SHA512 ccda6860d885837c59e7ee4612bdd72dedcbc0dc5d6cf7d40dc6524591b67a2d165a251a13662bf1dd3995ffe392861a73bc08bc606a2320de5a5d8880086314
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
@@ -130,3 +131,68 @@ DIST thunderbird-115.1.0-vi.xpi 741663 BLAKE2B 2da0d0b7bf7d7a67d3af3eef0d4d63c47
DIST thunderbird-115.1.0-zh-CN.xpi 739794 BLAKE2B cb528aca23ba476c67225514fa81be4d93b10bee9c76b2df266e22d4599ae550b32b56befe25f2a4f7b8694b43f325a0f746b43fc002c02badd6682b341d0151 SHA512 86fb5511ef1a84c5604c7f8c846619359b2c41af4739cb7aedc10156d5602d5c6f576c5ef53e98c6859294b96b4f80b44c695eae80ecbd7c212b2c141a8e73db
DIST thunderbird-115.1.0-zh-TW.xpi 743421 BLAKE2B 93d4089b90168914f8baec939441d06d8ec6a4799f03baea3580e0c9b40ad0a3ea75e69aece4d35064919cbe9dccc9932cc267bbe6311f3a885e68f21284d30b SHA512 b07b78a826930b26e457148f0ca073a8ad92c9f4ca7f4ee735150d72b1042399b129c67ddbfe5700a944d56492cb5b6fdd9193cd6809c71ac774fe0a72db4421
DIST thunderbird-115.1.0.source.tar.xz 532785608 BLAKE2B b9fb972c6002f511b6e9bfd585fc235f1fa016597a74d96dff5e2d376a4a1534c3fd2bdf2a114940d44fda902c5d7d2f2d2a8f5de3ca9f1bd3be8bd6d16d0ed2 SHA512 da03935d9f7f9a531877b91e93815481aaa49afdd6d2a68308c59235202a2743afdcbad5604d5d889580936b08382a0773123477778049a47ac6202b2b84b80d
+DIST thunderbird-115.1.1-af.xpi 542155 BLAKE2B e5e5ed36fbce32d08a0a2adca1b7fb9c1d3628d3ca3cb9a3cde3aa044712cd4a409796025ca27579ac131f99116705023d765ebb1cf69e8a103c563d44b25ef9 SHA512 ebc23619f5da7deb072f1f8d3f12c9b20c9999f295462f9ee69d8735a82e1ba73359bc5a3a6e04d00942741683f5a399a0520f20b41f65be46e0b5906db152bf
+DIST thunderbird-115.1.1-ar.xpi 653730 BLAKE2B e431167a16c664416b673fdd9575562a3d0f290621f6cb78c4f06246b405e4fda5d35a67c5b49d2a1eb71e8b64e575c57efd07c08488a9cad6f5e9cd6bea49c7 SHA512 a96c994b7b1497b752d0b84d7e5dc3665d21d8e186eb62f43d6a1f1b3d6a117390b5cb9b8f04dfc9f68511f40d3be5d5fa1bafe803f5ca65acdb5eae5b1a4796
+DIST thunderbird-115.1.1-ast.xpi 561120 BLAKE2B 28daf4c9a22f8c64fdf96d492c41fbac097ee68042bb702f16d1bd78bda9f838b35452427e41ef1b5f7496ac473dbdeac3ea7c53e02e49ad5417cec8c642707e SHA512 decf97e53823b1b1a27530d35d153b61a9ec4013303a6092f2cf5d5394eae2bde5ce5b743b091581254a64da44fe644f68b8a3ffe18e85356ab56bbc45f24492
+DIST thunderbird-115.1.1-be.xpi 693605 BLAKE2B 705f660cac0fdf4db2d8620d4f9e9400c6644bcc873bfbb61348abd3a72ee30f48f3141623a4f207af58ecad656215205a22a9afd7342fd581430ae360fa812e SHA512 27ed52187a9defea4e64deb2988755f28c58bc6ced1470206d27d862a4ecabdf875e951fa58c9489408ca74a978f0472c58e0c29152752f893cd1257a8deec73
+DIST thunderbird-115.1.1-bg.xpi 680216 BLAKE2B 771d1bd25b2e04e071a68a07703e7360e71cc94171094e8d182aa58780462b5844bfffd01208ac9c4cf8deeaeeba18644a3f064fca6acb7cd4f1be5acbe17042 SHA512 144eda8456b8a0f11dd000db8bd2d418a52b8c73e31808812fbb79d2b4f62cb6842bea1f13c8c2f67b6e8d076ef73a0d62dc92860a742f94616f011ab63a3bee
+DIST thunderbird-115.1.1-br.xpi 625656 BLAKE2B c5169ad686bc5133bde7971684e3352c6d6fb106497c5b1d1f2dac498848dcc73db6f842d701d953322c883377a034880310b3e04161256078c1c19b5bb0f63c SHA512 97323f72632d9df20c23a70efdd95f8fea1780c3b9f56fe2612fcf1e8274f507362cb555ca262d66c8320975dad74998f5395711f18c9ea6523dbd01f4edaeed
+DIST thunderbird-115.1.1-ca.xpi 655113 BLAKE2B 0766050a4452e54b676a7bea9e733437ae79cbb6505913aa3f2050308d05d2457270f842e05008be8103bddc35c170260d22ed270b95bb2b3b1ad74fcaff5e92 SHA512 96d8beb90b0973c1f3d9bc3982ed86b5ec13ff416624e4a2537059b836cd867b8e2cea2e61cbc06bc6ff30e9d0f4ef1d085465c1222599dfdeaa3258202e6e28
+DIST thunderbird-115.1.1-cak.xpi 657068 BLAKE2B 650a12beccceeee8896e59320d05ccf1cfd6e76364c938c73e0ab1c54c6866fd86c5ebdbc79147530103025ec71a7ddee990c49e217006c94bf16124d14c6cc7 SHA512 0fd3616a81b52b9dcc1fee84075706aa3dae3471184c00d2a97e174cb4e441da67e3eb4ebfe1e86031acc80d4f49b754eb7ac20ca306ebef7522d3f3e3706827
+DIST thunderbird-115.1.1-cs.xpi 732970 BLAKE2B cbb1fa64856a4d4997e051d00be92bbb10d738d947dd7df0a68c58fbebcb94c919fe8596e63e6bb2d9554f9837f4d7f9ad0014744bd3b8f83b104447efbf0cd4 SHA512 97333fea0cc0b35c72261ae222ee8db0951928632dadde60e0420b052e25daaab576e2c661529daf0af3ef05c88cd1394c9fea6c4403d0a6be67a31416692697
+DIST thunderbird-115.1.1-cy.xpi 702394 BLAKE2B 3bf623e28931d230cee73e9796dc4384ccd18938c34879088a80f577f7826c4e958a72b66e0acaf75190ebb000c20f524a00ba93f2c21103990fca5958102f71 SHA512 11e69b23779d7dd9ae1f30dcee2080d680ad53e48c8dc941f774d2ff88900ee0f3f12ee3f9ff6ff5fa245fabeeee0560c10657e7207419444355d360dac921b0
+DIST thunderbird-115.1.1-da.xpi 689918 BLAKE2B 979a467c9191e7b227610f36054f15dc183a2a87ddaaf759704a2787ce107206130df57d1c005125379e1492f6508afef62c3c28c9cf45a6fd5474a5f2e91890 SHA512 2e1990326117564d0c9722e02ed221f9918479a40853c3baf45ad5fbc339f9501e6d7d5beb43f9466b6a2457ac4f8470f42a9f30bc9294bb485a88573341fe74
+DIST thunderbird-115.1.1-de.xpi 719974 BLAKE2B 8b874ef7c97433e469b8b7ee1d00e9307906d4f1e45c53ae1aad926d4dd0d40db2dfe45093e0cf66580ef0ce099e3ba43cebfb4768b467d18e2fea55ba05c98b SHA512 0885d19f8c0ed9b4dac8aca7c55d6553773407d4e3174e4d8c577e9084520130dd226e9187a8020971c499ad353b3e69d42d5cb89e5aed650c3457c80ea3b9f2
+DIST thunderbird-115.1.1-dsb.xpi 737056 BLAKE2B 4fbceec8687c974c84cdb397345d4050564f3dc877653dfb33594de846822d7b0ee4f62ef4bb21ffedb63199111ecfc356abbd9c4d1b94e6ae22334d4bbe286b SHA512 531510d51480240eb738f7cf3df745b3cb32c2c63dd2da7ad5b285968e43d66d98d2354f1ddafb8aa5f3ced990eb53b13ef3ef333212a4c26b022b50d45fc665
+DIST thunderbird-115.1.1-el.xpi 836151 BLAKE2B dd4c055dee7b2bf065e4fcd54466781d597299e716413db38bb1834926549b2d7d643d30833f5e3c5ec04767fa95a73ed81483c84c3fce5c2359d240e94ef508 SHA512 a117ee391c0e73e0ba7e2918848a51efb17ae2a0a93e9db1d6d3041c7b72aa4be7f9435f31164c7215c7048f2a42892eee2591790fd10668657d7f86269780f5
+DIST thunderbird-115.1.1-en-CA.xpi 647626 BLAKE2B 5353aa7067c94279964bc71571929b7ae13b214fee8b73d7f8f53ee0103655226ecfa24868daf6cf75d59f1c06ab6e03d84f4f56842a494a959d24e057aeee63 SHA512 fbad6b753c7afd4d0cc875d5017f9c9729fcae678c89f1991d4834d1e37245e8a19021084bf5c01930551ca67077be44c38b726d372d4c133c1701463d806f38
+DIST thunderbird-115.1.1-en-GB.xpi 660651 BLAKE2B 33d187c5d883ec396f373dd6d8c45e24bdda2d8d3e3c65f7931346559fe859b1e3609fa9341638071caefa9b8fdd19ef86aa89d8ba08bac051c4806c91cd9faa SHA512 2b171da449b219d18a3e858716f8427c74038c03e31988415a26c8ebb7b9d43712dd835007924a8e4e5df50c884e04359856a1d3c5e3e48a43f54b6f38c993db
+DIST thunderbird-115.1.1-es-AR.xpi 712182 BLAKE2B b20af835a9a6fd6ca6cce9c030ec1c9daffcd3a462dcd47f05874036cfecd2a1d81093ffc6903f52bcbd4ffe53ab72f7c3eaca8f4c2e3b3021741167066cc3b1 SHA512 4209a6d6ced96f88595447532478d96acc83e0de43c93a933d78e0f84c20232388b5e98b88aef0d9e40ebb3a3512ab89e67d79e82c09295ee3ee18c3cfc4f7f9
+DIST thunderbird-115.1.1-es-ES.xpi 674787 BLAKE2B 756760f20121223256a01b4ee3b6bf24addaf489dfcf34a775002a03a2050a58e9113ecede6ffdc71b3e6267f43fb275dc248481a9eb39d1ec303914722230ab SHA512 5a6499b9f45e6d5fcb1d627f4fa7a0eee942e14c9e64d21e44b98bfd78765c29aed609860682eceea2857002ee7f594d4767d0ad97ac906d3c071540a2dd16ea
+DIST thunderbird-115.1.1-es-MX.xpi 709236 BLAKE2B e55a8b846a5b28ebede3e7d8155addfc499c9ff94262503515f0ba47ff022f01dfb193fef10f8e05a4661a36eed166b8a9d763fec474a2d45ec064d76f230ddb SHA512 a515397a06a29e37b7a1c6e7ad79a6be8894db03322ac900c4793b727468e80acd71e651db6a1792aa26d5cb4cdea8e78265c614ea093a9e87b09ae5f57d5116
+DIST thunderbird-115.1.1-et.xpi 670928 BLAKE2B 27a4963fa53c673a84ed6d5dfca762ee8fa7e0a9e176386081f36f533f3c9ab1ee42ea658dfd2655273bac3cd543573ee04b5ee304b5b2156092bd6abb3ffbe8 SHA512 16d264e4a3ddc4fbf861302c374e01df04d47a1a9dd5276be4a29fd3401e7d7ca911b2ef85b4ee82b34be2aef568d1d0e6f999c4fb24ef26d6fe5babd3008d25
+DIST thunderbird-115.1.1-eu.xpi 691244 BLAKE2B dcd5683afaae3f72ac888f7fb864f4da009a66587c13d65db7677f8f544743ee708609759cd9e39b59fb6a213ffd5a6e5f784757167fa4cdb823630ae9929847 SHA512 95cb05ef01f82bc45a645cb1da82a04c6d46db3272ec7ba5b42aec8edf4b9c146e4cceb2ad342c476ac011c47e66f191cb886459380a94e30fe0ec3e0fc5d5cb
+DIST thunderbird-115.1.1-fi.xpi 688941 BLAKE2B 42867525146d586a901a6eff25dcfc120c74e518ffca77d4da5b820474d52f6e50764a86183cb3b59bd55973019c577bed1bb140d2565fe1dac7d9cba634b88a SHA512 df598248e7aaa875946830baf11978f2694f1c1e5082819428b6bde3e5926c262f1af4a46e7e58dd7a1f5c644992384fdd8b95923fbb099d0fcce828dacf5377
+DIST thunderbird-115.1.1-fr.xpi 724402 BLAKE2B db05c9469db9554e2060677d4ac1bdbade0d3c3591498ac0f65a3e1f8a57248dc90d030b0cde2a2cf602213c9494474ffbf002b94c7db4e4fa9e8c82d554804a SHA512 47c00e91350faafedd61a01ac31ccc8f2a4f739d64da4e7de67e184a3bc07a0871fab5a83e5800f57f5223e77dc5dc301ebf433039cec72f86bc5a4fdd0f7832
+DIST thunderbird-115.1.1-fy-NL.xpi 706998 BLAKE2B 3408e165ba73a546a888fdc78988a254e3ca7f6e8830c7406822704b3a2f35d0e4597dfac5246801749065fd52288e86955dd3894c55a28ae266f6b9abd379a7 SHA512 fabf8e98dd3777a60a6c90db0816099c1b8e6f1b696910a09a601a34e7bdaf5ee64ceebd333563768429639318c546c397b3644f325081f3555f0351a15e849a
+DIST thunderbird-115.1.1-ga-IE.xpi 600873 BLAKE2B 93f80b1280d8ee23b5adcea1748d05016e173d55e1b227881edeb90431d24e453f7f422d8e0fedfb5256e9e87466f097590622e6e134228572362ecef9f6ddb9 SHA512 ab9279a1372c208e1ddba742a054b4145c35ce0f7ac926ee276f7535266a8d1b61fb8a989ca5f15b2e28bfd71cc0d6452fd2ec3eaa2e7bd3202dfdd3c61b0178
+DIST thunderbird-115.1.1-gd.xpi 702047 BLAKE2B f66de13ad51df8e0985676f29a9a8d69a0564dd52b9cb1a5c66cdc075ab154e2320e807dcff7784544e44837907f56708cd80a6b7327bf624606e2e37c46223a SHA512 5f07273fdfb5ef525384c596cb31a685f38e83348a832f5710af7972526882b7630dd5ad23bdd7aa9f1ca6f35ed86649ff8aafd3678f75195fcbb8a64fb39452
+DIST thunderbird-115.1.1-gl.xpi 704527 BLAKE2B a5d62c5a4e1fb838a5d02e45dafc810719a789ced0cbc13a3051caf1c8645e32dfd6ded60c7fa3b87bf3aed2596ec98e5ab7d82728828f7ec0ad8b2492be10ae SHA512 ebad94005dbb88f4ec0f1281357de4d5baffd0cbd09a0852b7d070fcee107b8a60676204c90c707e05208293e62f6c48a1e744bcbc8420e5fac6dfe6b1494cad
+DIST thunderbird-115.1.1-he.xpi 666527 BLAKE2B bf73c7b876ba04d7da4c5e50f05a7d100c83a22c0d78996828c1b0eab3b0718beceaf0017fe968608ee2e1f6781d6ceb4ea21940b6728f55f0bf8db5d65d6283 SHA512 4784905acd3ab9f718ffe32cbcb51821c7eb72988f5e0021ef0099a41610830eda6950220b8256ef1a6c6c5b0cddbb9658ac819037899a09507e86f081046711
+DIST thunderbird-115.1.1-hr.xpi 673868 BLAKE2B 3db701499c9a758455d4e42a774daace971110731496081ae6350c38f2f83a29f5c165a15bb367f7e3f4ab108b2ba2905a474fa6728a5a68905b67f1276aecf2 SHA512 405f8d7a63a368452d243ab23dd3cef787f64c535692baa9e695848f55b388f4ac6c01eab77f6f2c5e0fd774eaa40b212dcee57235a48e4d3d9fb21930cb3ecf
+DIST thunderbird-115.1.1-hsb.xpi 733590 BLAKE2B bf927bcd551548040135434075113d8cb0900909fa3ea10eb5a07e78fc910facceadeafdd542acabbebe13a12eb63ae7b7b9e898195ecd78427f437f148a6937 SHA512 bf94d4306f5e32a7a75722a59db8d5ba36f1635fdb8604c22b675935751731434754de912298ea03cb99f4ff8433fa8177d288af7f077293577ab63f52e1a71d
+DIST thunderbird-115.1.1-hu.xpi 736555 BLAKE2B 8cb4ff9f5e8d8111f7677fa118cc818e29d91083f8529251c9d8e20302320575f7041769c7df9f9f44be18aa84309f4d3315f714a8ac723f352abf548582d1ad SHA512 8e9b0344c5a0e69b88245f663e1e51852bbce450501814af85fe1cdb4db0771134ff349359d9d2cb1a5a7264a96955dd5d53707b574e1a1da755e49bf6c98708
+DIST thunderbird-115.1.1-id.xpi 641651 BLAKE2B 078edb090bff934efc1c08858d5f86f2974b8552b5bc6a1ab3cd21ce15c478cd2373426db009349b5063af55b5358db6c84ed0e8f402f6c01b7b368fbac5195b SHA512 4e282e36939a21636000e76115be5f4f79c61ec5cf3237e2f1a0492b0c51927abb71f964ecf1fead7cde6814f84ab9b49d517d50c2459426a02c80fadcc29cd4
+DIST thunderbird-115.1.1-is.xpi 701299 BLAKE2B 6d075881b1861edfcba73ceb55db8b5e6d68f10153d55b56bea818b64552449ad2a45a4a681b2c0bd659b027065aa8ada5e10570de0dc57c0da8eaa96450de87 SHA512 8660952d6951e2c7ccce2de5335722bdd89cc7add65151d70773c8576eb600a3e6a9ad7167d730358ca61d017441b0d7b601f2f83085c0f5cfb1d793e86956a7
+DIST thunderbird-115.1.1-it.xpi 642644 BLAKE2B 613b0b2da67cdf31a7607a42a84317ade04ad3235e8edf35dcc406d468db9e680b9ed3ece61824ef3fa92bbd6537cd99426c9ab1a94b5611b80ed1dc4a16c55a SHA512 b491b1ce380caf78a43cd31bb09867a556a42ec9eed7670ef21768ed728929f4e690f99b3bfae1edafa6d0f277fc3f838fc52c260aff690b2847cadde0db8841
+DIST thunderbird-115.1.1-ja.xpi 780164 BLAKE2B be5637b0210557397ef238d500aa904c9aec33ab2f49b96f58c874954ca74105b9a28b4e37477f132663251aa4a7d403f54ae45dba577c027c11363731f3f666 SHA512 c0b09f6fa3db312595e18e2dd086f1291150705e6c5f61ddf300681055f9b9050ebec877a627f4eb7170fa9ae8be434186ad4e26bc7a9b2a21a2bf4fac6144dd
+DIST thunderbird-115.1.1-ka.xpi 762782 BLAKE2B cf3193e98fc3095cf0a54d24ccfaeae074f668466d70a2e7b6d0578d8295621d1c84a8286564aa316cb3d30b7206153f09044991a64f4fa9cc7f36883b4f223c SHA512 420ea8d0a0a0af8c834bb073ce4521aa85863b64a85469dc875aa0c5bd4ed5804690f655d35a1bc9a939a61a486aa486b3e89185a906d849397cf1a612de4118
+DIST thunderbird-115.1.1-kab.xpi 698063 BLAKE2B da56db72538fcce98836afc3ff1f440df93d502fdeffbf7595fdfa3d75043e571751397d31b65668219324a5e2cdad4ad92c71b9feeff8d7b80e71d021b14ecf SHA512 62027733106f067599a7830bf78006502e44546c0fa30160d034fca5d0b22e2071d7b2523591f6e7d8a6284c2f4fe0f8ff2663e129b5714c3d0918d6ec866f0d
+DIST thunderbird-115.1.1-kk.xpi 803990 BLAKE2B fb0869805d2efbab5bdc238361e428d6f52aa15710ba863bb2e2a1f757724e9ce0aa8dd48f8ada337dfcd9873ad947909c3e378efb69b07e6805f7df48a04f9e SHA512 3da0fa07fd02078440c51c8a3567080750329500c21df4556682d0c0720a896e723e2ebd02a746730445071007452eb8a82a71b2f2b3818fc4f97443b2df2787
+DIST thunderbird-115.1.1-ko.xpi 711238 BLAKE2B 608e192e47a72ea449efb2f931f346174030507ccb8a368534c6a684fb6db5afdf1b37fc4f93805bdfa87b4b1ea2c5d887d01506477e38743cb6ad95d31d3ab1 SHA512 850b988d862296d76213f9c0f4de79798d9f8393e9139583882a702c8b3530849364225e610f249b2153de5e82975757b7b0e19129072fb20c9093308de042c3
+DIST thunderbird-115.1.1-lt.xpi 679138 BLAKE2B 544855a3a49dca570e347e88d4b5ce29c812f014bbbd135ac390321b5a247b63ab4dad8db58f59c2200e2d404e6088fc0ee8397100e0eb987a6bfdee6fae0b13 SHA512 2b76233a9646c3485f36646be164f0b28151da849697e3a8a30085f6bb77390397bee32f4474b5e302b15fb2a45a2e6df9e32fde30794974d09f811697458bca
+DIST thunderbird-115.1.1-lv.xpi 604647 BLAKE2B b95c310d71228ad0de46fd806bb8193407063e11aba5ec0240a03ba56ef5fa45449e65b2ebf3769bbd8b96b7760d1d4d3acb2d17ceb40d4f71ffe018906cb3f5 SHA512 782056596fe77c12c07b7eeee803d900b66d5dff49fe9d835c609616ad805cffbb0d94d61cfea20d871e4706602537aa34439f8ef20f90cf26a9acc804693442
+DIST thunderbird-115.1.1-ms.xpi 564865 BLAKE2B 5aee9a3176e3556453a7402593b9d39ca497c111e63bed671d7b8df280f3d45eebfa0871b7338393c83b402eddcf2d487ff4fac6aa1e29af3156315530457f80 SHA512 b22c314ddc440af16d12d6f9ef596ab0bef189b87cfb5694b90e6bc50aff9d9378c139dea2cd9b0f0bd0937b15a775e66eef105d7a4b38e81274d9f3b2b8a303
+DIST thunderbird-115.1.1-nb-NO.xpi 653024 BLAKE2B b8c6d3ecfb7140b6443a57451539d642aa4fe7aa3ff547d153d9d6565d5d11839cdbc241040a4a463835b0bc04121a68776a35c01f7b1e0754d6ec73cfaf017d SHA512 74a5501853aaefc83ee9119cf55b0db3878f2d1da06fdf867ef9136f949c36c9c2a9bb28a8564d6b311264ff53bdaaa406c403b966097d14ce1212a4e6387e45
+DIST thunderbird-115.1.1-nl.xpi 698603 BLAKE2B e722c6427f5113ac4b2e812b0f33bc98b396a587c5726bd29fa6ae849323892b5df2d467f1e3553e89e1c649fb82a0ef016de024e4559bd52a97a61c7a175c49 SHA512 19cbe31b4c20c7d647cf8d3ef6b8779589e76bc6930e07acba18b1a1ca1123d88a5ae0a67654ff0e6175ad264921156d952c209eafbfbebed7a16f80d1e0b1f4
+DIST thunderbird-115.1.1-nn-NO.xpi 671660 BLAKE2B 7dab6095d8c641c17764237b0cc8b2dcd88c6d4f481d9b66d01d9e15c9506b0b655fa9efd3a23ca1b2cb1b65dd12aaf7034d5be19a61ca3000807316dac73fb2 SHA512 3eada26391bf9709d4786daeb3d72fa3380438ed996e20a6e111b59c5ec871a1266d0195a2632ff01ad82fb1d6e50292a77b150ae9f1d94627946fa5c0ba7d1d
+DIST thunderbird-115.1.1-pa-IN.xpi 654952 BLAKE2B 23ea1139a1d3c3374a52444045f612ef65d03794469bb3296187ca797b07243304e48d644c0434d09cfd881301e224db6dd92ea6e637da67009c12a3303eae2e SHA512 64c0d03ef96d017fdebc325631fc511c84ea22261b6b5d801a839e27fce6674589fb14b04bde4bd6159d72bfae33fe71f47360624c758e4b4c4271c347ef7ade
+DIST thunderbird-115.1.1-pl.xpi 715586 BLAKE2B 6d5c3a73f99f23705cbd913ab9d30aeee3d27799cf16028d2e08153856586292259970a90ee18fcc1baa43d4f071c87a5f758ad474a5fa11be9d01cc4c71ca54 SHA512 2ea39878a04bcd6c6f11a5a6501cb5307311713f049e276ec80c44f417232399c5f675d72707c2bf3687976a7f5f08c0b26ab3df6edaed2431d93f33488905db
+DIST thunderbird-115.1.1-pt-BR.xpi 706363 BLAKE2B 196181eae10e3865e2ae82d74eab02359c64133733b670e9ff7bbe664250e7609136e1d9fdf0a0fe93f6885b675dc58b91a38916a9a52fdeb0c64d0a9b3ab664 SHA512 e1b338fef9ba3ed26cb274896a492068cfda4ed8bcafa62d5c3678967acadeaca98b8fc55f8d2e48663be45532daa6ce805223b998bdcb3d7a8cb59d5725fda3
+DIST thunderbird-115.1.1-pt-PT.xpi 686942 BLAKE2B 35e446353ddf5db97bcb14e56a41fc20c6df7606cf8650851eed174e7482e61c496d320d0a5228217a4d59576b0b072ee0fd14b4bf771fd7777a7763d394a1f9 SHA512 e098d83d691c6ed334d7c16593a7d54539658e570f41ed35252320c00489024152ce14eff5ae285c67e082d780499258d9b0bc8e2e33d848511bfd513b585ddc
+DIST thunderbird-115.1.1-rm.xpi 703122 BLAKE2B c688254eb3c9c1c3b32b3650f4e7f378e4e1506c704b53010edc9551e365e1df63809e931670de04722ae599299722c35b81263d02762aae83e79e19cad9c1c5 SHA512 2c02f9295e746666980d267f71d5b2196debf006f3337d49181c4626cfb22ecbe5349af89985838e5e74d49a590d19091ea18b785ad4e48d4cbb91926754a443
+DIST thunderbird-115.1.1-ro.xpi 650363 BLAKE2B 190e8889ada56abf7cbcbec7f15f525bee8247fa90a317215db320774b509bef772460815cd5de4f256c769fc39c9e86a1b70316f933cf8f82d988d72543f381 SHA512 5555f85a08ffd80eb94cf10d5dc76dbb364cca840ff46c031f6c5b359642337f4304a56e377f2a493bf47f07b70a683d1f6e25a431d97c960b95bde37cc1741d
+DIST thunderbird-115.1.1-ru.xpi 820492 BLAKE2B 37bcf31f9f89f7af16eb860264c11b4f4ed0c76443425a45e1bd99ec7a5bc1271845efb42edf6ea31d5951ccd572a0bb952979d899e86af6b8f5f828f8191e6d SHA512 4d75c4f2b12f3eea86490a79f39809022f7c74ae568584851119ba9f34d9b49f9a4ea3e11a7ebc8ae93632c4c8febc256a4167e25e83357983d75a7a83e86986
+DIST thunderbird-115.1.1-sk.xpi 735987 BLAKE2B 968c8f509dd6f10d82157a0819b52c828ebb3ddbee44155cc5824e40fd919d90e479796d985537783aabd2c977ea4be095651cec293c93be79b6c6e5df173e41 SHA512 d2fbf9e4f666a71cbf7d1d0604be6e163cc00c050dfac90467138662ab878fe71916cefdaf33320a68449be84a9984e02dd932613116de8f91b3378c1dc961ab
+DIST thunderbird-115.1.1-sl.xpi 700233 BLAKE2B 298df6a46f3c682a01e5e401aba19ceb4b04e3c49850a5d400f476ca367cdd5a6c9456907a2a623f75c8581c2f5d371c5ea8b33f7c720091925552d11c694ebe SHA512 f162aa14451697b5c4eeda129e6f23b22070382a7cd4f663e24820b08e45b5d2dc6dcee20ae70db58bbf0c87bb01609058e8c6845645457a93f7bbe89fc25001
+DIST thunderbird-115.1.1-sq.xpi 716532 BLAKE2B 8df31724229ace7d911a57cb6951231d2883db6f433122468b84129acb13f6f4a55324bb2388f673f905b64e48932cc7f44a72b20a9da10eb20a4a6a089c5d29 SHA512 f75a7fc7af21da0677fd0225d14ffea8200d4b2c398d0a956a01263fc265245e88857b585c65e14732c872822d12907715ba3e1395430e947756c162cf85a3eb
+DIST thunderbird-115.1.1-sr.xpi 739109 BLAKE2B dac94c5df71c5d10c655b91ebaf5c9dd75608ebe84266b66a53c24cdd26823791a2e4cbf5f16f30064fcea5c9af903c3a47a76e67c08c72014fa9e16cb248a50 SHA512 ec7a91c81027124c74680770b8043b5e719a957bf7d3435f79373236884707aa2d682bbe9b607500a4f927c837faf70b928f8a67c521666e5545901858e31000
+DIST thunderbird-115.1.1-sv-SE.xpi 702028 BLAKE2B fb701de84fccd70ffccdcd83e27174aeddcecf8929694584e201fa8d1f98aade4c2e4154d71abe860518f28f55c1428a3b5995c6f91de60c92c4987493db848d SHA512 9c771583c0d53d1df261836cff1655294c8d9b34fec32892b154dff0551fdd8caf82bb5066cc3d8ae183333563e315aab3099271b5cbccf7753d4dc06ef75039
+DIST thunderbird-115.1.1-th.xpi 760811 BLAKE2B fd3acde5f26e362aa68e1ebc9ec42aa799b8d1eb650e22a8fec21d81c8d5cfc12ce6f6fc0341f70a4117dbc03026985a5d77df2e583fc897c518a0797a678a90 SHA512 74567f8d24b6d6bf316094179b83d20ce2eb8ca1d7c07e2d1a1f3f2124171d5614b8c3b5e51bee4626c9123e58af67c2e653b9ef844fc57b33141a5daf2a1538
+DIST thunderbird-115.1.1-tr.xpi 714068 BLAKE2B 5f98d1222917e54ab6c7db0c6cd5f69cb56678c424859737a250bfd206fb49901123f5d02aa05fdeebc65a388d4d0c035c1120079a23543440057e1dd85bc382 SHA512 b7c8c4e3d37e4bbf60f1c43abe39b4ac6a9a14a127f6e21be2e8b0072828112c703a796d858e8b291816b52300eb717134793cc73b9f66f747b6edf98f343275
+DIST thunderbird-115.1.1-uk.xpi 812677 BLAKE2B b0f540c4727df64f81555e44b9bb2e973d749183e2ab39fbdbd35beb8ab5d2df2f6d5555f6d14f7cf7f57498083a50b584d2a13605b2d1bb299402ccee5162c1 SHA512 2c3a3f5c332076fe28ababe7914889b4dcafb405aefc4a554186b297c09a3b2e3db0eeefa05a1c7c71e2f1d49e02564e94c0e3327b8e19694cd7f988737e9380
+DIST thunderbird-115.1.1-uz.xpi 579108 BLAKE2B 495dd637416bc2eb6c2d12f04993ce27b6126ca696556f69241baaf7f5a0dd58bf665b3bc397bbd44a2db3eeb3fcc82dc75220aa0cc836ed6ca1f0325d729570 SHA512 c2f7ec6feac0e1cd7a78920b558b43da421ae79e763d5661fee46b191190819f8f643c12374e0b7a94bf07c55b3d5191d569d94db296b221802d57b5054adbc9
+DIST thunderbird-115.1.1-vi.xpi 741667 BLAKE2B b38247507e8ca7a4442476733d236b092dd7aeb1b8ac6dcb34d70c2bc81cd385e453a5c025def106fd9990b1ff16f1ad1575acd4a694770c70e3cc75ef442c2e SHA512 f7d7d46b10bfe59ab8d00039802ac5679caf978d37a3636127ee36d3b687839eb090b69b31d83aa23fb1573601a07da97e05dc59d79c4be769db380da892a3b2
+DIST thunderbird-115.1.1-zh-CN.xpi 739794 BLAKE2B fe3f8a2390832b14f3d3c1cbfbfbb493f64087686213361bcad4a67442948ef052371f6b76b52a75df4bcb0464c355a204a58b7b017805c6a63033905953c049 SHA512 b44c4c7027c671543a7e7340c7a96bf9cc53c1940bcf2a3bbc062dbd5dba692f6b2d53e6b3e96617695285767d3814dac15951a8caac017737c13c2cffe598bd
+DIST thunderbird-115.1.1-zh-TW.xpi 743423 BLAKE2B 29c0a20980c468060fd489bd1229fe247965d4a0135a02ac6cb2216746ba42b33f9e1ede94c77651b8c2b662c052ab83763fef34c45a8515636abaca91b27f7d SHA512 66acdcacbc37e3306b2e3344b89a163c8b502b2e489a90126c5c50eeecebb3b1340764d7afeb76797ac45de7cfc59cf282f2f42a352b9f07332b7defe7c9adcd
+DIST thunderbird-115.1.1.source.tar.xz 532757140 BLAKE2B e93b36f8e57fa75ddbb8c58d09aff09e5116f5ffb85bab66054e07a9ce405993da92ce2dce7c3c6f70e5e645aa4a1505404395c6aa7fd902e18b0faa8492ffec SHA512 26f69dded43bd24ffce9acb0de204bef8c10c8df3cb82b33594d035e41179cb7450cb7c10470bfc92a933c1d801fb968049ea8a17d838d16de9973f5dddff9fc
diff --git a/mail-client/thunderbird/thunderbird-115.1.1.ebuild b/mail-client/thunderbird/thunderbird-115.1.1.ebuild
new file mode 100644
index 000000000000..24de01e4b64a
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-115.1.1.ebuild
@@ -0,0 +1,1319 @@
+# 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_{9..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"
+
+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
+ 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
+ sys-devel/mold
+ )
+ 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
+}