commit:     debc3a4ce651ad2ce460defe63a82c0f0919816b
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 21 17:15:53 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Aug 21 17:15:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=debc3a4c

mail-client/thunderbird: add 128.14.0

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

 mail-client/thunderbird/Manifest                   |   65 ++
 .../thunderbird/thunderbird-128.14.0.ebuild        | 1171 ++++++++++++++++++++
 2 files changed, 1236 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index a625b9ae6258..decbd507c0a4 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -68,6 +68,71 @@ DIST thunderbird-128.13.0esr-vi.xpi 792407 BLAKE2B 
2966a78c890a1b6b14ba9e6763a47
 DIST thunderbird-128.13.0esr-zh-CN.xpi 792808 BLAKE2B 
b433ec5b64f235dd0d5f0c34116f44e9a6fd481962ada92b0b807dcb830864323a8f3f2c5804cc6e658821d5b15213aa285aa5b28dc11efa1edc46058da286ee
 SHA512 
34afa1e42c7e05ca23e10dd350a150aa8cc3b839eeffc2bbd7e2dd163a7610687c38c4f1d3d9e0143bd53f953cedc80a6333bbbf2ce62807efa111933720a94b
 DIST thunderbird-128.13.0esr-zh-TW.xpi 796021 BLAKE2B 
7a63e8930efaf5ebf1ea762e0f96f8be2320235ae8de56364c672e2f0dee5c05bcedee805aa0aef3f0ee4dcd52c175ba800fb23f83e2f02fcb10db9acabe604b
 SHA512 
971907381052bc777931843d3b73c8c8fad9c51234259759557225661e3ef6662549b5ce402cd83f523ea29990c58c1821774a8c66c26146da63b305ab1248e8
 DIST thunderbird-128.13.0esr.source.tar.xz 673842312 BLAKE2B 
797a13fabe9a2e7f7aa5c9000a092770d0afc48ae8d22a2d6fbd9f794a80bc7c88ad80b5adf8550851f9affc5de426cb58429da1e36860064b6792ae0da96168
 SHA512 
0439ff3bf8549c68778a2bf715da82b45a9e97c2ff4a8d06147d1b65c13031489a4126889a5a561484af385c428595f9d343fb6e266beeb923d4671665f2dbdc
+DIST thunderbird-128.14.0esr-af.xpi 534913 BLAKE2B 
ab779c7ab7272c04606153460bb9303caab09cfd25bfe9e0ee4ef0efb3bb117886628b13fdeab50acdbcf8984f5782d220524aace89558c57e3ce3e0611abdaf
 SHA512 
31de63c35ea85391d97dccd82ce22bb1cf1fdcba8800e9ac8e156f1ab157f0fd792a02441516539fa3f9d6dca39476b9090c4d40b45a1b743fc6765393ceacb8
+DIST thunderbird-128.14.0esr-ar.xpi 686457 BLAKE2B 
de617da4413c0705a74dd3dece6f36be2eed2efde42f1922b15be19c432f3ba701b86c8889a43142ce6f6a56adf9d4d54a39c4c0e6b9f3ec88e4b67471db3455
 SHA512 
f2efb85e86fef6c9fae36c6d35363f7c659721d4e3e6e3fb881c956d91484d644dd74b557dc178924472c390a1708d2ebaa8d22d78fc8f0225546f5780bb8814
+DIST thunderbird-128.14.0esr-ast.xpi 574783 BLAKE2B 
2835f99827be1a112e21f38a971db9f7f2a8e06ffd1a07e38c0c8a624fd837bf9244318907c883db633869b0ddef4d225f1ab4aaf5b154a8637ad724ff61dafc
 SHA512 
44f933126b457293c90589ee32ee4d625f45cf829831c3e7ff9489d31e6af6cc1ffc730d9fa318e6fbcf90bbc34f99de242b00cab7987e4e161cc9c45aeb933b
+DIST thunderbird-128.14.0esr-be.xpi 781773 BLAKE2B 
8b23cb30a1b9040de1699654659782159d8a97cca27f09615b662b7f9ab3f25a665f7f4934c996bbf4bb2606a394fbdfbe8ce435f81e79939ba43c6e3c43a09f
 SHA512 
63f53cf403f5c748f7213d958c6a939a9f43ca2399e076d58e099f2da9cd8f5e9cd53ba1b751f8517082901f4da82e0f88ab5830c20aa4a251709d319fd006d1
+DIST thunderbird-128.14.0esr-bg.xpi 813955 BLAKE2B 
067b494359529fdbeb8cdb13e7d2d8264d15554dfcf22f1efdfb25a9f883ad07294e27281de38e945ff0fdc4ebe91bad8597d7b560afbf3b338aa6a8660a2bfa
 SHA512 
b1ae8ab626fe44330e779a9d17cfa7085f97406cb999650c0e8a32b946dfce6652be7bf9cd725d148ccafc93e7c910a3c6bd619732689d4b4a273f67b74a718a
+DIST thunderbird-128.14.0esr-br.xpi 650142 BLAKE2B 
0d8062e4ea34a4fe67cc900f31f02c6da5f04f4c68a35c18b4efe390b1e87be150caa0d4f55c8221c534374e2d558d4f796a77a8a638ad4670018040edd1307c
 SHA512 
be1f7dd7c2a2c6770ce3108210d966b1133d56995180e925a47f5f2681736ece80469c26d18374eaa5fb11e908f42c1745c332527eb1d2fd5215be6896450b84
+DIST thunderbird-128.14.0esr-ca.xpi 704672 BLAKE2B 
0a4c91f0df827112ef8ebf3804b79c7eb4ef56cb57a622c5f42ffb060596aa9e38f7e24dc2095a7bd82aa82f8cd18279c7aabe9eb55ef0c6ffba48117e70dfb3
 SHA512 
aa3d2599e996d3a26d90180ce15c9e945dc2fb930186913db0464309ca14b3e1dc8ae8c656f46f608a095a9e7ed3f915ba77788e61a670345790682d10b0a15f
+DIST thunderbird-128.14.0esr-cak.xpi 669086 BLAKE2B 
67a762454fa6e35b825926b9a91f6d3d681c8fc84eb24923e3775f0c8636ba3d4b131b3fcac3463170add828ac55bd3b2f29b9628bd3c9274e9ba5bd206075e7
 SHA512 
ad78584f9dbc5f832cfc9553fa439611c4d5d976221a948908f7938e2a7f95c7713094bfaac9f20e69edec76a9d9e5aae6710c2b942458b60a9ee7583902e815
+DIST thunderbird-128.14.0esr-cs.xpi 791813 BLAKE2B 
541c78d9f35f158c30df3780e9398e5817401f42dfa25a216ef76c3002a6f821839cc5bafe5978ffe47d5d54d8baf7948c6d3feb6de4c8d605864238f09d674d
 SHA512 
54a327219384eb8fb39be102e259bfdae545204efad995195fd78adde0517550a3b57821f74c92d8bea991237fb5cca66529c418011b2c1fcc123cb3b077f392
+DIST thunderbird-128.14.0esr-cy.xpi 755460 BLAKE2B 
697938fa08c7b288ff4bb0bae3c4593b549ef9baa4c2196da79c3fbbce21dbc706b17e712543bcaadc99d4ab889cf912173e6c5d22f1533aedbc7db49b8a740e
 SHA512 
d271a913b0f5061d8f5ab78e0984d01fd02471ce94dce27f4e7730f15ec36ef06f29e32195cb0276db3b9bc29b71adbda3a3446bf9fe8e489e9aab583bfd3d5f
+DIST thunderbird-128.14.0esr-da.xpi 742383 BLAKE2B 
33831e411b62f03e62006fcca89eee9c0c0de20dfbe23cb97976143e6056aec7d26471f62a210bba57e79cb3be58c10bb55781f5893d9e64fb2d71d9b8cba524
 SHA512 
f6d4f0dccab8cdc8072ec336c9dc3521f44147f93228c7c3b48c7f6b1058e9297897c8ff756defc74165c1654b94fb6761f5bf2be888a4d55e6b4316290f4816
+DIST thunderbird-128.14.0esr-de.xpi 773221 BLAKE2B 
c83dd8025169c7822c5a2d33b6a5b978667ef2b0b0a860cc36c41137382c793530ca29754fab24af0a58524a3ab0f084d03aefd1390b592036c718bfe7f92274
 SHA512 
07c032962a93d36f0a7bb86b4f98e590be52470ad3418951cebe45d7eb12113809a3f92ed4653f4c6a6d22070040bb6243313d0aad2ef422a68a3cb807f59eb7
+DIST thunderbird-128.14.0esr-dsb.xpi 789461 BLAKE2B 
b63b007d69d20601ab8aa06f806428553d0e3a1cf3ba22016970cdc287c7eec0ce6051c5046de6c3940a36b084872aadd1807b74909598483bf9274033ce5c7b
 SHA512 
9887397d2b79519075bcc98a8112c69fda9150a81f41855d1c402f6238892cadc519cc1f7c37c48698aa43108f7739062d117a744b1087741b64093117049e15
+DIST thunderbird-128.14.0esr-el.xpi 894808 BLAKE2B 
51300f79e6394150e5fa489e14d138a11e60647c2fea23dfea9fe52ab97a431017aee9e6bbc3549389ba076decb92090734544c338b31abd3d245e3a9d229c1a
 SHA512 
377c9e815cc704ac79a34cd78a837051b5a9612ab833dc133a4796339a5c51113de0292dc590e91f7d394eb479edaa4ccab54a82d59eaf9410087a35d02dbca4
+DIST thunderbird-128.14.0esr-en-CA.xpi 705286 BLAKE2B 
d4cebabe0008c2695db0d2e4e3fee283ce80baad8d43a7e2c2926e038115641e5b6aeca2753545a3ad994f04d4eda9712c777ed509e474815cc967a8e79dbc25
 SHA512 
9dc2e6175dfd9196ef01333fc7b5ccacdf664b5b30d9d51916054bf94d9266983da3c7c441dde9c681f57b495932f8d1c4849b77223bc57c9237d588060fcc40
+DIST thunderbird-128.14.0esr-en-GB.xpi 706750 BLAKE2B 
3fe9f139fad480f4715a13b49d462f21aecc151c771be24a92404e6f0fd746908b6091038fc83045b7c6f431f4ded5ade1ac5cab271ecfd97d9d412b8b27e0e3
 SHA512 
87c9359a88b1f398558026afb9e2b96b0c04d238aef29d169e27400c4834e3c0345b4f6dd347db8e0b651b128a0b8e0d267f732b624d6bb607ba2ae249b58eeb
+DIST thunderbird-128.14.0esr-es-AR.xpi 762737 BLAKE2B 
73effe3e6f75fbba650a9fbe3c86d36126d2bde99b6b40334ec90bc8cd9ff833b55bfab6160836530df27ce705efea8efb98705e0dc6ad3dd20b01e871f76b86
 SHA512 
b9f22dc0513f529e160a16da160d982186f2914da766abb6f040ac50c6ff9a88324ccdc20e3d55dcb1ccd408896f87edd927c2c5894b0178789ca31d16d07560
+DIST thunderbird-128.14.0esr-es-ES.xpi 764648 BLAKE2B 
29bf7aaf126035722570c12d849b703a18db1de7474033b80d3122ffe3b1994b7efa5f0a9678105a870fc5d451e2e2c5afc14bd2004369fc6b74814df4a2b953
 SHA512 
7c2c7fcd179a78b482a0c9608fa26c8ef22be2211cd6fb8762a79795e698c3720d485d37c72308f14307f69d9c2a1aa7879f2526ef89d0284611a87e8c59469c
+DIST thunderbird-128.14.0esr-es-MX.xpi 756900 BLAKE2B 
d17128202110633b8ee55a98075810594bcb74d7ae76b633e5075e4a95acbb788d0f4762a17222c5e44cbbae77811049bedcb244f7c590fcfc31ec2a2857c8b1
 SHA512 
5c922895d74b8578a723a29749b27bb1eed259f959c961778d4b9bb52962ecf9659c7b0574005a299e9c832e537e9dfefef434e0717260cbd81dc3ed3eea1a79
+DIST thunderbird-128.14.0esr-et.xpi 704035 BLAKE2B 
47106668c994f4e992bc20a6789a7116ff39bdf1493a647a2d865cb88d88c58165ab4bfec3a970459d8c06afcee669595d4f0a67dc5db33e48038e17f0091a4d
 SHA512 
90f6df51c4ae9a31b5e310295afdc8a8d4cbb1a6e4e3fe1f72576bd47d369041e1ff54e48f62394fef45e0fdf14cd1777c891432936d30be550459553d2c72be
+DIST thunderbird-128.14.0esr-eu.xpi 739570 BLAKE2B 
5e0059bf2050a5a034d8f531e6f884a86e7f4335977d43318dd001d9c94199a9f173cc3ab0c0501f337cd15fd15b45bb4a47aaef7d769e3459ceda24b5f7ca6c
 SHA512 
9fbb2a9640e619a246aebe71ec5a4fb1ea95ec7982c15c3d98f1ee81fdcdfc89d9636c5fd947dc89d2a20ab174898e86d29ba0fe61ec7b70b4f44d8bb64c36d6
+DIST thunderbird-128.14.0esr-fi.xpi 735965 BLAKE2B 
c7d4f7a3330430847515d1db3f3177fa02998ca5fbf88d6ca72389d4e2a50f415dd603094b500a4128985932d8becb6463d0e005847620ea9b0fd144bc9066d7
 SHA512 
714a624f096173f843c560f183d9c2835c4be30b3aa42b3a62bcade52c3b7feb0e9e3c56ffad8db810f1ff494af120c454373285c9dcad28675df174356d72fd
+DIST thunderbird-128.14.0esr-fr.xpi 776999 BLAKE2B 
b1d92f07f9bec4dc08752dcefa0883ddaa91d4efba1d7f6a5e0f3b0a18ce830a30836eecdade8810800860feeeb6f9d24976cba86d26a5a6e8715f2a9f3dd321
 SHA512 
399c43a68839f36300d2a385bca3bc5b65d65984a95299a29e51f9dadd6d72721318c1953748ad36a65892250957a191be2e1ef745058a67c6f13ff9dba4ad68
+DIST thunderbird-128.14.0esr-fy-NL.xpi 758202 BLAKE2B 
7dccf73321d2c98bc154f7db99520d1410cb821207da383b56d25431c95deaa3918d633f017085c97139bd1cbdd26aad86be19cb62a71256edf099ea8d76e7c2
 SHA512 
da544b84f02cb8c90a386862c7fa4de47cf7acc3d642691bf387b2067bfb4499e90a46e59a0a7a4b929921fc8864323849bea9c337f43beda16b4fa7dfede5f1
+DIST thunderbird-128.14.0esr-ga-IE.xpi 614303 BLAKE2B 
5b7d2a110f95605ddabf3300d55ed884437ddfd8950eac4d5dbb318b3861313d6a0a20ffeb5f740dced90d3d6ef51f6a0ac69e1c1ef5b6732a20646c8f910578
 SHA512 
a6b3da1d3c8a1b4eb511cdbca8b60bdff446bef7881a11b794a83ffdac52e527e1d74eb1110223786571988988a6229c17e35eba1996f6b5f4b2af2b24f04883
+DIST thunderbird-128.14.0esr-gd.xpi 723345 BLAKE2B 
2cda144fd6f51ebf152f50556cdfa19c7b2740b75b274ed0c64096213e98305f5bd1ff12401485c4bb3f753395a29e1458dcd9e0b3d69e32861f9c093da31a97
 SHA512 
81c45567cf1908da7f02c2b61b7d17c5b58bd3dbf0d0948a0581229f8e6a7f6d0be5557bf144d0681c3ea6db293f67dcaec9213550cdef1f268d825fe51ce9c9
+DIST thunderbird-128.14.0esr-gl.xpi 738611 BLAKE2B 
d791ad41af7cacccd74ad845019f96fb83c108ec918beb9062e960c4adb313852ee9c1e753a51756666859937c59fe74be4ea90771124018b1605ba0a3e29008
 SHA512 
086a2d6e77b8174f242f67eca364b4bb82b27c5036d46f1ab53231b44238890a9cc1d3c18300b7578ace4370673e8942eb8fdf9fdf7a2310e673d993a6736bb6
+DIST thunderbird-128.14.0esr-he.xpi 697003 BLAKE2B 
cd3e0cdef2b0dca0a555dfb4333432da2d91522d2d6d0cd2ea5e432912c560a23d13d1dae3f4fdf1b510096e9c2a9f0a5069e0654563808bbd0c123fea9e59bb
 SHA512 
53a3092235e5d8ffd9223c37250f7b6a93865926812d8534f50fcc125d14aceaba99c4ac2c78d8b3dac69ed8683cc3255e864dab298cf494c77179544b1f5976
+DIST thunderbird-128.14.0esr-hr.xpi 724919 BLAKE2B 
ca0fa8611869cc49c05dc08c19099e1f8f6b41af00542ea46ba9cc771f622ad4f6160d765045366c1eab0007f723aac71e87a597cc1de9274381c344c0e28214
 SHA512 
c75f391d5672e626ad44debe6d58b6e2ece85bc66fda20841dd629445f87c01456d59e24401ca2c8f0fc71d49585b44b4d9721358af2b7d9f981026a54b9ff4e
+DIST thunderbird-128.14.0esr-hsb.xpi 785990 BLAKE2B 
75935e1afe2f66f11187813ee0553b4b2dd4cfef4a8c7b26b4d1f89beeb28839d41f3ee5c6e4f3d7320dd66c79d2ce043b257e65e435f0d2ce749b3d9d81caed
 SHA512 
a3b560639c86a24a03857dd386b297cfde16e35aade87f01d3d332dd572f0640773620fa96589ef7a3edc027f8389113797238168ae4260f3c10b5a225f457a7
+DIST thunderbird-128.14.0esr-hu.xpi 789531 BLAKE2B 
52a4a2c87913232798bb0178ac97525fd24019ceda019d4227076d3ef25a25cff5b9da49f7819efcf8a846c1b437a5b17dc7fc974651cb49351ba1e1bbd7249b
 SHA512 
eccdb279e167bd16ea50388bbfead1d7ee75fae5be46cc23f99128d8c99bc1f24b5a742d165a117b0040ab11424dc516d35d83364a7473a8a2268ffb3cbda73d
+DIST thunderbird-128.14.0esr-id.xpi 721048 BLAKE2B 
fe61bc21bb2526e6f41c559a47814b2bab59ca67cd1454372da433870471a80422b81afebef47187dc250631831755dc9daa13768226adcb2f1a87afb72bcc2f
 SHA512 
fd1ec9d1eda759929a44a5b691caf9dced9bf73214fc794d1486965da0c469f670594ab8d92f8fcb71e323960ba92792b0bbcbc68f3322c3fbe2229fa047629a
+DIST thunderbird-128.14.0esr-is.xpi 754160 BLAKE2B 
5eb016b4e9b805f8d7d0b490f101d686c4eca74f53d7d30daa73e4563baa7583fc9dcfd2b9c983552050fdd9a3c3335b5c1576b07aa62aaead0d572c83528354
 SHA512 
b9a05cdbaadf8ccf361fbdb07fcf296af245e5248cb37b4c6e2c375075aaa7ca1b3d3fe2d780bf8c94f6cda6f642cf85fe4ff29d96035004c5fa955d8b242a18
+DIST thunderbird-128.14.0esr-it.xpi 753782 BLAKE2B 
a9c46f3b6f77a5289c0dc6a0ed5820194e7d57392c171b92ca3dac67c998c9eae3c25c37d0351661b0e1d9945f462335ea7d773148325a80a1a213a7e6794423
 SHA512 
afa0832ba496720f7bc76fcf7a986e27b9f5b11c108bb4d109f9d371378fe154bece7ee61a359913e91b1ada44aa7921a6da8e0794beafa02192109884ca0210
+DIST thunderbird-128.14.0esr-ja.xpi 824754 BLAKE2B 
298b4a4cad8277c072bba055cefb395bcfe3be5cb7a0e115adaf7d4ed8ff018e737905ad5df9937a468598636cb347a2f33ba8ce4cd3d82deba2af3f25cf3ea0
 SHA512 
f004bfe244e14324fd22f932cbfe01bde4e46425e44c72f8d036eb6e99960e9ae458217076f75f33fa03de396f81c2dc7b99cd14c36779550b2dedc84c1654db
+DIST thunderbird-128.14.0esr-ka.xpi 832697 BLAKE2B 
2e814e5d94c7bd2de3b55b5f5dea7b4c2dc3f15501877badcd6e8015772d98ed13521c0786cb16643992b88256b611b65f32cc4dd3cdd173990cb04cce1d363b
 SHA512 
947c326b51bad5efb4bbf02bb36fc1fa311eab1c001cfabebd2df25da5ef797bae317bbb8884a3c241b3b9ce1407f2f1c3272030cbd2354d2dd8fa22dfc850b0
+DIST thunderbird-128.14.0esr-kab.xpi 732880 BLAKE2B 
3df58700b0271d53465037756c578e198fb7c88e709d5de77eeb12c99095494f37fc037a10f6d617cb8967508373c05b53caa577213dc21a7808067ef4d53c5e
 SHA512 
e8efd20209371248635ba1d8d87859c41c4344c719dc18b47cfe43d3e8f7498bdf704d9adad85a18a6bcabfa5996955b093d1436ce86f1e03a494245ca0ed642
+DIST thunderbird-128.14.0esr-kk.xpi 860573 BLAKE2B 
0bb76c37cd7d5d1634040557b138f7f400eefc9821a622eafe02876ad23d61b2fcc3310539e091ea5786ac99c0fdf369524f182763183118a02b1869917aaa39
 SHA512 
7ca872753885b8026a527a76da7e301fa04eac8268b2e8d08c6091c3453b10da05d3b53ab573999158f1b545b2cbf2511124bad2c4e8027db91c3898a269ebff
+DIST thunderbird-128.14.0esr-ko.xpi 792675 BLAKE2B 
cbc58be92d99a3aad0a779ada81fbcbf328e595d2df76837bd3fb546255145516a06101ce9162fabaf79e47b70a62b59584304b1df223d09654f4e3b78c6dfc2
 SHA512 
037c00ed90587d376ac6b39ee9538c5fe4398f03275d2561c355964f37da514f7c6ac8047a80c2b0ba5c7a5903b8c3309f940db9d491cd2213cd01b6d99c15ef
+DIST thunderbird-128.14.0esr-lt.xpi 696749 BLAKE2B 
27acdf3677eaadfc65e88d15acdefc756df9537de71bae2460f33fe74b08c71e1d40acd60d0c0c7f5bf824f4561227b45cb140cff69ab8b4f1154aceb598fe51
 SHA512 
fbce97d53542806053a46be1f2cb653b556ccabaadc5086fe55a29d92b2aab108aec63ad5930232db84c0384d3c42671eb621520b3f77a2adb93a97fc16fd685
+DIST thunderbird-128.14.0esr-lv.xpi 626202 BLAKE2B 
99dd7a408b04489641c41029e32d7820c0ec9e0886c7f285754221e7e28f69ea886879a81104f68acb78e788d3520c699a64c7c00ef873edd7a45c22e7b48286
 SHA512 
c61b2cab2ff8afe43856e91f81d25450e440e1167bbaf9e62d8cee9e022b45f1e3f0f41e08c86002311960bc1bf5bf7f674c2fafcf84f69136cfa528753a4b20
+DIST thunderbird-128.14.0esr-ms.xpi 586641 BLAKE2B 
92c39809a0699c7b67baac8e7ab20587bd9409b7135d487cdf726e07400f3b97e4a05a4ebb69fc8f1fd9c134e6ca28f0051dd104bf24cb00e5b886688b3b5742
 SHA512 
6dae1c2a17003920d75d5f63d3bb20cc0149911216df50dbbb04b62c8623bd62ed54a4debcf40a26d8c1bcf2045161dbf1f88cef3c0dc7edddda67b6d8f558bd
+DIST thunderbird-128.14.0esr-nb-NO.xpi 724068 BLAKE2B 
b8537320ad93a7aa4c8064adb6626f08c58786cecfd047e46975210c08b7c781905fc1e1dff8bdae2f2ad186f15800fbe82f5eb30b29175ff2b44f7e4d21ca8e
 SHA512 
e3f843c91949724a040935da4116826347909698542762d6b5f5459d45f788f117add66d10b4df44c258ba03eaf994eefad3208396bc89405e76a2e3effb8911
+DIST thunderbird-128.14.0esr-nl.xpi 748467 BLAKE2B 
f8c172aa6d5e290a5272d96af4a31b750c32ce6e7b5909b2b7de0dfc97363a7025042c64475023ab9a986e3e759fe201b880a8a4d159561fa3bc49415b8037e7
 SHA512 
cdf846c5a892968e0b4604e369fe2d3fefb62d6da17596c051b82c54ee11d4024ecda8110eb77f6cf1eeba5aca74af1762a53abf46a51091c886079974b134b5
+DIST thunderbird-128.14.0esr-nn-NO.xpi 727690 BLAKE2B 
0751e5a798a52d7e43ae35433bda3fa4e03058e3cecc9243e69517031e67d342922619862a67886a794e567b77aa00e3a04d3cfbd58e972e74247122e17cd218
 SHA512 
99bcdbbe7fb063e8177829c00baeeac91f948ab0a8d55755fc395d40c092adcdb4f3ea69d1c95b3f2adc68bd5ab71c1fc90daf5bce6be2dba5699e9c15dba789
+DIST thunderbird-128.14.0esr-pa-IN.xpi 687935 BLAKE2B 
16288c457cc663312127c0c77412201942b30198530ffd0b4fe4d0ec634fead72593af8cbed6b9ac804d120f5711869b8bdea514e937f8a51d24e79f694ed6df
 SHA512 
82c434511944177ff24892ebfcccd2cf36c465ac8da0fdda9a73b334fadf313ca1c50dec6748333227df27537e53fd25cb82b0f9137d153631c5b6f2dfa38866
+DIST thunderbird-128.14.0esr-pl.xpi 786474 BLAKE2B 
ad931755ed14e06ea698db895da1a28a5bbbe55a17039ac008f5487b546af21399bef33d843fcfae1112a64b5fa1d9e98b51edc9508e0c834c70b9fde4409e82
 SHA512 
2f35efecf7ccc312d586fe6617dc1ffd2f27e56f5a519c53aa1dd2fedb0aedb6762a4fbd021092db9d0ae8c16c83432463f51e54e64afe2ffbe155b373637c93
+DIST thunderbird-128.14.0esr-pt-BR.xpi 757494 BLAKE2B 
b430a9dc04bbeb49a509fbd5411c74ec6d9287af2a3aa8ff1d2b1c2e6299c9b6d3d1a8eca9e1623d43da5cef658f1dbf5464d5de698a3998392645f416c7516b
 SHA512 
d0e9585176a11ef550aade03cb97ffcd25ae29fbb118227541c491b009d27b668d072bd6219409862c6841343b4206833d5fe5a2e4fbf169fab5b6df26e60dc4
+DIST thunderbird-128.14.0esr-pt-PT.xpi 751366 BLAKE2B 
1417ae0d1be668cfc3da8981bd027cd5f43d0f7b7875ee7bc7fb966f4f9d3006595708b589b365375a5488e1a211ff5e1d94df055bf1e1fe733d5683c7e5438d
 SHA512 
24519352567955ae020412cfacd494c226319eef7ae64e9c8c3b7689cecc91cb45c829148bd24f3a7b25c65aa9c9e08149099359a91c0e3167f2d21d762e0bfe
+DIST thunderbird-128.14.0esr-rm.xpi 752554 BLAKE2B 
45c2d5dc79d3b4446ee473e933cc98208d097bf404a28e9b8bdf9e60ced0b1cd04625d10b7941cb664a9c9c6044888fcf3e4b047dc4fa40d43edf1915f269055
 SHA512 
686cce6c74bc994d3c23570a8ecde8d9939210e8249080ac929c6b9b1da9dc6894af34aab161dd96ff541f64de7ce33e965f08775fe3defd56a75868237dce6b
+DIST thunderbird-128.14.0esr-ro.xpi 666541 BLAKE2B 
2028a01779e61b1b7329e4c7ad5ed599c69f8134b04b7c70845c27d5592b7e582538eaed579adcd457cf90860ea19b50563d68afd32783e5d09b47252680f081
 SHA512 
fdeadc07ecc528214d161b36eefa66f7d94aae7560e93fc358040cb7c5cb41f8d8cf06fef1826aedd3023d2328d8839dfdcca989ff9f29e8a53eb5165d48df79
+DIST thunderbird-128.14.0esr-ru.xpi 877982 BLAKE2B 
d7156cbcc13ac0e87022d7a26860da4ec9f755ef6bd1a262a5c7c6a3c9715ba8109c567f719b90025639e3dded8982c7cafc05f912837dc692e1a9691ee8cd5d
 SHA512 
3eb285aaad2a4e741d39427fd0ac0a1778ea1e7f2d31a79fa1e0e41d17ebda4e3b41a1aee9632c6b58a0e1e63553cac728923780fd4f5580340b4b6a9edcd2c5
+DIST thunderbird-128.14.0esr-sk.xpi 791136 BLAKE2B 
394f2ad3c8aecae4a18bfd880f67be2d8d3c7ca57eb772d0a62e512c49a0b6eddc5215c45435579fb70516de781d4a995e2b10384e5c8ac04d30088b6c5f54f0
 SHA512 
4d644b9b900a76bf123a0e08eeb4abb0aaa287237f4171b42e819e4bec1618849a38cfdce29647d1e4d67a71b27a8b06af5af528416237cac4c2c45c5ee91772
+DIST thunderbird-128.14.0esr-sl.xpi 752437 BLAKE2B 
a3aa497d8bd893076fb8356cbc84c431bc4deeb53419990c3034a013980ff30b8cb77b135c9112da0ffa11a63fb583940a5434d0e85a52d15b62ec2e241b70c0
 SHA512 
756d93af864bec1e23d8565f949c47771eebc202d9ba6b0613bf22e57ccfb82cb1a8846b5895ce2f99a80d0046a9bbbaa59a711613205fcc041657828b11df72
+DIST thunderbird-128.14.0esr-sq.xpi 774172 BLAKE2B 
6d1336061c8ac4197356357ab277a9e2eab565463afa69f905fe18b3ff11341e96fbf6fe95153781f992a098178c0d2358a098cf4a4176dad77cb593bfd341ba
 SHA512 
452036739524c91f06f677b2845b604930c97350937404640d066353e87b17ce8075bff05cf29cf13ebcb1184ff5580ddc4d7ce600e652147799735da3f900dc
+DIST thunderbird-128.14.0esr-sr.xpi 766343 BLAKE2B 
352fb39c780769df7f898b8d05097133f19c5cd98f328ca12256cb766a384e55eed22b39f9d2cc2f97ff53bd2f8bff8ce95527c944e8de011ee000c09ef4a1df
 SHA512 
d5ca8e419b97abf6c4c0f96bd9a472799fe1856adfa8a43a2c60c9e9d65bbf8e60f1c603dfc65f77576c095f940a9bbd1dd8641cb2c80e7f114169df294e165a
+DIST thunderbird-128.14.0esr-sv-SE.xpi 752313 BLAKE2B 
f3ee7a9377d5653a3f60817187f811e136152a9960367123fc4f3442bda9a25562f2c3e589e3c9ea285c2a87e78759746acb6b89333bd0529d4942433ae9b0db
 SHA512 
733a8201db77664f47c7c76033c9b7bc66da9d974d16e8f7058078d7415d106728e003a2ca967f2c190821ec3ad32cd385adaa71ecd2700f31314cdf9f5b4740
+DIST thunderbird-128.14.0esr-th.xpi 849560 BLAKE2B 
f35ec66b78fb2fd563d312d0867d25a76e07cf7adfe82c9ca40d15c1dcd246f21c94d9bf8e7ced4593ff034b2718e31c4a4737094c9683e1edeb61bbc6ed17c5
 SHA512 
2fdf0e73f5e03c12e9ed1c252afd38992c714fe9c6c231f82bd29339797535680fa1bd45b33f436a8702a5ac337ff711090352e441b75d5d04e2a171168a8d04
+DIST thunderbird-128.14.0esr-tr.xpi 764275 BLAKE2B 
f9515f666ccafe1344d11fe0a9cded959afdfb6ca8cc28fcfcf16221de9ebfe1d53485af969d0a2a3be616a9a87b9715ee2b740a646cbb7aa0dc0644e35ce16d
 SHA512 
e6cbcb5a47415cb368ea25c0c486590590dc3eeced1195accd4d2c40a1daf6722944a221ceaf211dcca2e794174ead657399577b7e596203dd51b1a7fc856fc1
+DIST thunderbird-128.14.0esr-uk.xpi 866388 BLAKE2B 
116b89da6bc5760b554cfdbf69febd6e249f2b36a3e6d13ab663eecc4fdbbba7400eda888f762a0d9132bebd3326c1dd28f56b267def7784a58465919a17572c
 SHA512 
c69b1b99dd1aeb6b285984338950ae6aa8077e5dddbcdb3e771e6f8a8aed045ad8dd87f6097e654dff7f70cf5fd3e4fd142bb06c03f36ce2aa277fada7c36a74
+DIST thunderbird-128.14.0esr-uz.xpi 589338 BLAKE2B 
4f99ef93633ac841c9ba55c6e2f8aa96f654ba6194981fbd984638d556809d1e06e5df5d8264ec429016161d6a1f7a6f07775834617eaa0fdd8125c4b0b66ed0
 SHA512 
cc035c7ad2444952594e9768acdd090b38e092b88b07a20428c1b4389630c493a5500787c184388b388d6d3836f88f273a093a61d80f5e031666b6ec020a53ca
+DIST thunderbird-128.14.0esr-vi.xpi 792409 BLAKE2B 
8a2cd73cbbfeacd787016fb0d6199d271634cad3c3457021dd295c17d422c7ccea54c12872e39faeb2a551fcc4e9bec94e8be758c3ac346849649aeae11a9e12
 SHA512 
8423e47f4a76059a38950a813f27f1f6b4d47acfa7379d510594bf6ef2f7be82f4c62dd264a97fb5230479e459585757015a0c3d04f587c243ae4a3bbc84cc27
+DIST thunderbird-128.14.0esr-zh-CN.xpi 792811 BLAKE2B 
6ed03b4cdefdad8fe2b873b8e78b4692aa051c7eb4805f1c6db084192e1d0e666aede48e06c9f0e0daf604d79c285723f28c8eebe4dc7a1f09d79bfabc460d64
 SHA512 
08e4f32d02840b4c6910e3999a8bd3db652a6f8ca02b20fabc21e21adacd85c7687a55ccb586a1e26b8b897796b55b69b8eff06ba9b14cf2c4f213ab58b559a6
+DIST thunderbird-128.14.0esr-zh-TW.xpi 796023 BLAKE2B 
416d92b3cdb3e1189d93bca5763497337e046198b722cfbf0f50e0914b41c2df046dbe14ccd4689bef160b5a28e18ef635f460e840ad483c5ef0def09bd96cf6
 SHA512 
bcecc004d0918e5c3407aa56f62462bfd13c2ddb3ff10e620049ecf3ca693bd03f1ee7881eab9c09d25667525b37d7075e808da7cca1546aca71bd31610f28c1
+DIST thunderbird-128.14.0esr.source.tar.xz 672907156 BLAKE2B 
36e8a0d844be0ac1f3a40aaf4f75f5cfbdfb0798d5e9337b3b983b04dada9d0b80e34e055fb8fd6ad37e575255885c609be8b110eb8ef7df246edff11962ccb8
 SHA512 
3ce2debe024ad8dafc319f86beff22feb9edecfabfad82513269e037a51210dfd84810fe35adcf76479273b8b2ceb8d4ecd2d0c6a3c5f6600b6b3df192bb798b
 DIST thunderbird-140.0.1-af.xpi 316232 BLAKE2B 
efbef465d1df2c3e40ffa2d6341e5593334af4998db98be41c83fd23e6bb43a0a9fc4745f133d777d198ca10502d225cd13dd8c4fecd32e9835e382a131d529c
 SHA512 
0e475ef68f9162abec3dba86f7745d256e080c5136c8f77d852c313afbc04a18812c81607e1866ccaf7f9e0779e9afd16a74361525f55b6bd8b3d6d5f2f7e675
 DIST thunderbird-140.0.1-ar.xpi 434821 BLAKE2B 
7f79c1ed14d5916403d1641888f68e6c64f4bf21e7e5773c3f635ae06de8331b4c24696e8fcb538aab28cda23b049f2b13d1811c7d80a1a1dab05324e9d44181
 SHA512 
49dd59dfa890e3a78f4d4a046448528108daa260ecdb1639f8496c16728179e6019bb099b1c28790ce772803078c2b0cf307ac7d0051e9ce3844a06b23a0662b
 DIST thunderbird-140.0.1-ast.xpi 340612 BLAKE2B 
08f6032d0a0f1f88254ea16ce25185238aa12747f6bb1377777ad9ac8b2858b097c15ad7c3ae112f20a8eb30ecdd930d5d65e56e20f46ec661d62717ef50904a
 SHA512 
71c1e5352b415a090c1149897ab3e8220cec2fcd2c459b7671dc6d9a1ab3a34b2a7b734249be3b7156f20a942bfb98b78b6383c9bbeec47aa89aed848865cdb9

diff --git a/mail-client/thunderbird/thunderbird-128.14.0.ebuild 
b/mail-client/thunderbird/thunderbird-128.14.0.ebuild
new file mode 100644
index 000000000000..795cd1a95c47
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-128.14.0.ebuild
@@ -0,0 +1,1171 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-128esr-patches-12.tar.xz"
+
+LLVM_COMPAT=( 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%_*}"
+
+if [[ -n ${MOZ_ESR} ]] ; then
+       SLOT="0/esr"
+else
+       SLOT="0/stable"
+fi
+
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+IUSE="+clang +dbus debug eme-free hardened hwaccel jack libproxy 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 )
+       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 '
+               llvm-core/clang:${LLVM_SLOT}
+               llvm-core/llvm:${LLVM_SLOT}
+               clang? (
+                       llvm-core/lld:${LLVM_SLOT}
+                       pgo? ( 
llvm-runtimes/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 "llvm-core/clang:${LLVM_SLOT}" ; then
+               einfo "llvm-core/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 "llvm-core/lld:${LLVM_SLOT}" ; then
+                       einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot 
use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               fi
+       fi
+
+       if use pgo ; then
+               if ! has_version -b 
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+                       einfo 
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2
+                       einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               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 debug ; then
+                       CHECKREQS_DISK_BUILD="14300M"
+               elif tc-is-lto ; then
+                       CHECKREQS_DISK_BUILD="10600M"
+               else
+                       CHECKREQS_DISK_BUILD="6800M"
+               fi
+
+               check-reqs_pkg_pretend
+       fi
+}
+
+pkg_setup() {
+
+       # Get LTO from environment; export after this phase for use in 
src_configure (etc)
+       use_lto=no
+
+       if [[ ${MERGE_TYPE} != binary ]] ; then
+
+               if tc-is-lto; then
+                       use_lto=yes
+                       # LTO is handled via configure
+                       filter-lto
+               fi
+
+               if use pgo ; then
+                       if ! has userpriv ${FEATURES} ; then
+                               eerror "Building ${PN} with USE=pgo and 
FEATURES=-userpriv is not supported!"
+                       fi
+               fi
+
+               if [[ ${use_lto} = yes ]] ; then
+                       # -Werror=lto-type-mismatch -Werror=odr are going to 
fail with GCC,
+                       # bmo#1516758, bgo#942288
+                       filter-flags -Werror=lto-type-mismatch -Werror=odr
+               fi
+
+               if use pgo || use debug ; then
+                       CHECKREQS_DISK_BUILD="14300M"
+               elif [[ ${use_lto} == "yes" ]] ; then
+                       CHECKREQS_DISK_BUILD="10600M"
+               else
+                       CHECKREQS_DISK_BUILD="6800M"
+               fi
+
+               check-reqs_pkg_setup
+               llvm-r1_pkg_setup
+               rust_pkg_setup
+               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
+
+       export use_lto
+}
+
+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} == "yes" ]]; 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"
+               elif use arm64 ; then
+                       export RUST_TARGET="aarch64-unknown-linux-musl"
+               elif use ppc64 ; then
+                       export RUST_TARGET="powerpc64le-unknown-linux-musl"
+               elif use riscv ; then
+                       # We can pretty safely rule out any 32-bit riscvs, but 
64-bit riscvs also have tons of
+                       # different ABIs available. 
riscv64gc-unknown-linux-musl seems to be the best working
+                       # guess right now though.
+                       elog "riscv detected, forcing a riscv64 target for now."
+                       export RUST_TARGET="riscv64gc-unknown-linux-musl"
+               else
+                       die "Unknown musl chost, please post a new bug with 
your rustc -vV along with emerge --info"
+               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-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-ffi \
+               --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 '' --enable-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, since it's not activated 
automatically via "known arches" list.
+       # Update 128.1.0: Disable jit on riscv (this line can be blanked to 
disable by default),
+       # bgo#937867.
+       use riscv && mozconfig_add_options_ac 'Disable JIT for RISC-V 64' 
--disable-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
+
+       if [[ ${use_lto} == "yes" ]] ; 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
+
+       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
+
+       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
+
+       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 [[ ${use_lto} == "yes" ]] && tc-ld-is-mold ; 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 llvm-core/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 exec_command="${PN}"
+       local icon="${PN}"
+       local use_wayland="false"
+
+       if [[ -n ${MOZ_ESR} ]] ; then
+               local desktop_filename="${PN}-esr.desktop"
+       else
+               local desktop_filename="${PN}.desktop"
+       fi
+
+       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