commit:     9b7d8a80189645e866068d29b5c7f159db7fb720
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  9 10:16:21 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Sep  9 11:28:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b7d8a80

mail-client/thunderbird: add 115.15.0

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 mail-client/thunderbird/Manifest                   |   65 +
 .../thunderbird/thunderbird-115.15.0.ebuild        | 1363 ++++++++++++++++++++
 2 files changed, 1428 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 9f2677b34c4c..8e930c14bee7 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -65,6 +65,71 @@ DIST thunderbird-115.14.0-vi.xpi 774809 BLAKE2B 
fc16ca251941ed6e89b5cbbf8c5fea61
 DIST thunderbird-115.14.0-zh-CN.xpi 775075 BLAKE2B 
08be1a16a498404b503c7ea084c585a2c4f99c755b233a8cd3f8c384ce6b4c7768f0f6b03ab77e4688d2241c07f413decaca6b7a38f8113161e2c1303876a5ec
 SHA512 
eb4e1894f408b7d90982a447183c3dbd702c654950c772c3adf6ac90be23655e6d6426210542de70682ba70797c247e6271bc7867fe2a8dc04ba8a63ab0e94c0
 DIST thunderbird-115.14.0-zh-TW.xpi 778882 BLAKE2B 
1c17c1d70f42ad4a38497846fdb6296816f5f5bd782aed05ef090b2913170a796e1a54184ac566c3c278ab821dfc9379337f39a1c31f4f98e80833bcbea99189
 SHA512 
661acf4f1eeb803eabb4c5b8f9cfbbb6bd71eb456860fe23debf0de889d204aba490d545334098c8fd302de29b6adb5f1a75c4bd96e3fbd13f3dceec358a15ad
 DIST thunderbird-115.14.0.source.tar.xz 533296972 BLAKE2B 
b286062857df12cee6b5aa42f26de7509cd89558a8173cb9e1ffebda2c9bd6ef808bf5034ee2149809e6c427d9c3fdc7f2d37030b0c71aa00d5b8f5381166d14
 SHA512 
b12e1302d6be94dd88bee6dd069d3fec944bfce95e1afc1d72c14cc188d952fd5a85f0e70575317250701ac89498d876f3384b022957689fabcef61ad7d78c29
+DIST thunderbird-115.15.0-af.xpi 553548 BLAKE2B 
62e9e3904c8f89cbaa6a01f6734e09bd93f3dea42cea6b0e5ce793a1ed8dbdccf5d1e0d67d92f1e4de09661f14f8a6cc7481f1860e04a581635ee4984355928d
 SHA512 
2496a41f4f18cf53d0607c81659aaa9c248e07ef0b2068e6fae888a76b4d15fe8eb8e1031b21f81b586886e004c19e3d18a7b2800a12f3d0986a2b0c33f61109
+DIST thunderbird-115.15.0-ar.xpi 706940 BLAKE2B 
3bd58099f54219d62b24013f8ea920d03514f6e9589dc6d19696b7ef78fa4b703a12d83293583b9c8506055ed2f47593e1b8b4055dd3abb1bc5554f9a5f9bddb
 SHA512 
9c1bb958ab1101457f91f6fb5e8d35c2d0e727c3f9be02829bb536f1fae959d8fafd1d88e592cb8962f19dbbd227061c3e610acd55b10da3b166e7386b4acca9
+DIST thunderbird-115.15.0-ast.xpi 583831 BLAKE2B 
91f3eac2479eb1f789ed5707443425c2000ad7d69f2431c78f3b7733736825dffbe02eef1f0cc48886648fa5e22dbc84f275efba614b43340d1726ec4d3ef86b
 SHA512 
bda904a4f4072e87799f6d5ec99094457275482ec622e9bc87e961e91566d6611c1a3522f6bb7f36387b515c114d6a8ef7a9d15f2a673e5fbe02678d91855c2f
+DIST thunderbird-115.15.0-be.xpi 787754 BLAKE2B 
89ada2a5bbe21d67caa2dfcb0598a2ec1a1986b64d397eeeda69c84260cee80ed34d42ba25352404a5194a387f4568c76f5344db62a5fa6bb1457e929fb475ef
 SHA512 
a368e0d276f4f18b2fa6e552a6536db4375d1673ffc24a0564e779f4a573a0df5e830d825ba4539486aadc374cddc3dbcb4794f42269921b08edc5dfeef457ef
+DIST thunderbird-115.15.0-bg.xpi 828487 BLAKE2B 
da7dc05893f27e8103eee568b0886dc9b99e95c5fa041baba722043b704c20b6550fe00628d2e33b3ebbc32bd99ede28ec2b3b3a8a88d9253100bc960d4bc319
 SHA512 
04c68c65c7466023689d362ed12fd9de1a64b56650622bc59fb108a2b9f20ea0fe8b5dadd04a4a6cce769daccb3da973bb266d851b03937958c95bb828e371da
+DIST thunderbird-115.15.0-br.xpi 677642 BLAKE2B 
dd8fa1be534833f6646dac0479628b2510a86334b6739967e8c3c9bd745047b9b7f351546538093188722b2a16bf0b4f6436b89326d799244676efffbdedfef1
 SHA512 
0b6e141d12df90805c9e9ada288afda8ee562e7cc7909e89f181effdf345717699208d82b0af93b9d057dc5329a7c75f612005aab288a3d4cf3eaebf49a0fa99
+DIST thunderbird-115.15.0-ca.xpi 732349 BLAKE2B 
c8c43c87bea904f5f95260167f360efdb2f3a05956c4bf023fa600b2b818479d2e1da683d144547b0f578c5c5f211cab199dfd3dace4b2261742729ba12e690d
 SHA512 
dede551b1ce32df6c0e278ce0f611e24b8157d023699c24b18c0d4b08304a479a266c290a1838e9b3f51995480f2ab6c3941c18172877e37cdeae760c08e2151
+DIST thunderbird-115.15.0-cak.xpi 694684 BLAKE2B 
47d526da3821602495b0540404dee1b23eec8ff5bacae283d00fbc0582ed51fb9b9ea400033c79c117bafc767fe3659dfb54846f067fdee644bed53eac01703e
 SHA512 
6a632d77d7d50c4df06d64bcfd85fbf1ba7e367caf0f8da5441722079f47e4d429badf44ede6a1ef8011d180f2059f05424e8ad3220249c4fbb0eb31aa6b5493
+DIST thunderbird-115.15.0-cs.xpi 814276 BLAKE2B 
54399b3c2a8c0b5c6f8df4c067712373fcfa7002083002504a3d18ad21e56c6d909544d3f9f65cb3172276e2e7a353cf60365915a382e4e546ef36cc1ed0235d
 SHA512 
9d7a87727302c96404f6368e38b9af4267e7fc474943e5e00126c43d98e912d3e2ecc70f139b4ea47e489df4322b47ef36d67912f9b284d3571effc758ede07b
+DIST thunderbird-115.15.0-cy.xpi 776201 BLAKE2B 
a9eb65746714b5e1fa18a9063ba0c0a41c67a929c3c8be6c046acf1061648df4dc9db6f1f23cc5e0902168e35e01b9aa7d668a15fe49a923b42d7f55dda6325d
 SHA512 
25d65bc1928729d7d73dc696e7cbb10dd2b1ef3ca2b9ec6cfd30cd8cee13bd417a2167797790b001d8816d493cc96726845e8031ce88374197402ca2dba27454
+DIST thunderbird-115.15.0-da.xpi 762858 BLAKE2B 
5b66867366323a8f359c34414f20dbf3f8c45de0f331e2cda878de72e186847a964fbf186e297a0cbb9271567575f5541b0baa4149555460a587b327a3d8ecd3
 SHA512 
fbf6ffab75a1f05200be6e0c88b3ee5e84c595e2294a1b0ea37d8c80fea7b6e3d8b363db9cf07b26d7f24a84f1bdda46557836bc7ee2f8e8163a07bbf4ddc1f3
+DIST thunderbird-115.15.0-de.xpi 794013 BLAKE2B 
a1499b20f81b34f0fcaf70c60ee0869ccc86b4025a0aa70f908c903aeaeeed001562130cc66571831b1725f6bef897b0b5c2fed551d8869f264dc1c62b13f62f
 SHA512 
d3757ef308e58c0e68772b7aa4a4452869268dace611b2702aae0c725b4cff0baf2573a0087e21bf8cbf26829669abe0afbdd37390cab5879efa4c798ca448f6
+DIST thunderbird-115.15.0-dsb.xpi 812883 BLAKE2B 
f9795b4fc72e8b670ceb980bc38a8a61adba0b1752d463273da62082f372feb4ae598dc05d38c43aae907840d3676835803e77ea64f18cb2771e110ea84a8762
 SHA512 
1801e5a70bf5afd1ab6be7f34a2734644f7dfe951cd80efbc4cfbc2025a1782c804cf7284b9b4f0847224667afd565a670dc306a539f841a84b08705a4108085
+DIST thunderbird-115.15.0-el.xpi 923744 BLAKE2B 
d97291dbe15cb78a3e68672573699339d080bd14b8621012d37613fc330602cd859d8ca0cd3509b278d88cd7c10d3adbd7d2c11e016b8c9552f7412d42aa6249
 SHA512 
12b41df0868a571a78b068eaa2f66e71c059df20a8dbfcb531df06f05f9385e19be86fc784fede52753d6f6292e8808010ac8e66587e30715c98e3d7077d2ee9
+DIST thunderbird-115.15.0-en-CA.xpi 728508 BLAKE2B 
cc4152bb9ce4179868124cfc9a4330c87ff82e494f330ff6b391b976ce01b6d74b831c589ee178478c9788ba4de1c449686cd5d6b169498a2d598c6b480ed850
 SHA512 
d9381df862baebfe08549e873c5feff9e779b6336fea3a6bc458057a0c45e8bf81f36c694b68b9767087e4f32b6cf3097ae7e0724e78b7af3160d5957a88c396
+DIST thunderbird-115.15.0-en-GB.xpi 729649 BLAKE2B 
fd08184f7dc96515a2ffd9be3b760971d163a81097a56c7ef835ff2be2f6ee417ce98e8eebdf92a23003c01f23e2b02249451f50085c7d6d24397d19a83f67bc
 SHA512 
e2daf19989bfb7592e7ea3ca0f4e68608b06a5691ab5c38a2df55d3c8751252ed1820cef3b23764624c1e2a6c5eb15aa09b452e93ea0bb1561e633b411bca395
+DIST thunderbird-115.15.0-es-AR.xpi 787328 BLAKE2B 
c88ef73a576cfe7c70dc62b751cbd55f45e9a9f2ed65386fe2c7220eea78d5dacc0d9b3f26f445becd65b628fdadc6d077c2923de1877a0ab7083093dc294dc5
 SHA512 
ea65441024a299fc6a9487f77aaa02a6ad53d66840ba06e535a580c5048f7ed4ea27ddbd77724bd0bfc992085344bdde440a5fd048d946fe821301f669dcfb7a
+DIST thunderbird-115.15.0-es-ES.xpi 751242 BLAKE2B 
d257ae2832b9feb601baddd44f6efc54f69e7f40ffe2e64252b3bcfe53ab0be1bff49e28dfeb33d2ecf613d63c96712779f513ddc443d6a809c8cf1d47b1e2b7
 SHA512 
802126f07e178d5c38fb74f02fb77fc32895fd38d6b2525c08b90d5458ecafff03a80d7b468e08f3c42fd71cabfb353d79b92c4d51dee99fa18fdb53efb19512
+DIST thunderbird-115.15.0-es-MX.xpi 757498 BLAKE2B 
daece78669631a36e1235d08d4d23b148f389284bac985d634fc6c1d77ba69f97bbc243063026069487809a79f9d084ffa68a191341dc4ffa78fe3153174fe09
 SHA512 
9cc2d48a7af9c53c7450ed2fce2f6c3749d1dbdcb135303e7b4d233dae96490d3597ca65d5152192152dc8438c75865d112fe7b3581e6e1f4d7dec8d8d42f3a4
+DIST thunderbird-115.15.0-et.xpi 716734 BLAKE2B 
3aa410ef782a893f09092a5ae6c259a6e9c26ffc98a729971f41134d0ffd9500a5c9179145933669314f7eaa08dad8602fef0b271873d9cb19a549d64a1cd5f9
 SHA512 
20a09a02768792e617540e88312fc675c086daf55a279d7f398b1ba3b7fbb678ff04e5bb90c9881554d3ec0d316ecac30ee2c29c052545955471636e54c0a01a
+DIST thunderbird-115.15.0-eu.xpi 750792 BLAKE2B 
c165efbdcd40ca4d2936c409a34b675815952ec6338b0a90a22e249706e9df6c1701bfad99b5b478b7ea3a2df325fe928dd1122613d407a9e80844b749319031
 SHA512 
b0c875dbf7bd312ce28cca2b7693ba07154209d0117c596f5b2984c639ff53391147e04f302d82a42a333a62206125f33ee04b471ae465333531971865111281
+DIST thunderbird-115.15.0-fi.xpi 760381 BLAKE2B 
a4744d25976e83453d0324df2c580195fb2c9e420b9e1116b115783b8373ea569a7bc3f33ed86669c7a4ba98b9f237000cc3e56bc96820285b79ca14a83ced31
 SHA512 
2632031a4db1832b30e78b8944ab2f2f6dc32d6d3df763ab22ef37ad7cd7d06baa1c4db16b18a5eac0436d5a38aff7fdc8027a3be6a22430d18d3c0041e4a439
+DIST thunderbird-115.15.0-fr.xpi 800563 BLAKE2B 
67f05fcc018554e2596409e9fd532059deb097458fd3c6fa234dfa996fc4326c23ae3b6a211c51eee7292a163ac6c59cdb0f014626206f296c3133e934810c5c
 SHA512 
788dd6d65879f5723db6fe4d5345e60be6083629cfb413c30198912c50e9c47727759fe439cd26c233b5efa510e62471d6122638f86c5827a7c0fa6da7bceecb
+DIST thunderbird-115.15.0-fy-NL.xpi 782017 BLAKE2B 
f6f6fb51e439f9358bf630aa7f6eeeeaf1d3ad2273eae270473badc3f7ba788ed0b3861924f8ccd1333bc861ec5796858286ba1b199af6f7e0b78a44e60fb2f3
 SHA512 
eeccb4f8fd248c400df6d83253d33e65123542917ea6c25a19d7c5c073f86cb27bb762d4f87db3ad8d15ff4d3a8656d1c549a9b16f3ad4de057d77ed701ef7eb
+DIST thunderbird-115.15.0-ga-IE.xpi 640765 BLAKE2B 
bfc70a6d2432c6bb716c24d6185d9de52aff8b3129d46fb5e248ac4d8231167be6c969153055eb147e65a626a501b625e9e2c2f2943833d3b875af00bd1b96fc
 SHA512 
2e628b3f3a2ac64b8c089d9fe46f18e43d81710e831991884f19e33886b3f964a063a2be2537bcd66be9d9510f55d0e14d94eafd602999d0587351e9c43b9b68
+DIST thunderbird-115.15.0-gd.xpi 751210 BLAKE2B 
82a71dd33f3a0075ee71fc35f28117ef66e45a6ee248867e99dd90f78f6bc557d6cd03564c76bc64e3af2d4e4f2de39187553639a93690ba2f31a6dfd3859d42
 SHA512 
ea8f8f477ea2a38c4b30484abc3cfa2e31b637830cf8b1c4ccda1dbe74d921e929ddbf1cdaa954814d5d5192b41770086d1ad71fb8243d5277399921a6df0554
+DIST thunderbird-115.15.0-gl.xpi 761600 BLAKE2B 
54ee430dd05878fe3e58ace3ab55ec5000c28f0658301d9ba74320454b4b8e48017935b89c07b094586112a65a60a10e95c83ff106d09b575a9aa5d80e6d375c
 SHA512 
172a39a2b3439438b60c0c439c9234f6cceffebab3cc5429ac1358ad036179fdde25c10d39f7360208df2127eed521505c56043a1740ae52c5381adee93cd324
+DIST thunderbird-115.15.0-he.xpi 724287 BLAKE2B 
454140edbe87cc51ce54aa6c56ac7bbdbe11940f7586ad28408cb866948d0c4f659b948f5f475e48526da00ee598a5c2f3017b9500857b948b6926b241e3d83b
 SHA512 
b504cf16c8b442091e309c394b9ac6ddde2f5eca6780df2bae7a8a5ad6e1551850525cbcc975ce6ee92d71490f10693f47da7414844e02969c9760c1aa24ac00
+DIST thunderbird-115.15.0-hr.xpi 723720 BLAKE2B 
58ba0dbd29ca1ec950d8c7b03d59efb725462e8a069d86eae1a1a2b0431c3902e21065095ab5f3655dffeecfa2d17b1bc01c19a83243b3fc8fce739901978353
 SHA512 
b2073682142f979d6c524d2448ee59ae0c0071daed287ec5a8d6cd3e05d71018e432e37bfc392af2840cb8ae60f3e2bb693e12dd2fea6f8e794e377a0b0efc6e
+DIST thunderbird-115.15.0-hsb.xpi 810428 BLAKE2B 
d532e05091137f25bbe70f543da50007c2c1e2191b3b776c0085fd5f1b5de4ee381798ce2b629b487e95444b74261e39b60c8807e7bd3c7b7f9ad1842bd72d87
 SHA512 
f863fa7fb45cfd91ef465ee1d7d2c57be094712a6341ffe27da857bc3b48a33919c983cdeef05943ad066bc00f62485dc5ab308302e79e30efc7c187117cc07b
+DIST thunderbird-115.15.0-hu.xpi 812084 BLAKE2B 
92b0827dacd1c2607649982456f084c81f7a7d52b2f0ca55ef624523bdbbc25deb7d66b09716afe5b5668ded69ebd5e2d07e0bf463d5976fc3e8d4c821947168
 SHA512 
920b6a4ef23880a46c469f2dd8b63517600aa1ded49169b3982574c16c8d61f1d2732310b46471780100ed6e3a1e87f0484a325f84ef053b971d9283efb25a23
+DIST thunderbird-115.15.0-id.xpi 689001 BLAKE2B 
287bc728f652c87983b92bdcdbc8fdb484a96a46a4ecee4a1134863ff42748ff9ce9c9f6fef9de2d8175995ec975d1a25cf091e5507c117077d6bdcd1114fb49
 SHA512 
094c8d4eeaee440ff8f0022ed9371d348794df30e6000f6533a540404c65ada4382f1ed08be3cf07966398e506a0f2dcbc7db11940ac1ef40c553e12494edd5d
+DIST thunderbird-115.15.0-is.xpi 767724 BLAKE2B 
88325eb0c14edf8339c7a65b844962b1314fd2031de657c9ddad9df1313051861275725e761bc03920b8efde75d7eb3df33b95acda96741814a1e5524fc8087f
 SHA512 
3eff726fed4f98304da87cb19296e3ba15b8c98dbaba6b6c7b02b7769d1fa04a3826f725de78c67eee1f5847fa34607fec375b8283c82d028cb88aaf25c119a0
+DIST thunderbird-115.15.0-it.xpi 717903 BLAKE2B 
d769ba1b46cdd414dff918d04e52b077715606d77f3ef8b9b119e813a7227877f0622ba7b2d1afd1deb78d768f71c06b735ace258ff5b7e00691357d587b400e
 SHA512 
3f1c9c1712d2ee0e18f5e41b79870480ebfd0ce8e6660c18448def04ab96342370e882e6f3fb1dab4804dad3f83f57ef9453a4491c1679cf95d3b15d734942d8
+DIST thunderbird-115.15.0-ja.xpi 849892 BLAKE2B 
a7b1d4c2910fc999b38ac2742fd71a53f06982903256298abaaac6a697afe8f46a63f78b9e3fa5036838bbbb7c5dbb9456ae315ebae965d4768f0c825dcc1020
 SHA512 
a5885e219687f0804e3ab7e9c44f4771de6b98154e4301456e9cdb70dbf347afc39f2bcb38151af808b6e968a21afe9622785f308ad19df768c4f9c22c7ec381
+DIST thunderbird-115.15.0-ka.xpi 825497 BLAKE2B 
5f8c516c60fdb2b292601802ec5d357935f1832a665bea812bd386f7d3effde9ba6f691b5c51c2f93a1be1a4c93e321ea67a4aeaa48ae296a6e703814d668648
 SHA512 
f9f459731a98d872a72092d104ccd43207bdde060b44f21ddecee773bbe521ebd863290391664e56ae3f3f5e9f304ee0b4742d05cd176f192c2c4f9f5b12036f
+DIST thunderbird-115.15.0-kab.xpi 757769 BLAKE2B 
85769ea8ee24d0385be470b57ad37d8a1136489a199c30b0e1ed89fe150459032bc7d319ce44bfab8678186bb4350527dd6b629bf5da186da7553bff50d499b3
 SHA512 
d5369ccdade4f1f67c613a4a9ce89ba54b880a09432ff8c129d15c84392f5a55244845104c848bc45508094104a5f42f46e90c75c16913764d5a997084bb0722
+DIST thunderbird-115.15.0-kk.xpi 890201 BLAKE2B 
875bf941500c677ecd5ef8a68a0a18de80296964d8994dacab0daab04e7d54a4b593cecf5d2372c1b94482685e3bffc1af8e3a216261114a1f3ae2a59c217eaf
 SHA512 
e79f808d2fc4cb9d3732e5b9850074dda396e843388c22d305f6dc98ffa05030c08223b5b7bfe7666fb3e51959a81ff673938a0049a8fe47c0d63ec2357d1f28
+DIST thunderbird-115.15.0-ko.xpi 784810 BLAKE2B 
349edb1a57558d020c840afd7f1c97985c7f3d73db499df888f8b4bbe5c3526e9f8d888016cc5200b0b05a5ad3a0ca3c5f21112ebe1e2f33ffad63ff7d227a69
 SHA512 
4b295c31d2d25b0a8660ba8fa2450f5777b4e8281fff7bec7b9acb95c55bbe3bef07fc1634d04b8675177e02cae82a632431bb873197535c4ec24e77e2cbbebe
+DIST thunderbird-115.15.0-lt.xpi 725498 BLAKE2B 
af4d7b8fdda2ebf20604dbade0595762a3d62969d856c118fec85ace2a78e6599e6076ece85d77fd59f253ab820e7615a1bc39aa990d958908c4d3dc93d98aa2
 SHA512 
2a846f8cbf2598938af8b07014e30d0d961bbe39d28fafb9f936aaf0a366e0b711faf24d833dede396a85cc8dbe35251c1faabd604699a19fd04dde68cbe4e64
+DIST thunderbird-115.15.0-lv.xpi 646853 BLAKE2B 
2adbc3c14e4d7ec694fc60afcaec80f983ad9f023c8aba7df95275e1b01c56c5dfd9784d30f249f3b548477a661555ac531bbf6cf621338f48f47a4f076726ff
 SHA512 
259980f5d19380eda199c9f6a2143a4ae2297462ace0f87bc9eac51016b6646724f0376ab8fdf9027acc619f4053cc8aa4efc59abf5f5480e62b6a3fb3bde677
+DIST thunderbird-115.15.0-ms.xpi 604574 BLAKE2B 
aa33ebc053162adb395e53ee6c0d24da671afec78019a045cd0f9eac8a705eb0de36fd41ffe979110fda95d9d72d286700452cfe7d60de63b13991d60a3f2886
 SHA512 
a337100b2e2af801915fdc3d3ae8657d02b3d0b79e628fbdcf765d61836fd16578d3184c0fc86ef54e701810165502e4b2cb3643e91cdc48e53653e053bf2907
+DIST thunderbird-115.15.0-nb-NO.xpi 731332 BLAKE2B 
6a4006aee252df55b1650e49479ec2fd20439734b54d6a8d8e9e9d92b0e3527f010a9bf8d9176413b512dd3c596ac707e06cde41c93c73184218346091fc0011
 SHA512 
132ac5c6b51aa54db8a99bcfac53f26029e1f9366fe70cd3ed92bdb16817dce601c8580f9c4d3ec072d16bee86b7b882674af5da0a1ea721601c45e70710480e
+DIST thunderbird-115.15.0-nl.xpi 772932 BLAKE2B 
3835c5f8f1e0e5c83241620f8f5e93991b2a864416f80042396c40f7071542bce055e2cb16a3619384253afb1cbb35a133d906fc34d45bded51950952229fed4
 SHA512 
e8efa8aad313a8b0b737932de74259193313eb2dca9d43c17006d50c9106025b3f87cb0fbffa54016d0deab1c2122f19e855a19e89935328bab4c365739faa77
+DIST thunderbird-115.15.0-nn-NO.xpi 751328 BLAKE2B 
23c0990e0008d669260ff983ad2b0c791b9ffc72666f3fd7a783cf9e3515151b714b39a94956349a24bf5b2fecdd108a830164359cc4b78272e22c56b33c6695
 SHA512 
6c4b0b49a52fe991cda6999a306f5455f3a0b50304aa5f976d204cbd0ace3f43cf035d7ddbb5573e95ad49a7405fc73d364c05e98fdfe9d3d79fcf4f5c2162ef
+DIST thunderbird-115.15.0-pa-IN.xpi 707741 BLAKE2B 
1040a214ea3bd23bc1786b9c2283ce300fc2d1d0f1511a579139fe4fbc3eea252f08a9f1f25b797087b7156ad5a761843e3f65f46e7e1a237c4387846d4facd9
 SHA512 
b795f4b25f93532af62b533c018800786d6bc2516be74922ed4703309637133bdb44f328682c89a44f58b04b56bb906426114c1a9f3c1ab9aa0f4554057eeeaa
+DIST thunderbird-115.15.0-pl.xpi 793040 BLAKE2B 
213e59d3a9086dcb455fcb0768d38bba682b289bc8c253ef6dcd701896506bd80867842ad364ce2b712eb2b740358cf973e8a46f6cc2e2865df448e296099984
 SHA512 
34b1fcf5337fc9dab9040f0344786d4945c2a2172979456920e7399fbde033218f8122f17991915b04c95e194643e339e7cb0e983aa540093553f21a243b3dc1
+DIST thunderbird-115.15.0-pt-BR.xpi 780411 BLAKE2B 
686e3b1c93e30d353a64ebce552b9d6f019e8207b74d3989dc7bd5499ea213db8369cbc17c7d9b5edef4d363ff35e440cf560c818812aff8066d2e65ab273c76
 SHA512 
b0abc305d52bdd83a445122b3e7a5083ee893450f03359aed7f3ad1369a80f5a28d209a3bd417d42601bc0b8ae91ea8b7755946b47bd59f1a381d3df0e60ba38
+DIST thunderbird-115.15.0-pt-PT.xpi 775799 BLAKE2B 
70418fff74d67ae80da5724d5a665dc75f0b1590ee0c58145a8f406decb7bf34c75df981c07d178c57ff8cf253251ee10c753d7c18b389dc3339dec3cd398daf
 SHA512 
179e73c6c30b1d6fa5a2d45bfdcba08906a12a9754ef4c3dc22e0a21d3b055a7ecc1dbee9831b93a04d237e33a6870a8b8a3f640b5c4dc653a67dd5b445a95ac
+DIST thunderbird-115.15.0-rm.xpi 776803 BLAKE2B 
7a2e9e81d4f87a5779ac0d9698317d228f019d912c37e6125c94c1ce8ac38b6b3658b3f8625ca36ee44b4593d5e1746ffeb1a0142a1009c367fda5f66e8ddefc
 SHA512 
2139d1c10b42f4a414e616abb5c9d91660cc282f92e70027701ef7daf8959d1e0353631494f580298b07124c902d40b8b6867f99f126f85a82ef0f23e6d6aed4
+DIST thunderbird-115.15.0-ro.xpi 693502 BLAKE2B 
4d441b79b5d3afa525a040df641b9dc1116bd137902e36c3bcb09959ee09594b36780806e67343970fa42c5e952b35dc62b5fa8f0621825330feb59f2ff2f53d
 SHA512 
d2ee3bc13614c71d9b16e42cba267ae80336bf978d01ebd6ed9453c2be0d6a0f5adc8fad482e835879cb9d534aa38ab5b80cd59a422a3ea4b7ca39f37443f9c4
+DIST thunderbird-115.15.0-ru.xpi 905766 BLAKE2B 
50f214ef41bd3e0e57ac751e1b71244a5cebd67dcff870dea3dddd3e28aec34ba0ea3b9849d92adf68ac3d54d2ab2ee5e0f11dcba9a6ab977f06c6d5cd2a9354
 SHA512 
140129a13dd4cb81f8cd5643eefa97ceb4674e154774feaeb6679189cc0df0ba9f060aa6a8907454d0459c5d6cee165a59244eb02f50f2a385bb903be9e3594d
+DIST thunderbird-115.15.0-sk.xpi 813473 BLAKE2B 
7af3e872a0b6690c8c4d0b36547a2c5f7b362c5f2744cec974050151c6a7fe9a56a46703cd7573573f083d1561faf23e4aac694388f708eb1f3e5a7569a6dc4c
 SHA512 
4a1eab644776f7549764922c59616f96d91bcc29e4ede3c4bd3562a3c10a4b75145923ebee9226bc8849e1b0818fc5d42ac9a9f357abf2b15da1e688a677ee92
+DIST thunderbird-115.15.0-sl.xpi 771130 BLAKE2B 
d768a1b4906e32b65551bb48fe701c23cd007aae6e49126af1296e276471fe3dddf27b17f4363dbc285068325fed2bc7375e8bd2f4387065551f9d0ee048f8a4
 SHA512 
ff6f2cd3f2aa92ba975baec8afa1283104be6b80b1f3f2b845abea03a4f66c9b3532342e26b11b79d3a5cb750443e3237df16285d1c1a3f66ed8e7bbe960203c
+DIST thunderbird-115.15.0-sq.xpi 795877 BLAKE2B 
9e88bfdb0d87977980ca28a04404e0c3f417428e363e768ac7e48edae93a45bf65ffa7c1ce29ef311f569943b2fdfc51b1aad11e8e2736ec7aa73e1062cef2fa
 SHA512 
10f976e4e27f684b250e000ed867a16488d049580c0d386dcabc4ef69b79ae92a2e245f398d8cdf518c78b44b6d0630247d47c0b241901570eda5e2f754023b9
+DIST thunderbird-115.15.0-sr.xpi 794778 BLAKE2B 
b66b90e413c840acbb4696f2f9dda861df7d3cdf945eb1a7428b9af7da446bf12de1f082950d6e9361d21462c9bb3841de2ed61111ca18d377a7f76566d8b0b6
 SHA512 
47f7dff1d25d51d55c067d4eb75e74d67291f555c6bed5e19dcc733cfc6f4558497b1ac3b5b72c36527da43f1475ddf51d0b8e53b235bb3fdbd963f7b6edae10
+DIST thunderbird-115.15.0-sv-SE.xpi 776291 BLAKE2B 
09015a65c11e3ab8a8ba9973420d27eada85607d074bc752b98b0be68c70093f70a1bdd8b64e1a6fb68ba5f9611f68027920777f8e55380de5e7ca5e36b54beb
 SHA512 
8a095c742b58736121f4bbb76b69118d0871fbad1c69df51663726e58e07f8781bccf59ce12364e847e2c132809555a997a92a4a77751b2e257cf5bea16a4082
+DIST thunderbird-115.15.0-th.xpi 843556 BLAKE2B 
b2b860fa51391c7dc0a3d2eac5b49ee72850c177ea776a60af32824f0fdcf310b98db773e46d32fd7a25d73caec36837c09afa5daf615eaa400f3d907588da94
 SHA512 
ecae3e36c620d9b9481add385f2ca5b7315e5d053e98dddc1be0d3c290c52e1c0527f69427261845e04b7b2b8772e4420daab6507dc577888419e3cffb186383
+DIST thunderbird-115.15.0-tr.xpi 786494 BLAKE2B 
619245907e2f1ea6e9fad1950507b1f8036358192fc406900fc1398dceb323d909b9ec8ac13d782f2ca307fa86d75338787e7509bee051a1dc40fb2ee48596c9
 SHA512 
8b926b9fd9f34d3da683792bd31d9b13178fbf48992889b28b2ffacd729290b33742bf61b7545c5f5688bfc1e40112c71227c29d8951fbe065fa755c9b5356f1
+DIST thunderbird-115.15.0-uk.xpi 889489 BLAKE2B 
8026e53271436a08be86590ee532f558c2deb0383b1c6c17537dd6962d0441eae7f63ccf3f8d0bef26982c70dde01a9b5551cd6a3204f8f852f5ccaf9f38fb80
 SHA512 
eecbe3d98f5d2c42384031a6bd74aca52b281be25a38a990063153447354ba1500864a775f56e9b8b2e0c8164bdf1408cabb36c79b2fc0ab9fed6db2511a80ff
+DIST thunderbird-115.15.0-uz.xpi 616842 BLAKE2B 
e91646bc269836c830f0515a82ce0edb81ae1574c4367b967531f6b53e133143553cfd94884dabbdcd6973cc1a69a3ce90de5a5f189f7bd05a707a311c97247c
 SHA512 
27ce21fa8bd28b5a2357bf025aa45dc7238f7d965797d7911f567c8c5404d8f4597fea77c4ef2a250bb37cc3eb888578b2589430393e0155d01cc61a9889c035
+DIST thunderbird-115.15.0-vi.xpi 815663 BLAKE2B 
7cf6b7a580bedbcdb8d1d6ce969ed6a475db3301e1ed72f50ca0be7672c5932af64cc44346a4011694edfb17c4d2a461604be23140285756061f7a97588a8bb2
 SHA512 
29502cfa4e379d46603f3aae3dcc4f6f1d3371f69a821dec466f5febee8cd9fb80dc68de65198290d84b2ccb4ca333d85a1e9bcdeb8ccea6a19ca8961a2dc9d6
+DIST thunderbird-115.15.0-zh-CN.xpi 816082 BLAKE2B 
6327323e3cb30dbed637dbd82175ba0f1eb68c6b228c735db585a8050358739bffcc2ed3d0f86b84a0f5dfed16cab9d4b4bd1882459903fc5741dc2ea63c5a31
 SHA512 
9861cac106263f3928a0cfc70f4760f35053a8dd4c207ed788922328fff5d297ddc9c81768d461fd04b0b3266ce1150022eb73405c3fa5876f9c479fc7655b10
+DIST thunderbird-115.15.0-zh-TW.xpi 819843 BLAKE2B 
1f5854be3f2cdd4f680b0d649d6ee144f0d2ffc0cfaff094ad2f569a7c3a3245c8c460309b352de87e884e484486d9c3b84cbe56b07408706580528b9f65402f
 SHA512 
3e7fffbdbe5b4435a29a420496e341a9b9d04568cfb46e0f73a8bbff4640d85266d105ca39789261db80e44834e7813a62723f5f3d190fbe585c293cfe03f39d
+DIST thunderbird-115.15.0.source.tar.xz 534455612 BLAKE2B 
b77bb2a6c1334fba8638b299c91ab71e7753819538aee005afaf4554db8a91838daf88a670f6b108d7a33dee1a0fe57b9d0c9aca724a471801e858043a5d3b45
 SHA512 
b161b99e09b6d1ba833f77264e35034ad199438b4fc88d244a6b68c84693fa2e90fbab60dafb827a2e23b37c484f9843a58751d93826ba7cdd0391114d253de2
 DIST thunderbird-128.1.0-af.xpi 530022 BLAKE2B 
741b3613ff2d6478d241bc4a2498827f4ab3915ef8378ac60a360aedb90b761ce14142ea3e2126d56275c97d47744325d8b2085b40dcb174bb320d791b7c1b22
 SHA512 
80cf8a2a84d4334100af3c010497a3b3f6a1ecee0646193f1534dad84de96c6aa331a18172ecc4da7428b4c4881d0a46169ce8893b90845e680bb9eb5fd0e476
 DIST thunderbird-128.1.0-ar.xpi 679531 BLAKE2B 
545379463b938a57ba4de7f08f3df356e0e7b74621542d74fc40a2da84d127fe00785561f7fec446a434bc29ec3ecb04965cde58eba684f52bc3d4f189f34139
 SHA512 
89bbb69670c0db83053c7bdbc6ef8590c01805b487f8cb40d5139e2973aacce9e8277d20a779ba372dd29453f7717bd7cc27640873d56961b9d3321d1ad7970c
 DIST thunderbird-128.1.0-ast.xpi 560727 BLAKE2B 
75de626cbe945a7e1d86aa1a5ba7ede2009f9c437ce46d605b159a6e84e84d600215f537c94e28e825b82ae237d55fbe3afa1e60316859a4ee55e572adbf69d6
 SHA512 
db71edb6381fafb026dd28dc48ee3e9ace6f714bc1063ac75a283bf42b545e61547ce8f52f6427d656a3533b6d250122ae3ae21e856f96a61fa1539d0fc3d0b8

diff --git a/mail-client/thunderbird/thunderbird-115.15.0.ebuild 
b/mail-client/thunderbird/thunderbird-115.15.0.ebuild
new file mode 100644
index 000000000000..842dd4ecf663
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-115.15.0.ebuild
@@ -0,0 +1,1363 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-115esr-patches-13.tar.xz"
+
+LLVM_MAX_SLOT=18
+
+PYTHON_COMPAT=( python3_{10..12} )
+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-0.17.1 )"
+BDEPEND="${PYTHON_DEPS}
+       || (
+               (
+                       sys-devel/clang:18
+                       sys-devel/llvm:18
+                       clang? (
+                               sys-devel/lld:18
+                               virtual/rust:0/llvm-18
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-18*[profile] )
+                       )
+               )
+               (
+                       sys-devel/clang:17
+                       sys-devel/llvm:17
+                       clang? (
+                               sys-devel/lld:17
+                               virtual/rust:0/llvm-17
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-17*[profile] )
+                       )
+               )
+               (
+                       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 )
+       !elibc_glibc? (
+               || (
+                       dev-lang/rust
+                       <dev-lang/rust-bin-1.73
+               )
+       )
+       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-wm/tinywl
+                               <gui-libs/wlroots-0.17.3[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-74.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
+
+       if use x86 && use elibc_glibc ; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*-musl-non-lfs64-api-on-audio_thread_priority-crate.patch
 || die
+       fi
+
+       # Workaround for bgo#917599
+       if has_version ">=dev-libs/icu-74.1" && use system-icu ; then
+               eapply 
"${WORKDIR}"/firefox-patches/0029-bmo-1862601-system-icu-74.patch
+       fi
+       rm -v "${WORKDIR}"/firefox-patches/0029-bmo-1862601-system-icu-74.patch 
|| die
+
+       # Workaround for bgo#915651 on musl
+       if use elibc_glibc ; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.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)"
+
+       # Workaround for bgo#915651
+       if ! use elibc_glibc ; then
+               if use amd64 ; then
+                       export RUST_TARGET="x86_64-unknown-linux-musl"
+               elif use x86 ; then
+                       export RUST_TARGET="i686-unknown-linux-musl"
+               else
+                       die "Unknown musl chost, please post your rustc -vV 
along with emerge --info on Gentoo's bug #915651"
+               fi
+       fi
+
+       # 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
+
+       # Clear cargo checksums from crates we have patched
+       # moz_clear_vendor_checksums crate
+       moz_clear_vendor_checksums audio_thread_priority
+       moz_clear_vendor_checksums bindgen
+       moz_clear_vendor_checksums encoding_rs
+       moz_clear_vendor_checksums any_all_workaround
+       moz_clear_vendor_checksums packed_simd
+
+       # 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
+
+       # With profile 23.0 elf-hack=legacy is broken with gcc.
+       # With Firefox-115esr elf-hack=relr isn't available (only in rapid).
+       # Solution: Disable build system's elf-hack completely, and add 
"-z,pack-relative-relocs"
+       #  manually with gcc.
+       #
+       # # elf-hack configure option isn't available on ppc64/riscv, #916259, 
#929244, #930046.
+       if use ppc64 || use riscv ; then
+               :;
+       else
+               mozconfig_add_options_ac 'elf-hack disabled' --disable-elf-hack
+       fi
+
+       if use amd64 || use x86 ; then
+               ! use clang && append-ldflags "-z,pack-relative-relocs"
+       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
+}

Reply via email to