summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2023-07-12 18:30:03 +0300
committerJoonas Niilola <juippis@gentoo.org>2023-07-12 18:33:39 +0300
commita68115bb5494d9f85c23928a1547be25c7f3d0f4 (patch)
tree653a75e62e09839cafe34d5ce5a5b20018630e1d
parentx11-libs/gtk+: Add media-libs/libepoxy[egl] usedep (diff)
downloadgentoo-a68115bb5494d9f85c23928a1547be25c7f3d0f4.tar.gz
gentoo-a68115bb5494d9f85c23928a1547be25c7f3d0f4.tar.bz2
gentoo-a68115bb5494d9f85c23928a1547be25c7f3d0f4.zip
mail-client/thunderbird: add 115.0
Bug: https://bugs.gentoo.org/910229 Bug: https://bugs.gentoo.org/908993 Bug: https://bugs.gentoo.org/907963 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r--mail-client/thunderbird/Manifest66
-rw-r--r--mail-client/thunderbird/thunderbird-115.0.ebuild1319
2 files changed, 1385 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index c9734e33587e..ad1607ae6e07 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -1,4 +1,5 @@
DIST firefox-102esr-patches-10tb.tar.xz 21740 BLAKE2B 46da143f4d2ef474542752b7648cd80faf52332dc1b315fad6474dc2d1cb60848852f3a1f3e96934b50247f4c9add94d4a5d0d279a848f7d3b959d743ad98482 SHA512 6a0e9661ce30786e5480d3a81efe7df67f550da4b2fa5e71d4cbfd191320c975bdc1a4a9971e7df366e79242c89e58cc951d5a7058452773b354edb20b7f60a0
+DIST firefox-115esr-patches-02.tar.xz 16688 BLAKE2B 894646baafcb83860dc04a160978cb4f59dbba1102a8864d519938425ea3e0c06b5481f9de94593d71a3c7e84d5491ff671f2dd94701b2fe79145ae7d0181995 SHA512 e24972289b8782d5ee8e873b186c29b3f14e31888880b8355946e7b70ebed453c624f20a354972d727ffd0c93043153850ac7844ce81e57f8e6a78980081efd2
DIST thunderbird-102.12.0-af.xpi 556869 BLAKE2B bf49ad640d28261190e0a36c12c3a889bed4b0f2ae721c0c3bd9cfe1aca0affc4db4313e6917f591d7b27b57c64673f61c78d38b9f5c1dc089969c8f6731bca2 SHA512 0d3ec14b80d936bf3d8c676ff3350e64148899ec0c1f675ce9afb4c1b4db190b7aff896b1b6021710ee6bef5e187c7dec2e5186ec7d7cbd4db5147bae5525274
DIST thunderbird-102.12.0-ar.xpi 666808 BLAKE2B d85de24769323489354f1e01a3f314c89353cb65aaae1c34e1081ae677a1242a6e2e014af6492379f36405785c6844ba338c7411e38002b23ad36a9f5d47d756 SHA512 234f9f8cb953367427acf4f66d78b09b17b42a5b68e7e88d6d05a553480b97d0ba6795c6397d47c2ec56128f9617eb12fde62ae5da561a4f46265f4848a3958b
DIST thunderbird-102.12.0-ast.xpi 572287 BLAKE2B b6b978805d004ed0af315ca5a933e6718a2fb418bb57225179b2592de4e1cc02829d86d293b84c1efa4156ec91ca989295511f0cca2fb54c34ec2843e4ad0d45 SHA512 36bfd1a60fba2e68f9f70acdf16baf70bb98cf9d29b9445e1bb12049cf0a35e31690bf1a08921bbfb231f028f37229166ea003a441ccfa4d9f92037611c987a3
@@ -129,3 +130,68 @@ DIST thunderbird-102.13.0-vi.xpi 745663 BLAKE2B ada366e22a8ada1fe584c1f087cb3b55
DIST thunderbird-102.13.0-zh-CN.xpi 739887 BLAKE2B 7f4564d89192cafeccd99893bb44f74ffc316bd106b28b580c1f8f8967cbdcc9247528dd59cd9fa62a49d1ca8907766ddee5bfa7c08d8a35940da135edf2dc90 SHA512 4bf08f0c26474da4592a21438fad776562763a6207fbd8c4a13ce8c8353f85f5fdcab7878210665547972d27ad27b396678425ec19d623351af6b7b3e0f53a20
DIST thunderbird-102.13.0-zh-TW.xpi 748347 BLAKE2B f3d419e179b2840c56079204708f9fe3b0db1d0e606b6c87c17ff987d2c3ab0459dfd7a8d0e10d1718b944b7f30174c8dce76f8f03f84e3c18220845fa5cea3f SHA512 d682ccb94b7a8cc39668e3f7c09cf62c6e2fd8ed54609f2d8ba96aa79972f250c04012e7ccdce65e6df8375f89bdc8434892513ac1fe4cc2390f632e03dedecf
DIST thunderbird-102.13.0.source.tar.xz 503365504 BLAKE2B a4da44665a4b6f4d7a49d0e0e92a99c5dcd3d0064e5fc547f7c29a9df9e3efdaca6f9048bcfdd5fe9e52f1d30a49d79e8021158a61319e29cfa2ca95e14f9e09 SHA512 1ed48220f91cc2c38f59067664c02f1f2098c843810b8f81cb8dee4fe98911d87aac352ab8639c68d0eed74297240cd9e0ce0e64a40360511be85315f2bfcfc6
+DIST thunderbird-115.0-af.xpi 545521 BLAKE2B 6d23137cbae72eedbb75ea4b247939d9f5a7210fbcd3400e0a99f5f5d454f91a22c32925a7e833e80920114c7f0af4ab8d0609af3a06e00e6ab4a7d3355a35da SHA512 f5b9d7c2ad7454b395381c9c1fdc49376df6865ae461c8dfe423b71aa649ee8fb4a0f7f55e250468aef7e695a5a07fb61ed9ccbe504d0c03955bfdb4a07e5414
+DIST thunderbird-115.0-ar.xpi 656072 BLAKE2B 64ad948cc913cb43b204de605171864fa166f602fe25bf757d0876ce7ce9813d7989488a7a23ba44b172292a54eaa36b413b37ba2f94444d0d1522aada4e2a11 SHA512 0f1b2f9a4a3b9d7b0c4d3a81c192ef852365b3eb104ae4c005c7d85e063aebe5b38aacd46d6d260b19c210e91ad659708104a1286f633465e461bf94bcc314b1
+DIST thunderbird-115.0-ast.xpi 563019 BLAKE2B d2a040496319af411af9514f438773d129e2d2f04d927339804f115f4cbe5c501eaa209516c90d04511b4dad333dad5f38a5d5a4f615e6aff9776f35cd050830 SHA512 bc5c605feb7712ee7a149ae88fd092f50e4aedad07530d19674b5c1be67d10389bd7ce4d5e1ad25eee048f3003f542ef0669f3c9bc948bf0be654d9d9909b580
+DIST thunderbird-115.0-be.xpi 696780 BLAKE2B 7a9f9d8fc347da0c616fc3c605e82cdcfda07d12c6645bca502dc4c8e4a150afcd6f78f65ea2d8e2a8617c4c57466d71d988cffbd47f46ddf7818e1b93c84a71 SHA512 92a4794ac97ad2980cc716de6ae546f9d9d31cfb8c4d0edc297d89a7824f3ba0bc44d8b0fd44986ebe112185c9536476976b03eafb7132678d5cbf3d74cc166a
+DIST thunderbird-115.0-bg.xpi 683742 BLAKE2B 7cabe9d520156ee5ad1daf256a58e79609848f80d6fe7b5c50e23fadb4c53320c09c4400d662e752cf058bac75669b096cf7ade848251e344610176f15b89d2f SHA512 1f58710044d75fdabe2bf98f8882d84cd128337ff792f1a5e4f0ad113b94916e360b75f472d6e70d73d515863537571e0e11d69f83b01cb0882090a227bcbabc
+DIST thunderbird-115.0-br.xpi 619574 BLAKE2B ebb342e9782edafb86afcb354b2f938c65636aafe644185bc66dd783eaef7068c2fa45cb64875372567e97ecb46fee99c0bbf8f42cee23a89f4dbc88818e5b5e SHA512 920ff2e52f23f51379837e91d0cfae21d9e88106a85efe97c358becad11c1460e3b8c3b776f03d493fed992a3e496b8ebba42563731bd024ec072721ef1613a3
+DIST thunderbird-115.0-ca.xpi 647303 BLAKE2B 9ac5bd52e543f54e5bfd9aeb164d256ce2cd04c95996ca57c02f6e3007647e262f157b7840e8f9bccc4a6f0583b6f8e0d5040e2afeda557f9cba5e871d91da2a SHA512 e26a13002c163e99fec9bab575c99082b47d2723e23c334a6b701cf02029bf46c957fd4f0e098c193589a5cceb361ce02eca6bc2bd2ac1d75149d707e801d76f
+DIST thunderbird-115.0-cak.xpi 661330 BLAKE2B 53b8d2e323aff9468d4217e764ee3bb49e6fe79b2e7621902623cdf40eff16e3645e60949baf9230cbba6e510c7f187aa50bd69ea3cb4ae36d500f70f5a6037c SHA512 8dd5adb3a79bd6ef2cc2d6b34f568193bf4434c5c50c972e544ad3fc2c95326d7705fd2db3715ff703da8b03d3d8e5f9bc136801abcba16abdb9e63bc8fbd97b
+DIST thunderbird-115.0-cs.xpi 736016 BLAKE2B 6d0b81d61ca170879f4acf0806149e737eaf2c093db79bdfb1b3fc6b6dd01c0d1bbf94d7665ce6ef52ccb2d84a5724127177c53e97f2d9884d75f3140eac27bf SHA512 66091378286dca7570102b6963ace742d65d8265ddc28a2a5392ad2434db53e5a27692fedf40d40b7b84a4bf330269254d31f1f7abd5d6ef4d8fb4900e5c59fd
+DIST thunderbird-115.0-cy.xpi 705645 BLAKE2B d9224250cd59444eda0129d81fb6e2d489b38c5eca25fdc49db5412487300e084a429a0be3f6bf314c00816042b9bae27f49122428937a5fe663904633c3f457 SHA512 dc29d96974bf372c2084086ef52a2cbce1f5659f5fa67246ca86a3944bd55e394e8d90f4abb6b1d63ef9b0f09efbc9b7ba6ec382ac54534e958ca75b533dc8ec
+DIST thunderbird-115.0-da.xpi 693225 BLAKE2B da35b90cfb40e1d668a1466d514949251d50bbb9a07d346cddf1dc1b00b44eaa31deefee51c6041fc2c34f85a4baeb7a2f3cf3d861e95070a520af0399c69864 SHA512 b5b7ff889ddc162520cae02eb3ce507e843b3b75116da235a9b6284b6124a0e63797bb13c437bd85b0d70308f48a255084b297f831aa53eea00f921364f57037
+DIST thunderbird-115.0-de.xpi 726605 BLAKE2B ba7e07a33a680fe33b99f8321c8029fe42a67627818306e7f3e3c2e8c25c58574e3a6dcb66190bc56990984d6a7d9a7472b71dfe06bb5118d31a318d96508024 SHA512 8c2f6a9808692e412739bd4aee6771bd5aa2ea7016135de0abcb82c639798fece202f6a9811f7b9774f2f2939262f8e791cda87db1b6908171f5d3f6f1c39949
+DIST thunderbird-115.0-dsb.xpi 739466 BLAKE2B c5ef2b9ff5c4813bb5cb9eda5e3fa4f6a8876344db219063ad45d0248a282485643a025b4bf2815c5bd061f1d5ab0e5acfd37966d3392ecf95efa3afbb9f81fd SHA512 be905a503ae59389ab6265b97428d52fc70d690f930b3a4ed7f07d422726a626f07e81dc9b2ad0b118c71ffa1cd9bd68fbc27b1efc282efc1d1143d8f911a52e
+DIST thunderbird-115.0-el.xpi 839793 BLAKE2B cddfcd273e6e24ea9364b940a8a40150c5b8efebdfa40195d62f82915cca236fae56509d7bffae66a78c7cd4eb3094443550bf14e3f9bfa33b62362fbffc4d9b SHA512 4c5d3b9b2cf9fe176d10c87282c739e7b442f2b7378a8b1d28ce00b7724a4e3ebfc234a92c6cd92f4e0b056745ccaad037e7e102db72859e15b1f69ebc0cc2cb
+DIST thunderbird-115.0-en-CA.xpi 651603 BLAKE2B 5df9e4bc27ba0ca38ad30b911bea32bd2f64eb2f96f55f2a3877d2866fe3386d0482860ba7f3c69a2d128716d4ddda3cd075a52f449e38bb09dfb15483154751 SHA512 474123673963def536880e6193640b36793aee7a29327bd36310f62aee68c7f9182d4aeb23ac96525696e05ab9d9a069331e05ccb280713b7f99538c20828900
+DIST thunderbird-115.0-en-GB.xpi 663047 BLAKE2B 5e162dc880e488cd45d1fe738e40ee31490d2d152414e4b005ea26910eceb0d3bdd88ff9daa47c0bfa929449e4addf4e542ae3ce5aa1eb26576f1960028011f9 SHA512 334d693ac7f39ec05015b57bb5bab6f4f2d4431276bd023a0f7adad28dfc317758ca755309be94c7d0bf81583155fedefcda1b4547ca602323cfe703c8e9c07b
+DIST thunderbird-115.0-es-AR.xpi 715431 BLAKE2B 58ecff671e320d268a466d674e0cce96bfb54e341b7e16963abaaface15da79b62d9ec0c8c57a50bbcba1baa6c737da65b1490188da5cd71cc2dd759bcecaf17 SHA512 9c3b4dd3a574c07f4c9e246c81a0cef6eb0334a30c0ba35b37272bc08cf30526230f9534584317ce389d3c16de4aef32c469aa3b6445e648e74fbe7fbf4eaa4d
+DIST thunderbird-115.0-es-ES.xpi 677289 BLAKE2B 3c7f2569faec43e00a158c14d408c3c47a53af3a156fde8cbfb5d63ca76b6de94a0ccafd51296ea48f65c782c3ebcab63156451f38f0108f7cc5997ec8998a7a SHA512 dacf1315f8414e20e8f1a43fd490a947135ac5ee1d9e68a7dd357709e210f8e97c9899c9da9895017ed950a3508bffb06f73f5315e21910ea1c4fb0688ebecfa
+DIST thunderbird-115.0-es-MX.xpi 713408 BLAKE2B e007a9ece96866f16fa5538efa3d7bc9ecc6aa6a67e695d09cea2b0272b315e5c9eb4444614ee258c138a73588894adfa3ed82715e2ba9c47a4fed842fd77718 SHA512 87bb9d46790c48edec034dfcc2047f61490c0bda2bab46582035b68542878e0f7723511d9f876bbd927c110475c884fb2a990258d48c6c9144b181b766ea4f6a
+DIST thunderbird-115.0-et.xpi 669698 BLAKE2B 07164c926844ad8be333c1b40067cacc285c6e8d631630b3e59169f0f97835c4f9ad591ec67d17296ee816cdc207778212886a55c02609c90b7f08adb2f50ac6 SHA512 4345c80bcf9a3ee0474f98207cc7a3318f658b0111143786121aac340e4814639b15c0a85ac25832b4abe2f71c55b4728fd45254eaa5cdc954b9d968a59ba6e6
+DIST thunderbird-115.0-eu.xpi 694820 BLAKE2B dfb0b48b1e4229949b482b0fae312ed0b586c55b81a820211b563ec7db73a398824a19bec0589e9b9b16eae1c0774c1486ac01e43e9b758505bfcca60bb846de SHA512 f50b9d920c20f6da3a5e9474fbadc974cf752797183453d690c105fe52bf46e4530e236824528ec7ff6d8d4666eb0adbb8d7ff91d3dfe1a9b5ae7be88f5ea09a
+DIST thunderbird-115.0-fi.xpi 692452 BLAKE2B 20eb7c2a16b96365ae100dd701f8a19a0da02037de1b21c024af22505613e0f2e1ed204ab2387b6cc2336c90be7593b927b7b13aef401886b8339cbaa3364198 SHA512 71ddd826991e88a49c13cec0b6ff43fe5f5df5b8286423438160c77cc230cdff50df7d95d0661b2c09f9e45ef4f979eb16b478888d1fa4520048a9eed29f78ed
+DIST thunderbird-115.0-fr.xpi 727588 BLAKE2B 9e9f4eb79fa3a636ab0a6bd8a3506e5aa66f6fd92eb618c494a2dffbcc74fe7b32b41b8b52cfc38ede2e97cab2a14880b77367f9d978a4502f035ece5e78f88c SHA512 14aa4ea72d1cca19d0f44c1f522465313d1ae65a2d50ef06f42a2654b872f1a09ab56e82625a30547da5c702069533f6fa7854e4d8c95dfe9f9d562fafe72615
+DIST thunderbird-115.0-fy-NL.xpi 709371 BLAKE2B e328770cd0bbbb459ac9c2e178115df034b8addee6ffe137623a2ce243ef9f98595fb91bc42baf81b0c2d3deafec7129945e2914788f8c4bff5aa5ee1a9ad038 SHA512 14f0933c3b875776a717195b7acad986c957c6b92060597618acb0dffd22bd740fcf2be1b3582bc50a26192b99293ba77bdb795183c3c3032792cd7048939be7
+DIST thunderbird-115.0-ga-IE.xpi 604740 BLAKE2B 3cd7efea1b5f5a83ca0542bab948c29107f0a4fc37cc01bfe9fc2fc5e8b44dc0289dd395aa75aaaf450d4c163d8765b7a595d580e033cc2df672da67a4cdcee7 SHA512 0c232e3aff64ff1b45c976f23a311754e01b9d6333b4af4183afa9028b99ff8c3b6bce1ad7c6296623761fb9646a93a40c55930f7ad5f8f53eb1c71d3458f034
+DIST thunderbird-115.0-gd.xpi 706194 BLAKE2B d610b48f981618b30106642bd26b5caf29087b6a8bf7453cf408ee177ff01b7ff52263662a0324fee966ec18746feda9d3fbd69a0bf54abd3bd53232742fe660 SHA512 945ae96aa304bb58b64b296b1aed9eaf4ca5538e097116e00ed54e21f241371aac735a57c30bd57a26709c12fef5f911bd2e8b00804660bb6e50c6f3f362712e
+DIST thunderbird-115.0-gl.xpi 707508 BLAKE2B 91df5323116c8e4141166b253f6d877bed04b0a6341a64588f1522a030c07a61b00c2ff078baf4500a707a5655b3d0a1dc5732fff81c9343dee6b37b8f99f5b5 SHA512 ac37a6fbe081f8975e1522114eff9778a8af6ca5e63c651aad02743b38ae2c78a70da145833f4a64be6129bf07fe005cd64a2401a9cfc95112b0f7e50e0d53ae
+DIST thunderbird-115.0-he.xpi 669173 BLAKE2B 80723f414eb0bd3a851c184ed7042e7203e7f4b409d86289ae4a6557a7b803d179a7deab4873a31d912948bdb4781cadbef44a01a6cf358b6122722b3f231de6 SHA512 7400e46410cc074808d285f5dd53bbb561568be12a237f5ef3ab78430ee731e00ce01a81e013182f02f6cbfae04e8b8f0ff9c75d9fd3c1601736bc9192932482
+DIST thunderbird-115.0-hr.xpi 670544 BLAKE2B af6d8e746e6d0f44032c36a03120a6ccdc8d5748bddfd1c4cb729aa03d2a14b4bad79cc15daf2a450787a1dac164b95bbbc7380a5bdf8bc67bf0e8f33c13347d SHA512 33863eb71181dc75133f512d401077a5b1b3dcd63ee1f22344d57c18b3f96db9ad08fccb908cc8f86be87f2be911f40cd7a85c0c7cafceb032c4850ff1b23b17
+DIST thunderbird-115.0-hsb.xpi 736249 BLAKE2B ad8a1ba91300ce6cc27fe579acf10dba66bbb7fb2e81b52220c699d90f974fdf3167ec48566b1200196a92644f7a8fb950e1ddfdfb204a268883b42b570cb81d SHA512 d07476366403557a5554b34caa8d95745509efded84cea06ba6bd86a619ec0cf86dae9c2d62cb273eb0c67f0c2b8b130c05e93c4ed95a558b7bfb2030a81ef84
+DIST thunderbird-115.0-hu.xpi 739770 BLAKE2B 4a46db11d28b11f0a6c2ca22c9537faa8f2d9e432cac98b329fdac53adcf859e639061f2dc65575e2d24f32a153dbe427e67aec5c506d769acda9151b51ad558 SHA512 82300dd83b56ad6c7d134dff03fee57fde0a6769cd6c81960604b2179028d65bc07d5fb5ce5e8188b8100f7b27a653299861f37d70024252354515013ead2278
+DIST thunderbird-115.0-id.xpi 646023 BLAKE2B 33c0eac63cd804624200f42276a20e67b609552d079263428a9d7031fca7d20344a63d51823563ef7116b2ee19db38b6b18e8dea7991a15c55605da742bfec67 SHA512 5596898b01f3ff5a378a3c9cca0290488bab2c04f30169a45fd2eb6c378603f04fb5c4c041f5fd6fe5ff2356076dd66d3e8759e9d19a9a8851747a2801266d83
+DIST thunderbird-115.0-is.xpi 702951 BLAKE2B 3b70c86dda3bfb168c20bc671f6eaec01d315b0d64682b64ad00109aac28dc29db3f8bab41164bf54c081354507ec95ecade6f4aa02a242b6fff2f7e177ed497 SHA512 646c9a33af1856d77e0cd38bcecc9454f662a9609481bb00c61476216cbb3cadf55d069e0018a4131c8bd52155f54b1b99d35a63f893fca1baa46fd622864d79
+DIST thunderbird-115.0-it.xpi 644419 BLAKE2B 1acc116f39b2681360559eb76533c14ae5eb526309e5c60977f94638d1708036ed1eaa8d723b4c008c3ba36cbd9b0ca49f5626f5c6f9c28da07c06d2289b1f59 SHA512 5fbb1e59355d4c7bf38819c8ae168a978a70ebcad6cc5e0f922c637e34b3f9bee0d754ae0ea44558750398ab93808365145516e7c9dfe821422218c9024c00ff
+DIST thunderbird-115.0-ja.xpi 778527 BLAKE2B f86be9386cc9d76c235829ba876277e8b21d3bc19f8c72b032252d02ae01485203859f7bb1c6a6c588097ea0053b3c046b3eddb4bec888d8cb9dc3368034c811 SHA512 4c6b6b373e516e3a44872e306de9043150624bc9962b66124832ae28826e0a5869738d21df97d45f6885910981bc6837b911f66f2df3230f843cc8a7cff90138
+DIST thunderbird-115.0-ka.xpi 767477 BLAKE2B 3b1888ba588e9418faea35fc4cbfa721fb845e4631c68a8090c030a990b7f89a7c7db81096a5af93c84755231b66e702379b45bfbfd4fd872ee57b66856c2754 SHA512 6935a5e501c4e0d5702f4dd13b948bff64d03b9a53ae8c5b226faf89d00fc6b5fd1c625a923bc91a2aad576eeefbfc5b18e4c0dcfe2a53fdb05f69a894604a74
+DIST thunderbird-115.0-kab.xpi 702544 BLAKE2B 4652a0259abc93f96dfefdfd09f55556921db27ae105d99af52fcec1de4b6fca4f674dd3b1d54dc5aebc756dbab8d670a360788da34ec85cd123a0a885422dcb SHA512 144795fa5a9e6c36e728dbebb5e564a21223585cb4dbffb49c3e07cb187f43403c82b03e8b067d4259ef866d26cb5d940d52c9cdd0fc76bbee8e91e23e980c83
+DIST thunderbird-115.0-kk.xpi 806824 BLAKE2B d918b464627274e8c3e4cd6192be5063661c8c7f8fc1b1085c2dba05136e3681978e6b3195926559944b6b3640704b1bcc52e7227b5803e06c59a806dcbb05a8 SHA512 34c726685b24d96b27276e890a80cec91229ec35786556874f22cda8e56c5dd057458c9ada836fc08a361af9f5c7bde75072db26a90211792fe7c3e3086342d7
+DIST thunderbird-115.0-ko.xpi 713370 BLAKE2B 7ba095f2191654fcef37d914e28047f7b84ebea1626fc9ed611ad5fa55e7621e32d6280ebc7b307a268cac2e7acef0feb80038b3b5223ef04b12101c3ecc96f7 SHA512 478b66de463fe8e1187b8c5d1578e7600020b1baa4cb9dd52c21d7114340b2a73297da026b72721562740e2e1414af041989f31853b11804d0e220bbdf974934
+DIST thunderbird-115.0-lt.xpi 683705 BLAKE2B b6f398134497c8a2be29b3e625bc5d06a7693350ce97a55df916d8aab1f61e2f5f8435f16efdec82047c8e1dca518f6e3c355d6327b629c3b2d2052926e28295 SHA512 b58d1ba9c4cb295e5f2fdd7dcaa7ad21738c6ef17896516267f73cc8865227401c80dc5df9af30c400b959dd36a854b6454245f12cc1e9253eb2666573e6070a
+DIST thunderbird-115.0-lv.xpi 608503 BLAKE2B 7661e2a4c87d713a6a28bf3ddfd47d09655f3c6b33361198a7db8f5db4d8afddfb0cbfd700777cf47554686569088758e6ad977cea62758d7052cfc8e0fb7296 SHA512 99668e5d293147fe0e9ff91258a2838edd3f9635f2a29688a15c75e22d94a0c36067fa77d69f4b28c9cf16e62110467bca46c4c4572d446f21ab2732fd7e4bb2
+DIST thunderbird-115.0-ms.xpi 569018 BLAKE2B 1c24fd35052b063661f1dc2754cac0461f0d78681ebd22e26303e8ad8510ca828581df4b5b1d836759cbe2b38e1c6441fab580dc1061495b02241b4ca3ca4a55 SHA512 44af1261c88293d3d35bcae850e466f6364ff600ab5a8378c38074752b54bc737bca3a5a159befa877a06e82e81739929f9a1712f7be92014e2cba1d619ee4f9
+DIST thunderbird-115.0-nb-NO.xpi 657158 BLAKE2B 795afec5e8384e4e78e70e3152d483994fdfa294a0e42b54fab554698123144524d7e79e5762b794302b7ab9d1aa62475e99fbf7f81087dd596d5e4919a06fc0 SHA512 b67f1f480b1fa18b8459d26093eafeb39378864f0c2a1daeb945348e8b434b3bd195988a250e419380c71cb1f8e2341207a52a3987e01354a5e63c9298b7db4d
+DIST thunderbird-115.0-nl.xpi 700996 BLAKE2B 83ee5f4a67a7995a6625a73c41e998cfa3885e9d4ae848c30c839ee6bbbc245cec62026f13f9d3c9031a78375daa51ee4da8ee1ff55b3999b9792a7eac8feaab SHA512 f3fbee03de8e25022c45528d9371376749ff85aa3ee03c12cd97d8e180d2b5458d76579f666d6dabc1395f71a75109cc9ffe163c197128323f3cd9b9dfd659e1
+DIST thunderbird-115.0-nn-NO.xpi 672718 BLAKE2B 87807717a72b39e2ff00adfc98e817a66fc4d1294e79e777b0bdad2738a700fbd36abb0297cc2d195b172bc94adbbf4e3d2410ccbd8e38abfc43f88d53f15622 SHA512 58d76cbd2203835691fd39b650dcd08452524a729bd0e26932759ed28698ecc74ec3bb26107a44435bd830767876873999dea51912c64d4e7edc9fa5513a6427
+DIST thunderbird-115.0-pa-IN.xpi 658250 BLAKE2B 57e0cdc0822d8e72a7324908347fca637417424ae1f34a810075d78fd9c23fcfe9d2b5d8fb33f1c687b492844b1e38d8144171702b0bac2b6428c096c9640775 SHA512 f3e6ded6eb0751ea478bdcfed303856d632115b4a29dd71f308b48217b3877036b0dd2fea5e434f2d0b2511b8686f0adb1b2e61777fc44f226f66bd70f2833c9
+DIST thunderbird-115.0-pl.xpi 720143 BLAKE2B 63a7cd68dc546383901ccad9c0f2c41244823a6f982d42a1813d308ce1b6c2a6717272f849604bfe216cf382f3ea3666a926d557213604608162caf164c8a7b9 SHA512 0bf9ca9c96dbd81b2e4ff50812bb4365509e527b5e178ea56fc9bd613c65dec753e3785a88d4a56218bd0ddce70a6fc4b39eca8c99b3e83d037b6392afa1e2a6
+DIST thunderbird-115.0-pt-BR.xpi 709119 BLAKE2B 68b337fcda8dc05d1c1d547196d39b92764e3c16e8d283d39eaeb259eed02bd0e688af89030da778430da328e9e132e48c0fcd9fa273abc6ce81e01e8fce1948 SHA512 fc6110f821f05ea1c3177d3a468d931e6c53ef396edb312cb0803b4abd62127bb30a1d968e1016383887ebdab3120f75adc7d5fd00de2fdd1808bbc56550ca87
+DIST thunderbird-115.0-pt-PT.xpi 684782 BLAKE2B 07f55fba27b1d1a39a05daa444561a887ec19d4abaf2ec3cc64b92de9d5f01675d2e4a746490d4277171847a3973fa6475f92e8ee630eea6d40f67ae99b93202 SHA512 5928c51b824c5d51f6d8ab451d62ab4dad82e1ea116df1f023980ae1ea38f8f75934425fff138a2779b3425500706527b21d833f227ecdc3e8d9a13b9a2b4e6e
+DIST thunderbird-115.0-rm.xpi 705966 BLAKE2B 466d8e512f3ccad6b0141e14c13ed1b7c2f7302b92052d8d1f52a7040b6427179f9ecfc55499fe3a3e1237e40558d6b55c4affece874e80dafe293f1108bf1bf SHA512 396ef2dfbb38fcba3b12eb171266c9119bf1abf1a81118fa59f7790b063ead6d271209e1abecc51f718e8d8c4c9fd7f8d5c00a4bbcca43979cf96a7664de48d0
+DIST thunderbird-115.0-ro.xpi 654294 BLAKE2B a4c9b2aa569aabbf32b0b912cc1e8c144bad66de9d67820cf1c81fb5df52636dcc8ecfed159a8315071d2bfc9d20bb39371a46f025f44b1e81012ebaecff4cdd SHA512 eaaaaf6cde5147dfc5f85193ffee960404a8b4086c2b8912cd9db973d7328f737e019e08ad76bf133bdb93bc641f06f09b971e48cc58f15a9152fa12f53e3ca4
+DIST thunderbird-115.0-ru.xpi 824481 BLAKE2B f0eeb4db292dba6a3e222156604898d31c710bf270fce63ec1dac690aebc5f47e9fb4ef077bcd3b34364498d3d384659e1fb6ae8c7c9641fd8dbad0d5c8f8fa2 SHA512 abdfbe5dec84660d5bf90fa93cd7b30cc0b60c5e54d273fd207aa9aea94fb5c4fad6079c90a989e297f3e7c5f2c00ec347bc64c66c395962435ded2620da2bb2
+DIST thunderbird-115.0-sk.xpi 739573 BLAKE2B 96700426da5332ac9e0b6567c39089332b7cdb5453ac1b3160e0c2999d59e7e0ef14549f783209d3b36eb7bcbd679d05f1f263ad171d9453c3633ef8b9cf63a5 SHA512 18b5ac9bbdcb152696871c87b0ef7fb06c2dc4fff26d0af8c363f97a877e6527f2b9c3baedafc3013a4fd4958ea5850e8b1ab0f891c9957d9b751dc33f9d8557
+DIST thunderbird-115.0-sl.xpi 703379 BLAKE2B d2ff43dd705e8786336bb36cdcaad5a59ec01db93896684308aa2e7c9e773aadcf524583fec8e06892b291fd245726c08e4d077f1c79554afb74a52d74a6090b SHA512 e659ea6154dd99bb2ee9d69d38f1ad735445f53e99a0f92c3ea2968f5109f1aecbe5a7dafa61e94ceb4550415d124159b2b4662914e6d2d63e7634379a01f324
+DIST thunderbird-115.0-sq.xpi 719814 BLAKE2B 694f70a676b98de463358494693a38a264971ec8319da1051a68db8dc110293889c1c8edf60652d7c93858f152e7a06c752da9151bdd3425abf012d34e2c20f3 SHA512 eccfd7db69a6711c163316324d8b4cb6776b11efa99e6a5e88c330d4b263bef28095266a33670f249b484115b944a046b8b765c7ee39e1986307fbd16d28c851
+DIST thunderbird-115.0-sr.xpi 743453 BLAKE2B 53c5bcda3633b9d173e23404bbc1a6e05f7f7ca87c2ab15b7057e6b661dcdd37696ce218b84abfdea61b31485dde2886a53cbb4a684a383f9c36a0da54923d4e SHA512 3d16c903df811ea23b10631dc6c63d6a0423c5aa25d38dd162f86889fdc2cb8606afcaca05f465a0bc7b336838d069f82953483a9f2ea2d655a17a819a24eb40
+DIST thunderbird-115.0-sv-SE.xpi 705305 BLAKE2B c89d0dcc94dbf0f4977504b0205e2ffafeaa8e2dde4487b626d1cbd02a172e3bde7ece7bf0b98937ad6f191b38572e449c214532d6e7053685cab4dfe7a367b9 SHA512 62f46868f1ce44134bdf9adce5589670e832c387baac54a7ebc43fa419149daf9f2e379a6f13baab8a2b7410bce8c4c412e25889a67ba1836465cb5bba292fac
+DIST thunderbird-115.0-th.xpi 764791 BLAKE2B d2032172cb8d8b7bd0924bc2fcfed03be2d8d717f4d262a7f88d46ff255bbc06702b96de589da2b4e19af2f01a6d1f37f4f94bdae4b07c67a6ad9a441c783208 SHA512 183d8ccd8180a0c07ab2931eed10a8da9a89e8529b5146f086497fbf8ce8dbbfbf819014d14a3f10e985c9de478b83e5d899406c420b2d6bebaa10f777b53503
+DIST thunderbird-115.0-tr.xpi 717057 BLAKE2B 89ed20029316504a01e1a0c482f8c2d869d040519dedad01aced7c6833dc8a1e299f3bed5d8f784d9995dd850b8762128ca2f515457edd732d9fdc560367f83f SHA512 13922064447cec50491e7df6336e0521c63691af1848a0baae746436bc954feaba7f09fc0e758c7573fc5d24fb9e9b93f4f09ef079aea21a072af8cded7cfec6
+DIST thunderbird-115.0-uk.xpi 816497 BLAKE2B 22024721fc8710a6d3e1967c318b3f5a3200ba76012f9b59d5fb243034f221377cf4b3ab98430b03d1f1d269f6a2c80e161e64f3e38e726712403f1fb1f8d6ea SHA512 080b18b249f1ddc40bb62420c8ae0015312478ce67002bb5a7653fa337aa29683d877a1a446fd82c12cfe32edc26d1610799ac6992d15443ed9f31313ef60fe1
+DIST thunderbird-115.0-uz.xpi 581329 BLAKE2B 797c80874972fd2e472027aa7661b8a0dc18c1e56e0a313bc4befab24f57c24fbc785ae3601de0fdb0f2d9c1bfb74e332f7668b14b8ccd2cb58429d194e076bd SHA512 d056c7456e0231a35a93b8ee1a3147322210398222bae630def218170a6c4067e2ff7e623ce913f234b6d0403d5c888df11b81fa180e56e178f9949034c53f6a
+DIST thunderbird-115.0-vi.xpi 745230 BLAKE2B e98a694c6de5c161557d3f079b4dc4cd7c34d3011056d230c1e3f5ed3d49054f80915f770df8bb2cb6f27b707dd4e7a34558fa27c5c8b048e09c406df3a3d1d5 SHA512 173688f3da5fc404bae75ebab09a5958999363c4c12adcaea6fe828631410d70f2688a6998af54d40e91ececb3f6c435bc8f99b38970c5b8d47f47b9ea9ad718
+DIST thunderbird-115.0-zh-CN.xpi 742148 BLAKE2B 7bfda11b88fdd2ac4abbfefe1b11acf3fbfca6cca979b415388e2f49254a8fd6dcde4b8639a875fdf9fa6a96d6eae140d76dc02811267f92832e1477283a786e SHA512 0fb58c5880e72ce6abef8ac31660e4e84c6397a3782e44c8cb662263f3335150d2b0c4cf90f9221d9869e4404ca1f7af076cffe78d99745000644cd1f8a0eed7
+DIST thunderbird-115.0-zh-TW.xpi 746259 BLAKE2B 2acbd1f9eb2f6cc31c2106a84206ed8640025c59725a07164c1b1714da98b2223cbf5437b70cfd7a8824e4d2ffc8d1b1112e99580d47c8b8bbf8700ff4f222d3 SHA512 5fbb1a6c9b5b0323e3eabd901896668bb73580600f47e0007c809721ed070ba67f690bd6d1794c9a49d5848dbfd9abb93bbf848770a03d33d9f009811765dc11
+DIST thunderbird-115.0.source.tar.xz 531139876 BLAKE2B a3eaddbcee2ec24e3ab8e6f51e1561fc8de66de206ba1c4403a1aa1c803f37ea8da15c4a296516685b125060dc19663e47a5e8161d8a7ec6d65474d2c17a5e93 SHA512 2370a8e0b5ad2bc71bcb787cc93d31e5bf91bee9a4126c8677210e05936a726938b5fcff9b83c2ef1f509c1cadaa58638ba2399682308f32326a054496ea7a23
diff --git a/mail-client/thunderbird/thunderbird-115.0.ebuild b/mail-client/thunderbird/thunderbird-115.0.ebuild
new file mode 100644
index 000000000000..ae13a8214f39
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-115.0.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-02.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
+}