commit: 89582b7142bbcdcea85e5baf19d05aed55a0f1b4
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 2 08:22:52 2025 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Apr 2 11:11:18 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89582b71
mail-client/thunderbird: add 137.0
- sync changes from firefox-137.0.
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
mail-client/thunderbird/Manifest | 66 ++
mail-client/thunderbird/thunderbird-137.0.ebuild | 1157 ++++++++++++++++++++++
2 files changed, 1223 insertions(+)
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index a4334c117a8e..dc03b61716a5 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -1,6 +1,7 @@
DIST firefox-128esr-patches-09.tar.xz 17976 BLAKE2B
78f64f5086951f7bf2b304c1148154647aef5c4e699257cba5e94a83d8d8c159a591d0b2a7a5f8bc0f8ec28d5eae66a0783b45f94b4ef713282a6f88e46c75be
SHA512
159d8c94af0f90c10baf7446e573a37397b3be7103e7001fb6b38845a28a41793c21ad24c23e0b3cfc4daa2c3a6040ef701f612693c9f4dfff8534f82e7b18a1
DIST firefox-136-loong-patches-01.tar.xz 38508 BLAKE2B
2508fdb9de68bb90edfb3f4a15f79579cd8865cb87ef0a9073c3b740152d857b791cb53c4520a2bdc466f083e7aa6e028a90d44b61b3eea46395f62115b7272a
SHA512
e4f83d6a98eb25335de80bf396bfb2d0a362e7509efa898291f524d6fbf20754a278a930d61b3b9727e6b08d8e4959b001c75c2e3f648ce70444b39950307157
DIST firefox-136-patches-03.tar.xz 13356 BLAKE2B
b69e64235b2ef72839055a91e9ffc881685675b46884171dedcb13f68710b083318e15ecfe8667652255074ed45fe722c91fa4f54ba457f33774af33a7ebb33b
SHA512
b7301a60ccee7b8e870ac57200cd7242e5e2b8fbe8110d539a038f6b74d6fef86a96fc9f3dc2aeb387e636cacc875828d2b02287b8f5f7dbc6c333a900ca75de
+DIST firefox-137-patches-01.tar.xz 13584 BLAKE2B
f22ee7977e738bb782014dda53ac20c4928fbef93616b1a11d474599d79a549dbf66e5a1eaf40d1ba1745bc3345162cf1f2107ef9a8ae72c63b8d9850460380d
SHA512
b577486e8cfb2dd2da37802a9a7f4e2bf16094bf4ed22a8c2bf91019cf74b23942a1884a58bcbad055c7ca480f944cae35e85aadf92d98059be0eaacd4b8a464
DIST thunderbird-128.8.0esr-af.xpi 542241 BLAKE2B
27f371983be4afa1c86b4b027763a27b03414a4db04184349480fad4134d5ada0fb2b1be72c64653398c7ce5e75d90de64afc3cf2d3c74d21599a4f48e1da98c
SHA512
2bf2c96ab67d50de58af301d6deee1204ccf096f836d1b3f1a76d6b60c93df49506b2418e2696cc8539a0dbe2c04bdd76c02279ca3b34212dacdcda866340f21
DIST thunderbird-128.8.0esr-ar.xpi 695797 BLAKE2B
6fa599cc67fb932e7da3c2e9f207e4b612592474eb798f21fcd43b991e164f735aee695bdfeb0478d59d37bb2b5e517b3b05cd6da20be96170cd2fbb67e3f4cf
SHA512
59380d5a485a70704fc88fa295149801a698ab1c256a503de71faef09f7a01793b6f556f30637d38aba5122245cb58e94ae9043b4cf4b4c0b3eadec9d7d6f943
DIST thunderbird-128.8.0esr-ast.xpi 566202 BLAKE2B
3d0b4501fbed55419422eccfb6e77ce347f2506058fc397a7d093b7a57a8bde81911909c48085257f197489ed023d568a9cce5ce6aef21205fd825ef977a8655
SHA512
42db63d7b71b0f17b2b790ae6fde130f0393b9d2a1a26400ba449767ea5d6bb8c53cdc3f735b4087d95ae18ee5413d6ae85aef7623005da617f82cec715c88d2
@@ -196,3 +197,68 @@ DIST thunderbird-136.0.1-vi.xpi 511067 BLAKE2B
29ba6aed21a17213e06232b46a7065a8e
DIST thunderbird-136.0.1-zh-CN.xpi 500524 BLAKE2B
0dcad66dd9e37ab0ec98ffa298ad8eca03f69ebd454d0ba3d71bbe2aaa685234801c8d4d50edb485c22e0ca1feb8a40157f97bb472888d1132fa915c7459dd14
SHA512
fe709b517b1673f6a15b4213c0d5dfb40096d40a9d9dcf6a248b1e2e66ed88ba3e8eb0ffb0892cb3c9f7c83afeda56f31547c2df50edb7b9248fe2696cdf75d4
DIST thunderbird-136.0.1-zh-TW.xpi 503558 BLAKE2B
25644015536e9150ccdf0c5540a41f33866d01faa77327c0f736f17e7deed49de526f7fb9e4c013746739ad4889e5326d76035361915b29e45ff79d1b7297687
SHA512
2f1cce2b00b795145e96303db922521e27c581cae4b4c2b9df883b52cb541a824bc30867bcb9a2a23652f07dcd1861b4dd2f2925899205cdc2bf0d4e975251d6
DIST thunderbird-136.0.1.source.tar.xz 718489556 BLAKE2B
941cbfecd5094e91b8b661167f04674335272f7e5ebe0fbcb1d7307ef733ca8e8cb80fd0306ae9d157f3a2448250e6c254c8665fe61cb844e7b466d33fcbb6a6
SHA512
cc217f3e07620442714337ea396a7146d9d80cc973de862990a9fac7c4343e900419b71ff8c6575e563deda6daff90bec5809a9a94376cbf1019c834f4e1b1e7
+DIST thunderbird-137.0-af.xpi 315722 BLAKE2B
2053ebb75f1085a029dc97046b685b555b1307573ac2d7f200eed044ea85d5c2ca2c0fab523f2a2796df35458f7edeee6a196e523177b4a48150b10bd7a467a4
SHA512
a222760dddb73d44beff5363c96a5edd3f25a24a5132024fbcd588c3cfd6c8c953923235c59dfac1ef358278dff29e7b26a071bec18411530a9cb7408b14eac4
+DIST thunderbird-137.0-ar.xpi 432362 BLAKE2B
1900887be15bd151aa187d1f10ee18e4a170b30121b987b0926007dbba63bfdd6ff95a00b3c9bbf3fe59a42f0e6c4328e5277cd7b9d7fa22448dfe52cf344ea6
SHA512
87409151cc9a7cfd20b3f85355dd74f547e6fc19d5f5efc9abb9556dd43101ecc8d36c2a5ef6fdbc30ff9e708f3923c4e111080e7b22b72f1569b97e04cfff2c
+DIST thunderbird-137.0-ast.xpi 341312 BLAKE2B
760e8599e1f9853dd0b7bc0be5aa240896c97907f59ea46d05bac3ffb3c9c0ab1bffbafe43652aa152b84286f108597a1e3f4d02230918ea564228cbc5ec9bc1
SHA512
d84d459afbfbf4b7e9deb4db9dbcf240e7c5c65f6ac6dfc2fd4123c607a81fb3e2643585734539e837cfaa1021f0aef0eceef461f618f090a576f514ab8211f5
+DIST thunderbird-137.0-be.xpi 515738 BLAKE2B
3c7e391c08ee917f46a9bb19da4a4d466e37367de4fdc6fd98a9226834c98893e2788dbaf3db5218039726345eba5f7ea78fa2dc9d8a44b0d3db95628c323da0
SHA512
b74aedb6ac34ddc543d59ca4e3dbf05e12695c88083470f203399ff88835ecff9ec170cb21829f1e60b6a5afccc08415a1570c6b2c296bcfb3706f50dd7e4901
+DIST thunderbird-137.0-bg.xpi 533477 BLAKE2B
10e1956d9f6d85489d3e341f654c41019859e5210242249ca2dcdee3e4e8b426cead45a02de8e0b74961420f252d7c9fd082585e43edb2eb28ba25809b3e1866
SHA512
0217316f8190e7fb3016306ef039457e3598989fbadb818cb6ad27ba02d1da9553ac276c6aa366226bf102bc28ee5454f5082b5c7c413a9c5854f38879d7829e
+DIST thunderbird-137.0-br.xpi 402087 BLAKE2B
6788380602c9d111099988603d53f3ad87f19f0239d9a5a74f11ac69ad871d107d78e814f49eec72ee8450af7d87d81d558ec7947bfdc28e0595b5bd80aa80f0
SHA512
95a3aa2d77ae3892238b5b763469351bdbbc3ea7a5c8af6e43c5ed3279e0649e6a9a4696a9d1fa09dda1af95aabd04afd96fed68331608ca6c7d36286ec5193b
+DIST thunderbird-137.0-ca.xpi 440383 BLAKE2B
1fb5a256ea51ec78fd28865fa7c662fa3684a9b28f2efdce1e611ca1d728efb3925183c289b2c81058bd57a1afafeea69d389857efad9bc598d8cde715995312
SHA512
8aca18d0f1d8bc323acdac099d6a2bbeb919efdac95407f6042b5d851ba50769bffe2d9c329ea564ae134bd4853c2e8afab48dc7d286aec702696eec60bb9a8d
+DIST thunderbird-137.0-cak.xpi 417974 BLAKE2B
a4ef8e49cbc1efdf39588c053c0d16b7b8b0d8e70742fb078e582a7953ef8a05f2d03b96185f31a52aef75aa3cbc5128858626ef23670a9ef24b9b10463114ca
SHA512
91f8003de72d540ef6046d3d4ce5e217a5cc7a34e1fd4027873b3aed80eba68a4b4f8c78c6251c24912f13aa368593f3d275c625a4f36a179b7017d2821171f8
+DIST thunderbird-137.0-cs.xpi 513944 BLAKE2B
ccef283a4b767ca97fa0dde9890786d0cb57c1313b2566f2e784d8794db9428cc41da75cf3a680b13ce65d533c6b0d79547a98ef4f3be7f69c883ea1ad621f28
SHA512
207139491544a17ec6d8ecb5e98f04cf5962d45b819d5c02dbb4bd145ab001ba856378a28e15e76ebcb1c3151083886862e229acc2b02f6328046b76d3f5ea46
+DIST thunderbird-137.0-cy.xpi 482479 BLAKE2B
a86b1e37aff67ed3ac5f9ec8345229a259c6b32981b16cedf934c9c6658ada6bb4097bea53318c609f733b8ea83dc0665c0dba38e5b085edc143b272b9243760
SHA512
2174e74d78ad54f88ca885a2a4be8a99224cdc68fb8fcd765b2cb3e9e89137eb8d07e84ac3332630afb2a3138700750b9e58a7a010cf37df65693a9f20fe9951
+DIST thunderbird-137.0-da.xpi 470166 BLAKE2B
ea83d94a6879dffc5f31c5215101f39bd04d1d323fe729e1e63bd90510a31d420076edf4e9995b9eef28543096fd0541fded59fa37dead78e572a578f983ad1d
SHA512
9c14cb9267e26b2311532fc292c97dcfa5b7fe23bade62db26037edff8874ec3e6ae71d20be4ae8544b445f9ae3dba3c7a45ff7a216b1d66b5932655e27e6300
+DIST thunderbird-137.0-de.xpi 499756 BLAKE2B
d0918b8d70d731a386a7f318c8777abaa9a6114dc11604472ed9d9e7aa0d681007d5dcdd07b89f1812b5f622de473ded560af3f81c728646eec130dd7d687330
SHA512
333ad91b7b7fc61a37a4b58c218cda413c849adb2f6f4ef09152e7cda88549d82d74f6ebf05d4e78c2faca6e2f73aaa089739e091762263267582900ef8ede49
+DIST thunderbird-137.0-dsb.xpi 512440 BLAKE2B
5088bdea6bd3b6e1a6d639f1a41cc561506a976195100a29ea13931ad0bc438542010cdd7a39c34c8ef7e756d7f024e9adc5c5eff3fb5adf0cc3972b57e70e5a
SHA512
35a2d64eec1fa12fcda8224c9c88620aec967f7982bdfb544cc3889962827fc3f2743939a6c3da81686f6f1424d62547904124556f977e55550481c3717729ca
+DIST thunderbird-137.0-el.xpi 602628 BLAKE2B
50f0b04299fc6a55109f8cc47319bb90c48f00f2da9db86589d53055f4a658c05009f1fd8faa1086453e191b650289b59af94010b30987fac74193f1cde84408
SHA512
4e8925b53715629e2ae612b41c8732ced416de849c3226cad4bd66c14c7c7a7eec8e0483001376d3e437b2dd29e5478fd4783d44b7bf6299f44534c5e4359e39
+DIST thunderbird-137.0-en-CA.xpi 447812 BLAKE2B
2c0aa9c80d4591022a5720ab32581b6c23ab0f6490d8fe5d599aef7eebc646eae5d328775c070850e82efdee94e78f61b278a2a99a31181490e9418d81d5e85f
SHA512
54770a309724f9e0f18a97c1920108845a0c8f66e0c5c4c12bb314ab5bd0ae2e4f807f58692245fba94e64a37844e8d06c54bc0406a5c7533426524315dfb52f
+DIST thunderbird-137.0-en-GB.xpi 447640 BLAKE2B
35712167d44c9b16ddee549564deecd46bf68e3337d6783ac02a0bf77915693815f9e5176e9ebd8fe9380aca4b67467fe60fe885c452e47814e97ed6cc50f3af
SHA512
d3dd266657598f4063bdbd96acd4750499727fc435e585333228698e0ecdfd2e80ca1a22271ecb5430f77a7b660fccf51721d5c7931ffb0771b17823aa153b27
+DIST thunderbird-137.0-es-AR.xpi 490342 BLAKE2B
a5254a607374e9d05ce6bccd5f740a39fb69f1bfa805c1185052b2e8cea9858eb8f4cac2af498d33a60376e4b3a0b035bf0536008e72a1c1fc5fbbbb66b246fd
SHA512
fa82e2527193792a5fa840606b33ba3adf39045dfd15a2048052d9f20224b3d4fd8c52c978b765e827035bc8a2bcf1600a7a753676a9dd9d68886ce755b15451
+DIST thunderbird-137.0-es-ES.xpi 491032 BLAKE2B
f40307e85b5ceef99c5e5751546f619802f158eace6de1f948eb140d0b4f407a5dd37da5574f2a7bae319a2707ca1c59a41f8a325730a967250e8d6f6cd3e9d1
SHA512
311754c40700d0a0b0d5b424ccc6e861c4250135107a783a494e38ed565e3ed58470a582da7d4704ab60e0ee7ea276e0ba01870c2dfe153acd8562ec4e1d0f99
+DIST thunderbird-137.0-es-MX.xpi 488163 BLAKE2B
86d2782f7bc0d50386d24d6fac20ffae6c665356e5b003a6f9b768e9681a9b52e60d8f2da1c3b03d804eca1513d144b31128fa0164eb9de54c2802a07ac19472
SHA512
84d8483df6a21d1ef18d31c89740f0378c3860fe29fd4fe9569ad0749e074e648bd2f147f8c40b5504d5f766ea1c4f1b02c9e4871f1bba8acc7d964565f0ff1f
+DIST thunderbird-137.0-et.xpi 434775 BLAKE2B
58754f59d1dad84fe8a7adde01e4f35989edbe9f4cc9244a5ba15e1d6d0225b604225c1112c24ec1af01d8698247c122006fbb8d01e40b23be51b133971a9a26
SHA512
27efc95d588727b490c20083a361768ed63dbbf7c32c805d960504667f5136195497b4dfc8e3d5636d46ac418d05740f937146fd25542a8174a65740747ea6ab
+DIST thunderbird-137.0-eu.xpi 467842 BLAKE2B
49e2a7e250d431fc63a475d7d08f1feada4ebdb4c8cca0986c851ec4b80bc624574771015afbbc1e9c58c4a17a02abcc99b1671b21f75abd5712f1c9780725e0
SHA512
4ff6474cde658a4fc211374faee5a33b8c39b48d3ae2466c692e32c4c66ec437bff67514a86a0033624d3ee81247e6a935a455ccd83869766931b2bba691ca75
+DIST thunderbird-137.0-fi.xpi 469703 BLAKE2B
d569e47e862b5d466f42b4d9b27d389409ce4bbaac97f40e083b36517441809888ccf1e9d06863a8646b39f44bdbea2b140eca6644d4e822350d794022b21554
SHA512
45a3b2e26b75f4f4e97e10adf931fba9ccbc3e0045a21048c36f3d0ba27ab18aaab3fdbaa7617bee27e579784cb59cafa85c7853e2c37760ef3ccd98b5ccea33
+DIST thunderbird-137.0-fr.xpi 503012 BLAKE2B
783cc22631178441d1ae7658ca068d6f8b18bce16ed4bb296cd7caf331ab890fd3034b8fd699ab30faa91a9ba68fc69d16081fba572d80e7714dadb85f41f571
SHA512
ca541c4f6f18887ef5baa096d8f0b84b3545c251ebe8d13a7c7e4c01ea69f6dcde11fb5386722de53e98f8547cf9df3cc65227fed1f192709f26b19e1497d7ea
+DIST thunderbird-137.0-fy-NL.xpi 485650 BLAKE2B
a380fa1aabd1d51c75429d2184a7cdda602362e610dc2b6f415c069c1ad9c27dd034d521ced34bd6c626ff9ace2c8ca6c266332e2cb962e5b938a3064e540e94
SHA512
e06e425d6d4059677665ad961eb292077d15282855e36dc0ebc9653b23189a3acd8c06bd25db5e5784dc0d41d7cfca290c9de1071dec48590fafa460ade79676
+DIST thunderbird-137.0-ga-IE.xpi 376433 BLAKE2B
8240ccc679bd71878e99bc53d75959c6785d7004d2fb08f8ab18362c4ec4fa81f69ac81ee45af806ff480b56423349060afe0b617291d861cdbe0b1d3c1d1582
SHA512
cf8d0656f4463fa7b4b7a7e26f939b5652b87f7398c9aee2a10dabf17c6e67c9e6371fd4e889f9eaecbc999c329275d059eb23def276f18ecd31f0d0575bce95
+DIST thunderbird-137.0-gd.xpi 461998 BLAKE2B
6e88b2b20cf3edf532d6db8fa17085bd6812cb6b904c80d0c2da083ad74160e9850f134c6b28d3b6e72dfd876461ca8b7fc2add02fc7d0f7d45de05f08ac84eb
SHA512
59d0cba6ec76cf5ea048039c946d6586ef6f68d98f2fd1cc04f2ce6568435522508356017dbb91899ad8316af794eb10af5f8b4890e52ea5f598fb9ab4a1a86a
+DIST thunderbird-137.0-gl.xpi 470667 BLAKE2B
c01a1d06e75d55268f9549e634173a497f5f67190c23469adecf0825aa821b4b3410b440026e1112bce6830698da231de08cb4728775ae9793e9aa20592dbc85
SHA512
6ecb32f1dd8293db8c7d2f97f5d77f7f1b1be13ba8b3a33842f9de548a6c16deec2cf37027db35f222ed49877d6b187689a5fdb48ffe86db75ba2a2edcb0caa2
+DIST thunderbird-137.0-he.xpi 437296 BLAKE2B
5bc11e40f2778f8d66a8818bad1c95b4a6c2dbbffdfe8ef58f70e703bad20833fa374fc3077abd62cf0b627ae9e3a0b7b0cf7eb12249a22f45965437f693ed9d
SHA512
a7c805403647af4963ce6a00c7325f277d0c88d3b161e703082d5362354b2b77ec4cd5c039b647a1b232f53a5b7b4a4dd66559fa7390fe85f7b1fac36d6b640b
+DIST thunderbird-137.0-hr.xpi 457487 BLAKE2B
7985455971a7a81da348b1fef40b7c21e7a0fd3b180ae969c525879048be2ff896f1f806741e13d042628ae230ee6100a5a27714f6ca8633b963c773cbf196a7
SHA512
a2228f8fc89594c0ee3f83e8fd575293f3d7e8b13ffc84ca5d99d02afa6fc5c45d7f028e3b0cbc9b9701abc41732a689855594a91453bbb61b52ea5ffc392ff1
+DIST thunderbird-137.0-hsb.xpi 509503 BLAKE2B
ecc41669c5f7b1273d9dcf6e3b085848c8ebc13f4b7e4a3dbdbb5af978fa08e5a9cd09c22b8aecb149bb7a8be7665b2caccbb4669c63ee56c642d2c4d6243511
SHA512
e456b0012cc5a9758b279349c61fd275d4e1860980a3e420244ac23d7e1390d6d6c65e708e37f9fe1e898e15213b46df2478ec87e611df13d07c86d5833857e3
+DIST thunderbird-137.0-hu.xpi 512394 BLAKE2B
2ac04cda7cf0cd0b779be2c2b6d588b9f7cc61f9ea37a571a8461317377b0e85e188be2678eb8f05ad6c0a3ed5a131f0786339842336c40d80ea5d56b97c6447
SHA512
d081d4f0610828d9b0f8a43d3d61624786f0c5ffcb757fe298df12a8f438266d951b636ea08ee53fae94ad0df7e33547b9c8c40002af380b5701983695c05d5c
+DIST thunderbird-137.0-id.xpi 462799 BLAKE2B
dab04f24605d7ef882b627039fcf35e416312eb46fdcbcd75682351fbd1dbb4679baeae2b9f5d37adba9906badafa4b812174992576dd4a885c74daed6cbbedc
SHA512
211041312ddb7a5d439d5ce42b49e2c96152235508e3c13778f98c64671b2dbba11ed893e2738abb55a32f50c79fd15916c9f343fce3bc4c4a79cbc22b86f364
+DIST thunderbird-137.0-is.xpi 479073 BLAKE2B
1f2daaddbee44260789c7ec84cae7408355fbfa010adde4ea71f9b2d08d4ca88cae1875d9a8eaeab98f10de8eef480c8a5443024502b15ba54d38b6cdfadd0e8
SHA512
5f59bf895a16cd146a5061a862dd89c05cfb0a2c3c9291efd5174ff1e57439fde73fbda6a1a14c5f101e37fc0205afad473db256bb0c768df7613a139bf0f58a
+DIST thunderbird-137.0-it.xpi 483521 BLAKE2B
bb214b46b7480c0a13000986da673ef5240a62513084876930c2c850733e37178a44b5464866126d807924ace36dce4aed79abc4eab3daf1611afe1f08076a36
SHA512
7202243c40ad309c974ca60aa2b709893252ace11edd0356de7d36ce950001a90b8c3eaa254506d4acf64c5a81490af0197175c43d0f14ba0e030e3c37e43f59
+DIST thunderbird-137.0-ja.xpi 533790 BLAKE2B
ac2926fae31c5cd405906ee348fbdceec143fd28f61773a2e2b7d54fa39489dafe86424526c4201c0b8795d1d0d0eae857f83b3e1c43e462d90a8bfa7bd9575a
SHA512
aac4810c35c8bfdb3b07166806bf86761e99605a954810b9c1bf0a980bce95b17ba99e38c0753c405e1e65d82cf33f221d4af288101d72c3649d21d43755f620
+DIST thunderbird-137.0-ka.xpi 535440 BLAKE2B
da4468b85ad260a1515c7006d61fdc3bd5d112dab313a80ff1674598a972dbe8ad83f89718a70ba08fa88c13c1981d190d49346cc558527d478b407eaebdcccb
SHA512
3a836e00d3fe20734d92b6b5f116b067fbeb8e762470c14ccbaf615a640d02693cfcfc7a314d09448f0ceee428777214e06cfbe7c78a27829316128241d714e9
+DIST thunderbird-137.0-kab.xpi 462929 BLAKE2B
ec42c1db01bdf8aca0b07ac98ee4cad8f3936014f58375b8fe1756b293668ea583e9fd48510d89371cb33e5f6cad36b6127980d1e969714abc6bc62f3ddf7098
SHA512
fde509b846d076353afa0d92c5209018aebf5e7b37b19b9412e51d33339c74ab674d80302ec96ed082d479d5ae2a02b79f72841797b5f3b601ce37120a0902c8
+DIST thunderbird-137.0-kk.xpi 568510 BLAKE2B
17c208f4a5e58e8ef177f36c9783d612a9a3b03895a545e510c6f077e571ad96a408d658aed5ce6676da65072413777bc2fcbf69d10dba801613d3feadd38a04
SHA512
239e3ba28e7add3decfe8d25fec3e2b7b6b1128e26dbd9a5ed3ef29b8acc13586cf5bd89e3b1698b52f2e88feb51ec123d62291c21f83a780bbcbf10bf3a9d25
+DIST thunderbird-137.0-ko.xpi 508487 BLAKE2B
5f6cd43741cd22c21b0ce0d98f858f50f8e6b91d854a612b26b9d85b2e9f976d44b8c2b5caec65d697cf86dc286054d5e70e8ec081b360bcf103cf3984f766c0
SHA512
27cdc1e104dae140d01046dbb729ef40e8a76c71ec4a503a7f40846f842eb4228c7e8dd3595124320f2a09838c099588f7220f0129effdc88107d9e9da18409d
+DIST thunderbird-137.0-lt.xpi 441807 BLAKE2B
b3591155d4310f0774e73272f360774b300522b99320d58989684d8c42d7237faad6d8eda37886f9159841aeab03fce4b9b90a20b9db266aebe4c6202f5de645
SHA512
b50ef3f5493af01d241d7937fe2ba38328f7795f09e85db5df1a949b37bbe86a249a2a08989b2ccef2806407d7d949f37af9e72bdcbc788d44eadf78d86d7577
+DIST thunderbird-137.0-lv.xpi 391442 BLAKE2B
43b0aa517e537e89f9ce2434c0e0854078cec5ac53f0a07f96795cdc3c990ddefd9e2bf3b622fa0a8d502160c7626641d99420768b2d4afff7c8daa9cd61f9bb
SHA512
486c042106bc8dd8f86e6d66c051cc8007f448fa6f7ca1c97a3f0d3305dcb79954bfe0325485b1f11c67b8e87ca1bfaa2099e122f281a16d26e8a8b7613b492b
+DIST thunderbird-137.0-ms.xpi 351560 BLAKE2B
4ed7e93bda1caed74f504d4060618598894ce4664d8080757b5789e87b3ac48b764f8cfd88652855f631ed2ec65601894846287774a93bb543377bf9248cb414
SHA512
e97c3033f94541b5fc0779896f0c7d373d8a9af21c09424d45084916eeed211e9afd2440d7eced2926d4c9d0781103a30d89bdbb63f36dc462ad05b1e8b69ac8
+DIST thunderbird-137.0-nb-NO.xpi 442814 BLAKE2B
4db3e3664653e01e5eda61f67a72ef340c64b8623a17bf798a156689664517bb0a7305c0f754c25c480e46bac9b42ddfe31f59b34395fb6089cced22e958fd00
SHA512
4d281f14a41960f0f0455dcbf883da96c70bbf96fdf769ebc67946cead1085e7f675caef1a94fd1aa783fa5913b01f996d80e083e13aaac8464d90f68b8ff747
+DIST thunderbird-137.0-nl.xpi 477153 BLAKE2B
a54fabf12fe297aac16a41add809a99fa33405f58d17fc60ed081a14f2cbd4c3696082ad132f71e26eeafdcb70240380f22c7162e7401be75b76417bd1370603
SHA512
7b1932a7761fc32159021b088c024a16318bf5c3e5c77206cec3ce155257748ac5ffb5f7596887ef57a800cce3d74d43c2f859049fd833409ea6b5ef8550600f
+DIST thunderbird-137.0-nn-NO.xpi 463503 BLAKE2B
0ed6d79c5a240a246462396930439701d72c178e43cee01e2ab76cc0a79c6fe2b65851ea7fe096aedc1d5a51f85fa891c3e18ba9e7497c0cbb1bd9340a5edb09
SHA512
ebd5caf588e09e0d53474888dc15bfeb34a6e6d84a75c2fcde66199c04451e0e0882cae39aab9832531b9c7c7c141ae37c861298121b2c5aa4b5e9a71190433c
+DIST thunderbird-137.0-pa-IN.xpi 432300 BLAKE2B
070e86d3eb5fbd50dd90f3e7f805f4235d3c653113094d143fa97119fba6181b536b4ff90ddc8a2b363a7a888adc33c2a247638e7c1e1f5d9c2cde1d5f2a8cd0
SHA512
89833550fd7e38ea5bc675e235d49379afed50558207fa4935c0283a285198cee99b9f0db21e0781946073c1d89dcdcb86f7d8ae64ce1d6baacd1c6b8700e295
+DIST thunderbird-137.0-pl.xpi 510248 BLAKE2B
82c81d6fd32e6063d56e5c2f140fb2a3f20a24b897c0dac55f54023cee4a50b20dcb784c67da23f0607fef1ba1284743ae75e06304312d1ada4dedf94cc55cb3
SHA512
e84b993a9deecfb32e97f2692840cd62907803f4404e570794b807e4d2d55af10c0037114a28d72766256bcf65687477bc57a1ffa38e41bc18d0c07fa96aa969
+DIST thunderbird-137.0-pt-BR.xpi 484402 BLAKE2B
0de547fcb88eaa8d602ce812cd3a349c510415df7cd739ca6965fd4ad9a70cb30650d008fdc3971387c9f5deb897b175564ba7c1db0cbd92a3eb95960513ddea
SHA512
322775ac356e9fb19044648ab942dbf663517cff2c6edd30cb8f6a1c5a7b7148aa254c9c21d04ca22f196fdac3d2edda1265f83a8efb54b9e076142c16d2fe66
+DIST thunderbird-137.0-pt-PT.xpi 479440 BLAKE2B
5eb3df9f2f85cc3d87c01266e623d682e798c39f3aa267e9a18a231bd0147939301a3b5dc175b3f46825c879c67541467d683439d6e20c2e948043fc394be1cd
SHA512
304c660842f6b80e1dae228d54c2aa75904d6f21a9fe27aaccfbb1ab87606c42f7974fb6fb8329c144e3cd7631e01d19dc15f51caba94e25986d7170f34cce01
+DIST thunderbird-137.0-rm.xpi 484054 BLAKE2B
2771844ef7bba2445837efe1cd8465611c5aeb11f19e5fed04255e16ed21e4203e82ad51cc42ef22ee4cc2fa7ec78f7d5c2d276e100e6867e73c8efc45071e97
SHA512
3871ccbee7f54a480184b910d8d262f0267d842a6b0ea8712515e4c8d461a38b22b762fd8c1dc14fa90b29192d09c3ba88ecddf8f938d7bf95a19601b3e66070
+DIST thunderbird-137.0-ro.xpi 417318 BLAKE2B
bac1647027482eb96cb64f77bb39578760151859ad8b46ee2bbef8862d2efb56715ea86c9306a34ee930b36c0ff858b84a724c02a43813110fc816dd7fd3981d
SHA512
a3400c7ca53c4e42edc9659323de54bd8eb39665e48e848095631e35eadbdd7870dd569d9d137ce2e690912669dc6cc86bdc968cb13f776a7c7661d5c598bc50
+DIST thunderbird-137.0-ru.xpi 586704 BLAKE2B
915af3cd4e34afc6aa0e7b2420e9eb53c601dc2a066eb4028abeb03a309aa385f55b5196abe2924d61aebf7d8bddfebe336d876d9b829a9afd7c0bf600c28d6d
SHA512
99dd42aac84665c5bf1d5b43fe58e4d7d6927d3114f8218ed95d20549b96ab8f2acbbe58517ac13a9b8fef471f2146d3e928dbcffa72ad4d27ef215224e131c8
+DIST thunderbird-137.0-sk.xpi 513728 BLAKE2B
add345771a3fe618325b4a8a460dad05b3e71ec7c71f9448eae483bd8acb4a68f5f2f3a3c5260650db503db4352f9a86c6543b50865041053c645951d4e46c86
SHA512
bb06690bcb19165e64ea03202f49fbd56b9ec16bc3511dd10f13444706b71ffe50e9346da06ad7757d787d99a444412c2fc79443c7fb92bfa38e2f697423302e
+DIST thunderbird-137.0-sl.xpi 480178 BLAKE2B
1eef01ac888b0371cb8de0d0338ee08f0a84a41aa5d8ed0f61ecae11fa1fcac675b83441809f213c66bc738e0d7a2db50a0866fdf44bdf0b3527a8f031cdbf26
SHA512
d8c70729de41cfa0884f946fcae10531089a4b812787aee00121b782ffe80ed2a6fbc93e0390a747bc591b5b84dca8d046c0a2fcbaa1a0067b08ee5a1d6e76de
+DIST thunderbird-137.0-sq.xpi 500759 BLAKE2B
f370a78a03e95617aa129c43c4b2cfaee5f2445d0c4938df7e088cc01f342b7b1c9ede344386dfa9b6a316d0040b3ce3c322ad6850d3e08adaee8550d14edafe
SHA512
3cc65192b37750d442d40d0982d0cc106f25af9af91ab58209da0ec0cc734d29881dc920cba9f8b768f9f98f069dd594f9c819e5ecfd9594014b54bc23095540
+DIST thunderbird-137.0-sr.xpi 495814 BLAKE2B
341a81a3b8fb9358772309883fb650ad197fcb8b70516f954ffdb63d3c7115f0bded5e10e8054b9a485355dc9d0c4c28e31a576409055a07f4d01569b25e2724
SHA512
38767b1cc3b99f45ea55669fe01ee3aa0c338209b13526a3fc0eea50bf025b6245eb0958753aad0fe41dacac4c39c07c69b8325f8b8d325ebe13f955b84ad0e5
+DIST thunderbird-137.0-sv-SE.xpi 479634 BLAKE2B
f9cb2f35fed6bb3e897440cab1ddcd6860b5e23e660883008913a7685589c61bedc68963e7e0c1bbe264527710d3744ff272bdee4659edf47aea018020bf2b3f
SHA512
8331583d1da253ae37d629b1089269e90ebde73513d2f7465b0752668c7ee6a15128b4c149be82e18f2fe3c28bc3297a7cf366bd8b1548627cd7e6d9953bd967
+DIST thunderbird-137.0-th.xpi 561476 BLAKE2B
4cbe7df192c24f89b91722d7648191372134c76774bf55c30a665cf8998273bd6abd109ff31a6a69a69cec9e67b92d818a8b898ab1423fd93bc3342df8fc4aba
SHA512
57e95040aed228fa42a6a588c0ffb4237dbce4375927cbb412c900210c514205d5275ba32d06ea00537a30f952ba25e51e99411c2c55b780a10f99af0896e61b
+DIST thunderbird-137.0-tr.xpi 489629 BLAKE2B
404845d95f0b04ccadd12555e3d38e4873e5136654a6c0036285ea45f9e34b465a16a3c75d1bb1fe3da0b2b6c161b55d2eb9faf0b2e3a73b830a8b6325a3ce0f
SHA512
2d131423db15216d7e598c8421f7fe5790085d5019c369c49db530eff03c750fa6ad7bb24a23c633e7b3589fb87c497839bd19dd66f5b0fa0871195abbc488df
+DIST thunderbird-137.0-uk.xpi 576370 BLAKE2B
b7b32d03ff96f0246d917377c7913786c9eadf9ae1bfbf16eee0857ded6c86e0cac91cdf2f68f62a5e24cd0e25dda99e8e424adc69f3efb8a0028b2760aa267c
SHA512
44e57a4d1b31f0061111efdc4260eb69e5d661d9a7b7f6e584215c244ecce94da56908ff82df726e49a32ba322e540355b1cc1ed05eea805a95df97a5509fdd3
+DIST thunderbird-137.0-uz.xpi 355103 BLAKE2B
38164ebd891ecac22cbde85faf40e658e8f8b3657b88afd9883a11047436edc3b1877e6f11ba6ccbb162d668d8a3545b694003a8ed05294e7ff537eeda4a2039
SHA512
46664fb48b6608197076b066888cb15d2e467010f2dd8aa59d7582c893b01b1a994e2aceb1374115be420e872dca863006804fdae43dc53c7dee860f4176ac4e
+DIST thunderbird-137.0-vi.xpi 513516 BLAKE2B
152ef6e896cc8be7c711f0afe9ebbbdd17a4d9b4c67867936e3641f76b1599037718772a3df64eb5c8e16c0a22f89bafaac7231a9e85c40002a15fb3caadf2d6
SHA512
b9c51cbd3ab8afe2c6c680e615eabd8fea72552275d955c4a265cd8dc8a98820b9d97400b7b4757cd8218529899b1af63af0d56f23c613249d2f8a5d5364da35
+DIST thunderbird-137.0-zh-CN.xpi 502841 BLAKE2B
a05ec32fd94400657c9f13559d027797f0d3a5170ab53fadd344eb2470d205a30f6f444f36409573e560fcce7fb1201eba22e6c1a6b3a64323387311fb191779
SHA512
a00accdc0eeaa09664b5dc563769fcf3f84211d346996f0156c7e7cc3ca4f6e280377d33179c3689d4bef105671da96aa665fedda14b3e55a75adf41331e9a4c
+DIST thunderbird-137.0-zh-TW.xpi 505942 BLAKE2B
52063bed767b683e064569109a27d0d7fcf47eb52c3c55927ab6acfdb9ab0b17395277f86cec7e71292dd2a5381c1ec43e5469f90f9befa78eb21bbf4a96b77a
SHA512
62fe6bd0b47ac2636056416e4e5c455103209c09e673c9aca3f3406c2aea155b6a7cb2a528e5690fd817f5107580bf71dfa3f7ccb754c2a3fe9beab417630b1b
+DIST thunderbird-137.0.source.tar.xz 713976656 BLAKE2B
d92df1605ee0c7381008656155156964bb1ad60b7b44a6362f5f6f2819972db9be2d27a5e039f8d60e81efffc521cff7a31d0ddf943977a061ebddbd3a2a3a29
SHA512
252c3adef18c14e52388b11a2646df7caa7e85d1697336ebe9aeb94ad5a37f8dc48d1e61066e94fed6ddea0b27705a7a76a3215456acde5066191db72323ab88
diff --git a/mail-client/thunderbird/thunderbird-137.0.ebuild
b/mail-client/thunderbird/thunderbird-137.0.ebuild
new file mode 100644
index 000000000000..b124e7234eed
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-137.0.ebuild
@@ -0,0 +1,1157 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-137-patches-01.tar.xz"
+FIREFOX_LOONG_PATCHSET="firefox-136-loong-patches-01.tar.xz"
+
+LLVM_COMPAT=( 19 )
+
+PYTHON_COMPAT=( python3_{10..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 autotools 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-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.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.109
+ >=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/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-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
+
+ 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-release \
+ --enable-thunderbird-rust \
+ --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}
+
+ # 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
+ use system-av1 && append-ldflags "-laom"
+ 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 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
+}