commit:     4fa90f537e9795a1efaf5f69e9bab3892a62be02
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 14 14:23:17 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Sep 14 14:24:56 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fa90f53

mail-client/thunderbird: add 115.2.2

Bug: https://bugs.gentoo.org/914073
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 mail-client/thunderbird/Manifest                   |   65 +
 mail-client/thunderbird/thunderbird-115.2.2.ebuild | 1313 ++++++++++++++++++++
 2 files changed, 1378 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 2567e8240b12..bd18082a1c34 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -260,3 +260,68 @@ DIST thunderbird-115.2.1-vi.xpi 742717 BLAKE2B 
84991b016ae89d69f9954f7e432c6a5b3
 DIST thunderbird-115.2.1-zh-CN.xpi 740788 BLAKE2B 
22d850e67ff167959f0a444818a65825f6a1d3133df807540974d1b6eeccb56b45d9b76b909a0966c906b5f598e32e3f5e8540783e8b6d3f94fb3504642c5885
 SHA512 
9d49aaed0e45b1972a861728425511e4f83ad7fc058e98d9f3a238ccc698b965e4380bfdd4b88b4023c10635e32c67dde756ed9fc18414f5de2f5c8cbbee6212
 DIST thunderbird-115.2.1-zh-TW.xpi 744415 BLAKE2B 
5d77ed42c4e0901cb979b2d68ee347b052981e3cae2fc20e7da27d1d97bd386aa7c7f81785611872a29ae845069f0d6606f2d9b1b8686756327bda637ee7ae84
 SHA512 
4984036f25d3d56111a3a7dd1ee8d7aaeea11de61bde0fec302d1f0e923bc961f751da4ed018951173c7eed049602489a011d71d8b8d647691fb653a56629458
 DIST thunderbird-115.2.1.source.tar.xz 543757820 BLAKE2B 
faafc959d88f4a8a81f9cf34d28b12ad07da74173aecb03ec7465a7e5e60b3d12e95b31bd1e5d1a677c818965f0942f13c7dae3ebcdcc5c60cf62eddbe15048e
 SHA512 
375c66efe9637c41e4758fdc7477b64fa700032fecc0e5e93fb6a4659c1ceee99b2c366e19beb96252e60dbbec78ec37433c3f70f7fcc0f305a927f95d753c05
+DIST thunderbird-115.2.2-af.xpi 542153 BLAKE2B 
e88d73be471bd8b3de654d8ff6e66d90571cf3fd4b44182b0969f93a48e809ea959754aad853d9d54c8388aa8852cebfc4ca28553b19d2d7fc9f040f6f7c8e3b
 SHA512 
4a19a46ccf11cf454d9655aee26757e82ccb8949c94c6a594958d1586b905805bfbfb21a63f665d0e2eac2057ff054969fcef7b58fa5dbf9651ffa58cb34a556
+DIST thunderbird-115.2.2-ar.xpi 654725 BLAKE2B 
8c8084fc40eaa4dca03997bfdb6acf87416135e5f1019b43a65bcf3cec4394ae5dc036f97b3098fabd129c791289676a3dcad99ddef56bab15b2242c84e93d55
 SHA512 
3eac7b797ab081eda5fc7851d5c936de4b8513e1e8e33650e0cf8bf5a44387bd2c51c1ad23c83f0ec77123abefd598aa6b343ff8446c14cad19a70d6c2f973bf
+DIST thunderbird-115.2.2-ast.xpi 561117 BLAKE2B 
88d30210910db37246c89f0e56666ad464da7b97d19b23532e0021819dd3f248b4d1559ee9793f572fb85f343c9ea2dc3a40a16bad9b508f113426ffbb63e6f5
 SHA512 
66b3bbaeff50c327416fb361fc3742283e03dc7a4f89c9010785f0f58fb97cadd77f64fb74e8fcfafc3b637ecadcb4ec7ed17343405851a4c0d5548941b75bd5
+DIST thunderbird-115.2.2-be.xpi 694082 BLAKE2B 
a347ee1ef1ae904cfbfabebde3f03b15c17a7ac82312cc97b87a498c7e300553a9b0775fd4c274113da26945d17bdacd5c3d559d1189d0d06b107d1059a764fc
 SHA512 
2daea0b8296e709d90c17dd84a061e6b07f1f71083b4839d4815ee1643666254807775b88515902eb4b8be7981b4d9e499345fb79249b03bc5833395b607a133
+DIST thunderbird-115.2.2-bg.xpi 681251 BLAKE2B 
8b8331dad7510407069946d7d08751f6b343fe0bcc3e8159b668ddb36bef331d228e857f9b96a9625d1a5546f92c5faaf1576bb7e1d5c9c919042862ff684187
 SHA512 
87af4234dcee1ea0379a3a68a6f738bae2816d2155a7a46e9f417f1d1338412d58b3c42467b77dbc090c105c6323a31a3eab7539e9c2f179cb5a2574731cb1a6
+DIST thunderbird-115.2.2-br.xpi 626487 BLAKE2B 
40e7549c9f9d4d39803ac91c6fabb1f06154857454c53ce80320280904e088c9503a94d3ba2cdbaaad5358624d46701e9c5135ae22e4dfca4d94141304e2e2c4
 SHA512 
8a7c8bb77f664b286a3e1ca12b19a252f97e5c736dad8d46d741a2a08befcbbd0c430688da100c784bf39d6eb6be0bbfbfb03806cac708b59a55004e2adf60a1
+DIST thunderbird-115.2.2-ca.xpi 664391 BLAKE2B 
e5d0b8e8d89f94dab23256b13035bd1eb8080b5184b4352d7734b32331448fabc16f7c5ac429ae30a5a049894bb956f56cc997015ee13788f79f4446276ac007
 SHA512 
0a53a510b4fd219513e06123ef621a425e127586438a68efeb3bce0a976cfecd90926bead372463ddba83eba5c1db59a6f263757279aa56b370024013e215c1b
+DIST thunderbird-115.2.2-cak.xpi 657815 BLAKE2B 
fa0323c36945120f70cec0b90d8d0d9e3593733e2e9f225c4ca703d865e936d85503ff0e040bf695489aa4c75f229a9ea62be23bd6563ec52c5daba7b317b4f9
 SHA512 
945d536ecbbf6d7a25b03dc1a22694d8b5d839d102320a115a65aefa81621235cc9eb4f01891847e6e55f31e5c2103390a5b1e135019bb3c725e71e9a0852a47
+DIST thunderbird-115.2.2-cs.xpi 733925 BLAKE2B 
e8d7668f2811329b3fcb0e3d6ee20a698d3a5268bcfecd0aedf8e0c93c89b3d1943a64a0d6e78e97b587bd13375f73366c6bb5747b486ce992f891395ca12773
 SHA512 
2540188fed14a3ad887d890f4e6545aa8c5af5ae64fc4fea7dbfa1c19dc732de29a1ffd86cceea36015a9563fd26d8b90fa0195a90318c1905a4e0d0db0acefd
+DIST thunderbird-115.2.2-cy.xpi 703324 BLAKE2B 
0b48bc1e3b78bd36a6159a7ff6d11ed33730bae40b37eb00614c62b6fc96fb955d20119a3dc51b43461d87656faa1b5bb1f3052b12ab2e8e5a738483971c1795
 SHA512 
73435c0448d54b373860fc49ae734b8a03f14282db9371c943889f6fcf75a93d8dd39e8eafc7899a8a091d08549d2935cfd70d09530d5e541ecf7ca7eee7b72e
+DIST thunderbird-115.2.2-da.xpi 690777 BLAKE2B 
5b370d7b585023fc998da99aed9d855c939ebcdef35264c5473094c58fab0efd91bbb345b827e0bfe70412d254dfb37bcec0ea6e913099dd52678223beb65cc4
 SHA512 
6f18b352cd4db4a10245c77a72861b0883dbd996c8d4e397f52cb15732a499c072f288544df3238e3b3559f4d337d1433e02c9b3a0080e2a0ebbca155426d91f
+DIST thunderbird-115.2.2-de.xpi 720270 BLAKE2B 
58e87cfc0664920849033825d6f2acbf677c99ae1eead6c127fb8f6e73dc2502971f8f2aac24df2497e2962757258b9c3868bfab43810d9e826d468bb92a280d
 SHA512 
1550b9813d04a1aea73789a70084fc3f5f19f74af5f7d069b1b3e16438bf9de35b1fa6d9194db4ff9d1f889b9abad2faf32534d4c29ec2bfcdb3fbe4f43c4b4e
+DIST thunderbird-115.2.2-dsb.xpi 738022 BLAKE2B 
a3267dafaf215e01a89a1cc695fa15007f2ff222911e8887cf6f636ae458a43e8fd66aded33969669e1f9d156bf19438e3c22ece9301c5dd91e416e084aba9ac
 SHA512 
ad5859f2656374c6977712a7aa8e38f54dd5ae54b1b5493200ef1cda6e4827661f8ce9fca620c7b2f31e25761c015fa63ebc6abeeb51f866102f76d0eddd01d1
+DIST thunderbird-115.2.2-el.xpi 837360 BLAKE2B 
95a803e19c15f6ac89e4f3fe6cde4586a328cdab33f5b25e88f2f76683f320013e29b7808f11a773eda155a023df1e03d5b09ea5e5b550eb63b57716924d94c7
 SHA512 
710d1582344f983c2b58d53a290db8d46c881826f8ebc3dd1a0cc040320867611f78d899318781e7aff6251a5fb2feb17ed2f0449b87de22134493beccf4b224
+DIST thunderbird-115.2.2-en-CA.xpi 648448 BLAKE2B 
55a10fd6aace0bfc2052f7c514ae4647bad0a445a3a1a1a0f9c0940a8ae0d0158e246f25af7128176fb4a660411d81f7fe2252f858a155c11384bfa388a1cabd
 SHA512 
f12396483c895763272e88efaa5d822ae8762309638a8d97de7578834998b904828155d7a16d70e8f49d93c14e852ff21a63b434d1ac707b8091c122920bf8d5
+DIST thunderbird-115.2.2-en-GB.xpi 661514 BLAKE2B 
302dcc04ee33bd267ce916dca40a4d10d29fbfc093781c7b08878d38c9ae00cd0282bd0be1c2ca46c478661e42cc2bac8b0c03d4459620f3277e87d1c6e950cc
 SHA512 
fe7dd9751acd27c231bc6fa38eeda9f51cb154d402506f5f00e04dae315ccc481f51892c2408aa49b3e13dd54c4b190f1a68d46fc33adf5301b5b25a4ce462ab
+DIST thunderbird-115.2.2-es-AR.xpi 713107 BLAKE2B 
a0c231908ee7ac85322db6e98fe3d9f39032f496e607545b5e1a4aa753b823fb6187a7df56dacd83a4e06cd9cc34be6e9ec1b86a2782d9bf59c70e958f9972a3
 SHA512 
1e0a811a658057d1ff700ab2a5045ac12c580abc281d787dc62e1f88a8f23e336bd916326784c807506254883afc9c210228a1cfd1946f6421f6f425a7c77be7
+DIST thunderbird-115.2.2-es-ES.xpi 675702 BLAKE2B 
ff455791c6344e29b33fabafa4af7014e265bd64ab7e51db91be0e7232176a5be760d1eb4bf27a442d244f6466cc0835b8df753918f526978caca65ee4f7f3b1
 SHA512 
6f80e645497421f3e721916349ea5bfc1dcb5c50e191764a624ba2d249eff098609d58c1e79ea21227a49de06be073c47b0de6d06fd7e8618c65859c23a80e73
+DIST thunderbird-115.2.2-es-MX.xpi 710139 BLAKE2B 
6656686179c28bc515c1555f81010b4ca416fdcb5222539441bd008b0a3823c9d451e2522e625bfe7fc549c578a525d64f2d1ab52227a37a7e936ad82e365c26
 SHA512 
11c7d33f218c3a58b90137accffa0d5248ac6c3cde4d86ba8c0a8eff5936b0f86f9bc5e4dafb4fa4f7bdfd32fe5baac9f9c37d38efa44b523621748a1bff0c04
+DIST thunderbird-115.2.2-et.xpi 671818 BLAKE2B 
520633f99ce0d35d7925a7977721cf2824ab301ae7b5e36b99227e06215a779cd016be8ba22caede6570932e41f8ff8b68c504db0f41da1b206a1ed71d5a986e
 SHA512 
3a6ab4089097589731672e5b87381ff22fab89b43878406e55cc87b60ea3d6115595787fe75af55ab33a8f7f8a985ba62d614f9a0707448742072e648e1af671
+DIST thunderbird-115.2.2-eu.xpi 692537 BLAKE2B 
12b104000157a547bfdbce0f4eb3a7a9ca69db328e280fdb62de260bd5279b855456cb583fdfabba0f875573fcf6bb694db264133fe8e3122e0929c8255dc7bc
 SHA512 
1cb2c86b31896928b3049daeabd19bb9b747dc25518094ed215c4d7563368da2bd77b4959b530565568ab633691fff8461af64460d4c0f4f9536cd28de2f73d8
+DIST thunderbird-115.2.2-fi.xpi 689876 BLAKE2B 
bf0c72e3adc380e4b9956430ef7b09828f5f4b93c8ad79a5404952422e0f5f3af1d1064bb0cc6eae98605f08a5be9a6462e5476677ba11c5077853b40eb9e4eb
 SHA512 
9c1a29caf1d669d3744d0934ce086e157f8eacd1b20ee7a6524507543477155879c66ce240af429c3c5ac95252d153a6c3bab1f190e6e34d00b1fae9624fee4a
+DIST thunderbird-115.2.2-fr.xpi 725334 BLAKE2B 
bbb3fc295d290b297aee8d4bfc6918ca46ca6f85eb6d03eb06239e5bdad8566ec059b2ece1bcaf5b2ccce412cbbab78f9f466f4cbbaada53f324ce8da3a1542d
 SHA512 
5b6b17ec410f1269b5a56f891ab87896785655e65eac388f742d40fec811b69d1d2ad55b71214beea6ee176f7a2ced5aa0687a50fb107e6ec3e4d6dcb5c36b27
+DIST thunderbird-115.2.2-fy-NL.xpi 707904 BLAKE2B 
9f0b05c7b0ba458c35a25f3be239a971abd3d8dc6b3a7453b9303505bda56aef2e6c85c575f42677b9695266496536b29b10ecc4330d937fba732007aa510f71
 SHA512 
66c01818d3af809a2151e4fc87a669cf063afc280fa9ef8e5a461d7b34117509a837dc5cd8154048ae32644189a62fbe8ccf50949bae62ae5bb0a594efdefbbf
+DIST thunderbird-115.2.2-ga-IE.xpi 601815 BLAKE2B 
1942288fe875472d3485a403449a2180124e81d134cbfeb8acaaf4d5ebd06a46bd7a5e632f91e5a53affa6343a55010f24ab69b71f642666c965da118b75a3f2
 SHA512 
ab6597458daf4b77f4887cb38ab2bb0e8707fc4c000cf07050ee3e3d2b934463e4458a8a5c64a454c4a2a512882277d03bcdaadb2724a5bdeffd9688d2dab23d
+DIST thunderbird-115.2.2-gd.xpi 702991 BLAKE2B 
913d10dedb59df01e8d70e0dd970aa55a189d8ee4ad5337b806cf9a050afc321714a265852fa896674851c7ca73f3b9078264cfba3f42a21dcae884a6a73fbf6
 SHA512 
2569970b7b8d6e65993c5b01c32be8857b6561690067b3657f9997a54335c81e7404110095a1ee388c934196cc6f5834a4f08d0db0bac0953543830613aed247
+DIST thunderbird-115.2.2-gl.xpi 705421 BLAKE2B 
d00d82c8a356c70907c8731d95c79cef54d6647842865a2ce78bbca292d53bd85abe1c3e2d9475258fbbdd9f5f49f63926b71e846eb26d212f6e01dbbc719038
 SHA512 
3cea1f997d20d4911323b47d5f61c2fcb3d13a52bc7ef2d9aec7d82f34d6e0eb9d366d4d58e950e4a461bb55ed194c31781be93f61e9121eb7ceb01778043b18
+DIST thunderbird-115.2.2-he.xpi 667476 BLAKE2B 
3c9b587d5ac6d9e08b1b577c297cc0f9ed44eddf3e5272e94f65c2079940ccf6ce1cc3aa65345d7dace9dfd4d7dc09a866a8f05de9613f363ca5953fcfa5ed6e
 SHA512 
9a247dffc3b862fb10c785784963c2e624f56de5ff768caaac82cd2ccbf595d022a93c934b63425e81cfa1c98bedab7c9b67bc39244cfd7fe75db3cbee309a79
+DIST thunderbird-115.2.2-hr.xpi 674900 BLAKE2B 
807ce96f5709ddc04b1c6617f6fe80918716257f7aae700c2cc5a23ca49530340768668a786ddbb7b15feaa1fa9e8b5d0b612cfe676df79fc133046d69347d77
 SHA512 
00cdd54b1200196b6422ddfaa96679803d32669f94e7614159a9eb706710b909d5036dbe9b6b8b2af60f4e20bddef4001b17a5bec6b20d9c5cb37b1e9cedac90
+DIST thunderbird-115.2.2-hsb.xpi 734546 BLAKE2B 
04dd3c3d26da953306566a62651981fc84d74caf6a6dbfb109aa2d1b7f78ddf4ee48ef691056fd2259157d1c45062bb89ca4d9107fda32a06184f43120f1f830
 SHA512 
78c08e6518eba3f537b716c5ff2b31d531d786ff7832c98b6e55f792c10c6e44fd9804adb1f65c5d683c4980326fe7f3d140559f0747aa6ea41d955cda003bb8
+DIST thunderbird-115.2.2-hu.xpi 737466 BLAKE2B 
ca03c42437ba955693d08b0bb958222adfb7e92e6957af756e7b8fb2e61a3f0bb4fb838f604b30888bed9731223c0b24d3169042d7b3eb53ef354066b494b827
 SHA512 
5e69959b5e1ff717ed7cc5f578adbd5354811e6782e3f876d3f650fa6eb353d0394021b72b114da72ca6aa4b924ea2e4c80fd6e05d0d9d5d05708e409abfcc61
+DIST thunderbird-115.2.2-id.xpi 642539 BLAKE2B 
0501128535a0186fbe12ae3e674a1d16912e45de65990f411a4452dc17c446626af7ab2917447ff73d71cdd81fced1c5f81aaa9fa33af15e2fb4f9ee6c1484c4
 SHA512 
7c380d84dacb0015c383633fcc1d3b23dd97b91bb68e45820dd730ee1f8a1feb1e2993be29b2a6a5cf9af3b7a626edfc30a054907105ecad2d353d2213b5ebd5
+DIST thunderbird-115.2.2-is.xpi 702209 BLAKE2B 
41e0289ed31c789f38eae4d04dbdb39543f6b11b54f38baba4868c821744068a02f59fa963ad2f6c9bc0c91223f3b2ee308d313bc2863a4816a885ac33e58053
 SHA512 
2672fedbb3dfacb593eec27e77dfda6289d6e659692866b00536eaa55871fb09b84e04b30fcdb30421595271dd57d51ad9d17b8269d081c29fccd948d27dd56f
+DIST thunderbird-115.2.2-it.xpi 643534 BLAKE2B 
2faf36d464ee2478b64d2ed1c6c71c2a93e40f9f177a7a9e929aadb99be30a272726a27570244323b78c458eb27128968bc002c93489ca53e275c785f01018cb
 SHA512 
7a9dede578dbe6aea161429c8eb31e22135792e5a91f607723e4620f199fb17f63278f009de5fb2055263be21e6342b7f6be8a80f4b93fd1e79371e343cef3c1
+DIST thunderbird-115.2.2-ja.xpi 781686 BLAKE2B 
34cc7d7f6f355ded2aac36ffa3b24d5bd7bb0ab51d44d8496c317a91d28e494fac5e38fe7c9b0093dfb59229b9cd45c060836be5b9856dd84a769197eb07c8a8
 SHA512 
2d9ee2435eeb7e897e21bfc7b99b27a76742e0906e84aea9f319ee325ba71df0d8d454f016dae361d3635201c770f01301dc3f22831f3f797b4dc39af44dac2d
+DIST thunderbird-115.2.2-ka.xpi 764446 BLAKE2B 
48eafb4b85eae2a203a5345a653c9727d66cf3f3908d5a4b5036f30194ccd1a21260d6633d71f57555f39753c09261e97ed62ed7347ddc92cab2e98c79bcb32c
 SHA512 
74bf086a31dcff5b0eb35547baf0e3d64a9c3fc0e216a2f13ee66a4a617d965d93db2837ec61693734592a92ab911ebee0638a45b099652626c9f29d1838e38d
+DIST thunderbird-115.2.2-kab.xpi 698916 BLAKE2B 
46fd22979d437cdd757ba8cfef3f2e1810c9ab4895fc2e9ee51b267c382836b4a7cabd7775d4abe35e3a170c06230c87657c2a3d3ba553ef5aff74aa19cf6ac3
 SHA512 
d326aa0dbf1f5b2eb2c396a507d9ba7df2fc154b963d7750d52134c1aa774c25d9363c541b427c01c0d542ffff8290781a530850e95887b01b2ee621715f9d00
+DIST thunderbird-115.2.2-kk.xpi 805071 BLAKE2B 
10d0a43a25bd50b5851e9f161e5dbd77f08be8d6c3f09e2c9e2c8d05039950b3353d70ac6b0e962f9e5723392251b76bb03e4a27cc734d3615f43a8a38facc6c
 SHA512 
8fff50aaf785e146e93040f12d5c3eed71161102a26bf9475b85a2e81ec85572bcb8543935131d7d006f03b190b5de616809e55bdee56b0b44e526e1f086bfbd
+DIST thunderbird-115.2.2-ko.xpi 712206 BLAKE2B 
25a0905a9e3bd663e240ac027ba50303d9060202485243627f3ed5d736f87c19553e5bd59a0b5bd323a203f05366d755ef510eff3f938b2e0e70c5ff29fbc5e8
 SHA512 
316892307011960f422d7f2318dbacacb0947354dbf87b20ff51e35a277883c7a9facfcc20c9b8d3d76f8bc36222ccb4989ebccd002abc108fb58bdcd5d9aa7b
+DIST thunderbird-115.2.2-lt.xpi 680094 BLAKE2B 
40acf4df9ff20ad8fba68a47850615c16a430bcbc95f9b00a5b533d9d699ab49b0696f86b54822f2c214dd6768510c2e96c8f1363fea81bb23c7cd8eeaf16f58
 SHA512 
1d6c1519320a479da13b827093fa7a605b69d21a3559baa22386e0579cf6e3993a6508a93cef52a410537a13a92d547046b57fe5c4fb09a6cb600dc767c9e5e5
+DIST thunderbird-115.2.2-lv.xpi 604645 BLAKE2B 
a86242f776f677eb99c6de878d2b6d1ffb93a0c496ecb3efd5225081c40bbdcc175a111324e6838f7263e71944be23a84eece54d4b6da9dec3b2b246a26520eb
 SHA512 
89dbc094137f7411c23e9594ac5963b2689ee4f3e07a56ed0b25ccf5a587b674fd0d42460c0121dc510e9a3e6d8c1ac42c5a5f95e01d9da80c610ed5324bcb0c
+DIST thunderbird-115.2.2-ms.xpi 565731 BLAKE2B 
f651911b46cff4afd29a55795c86a534ea8554a9da3d4fdbb2324473ec03e91959c5d624f0a9525501b017bb579b6c02ad496a879dffc03a6fac422b29e5968b
 SHA512 
a41de032883bfeb4da2da2f8acb3bd09767992e95418272271f1a0bcfbc52b8aee324e5eb36b832d90eec679518d365aaa83c7c110b257ef7997afda9bf49ec7
+DIST thunderbird-115.2.2-nb-NO.xpi 653865 BLAKE2B 
42c4656ec5e9ddc499f671508ab0b3868933a28fdce2da3e206eb5a98d8c64311b0deee893db462f3ca61ac523575533fb4d68cf2d9f5a83081d246ec76f26b2
 SHA512 
a29cde257e355b868e9fd25fc052bf7527d78ebb0a5c87d29881aba7f1e72abc532eaf9634b068bb49ad97fc25d5d25ae1e4451f9c1fdd2cbd95a55fd2c12ba1
+DIST thunderbird-115.2.2-nl.xpi 699499 BLAKE2B 
e4143a3d75b09244081a5ea4ccf8fc072c42a73878664ac9cb3a8f1d86c3ddea4f94831c77ceaabe76c9574aa3f2bada25f9212968061f92cf70b6d1b93559d8
 SHA512 
02c5fa8afb0d7bc959a893fa4c68393e961d31bcb8259666887447b4cb7b8a46a642b02aabe8a25cc3d48243c1225b1c5789668f38378d4e563d54211a6eaabb
+DIST thunderbird-115.2.2-nn-NO.xpi 673376 BLAKE2B 
f9f0b93c2d28ba61e532bdd95d7f928ecd6a9affcab980538330124cf1d2da22abb892d48f56a70a730096eb083cd9dbf1bd3b0e8884e79f7786e6a025ffecef
 SHA512 
37d51a6c7ec35e330732b180413f18ddb8aff1be761705926ea2a9480dbb9ad198473935a34e70d4690dfc5ee36dfa57aca3285361d73cc5f37a59ab6d9e9c45
+DIST thunderbird-115.2.2-pa-IN.xpi 655776 BLAKE2B 
266b0a2f8e81785bfbe406a683b66fb263e513d55273fb282fee54fd6fe560c248e4911e9c834409fffbb59f72221cad69694e49f478cfbe8cc49752f62afa64
 SHA512 
032287f774dce5d60b2809ade73199b070366420b3dc8a71e0352f6ce37a2c8e4218945729a71eb87fba34f0b48a4d773539023c9c7ba14b81630ad00d52a39b
+DIST thunderbird-115.2.2-pl.xpi 716598 BLAKE2B 
6a976c36aaef966b2a1f21f8bead97ffdf86e75c66a0691f79d142644edb102f53c7b07ddfb131b73e3e1545396d96fda2c5285aab3a071e0840913dfbeb4d19
 SHA512 
06af9aefb5f4f9f6135245cde04c0235eff0f20c0bff640e52080eacbac1c69f8177d49f2769d6a1c3f86be1dcafb9eda49081309d1b0e57eef5eac59a2d35e8
+DIST thunderbird-115.2.2-pt-BR.xpi 707262 BLAKE2B 
18aa3b9c8ef8a61eb14608f8ccf4b6f636f525a21cf82c577d7cbff1968b8c287b0a77d47032989f10b362634d0650eed7154c50d3850829c84967d660bbc609
 SHA512 
577f694f7d528581f96cceacfcbc593144be74b4e25698fa715e1d9e4ddf6f87712018829193ea1ba2841e34f4e8be94c2af44678a934ff9550208ef22f23968
+DIST thunderbird-115.2.2-pt-PT.xpi 687832 BLAKE2B 
1c9930d4f3ad5b60fc802c035a9913b0271888c6b37c25b65d9792c5a9b209e1ea413d95d25fb0ec537c6080c7d5cee3e69c418a0e103eae767964d90c80178c
 SHA512 
fb4bdca32dbdb080e3fae2b98a1bc5bdffe8a6a0b00e74414001562e5811f1b2e947c918d21048cd41ec942dfac0eadc0b8a7bbbeeafea16b64ee961a8ee6496
+DIST thunderbird-115.2.2-rm.xpi 704042 BLAKE2B 
5bdbbde7de1c5a8516582b98304cea0d060853eb7ff2a9ef972d8c97b9bc6e5e36ca28aab711a3034f62b37ba3c5b66a027f42c02a41570d327c0b984b68b08b
 SHA512 
6b43cc4cedf8729c7a3688c97bc65a60f23c1e9009a00fc0f265182a873d1b2f119b5acce8f476c9c7d7da1fd2fa098e7489754dc0bb2256b8e9ecff566f3f4e
+DIST thunderbird-115.2.2-ro.xpi 651296 BLAKE2B 
f7b69ddff514473a6faf01ac85e1ab8b09802c405ec5a4c0356870c9fc5d502eab2f6046447b8010d2c34484137f61cd7203cebb3b63774ecfcf7fb92508d5d6
 SHA512 
6d060bb9543250ddff1e3d5a09da811f10b28a59582b9e90b363029bf42ea4ce082bcd31ae68440db72d8bbb78fa0cb71bddc34ce1afab61fcba768afd619d0a
+DIST thunderbird-115.2.2-ru.xpi 820867 BLAKE2B 
7466145cfafb71f2f15e7681f47534dab2c1ba0a7c9838acd704e2b80a23b4e5d807487102aba91456ab8f852e9472db9462a6d8ac90119b78131196493bef4a
 SHA512 
9ab0022615d20ef312e5046065138ed00ff747c6068d4d4b317672fadc4552f4f00b102065f641022cd1f7ce8175bdbd2d0fe4213db902415a7c202f982f8319
+DIST thunderbird-115.2.2-sk.xpi 736655 BLAKE2B 
1d721bc332bd25e7033a534e1a30bed815ea184914717eb0dbd9c911feb7998feb72afff87f61fe6fc89a1deb45e44187bd6182ec11879dce341b700f0412702
 SHA512 
bb15096cbdcd6f0980187209f8b13ef3d4825831ecb8e7d93ceb6e4c60c2a0e5dab73dd1f181b21cdf5b2d52b6b15ec622605317afce786b7d33658a64bd0c2a
+DIST thunderbird-115.2.2-sl.xpi 701217 BLAKE2B 
6962427b0815009d4c43906441963080dad05ac2a8fac480cd09e2a63fcec37492f815c4cadaa76efdc197d06f5920c19f009a424589fe1df381e832535af9de
 SHA512 
995e41103237393e6a8f6029437393e5f2d96c76a5f13251da7c546786533d203993e07b2b19c152086525c0e4a0b3281d943498b33bc5aa65371a97fc6f7b4f
+DIST thunderbird-115.2.2-sq.xpi 717448 BLAKE2B 
f582cb047ac311a58676d5dea648ff52eca13e591ad510a5890819ec170bd04c65684559c79f4343e417fdf5e8e345131ffc7d4f1efaa9fc7699706f47b43ea6
 SHA512 
dfe3500fcc979ed28c7e4c4e0fcd70c2589f9c4622bd77207195607e34900e884594b60c58d044d86af65f7ae7b31998a251e14eb3ea0c434741b632a5a0629f
+DIST thunderbird-115.2.2-sr.xpi 740170 BLAKE2B 
ce39a0578dbb144a6de6aa112a0cddca916205b4f166b79d86061f7c7367e262157034fe94bb593de02d40a5b668cd6b8447a4b06aaf6a5044e10dbed61c5762
 SHA512 
a00ff522b96dcd836e1a3a6e5e3b70aa401f13b6394e0b0e2e704ee472665a3d56edc1e8cfd0a423aa3ffd14f24b55f9e2e58b2fa33313069a2d5d2716c5ec66
+DIST thunderbird-115.2.2-sv-SE.xpi 702345 BLAKE2B 
7315a0ae8838686753ca87739f5ebadbc907c661dca961da3b8a2704f935bffea06a209025eec418536debbc826a65f21a59936887221d8e40f615d54507d83b
 SHA512 
348cc7640ef7ea29a44c31c81d3eb063b709b1979739409a5ac6a3a014b54275bb0adebb0cd321041e38b921cba7c3fb1bc22237535593eb8134171547a17caa
+DIST thunderbird-115.2.2-th.xpi 761854 BLAKE2B 
4fadd20444e439ef3eea769048e418e15687a11ddb896db252e25eb76ab42d88e5765e3f660ae12fa309eabb30914963529a6baf340478ab196ad1bf7c617a1e
 SHA512 
ec930ae0bb5b484796aa68b258f306bab067e623a5ef9a6e670b537427924a06c2662709b6d53b2cf77b790ee24eb7e22d2c9524652213e3adff5ee640862745
+DIST thunderbird-115.2.2-tr.xpi 715001 BLAKE2B 
798a19bcab7507be869e98a71ef9928576f222f22ba66a2681a3449a8ff83f282e53aa97b57713fa0d15e63762bccffee7de213980e3689952e2b92d0dee1339
 SHA512 
006aa1f969a5ffe7750b66eab6d73c79e68c52809e64a580b2919cf0a3ce6df3a55d6ec5dcb708639c6cb2219bd6326ded4f816607424f69654061c5c1a2fb9d
+DIST thunderbird-115.2.2-uk.xpi 813756 BLAKE2B 
01efe876860110c72ddfd26b272ae35aec2e4c6e2a51e852cc4522fc15e115f8cf5e96e973bb540e4efb360ac3b02aa480900bc3a55e769c95668dac56af7f55
 SHA512 
adc0a0e1aacd031c72163f71fa9435659ffc6e35979dc26fdea9815554a2fea3f4bad2acb2073044c34f17778deeb7ca6759a9f87ab83f98d5fec790d849892c
+DIST thunderbird-115.2.2-uz.xpi 579984 BLAKE2B 
dd3e0817f2e7b6cc19643fa1d3347c4a8f2d05ede785419a102bc278fbb0f22eef180a80d93f9381cf8d95280c83ff34ca17a0410f2b979bdc8d1c91eb15daef
 SHA512 
a632a6697b0e5d155db162b53304b3560dddf6bf484d9b964aa374b2b5a588d34aecf4d6285ce4b1b34bd1550943c02fa1c0b23a8d8b58cc9991cee9523b4646
+DIST thunderbird-115.2.2-vi.xpi 742715 BLAKE2B 
91843e09f5408e2ca94fd8e0ce1a212971a74e52dd37ef5973a5a765a800ff36400a9814357fb9f2d4d1b60ef0a775a609ccb0f6a9bed00ce9caa978a939ea1e
 SHA512 
7b793b4c5eb2c530a391de85914aca1d49812d541a7239632ad7898b9143163693d0a186067814ae1594bb771fbeb37e2c3993da15caf18980bd3a1121b86684
+DIST thunderbird-115.2.2-zh-CN.xpi 740786 BLAKE2B 
e2b1623fe8a323d852b9b49b46e920bad7873938a8d15ce8ba67d33733ec2be36c8aaffab8e528ce7991cb59c30b19116c05888f1471e44385e2937367abad67
 SHA512 
613fd2e50aed4b932e8dda6486b0e0af1d5d40633adb81f5d9d9a64feae30ed9023460157fcc3e566f9117796e077cd8feed918bafcd178a55afa62f4152594f
+DIST thunderbird-115.2.2-zh-TW.xpi 744413 BLAKE2B 
295da23ab1803db39a516629fc86fc576c185e50a580d1c3153f5b4472b3dda9b0949cf5257ebb66f26283514ae14d4f7ffcd1295132360cbbfe71ff7bba59e4
 SHA512 
446489c2ca1a1bfc6e5d3459618c5cd4e8551d09083f70575998ceeaa91a5de6ec6a1e012383f8b61fb1d5b47fbd30617e1710539b54ae94d960d18c5e25e05a
+DIST thunderbird-115.2.2.source.tar.xz 531561372 BLAKE2B 
634460d713c102a2b923aac44865e22d24dff57c3fd1750018cbcfa67a908ca0912beec74803a35a668f7a685dd26e65c7a861efa1ac05a1e5835f29b3c6b898
 SHA512 
45843709c21eb19d69d43205da6b2f943b584811a29942ffef1933c1ce7882b48046b201c2ff198658fec2c53d479311d8a353731afe6ea53f97b31674d6074a

diff --git a/mail-client/thunderbird/thunderbird-115.2.2.ebuild 
b/mail-client/thunderbird/thunderbird-115.2.2.ebuild
new file mode 100644
index 000000000000..e7a18ed43a3c
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-115.2.2.ebuild
@@ -0,0 +1,1313 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-115esr-patches-05.tar.xz"
+
+LLVM_MAX_SLOT=16
+
+PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+MOZ_ESR=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+       MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+       # Convert the ebuild version to the upstream Mozilla version
+       MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+       MOZ_PV="${MOZ_PV/_beta/b}"  # Handle beta for SRC_URI
+       MOZ_PV="${MOZ_PV%%_rc*}"    # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+       # ESR releases have slightly different version numbers
+       MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info \
+       llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs 
\
+       virtualx xdg
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}";
+
+if [[ ${PV} == *_rc* ]] ; then
+       
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}";
+fi
+
+PATCH_URIS=(
+       https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> 
${MOZ_P_DISTFILES}.source.tar.xz
+       ${PATCH_URIS[@]}"
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/";
+
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+
+IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
+IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent 
+system-libvpx system-png system-python-libs +system-webp"
+IUSE+=" wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )
+       pgo? ( lto )
+       wifi? ( dbus )"
+
+TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2
+       selinux? ( sec-policy/selinux-thunderbird )
+       !system-librnp? ( dev-libs/jsoncpp )
+       system-librnp? ( dev-util/librnp )"
+BDEPEND="${PYTHON_DEPS}
+       || (
+               (
+                       sys-devel/clang:16
+                       sys-devel/llvm:16
+                       clang? (
+                               sys-devel/lld:16
+                               virtual/rust:0/llvm-16
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-16*[profile] )
+                       )
+               )
+               (
+                       sys-devel/clang:15
+                       sys-devel/llvm:15
+                       clang? (
+                               sys-devel/lld:15
+                               virtual/rust:0/llvm-15
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-15*[profile] )
+                       )
+               )
+       )
+       app-alternatives/awk
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.24.3
+       net-libs/nodejs
+       virtual/pkgconfig
+       !clang? ( >=virtual/rust-1.65 )
+       amd64? ( >=dev-lang/nasm-2.14 )
+       x86? ( >=dev-lang/nasm-2.14 )
+       pgo? (
+               X? (
+                       sys-devel/gettext
+                       x11-base/xorg-server[xvfb]
+                       x11-apps/xhost
+               )
+               wayland? (
+                       >=gui-libs/wlroots-0.15.1-r1[tinywl]
+                       x11-misc/xkeyboard-config
+               )
+       )"
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+       >=app-accessibility/at-spi2-core-2.46.0:2
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/libffi:=
+       >=dev-libs/nss-3.90
+       >=dev-libs/nspr-4.35
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/freetype
+       media-libs/mesa
+       media-video/ffmpeg
+       sys-libs/zlib
+       virtual/freedesktop-icon-theme
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf
+       x11-libs/pango
+       x11-libs/pixman
+       dbus? (
+               dev-libs/dbus-glib
+               sys-apps/dbus
+       )
+       jack? ( virtual/jack )
+       pulseaudio? (
+               || (
+                       media-libs/libpulse
+                       >=media-sound/apulse-0.1.12-r4[sdk]
+               )
+       )
+       libproxy? ( net-libs/libproxy )
+       selinux? ( sec-policy/selinux-mozilla )
+       sndio? ( >=media-sound/sndio-1.8.0-r1 )
+       system-av1? (
+               >=media-libs/dav1d-1.0.0:=
+               >=media-libs/libaom-1.0.0:=
+       )
+       system-harfbuzz? (
+               >=media-gfx/graphite2-1.3.13
+               >=media-libs/harfbuzz-2.8.1:0=
+       )
+       system-icu? ( >=dev-libs/icu-73.1:= )
+       system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
+       system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+       system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+       system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
+       system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+       wayland? (
+               >=media-libs/libepoxy-1.5.10-r1
+               x11-libs/gtk+:3[wayland]
+               x11-libs/libxkbcommon[wayland]
+       )
+       wifi? (
+               kernel_linux? (
+                       dev-libs/dbus-glib
+                       net-misc/networkmanager
+                       sys-apps/dbus
+               )
+       )
+       X? (
+               virtual/opengl
+               x11-libs/cairo[X]
+               x11-libs/gtk+:3[X]
+               x11-libs/libX11
+               x11-libs/libXcomposite
+               x11-libs/libXdamage
+               x11-libs/libXext
+               x11-libs/libXfixes
+               x11-libs/libxkbcommon[X]
+               x11-libs/libXrandr
+               x11-libs/libXtst
+               x11-libs/libxcb:=
+       )"
+RDEPEND="${COMMON_DEPEND}
+       jack? ( virtual/jack )
+       openh264? ( media-libs/openh264:*[plugin] )"
+DEPEND="${COMMON_DEPEND}
+       X? (
+               x11-base/xorg-proto
+               x11-libs/libICE
+               x11-libs/libSM
+       )"
+
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+llvm_check_deps() {
+       if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
+               einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM 
slot ${LLVM_SLOT} ..." >&2
+               return 1
+       fi
+
+       if use clang && ! tc-ld-is-mold ; then
+               if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then
+                       einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot 
use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               fi
+
+               if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then
+                       einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! 
Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               fi
+
+               if use pgo ; then
+                       if ! has_version -b 
"=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+                               einfo 
"=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing! Cannot use 
LLVM slot ${LLVM_SLOT} ..." >&2
+                               return 1
+                       fi
+               fi
+       fi
+
+       einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+       af ar ast be bg br ca cak cs cy da de dsb
+       el en-CA en-GB en-US es-AR es-ES es-MX et eu
+       fi fr fy-NL ga-IE gd gl he hr hsb hu
+       id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+       pa-IN pl pt-BR pt-PT rm ro ru
+       sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+       # https://bugs.gentoo.org/587334
+       local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+               fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+       )
+
+       local lang xflag
+       for lang in "${MOZ_LANGS[@]}" ; do
+               # en and en_US are handled internally
+               if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+                       continue
+               fi
+
+               # strip region subtag if $lang is in the list
+               if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+                       xflag=${lang%%-*}
+               else
+                       xflag=${lang}
+               fi
+
+               SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+               SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> 
${MOZ_P_DISTFILES}-${lang}.xpi"
+               SRC_URI+=" )"
+               IUSE+=" l10n_${xflag/[_@]/-}"
+       done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -ne 1 ]] ; then
+               die "${FUNCNAME} requires exact one argument"
+       fi
+
+       einfo "Clearing cargo checksums for ${1} ..."
+
+       sed -i \
+               -e 's/\("files":{\)[^}]*/\1/' \
+               "${S}"/third_party/rust/${1}/.cargo-checksum.json \
+               || die
+}
+
+moz_install_xpi() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local DESTDIR=${1}
+       shift
+
+       insinto "${DESTDIR}"
+
+       local emid xpi_file xpi_tmp_dir
+       for xpi_file in "${@}" ; do
+               emid=
+               xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+               # Unpack XPI
+               unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+               # Determine extension ID
+               if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+                       emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; 
s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+                       [[ -z "${emid}" ]] && die "failed to determine 
extension id from install.rdf"
+               elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+                       emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' 
"${xpi_tmp_dir}/manifest.json")
+                       [[ -z "${emid}" ]] && die "failed to determine 
extension id from manifest.json"
+               else
+                       die "failed to determine extension id"
+               fi
+
+               einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+               newins "${xpi_file}" "${emid}.xpi"
+       done
+}
+
+mozconfig_add_options_ac() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local reason=${1}
+       shift
+
+       local option
+       for option in ${@} ; do
+               echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+       done
+}
+
+mozconfig_add_options_mk() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local reason=${1}
+       shift
+
+       local option
+       for option in ${@} ; do
+               echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+       done
+}
+
+mozconfig_use_enable() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 1 ]] ; then
+               die "${FUNCNAME} requires at least one arguments"
+       fi
+
+       local flag=$(use_enable "${@}")
+       mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" 
"${flag}"
+}
+
+mozconfig_use_with() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 1 ]] ; then
+               die "${FUNCNAME} requires at least one arguments"
+       fi
+
+       local flag=$(use_with "${@}")
+       mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" 
"${flag}"
+}
+
+# This is a straight copypaste from toolchain-funcs.eclass's 'tc-ld-is-lld', 
and is temporarily
+# placed here until toolchain-funcs.eclass gets an official support for mold 
linker.
+# Please see:
+# https://github.com/gentoo/gentoo/pull/28366 ||
+# https://github.com/gentoo/gentoo/pull/28355
+tc-ld-is-mold() {
+       local out
+
+       # Ensure ld output is in English.
+       local -x LC_ALL=C
+
+       # First check the linker directly.
+       out=$($(tc-getLD "$@") --version 2>&1)
+       if [[ ${out} == *"mold"* ]] ; then
+               return 0
+       fi
+
+       # Then see if they're selecting mold via compiler flags.
+       # Note: We're assuming they're using LDFLAGS to hold the
+       # options and not CFLAGS/CXXFLAGS.
+       local base="${T}/test-tc-linker"
+       cat <<-EOF > "${base}.c"
+       int main() { return 0; }
+       EOF
+       out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version 
"${base}.c" -o "${base}" 2>&1)
+       rm -f "${base}"*
+       if [[ ${out} == *"mold"* ]] ; then
+               return 0
+       fi
+
+       # No mold here!
+       return 1
+}
+
+virtwl() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+       [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to 
be set; try xdg_environment_reset"
+       tinywl -h >/dev/null || die 'tinywl -h failed'
+
+       # TODO: don't run addpredict in utility function. WLR_RENDERER=pixman 
doesn't work
+       addpredict /dev/dri
+       local VIRTWL VIRTWL_PID
+       coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo 
$WAYLAND_DISPLAY; read _; kill $PPID'; }
+       local -x WAYLAND_DISPLAY
+       read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+       debug-print "${FUNCNAME}: $@"
+       "$@"
+       local r=$?
+
+       [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+       exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+       return $r
+}
+
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != binary ]] ; then
+               if use pgo ; then
+                       if ! has usersandbox $FEATURES ; then
+                               die "You must enable usersandbox as X server 
can not run as root!"
+                       fi
+               fi
+
+               # Ensure we have enough disk space to compile
+               if use pgo || use lto || use debug ; then
+                       CHECKREQS_DISK_BUILD="13500M"
+               else
+                       CHECKREQS_DISK_BUILD="6600M"
+               fi
+
+               check-reqs_pkg_pretend
+       fi
+}
+
+pkg_setup() {
+       if [[ ${MERGE_TYPE} != binary ]] ; then
+               if use pgo ; then
+                       if ! has userpriv ${FEATURES} ; then
+                               eerror "Building ${PN} with USE=pgo and 
FEATURES=-userpriv is not supported!"
+                       fi
+               fi
+
+               # Ensure we have enough disk space to compile
+               if use pgo || use lto || use debug ; then
+                       CHECKREQS_DISK_BUILD="13500M"
+               else
+                       CHECKREQS_DISK_BUILD="6400M"
+               fi
+
+               check-reqs_pkg_setup
+
+               llvm_pkg_setup
+
+               if use clang && use lto && tc-ld-is-lld ; then
+                       local version_lld=$(ld.lld --version 2>/dev/null | awk 
'{ print $2 }')
+                       [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 
"${version_lld}")
+                       [[ -z ${version_lld} ]] && die "Failed to read ld.lld 
version!"
+
+                       local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep 
-F -- 'LLVM version:' | awk '{ print $3 }')
+                       [[ -n ${version_llvm_rust} ]] && 
version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
+                       [[ -z ${version_llvm_rust} ]] && die "Failed to read 
used LLVM version from rustc!"
+
+                       if ver_test "${version_lld}" -ne "${version_llvm_rust}" 
; then
+                               eerror "Rust is using LLVM version 
${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
+                               eerror "You will be unable to link 
${CATEGORY}/${PN}. To proceed you have the following options:"
+                               eerror "  - Manually switch rust version using 
'eselect rust' to match used LLVM version"
+                               eerror "  - Switch to 
dev-lang/rust[system-llvm] which will guarantee matching version"
+                               eerror "  - Build ${CATEGORY}/${PN} without 
USE=lto"
+                               eerror "  - Rebuild lld with llvm that was used 
to build rust (may need to rebuild the whole "
+                               eerror "    llvm/clang/lld/rust chain depending 
on your @world updates)"
+                               die "LLVM version used by Rust 
(${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
+                       fi
+               fi
+
+               python-any-r1_pkg_setup
+
+               # Avoid PGO profiling problems due to enviroment leakage
+               # These should *always* be cleaned up anyway
+               unset \
+                       DBUS_SESSION_BUS_ADDRESS \
+                       DISPLAY \
+                       ORBIT_SOCKETDIR \
+                       SESSION_MANAGER \
+                       XAUTHORITY \
+                       XDG_CACHE_HOME \
+                       XDG_SESSION_COOKIE
+
+               # Build system is using /proc/self/oom_score_adj, bug #604394
+               addpredict /proc/self/oom_score_adj
+
+               if use pgo ; then
+                       # Update 105.0: "/proc/self/oom_score_adj" isn't enough 
anymore with pgo, but not sure
+                       # whether that's due to better OOM handling by Firefox 
(bmo#1771712), or portage
+                       # (PORTAGE_SCHEDULING_POLICY) update...
+                       addpredict /proc
+
+                       # May need a wider addpredict when using wayland+pgo.
+                       addpredict /dev/dri
+
+                       # Allow access to GPU during PGO run
+                       local ati_cards mesa_cards nvidia_cards render_cards
+                       shopt -s nullglob
+
+                       ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+                       if [[ -n "${ati_cards}" ]] ; then
+                               addpredict "${ati_cards}"
+                       fi
+
+                       mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+                       if [[ -n "${mesa_cards}" ]] ; then
+                               addpredict "${mesa_cards}"
+                       fi
+
+                       nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
+                       if [[ -n "${nvidia_cards}" ]] ; then
+                               addpredict "${nvidia_cards}"
+                       fi
+
+                       render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ 
/:/g')
+                       if [[ -n "${render_cards}" ]] ; then
+                               addpredict "${render_cards}"
+                       fi
+
+                       shopt -u nullglob
+               fi
+
+               if ! mountpoint -q /dev/shm ; then
+                       # If /dev/shm is not available, configure is known to 
fail with
+                       # a traceback report referencing 
/usr/lib/pythonN.N/multiprocessing/synchronize.py
+                       ewarn "/dev/shm is not mounted -- expect build 
failures!"
+               fi
+
+               # Google API keys (see 
http://www.chromium.org/developers/how-tos/api-keys)
+               # Note: These are for Gentoo Linux use ONLY. For your own 
distribution, please
+               # get your own set of keys.
+               if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+                       
MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+               fi
+
+               if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+                       
MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+               fi
+
+               # Mozilla API keys (see 
https://location.services.mozilla.com/api)
+               # Note: These are for Gentoo Linux use ONLY. For your own 
distribution, please
+               # get your own set of keys.
+               if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+                       
MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+               fi
+
+               # Ensure we use C locale when building, bug #746215
+               export LC_ALL=C
+       fi
+}
+
+src_unpack() {
+       local _lp_dir="${WORKDIR}/language_packs"
+       local _src_file
+
+       if [[ ! -d "${_lp_dir}" ]] ; then
+               mkdir "${_lp_dir}" || die
+       fi
+
+       for _src_file in ${A} ; do
+               if [[ ${_src_file} == *.xpi ]]; then
+                       cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die 
"Failed to copy '${_src_file}' to '${_lp_dir}'!"
+               else
+                       unpack ${_src_file}
+               fi
+       done
+}
+
+src_prepare() {
+       if use lto; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+       fi
+
+       if ! use ppc64; then
+               rm -v "${WORKDIR}"/firefox-patches/*ppc64*.patch || die
+       fi
+
+       eapply "${WORKDIR}/firefox-patches"
+
+       # Allow user to apply any additional patches without modifing ebuild
+       eapply_user
+
+       # Make cargo respect MAKEOPTS
+       export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+       # Make LTO respect MAKEOPTS
+       sed -i \
+               -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/build/moz.configure/lto-pgo.configure \
+               || die "sed failed to set num_cores"
+
+       # Make ICU respect MAKEOPTS
+       sed -i \
+               -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/intl/icu_sources_data.py \
+               || die "sed failed to set num_cores"
+
+       # sed-in toolchain prefix
+       sed -i \
+               -e "s/objdump/${CHOST}-objdump/" \
+               "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py 
\
+               || die "sed failed to set toolchain prefix"
+
+       sed -i \
+               -e 's/ccache_stats = None/return None/' \
+               "${S}"/python/mozbuild/mozbuild/controller/building.py \
+               || die "sed failed to disable ccache stats call"
+
+       einfo "Removing pre-built binaries ..."
+
+       find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) 
-print -delete || die
+
+       # Create build dir
+       BUILD_DIR="${WORKDIR}/${PN}_build"
+       mkdir -p "${BUILD_DIR}" || die
+
+       # Write API keys to disk
+       echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+       echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || 
die
+       echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+       xdg_environment_reset
+}
+
+src_configure() {
+       # Show flags set at the beginning
+       einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+       einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+       einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+       einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+       einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+       local have_switched_compiler=
+       if use clang; then
+               # Force clang
+               einfo "Enforcing the use of clang due to USE=clang ..."
+
+               local version_clang=$(clang --version 2>/dev/null | grep -F -- 
'clang version' | awk '{ print $3 }')
+               [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 
"${version_clang}")
+               [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+               if tc-is-gcc; then
+                       have_switched_compiler=yes
+               fi
+               AR=llvm-ar
+               CC=${CHOST}-clang-${version_clang}
+               CXX=${CHOST}-clang++-${version_clang}
+               NM=llvm-nm
+               RANLIB=llvm-ranlib
+       elif ! use clang && ! tc-is-gcc ; then
+               # Force gcc
+               have_switched_compiler=yes
+               einfo "Enforcing the use of gcc due to USE=-clang ..."
+               AR=gcc-ar
+               CC=${CHOST}-gcc
+               CXX=${CHOST}-g++
+               NM=gcc-nm
+               RANLIB=gcc-ranlib
+       fi
+
+       if [[ -n "${have_switched_compiler}" ]] ; then
+               # Because we switched active compiler we have to ensure
+               # that no unsupported flags are set
+               strip-unsupported-flags
+       fi
+
+       # Ensure we use correct toolchain,
+       # AS is used in a non-standard way by upstream, #bmo1654031
+       export HOST_CC="$(tc-getBUILD_CC)"
+       export HOST_CXX="$(tc-getBUILD_CXX)"
+       export AS="$(tc-getCC) -c"
+       tc-export CC CXX LD AR AS NM OBJDUMP RANLIB PKG_CONFIG
+
+       # Pass the correct toolchain paths through cbindgen
+       if tc-is-cross-compiler ; then
+               export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} 
--target=${CHOST} ${BINDGEN_CFLAGS-}"
+       fi
+
+       # Set MOZILLA_FIVE_HOME
+       export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+       # python/mach/mach/mixin/process.py fails to detect SHELL
+       export SHELL="${EPREFIX}/bin/bash"
+
+       # Set state path
+       export MOZBUILD_STATE_PATH="${BUILD_DIR}"
+
+       # Set MOZCONFIG
+       export MOZCONFIG="${S}/.mozconfig"
+
+       # Initialize MOZCONFIG
+       mozconfig_add_options_ac '' --enable-application=comm/mail
+       mozconfig_add_options_ac '' --enable-project=comm/mail
+
+       # Set Gentoo defaults
+       mozconfig_add_options_ac 'Gentoo default' \
+               --allow-addon-sideload \
+               --disable-cargo-incremental \
+               --disable-crashreporter \
+               --disable-gpsd \
+               --disable-install-strip \
+               --disable-parental-controls \
+               --disable-strip \
+               --disable-tests \
+               --disable-updater \
+               --disable-wmf \
+               --enable-js-shell \
+               --enable-legacy-profile-creation \
+               --enable-negotiateauth \
+               --enable-new-pass-manager \
+               --enable-official-branding \
+               --enable-release \
+               --enable-system-ffi \
+               --enable-system-pixman \
+               --enable-system-policies \
+               --host="${CBUILD:-${CHOST}}" \
+               --libdir="${EPREFIX}/usr/$(get_libdir)" \
+               --prefix="${EPREFIX}/usr" \
+               --target="${CHOST}" \
+               --without-ccache \
+               --without-wasm-sandboxed-libraries \
+               --with-intl-api \
+               --with-libclang-path="$(llvm-config --libdir)" \
+               --with-system-nspr \
+               --with-system-nss \
+               --with-system-zlib \
+               --with-toolchain-prefix="${CHOST}-" \
+               --with-unsigned-addon-scopes=app,system \
+               --x-includes="${ESYSROOT}/usr/include" \
+               --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
+
+       # Set update channel
+       local update_channel=release
+       [[ -n ${MOZ_ESR} ]] && update_channel=esr
+       mozconfig_add_options_ac '' --update-channel=${update_channel}
+
+       if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
+               mozconfig_add_options_ac '' --enable-rust-simd
+       fi
+
+       # For future keywording: This is currently (97.0) only supported on:
+       # amd64, arm, arm64 & x86.
+       # Might want to flip the logic around if Firefox is to support more 
arches.
+       # bug 833001, bug 903411#c8
+       if use ppc64 || use riscv; then
+               mozconfig_add_options_ac '' --disable-sandbox
+       else
+               mozconfig_add_options_ac '' --enable-sandbox
+       fi
+
+       # Enable JIT on riscv64 explicitly
+       # Can be removed once upstream enable it by default in the future.
+       use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' 
--enable-jit
+
+       if [[ -s "${S}/api-google.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 
}') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+       else
+               einfo "Building without Google API key ..."
+       fi
+
+       if [[ -s "${S}/api-location.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 
}') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-location-service-api-keyfile="${S}/api-location.key"
+       else
+               einfo "Building without Location API key ..."
+       fi
+
+       if [[ -s "${S}/api-mozilla.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 
}') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+       else
+               einfo "Building without Mozilla API key ..."
+       fi
+
+       mozconfig_use_with system-av1
+       mozconfig_use_with system-harfbuzz
+       mozconfig_use_with system-harfbuzz system-graphite2
+       mozconfig_use_with system-icu
+       mozconfig_use_with system-jpeg
+       mozconfig_use_with system-libevent
+       mozconfig_use_with system-libvpx
+       mozconfig_use_with system-png
+       mozconfig_use_with system-webp
+
+       if use system-librnp; then
+               mozconfig_add_options_ac "+system-librnp" 
--enable-compile-environment
+               mozconfig_use_with system-librnp
+       else
+               # This controls the backend of the bundled librnp. Choices are 
"botan" and "openssl".
+               # RNP Upstream recommends to use botan. In Gentoo it's 
preferred to use system-librnp.
+               mozconfig_add_options_ac "+bundled librnp backend = botan" 
--with-librnp-backend="botan"
+       fi
+
+       mozconfig_use_enable dbus
+       mozconfig_use_enable libproxy
+
+       use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+       if use hardened ; then
+               mozconfig_add_options_ac "+hardened" --enable-hardening
+               append-ldflags "-Wl,-z,relro -Wl,-z,now"
+       fi
+
+       local myaudiobackends=""
+       use jack && myaudiobackends+="jack,"
+       use sndio && myaudiobackends+="sndio,"
+       use pulseaudio && myaudiobackends+="pulseaudio,"
+       ! use pulseaudio && myaudiobackends+="alsa,"
+
+       mozconfig_add_options_ac '--enable-audio-backends' 
--enable-audio-backends="${myaudiobackends::-1}"
+
+       mozconfig_use_enable wifi necko-wifi
+
+       if use X && use wayland ; then
+               mozconfig_add_options_ac '+x11+wayland' 
--enable-default-toolkit=cairo-gtk3-x11-wayland
+       elif ! use X && use wayland ; then
+               mozconfig_add_options_ac '+wayland' 
--enable-default-toolkit=cairo-gtk3-wayland-only
+       else
+               mozconfig_add_options_ac '+x11' 
--enable-default-toolkit=cairo-gtk3
+       fi
+
+       if use lto ; then
+               if use clang ; then
+                       # Upstream only supports lld or mold when using clang.
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang and USE=lto" --enable-linker=lld
+                       fi
+
+                       mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+               else
+                       # ThinLTO is currently broken, see bmo#1644409.
+                       # mold does not support gcc+lto combination.
+                       mozconfig_add_options_ac '+lto' --enable-lto=full
+                       mozconfig_add_options_ac "linker is set to bfd" 
--enable-linker=bfd
+               fi
+
+               if use pgo ; then
+                       mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+                       if use clang ; then
+                               # Used in build/pgo/profileserver.py
+                               export LLVM_PROFDATA="llvm-profdata"
+                       fi
+               fi
+       else
+               # Avoid auto-magic on linker
+               if use clang ; then
+                       # lld is upstream's default
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang" --enable-linker=lld
+                       fi
+
+               else
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "linker is set to bfd 
due to USE=-clang" --enable-linker=bfd
+                       fi
+               fi
+       fi
+
+       # LTO flag was handled via configure
+       filter-lto
+
+       mozconfig_use_enable debug
+       if use debug ; then
+               mozconfig_add_options_ac '+debug' --disable-optimize
+               mozconfig_add_options_ac '+debug' --enable-real-time-tracing
+       else
+               mozconfig_add_options_ac 'Gentoo defaults' 
--disable-real-time-tracing
+
+               if is-flag '-g*' ; then
+                       if use clang ; then
+                               mozconfig_add_options_ac 'from CFLAGS' 
--enable-debug-symbols=$(get-flag '-g*')
+                       else
+                               mozconfig_add_options_ac 'from CFLAGS' 
--enable-debug-symbols
+                       fi
+               else
+                       mozconfig_add_options_ac 'Gentoo default' 
--disable-debug-symbols
+               fi
+
+               if is-flag '-O0' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O0
+               elif is-flag '-O4' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O4
+               elif is-flag '-O3' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O3
+               elif is-flag '-O1' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O1
+               elif is-flag '-Os' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-Os
+               else
+                       mozconfig_add_options_ac "Gentoo default" 
--enable-optimize=-O2
+               fi
+       fi
+
+       # Debug flag was handled via configure
+       filter-flags '-g*'
+
+       # Optimization flag was handled via configure
+       filter-flags '-O*'
+
+       # Modifications to better support ARM, bug #553364
+       if use cpu_flags_arm_neon ; then
+               mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
+
+               if ! tc-is-clang ; then
+                       # thumb options aren't supported when using clang, bug 
666966
+                       mozconfig_add_options_ac '+cpu_flags_arm_neon' \
+                               --with-thumb=yes \
+                               --with-thumb-interwork=no
+               fi
+       fi
+
+       if [[ ${CHOST} == armv*h* ]] ; then
+               mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
+
+               if ! use system-libvpx ; then
+                       sed -i \
+                               -e "s|softfp|hard|" \
+                               "${S}"/media/libvpx/moz.build \
+                               || die
+               fi
+       fi
+
+       if use clang ; then
+               # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
+               # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
+               # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 
'x86', 'x86_64')
+               local disable_elf_hack=
+               if use amd64 ; then
+                       disable_elf_hack=yes
+               elif use x86 ; then
+                       disable_elf_hack=yes
+               elif use arm ; then
+                       disable_elf_hack=yes
+               fi
+
+               if [[ -n ${disable_elf_hack} ]] ; then
+                       mozconfig_add_options_ac 'elf-hack is broken when using 
Clang' --disable-elf-hack
+               fi
+       elif tc-is-gcc ; then
+               if ver_test $(gcc-fullversion) -ge 10 ; then
+                       einfo "Forcing -fno-tree-loop-vectorize to workaround 
GCC bug, see bug 758446 ..."
+                       append-cxxflags -fno-tree-loop-vectorize
+               fi
+       fi
+
+       if use elibc_musl && use arm64 ; then
+               mozconfig_add_options_ac 'elf-hack is broken when using 
musl/arm64' --disable-elf-hack
+       fi
+
+       # Additional ARCH support
+       case "${ARCH}" in
+               arm)
+                       # Reduce the memory requirements for linking
+                       if use clang ; then
+                               # Nothing to do
+                               :;
+                       elif use lto ; then
+                               append-ldflags -Wl,--no-keep-memory
+                       else
+                               append-ldflags -Wl,--no-keep-memory 
-Wl,--reduce-memory-overheads
+                       fi
+                       ;;
+       esac
+
+       if ! use elibc_glibc; then
+               mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+       fi
+
+       # Allow elfhack to work in combination with unstripped binaries
+       # when they would normally be larger than 2GiB.
+       append-ldflags "-Wl,--compress-debug-sections=zlib"
+
+       # Make revdep-rebuild.sh happy; Also required for musl
+       append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
+
+       # Pass $MAKEOPTS to build system
+       export MOZ_MAKE_FLAGS="${MAKEOPTS}"
+
+       # Use system's Python environment
+       export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+       if use system-python-libs; then
+               export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system"
+       else
+               export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+       fi
+
+       # Disable notification when build system has finished
+       export MOZ_NOSPAM=1
+
+       # Portage sets XARGS environment variable to "xargs -r" by default which
+       # breaks build system's check_prog() function which doesn't support 
arguments
+       mozconfig_add_options_ac 'Gentoo default' 
"XARGS=${EPREFIX}/usr/bin/xargs"
+
+       # Set build dir
+       mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
+
+       # Show flags we will use
+       einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+       einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
+       einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+       einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
+       einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+       # Handle EXTRA_CONF and show summary
+       local ac opt hash reason
+
+       # Apply EXTRA_ECONF entries to $MOZCONFIG
+       if [[ -n ${EXTRA_ECONF} ]] ; then
+               IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
+               for opt in "${ac[@]}"; do
+                       mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
+               done
+       fi
+
+       echo
+       echo "=========================================================="
+       echo "Building ${PF} with the following configuration"
+       grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
+               [[ -z ${hash} || ${hash} == \# ]] \
+                       || die "error reading mozconfig: ${ac} ${opt} ${hash} 
${reason}"
+               printf "    %-30s  %s\n" "${opt}" "${reason:-mozilla.org 
default}"
+       done
+       echo "=========================================================="
+       echo
+
+       ./mach configure || die
+}
+
+src_compile() {
+       local virtx_cmd=
+
+       if tc-ld-is-mold && use lto; then
+               # increase ulimit with mold+lto, bugs #892641, #907485
+               if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+                       ewarn "Unable to modify ulimits - building with 
mold+lto might fail due to low ulimit -n resources."
+                       ewarn "Please see bugs #892641 & #907485."
+               else
+                       ulimit -n 16384
+               fi
+       fi
+
+       if use pgo; then
+               # Reset and cleanup environment variables used by GNOME/XDG
+               gnome2_environment_reset
+
+               addpredict /root
+
+               if ! use X; then
+                       virtx_cmd=virtwl
+               else
+                       virtx_cmd=virtx
+               fi
+       fi
+
+       if ! use X; then
+               local -x GDK_BACKEND=wayland
+       else
+               local -x GDK_BACKEND=x11
+       fi
+
+       ${virtx_cmd} ./mach build --verbose || die
+}
+
+src_install() {
+       # xpcshell is getting called during install
+       pax-mark m \
+               "${BUILD_DIR}"/dist/bin/xpcshell \
+               "${BUILD_DIR}"/dist/bin/${PN} \
+               "${BUILD_DIR}"/dist/bin/plugin-container
+
+       DESTDIR="${D}" ./mach install || die
+
+       # Upstream cannot ship symlink but we can (bmo#658850)
+       rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+       dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+       # Don't install llvm-symbolizer from sys-devel/llvm package
+       if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+               rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+       fi
+
+       # Install policy (currently only used to disable application updates)
+       insinto "${MOZILLA_FIVE_HOME}/distribution"
+       newins "${FILESDIR}"/distribution.ini distribution.ini
+       newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+       # Install system-wide preferences
+       local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+       insinto "${PREFS_DIR}"
+       newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
+
+       local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+       # Set dictionary path to use system hunspell
+       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
spellchecker.dictionary_path pref"
+       pref("spellchecker.dictionary_path",       
"${EPREFIX}/usr/share/myspell");
+       EOF
+
+       # Force hwaccel prefs if USE=hwaccel is enabled
+       if use hwaccel ; then
+               cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
+               >>"${GENTOO_PREFS}" \
+               || die "failed to add prefs to force hardware-accelerated 
rendering to all-gentoo.js"
+
+               if use wayland; then
+                       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
hwaccel wayland prefs"
+                       pref("gfx.x11-egl.force-enabled",          false);
+                       EOF
+               else
+                       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
hwaccel x11 prefs"
+                       pref("gfx.x11-egl.force-enabled",          true);
+                       EOF
+               fi
+       fi
+
+       # Force the graphite pref if USE=system-harfbuzz is enabled, since the 
pref cannot disable it
+       if use system-harfbuzz ; then
+               cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
gfx.font_rendering.graphite.enabled pref"
+               sticky_pref("gfx.font_rendering.graphite.enabled", true);
+               EOF
+       fi
+
+       # Install language packs
+       local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name 
'*.xpi') )
+       if [[ -n "${langpacks}" ]] ; then
+               moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" 
"${langpacks[@]}"
+       fi
+
+       # Install icons
+       local icon_srcdir="${S}/comm/mail/branding/thunderbird"
+       local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
+
+       insinto /usr/share/icons/hicolor/symbolic/apps
+       newins "${icon_symbolic_file}" ${PN}-symbolic.svg
+
+       local icon size
+       for icon in "${icon_srcdir}"/default*.png ; do
+               size=${icon%.png}
+               size=${size##*/default}
+
+               if [[ ${size} -eq 48 ]] ; then
+                       newicon "${icon}" ${PN}.png
+               fi
+
+               newicon -s ${size} "${icon}" ${PN}.png
+       done
+
+       # Install menu
+       local app_name="Mozilla ${MOZ_PN^}"
+       local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
+       local desktop_filename="${PN}.desktop"
+       local exec_command="${PN}"
+       local icon="${PN}"
+       local use_wayland="false"
+
+       if use wayland ; then
+               use_wayland="true"
+       fi
+
+       cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
+
+       sed -i \
+               -e "s:@NAME@:${app_name}:" \
+               -e "s:@EXEC@:${exec_command}:" \
+               -e "s:@ICON@:${icon}:" \
+               "${WORKDIR}/${PN}.desktop-template" \
+               || die
+
+       newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
+
+       rm "${WORKDIR}/${PN}.desktop-template" || die
+
+       # Install wrapper script
+       [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
+       newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
+
+       # Update wrapper
+       sed -i \
+               -e "s:@PREFIX@:${EPREFIX}/usr:" \
+               -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
+               -e "s:@APULSELIB_DIR@:${apulselib}:" \
+               -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
+               "${ED}/usr/bin/${PN}" \
+               || die
+}
+
+pkg_preinst() {
+       xdg_pkg_preinst
+
+       # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
+       # does not need to be forced into the LD_LIBRARY_PATH
+       if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+               einfo "APULSE found; Generating library symlinks for sound 
support ..."
+               local lib
+               pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
+               for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
+                       # A quickpkg rolled by hand will grab symlinks as part 
of the package,
+                       # so we need to avoid creating them if they already 
exist.
+                       if [[ ! -L ${lib##*/} ]] ; then
+                               ln -s "${lib}" ${lib##*/} || die
+                       fi
+               done
+               popd &>/dev/null || die
+       fi
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+               elog "Apulse was detected at merge time on this system and so 
it will always be"
+               elog "used for sound.  If you wish to use pulseaudio instead 
please unmerge"
+               elog "media-sound/apulse."
+               elog
+       fi
+
+       local show_doh_information
+       local show_shortcut_information
+
+       if [[ -z "${REPLACING_VERSIONS}" ]] ; then
+               # New install; Tell user that DoH is disabled by default
+               show_doh_information=yes
+               show_shortcut_information=no
+       else
+               local replacing_version
+               for replacing_version in ${REPLACING_VERSIONS} ; do
+                       if ver_test "${replacing_version}" -lt 91.0 ; then
+                               # Tell user that we no longer install a shortcut
+                               # per supported display protocol
+                               show_shortcut_information=yes
+                       fi
+               done
+       fi
+
+       if [[ -n "${show_doh_information}" ]] ; then
+               elog
+               elog "Note regarding Trusted Recursive Resolver aka 
DNS-over-HTTPS (DoH):"
+               elog "Due to privacy concerns (encrypting DNS might be a good 
thing, sending all"
+               elog "DNS traffic to Cloudflare by default is not a good idea 
and applications"
+               elog "should respect OS configured settings), 
\"network.trr.mode\" was set to 5"
+               elog "(\"Off by choice\") by default."
+               elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
+       fi
+
+       if [[ -n "${show_shortcut_information}" ]] ; then
+               elog
+               elog "Since ${PN}-91.0 we no longer install multiple shortcuts 
for"
+               elog "each supported display protocol.  Instead we will only 
install"
+               elog "one generic Mozilla ${PN^} shortcut."
+               elog "If you still want to be able to select between running 
Mozilla ${PN^}"
+               elog "on X11 or Wayland, you have to re-create these shortcuts 
on your own."
+       fi
+
+       # bug 835078
+       if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then
+               ewarn "You have nouveau drivers installed in your system and 
'hwaccel' "
+               ewarn "enabled for Firefox. Nouveau / your GPU might not 
support the "
+               ewarn "required EGL, so either disable 'hwaccel' or try the 
workaround "
+               ewarn "explained in https://bugs.gentoo.org/835078#c5 if 
Firefox crashes."
+       fi
+
+       optfeature_header "Optional programs for extra features:"
+       optfeature "desktop notifications" x11-libs/libnotify
+       optfeature "encrypted chat support" net-libs/libotr
+       optfeature "fallback mouse cursor theme e.g. on WMs" 
gnome-base/gsettings-desktop-schemas
+}

Reply via email to