commit: aeec53aa9dc12ed7bc0c612faa2d7d21b0208891
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 3 11:41:04 2025 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Jul 3 11:41:04 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aeec53aa
mail-client/thunderbird: add 140.0
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
mail-client/thunderbird/Manifest | 65 ++
mail-client/thunderbird/thunderbird-140.0.ebuild | 1162 ++++++++++++++++++++++
2 files changed, 1227 insertions(+)
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 600802754903..9dfb6bf2f5f2 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -261,3 +261,68 @@ DIST thunderbird-139.0.2-vi.xpi 516767 BLAKE2B
2bceb16d948315e99c454ae2d41884df9
DIST thunderbird-139.0.2-zh-CN.xpi 506145 BLAKE2B
d1241c380efa9e87257ee92e68d0197fc8632fd7e9dbb7d80a43750c2f1f57e25bb117de86ce18d565120098a50e23c15aab255715d9b8b5f649eda9f3955b29
SHA512
7be0650ebbdc31f61ea7b38605eced4c36f1b2647764c38f671415189e807438ba3051255196befea25a55c1afb44b425d8a3aa469fc8eabbfca658974997181
DIST thunderbird-139.0.2-zh-TW.xpi 509370 BLAKE2B
1d3b4728926a83c65dccc13e95ee614d8cdbe5401f91c3551f29f8f59d56ed9f1cf6e9a83a7ee259d58862e2fbe198c28d05833d7e89c9ef6853c6db13b5f8bb
SHA512
f391b30eb5b146f284f31f25caefc43ab00d9db887ee0a5ea8aacc739138ce38e7869bd7b79851868e4a7c61f300308cd60cfb09ccdd7b916335472e7faa7336
DIST thunderbird-139.0.2.source.tar.xz 759561852 BLAKE2B
16998e3e6a0363a6f2b02f68a9e97540f8168300e5fb6c816b27506a936e58737537bbe025b4aabcfc0fe44f725a86aeb2c750bb1af11d9b192091d8a0f75a16
SHA512
edb20c692674dc5c3ba70673f7dd03710bf7ac0ce2be614a7a4b3d2b40b20b4974aab2a621dd5b43720c412a590c08f8b78abeb9b61f288f3217c6a04cc1e8ff
+DIST thunderbird-140.0-af.xpi 316234 BLAKE2B
3aba53bb39db2d8b2d1b9ee4475482954930bf486c9a14333349d38ba24f3c1ceb30a16ea3431113775353cdd5a514effa2d06bcdb18748ae60dd56931396b2b
SHA512
13f05eedafa777b19bd4587ad9be6ac8910e6500d7c9887a3c8e0b4c8326a96becf2042e238ac7819115383985a9debfa41ea8f6a421cd48c582b06df90cef57
+DIST thunderbird-140.0-ar.xpi 434821 BLAKE2B
b4487e02b501e72fd90f0dfaa671f77b05f54b5a6128b6f7aa71839014bf51d645774be126269b8fc36eeed64ba6bf250fe9c32e9e7b68d19d0c15070d24fb02
SHA512
9a21916050dec47ad36e9034b50d763e917b4551fde925732aa440d2c5fa98e10b54c80be7d71df6243afcd42664a41dd789d3b08cbbb42224a935c599ee8da8
+DIST thunderbird-140.0-ast.xpi 340612 BLAKE2B
813a5a19e73248e98588b462b507e8b6616fb216ddd4c0f18529c875849c38c4632a6c46feac19d56b43d3e8c1a28167bff2d5714a40a10dd35a6f4b533619e7
SHA512
35b85a4a4101b033188872da0b33d5c44f9cc24d2aeb487cd000b251fbc571f2037c6516a2c7da90c16a4d7bb703b2bb0dd9ac3d959f4e603c805afcbc9a4d3f
+DIST thunderbird-140.0-be.xpi 520619 BLAKE2B
fb1607efa8876201ac5e2e1068da063664e3b52c4111d0fe2f5ba579c1b2a789629a86c3075c40b1a220f85a11684e5e914827dc46ff10f5da1be938ce4f0326
SHA512
712c3505cfa68b3f6a3ed2b9ebd48ebf9f3e0e3da09f52fcdc9dda4a577cd9be5cb35c91a16ca9abaf62c6a2e5d0af5a71c73f7f3c713640366f7131ad25d462
+DIST thunderbird-140.0-bg.xpi 533983 BLAKE2B
3fa8167e1d137d55f6ba639e48ecb3a27aaab660029b13dfdac54dfa908a225a81f5caf959383ff0b7b07aceb01b73915c6190a91adb78cf65768ef6d69d5779
SHA512
8eb84a6af85b435d4e696ec21ceabc55a3c2bd47cd538cdfa05699dd306f290994f4a163b1b00f1b3e2c01fbfe2c18ce48811067a9b11d60474ac0ba566cd7c0
+DIST thunderbird-140.0-br.xpi 402536 BLAKE2B
186456bd1e3e4f139d7394ddcc59ef4090dcd3eeb0cf0e699559576f6eb41c5b1134df3f6a5444424f0bc0d052d668a6458f0cd0a192182e3df1a40495d444a0
SHA512
14cf561222d284068da5deab81b99ca92e7de3d4b042db9487a8c9e50f84f0b699c879158acf952a78775f27575add827d6d0f0675f43a344e743485e2cedd10
+DIST thunderbird-140.0-ca.xpi 440342 BLAKE2B
8da367b55901baa23e0e2a7e7410cb5d1794567322e32257fde7b7d83a8d6b16892a3ffa9fd03b7d978190298b2b02b8ede36fc43a6f89dc7f9bd1740764bc7d
SHA512
5a1dc1b81566ea3ff6347f35d21f38d559e303a834ca9efa42843462594d93d99ed7b51d1b21bf94927a759ea19cdd0e43f2aefcf9dadc3fdd0a77f085722e53
+DIST thunderbird-140.0-cak.xpi 418050 BLAKE2B
f6c19a2fd97dc7c13b1c1a18c6af30cc4e6a1a9aa1a58c4b2483016b68ea5831f8ad89c721b8b2dc9e3440dc69a6ff315571848946b436b654d1ef49e45e6f00
SHA512
cd403f8925f68f22b1a8cb1711895c35a38cb1613a325c3628516cf064a074df5f061154273cea6e3e97cc310292d1de412ac4039e6833cc1ee5202236567ffa
+DIST thunderbird-140.0-cs.xpi 519341 BLAKE2B
71d2170e1d5507c4e3db73f2f2af681ce1df6e3d6aab6b5748ce26c747b012d8dd3cb1ee0d9fed680476d7584398e7cbe61b4668e61bdaca18664094b1f9f093
SHA512
9df77cdda4b527e1ff36e7735007bcb53be871a449099813831cc461df92dd7dc532bad407ff76f670336cba5ae9dcc48dec22153ccff2b523d775df7753d3e9
+DIST thunderbird-140.0-cy.xpi 487611 BLAKE2B
f285de96c63e2f8e4393e64e78dc37f268bd9811dc09c2e1689de02b4c0cea92a528cd6b926aee134d861116b3514187a8f481a3d2001e835162e60d58943dc1
SHA512
7c73ba59e9da04f3d6d89a424c7d9870bcf5fa0d8e0c69090dd55bbfedf7644f72f6455d254667d13fce692a8c1cb978778e0fc76e992c501a76fb327d7a2628
+DIST thunderbird-140.0-da.xpi 476629 BLAKE2B
df3d5c58befe65c7c6f15c9d0f79135208243cc0ae4cd1d36e42c1d3d80e220fd386d09655126c0ba0f486de3fdea887d4cd518e8799a05b077382b08fdaedad
SHA512
8943dac081234e28999c427a51a7411feacb076b8d7301a7ad89a8e542018131e9a70283f93ffe4617f80cd757ea63b0d6c34eaa6381df7fc85f458649eef98b
+DIST thunderbird-140.0-de.xpi 505016 BLAKE2B
69acd0a39b760aa4714d611be08aca04d00f56d71c760ec8026e9aba0bfde322c7f16e9f3200e16d75219c6b15256893ddc9b056de3f394076d3864ff78e783c
SHA512
6340f7d90e88e25b70999fa324da612b954c078688bc31fc632d99578918410843b65af267b1e80a173270df5f416fd51ad8f5f02a21c3fa3afa0754b92dbad9
+DIST thunderbird-140.0-dsb.xpi 517881 BLAKE2B
148793b8569176954461aa94c10073dd65d12dd8e17c34f694d30d1d7fd23b8e45c7c4a180b18dceaf5b1694e9df7c0782cdc6e2edda7f1ac66e06c9b25f0aea
SHA512
c7f7ae1b8b191c2aa31aa9572ecb04193134fe69b20db9228544ff6bec27da752e19d7374129b22288607681bd124441a781145be6262c32bc123d7379ba0842
+DIST thunderbird-140.0-el.xpi 609178 BLAKE2B
30249e9e5ce4b08740a3399aa57f42c030480d242dea9cf24a6c46595063f9bd09e06aaaaff41850fdb8817de1f1659a7820cd84517ccab9c4a84b4db3ae6bdf
SHA512
814864ec33fe695869216eb596c8d1260fc18e74767de8b398dea0fe4cf3b5e652dd0cf72ee4cf8386e5dee160545d63ebe5f8e06d15ca82bfb9ce1136cb080a
+DIST thunderbird-140.0-en-CA.xpi 449537 BLAKE2B
01665b1577bff5744c49a5899891aca3157e0b7226895f89265b9fe82c1505003217747f787668521ccb6eb2a34b46acf782fe1f16225f5a1bd9815dac38c65f
SHA512
8501807944c001212644856f261009eae3297a7876642886cc527e456fb2a940d81e577fd3edd90d3b2dfcb3129657f91f279af3427979fc7a98df625c651bfe
+DIST thunderbird-140.0-en-GB.xpi 452038 BLAKE2B
68e34972f27cf9b9678eb2b33bdcd15add12420601de6f752bfddc93d196df825ef08c8c5075dcca6264825ce1e72b9af9a3fc8cd2675c81f0c6e5e24d33ad31
SHA512
b413242346cd04661d4fd1aaeff58eea528054c2f0dcc5c6a8fa11a1e4b5202323dc4cf855d7da4780d21983580106f3dca099ad5efb1b7cd9461b98481111e1
+DIST thunderbird-140.0-es-AR.xpi 495265 BLAKE2B
9ab819da36fbb66878d6d30cc60c6c4fe80fba0e5fa97b3d75a959a68c934e311d71ee78fa88ed95c2665322adbed8edac4aa6eee82dd9d67f548e7335b917f1
SHA512
5328343f8c98f75028f263fb80466f1d592556868b99f3eed6ec7b690de60acd26ff816e864a866cce30f26e6ef4a91e48679326591876cd92c580a84bd8e860
+DIST thunderbird-140.0-es-ES.xpi 497244 BLAKE2B
3483757aa76e6ac336812627ff7d39e013e595bc1a5b5243c3a3f18b0707bad4d72f4801b8d08898ddd9e962fe27bbca0a19addf0118b0249c6e1752c67a29ea
SHA512
b8d96d839f04df36969233b41a36c2a623fe604a0e3d9da9a97818dc40c50f7bf419d73b121b5a20a0445aa38e4154a8fab3fdb85ad3040e6f539b67da50a770
+DIST thunderbird-140.0-es-MX.xpi 488218 BLAKE2B
130ee31d21dfecea84b6e864586831bde6de61578600d7cba26e89e425aad30ad4735c6d69809a3c43c4d394b9bbe776cd53222b03ec0b49a48c82bcd9771ac1
SHA512
f4f1ce8ea7808923154cec1287b40e761be28a1638541b43c24ac27fcb5608bce4651829932c09432a66916c403bdbce89da887c2687c1dc5111242ff3523ffa
+DIST thunderbird-140.0-et.xpi 443625 BLAKE2B
4529c9fdb68ba649658e784aa96b91ca398dd497a42bf5bd6ff5e82a4e226be369aad18dc90d69d79a3592675fcfa37d6b4180af8c35f417ff4b3ab214f6cd7f
SHA512
6b619c04c8acd6b96dfa3a03bd58f0440cd6db907aa65e8bd11dad26ea389307252a5c23f6d56494a43499e47254cbc007f7ff59085daa2eb1e7a5528ac0f6bb
+DIST thunderbird-140.0-eu.xpi 471256 BLAKE2B
19919e2fe887549d4674371cf4bed61ec5571146552d57a2d461f2e932d1891d544cdf529dcecf0b0f3d0f4de26110f916850fb4a2e1f03c59eea8a45471b206
SHA512
2ddafe7e1dd949ce65b9fac30a3fd94e8b20293b8c63d3475f83c7a169cb460d2c784bbe5c6dc5c30097c9a971ca726072338dac4cee00b8fc5bf448a794e72c
+DIST thunderbird-140.0-fi.xpi 473771 BLAKE2B
af194377edb5e793179c136d48fcf4096b1c64aa03cb6779b50ff904c87418cf2f3c9c988673be45f3a2409f3baa091fefc0dd7bc1eb050a9f831f19c759bba8
SHA512
106ebb5ff73f735bb372ed4c030e1004e0fcf96a7e818780d7b787a355e61b4843f8ddcbcbee141fe4e8573222f441e1603ce439168fadfc10032145c0c83ce6
+DIST thunderbird-140.0-fr.xpi 508203 BLAKE2B
1ac6767b58787073135c1fc790cf1148479bc9ceb5172a729b0bdd14f005bf01e969bb9607f314fe1a14d318d9241da08f259b1131b369df5be67c579312bd7d
SHA512
287a1ee468b86b22c2f8ea15c981d379b6dadf49ed9b91a57ba0e1d080494587d89f00ef9fa971780b1020ea90fb09f226b493ed52e47e28d3dbcc1649458d08
+DIST thunderbird-140.0-fy-NL.xpi 490633 BLAKE2B
430fc01b06fd51ee6aa4dbb64ce1e17c8cf64f66ef612f2b8a42b59754cb6d24c071162448b270651ee5be092c1827a9c9f0dd4941763cc97b33cff579861ba8
SHA512
bec6af8aa25521345e0930b0d70b8e5b0a042ce58ffde6f206e9ee0c45bd1259fbb7ff843f1d63437a2f256db2f0bc97c35ca7fc09f4811f4e3f85e6fad2f364
+DIST thunderbird-140.0-ga-IE.xpi 376763 BLAKE2B
2a681babd1bb9c20a0bd26aa9df9daa2a15ca00cadecf7ea0e991d64a5b8ab79adafaef54fbf9dd3ce9b89b13b4652e138e838df28be864cf621790ea0a076d9
SHA512
4020b11047e2323b1e21d84d6057363c7eef8291c790e875b7d5c67692be98e547398c833cb25e70619e505d5ba6c3829b354655f208119f48a7a4bbe93ffa55
+DIST thunderbird-140.0-gd.xpi 461986 BLAKE2B
52383fafe0e5e7deec275d61830189f0c438c974e446a3a4b31e4c4a55fc0fe7c1c6eb9270a5fbd566fcc62ee5d97523c61906d4b876718d3ac0652ca3a8cce1
SHA512
35fa7f5ec18a4a0f802b5841432601277ab003078305f76b8e62edd989959b4a20fdf76a4d53783b4a4a7082d4a0102ab6795f748b0c98e498bd8b42e54299c6
+DIST thunderbird-140.0-gl.xpi 470945 BLAKE2B
7e698f1d2ca77ae972c7ecae4c24b090af7a105754cf3096d9636b27a0aec666fea381545e3cdb3f1340cd8304b06626b7f4cf05d5b0de019e60c6afdd39f06a
SHA512
7aab0d9ef3219d9ecb52b7f0ce666c27b8d71825675cca8fc542fea14985667843c28f5bbafe4c4dce8988d0fc4037f6326428424d37f4df46714b828df85877
+DIST thunderbird-140.0-he.xpi 441375 BLAKE2B
5897341b04c8098a1e93f34ddf46b476478a13cb53507db6ce92c815c01a7c799064e30c1e3ddea5c0b87f103d9bd8ce2c8c5ef4dcf1daec3c3f95bc3af45e89
SHA512
20482f860addf92ff96d57871a0455c7969df94cebb50a9e6c3f2f1c82b06bbe6d7e2982fa611e0944d21fb5696d0070513583e99509f18c7b8e85954fe9b832
+DIST thunderbird-140.0-hr.xpi 460828 BLAKE2B
05c2c0988ec85db79eb09d6c613a1564a447de69e05e8c1850ce08693b60cb8febaefd1650f493f37d0b7c393fbc242c064a0ee87c527998179329712ef1d611
SHA512
7d4373728075d976d7624492b80583302077b87870d1cefece8e8515d36d14f16093fa213beecce637e8195fb2c20f71863f56e23a368a8b90c148900837cba0
+DIST thunderbird-140.0-hsb.xpi 514907 BLAKE2B
452cd1bd80048c0a0c70a1217098624b49dd8f5005b40531ec9c465d1cdee1f229d7edd1a234e6682297338f9f36d27c6889b9665a974d43b5417b4400188293
SHA512
bb623c1b3281370c1ea7661937279a99447b34142574e695fd4847c62a81c4f819c4307b9ecc29551b8a2edb76bd3d21bf1910b252849f05d240a6b505c7f839
+DIST thunderbird-140.0-hu.xpi 517517 BLAKE2B
510a2a2c458734217c44e7f06729736b0aa363de4ae8135873c794cc21c02fce642ae6b38234eca134b118f29fb909324069d4d23ddc4462fa5cff62a9f8e08f
SHA512
e23cdf0020e0828c3745c657ee7e0c45b7d7828f3afd5490c08eccd80fe421c21d6311f52f51f03d13d7546c1759e098cc9c4c312a7b0496fad74c8fa60c2b1b
+DIST thunderbird-140.0-id.xpi 463520 BLAKE2B
bceaa6d9905c86436dd2387f548d7924c6646ebb6c5f46e3a29a2c38909219f52a6060a0488d2de2c25f47fe7b0b8e783ba438053454381e13349fe760c1ff6c
SHA512
8ddf4a1f4d998462628fe88357ad1c4c3d813e6f0edfe0bb8dfc2c44c2e0f3f39bad31ccad3c0657d9d5d190611cd21ba432564e53b80409c1919faf582f8ae1
+DIST thunderbird-140.0-is.xpi 481558 BLAKE2B
17ed68c7d4b27f64c7316af030ead5a3ab8cda5f4863de6c75c1dffb86bd1637aa93dfa6367c900c6a1e3119b45501841defe3772103fbd98c229d64820a7b9d
SHA512
4e035d91a47ff2209c38e0ea38a22641e20a53e5fef8c9b621d82f0af738ea01b9e96966f54876a8c0de77f8a650750d2557f43fdc8bad4af0d2b54f6d6acc13
+DIST thunderbird-140.0-it.xpi 488497 BLAKE2B
571faba4424e9111dec206f912b0a31e902777643dcdfbb06db4520d17b6051694334509e305f8f4259cd3e9dfd2f489bb76233946ee634b0d9a2b15b86b93bd
SHA512
13653433225d6fab02f6979d3a5aa472c029a58a461a23140ebe69cfb8f710a310f3425b82ec81131265d9d883b2dd7a8828ec972ca5c5966ffafe43d24c4064
+DIST thunderbird-140.0-ja.xpi 539320 BLAKE2B
e5f3d29b6c35e4ac925816f0e45c9dc5489fe716f3267c0af9da016c5ce5a9e1365426093cad03f49226250f92327b3958e2ef73ec1d270dcc6578f7a7b880d8
SHA512
5eb94759f0da14c5ce875c6f8fb5a5315cf49651f621a2749b09e33e4723e20d8112f657c8651330f59544f9dcbe5301c07f16319b0a3203f27760f8daa1b949
+DIST thunderbird-140.0-ka.xpi 554685 BLAKE2B
cd629309163ae53a46f9de41979b1579828b0c8f8d22da6fd55c71f2f55d53aa7094e9b3c6995f241cc2387d7db39da4f6ac4eb8fab1cc08d1baccd57b7d5b6b
SHA512
cab63a62d6676a60e237132bf972cb9267376d6ca2c97955f32eca28b6ef87e9c0927e47c670695a9f1a7fa68a186e28774af90eb7cbe396928145dd1654df7d
+DIST thunderbird-140.0-kab.xpi 468637 BLAKE2B
ce41da4af442bba8dd5b77dd199d3a66b7e936297ce8b4f8ae18722bc63d264823718e253aeca8f89993a8affb8a5d5ede7b0760f14ac4a12741c6d0bb3577dd
SHA512
81fb1eddad8b47b3c011fa621a904c0ae5592f3921e4dfc7dc9520c765ac2fe981e5c851ba32f73a152ff8e0b3f2865570a16f56ce0c811c3ebf1936f58f9eeb
+DIST thunderbird-140.0-kk.xpi 572522 BLAKE2B
e780f4c146903017863750e772fe341a0874a5ce1223a3927434bb5dc7af5e6f31387820e386d24f7abec2b9dc81319cca6ecc37a8f09a0046390f5ea554c8ff
SHA512
a20c54310b5193541ea35ea06935dc759f0238c176bb0fdabbfc998d0ed3ec38cde9d06790c6415f91f250a704fb07f63ac3af2d1489feddbd3ff02c00e84b94
+DIST thunderbird-140.0-ko.xpi 514482 BLAKE2B
60089f808d650cbc40fa0a0411f7bb7c7c70dd1d05e211f000a88e72bc002903733820927e8fa45c38cbee1318cfa1e02141890bc11591e257fcf325d8a2d01e
SHA512
eab74b60e11c2ae7e9e011845a4985d4b57b5b7eba57a185d31951d54e118fde039e166b8abb05c7d920f73015d3e03ba48ded50583b0b0d2bd07d806e38d5f1
+DIST thunderbird-140.0-lt.xpi 441889 BLAKE2B
8e4f9db84637b2d766fda2f1b7d7226f30297e5c61090e51c6ec48a183173f70a0d90fdf1cb8a05a692bb1b2937a344f54b811f0a61caa612dd3e0002fa836e4
SHA512
ad1cdb1353cb8c71dfa46df563e85d4a56903390e896a3bfd7d4ebf499c5e297534c4f5d52be8be8cc737da71bdfe18a7967519ab41800da5bfee0891cd24c18
+DIST thunderbird-140.0-lv.xpi 391817 BLAKE2B
0be395f77995237064be101770fda317fd7fb64c5273ab8f00fc5acdf3a38d440dbf810032311ce8a14df6e204f49741b0f2b0676851e2c3579bb107b9b4e378
SHA512
34389bfe3cc682a753e730bd8eb3a23ccd9457826cd010e266ec115a6bb239fda9c3c8f06504278bd6a5d50666f1448f051569b656d44ac013da423a51e7ecc9
+DIST thunderbird-140.0-ms.xpi 352189 BLAKE2B
a3bf0f0d636f2ae4c322e518f594e1a9392681d91471906c18d28fec090b02a07988949003c66258867029d92ddd4186818e12401259e242807a746739cd7324
SHA512
a7893295c77c8318bd068ea9afa83e7a10a8a6287359788fe7c9459958392f807e5a833e39f53e9471bda4ec50646c2c848954d9fa778a55d54f84d5fe0252d9
+DIST thunderbird-140.0-nb-NO.xpi 463863 BLAKE2B
8c9dd3949a652326ddd07f923f72d3b0ad9d2865c15cf970a3ec2d84d9e3457191d63a48027c9e986cdc18d7a44966e4f37e05169bdba1a8db9f6dca90db16d3
SHA512
c944d63411f1b8e9ce304af0f1a22dfc2f4efec2fcc4fd9c18fe96ecd42481aa11180d69b3409d623657d6e63ca8cef7a13ae3391f61bc2975a9792b12610504
+DIST thunderbird-140.0-nl.xpi 482104 BLAKE2B
ae96c4df0408f2b2d5712f1fdc5d0081bc3b9925943af015515f3479c561d1f566c1c0d0118e2845fec59bda0db93b7dab68497850e2adc1391d2ad58eec3fff
SHA512
6e971ff5c35f973f4066d5dbf58d8c907733a839d5886204853c262fb79f34a9f10d15907c4efdc9e4b9742b5c87b0f1d14174a66bb4924193f243ed93db0562
+DIST thunderbird-140.0-nn-NO.xpi 465736 BLAKE2B
152bcf8190068ef66ac78d0b32ea2af4c9f133c21c5083e58d4de82529534e1215de323c7d0be1cc2f5c618271a9c67c68a78ac187aba1d8bbe793eab3b61c5b
SHA512
779bf42c560609d006ecd05f5b485789ba82f3d415c76b701d8b816e27810d91c3b055aa16bd506847ce1e0c673a46b624a0ae08071e4f6d654ebc5dd137cb24
+DIST thunderbird-140.0-pa-IN.xpi 433537 BLAKE2B
06f0bf2dfd747cb0a9d35b347ae85746c3c3a87c87a6ed6f60c9d14d55f4af7b805eaf20ffd2ebafd38a9580dea95e8297f746bce757b2c80ef2a1c9cc352182
SHA512
253940fda5925753b320dc0fb9ba513105e3d39a04727828fbdf27378308be969151547d707a3fd1e013b544db8d71d55658b205a740ae5ed556afa64d202c77
+DIST thunderbird-140.0-pl.xpi 515000 BLAKE2B
383f1f2348bc3c411e41def633ea97cf81a47670622cd6ea43195fc6f480a63dc489e6c866d38acaa02d1a3401a0a5860c2b6826f3d116c7e033150ec23f4297
SHA512
24f75fe8928e8df698680d7ce2e4b7a17b26a39612f9739f33f3757c286f5a7a30897c53095c2efe5d9e74c45b153fc920be29abfc77ba9e6a77c924e97a2c96
+DIST thunderbird-140.0-pt-BR.xpi 490123 BLAKE2B
2e501c0e8350d787803886006a7839742b0dbb40d09c5e462f6bf910cf7aea706f0e9d059403d661389ef170c1b5ffa0cf22f708c0676bdcddecb13ab0e0005c
SHA512
e0d5b46cbcb5e299aad20d57126d9bfce8d4387643cc99bbd716c9652e8e8f2176dee857ceb4367d75e13872ba532536440222b0daf7f54d6e8dc5beac409434
+DIST thunderbird-140.0-pt-PT.xpi 486361 BLAKE2B
231fc7551b9f6d35659c598007ab93951113b9a99aac3ade3f080e3d6532a3c852d67c4923b6f52b1708ea17f5a5bbd19588c87b152f65a32f9bfe6ccd6a795e
SHA512
7bbec5a1f5306301995a112e76a5df5724f4d696dd552856dc11587c1cb66a5fd834933647429a923658edd5bee574c0893e06b3d8c385fa01dc5bdf7c652399
+DIST thunderbird-140.0-rm.xpi 487170 BLAKE2B
3001dcf9f58705a869c979395f1d314d7b2270245b2cfe490770ec31cd2c4c82c91a65889e2256ea3c992ef6804be1481f211e9528e1de84d55a86720eeafeae
SHA512
06c759847d18f2807d7230687c768779db7b41d0c8021a9fbc4b495dae9b33aa39f71e8aacaebda8b163ac5dffba1a4f37a13d2e9a76a8852dc9f60b3149c2f8
+DIST thunderbird-140.0-ro.xpi 417296 BLAKE2B
8a525e9010b0ecdf76c0a9dc98ca830c9a3261d7959a744945d68497f052b23c9e0bcee3e61fd95aa3f416bb6035a0d5ef5e1e283b5943a8ffa53a060458368d
SHA512
612ee07a644cecda94452c89037ab69bf37939457eeeb6d8dc3fab0ebb8a68d292e9c5e59de657d631c8b615878e9961c4a1f3853a13fb913f93629bcae7750c
+DIST thunderbird-140.0-ru.xpi 593140 BLAKE2B
fb19e1271cd8b956ffa1530c607d109bbb0da09a43c67cb062e4ea0f5f3bdd99aac4dc228ce1d58d80ede45866704e07e0ea39049f7611d21723d014a7c5210f
SHA512
96bb7a7021761fe247f79bf64005a8658b98d6922f4df346d2c149e608f17dc11667ebe30505171e55ce4ef2e089e386bcb5059c91446fb780434f53c76fb0e1
+DIST thunderbird-140.0-sk.xpi 519208 BLAKE2B
33ec9799b46ecd7186f1c7bf96ce1d997541c82d91522c91e5ff13ac6d663873328022cd22a3ec68868dacdca130f20ebf68175e522a5fb7527f42ded8d4d005
SHA512
83682d5d3eebac55cd8ac038abcd533f7caa17805dcf6d90d00d9b93aa4aec90c4eb1fb0b1f8ba019df0cdcc04b4a06e9fda9473c5c033a3a1c0cb908d7a37ed
+DIST thunderbird-140.0-sl.xpi 485770 BLAKE2B
8b449bdf16e8990e864427769953f46a8ace4358ae9c3560fb4334a3db1ef78cc08bdbc67ffdd48bc0b17129ef976f3553e8bc0e297f95d17c275ef8140eaab3
SHA512
213431259dd696b3648e6ceabaa2dd036b4f4a3a23980a2fa9e771b581bf82d8abea7d9e2f570869ab5ced28aa49f08c4d91a2a4f98f5435e2551806bd1701f7
+DIST thunderbird-140.0-sq.xpi 504100 BLAKE2B
c639a48265bad67a5393dc1c29075d5781434c448bdb29eaff336cda57b2fe82dd8064c738a1da0b909947330dfd8713b76659b58ee5d15bcba660d6bab430e2
SHA512
02c67c55090f0eaa716e0f81fae1754a784f7d689347cf6f81558614cf4517c96a800b2d92e03063a3476947137ba0ef527539a00b35c116f0d82c1fab649f33
+DIST thunderbird-140.0-sr.xpi 495665 BLAKE2B
c55eb407b1925fab7f66cc7661d4aa0b296429a3f6a5d5c57d776aceeb529dfe292cbfe379b709a1cb83f96fb00fb1d5836da4fa1dfd5ceea3ffb4d879143a4d
SHA512
a32f0707eedb314be3b6aa7957fddb6f67b54e088cfe9795b835c8cae5966a3cfddcee5780f2b90dd4c7287ea87623c60868ce1c35e50a749a4f24f0371d0ab6
+DIST thunderbird-140.0-sv-SE.xpi 484390 BLAKE2B
75e5e0083a4a5fd9e7fcf753f6c9ce897471c3a8148ce707517fc9197219eb34081e504f085ae3752c787b0fbf8f31878fa8b19b218ebe11a9a5243777ff3108
SHA512
538def01e5ffb7eb1c3b3a02124c5236211c4f56e20f585cc3ad8d865f8d15c09ee9d67ac85a4b28146aa3d185b92d310bd0d85912aa8177c2f65a86cb5a43f4
+DIST thunderbird-140.0-th.xpi 566815 BLAKE2B
e33e6c4e010d297a6d69a2f24882bbc8a6a4344f53173c8ad1f2bff6db75ef34d4ae107c75ee28491a87778520586ba4c9570f9912a7cf31c91eef8815a0e37f
SHA512
4816404cf431ce9ff8518ddcdf17585f25d0b2ff2e6e9ecabf51fcdf886da0eaf9ec4e78080b360113d0eaad1b148a45b6ed17bda2c535db49cbf1d7a550f046
+DIST thunderbird-140.0-tr.xpi 494840 BLAKE2B
5d0ad2ce062c60125451f9d891e363d477a95399459304f838c4c820e6433c35d7ec2940d84e1d959ccee7b8f264bcaf604c2726cf58f20b82b5ccce8de80268
SHA512
86484bd8e8545308179d6dbb8492374a46b5fed854f1396e6ac5d1cb3cd434e9432cd16ca9ae8f0222105ea22caeb7f608c4a5be5e168dc123e659ae89ff0bb6
+DIST thunderbird-140.0-uk.xpi 581210 BLAKE2B
63c01c2c948282ebd6c513029e6c2214d4fd15ef2ada66e547db0bcae0a48d60e1416f174602ae10e94ca84d1a28a9c0d6afdb4dda291a2cc101cd23e6834dc2
SHA512
1610e2950d93798a2fa2f9bb499d4549efb75693fa94acb7724b78500e4a2d33bc3b983c0aa14a388b705f57b3771259323bd91dbea7428ecc67c35cf8b0802c
+DIST thunderbird-140.0-uz.xpi 355293 BLAKE2B
2d7c9aedb7a8e1f2f341ea089d153baba4103bc863483427044cee0d921a26bbc7af2a69c05bb93853d042adf8f58d947a72d32bd82ff37af6bf1c74eab3fb59
SHA512
a3ca18c46ef2c11c8a01d3a0ea3249ef68482fd721f4c4c04fcb0632c47a8132323715aa9ebceb02f899257922b9cf00483b898842e16dbe1cd5f3a7dc38899c
+DIST thunderbird-140.0-vi.xpi 518716 BLAKE2B
29c8266d2cc0af0efc9e237b9e810d7c47a92512489ec02fdc286cf2d49bae026e75fef76f66ccff5557d6e7ecd22a0ecec20e02deb20799edeb14938d6e0faf
SHA512
004e4bb79f59554f05c3ee7a0f0e910f3195788157a2e733837d6f43eb997506ee8e313e9a522f9d3e2128b22ea1f07e570a0193bee099bea050bb77b06caf01
+DIST thunderbird-140.0-zh-CN.xpi 507847 BLAKE2B
e16fd36a6caaec6e0d110162f59ad21615d8606e7bd4b9c8a70b2874b99cf33ff250af556d6b36e3bad372863e0c1a7f4f98073f8d4040310c170cac89dd53af
SHA512
ad7c9aaf4713f7325f12959c4f769107f7c78bed70378bdad4998ba5fd6837c35362e3bdac671869a8d1ca7e226a746bddb4c7315450a190883de97dd38f64c1
+DIST thunderbird-140.0-zh-TW.xpi 511141 BLAKE2B
0872b929112cd9a7786285d458450e4c842971a1cf6fff0d9a8dbd3f5de8a2793ab803a83407bcbef5ecd57b85f6111065f8768a4467037e247306f4598b92b5
SHA512
8bb1f3ab7eff31eefe349172617fc75f190c949937d953267fd52f84a71b1e0375ebc509aa98cc3617266b83248d6096f1cb9645ed2437dc546489a5e3933014
+DIST thunderbird-140.0.source.tar.xz 755175976 BLAKE2B
58c2bc3c5468e830c534134b9b4649ee4a3e7ab81e70052cf4ff902d518ad94a3293db3b6d9fdfd58e69133cb58febc424c7b97fcf9fcfc1413e58290acd29aa
SHA512
2e9a5fb44b21eba3e3295205142bfad666a65f9eea43118388968320597a940cf3c5675fbcf458fbbaa9e1bb85fe8a663feda6461b7e23f7103c5bb7a1103bd4
diff --git a/mail-client/thunderbird/thunderbird-140.0.ebuild
b/mail-client/thunderbird/thunderbird-140.0.ebuild
new file mode 100644
index 000000000000..9018be1b5076
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-140.0.ebuild
@@ -0,0 +1,1162 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-139-patches-03.tar.xz"
+FIREFOX_LOONG_PATCHSET="firefox-139-loong-patches-01.tar.xz"
+
+LLVM_COMPAT=( 19 20 )
+
+PYTHON_COMPAT=( python3_{11..13} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+RUST_MIN_VER="1.82.0"
+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=
+
+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 check-reqs desktop eapi9-ver 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[@]}
+ loong? (
+
https://dev.gentoo.org/~xen0n/distfiles/www-client/${MOZ_PN}/${FIREFOX_LOONG_PATCHSET}
+ )"
+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 ~loong ~ppc64 ~x86"
+
+IUSE="+clang 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-pipewire system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+ debug? ( !system-av1 )"
+
+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.27.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.112
+ >=dev-libs/nspr-4.35
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ sys-apps/dbus
+ sys-libs/zlib
+ virtual/freedesktop-icon-theme
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/libdrm
+ x11-libs/pango
+ x11-libs/pixman
+ 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-76.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-pipewire? ( media-video/pipewire:= )
+ system-png? ( >=media-libs/libpng-1.6.45: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]
+ )
+ )
+ )
+ 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
+ # 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="7400M"
+ 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="7400M"
+ 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#915651 on musl
+ if use elibc_glibc ; then
+ rm -v
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+ fi
+
+ # Enable jpeg-xl only in Firefox.
+ rm -v "${WORKDIR}"/firefox-patches/*bgo-928126-enable-jxl.patch || die
+
+ eapply "${WORKDIR}/firefox-patches"
+ use loong && eapply "${WORKDIR}/firefox-loong-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 loong; then
+ # Only the LP64D ABI of LoongArch64 is actively
supported among
+ # the wider Linux ecosystem, so the assumption is safe.
+ export RUST_TARGET="loongarch64-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"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/chromium/build/toolchain/get_cpu_count.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-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-install-strip \
+ --disable-legacy-profile-creation \
+ --disable-parental-controls \
+ --disable-strip \
+ --disable-tests \
+ --disable-updater \
+ --disable-valgrind \
+ --disable-wmf \
+ --enable-dbus \
+ --enable-js-shell \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-packed-relative-relocs \
+ --enable-release \
+ --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-gbm \
+ --with-system-libdrm \
+ --with-system-nspr \
+ --with-system-nss \
+ --with-system-pixman \
+ --with-system-zlib \
+ --with-toolchain-prefix="${CHOST}-" \
+ --with-unsigned-addon-scopes=app,system
+
+ # Set update channel
+ local update_channel=release
+ [[ -n ${MOZ_ESR} ]] && update_channel=esr
+ mozconfig_add_options_ac '' --enable-update-channel=${update_channel}
+
+ # Whitelist to allow unkeyworded arches to build with
"--disable-rust-simd" by default.
+ if use amd64 || use arm64 || use loong ; 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 loong || use ppc64 || use riscv; then
+ mozconfig_add_options_ac '' --disable-sandbox
+ else
+ mozconfig_add_options_ac '' --enable-sandbox
+ fi
+
+ # riscv-related options, bgo#947337, bgo#947338
+ if use riscv ; then
+ mozconfig_add_options_ac 'Disable JIT for RISC-V 64'
--disable-jit
+ mozconfig_add_options_ac 'Disable webrtc for RISC-V'
--disable-webrtc
+ fi
+
+ if [[ -s "${S}/api-google.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1
}') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+
--with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+ else
+ einfo "Building without Google API key ..."
+ fi
+
+ if [[ -s "${S}/api-location.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1
}') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+
--with-google-location-service-api-keyfile="${S}/api-location.key"
+ else
+ einfo "Building without Location API key ..."
+ fi
+
+ if [[ -s "${S}/api-mozilla.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1
}') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+ else
+ einfo "Building without Mozilla API key ..."
+ fi
+
+ mozconfig_use_with system-av1
+ mozconfig_use_with system-harfbuzz
+ mozconfig_use_with system-harfbuzz system-graphite2
+ mozconfig_use_with system-icu
+ mozconfig_use_with system-jpeg
+ mozconfig_use_with system-libevent
+ mozconfig_use_with system-libvpx
+ mozconfig_use_with system-pipewire
+ 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 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 loong || use ppc64 || use riscv ; then
+ # '--disable-elf-hack' is not recognized on loong/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
+
+ if ver_replacing -lt 136.0 ; then
+ elog "In this version of Thunderbird, upstream introduced an
in-app notification"
+ elog "system. Setting pref 'mail.inappnotifications.enabled' to
false and nullifying"
+ elog "'mail.inappnotifications.url' may help you avoid these
messages, if you don't"
+ elog "wish to receive them."
+ fi
+
+ optfeature_header "Optional programs for extra features:"
+ optfeature "desktop notifications" x11-libs/libnotify
+ optfeature "encrypted chat support" net-libs/libotr
+ optfeature "fallback mouse cursor theme e.g. on WMs"
gnome-base/gsettings-desktop-schemas
+}