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