commit:     de9031dd0ce86c0bb81ffecc877c8377ff8d37d8
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 13 13:50:34 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Nov 13 13:50:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de9031dd

mail-client/thunderbird: add 128.4.3

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

 mail-client/thunderbird/Manifest                   |   65 ++
 mail-client/thunderbird/thunderbird-128.4.3.ebuild | 1156 ++++++++++++++++++++
 2 files changed, 1221 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 82635c9dacd3..446302a4e816 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -261,3 +261,68 @@ DIST thunderbird-128.4.2esr-vi.xpi 790929 BLAKE2B 
ddbd7590845c4709696bdc40bdde31
 DIST thunderbird-128.4.2esr-zh-CN.xpi 790746 BLAKE2B 
e36db30ea55aca604401defc3b4dbf5b267b37b2c01ff8e49526a56c37eced2b3090fc2a6dc6572fac6f853670adca75636260f41c7560035743b029578ef70c
 SHA512 
5cd3c20d9f8767f4a7cb8df5ca3fe332aad07aff4402d73cf86c5603ef072e71f03b099289394184b871bcade9e1312671bcd8ac4faf30660a7eaf10843fe349
 DIST thunderbird-128.4.2esr-zh-TW.xpi 794101 BLAKE2B 
46ed75ed3dc6f687029bfb886f54142ded0ec1692ef4361d2057159800db1090913590d2cbd82b1eeb149cdd99f080bfcd40e5cf3afb5f290d29fea30260faca
 SHA512 
6c42350e250b96ee5196c401e25f58dbaa4f4e54003af9732b799704c943db2ed79730a12f34c44f0d384a50a57d0cc078bc3c73cc1f0fca526ecb3fb2c82605
 DIST thunderbird-128.4.2esr.source.tar.xz 676111384 BLAKE2B 
a750acc2450c37ba0a20d8f6529e672568342be7ce4f0e7048a35792ad2b4f8a3c119250299162d5e6358be1aaf436e51259074d08ee8152412911f92b69a2ed
 SHA512 
4e37b77eb4652bc36585656bd3fe5416053f6a1a96ed1ca64c17d8d73031c746cb3832fd275d25f1283d20e18aa3e7b1df6d67864ced21b5f73042a42767cb45
+DIST thunderbird-128.4.3esr-af.xpi 530347 BLAKE2B 
372a75a98a59ee14b47322fb530108cfea041b265c10dc072d737d3a8e6f8d4a8d14b143addf7da9caecce0ae67e88f71eb5346fff2070f83fa6ea3afd2d4431
 SHA512 
8c8a38f5e22c7d8506541f4db5e693b667981b36a408b34c269d72e7cec4fe470cafc079f8fbae12149df1dcda88fe749677b503c6f867369702c7aaa4717b12
+DIST thunderbird-128.4.3esr-ar.xpi 686479 BLAKE2B 
551a46cf4f83b960ab00c07a2eff9a2b870bb146077bd7df44c4750a3c6b13316a563b746b21bd9a3860f51f170fd04aa326083245a30a0fb1c7ff7de0bc371f
 SHA512 
7bfac09de2c2ab3820b75de4bb0b7182845bfa7dd99e2a517329e0fcf3fd32a8ad7963c290d62a4109cb035e05df9fcc1976b905942bd9d85f01925e85c5ebf0
+DIST thunderbird-128.4.3esr-ast.xpi 561052 BLAKE2B 
cbf256d26b9b0cabf711ec94eb26f4457b8fb85635fec1ef3a6877f5d75cc05f5fc427bdf930f44f5e9d11257955ea4a323b416db7ddfecd474fcfd07fb2c759
 SHA512 
9d24fe7d53fbedc5303940298e4d6bed4d81d3ef83c015a0dc9b8c575160e7baa2b74d59e94b5131457b63ea580aab551702c6a5bd0fe3d5e471af4a88575592
+DIST thunderbird-128.4.3esr-be.xpi 769118 BLAKE2B 
f2edeb1d4b0f16d3848bdab4dce54be49f18b112d3e3b0d1fca1ffed7f94d27f41f35a21a76cf29cff32000b8dbcb9963e4fa286881eb7f9205985556207ba76
 SHA512 
a365bc8a76c04bac0ed02a2de2c844ba88122a1da7d1c1c90590dbac89d063e74e7046da7ab34b76f3e8bb7139ca7f6398daa438fdf6499e8a72d07eeb27b5d8
+DIST thunderbird-128.4.3esr-bg.xpi 811600 BLAKE2B 
3de0825d7909c7630728762bd201dd813d02763fd8aaed4c79823bbf51c190c02904468d1c7af90ce06c63ac96bdf88a2458b1b0d432280531f01e723f704eab
 SHA512 
2133c02fa2d4fa912862227fecb94762dd98aef7ff532167510522cae85afa51df8ddb19e80830270845774423a0ef0253036f242d946ccfb862d366ebbfd887
+DIST thunderbird-128.4.3esr-br.xpi 654631 BLAKE2B 
cdab5659fed63efcd70499e5c5e3fe142c1ab7745f21c1922b0c88f818f5a135432c50fee64a7c791cb70b60c8f40ea3c980ec49e531d4756ef54710f3bc6d45
 SHA512 
9647a6d20ddeed2ba495a1d3f153fd55f00066e03e86dfa95125fce9b164056735a2aaa3af28085d25ae99af72b82f18050508f499749f589306bfe30639c26a
+DIST thunderbird-128.4.3esr-ca.xpi 709852 BLAKE2B 
4d4bd7940197db9a7b12ef3fa8efe2a43efe2ae4fdb4ca6bdedfd57568c56f58ac7f22b240cb488f9ee01feb20bc2b6e31980198955fd077a3eff54bb1ecb7d8
 SHA512 
653d5dc1a30916d4ff9c0377c947b8a4d1b1375ebfc59af41a9662512389dc7978cd3523e8a21ee4d84a699ea16da1aadd405e44b748371a6eca6753ee0b1fcd
+DIST thunderbird-128.4.3esr-cak.xpi 671703 BLAKE2B 
28dfab7697ad6d700f82bedb359e4557c2c4363def0960f839a7bed01c6344c8654b9a21076561f70e434e71e8aaeb372024130497a655fb814a2db34aac233b
 SHA512 
9ddf09b28187ac6d7dc1267e98a5fde988dfbe4c79ddf07e9b6b93aee54f20f427e004a0c99fa29432940b242010af0bc2dadfc43434185ca5fe2c2bbb92136e
+DIST thunderbird-128.4.3esr-cs.xpi 788816 BLAKE2B 
f85ec81cf2dd290d6336a9c59b2ed05925f5440ee54885de0d4482500b4936e6f38e57b70dacac30bbaf3672ef2366f2d853aff2e187300a17ba668019e20f07
 SHA512 
7d6a0d5bc7f589ba65952d43f35d41b837bbe999b5191e80db3d7dbff97a46c17f154ba45b6c88f394af96ae9d6f8e6a45ad046f4c34ebcfac34dd9aca80b927
+DIST thunderbird-128.4.3esr-cy.xpi 753451 BLAKE2B 
52a527beae730fee3dd3e32a94f91be1755ab56f386bc5566774b72c5f35160e042d85896492685a7717a89e44ad6cc783b31af28b2e3c366accbdabaab9dc10
 SHA512 
c153922bbb0828711366ec5948de83089d40af39f72c5b5cf70905c691b222015c626a3c936b6260d6faacf4c707d4c3f2bdda77b50ecb3b1788fcd04ad67fb1
+DIST thunderbird-128.4.3esr-da.xpi 737121 BLAKE2B 
329be4d54c664151412f4a4fccfc97e0666d44fbc1e8e0a4a24b8c09f193dd1d034f7cc3be6dd5ecd3d01fdf9e0d6d5511b37648c398d5b3b6e69a977628bd54
 SHA512 
1e6838419c4252665ac9086b1cc671065862877cdf3638ba81ccc87fcabffd4b53b1164f0c54e2ae288fcda76251fd309a1b378eb64d8ede08a2f0278e80c742
+DIST thunderbird-128.4.3esr-de.xpi 771021 BLAKE2B 
9a1dcd6ff21f843e4eacdd5cc6af413f8fb7ce9d751a55ed4396349a6435c101628afafefcff12f2c2f55f3238c9abf5e8f9a2c8f7455a66346ef57a98b3f1f0
 SHA512 
09236e71b6a0b6875076c12f8398b7bc18cb83bae7ffc6ac631329e174195daa44d8990953f4bc992288bcf523eea3f49284403c547505fa5387ac10d2bf615d
+DIST thunderbird-128.4.3esr-dsb.xpi 787770 BLAKE2B 
1e8555c6c7bcd0cb92a5fec4b420aee3c890864b76648262cdc50c0ab436f85aee9613a4b0ec9d0ec6571ec5308d2a237143da415dcd74667072ef98a4421520
 SHA512 
e6b00909b4e23169145fb81e174393010269e707f9d65442759fa4331a1bff01ba907896b152af756a97d94bb9a0011a1a47b94333e67eee11002605a67fe3c2
+DIST thunderbird-128.4.3esr-el.xpi 894339 BLAKE2B 
373973b29d1073ead87a6fa14fee1bc1666d17104938c1aaa855848eb2cb3b8dd81954846a7843b9545f5b829f3c97e66fc71b51f62607fd25ca39531fb09014
 SHA512 
69f7633b471c0afc1550ab8fc31c5efc73587d3c99c070aa70514998bc9be8e617a25e68b340ed33dbffbcbe24dd7a0ca1b0a00c6ddaf1ed25add065faa11ed7
+DIST thunderbird-128.4.3esr-en-CA.xpi 704735 BLAKE2B 
c0e2b56bcba4658c8fe7f5a681514fe63a5c654fd4c7e266748ca1c325069b8187ac4714caeb2fe0528ac950d2e1a497c61ce7e53e1c2ea317fdfd65579b91b8
 SHA512 
107658b51af9d0183c7bfe8cbabbb3a707ef79722de15f9b111c35e87eea92fa6f2fce527196653c4e5240e5c9739c373dc43cb73e65f765b797eb1e5ae83f47
+DIST thunderbird-128.4.3esr-en-GB.xpi 706801 BLAKE2B 
c59ce68131f17420a25a281233c0a6d565f82bc4b8122a61d5b197e890f5628018d4e863e27e19b135083409807e71f869250b2083585dce4de3d3f01d366c1d
 SHA512 
bcaa69251088e707bf2d953f66b0a24c1ae3a77aa73da14118c6d496e284684cea6162cfa9334432311f88e39b82f67e247b1f7d0b5be47b55c2785d97a8efe0
+DIST thunderbird-128.4.3esr-es-AR.xpi 762697 BLAKE2B 
0cabb39ec02925967d06ea5fff82e9ff2c46a18c23ba7924405393e2348440a7b3ae205c54a694ffb79e74b24a1449d92aef133f4be679f2c7a94544fd5f28ba
 SHA512 
00b8e1e1414fdfc09d690539ec9a6cc2ed00db6e0882a3c5333c025e4a14596152e10d703c7c700b0dc2c093e67d93b6170f4324894590048a0fe9e4fe3f6995
+DIST thunderbird-128.4.3esr-es-ES.xpi 729372 BLAKE2B 
c43ad1ba28082413d94b10147f8b8b5481be02c1ad639833ccff90d8b8772973264d2e14923f87a4f19bc48b408731784e82afa31ca7576da9e70c2e65c8aed1
 SHA512 
ec9eac683685a7be5189fd2424a3ebadf65bf0dddbd4e894f7bd3662c50893da352702528ea612fa47e54790e8aae0eee141c2264670e711b7c6fb20b788a7ec
+DIST thunderbird-128.4.3esr-es-MX.xpi 748408 BLAKE2B 
f69d6e72e74ff3635e0be9b0d4858affb325f7ddabcf144f7ec6c9048dfbb933c5d4b044511f33a4887a12e1ac0e999c20ee21fbe1059de4089f453237bcb887
 SHA512 
3ba2f627ec43a9f5b6cd96b3e9ae191f80aa03d657c1f0a1969b067a1e2bc5fff03c483c7e345f470e51df8e872568feda07da9deb61d9173bdf1685a718d5c3
+DIST thunderbird-128.4.3esr-et.xpi 696279 BLAKE2B 
9ce5bfd1d6960d0205611de23e7aa34a8e6ce1624c33ec6f6934c943ae828185f93b4655cbe2c7557579349b4c5d871a838801f3f7030f627631699da6f868fc
 SHA512 
746321796321a08eeb9d95d70a40729e876a2671dd59095df100112ba94a6124b60db6361283a783bd35ca85f0fffe805f268b11ea7ba5e59415c4bec03d4a0b
+DIST thunderbird-128.4.3esr-eu.xpi 734388 BLAKE2B 
c84cdcd2db2f102bb1aec84440e5308aea5ecddd248024edb74bf358de7201ec3b535dce189482706e737e625171050b34f733833b5712694d89c9811495c313
 SHA512 
7a963fa543d3fc5ccc9b2215ef12b78a22b1598a36008bc34a7ac78d10dc5e622d1562c3532840130777547825362e1b635d706e90f31a505a452146a8e111de
+DIST thunderbird-128.4.3esr-fi.xpi 738610 BLAKE2B 
31cbe8fbcc5ad1c7f3ba5d381a9b3d5ba8cd5101d48178df89d38aeafbb20727d6b287e66ecf824b186386ad46a2bc452b8a51f3b7e744ed42e3ec339a8e12ea
 SHA512 
c733b669daec6a512d83ae136567878b7bac1ad8cfa8cc28b3f3b7e047aaa9c46514a687a4894b98bf371106f92af59f7b914523defd47ad5aae7aa08cfdf637
+DIST thunderbird-128.4.3esr-fr.xpi 775786 BLAKE2B 
89a8cb301017b2d7a8e04c426ee4ada93dfca65630dba7f092aa552656b2b722bce9436e8542c73da2734ed78b3ecd01614ea42eca7dd1cb77f2079f2bbc264d
 SHA512 
7e93c8fd917477173e2aca4a4c30253abb14277e5308ba5806d785d586825891b59b79bf085a3c2f2963414476ab91829299aa745354a7b5b5ba9f35275cc976
+DIST thunderbird-128.4.3esr-fy-NL.xpi 755944 BLAKE2B 
449d72cc35767a85346a9dcdcbf0329487e71c8b603c9527eab8229b6f028b4f3f9db6fbc861e628d68a9d2035f54f948be84751fedfd66281c5e5501ded1ec8
 SHA512 
cee7b9a8a7024128e11c87d66505d2f6f7e8570b0f0717630e58fcadf4e857832c67f81178d6a66e7883577c0b2f7c3725e0df0692ca6e3256b8f7887196277d
+DIST thunderbird-128.4.3esr-ga-IE.xpi 615879 BLAKE2B 
a194d2654027920939adbf8215874d24210f31b1a505c8ad7e1454a44c4b470edaaba5be402ea88270d65001781327c76ae78c776ecbc28b85670aa5da732385
 SHA512 
e4ea3ccc07fd915d68d8f145b810dc3c207fa8db2d615d65b8d4804462be97d7f9c2593d080be10bf41cfc444b8d8fe368e9f2040f504f897053e08405858f25
+DIST thunderbird-128.4.3esr-gd.xpi 728645 BLAKE2B 
a417ffffc27bc84027565a7714355468bac1bf2646e4644220d4e8e88df586522279bf21ebaab3186f1f86726f0ad40e66060c3510ac0a6ac95e8ef12d8f775c
 SHA512 
d021e634556c4f11ec21f9a49d0a5a8659b4f073e5fb8ec2eac88bb527302a121897de6e1b75ff8a64ad4765ad53bc0cbc4dee5bf127e7136bce930b1d2fc717
+DIST thunderbird-128.4.3esr-gl.xpi 741680 BLAKE2B 
e792448f0ca16d617b939010023eb9e6645b822ea72e45a3215b96d886061047fd1b911f0edcaf4aae76ba5c2d1b581ba09241f226c7af925223585babf9c5f1
 SHA512 
88699489af3666cc1b83daba8c0be6acaa1a18d38daec5fa7f33a8d23e53456733353a111c7b849455d248cc2ad32df23d594a50ea389dca03294724b263c37b
+DIST thunderbird-128.4.3esr-he.xpi 700946 BLAKE2B 
713cecd4dff94cfe08121eee55fe5c646ab9d09e6f99e07079ba4f85ea4e6034527c55d419d69c45cecbe6afc9b29c63a8e96b7ad0b4f0b431321083d25c1631
 SHA512 
3efa827a9c16ccab057bf0f730d4176b003b4f5ae3fbfcbe2f3ef402bd43d7fa6e97bce95462021772eb3601e53b408e01a3bd705a745ccf39bab8126e42b271
+DIST thunderbird-128.4.3esr-hr.xpi 719842 BLAKE2B 
79f22ff19f0e553651a0e81a6c98ad047b08ad2d9fe089f1f1d9fa86098e8165803c8fd52bbef8e3587462c4a3f584b6c9e3c528f57e39cb4d48beacd84ef5ce
 SHA512 
67de5ea7887411b1cc926bd3f12cd296e7185112d23bad9aac4155b85fbda8b5d412070d03c5ef69f874243eab2ea60864bb66cf5bd266877cba128ed749862b
+DIST thunderbird-128.4.3esr-hsb.xpi 785170 BLAKE2B 
7cdfc0ff836266c26e771cc388d8d42cceeb09b1d6a933dfdd518f30eaef167c415b1a224990fd46de8471b5a2ace7c10e1ced295e9497be3fdd28f10839dd02
 SHA512 
314721ef6243ac20dd35134774d780c85f44c28b02bba82141b22c52094518358a2dd4cd14cd7a74ef678edb53e465d8715c5f773d22dcf17bd168de89e42298
+DIST thunderbird-128.4.3esr-hu.xpi 787991 BLAKE2B 
36e2beef9d7c80024926c6f9821b5160049c33e7ba169cefa6370ea1b3f7ec4b50181ce7778dfb80a5a13c7f705dfa0e15ddda5ba1292d329093c854343ac7f3
 SHA512 
423705883f1d445aaae9d1295293863d378e9aa97b4ab0a448f7c8865f8990c30306d63c5e6988c858ac8ad4f3c0c41c0371f97fa9932579be067f178e6e67e9
+DIST thunderbird-128.4.3esr-id.xpi 666011 BLAKE2B 
3ee286885148c44180c63ac1088b8d27c020f8808e429f7d406b1783bbb5ff4237296e6faf70e2d602fa41bb8ca5c37108ea808bb5fad5ec24dbe398118d0d44
 SHA512 
60df7c67e2d0d4e5f79067e44027556fa65a81a2439d6269435e161f45f086b04aea3bd8a57ea0f32e09cb45d04becbbb15733943169f4035e0ff5ecd0e72479
+DIST thunderbird-128.4.3esr-is.xpi 747033 BLAKE2B 
4297d89171f3177286acb4790f1f445a4fdd8c05701a63fe40202a53157666771c427d09e8be1d8fecf0351d33272790cde5c3a3caf5b73df18f11b7ed1e8f30
 SHA512 
b8e6e58338040516b1198e939f78689b320536a356cfcf6344f471ce9e45090308502d9dc5aebfe882457e0c10c15a5b277f913dbd03e43276caa7d755fa183e
+DIST thunderbird-128.4.3esr-it.xpi 694514 BLAKE2B 
5d06bddd50f162ae25164ae8551803af06c387e7699e1844eba8254aeafbc912e90633accf5fe227937ec3650ff005d503b638efebd55d2ceb8eb37e7b807386
 SHA512 
5a1b54cca918bb4baf1911a600a91439ec328f10b942739226259ecb75d9e15c141563438b1c9d2e06a983d0e452becd610f17a9a85f737b4af4ff45aa0f3b12
+DIST thunderbird-128.4.3esr-ja.xpi 824167 BLAKE2B 
47aa3049fb007be5c54fda5f047f7c82626b8c6bb10e65836e96a41eeeff6775fc228d97944823c6f5b9d11009d6cb04efcd60116424f4f82ad897a7b7f671d0
 SHA512 
63464b482c79d1407c92a38e9b206970d5439a0c511c66e741a221be17df96ffe0defa77b084c0bb735d0cc98c4e2d4d40e135031f6d98feaa5b0ef0a640ec6c
+DIST thunderbird-128.4.3esr-ka.xpi 796221 BLAKE2B 
5f07c7186a7e3db32cb8903e16c25abc4d069bea536f368507cf1f5e7c8e028a2edd8c92cb0082d92bd4d329a6a21fb88260fbb82fc989480136bca77a021738
 SHA512 
79f3e170d72feacf20b1de5de4363720826a7dd61262f4fd817c9c19d648e886b57b2d04244ef0b5a9fa60df28e9437a033e26cc8efe0f479e49c2839c82549f
+DIST thunderbird-128.4.3esr-kab.xpi 733901 BLAKE2B 
3425b1927268cf4854c38e7cfe776b8c3d96913a8606c5691f3127f5fc57cee0f4d5111d0dab8fef5026bf554ca86422e0320cabc4a91f564e5f8b9bfec0dfcb
 SHA512 
56f066a7f0e24a0e6344cbd7d3f36e9032a0eb72117702789201e5191048787ff2bce9b3d2bfdc049686f1a6ff6157f07b5b4c3bdbc41d7920315201c482db1a
+DIST thunderbird-128.4.3esr-kk.xpi 860676 BLAKE2B 
c88de60fdc540f1302b91343d6f3b993617ecf319ae21001783e4aad75cfc21bdaec18fcb4460b81cab2d2ff61cd246b9922ee2240eae7198ebe46aaf429f708
 SHA512 
956e0d596ed241e63e65a99bba20b3ee766ade14ebb8e42610ac9844aeb976774ca34f08edd271abe5ecbbbd9d9ff02bdbfb5fd50e36907cc988004580144540
+DIST thunderbird-128.4.3esr-ko.xpi 756766 BLAKE2B 
1346d101191eacf1f31f6bcdcd2914a501deb05498c33187e06696fcad8530a53ece3633931006492a844780ade391129adb0c973bdb0ca57ed66a695e6da9b3
 SHA512 
415e273335d3e36d86651ea5d38e79758b11f4398adf94bca14d16abf28f895e2c6e1734ed52a0bf249ec79a5bf005ed06c0928880377e53a64e4735c65eb7f7
+DIST thunderbird-128.4.3esr-lt.xpi 700917 BLAKE2B 
40be740ff08a1e467424b6716a09958155d4f93b25348fce88dd69e6154e9a65025ee05558d4c502e2f54fecf9c08a1a5a5944b487ea3632d7fba805382ca176
 SHA512 
5690b70aa6ef7ececeae055e83ff9c66892dd6f4d59db0f26141d9b6db8ca1eb4b04a192e740dd6bd781b809e3af823538e45151164ba980404f7123293e0955
+DIST thunderbird-128.4.3esr-lv.xpi 625981 BLAKE2B 
f6d134c43d1d51ac74e2580fa28d3da412a351ae7fdfae9cc76771c6376100cb2554d4f5d61c8179a8642662f1ef2a8bc21dcc8361d287b2c971afcb79a8f412
 SHA512 
39af383be8efe7f113fa84f3dac2cee01b1de9c138240bc6aae290f93ec9074fdd344fcf4f1a5adfcb49b841b4b761908000a9483cf9cc559ec76158aa91970e
+DIST thunderbird-128.4.3esr-ms.xpi 581083 BLAKE2B 
3dd3e3ca64cfb5cb4e762f2db0658139e5ba1e8a8a8d94e66b27412f2350f8ceaf7e47c87a81ca19d44335b1aa026d027f53c85b2b7476f748c89278dcee78b1
 SHA512 
3eb61fa34281290d39399a4e272bc891f1ab1f66be6bdd7435f22cc6a643d8531b48f1463aecd5545f92b4344df22ae7281325556061810d07a26ba73ad8145e
+DIST thunderbird-128.4.3esr-nb-NO.xpi 706103 BLAKE2B 
f9315439c0c773c1a69523f3fb6629008cc0434c2d9ed1ef9b4ff9afef88590317e8fe07050ba15c8be70a4b35a489a85389b9ed6db11d7fb000f7017b5dec24
 SHA512 
e31cff0cdd441703d56a970e2785587585a40ae755388c60b789b4096ddbc41edc0c68172de5358e9c0a8d2d683da40fb819e17b2068ff16f07e9ee0cbef860d
+DIST thunderbird-128.4.3esr-nl.xpi 748485 BLAKE2B 
c40621a208e147d53720675f5177ec527688785170ad22fd20dea8f61f07427b2fd814e0f39b2e92fe6cde551728abb287d342d59f1dba2998e7d99c5d7c02aa
 SHA512 
cf1184c7d8e8b5ee7e11804210372c6c1fdb0cf9c8185688c6158422842c7615c106a179e8898969f39677015177f88117c68ea177e7d0c3b3f1b8d6cf202a94
+DIST thunderbird-128.4.3esr-nn-NO.xpi 726986 BLAKE2B 
7180b9844c5691400a5abc2e416bfe2d59064f253b7a5537f4149471bd278186a9db50ab9ea710bf5abdba90520590ae893626657d8e95c4f4b467ab7f055014
 SHA512 
31bde45018976d5c9a211917bfa08bd4e843faaa011e947f61a67948ba53debaf929c4722c60b48797e691dc9060bde34619812e539dc179eaf851a10f6694dd
+DIST thunderbird-128.4.3esr-pa-IN.xpi 685674 BLAKE2B 
60f56f706145833ee295cf37850c8b1ab83641ea2ab59f646348fb9ec9b23443fb4ce3fe62232570bb4dc05d41e00f28f4f5b72db2befc54b8343d4f11e1bf06
 SHA512 
02092e953b2c50521a60e1d087bc8d89ae8992c493975f5368ea98683c2367d8e438eadf31382d9ad66ce6dc0fddec503d1b142bef9c5dab0a3ed551ac8ee0ed
+DIST thunderbird-128.4.3esr-pl.xpi 767300 BLAKE2B 
96b69316a2843b22aeddd06ffb5a8abb103a07f3932c38ca1114db417edfd0c06828d12957a47bee4b9055533bf919402a41d2d93c42d5007806514028d83b08
 SHA512 
da3f4ccb99f2d69580f7f7d1c565779e764be10536588f41722466753fb4b0dafa71d59d439c00800aec4a95e3accef981e7a96fb71761fdeb66e53fcd88f96c
+DIST thunderbird-128.4.3esr-pt-BR.xpi 755727 BLAKE2B 
c00a71a9285e686a35ce2322a5e58c5cb6a4be3ddcbe73371cff480a2c629e09620ae4c7d4de4b14fff0ceacd1aebec79828ed6da6f352a8677eb9851e32011f
 SHA512 
23b949b96026336ab0d55d78ce3a3e8fec3fc8fabdf7559238ecbed4dcb68a44afa03de943679f4ed6d65db4baa8e6daaae0d486a66d93b72b48fbcbb0b1d955
+DIST thunderbird-128.4.3esr-pt-PT.xpi 750494 BLAKE2B 
395afca7db3fe40a041c5607c163aa48cdef94d3542b93bfb50cab6585f0799e60ba8b992fe37a04f146525f0e2488299baf6f67cbab761a927f27e8019134a3
 SHA512 
3afd4a409086ab698f53784587df9be932912f99766ca1488d7d45fbc0f20e72e408e3fd0686307e378731628ea398c5472be57bccb6579ec5530711d881be1c
+DIST thunderbird-128.4.3esr-rm.xpi 751461 BLAKE2B 
c343c63d25d762d750b3a72da5d8d752d7e10ca204d9bd1468777781d8bad8c64dbbdd95bf243ce2e3efb372c86947f3ff9b024c8efc42554bcf083022f7b57f
 SHA512 
48d322fb0eb34577c8e8aad13d7a71aceae08bea1189c54b51155b76b4f25264f302b3d7c1f0defb58e37e66d351778b9b9b8472f974767b7dffcbcb9f95cdf9
+DIST thunderbird-128.4.3esr-ro.xpi 669741 BLAKE2B 
6672a398dacf3124df40bc6e830b55af84bd85063fa2a64399bb40261405440378caeb6e4628cbef7368a8a4e539ee14a732ea055aec01f83b5e6df7047584a8
 SHA512 
88d620a9f22ddf24127f37f2c27b90e95d696cc6cef95d079b2e1e749c384cef0242a9dc5d58e05fb954d93f678a46752835035a56ede183803cc016a8d29078
+DIST thunderbird-128.4.3esr-ru.xpi 877211 BLAKE2B 
d3de1a5a030f5fc548d244b7225a6acfc7ab9bb8dff8b80c47ad7115b5b2e3047c0e8d4a50d569e4f3accbab3586dc03985263af9b7226139dc08261f4bc3daf
 SHA512 
b0ce86a9abc7dfc9e8785a99b5d9a6c18c1f32509aa6d9f1b8488bc8e9f914c53f1c47ef054d29b31737b74b051889f06172f9e5d7d447a7b3875418a1fc0c2f
+DIST thunderbird-128.4.3esr-sk.xpi 788761 BLAKE2B 
5a10dc302fc628a6e9229da8fff69e79fcc0cb723e8487f5eaa6f3f0576abfde178821381eaf7d26c0e5633e3c2669d957748fd0ac0cd7b3af3c1879d70af56b
 SHA512 
f65bec4211bcb958f26db54620f12943d18b8115e6cc0f65b013d64425e8014cdc3d828503eecac6290c86fbca5c41d13ec1c195314860039322d3c88ab97c95
+DIST thunderbird-128.4.3esr-sl.xpi 749577 BLAKE2B 
fd6a7117d5096d11be8c3f4ce5b8aec954971a38f350502c510b6e01a6c78d1de5b48bef2efd3507ca2b5c6433691c1b915173075aaf3112899404a2ddab0bc8
 SHA512 
dae1fa813f9a46c51bcc559235563d6ec0adbebf84132942a8fb520e8d741f421e4756f39b419afc6a55f3ddb1f03eb685f353cc747241fc4277c614809c04b0
+DIST thunderbird-128.4.3esr-sq.xpi 771526 BLAKE2B 
64eca342594bad986cc0d6bb8330fec48d6c9e8c1fae73b975e59b8f8c5b47eaf84f3f94bf9daf39c85471c3c706c3e01b2e26e1bf4f39a461faabe6dd207abb
 SHA512 
8542e0e3f952f9dc76bca8f6ad68c1aa252da031d743c2bfeb9a2aa94f90aa161e96de3ce772b11c2cef5806320d175495da9bc182579141cab32c0bb62cc9a6
+DIST thunderbird-128.4.3esr-sr.xpi 771226 BLAKE2B 
c36541ae4bb2ec7e44235935690dd2a23a574ad53b8d8f9b93972dd93c5218c382f179d425c508f9f8bbdc2510b7fb34ebdc18747714b2eafc55df2265552200
 SHA512 
f43d8b761fc4fdd248bfb177d6cae7bca6869edd410f7f4bea3dd88f65428632ead10e08ee3b4bac576dd4b471a82d77c070ba81d7617c0ab651a5bdd6f0e121
+DIST thunderbird-128.4.3esr-sv-SE.xpi 751825 BLAKE2B 
ecfc1b5042a6979ddcc8f31793f4794be2193c922cbba58342523244e1e9791c43624d99924e12a69a4ed37b0c6aee469ba90b505827579fe238435e066b61aa
 SHA512 
1b33c02a92f2f84b6b8acd9ffdd038c51c3edb6d9468530f547be8fef9fbb06d20e565061d1615a3f7a38d391941878a0e6753686ca1cf08d58abaedadf1871b
+DIST thunderbird-128.4.3esr-th.xpi 815949 BLAKE2B 
c3d4f5668727aeff5f54e2a1ac3b85579d89dfcfb1698fbaae3221df7311750c04de37ff079e60e02495c43679cb8a5f98237d666fcdcdc7a1f49a8275e0e6cf
 SHA512 
0e4d397e58f983bec33e46edf927e960c705cce914fe3fc7d6ed981587779e21dcc627f34b6e2672203033324356a16dc81f2940c3da189295960ac2129a10c9
+DIST thunderbird-128.4.3esr-tr.xpi 761634 BLAKE2B 
049c75c8189b26389e97d03c04b9a122ce81e1da75d811a97886696ca9b1a59be8b06bb4847240330a43f76eac7eead6625e06c6fe866b8b9eb238859539a1d1
 SHA512 
9413957c44d73c827bf9b1f7a5e9ffe1ba1793b4b6fa499d15ccb7d2b5b59fdbedd1b4b1b544511c7d194bee7ef5c24aa32a3682045b0bc5a4601c144eaf57c1
+DIST thunderbird-128.4.3esr-uk.xpi 867538 BLAKE2B 
fffa3bd754c4bdcaaa06a959acc770e5b4fc82944a15d6c74d2a3d337cd80660a45cd1a67f31073ca4005aa3617ce94b044403477ae3bd70548430ba52ce96a2
 SHA512 
724e514374a17bf257a35d5544ca51507a0abca1cac7532071b62e24ba0428f217f78fc5815d86eebb207a103ad3ca9388e5a12dea83e5d27b762247f9f64232
+DIST thunderbird-128.4.3esr-uz.xpi 592133 BLAKE2B 
6a5ed287aef2322ddcc6af1444c6921fef96ad02d53e3989db346af5fe082c0d55127b68759f91d815dfe15a0b080c9d27d3342c4562909bab20f54972199131
 SHA512 
33c96fd5b0cfeacc1ae670d9c76cc82002dc02bd5ea8fb10e63d5110739aec9eceda33a267acc3e468152d77997b7a920926d4019727953e9331dee803f5fc87
+DIST thunderbird-128.4.3esr-vi.xpi 790928 BLAKE2B 
9b3e0774be4c6577993edb4600a1acfb8556f4812f6b8b39c08e4b2d7b79531131f41a8d0c40ecf2287888f6bab3b469d64f2c4c53ab9476222983fb013e1b92
 SHA512 
c67408c32dde91e0aa71a454d271f1bbc06b65dbdf5f0456a2618cac8fa546a917f05b785757550313a8e0ef69a3f907caccc5877fd864a5d72769f9c5be3dd2
+DIST thunderbird-128.4.3esr-zh-CN.xpi 790744 BLAKE2B 
eec55be6a969b1993ba973ab90a1215772cb6cc9a22272cb70e33a15de847e3ef3c0c76eadd8cdea83732a08078a2c705adaeb819cce0e10b4b3cfca99d339d1
 SHA512 
4965e4fc8cbf8ec42e940d178c7eedf25ace3104cc33b90b7b1e1cb9b3818334fb3ddf5be058ee18b805e65122ec5c22b4f6045c841485e6940bbf3e6397d47d
+DIST thunderbird-128.4.3esr-zh-TW.xpi 794099 BLAKE2B 
a5c3218a692bde7d220eb8cfbdab7126347312b911910d57a168fcdf8709f2c2840ba31ce54ff33ead9f0627a450e94106e7b9a91399a4a449d1f1f68925ba62
 SHA512 
aa789247b4e853e95687072f5f5e93cf835b799b5d037558ad49230ee64b9494fde0328c1a792aac52f36ec050b0efda193f0ad7495f5f7c30c0f3ea9555ae75
+DIST thunderbird-128.4.3esr.source.tar.xz 673965268 BLAKE2B 
31954caf84b382149a8bef7f2c46dd86e93adeda8eb4553e7dc5831ac8e4108609c55f2c027397de9969dd9e651971a63ef4c719dc55a4987cb1bff0d5e6b8d0
 SHA512 
18691722f6376f3dc0658c01164fcdbf6008fc31eff8c1bd403d34f188db0e7850883315a96fc07289d207c9977d732628d3945736aa191fefd0a01735e3037d

diff --git a/mail-client/thunderbird/thunderbird-128.4.3.ebuild 
b/mail-client/thunderbird/thunderbird-128.4.3.ebuild
new file mode 100644
index 000000000000..0ec3fb734152
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-128.4.3.ebuild
@@ -0,0 +1,1156 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-128esr-patches-05.tar.xz"
+
+LLVM_COMPAT=( 17 18 19 )
+
+PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+RUST_MIN_VER="1.77.1"
+RUST_NEEDS_LLVM=1
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+# Thunderbird will have separate release and esr channels, matching Firefox's 
rapid and esr.
+MOZ_ESR=yes
+
+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-r1 multiprocessing \
+       optfeature pax-utils python-any-r1 rust toolchain-funcs virtualx xdg
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/";
+
+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[@]}"
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+IUSE="clang +dbus debug eme-free hardened hwaccel jack libproxy lto pgo 
pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent 
+system-libvpx"
+IUSE+=" system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +rust-extensions +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )
+       pgo? ( lto )
+       rust-extensions? ( dbus )
+       wayland? ( dbus )
+       wifi? ( dbus )"
+
+TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird )
+       !system-librnp? ( dev-libs/jsoncpp )
+       system-librnp? ( >=dev-util/librnp-0.17.1 )"
+BDEPEND="${PYTHON_DEPS}
+       $(llvm_gen_dep '
+               sys-devel/clang:${LLVM_SLOT}
+               sys-devel/llvm:${LLVM_SLOT}
+               clang? (
+                       sys-devel/lld:${LLVM_SLOT}
+                       pgo? ( 
sys-libs/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
+               )
+       ')
+       app-alternatives/awk
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.26.0
+       net-libs/nodejs
+       virtual/pkgconfig
+       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
+               )
+               !X? (
+                       || (
+                               gui-wm/tinywl
+                               <gui-libs/wlroots-0.17.3[tinywl(-)]
+                       )
+                       x11-misc/xkeyboard-config
+               )
+       )"
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+       >=app-accessibility/at-spi2-core-2.46.0:2
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/libffi:=
+       >=dev-libs/nss-3.101
+       >=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:2
+       x11-libs/pango
+       x11-libs/pixman
+       dbus? ( sys-apps/dbus )
+       jack? ( virtual/jack )
+       pulseaudio? (
+               || (
+                       media-libs/libpulse
+                       >=media-sound/apulse-0.1.12-r4[sdk]
+               )
+       )
+       libproxy? ( net-libs/libproxy )
+       selinux? ( sec-policy/selinux-mozilla )
+       sndio? ( >=media-sound/sndio-1.8.0-r1 )
+       system-av1? (
+               >=media-libs/dav1d-1.0.0:=
+               >=media-libs/libaom-1.0.0:=
+       )
+       system-harfbuzz? (
+               >=media-gfx/graphite2-1.3.13
+               >=media-libs/harfbuzz-2.8.1:0=
+       )
+       system-icu? ( >=dev-libs/icu-74.1:= )
+       system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= )
+       system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+       system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+       system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
+       system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+       wayland? (
+               >=media-libs/libepoxy-1.5.10-r1
+               x11-libs/gtk+:3[wayland]
+       )
+       wifi? (
+               kernel_linux? (
+                       || (
+                               net-misc/networkmanager
+                               net-misc/connman[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/libXrandr
+               x11-libs/libxcb:=
+       )"
+RDEPEND="${COMMON_DEPEND}
+       jack? ( virtual/jack )"
+DEPEND="${COMMON_DEPEND}
+       X? (
+               x11-base/xorg-proto
+               x11-libs/libICE
+               x11-libs/libSM
+       )"
+
+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 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!" >&2
+                               einfo "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}"
+}
+
+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'
+
+       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-r1_pkg_setup
+               rust_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
+
+                       # Clear tons of conditions, since PGO is 
hardware-dependant.
+                       addpredict /dev
+               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
+
+       # Workaround for bgo#917599
+       if has_version ">=dev-libs/icu-74.1" && use system-icu ; then
+               eapply 
"${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch
+       fi
+       rm -v "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch || 
die
+
+       # Workaround for bgo#915651 on musl
+       if use elibc_glibc ; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+       fi
+
+       eapply "${WORKDIR}/firefox-patches"
+
+       # Allow user to apply any additional patches without modifing ebuild
+       eapply_user
+
+       # Make cargo respect MAKEOPTS
+       export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+       # Workaround for bgo#915651
+       if ! use elibc_glibc ; then
+               if use amd64 ; then
+                       export RUST_TARGET="x86_64-unknown-linux-musl"
+               elif use x86 ; then
+                       export RUST_TARGET="i686-unknown-linux-musl"
+               else
+                       die "Unknown musl chost, please post your rustc -vV 
along with emerge --info on Gentoo's bug #915651"
+               fi
+       fi
+
+       # Make LTO respect MAKEOPTS
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/build/moz.configure/lto-pgo.configure || die "Failed 
sedding multiprocessing.cpu_count"
+
+       # Make ICU respect MAKEOPTS
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/intl/icu_sources_data.py || die "Failed sedding 
multiprocessing.cpu_count"
+
+       # Respect MAKEOPTS all around (maybe some find+sed is better)
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/python/mozbuild/mozbuild/base.py || die "Failed sedding 
multiprocessing.cpu_count"
+
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/third_party/libwebrtc/build/toolchain/get_cpu_count.py 
|| die "Failed sedding multiprocessing.cpu_count"
+
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               
"${S}"/third_party/libwebrtc/build/toolchain/get_concurrent_links.py ||
+                       die "Failed sedding multiprocessing.cpu_count"
+
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed 
sedding multiprocessing.cpu_count"
+
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/python/mozbuild/mozbuild/code_analysis/mach_commands.py 
|| die "Failed sedding multiprocessing.cpu_count"
+
+       # sed-in toolchain prefix
+       sed -i \
+               -e "s/objdump/${CHOST}-objdump/" \
+               "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py 
|| die "sed failed to set toolchain prefix"
+
+       sed -i \
+               -e 's/ccache_stats = None/return None/' \
+               "${S}"/python/mozbuild/mozbuild/controller/building.py || die 
"sed failed to disable ccache stats call"
+
+       einfo "Removing pre-built binaries ..."
+
+       find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) 
-print -delete || die
+
+       # Clear checksums from cargo crates we've manually patched.
+       # moz_clear_vendor_checksums xyz
+
+       # 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"
+
+       # Configuration tests expect llvm-readelf output, bug 913130
+       READELF="llvm-readelf"
+
+       tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF 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-disk-remnant-avoidance \
+               --disable-geckodriver \
+               --disable-gpsd \
+               --disable-install-strip \
+               --disable-legacy-profile-creation \
+               --disable-parental-controls \
+               --disable-strip \
+               --disable-tests \
+               --disable-updater \
+               --disable-valgrind \
+               --disable-wmf \
+               --enable-js-shell \
+               --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 ; 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_enable rust-extensions thunderbird-rust
+
+       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"
+
+               # Increase the FORTIFY_SOURCE value, #910071.
+               sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' 
"${S}"/build/moz.configure/toolchain.configure || die
+       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-x11-only
+       fi
+
+       # LTO is handled via configure.
+       # -Werror=lto-type-mismatch -Werror=odr are going to fail with GCC,
+       # bmo#1516758, bgo#942288
+       filter-lto
+       filter-flags -Werror=lto-type-mismatch -Werror=odr
+
+       if use lto ; then
+               if use clang ; then
+                       # Upstream only supports lld or mold when using clang.
+                       if tc-ld-is-mold ; then
+                               # mold expects the -flto line from *FLAGS 
configuration, bgo#923119
+                               append-ldflags "-flto=thin"
+                               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
+
+       mozconfig_use_enable debug
+       if use debug ; then
+               mozconfig_add_options_ac '+debug' --disable-optimize
+               mozconfig_add_options_ac '+debug' --enable-jemalloc
+               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*'
+
+       # elf-hack
+       # Filter "-z,pack-relative-relocs" and let the build system handle it 
instead.
+       if use amd64 || use x86 ; then
+               filter-flags "-z,pack-relative-relocs"
+
+               if tc-ld-is-mold ; then
+                       # relr-elf-hack is currently broken with mold, 
bgo#916259
+                       mozconfig_add_options_ac 'disable elf-hack with mold 
linker' --disable-elf-hack
+               else
+                       mozconfig_add_options_ac 'relr elf-hack' 
--enable-elf-hack=relr
+               fi
+       elif use ppc64 || use riscv ; then
+               # '--disable-elf-hack' is not recognized on ppc64/riscv,
+               # see bgo #917049, #930046
+               :;
+       else
+               mozconfig_add_options_ac 'disable elf-hack on non-supported 
arches' --disable-elf-hack
+       fi
+
+       if ! use elibc_glibc; then
+               mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+       fi
+
+       # System-av1 fix
+       use system-av1 && append-ldflags "-Wl,--undefined-version"
+
+       # 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
+
+       export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+
+       # 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-r1.js gentoo-prefs.js
+
+       local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+       # 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
+
+       # 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 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:@DEFAULT_WAYLAND@:${use_wayland}:" \
+               "${ED}/usr/bin/${PN}" || die
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       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