diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 6f3453ed175af..600802754903a 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -131,6 +131,71 @@ DIST thunderbird-128.11.1esr-vi.xpi 791686 BLAKE2B da3a6de0cbd3e95d8bfda6197e114 DIST thunderbird-128.11.1esr-zh-CN.xpi 792034 BLAKE2B 2d6baf2e93e933144e975526a46ebd533143f86aa03f002204fd6f8f854ee1e9b4132b7d9402c881b1ca44d5c1518a5bf6cf0cd45a51f77c36333f71f07b8ad4 SHA512 149ce39f8ce5de0c511ddf30dfda822ff9c97161a1b069137495208d582a3d84ef310551495fbc82adf77b6264a87ade5a233f4e3c925c04198edabb1c717ccc DIST thunderbird-128.11.1esr-zh-TW.xpi 795259 BLAKE2B 3605672b372a5e3874e88703fb9f7806ba42eb4960e321995407f1846762a2059f2efbc50df9c3ba55d9fcd7d92288be8c455791453775704a0ede99c492462a SHA512 2010ff176a180bf9b9d8c4c3c820460d4671c0486ead7f3350b1e856e2e3cae18b8716e4fbfec568564191809964881e6609905e182e3b7c55732425dfcc7485 DIST thunderbird-128.11.1esr.source.tar.xz 676156916 BLAKE2B 113b48c1bda6fb1cb544e8d3cc0412b89b69b1616215cece467d093b66caa3a2259b8f434a35bf3a4cb1737d57092fb8735868746938bd6ac48c9d11577eac7a SHA512 8fd99f68895b543bdc5bba38d7720f0e48e2a82c9fe5e8ca15534e3918cc40b5b2911666dbbbda0a7911783a03a0d8f7371ea353fd67416baca1e1dffdd25c44 +DIST thunderbird-128.12.0esr-af.xpi 534915 BLAKE2B 0eee56823a6080a2274e39789a4156e726301c49537db7c00df742fd0b2fe5ba79a436d708022e0acbc7925fb1ba54cdff5d00fec0cc78653c182c95221c4e5b SHA512 f59c60ba9fa14b5dfa405cfccffc8fca23cb3eba35ecfb59b4659b6e5f8fe1e8410fdcb76ab3176469ab7115803adbdc2ebc15614c74fafac38b6213243a05ba +DIST thunderbird-128.12.0esr-ar.xpi 686458 BLAKE2B 0cf0937677b2a7511481de399cfe400befb65614268106424afd300b84674359e52eeee53476cd668ebcd1df6be3ee1e754b9e9b5d25e788ddefeb40d74b69bc SHA512 63de63b096799ddb328780ac796b8d5cfd7c43a6e1bb7a551465b3cc2f3c89b21b0ce6eca0f94f16780557c2a447b926f6e66a3b854ae6a07f0ab6f29439af55 +DIST thunderbird-128.12.0esr-ast.xpi 574783 BLAKE2B 0fd55349502b25ea2bed06af36a8d93f8e9cc544dba3aaec1cca66a92c4ef205f46a6f2be2b02515d58a3443c42a4e366950b915152388493a2331e6ca024d5a SHA512 c08a3d6b166aab7b71d9033f0f55fb42b41541f2b1197eacf67dd90f019e014d5707ebc54750cbb0f883b2136607450d69dafb39e835dba50683374a3f5c2f59 +DIST thunderbird-128.12.0esr-be.xpi 781772 BLAKE2B d5788a3aecc1b096948d368395f58f8b7ef983a5a65c9475e23c78f3ccecdc587b8cf0d91a184ac84262c54a57911b85f42a426d989c496e19f3dbfcf750d65b SHA512 d9fa5d089c487f43a6ab2dadb07ceeb1f928d22c43b6de6b4c376c8f86f827f3d8bfab4e07cad7c3af55d48a6c59b4515c43ed3d588e33690284afefdd29262f +DIST thunderbird-128.12.0esr-bg.xpi 813957 BLAKE2B 6dada7310e6247cb0d4688763d4a1a62c032e215b59e75816529c12fcd5eb37fcfa43a5036fbae226293e0c85f6df70db048407bad96b0236f274558bc943976 SHA512 a8346bb6e9be293aa88e42e6c34898a18b2fa2e92cc51cc3f1b4098e33c8f2847061d59b2ba2c486808b17a9ec62a4a06bedb575711a27c94b51af1cff287d2f +DIST thunderbird-128.12.0esr-br.xpi 650143 BLAKE2B c569ccfdd53cf0f1e250df142f667d5fc1eca5bf710d9230973b560b8eca89ab9d2bf9cbc1b6b3040a628dc1199bb3d79b1463726e07acccc85c50cdd330b779 SHA512 2e185c2eeef03275ca5e4ea428bbd4be8f7937afda20cde6a495c1b5a73e913e04905bf9135b944ef1f21aeb7e014ace12331378882b6872d428377de26f729f +DIST thunderbird-128.12.0esr-ca.xpi 704673 BLAKE2B 535e2e1ee8831dbfa0aa17a00eaecacf61528b8ae26a8f5f3d8a67c82f0ae4ff5c6cb3279aea81144768feff534f34c55e32de8d02531338d53fb6af24999c55 SHA512 fe1b904198f058e27b28b7c051fef12b009cf35552258d55fa396aa732665072d1487a3f68134ec418b4c02b1d1d88760287e54afd0fc131475897ba8d8d150d +DIST thunderbird-128.12.0esr-cak.xpi 669089 BLAKE2B a296825b9284656ea5aaa2b5047fab13a6e1656411f1c74708effb8afc3b17d9180a5146f4d5172ad2d17bd6c40210c5fa4cfbff6cc26f3332aaaaf913c47b21 SHA512 96c87798ad71006fd5796ce26e2b079cc5bac86cd334ba7687f59bc29b616462f7658c0f3bbe10e2f2439f8881d08e5773654a57dd24a56ab232756126a67b11 +DIST thunderbird-128.12.0esr-cs.xpi 791814 BLAKE2B 05a3de9a2f9474513be1393c092d18b5c0b327057763840f7bb43417a73b9df831e1748b22a7727c48e99c4157998fa2a81b9df1e92ba38d59e806caafef9fd6 SHA512 42c32f561f06e1470932d44a61fcf768f3fa0bbcdf7c7d93a1981a1259fff689635a87641c05f7f27c0f1b50a18d6ecda11cc6a9b885f059f511003aac8ee827 +DIST thunderbird-128.12.0esr-cy.xpi 755462 BLAKE2B 998594ea8487c828274526663b9c96f00925239f3b8ac09525827c9941fabf62664526ff43ea628db3dd1bc50a9d00aaf8c8c6a53f8d736f615fe65c9d9e0d46 SHA512 65b8562240a89bad719a655dac38aeaf8517f65a90e5c4684b3e584793f43fea21af899ad88f4674a2c00ebcc5bd6193b00013ace0af2c87563ee4f90edda062 +DIST thunderbird-128.12.0esr-da.xpi 742385 BLAKE2B 674087bd2dbeb5975c84a301ee73331ab2ca47d4d8b57d8ff1b0ca8980b7eee56b620fee5c6941d337f7e466d85b05baba8b347bde9e236eb5f8bb2955dc0bca SHA512 c508a5572d4a7119b6c0f818dc69d1e1b43249d35f45df6c4ae5a48d8f41bc79e3f8b651ea4bd5c839e363fa80f62cc3c90b628dea9e2018895641c3e05c7776 +DIST thunderbird-128.12.0esr-de.xpi 773223 BLAKE2B aa4011d1e1875600a0d2f787c2254bd4a61a9918b64394c128ba78c820d91fea9c052b257259f0dbcc9f360867be6312f383ca178a15d8b1c4d9fdae2b321a10 SHA512 bb73f5e0b9d491317e17c5f94aea824221864703610058e124a8237e87d400483bbce1df8e91da795019dc6e76f0f9c497f98279c8ab82f7af6399c955e831ba +DIST thunderbird-128.12.0esr-dsb.xpi 789461 BLAKE2B 94e504af98169f972abe47ecc322e714eb9e8f0728b262d23273261a6c4d80ed85e514a9e34e9bb9427c17b742a2586d1bfb15299f32f0687a2af49bd5d07213 SHA512 22694d6631d7bb3011bf5449221a1eeed1ee2de6a9c02e54570fb55762bb271b7177112b2b1c4e9d982f6f62ee06ff36842b6038a4ac66590107021f3d930cde +DIST thunderbird-128.12.0esr-el.xpi 894809 BLAKE2B a1943dc5c226f8c7f1e934ad6d17369b49b8012f07042a5a1da796d12b011597de3509e882f943457192f2f8a89cb9f6c2df3906d06e2bf216d289c23bfd0358 SHA512 2d00df6ab0eaab3e753887d5e2a62dd6c9059ecff00b61d63da02b3dc8324076f9d28e9beb1b43bd6c1523cce2699f30b47d009287a08db416a17823ce694624 +DIST thunderbird-128.12.0esr-en-CA.xpi 705288 BLAKE2B b3f0880a9ca826b24df78c14fbc584509e70b7c81452cafe5187f478a24003a08225f572884fcac7f3e5b65a2c1ada6f2ae489c8b7816f52a312aca43a1765e3 SHA512 7096230ffc235ac93a709f07f3745961686b5450335e8fce2125c1123831faf83005b7444b55aeeabaaa448acd99b2ae588b59d953efb52be3f0c23441db0f20 +DIST thunderbird-128.12.0esr-en-GB.xpi 706752 BLAKE2B 205b5bf8c8127b19c1d6f4b183b0d41369684d1cd42f0944396f8213975286bbb614b69404b9aa7e843a59e545f70760122c1d5c9d2b37329529e89522cacd78 SHA512 2800229226a75bc5ee41c8ff26db8c530ee713aa49ed88574d22eb25463c1fd1d2a8ebd73a15f2aef44c892776492b43588e876c3562e605f00052fd302854a9 +DIST thunderbird-128.12.0esr-es-AR.xpi 762737 BLAKE2B 11e227617c0eefcb6be7eb2a5e5be042c48943b3bde82822caa8263e15e5af394a2ea2b1bb820bbb89bd2582b5f23699130a3b49a752f9b6794963897c31ec1b SHA512 bee7b2365b442bc7a69253f85593f732ddde7dcde4ac383011b4e25580dc563121e2d8648c71bd10a6e28531cfbbf1b413aa919ba7199852680b0a608cb0dff7 +DIST thunderbird-128.12.0esr-es-ES.xpi 764647 BLAKE2B ef5611f5ff0bda03f4e8cb00886fbad8877be109c1164c9a5e563ff071a10edbc92b36d8ca581e99c2e185d2a4933024ed464ee5d0efa714ef3eb1d2e5f0b8b9 SHA512 b43c5755dd0ff21f5338e8ad3893c92bf814776064c851f76934fa3a5e84c3a03cec666dfa4e98a982ef974c1a060818a8c0fc525ce2848a1669974cd7db4b44 +DIST thunderbird-128.12.0esr-es-MX.xpi 756901 BLAKE2B bbf79e5bf4efd0b7e602624a363e73eadf75c9fc09251b5f3ae56bfcfcda41edb07a591636902430bf28a8eaf235415378b79dcf732c7dbc2c2b9c9c6be8a01c SHA512 aefc1b69304e7a8899a2f1bf5460a55737e43bf77cc3f8f51da33c59d067b2a3ebc8906595ad3c7e48ed1a613f005b42575591ed29eaf3e1683db39cc3757caf +DIST thunderbird-128.12.0esr-et.xpi 704038 BLAKE2B ef9ec17aa2507c174b81367b7b501b66399cca74fa0e8310356dfbaf6a2bf32918c890c1e9afe2e10638a441b1af74ede6ce6d09ec5912054235d52f77f64972 SHA512 0062bc4546b3e75ea983ebb72c15deabcb94ae3210d26b72dadcc46a4d8fb0aba99a546779bfb10e124377950431f624dddf86b6d30017c5d8161e50e3ecd999 +DIST thunderbird-128.12.0esr-eu.xpi 739571 BLAKE2B 0e74dfb192f6e8ff94d86c784a6a41d4da3e27662cd23efbd2336bd6d2d655dce7956108c7011d8c6b7bc230e608da6029acd5f81ec483f88bcdd82c5fc6755b SHA512 07cf8321b5fc352e6fb9b19b84d9eabc5f46ac59638efe7b728df29895561d462e2354c1267091d2cc3f0867a42e8d670e4993c494dc3ee5807b4cba34820613 +DIST thunderbird-128.12.0esr-fi.xpi 735967 BLAKE2B c5f3502a62a5499a47609ec83220776939553f558cf82c7dba88cba2f0ba9abbea0a0999235cde9938067144de4e2688db897d081813aefc47b577a271065698 SHA512 955c91ea27e00f9e61bdce38fdea532dcf8e2ff8f25a3c244a96a9795ac346c0963d1828ddd3818427f1910565a9884d49be71a4ef38dcfbafb0e716cba4f409 +DIST thunderbird-128.12.0esr-fr.xpi 777001 BLAKE2B 19f9588551445e0258b0a6246bb0047961a46e9fffc0d2f438644e44cefa5814e44c002ea7ba0dd30a0222dff3d8ca3435c421d338e43bcd7830277b442b8366 SHA512 b142d305df78e60f009003455e8c0e1fd124bc3af7cfa621acd996951db2aabfe9659296493b7acaf6a70ef7b0783d291fb7a2b1ad69f3a1042dfaa4686a18cc +DIST thunderbird-128.12.0esr-fy-NL.xpi 758201 BLAKE2B 3ee743c33a90a9205559fd6a972e8580fcc59a07172b3a6c769ad63b6940bc18f6879e33debbb81ed340c3483f455eb86f95ca222e9be1ad19499a628c5b1d8a SHA512 6af3e793c2783e1a95996e12dd4f7c5c26a3b40e9e5634ef7addc8b09826337b6734b6cc39446b60d9786c08f01fcb8594f2a920b635f32186277a8a9c2e7652 +DIST thunderbird-128.12.0esr-ga-IE.xpi 614305 BLAKE2B cdfd077bcd1f19accb520c09f2dc3f7460298bbb041ecc54cc0e6a888d1bc80a1d4131d437f5a4268bd519afc8fcf3ac21cfb0cb651d8f96bb6a2b1995b38e87 SHA512 a803a3d1232f93debf1fa55ac97cb2cfe6815e12a6fc502164519ee723ddfb263864ee41d503824898ecf959cfe768f7c3056e585bdfbd016bd0da6bf8ab002e +DIST thunderbird-128.12.0esr-gd.xpi 723348 BLAKE2B bc548e3d6b6fe29efb699d9169dde3090491b1d370d8c1ff81622846dba34c2f5107429b026cca05ae41ad7de0b0d6fcfc9c927cfe0cfbe4da22e953c5625fa3 SHA512 6efdd19c909b571d6c1fc2443a2d36d1da169fca5908a43f325d8fd81c2be943b2c043d439279ba300cf30a31c2e073fc1b5fdd889395d1629926a53ff67698c +DIST thunderbird-128.12.0esr-gl.xpi 738611 BLAKE2B 008a9e848dc9da4006b6847cf0a70cd674801a34ab12cc0447eba3f96401926fda5bcdadb2f06328f6d2fffa542a94cc9c3776e174ec2252b32fe256d1b21655 SHA512 94b7b74ee346620f3772a2ac7e7aebdea1be4017d917bdeb0ca99f5cdfbe33f36c2f10be576e941548823fe6d17500f8ec66920426077d9259d32a4a94961386 +DIST thunderbird-128.12.0esr-he.xpi 697005 BLAKE2B 8fbabd0c18f87cacc9da99c72aa68a20cac5ad0b6e91fa9beba17bd46c62825d1f1503ed681c0615e5a16aaf6202455d38b4c56144c38c109e37ccba2508c105 SHA512 9dff112538fc4b5da2e92f829819c870de871daa72467b4b5d10fc104b8b78a7191b4a10a0c4ac4c619d183cdb22f43c88e9fdda2de0a440ab93e1be75c02484 +DIST thunderbird-128.12.0esr-hr.xpi 724920 BLAKE2B b233229be103cf7ac2decc1af73035c3cb580f032b5b613e0fc42234f1d5c838d28fce9e8a14eeaca088c46bc0d23cb42c09b095011246e7414fe5b151cfdad0 SHA512 d2b4ba99f7de0b5c35b1bcbb9fcbaaf9d79a1eb30251638070f1963b6d04e948281d91a99fa69147b996b0d0939883c11c40e255e64810b02407f38bed8185d6 +DIST thunderbird-128.12.0esr-hsb.xpi 785991 BLAKE2B 08aeb4df1a4bf38137849a203e74e4cdea8d0abee7ff235cffff720653967a0a2f0ef659aff75d9b00a88f77581995bfd4c8f1f48f693c8d34435ef64e5a68e7 SHA512 6e285472f2bc5494894920b7f7e2c23f1114987fff7f737eabd776503c1acbfa81ffe9b3dbf060d3ef85251955f9f8c5bc05aaedc0beb690e8224bcbfae78635 +DIST thunderbird-128.12.0esr-hu.xpi 789530 BLAKE2B 1070916ba2bb9bbef9d6d3e9d22163d38c1c1796777f3bacf215eda5b14e63fd7d6b5d4b91c4a26d79c94a097a2d29e96170a7d413563ad2fc5d8fec7d1251c3 SHA512 b679d9a585cf0a921caa3210c0861d6aba42bd8eb2b5bd09c1a4368910e7f196e61e047e6c0c1cac84511c023cc588c85d64d492acdfa2e36af8d92307a33589 +DIST thunderbird-128.12.0esr-id.xpi 721049 BLAKE2B 838f33692e41d7a37ac6d0d0273a780aa873efd669b15f6623da89fb70ef2f54b84725fb217fa7689be893c0850e1da738d0722aabce70b18d72857768f3e6f3 SHA512 e0288159ecfdc0b3aae9d7fc32bc2fe15522266dee39fba5f10895d480dc2dd86e1ab0b37eefa6a99f39f8979b79b7d2c24c1780115c131a1ec8e97a06691733 +DIST thunderbird-128.12.0esr-is.xpi 754160 BLAKE2B c8f949c1b9a38bb4aef1c87e2be19dfc918641804b8fcbb47a26c0afdc5d4d5a4072fa5c78823bdfd18a2049403a84bcec04b3ea93bfd8368f1bb358bd7fd390 SHA512 3feebdf34c6fd4ac4bf61beff3b49f2ea551356ecd5161bb5f2a99cdb5bc9494a79197a108d4dea8e9cdf468708f88b35246a33dec23db42a6eedd9f1ecb9602 +DIST thunderbird-128.12.0esr-it.xpi 753785 BLAKE2B c746e46759cbf38575ce30dfe241836de9a9d80827cd476c7895704ef57ee0883e10e3f7244a6ed1f03c2ac90fb45fe52e6600c86545973b3b3050a1267b32f1 SHA512 efcbadd45bdd683b731b2a948481d1d57d28ea1070b73f0b97b90b066d6e33cc572a20aa5d9ddde7a5640e094d6381062dbcdfa49d483f7dfba40a9cc986c25e +DIST thunderbird-128.12.0esr-ja.xpi 824755 BLAKE2B cdeb032e846a3eea2a40f6cd38000355a4d7315054fd817c7fb971c51bad002f78d4f80b8910a080217ae24e17e49907f6d9d871636817464e1718a2c86c99ce SHA512 0f6ec75f19841653dff395fcead481683955e0f3f8a9fc6c532bd32719d4a834537f24d5dff5bd9025626b520a910260e1da54a72295bacaac340b713572ff74 +DIST thunderbird-128.12.0esr-ka.xpi 832697 BLAKE2B 27db86aff02f18639befd884f687c26aa4798459f1bd2f6f087085d8ae947b8ab98f38f88318ab9d1c69d3d65455cbd229bef7aad8e53c7eaeba2e8c67b58294 SHA512 8d25c7a850d40c8170fb3a098f924adebd7021b125fdc2a7755d524a5769009c387d0ef8f1a4e5a99fd664e235c6842d6b0ad41eb2dcaf61ed96c80121dbb283 +DIST thunderbird-128.12.0esr-kab.xpi 732883 BLAKE2B b2af52bdb67770b78c87457bfb42c8497331cb5070236f6e58421180aeef0114725224e1284219f1fda1134ab93870c49832323f91882ff48362e6e350542678 SHA512 05ca2ca16be9b9f053faf42ff9f6fb77460cfc3dad820f4c7824e04bedc578e60067d54b26dccc9afe5ac4cd9316422356af6ce34d11a014ef188a016892537a +DIST thunderbird-128.12.0esr-kk.xpi 860573 BLAKE2B fb08a3dec466f3d1318a82f5caa9bf338302ccf07151c3927b8033fea7b6479358f6056029c59e0ecbd1689bcc39896119a7fa393bb060d99269b2ba2496a507 SHA512 9bca6c67d141761b4378f26344547854843cf046b183aebe119fbb4273ddbeb96ec63c4e3566352fabfd759f9af3b807748a0c3fb982ec17ad1dfdf78f839aef +DIST thunderbird-128.12.0esr-ko.xpi 792677 BLAKE2B f15d08e4392f2ab6cf7a436873fc8630eb6c94bd52d160eb25693db449b8204ec23e230a15b15edda8eee3c905b20eadbe2c29fe922630f016e1d1a17b945b12 SHA512 4e5cd67cc7d37f1fea5d91c27cb9958045f33141b3571ab74a277ee534017a6a69e78963bdf6ed2f7c75040a3435664e14eda039dda564486969f42704de0a89 +DIST thunderbird-128.12.0esr-lt.xpi 696749 BLAKE2B e765a92f2341530c32127770d543155bd13146c394c44a05568f6b0311b5363b0b1587cdc0a2f4a5f0cc7a0f9b44d7f50e63a6625fb443699d48ac5d586ac80a SHA512 80fa67af57996ba1aefdd1d7242737ee2171c5fc3b91a76e9535d4f2b0811187a94cd1d1fcc43a8470399049175db49b2a8d30a2345c5eed0fe5dc7203055259 +DIST thunderbird-128.12.0esr-lv.xpi 626202 BLAKE2B dc529447526681003b9f788155534f9d2bd0f792e9f7d96de02dc3ad355e60872080274968da055cbc956bdf00ad76c7a0e6c521c80bdc26978769a2acb6084c SHA512 af679ac151da7b2d8daf08c74ba27877fbd669b3879ccbc573b845fca54c5a1053f97238424beb7dff5c3c2f740f5e4da1f791e3d8853e5020bb65628abe74fa +DIST thunderbird-128.12.0esr-ms.xpi 586641 BLAKE2B db205070fd247defe9b1b9a66b900bb5320d0005761317ffb2eed7f54d18abc5641c2c7f97e1cc859852077277de5fc0817b23d48f798d2b7445aea1d6d63857 SHA512 ab78802c4cc18883526ac6d3b13518b6a03006d72c6c05732a873c5acdc681e0bfba4ba2e3dc4e9a50a8693db80b853403817d4a83e0f6e3d1239328b7fa47d2 +DIST thunderbird-128.12.0esr-nb-NO.xpi 724071 BLAKE2B e72ea73ec98d7f7e7f7226611a60ae93823180e2f2a3d9110fd46c5c2e20b8d48bc8eec8b84639b75e5eec4398325de278aa4babb4726378e7ec4bb122f72d52 SHA512 10596718205a4dcdd609861add288e91250543a9d1e756d6adc577531ee3dacf818e4178ce624e886adb7e4e07e8a84512b353294831eaeab47c142d5ad5668e +DIST thunderbird-128.12.0esr-nl.xpi 748467 BLAKE2B f9255c382ff937d64b99c880883064af3401e42935176fb25252f5186d39b3e7ce99e864f8dd4d7331888bb9862f2e1485aa912bc5d2f6344b212c131ad5eae0 SHA512 1595346a1bf3921be9034e674ea2edd113d64cd7e65883b8378c881cfbc9486537d259c82df6fff15fa6f7f4b8aeebcfbcc597d7fccce921a20bbafb1f4b0436 +DIST thunderbird-128.12.0esr-nn-NO.xpi 727692 BLAKE2B 5ce3b5c02f8edefaa56babd6e24b98c9be33dfed0c049f56604ec5e2e8d1b00e6d86d1d5c8fdf219fae9d9e0c71a5be51ae320d319ce55a6f5ae664d7593bf12 SHA512 aa416d02781731e93999b04a1dc5bf6f1e5fc6849a7a298c9f1dd753c6cea8cb65fbef7d2695ac44b20d38d1db551b602be7d3f3eb536f7280fb644aa6de3325 +DIST thunderbird-128.12.0esr-pa-IN.xpi 687936 BLAKE2B 71b103a5566b5b8fd943cfce3b61cc5adb9719aea5767b73cd5f206d475707d49dc8a6190eb8431d2f1104fdeb58bd05038779edecae395b7f35e47e49e65b50 SHA512 7c9a0b274dc977cb74a717aa3f62ffd69e1142545f3a572f18a4af36ede32af8326cc8126923c5c148b6f76d05c903b1d03488380f683c04699e1e9ddc216fe9 +DIST thunderbird-128.12.0esr-pl.xpi 786474 BLAKE2B fe93c2ef356e9f7c5eab4420d8f07283f781f8e56ea543665b70f1f089660ac2246cd0f7f4b709782b10cdfdf0f8bdc65513b23b9bacd8f81c2a226e328ea91e SHA512 602b4d9369ded16c90a35591f0ae176a002b72be4e873c8901fc114e2d143055d9bc2d3ed01dddb374a4b44e0d5bb54cc55f5fa72bceb60ee80b63df16e12376 +DIST thunderbird-128.12.0esr-pt-BR.xpi 757495 BLAKE2B 94f011d039a200c0ffd6b3fd731a2e32b1583777be20214a496a2e67d0846e6de26c55ef328ce2e58527dd76472456d2f19b47d67073d67a7667d02f1b021f6b SHA512 6251cc01150f0574788ce44ad090973e4310fb7e6e45d8cc91c1b3bb359313f23dd1e93d80591428a235361f2e6c79a502ed98a955b60ebd36093fd308a4c376 +DIST thunderbird-128.12.0esr-pt-PT.xpi 751367 BLAKE2B 180f9803bbaecf646ab1d6a63f10c77d3317daf60c09334e5796fa0958b7feb4da89422b2a8307a5e2f7d5fd9c0b2b21e012c6b33d4302f5db9b4fa8e640e8b1 SHA512 2bcb221f969849f28c31364fdeca87773b67c1fe147ebda257a1bb68c876d7dd200c3e6ab42ecc993b82a429678d8e4e8418bffd016353d4ab3e040066da07ff +DIST thunderbird-128.12.0esr-rm.xpi 752556 BLAKE2B 5c2ae360e566b3ddfe4f9ee2feda25e8410efd21ca17bf4ea877d93f258aeecb0ed98f8b1e340a2aef01477513347f97bc873f3a0308b7eb9a1112fe6ef0214d SHA512 43360d480df0d8109d647aec0ac658ebddc3088e1739337615ab09326a6b179489425c5458311102cc726d5fafd555a0b435be7ff2771005b68b8b25eeff93b9 +DIST thunderbird-128.12.0esr-ro.xpi 666544 BLAKE2B 8adf24155e5060815c3e10bc5347c9145f1ee16b33f835fb69388d41a18e9f506e8c420e7a55c8bd1256ef118ffaa2c3baea04a68edb64866ac16684274792a6 SHA512 b886b58351a34fc7449b4cb2545ecb7d06fa2398d9b806b8be9653902427b8d5c79ae0d51acf6f1c44e7717a514fa0cb10224c44dddd0d1a3f65291141bcb4ce +DIST thunderbird-128.12.0esr-ru.xpi 877984 BLAKE2B c91ee15b9e90164545c69c28791957a01090191542d1b75f4bf4af146289ea0ff414ef87f3ee58d08cfcc7513006a518b83a6964af624c4616f0dbdfbfe366cc SHA512 b7dc9d7c8500bc919aaaa6541083f9c92a5ff701cd629f720e632ea506860d98514e09235ef331a86953fb9771125f8587f79e92aa74fc2f398e2159f71e66eb +DIST thunderbird-128.12.0esr-sk.xpi 791138 BLAKE2B aab82140a911bedffcc0137f3415dee092c7d04bdfc6a3152d9c15261b05bef606829dcf8f05013030476fdcd4b66d2704145ef674a110e212a16da4c1cbb8fb SHA512 3c3c0e40364127206090d965df0561317ab8d96d88be349ba712391bf23e05f610122d1575aeee037f9b083c98c8f6152489c23d9ad6f5d11f57f57e737e4304 +DIST thunderbird-128.12.0esr-sl.xpi 752438 BLAKE2B ae8e5ea98f1ecb1083d7266bc6093528e05711ca1444a3891a1d0dd640acb83f2019e31e2e213c617b2bca267224d03ad360decb3b4957075c97b66d4c68d8c1 SHA512 d53c5972c306da3675b983e67fe4d8415f0279a666f935334898a6f734131a3254116ef32a1c952d72ffd9d0bbcff647afd8c5f576058d88e4430241e92844a8 +DIST thunderbird-128.12.0esr-sq.xpi 774174 BLAKE2B eb7773a5cee5ef11dadb195a2122ddc8c83e63b3c04965bd0dc5e0f8c80b9310212d652790546e846db861c0da7aeb619fb620a0dad19dde61d3f5171962b971 SHA512 22e6efe3eee4e831f7072258c87f69ee1bb61673c8ca2123b9e6d63ac7d1a72cae64a6709cc3c69021f2cfe8de6565d9efdcda8041ebc0eb5834f807d3160f28 +DIST thunderbird-128.12.0esr-sr.xpi 766344 BLAKE2B 6cf8a5f321cce45735a47ac5582404ea144049ae7bed8081637f176a48c1e9bf590183cfeb14827e35bc55db19d8db0151066e6129fff7cfb675a398c779abee SHA512 e143457e5971b64c18c9eeda9fe465431678dfd4aaff11f0e842da80e9de621cf99ee4e8ab2c835cded063563229bf5e40f716745a78b12ea37c059a8002c178 +DIST thunderbird-128.12.0esr-sv-SE.xpi 752315 BLAKE2B 85878a6444cfcd14cbeb4471020a4a27b8b63c8fa8a98b49efd20fa36d8e058fa8ee7a41dca433f826d226d6cbb9001abf4110e7bbc84bd8445c62b3e37c30d3 SHA512 16a33ddf646f033a145afb13bdd9d068d52662945cdcd6785e3f7289668f4806c3202915c585e63c006788c32cde5dbb81c1b54f89d462741f05fb939cc83c5a +DIST thunderbird-128.12.0esr-th.xpi 849559 BLAKE2B 52b36805bda9f2800efda091b69f11d1b1f2ec601b2881860e1e76eda0575512226c1d0d84564c2e8eea1d5cd588157fa5db2bdda1b7e896cac766ef2f881feb SHA512 969f5fba0e1c0fbd4c5da98f06c8ec0060f50c6c95fa5720129d2d68d0ad1a37fafb9d02a4121f9ca955cdd26c37229b2a8812c5192d3322e21bd17a8d97fff3 +DIST thunderbird-128.12.0esr-tr.xpi 764276 BLAKE2B 9fc87d4b608f877eb66036cdf0215e5d14675331c3d2d032a281e05185e3ea20e95d5d524b5a15abab3c22fa692f68ddd78a1fed4c50de903aa566613d2c4502 SHA512 67d4859350b809ac5490e4b5cc9b42646ee41ad2a9830a076d0cdc422f1b56b1a5ed879ea68afb6cc9fa5047b2d857991903b1b431527b8f4e8e0df3f59b5b03 +DIST thunderbird-128.12.0esr-uk.xpi 866390 BLAKE2B d818a7e40e0761ac2d6e6e52b53794fa860f50a0b29a2137e40852c284a3da0257b25b67c344198786c6bc0a836e79c2a8aa94b271344a337a3f0f515e1b669c SHA512 7526da1a4b59f89235c953400fad695fcadf276625287f82efddc333bb5d4a392d4ea249ab325f652789cf2963945a2a43bce8fb1cfb4476ae9e66de4ee6f7c3 +DIST thunderbird-128.12.0esr-uz.xpi 589337 BLAKE2B ddd61ad02353f5076cc72ec2fbbc7a227b49a5897dcad5a82430c94667c4a7cfbe8725ca7770af5bae351575e92d75e58081e3853e674b4f7430dc9e2466eb64 SHA512 e210a5d3550491bb084171eaf70320c6abaf77eca8dd2ba2085e5a1a3d1f867a75f04bd52c9c6c55581c8d63c3a929636646d42a3cc680093e7fefcd8bd982b1 +DIST thunderbird-128.12.0esr-vi.xpi 792411 BLAKE2B 108e599d8ff42dbee45b32312ec14f39ac6a1ad434b8f644c88e59c9d4f4d1fe333fd6158dfac2cb0c825fdea98d1604d3056c2cadab9d38cc2fe8d679026095 SHA512 4c0eb818bc172973ef32672179016c24f1a1283bd6cea28c03ac2f5cf107fad4723592685ace97b5dd7d0001c652976af5b1b36f896b0dffc96ff0a06a4ee23d +DIST thunderbird-128.12.0esr-zh-CN.xpi 792812 BLAKE2B a5a864850dceb064067707b9f1c524f09a134da0035e6a208d97bbeeec87969c6333af76bf2f33b0fc35d01a726aa9fc8510be3d0bb4fe84f85f725d222f7fdf SHA512 d9aa626471b9200964a79e856a79d9c4401108f0c4dddba57389dbf8a3633e0b19434be7cb85a5b80161fc55fc1db896ab0115fd6c4aae70adfbd557a21b7b39 +DIST thunderbird-128.12.0esr-zh-TW.xpi 796025 BLAKE2B 95f74f1197ed07e5cc20e52c520b83c3d5d7516f5a57969f6dc893e7ab8500ef4da113db0130c5676c864dac3a8789ed690de02e3a46e11b93167b1955d1dff1 SHA512 77cc8c1dbc868da4f371197a8056047d1b45479710f712b4f480e1842a905f17d0a44ce1da2244f15527a2b35ca0d297362cc8672ed880a9168dff67975e26aa +DIST thunderbird-128.12.0esr.source.tar.xz 681085772 BLAKE2B 24cda7e6c5920b3c2c4c9a5edfc39568b45fc7e5b0779f4bedd2774b03b8b8d84939cc43f0ae581f4bf953ffd080632154e0fa2158238da4943d910928c0126d SHA512 4566ae8347e959612a288524753416f5b730757f10a067b6eb11139055cc1fc5d63d49636e798e9b77588896c8dbc0f2acc189ebd29d95a5166e7bc8f2c35e30 DIST thunderbird-139.0.2-af.xpi 316966 BLAKE2B af48fb7d139134ddc3eaa8a88e9aad7db3f07bcaa0fff6194a90d7cc7d7fc045b955cc1543730c2e09236153a8d4e4c0e6f0100edb1327b908ce3878ffbbabba SHA512 988a9344de207b105e21ef9997bad0cc0c77defba62004da0017bce41abb9e3555e7d813413d86cf8852f98d900fe75c19b5e08b3937f64aaad409d583de2a3e DIST thunderbird-139.0.2-ar.xpi 435736 BLAKE2B f306f18bfc651efb265a73aedeccab0e63179b6323d5a04e867b88cdd426e61fc210691c60b8de0fcf2675150b86e0c294845fd3862ecee83372050223946c1c SHA512 d161bba3aec9570204fe524ace4b46a8b402223f4255fd71b49585209370651ff7db9c9464c6c2e8a14b046f7757ae4bf2c0392013038ab1f3f1e9c5180f7f04 DIST thunderbird-139.0.2-ast.xpi 342368 BLAKE2B 83cd8f7ab4a3fa1d00bf1d867710c61a3b7a70e9a629654f05ea309907021911da405c9b875acf9a67dc8d924e4ece9eec3b674d3b74bbbf1a158856f70bdeca SHA512 4fb5be29f1304a7d3897c32dce3291d42b6782e25fc07a4c9b5bbe96d7afb40c72dd2137d94ec18738819dc1cdc0436b24287d006ecd6aecc4ff6f2cd80bd77b diff --git a/mail-client/thunderbird/thunderbird-128.12.0.ebuild b/mail-client/thunderbird/thunderbird-128.12.0.ebuild new file mode 100644 index 0000000000000..1e1f68d257b6e --- /dev/null +++ b/mail-client/thunderbird/thunderbird-128.12.0.ebuild @@ -0,0 +1,1171 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-128esr-patches-11.tar.xz" + +LLVM_COMPAT=( 18 19 ) + +PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +RUST_MIN_VER="1.77.1" +RUST_NEEDS_LLVM=1 + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +# Thunderbird will have separate release and esr channels, matching Firefox's rapid and esr. +MOZ_ESR=yes + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info llvm-r1 multiprocessing \ + optfeature pax-utils python-any-r1 rust toolchain-funcs virtualx xdg + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET} +) + +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz + ${PATCH_URIS[@]}" +S="${WORKDIR}/${PN}-${PV%_*}" + +if [[ -n ${MOZ_ESR} ]] ; then + SLOT="0/esr" +else + SLOT="0/stable" +fi + +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +IUSE="+clang +dbus debug eme-free hardened hwaccel jack libproxy pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx" +IUSE+=" system-png +system-webp wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +rust-extensions +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 ) + rust-extensions? ( dbus ) + wayland? ( dbus ) + wifi? ( dbus )" + +TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( >=dev-util/librnp-0.17.1 )" +BDEPEND="${PYTHON_DEPS} + $(llvm_gen_dep ' + llvm-core/clang:${LLVM_SLOT} + llvm-core/llvm:${LLVM_SLOT} + clang? ( + llvm-core/lld:${LLVM_SLOT} + pgo? ( llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] ) + ) + ') + app-alternatives/awk + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.26.0 + net-libs/nodejs + virtual/pkgconfig + amd64? ( >=dev-lang/nasm-2.14 ) + x86? ( >=dev-lang/nasm-2.14 ) + pgo? ( + X? ( + sys-devel/gettext + x11-base/xorg-server[xvfb] + x11-apps/xhost + ) + !X? ( + || ( + gui-wm/tinywl + &2 + return 1 + fi + + if use clang && ! tc-ld-is-mold ; then + if ! has_version -b "llvm-core/lld:${LLVM_SLOT}" ; then + einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + + if use pgo ; then + if ! has_version -b "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then + einfo "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2 + einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES es-MX et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +virtwl() { + debug-print-function ${FUNCNAME} "$@" + + [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument" + [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset" + tinywl -h >/dev/null || die 'tinywl -h failed' + + local VIRTWL VIRTWL_PID + coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; } + local -x WAYLAND_DISPLAY + read WAYLAND_DISPLAY <&${VIRTWL[0]} + + debug-print "${FUNCNAME}: $@" + "$@" + local r=$? + + [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly" + exec {VIRTWL[0]}<&- {VIRTWL[1]}>&- + return $r +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use debug ; then + CHECKREQS_DISK_BUILD="14300M" + elif tc-is-lto ; then + CHECKREQS_DISK_BUILD="10600M" + else + CHECKREQS_DISK_BUILD="6800M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + + # Get LTO from environment; export after this phase for use in src_configure (etc) + use_lto=no + + if [[ ${MERGE_TYPE} != binary ]] ; then + + if tc-is-lto; then + use_lto=yes + # LTO is handled via configure + filter-lto + fi + + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + if [[ ${use_lto} = yes ]] ; then + # -Werror=lto-type-mismatch -Werror=odr are going to fail with GCC, + # bmo#1516758, bgo#942288 + filter-flags -Werror=lto-type-mismatch -Werror=odr + fi + + if use pgo || use debug ; then + CHECKREQS_DISK_BUILD="14300M" + elif [[ ${use_lto} == "yes" ]] ; then + CHECKREQS_DISK_BUILD="10600M" + else + CHECKREQS_DISK_BUILD="6800M" + fi + + check-reqs_pkg_setup + llvm-r1_pkg_setup + rust_pkg_setup + python-any-r1_pkg_setup + + # Avoid PGO profiling problems due to enviroment leakage + # These should *always* be cleaned up anyway + unset \ + DBUS_SESSION_BUS_ADDRESS \ + DISPLAY \ + ORBIT_SOCKETDIR \ + SESSION_MANAGER \ + XAUTHORITY \ + XDG_CACHE_HOME \ + XDG_SESSION_COOKIE + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if use pgo ; then + # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure + # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage + # (PORTAGE_SCHEDULING_POLICY) update... + addpredict /proc + + # Clear tons of conditions, since PGO is hardware-dependant. + addpredict /dev + fi + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc" + fi + + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ" + fi + + # Mozilla API keys (see https://location.services.mozilla.com/api) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi + + export use_lto +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if [[ ${use_lto} == "yes" ]]; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + # Workaround for bgo#917599 + if has_version ">=dev-libs/icu-74.1" && use system-icu ; then + eapply "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch + fi + rm -v "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch || die + + # Workaround for bgo#915651 on musl + if use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die + fi + + eapply "${WORKDIR}/firefox-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + + # Workaround for bgo#915651 + if ! use elibc_glibc ; then + if use amd64 ; then + export RUST_TARGET="x86_64-unknown-linux-musl" + elif use x86 ; then + export RUST_TARGET="i686-unknown-linux-musl" + elif use arm64 ; then + export RUST_TARGET="aarch64-unknown-linux-musl" + elif use ppc64 ; then + export RUST_TARGET="powerpc64le-unknown-linux-musl" + elif use riscv ; then + # We can pretty safely rule out any 32-bit riscvs, but 64-bit riscvs also have tons of + # different ABIs available. riscv64gc-unknown-linux-musl seems to be the best working + # guess right now though. + elog "riscv detected, forcing a riscv64 target for now." + export RUST_TARGET="riscv64gc-unknown-linux-musl" + else + die "Unknown musl chost, please post a new bug with your rustc -vV along with emerge --info" + fi + fi + + # Make LTO respect MAKEOPTS + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure || die "Failed sedding multiprocessing.cpu_count" + + # Make ICU respect MAKEOPTS + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/intl/icu_sources_data.py || die "Failed sedding multiprocessing.cpu_count" + + # Respect MAKEOPTS all around (maybe some find+sed is better) + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/python/mozbuild/mozbuild/base.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/libwebrtc/build/toolchain/get_cpu_count.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/libwebrtc/build/toolchain/get_concurrent_links.py || + die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/python/mozbuild/mozbuild/code_analysis/mach_commands.py || die "Failed sedding multiprocessing.cpu_count" + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py || die "sed failed to set toolchain prefix" + + sed -i \ + -e 's/ccache_stats = None/return None/' \ + "${S}"/python/mozbuild/mozbuild/controller/building.py || die "sed failed to disable ccache stats call" + + einfo "Removing pre-built binaries ..." + + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Clear checksums from cargo crates we've manually patched. + # moz_clear_vendor_checksums xyz + + # Create build dir + BUILD_DIR="${WORKDIR}/${PN}_build" + mkdir -p "${BUILD_DIR}" || die + + # Write API keys to disk + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die + + xdg_environment_reset +} + +src_configure() { + # Show flags set at the beginning + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + local have_switched_compiler= + if use clang; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + + local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }') + [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}") + [[ -z ${version_clang} ]] && die "Failed to read clang version!" + + if tc-is-gcc; then + have_switched_compiler=yes + fi + + AR=llvm-ar + CC=${CHOST}-clang-${version_clang} + CXX=${CHOST}-clang++-${version_clang} + NM=llvm-nm + RANLIB=llvm-ranlib + elif ! use clang && ! tc-is-gcc ; then + # Force gcc + have_switched_compiler=yes + einfo "Enforcing the use of gcc due to USE=-clang ..." + AR=gcc-ar + CC=${CHOST}-gcc + CXX=${CHOST}-g++ + NM=gcc-nm + RANLIB=gcc-ranlib + fi + + if [[ -n "${have_switched_compiler}" ]] ; then + # Because we switched active compiler we have to ensure + # that no unsupported flags are set + strip-unsupported-flags + fi + + # Ensure we use correct toolchain, + # AS is used in a non-standard way by upstream, #bmo1654031 + export HOST_CC="$(tc-getBUILD_CC)" + export HOST_CXX="$(tc-getBUILD_CXX)" + export AS="$(tc-getCC) -c" + + # Configuration tests expect llvm-readelf output, bug 913130 + READELF="llvm-readelf" + + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG + + # Pass the correct toolchain paths through cbindgen + if tc-is-cross-compiler ; then + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}" + fi + + # Set MOZILLA_FIVE_HOME + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # python/mach/mach/mixin/process.py fails to detect SHELL + export SHELL="${EPREFIX}/bin/bash" + + # Set state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + mozconfig_add_options_ac '' --enable-project=comm/mail + + # Set Gentoo defaults + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-disk-remnant-avoidance \ + --disable-geckodriver \ + --disable-gpsd \ + --disable-install-strip \ + --disable-legacy-profile-creation \ + --disable-parental-controls \ + --disable-strip \ + --disable-tests \ + --disable-updater \ + --disable-valgrind \ + --disable-wmf \ + --enable-js-shell \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-release \ + --enable-system-pixman \ + --enable-system-policies \ + --host="${CBUILD:-${CHOST}}" \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --prefix="${EPREFIX}/usr" \ + --target="${CHOST}" \ + --without-ccache \ + --without-wasm-sandboxed-libraries \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-ffi \ + --with-system-nspr \ + --with-system-nss \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system \ + --x-includes="${ESYSROOT}/usr/include" \ + --x-libraries="${ESYSROOT}/usr/$(get_libdir)" + + # Set update channel + local update_channel=release + [[ -n ${MOZ_ESR} ]] && update_channel=esr + mozconfig_add_options_ac '' --enable-update-channel=${update_channel} + + if ! use x86 ; then + mozconfig_add_options_ac '' --enable-rust-simd + fi + + # For future keywording: This is currently (97.0) only supported on: + # amd64, arm, arm64 & x86. + # Might want to flip the logic around if Firefox is to support more arches. + # bug 833001, bug 903411#c8 + if use ppc64 || use riscv; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + fi + + # Enable JIT on riscv64 explicitly, since it's not activated automatically via "known arches" list. + # Update 128.1.0: Disable jit on riscv (this line can be blanked to disable by default), + # bgo#937867. + use riscv && mozconfig_add_options_ac 'Disable JIT for RISC-V 64' --disable-jit + + if [[ -s "${S}/api-google.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-safebrowsing-api-keyfile="${S}/api-google.key" + else + einfo "Building without Google API key ..." + fi + + if [[ -s "${S}/api-location.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-location-service-api-keyfile="${S}/api-location.key" + else + einfo "Building without Location API key ..." + fi + + if [[ -s "${S}/api-mozilla.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-mozilla-api-keyfile="${S}/api-mozilla.key" + else + einfo "Building without Mozilla API key ..." + fi + + mozconfig_use_enable rust-extensions thunderbird-rust + + mozconfig_use_with system-av1 + mozconfig_use_with system-harfbuzz + mozconfig_use_with system-harfbuzz system-graphite2 + mozconfig_use_with system-icu + mozconfig_use_with system-jpeg + mozconfig_use_with system-libevent + mozconfig_use_with system-libvpx + mozconfig_use_with system-png + mozconfig_use_with system-webp + + if use system-librnp; then + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment + mozconfig_use_with system-librnp + else + # This controls the backend of the bundled librnp. Choices are "botan" and "openssl". + # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp. + mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan" + fi + + mozconfig_use_enable dbus + mozconfig_use_enable libproxy + + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme + + if use hardened ; then + mozconfig_add_options_ac "+hardened" --enable-hardening + append-ldflags "-Wl,-z,relro -Wl,-z,now" + + # Increase the FORTIFY_SOURCE value, #910071. + sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' "${S}"/build/moz.configure/toolchain.configure || die + fi + + local myaudiobackends="" + use jack && myaudiobackends+="jack," + use sndio && myaudiobackends+="sndio," + use pulseaudio && myaudiobackends+="pulseaudio," + ! use pulseaudio && myaudiobackends+="alsa," + + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}" + + mozconfig_use_enable wifi necko-wifi + + if use X && use wayland ; then + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland + elif ! use X && use wayland ; then + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only + else + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3-x11-only + fi + + if [[ ${use_lto} == "yes" ]] ; then + if use clang ; then + # Upstream only supports lld or mold when using clang. + if tc-ld-is-mold ; then + # mold expects the -flto line from *FLAGS configuration, bgo#923119 + append-ldflags "-flto=thin" + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld + fi + + mozconfig_add_options_ac '+lto' --enable-lto=cross + + else + # ThinLTO is currently broken, see bmo#1644409. + # mold does not support gcc+lto combination. + mozconfig_add_options_ac '+lto' --enable-lto=full + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + + else + # Avoid auto-magic on linker + if use clang ; then + # lld is upstream's default + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld + fi + + else + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "linker is set to bfd due to USE=-clang" --enable-linker=bfd + fi + fi + fi + + if use pgo ; then + mozconfig_add_options_ac '+pgo' MOZ_PGO=1 + + if use clang ; then + # Used in build/pgo/profileserver.py + export LLVM_PROFDATA="llvm-profdata" + fi + fi + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + mozconfig_add_options_ac '+debug' --enable-jemalloc + mozconfig_add_options_ac '+debug' --enable-real-time-tracing + else + mozconfig_add_options_ac 'Gentoo defaults' --disable-real-time-tracing + + if is-flag '-g*' ; then + if use clang ; then + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*') + else + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols + fi + else + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols + fi + + if is-flag '-O0' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0 + elif is-flag '-O4' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4 + elif is-flag '-O3' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3 + elif is-flag '-O1' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1 + elif is-flag '-Os' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os + else + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2 + fi + fi + + # Debug flag was handled via configure + filter-flags '-g*' + + # Optimization flag was handled via configure + filter-flags '-O*' + + # elf-hack + # Filter "-z,pack-relative-relocs" and let the build system handle it instead. + if use amd64 || use x86 ; then + filter-flags "-z,pack-relative-relocs" + + if tc-ld-is-mold ; then + # relr-elf-hack is currently broken with mold, bgo#916259 + mozconfig_add_options_ac 'disable elf-hack with mold linker' --disable-elf-hack + else + mozconfig_add_options_ac 'relr elf-hack' --enable-elf-hack=relr + fi + elif use ppc64 || use riscv ; then + # '--disable-elf-hack' is not recognized on ppc64/riscv, + # see bgo #917049, #930046 + :; + else + mozconfig_add_options_ac 'disable elf-hack on non-supported arches' --disable-elf-hack + fi + + if ! use elibc_glibc; then + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc + fi + + # System-av1 fix + use system-av1 && append-ldflags "-Wl,--undefined-version" + + # Make revdep-rebuild.sh happy; Also required for musl + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags + + # Pass $MAKEOPTS to build system + export MOZ_MAKE_FLAGS="${MAKEOPTS}" + + # Use system's Python environment + export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach + + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none" + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Portage sets XARGS environment variable to "xargs -r" by default which + # breaks build system's check_prog() function which doesn't support arguments + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs" + + # Set build dir + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}" + + # Show flags we will use + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + # Handle EXTRA_CONF and show summary + local ac opt hash reason + + # Apply EXTRA_ECONF entries to $MOZCONFIG + if [[ -n ${EXTRA_ECONF} ]] ; then + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!} + for opt in "${ac[@]}"; do + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--} + done + fi + + echo + echo "==========================================================" + echo "Building ${PF} with the following configuration" + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do + [[ -z ${hash} || ${hash} == \# ]] \ + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}" + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}" + done + echo "==========================================================" + echo + + ./mach configure || die +} + +src_compile() { + local virtx_cmd= + + if [[ ${use_lto} == "yes" ]] && tc-ld-is-mold ; then + # increase ulimit with mold+lto, bugs #892641, #907485 + if ! ulimit -n 16384 1>/dev/null 2>&1 ; then + ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources." + ewarn "Please see bugs #892641 & #907485." + else + ulimit -n 16384 + fi + fi + + if use pgo; then + # Reset and cleanup environment variables used by GNOME/XDG + gnome2_environment_reset + + addpredict /root + + if ! use X; then + virtx_cmd=virtwl + else + virtx_cmd=virtx + fi + fi + + if ! use X; then + local -x GDK_BACKEND=wayland + else + local -x GDK_BACKEND=x11 + fi + + ${virtx_cmd} ./mach build --verbose || die +} + +src_install() { + # xpcshell is getting called during install + pax-mark m \ + "${BUILD_DIR}"/dist/bin/xpcshell \ + "${BUILD_DIR}"/dist/bin/${PN} \ + "${BUILD_DIR}"/dist/bin/plugin-container + + DESTDIR="${D}" ./mach install || die + + # Upstream cannot ship symlink but we can (bmo#658850) + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin + + # Don't install llvm-symbolizer from llvm-core/llvm package + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die + fi + + # Install policy (currently only used to disable application updates) + insinto "${MOZILLA_FIVE_HOME}/distribution" + newins "${FILESDIR}"/distribution.ini distribution.ini + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json + + # Install system-wide preferences + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref" + insinto "${PREFS_DIR}" + newins "${FILESDIR}"/gentoo-default-prefs-r1.js gentoo-prefs.js + + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js" + + # Force hwaccel prefs if USE=hwaccel is enabled + if use hwaccel ; then + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \ + >>"${GENTOO_PREFS}" \ + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js" + + if use wayland; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs" + pref("gfx.x11-egl.force-enabled", false); + EOF + else + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs" + pref("gfx.x11-egl.force-enabled", true); + EOF + fi + fi + + # Set dictionary path to use system hunspell + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref" + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell"); + EOF + + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it + if use system-harfbuzz ; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref" + sticky_pref("gfx.font_rendering.graphite.enabled", true); + EOF + fi + + # Install language packs + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') ) + if [[ -n "${langpacks}" ]] ; then + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}" + fi + + # Install icons + local icon_srcdir="${S}/comm/mail/branding/thunderbird" + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg" + + insinto /usr/share/icons/hicolor/symbolic/apps + newins "${icon_symbolic_file}" ${PN}-symbolic.svg + + local icon size + for icon in "${icon_srcdir}"/default*.png ; do + size=${icon%.png} + size=${size##*/default} + + if [[ ${size} -eq 48 ]] ; then + newicon "${icon}" ${PN}.png + fi + + newicon -s ${size} "${icon}" ${PN}.png + done + + # Install menu + local app_name="Mozilla ${MOZ_PN^}" + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop" + local exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + if [[ -n ${MOZ_ESR} ]] ; then + local desktop_filename="${PN}-esr.desktop" + else + local desktop_filename="${PN}.desktop" + fi + + if use wayland ; then + use_wayland="true" + fi + + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die + + sed -i \ + -e "s:@NAME@:${app_name}:" \ + -e "s:@EXEC@:${exec_command}:" \ + -e "s:@ICON@:${icon}:" \ + "${WORKDIR}/${PN}.desktop-template" || die + + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}" + + rm "${WORKDIR}/${PN}.desktop-template" || die + + # Install wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}-r1.sh" ${PN} + + # Update wrapper + sed -i \ + -e "s:@PREFIX@:${EPREFIX}/usr:" \ + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" || die +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature_header "Optional programs for extra features:" + optfeature "desktop notifications" x11-libs/libnotify + optfeature "encrypted chat support" net-libs/libotr + optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas +}