From d15be4fe2ff3e70717117a938dbe5a11cec60a7b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 12 Apr 2023 11:41:02 +0100 Subject: gentoo auto-resync : 12:04:2023 - 11:41:02 --- mail-client/thunderbird/Manifest | 66 ++ .../thunderbird/thunderbird-102.10.0.ebuild | 1178 ++++++++++++++++++++ 2 files changed, 1244 insertions(+) create mode 100644 mail-client/thunderbird/thunderbird-102.10.0.ebuild (limited to 'mail-client/thunderbird') diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 5abb305c6e8b..4cc8944e3201 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -5,6 +5,71 @@ AUX gentoo-hwaccel-prefs.js 162 BLAKE2B c5f2dfb727081e2d538c262f12c0cfdda31cbda5 AUX icon/thunderbird-r2.desktop 882 BLAKE2B eb9c2e381b67319d9cd53f26e9b406f55de86b716b28a3df6470594a612e07acda4c7dcdb48b6d55930972592f7f01afbbf14f09ccc4b20265d3c18554a01a2c SHA512 689c9fa5c37a1e6ee80a3dfaebec2a185d91508537c35ce2fb35d13d89b16ae0cf3c640c3115a52c0e4b7a7624aee6a8f8c52679a0073c94dea25cc779ce624b AUX thunderbird-r1.sh 2896 BLAKE2B 140047417b24e959fe6388c4913457f8e3e786158b7394abf7442b0d2e83de21238e58983845a23b855e1aab60c9289e1a12af430eac9a8b2d9929da97de2852 SHA512 f9b989152a8a3ac274033722c77ec19374085654ad6c85ea4db6f8af8f4b2066d6d9f82b610be2db341c8ac867547f54f806ca6571258ed98dd9e2527d21b357 DIST firefox-102esr-patches-09jtb.tar.xz 20492 BLAKE2B d5771a9d665cc53ceea0222d48bd73cb0b8896d70aea88fb70744d29f1af0e43f148dd3f1269e03e04a63949e1d50205ba795bec9f4a55d3261e0a2ae8c078ee SHA512 dcfbe583a5f84eaecd506f836043a4a4811bfee9d9cafbf47efce367ee2ff6463a7dc223e78410a3e5b30201fbd62627317dc74c5ebd1d6f3e275105655f29cd +DIST thunderbird-102.10.0-af.xpi 556850 BLAKE2B 831a4dd9888298acb5e1dab0cb0eb1ab19c4fc21196fed7fe16996a3c97460859adb5aa851312c8bf243e090a7132c0923c2546994a898a62c39cbf90e722388 SHA512 a634335728a4774e0eb8f9d4d4832d283c7a3e9f25b1b0c1c7fe2610c7f1772d9896d1c0fbeef57d4d0d6285a9151b4122a324e3e1624889950a7d7c7a03ec1d +DIST thunderbird-102.10.0-ar.xpi 666812 BLAKE2B ae79127683f80b58cf3600d232df35168cd3fe44ce4332467b012eafe90ce8e051c457b354184429c91d34d189788ca6ffd9801ab5920c87f7bbfd3fcfcbd770 SHA512 d04cedeb000a028faad9a6e68bed0f83fff48a7bbef229ffb119b82eccc9199e3981adcb2fc34ca85e2a38b25ce2b163cc56d923d71e7a835aedabb2c50d5d15 +DIST thunderbird-102.10.0-ast.xpi 572267 BLAKE2B a6b10b58eb850dfacba9a64fa33740020aa323306b327a588fa6a0fd39dd0fdef2b9e604e5120f02291fb0bc83ebd2bfffb12f0114db46418cdcc2c96635bae0 SHA512 68db8dd191eceb4e3721242dafaf3f1de1cf371cc22804fc07ad0e8f114a0402941cd2b3e3eeebd52d9a3dc8335593189f8ce080afdb04a87db615364b1f3372 +DIST thunderbird-102.10.0-be.xpi 701892 BLAKE2B 16a47ad7f209d8922c58f14bc710c8e28885f33b0466d6b623b61e0e7d7c04757b9be272c4f127a3f7f96bb0bfe4db6e9e861bdc6d04b4f40db3ec0a686fffb1 SHA512 e80f7e9facc58730b7bc1a9991b9aa5efcbe032f73808a34c11f61d47d4e443d6e1512c4bec25e83ca560560acb5a89e46b226fba4f93de786b02a40db53b28c +DIST thunderbird-102.10.0-bg.xpi 693378 BLAKE2B 94729dc5963f5772d156dcc51e5ca4de595f8230d304ac52f91a64c69191452069b0007718c9f311ec25b33dae180469535bd9ce2061aa8b9a4b8c9433141c07 SHA512 592aa1661385148741073f7ef29aad344ef0abbeb5d973c55b1f0f958467fd0b927a3aa600d9270cb2130962ca403b18679a2adc69070c9a0d8eafd9359d553b +DIST thunderbird-102.10.0-br.xpi 626473 BLAKE2B 883ae04ba25ae23cd491db4e352c0f12554364976132058c945b023b6ac60c3b6bd73547505d4f066d42c8a795b10b132d942dcf01455d867fb96fdce53f1cb3 SHA512 826ca679084a3401af1055352334f8685c2840b2a768c8bac4236d779eba420a480b65932fcf795e72733ef85c0dc7006b69d3646a5a47f50577da6297228ea1 +DIST thunderbird-102.10.0-ca.xpi 651368 BLAKE2B 3ac3570fbda54e94135ea733a4a5a80c0946d6b1454b5ad3ddbd97e2b83cb2f269117604037054297d530ef82d6d1145bfb112ff263dc98e2ed7ab5fec11b09c SHA512 21f60f67e1daa2dca6f0b7926475adea8a81df16b38be8662ed8df802163d5bbbe5fe4de2e7a77e4ac8a4b394f23c8595643902800a176378fd6e92312e250d3 +DIST thunderbird-102.10.0-cak.xpi 651758 BLAKE2B 3743cb688d48482bfb16364585d0f8b15e47207c0bedb1b9b76be9bcdc7fb00fcf2783a892d2f9c0eefcdaf59b9e46ba2b88785d474dca83a915cb8dbd89a1dc SHA512 0117728de5e5ed3c1312532c7e6704e33c705f8901527a75d52c1cde1173f58e23ece58bd45d6fe0d68e607eda98a302801819e43ced0d262e9eb110e3bcdb08 +DIST thunderbird-102.10.0-cs.xpi 728626 BLAKE2B dc1f2e5db97fbdf60d695a6dccff33fd7c73a4764a3e009175b83be8af0755bcf6e945c879d91f1f8b7dd8d39acc67805f4bb067cc91571a0e7564f4d85b2da3 SHA512 3ed996481b5fddcf1d5c972e37b49bea298454cfe7e72339c632a7afe91fab722ea4e91c9d3a646c91f3f0474a403f6a4f9a8c83e523528123c93e7918b96fe3 +DIST thunderbird-102.10.0-cy.xpi 705578 BLAKE2B 3dce77d7832552921c724eed23d87d8a80aa48ae3eb8b9f595aeb92f365132aa19695e0443257abcfbdf5bd972acdb20266b8d56475442560b1bd17ac151da4b SHA512 9869539f57fa3f9d93432c414e0679e3e4329919c86459cf1a57e1ddc6f464a0d7f2edac90a9a53e6e40a64baf2b30cb5c551e3784e4244913ff17b3245df1d3 +DIST thunderbird-102.10.0-da.xpi 685257 BLAKE2B 684498353c6cb33740094c0ae497c997550772383e9c0fa2d5b515ac7d75448d9625120070ba714f254b38418ddd69457c0c15063a23e5b3bb4f98950039e0a0 SHA512 a03e05972af42b16383d63c951e65b76b6d9d8ffc3d5f773d2961bfe31fff1bcfc0650aba1a7fc877b1b8ac596726b021b664405700c0d274827606d2084b2fb +DIST thunderbird-102.10.0-de.xpi 717946 BLAKE2B 402820316d61e83db040fa45d847872902cc4406884798ed468a6114f5ba451917280442125207a43834095a876ff94946bf7b0612963ecae0623a092ef6fe88 SHA512 453ac36023ae212c51be9a3553091ede9625934261400f705d6079aec24f6e14fe61a52e12162447509ec036e40c5b2f3151cf1b69179078dab3b0294df4db85 +DIST thunderbird-102.10.0-dsb.xpi 737086 BLAKE2B 693d712ac190e4d1c8fd0d2c13aed5d6a38052e230a84ed0d6f99b6bb9befed574147fb7c192d9ab39da3fded1787d657201065bcf5e2c686e981ac733999209 SHA512 5978f189069ca5303272f91ed857d391cffdb5fa87370f53c7c3a3d41cfcf274740ac6c3131e9d7a700a642837886145d91756cc5a42291e9840ef333af41399 +DIST thunderbird-102.10.0-el.xpi 840815 BLAKE2B 9553d0d1bae95030f7f55c9751c554dfff88940ba34ec8e3685228634c6868806e7335a6bdcef89dda4b4becbeaf796caa4661c0d645dc38a72bb7596b52c4b6 SHA512 ce30c946b0e5168513fbe2bf51b801039c2587189985964e210bed120dec2a096b0c8728e581d3371455c0f7b7c2ece435b86a4204d9438c94553dddff577d8c +DIST thunderbird-102.10.0-en-CA.xpi 659095 BLAKE2B f1be6427f5352dff5e647339cfd7cb264893ca2447e8a122c585c83638f9bd9c54cf6d3a5b015d75d5f00c8eec9596d4c7823470c77e2cef8c25d77ddcb17a37 SHA512 4c0839fd14ecb93a73711d72962e05d366ed69b0610350c7e65e400273215a75ffee83b7165fed1f6f8a0a7f4fc360f3e40f567aaa44682ed3bebb2461134c81 +DIST thunderbird-102.10.0-en-GB.xpi 665009 BLAKE2B 6eeaa3a76748155a199b8bf23e5abab65070c82db5e0e0b647cf935d70893ad86a73f66865d1487244376a1dfc9172fc763cb5e83340259cad325f41c306adbf SHA512 724264d6d1819e38763c751734cd8b7650249ac6b518b9878ba50a69e76b587c39582512de948fb58acd21be560d143b7a89c8608c7ec6813631e9b2847f6b80 +DIST thunderbird-102.10.0-es-AR.xpi 717277 BLAKE2B 05e9c75b67ee1e758880508dcc0f21286079c6ea760ad384cfddbf9b2302c7299356ac1ba47f2dfe16024202a3043fa279696ad75c79eea64718f87bf7a87621 SHA512 0420d74ff4042cd7061be9a582442df3aba70e40e7312e8a818a8cd16a41a855441b3fbfd3deb15b8825497055b569067a9287d1ac74f544a7e3af443deb698c +DIST thunderbird-102.10.0-es-ES.xpi 677482 BLAKE2B ed810e8b3b16e4ce3d11d936d9aafd83493dfce497d997f00749dadfbfa0878322eb686501cba757815d0cc8f4249eb36ce10fca123c4db8a7322f8cc22921c0 SHA512 e633ef6bc2f04ee7c67b06ea7236e17d9918d8fbb8d532104f7f1fcce1e51534692ce4718765c9bc098e3d783c925a01947eab29953a23687b7d71655cfc3c58 +DIST thunderbird-102.10.0-es-MX.xpi 719710 BLAKE2B 827e69c50230a3cb538c3d8984c15bcd49579b708f4d196385e6f58a69255c03a9633abedf8d37cc5890fe350f418cc824ad1e4d9603929a4b184013639ee63a SHA512 28baac19eb70fef19a1e5d4a063e3557e70a58ec5a6db0168ed7cdf98c1fa985ac5115e0de9bd54c208275396c54f6884a50f9c09e22ad37465c2ccdaabf0497 +DIST thunderbird-102.10.0-et.xpi 676678 BLAKE2B b76470eef92fda23643412224c4b8b40f714362fa417a59e0dc05564dddb7afe4c8cf3fc434e63a9c0aebe3f590892a9374b0deb507ec052376ee3f61c11cc2a SHA512 cfee195f369cc310f56dbd9e860a853760df3053c1acda5d63f1eb6dedb590fd81d99d7a456520e568a4a686f1549118cedc7d97d001661350062715ff95e8e6 +DIST thunderbird-102.10.0-eu.xpi 701829 BLAKE2B 7294d7f00edd3c3663c052d9c8680827a34ab4173dc5203f42201534a03e0c15c60099b072a382675445a76c50f7e2e2cc43409ca9ce20f269fc97e7d7098746 SHA512 ca149b4d8ec53a859cd4f998f90af0dc9301bf92833b3ec7ed5fab2bd0b8e70d365b88f298a4af265799f07f0f12f7f6d68eda2c507163217432d1a67138c3bf +DIST thunderbird-102.10.0-fi.xpi 693488 BLAKE2B 5332bf0a430cd2c49bbd929d6f040458cb50f5267f28c33b8abbc83cc67e61ca9ff967707964c9d953e9a59706246ecf4dd47605ff4c17157764db926328972b SHA512 9ae093446f47e33c260eca78f6bbc446f938aca8ede5e90c967e4a61016cca7c770483044c7a1e6dae00deba83e7164bf6f3eaaa6878a90043c9d5ec4fa7a2b8 +DIST thunderbird-102.10.0-fr.xpi 730319 BLAKE2B 614da050d68998c04a5cf4cb62aff0804e530cdb15cd47159df46b03c07e987af59264e5ac728e5e9b0d4a8673c6641c5080a5e0e74918b04fceb89791460a62 SHA512 47994ec8029d400ad2b510b57b18c3765a86e7976974d0512807b977c3f166a5def83e9477f66f8750dc32c75c93f9ca7b5fe1e7a9eddc730d8b3b01a679c881 +DIST thunderbird-102.10.0-fy-NL.xpi 711992 BLAKE2B 3c59969cf929d4f845ba4249376c01a771f43c0833ec16c911149979e1f4677e4b4639bfbfc003a7e511a1aa9c3370234c5e4c1de9eca735eda2c52c715d1ebd SHA512 3cead47c6b0cf1f65e772c3896929078e33bb3c7b998a6087948f3ccf1e28543e05abdc8f8ecac054b8d5f7a86a6803d5bb7aec9388c6e50a87672abb577587b +DIST thunderbird-102.10.0-ga-IE.xpi 614538 BLAKE2B cde421403f11befc04a1928e401883ba2caef0f7940aa5f9e9de51d3290be0db44391387104e8b0e0d1747c63612c9a4da2952ada8ac405d4af68de6b577c766 SHA512 e03b4fa6a74b5f116f2e202257895bbec7b04316d959d48f8c8f5ecebdbc6127f05ef6f31886ac17783a49d2459fdd0817b5e1f9bb4a291458a2cb2a17d5df17 +DIST thunderbird-102.10.0-gd.xpi 643578 BLAKE2B 1fb0fe33a217ef7dc7db82a454806d243746271ee3691e8c3475732dc905e92d308749bb0b5ff53330588f114d8a5e8e4b275097a8e7a2933251176d7a001227 SHA512 f9fd0b8ce36d3aec929c64220fc571f439290d623f17918765b73494add3170617f26105303bce86256bcdcd5c987a4c29d94971c7bafe032ad0ddd96cdea7c5 +DIST thunderbird-102.10.0-gl.xpi 673004 BLAKE2B f7794ee6dab31229becc2c8b5f87c4e8d73cfaec4ff8d71383e96df4634c4459554c4900d13114b55f2217bc9adcdc94783b7304a0ea7649d6d91255c2acc898 SHA512 b915dd0055435bc30e6acac9112fb199b30fa542dde3814c0df8229d2a8061cbef8ac875c0f0d2550e414160e55b0cb1058da78861bc5ad3891f19c2fbaefd66 +DIST thunderbird-102.10.0-he.xpi 676371 BLAKE2B bee06384e16acb26e31be81d9cc9e18b7a9632c2b26f9990a32207ba4ed4a4b892c2b64ce92d112e2c56ed0c6ddc4be92333a4d967cc6d034f1f0c6cb00f04a8 SHA512 7e40c76423637162b321fbe61d742301bb1815ca949ba4faef27500608c1190179b9541cf6e38e904639154af0a13ad203dfd542f6e5e4a7d5257cf4db111edd +DIST thunderbird-102.10.0-hr.xpi 677721 BLAKE2B 9bdc2ff09fc9403774991fc7c81f20119384edda83bbc2eeb554835935eca241f69059894213276f8613c6b866026905cd70fe9854dc37ed6bcb1f217939c6d6 SHA512 c71e8ba49aae3a7e866fde49fe4120b0d32a5ed307a358d0bf7f88fb66d86834ae8c30db1b5d3b813f302457723193b7dbfe63569cde4639960c1c8a6943530c +DIST thunderbird-102.10.0-hsb.xpi 736542 BLAKE2B 68db763511ab19dd66a345f3f816306f19b29c66a17f5532057f604b35ed9f611dd3ce59de68326837a5a4f2e0b4c14b05042ab0d87e8ab347c066fd79f66af4 SHA512 d394cc8ca5019c019f7b7e361836b27bcffc5189f8e464b8c435731b7031443e7102e47f36ad332335001ac4b3f329b74518aabe096a5e88b6edb5a9344f9d3a +DIST thunderbird-102.10.0-hu.xpi 741202 BLAKE2B 3112ef8d381294baa569a8a3d4a1ae060cbfc2c4168de964959945f1d5e8e31733a7c30db49128393458416dee798347c6abccc2919bd45f3f6d5feccc3e22fe SHA512 4d3ef3bf16686c81b1334dba1a43f723743f8d0362d5dc669e75d201d0de5260a6532b25e40a8754c7ffcf3040fc86f027ab9e5cb54d5e62092c32448a2c9ae2 +DIST thunderbird-102.10.0-id.xpi 653193 BLAKE2B 1aa1fa11006d0e5e6e892bc52a2312150f1f20d8d3c539f6ae422f404be58d10157bb03dbec267dc6c91840f723826704d052a1c2a3f27aa52f14fb6437957ee SHA512 0239bfea414aa1b0432c00a191d5f3c226a677b95a568536713c7f215c176dbbc2666f0dac6a92bbf357f3634b00993193c9fe4096aaf6a4a71d78324fd09c8c +DIST thunderbird-102.10.0-is.xpi 706394 BLAKE2B 2626074b050f604173088b36d32bbe746c69f7fd8d6454adb82c7fd56739510d69b1c9d6f401899611d31048dc157165e79071c8959b81b725ad877913270402 SHA512 515d60602497e8ad7296d57893176ef762cd56fed38c560da09a5631ff3c2075d022476b154bb1fa29c425426b8f911b038c6c4b295f015207b3aef7255ac8fa +DIST thunderbird-102.10.0-it.xpi 639988 BLAKE2B 8787e304c7e2f2b79db5eb39c6322b9c3f1415c91298f45dba3a7b7f760ed233c2cf7403034c993ee653d9b646ff5ab87253a31ec910107f6713bbd974b4913d SHA512 dedfedca6073e343f4aeb0fc61d5b0eaf283c4d66bff54c454c050a410e6ebe3417a25f70314627e72e5dd67f7d14c5a7b4ffa3ca2f8acd9127e610522562458 +DIST thunderbird-102.10.0-ja.xpi 781908 BLAKE2B 79b8651795b6f2cb3fc6a0caececfaa86d3e33c91a62cc6d7626477986223d5ba1d73442838accc36800ff5b5679579c034bf839608561bb18372ec614ed2896 SHA512 6b2a6ea08fd5f30ef9b658f15a630a1023d2c0110dfe08247a6ff7546c7cfd3944575fe3d9e86bc8cd06be28f2cdba1d7752574c2c091110eaa7527215fae8d1 +DIST thunderbird-102.10.0-ka.xpi 769804 BLAKE2B f655d929b4dd514d8379b92b81bc109f6be373868fe58766442ee76781e545e2810f8fc6551a2cedb6b4022172d6867f39f6da80fc1f50a08c489c339cc2a95e SHA512 0d6356a8a52c72a91dd69582b3fd762b4054281fdf724f42e0cd11b02a7d90c443870547e81291431fe152772a6c212c6dcb397ff16c634040eb0619a77aaed1 +DIST thunderbird-102.10.0-kab.xpi 702704 BLAKE2B 953bce81251efc96b4c870fc0690cf94262779db9690c6cfc2cfab760eb37831cc935d2b8358d5b98e202a87e72af5524f6a3c160bddd4e6e4fcdf24a0ff7cf4 SHA512 95473fef8d000aa827028b6c9bc92e2a375e3cd9462604beadbb11b697419f93fe541e26248cc300380aa38d8654c4de9dbf269865a053e09a27021d225d2b4c +DIST thunderbird-102.10.0-kk.xpi 810968 BLAKE2B 664deff365d19d4aab5a98ab27fc5cd5ccfbb8581f826197bc3f92200ee58a3509399685b0157298b99f01528075dee81d55d478fbeaf2e28bafaa6589452bf8 SHA512 358550d17acb79696a16880231893db8f56b509d7400090395d5f831dac5f06ceef85e784fc51da1bd1ed1bf824530ea9fe18ea75b2da3895d53796cdd483d00 +DIST thunderbird-102.10.0-ko.xpi 716822 BLAKE2B 57991989130c9a9f015c5fb415194d4e351216f645ed6c99dccee650843d84dc217ebe7c9a4b2f98bd4fcd29ee0b3e29775dd5772004e61a27704a9a586d2ab1 SHA512 d4ad8230089064261cdd713544d490ab2442d04a4f912d3bbc8be49458dbfbe20056c6cc7040cb8ce7dffd3c3c7f8011a9ee371a5dec1f21c20e585f4d5306c3 +DIST thunderbird-102.10.0-lt.xpi 690857 BLAKE2B 7116799f7a1c1c3c0aaeaf4c9e3a8c3f23cb9d883a1a32fb65f0385bb25a8a28808e50e9384c76aa9819ddd5b02aa8cbffe5b61f33c0bfc8babd8222ebbed4af SHA512 19b0fdde2fc29883f09ed44903ca79098dc7ef2d767bf79efb120f0454431a52998727a8d352ee3c9a7e0eea6b75bf6bae3f7ab2ddbeaa9590fc04b775db613e +DIST thunderbird-102.10.0-lv.xpi 617745 BLAKE2B d4276bff863afb6805ab65218f913b5820da4ea32aeeda4f7fbef08f01fb3dcafa185f93267ab6c22274027275e2157cc3e969f7ea435ef5fbc7e7621f17dfee SHA512 7db0ea652fbd285f09665e8ea16157b992be8f7b750573da93c96235315b9b1b4a48719f8cbffaa47d486f0b2b435900f15df29e17e29dec152b63f4ab615f69 +DIST thunderbird-102.10.0-ms.xpi 577760 BLAKE2B 791fa7df39e9b9f1175d238c38ea6d3a25d855fea3e22109346aed631a077ffe855785199cbb677fd818b0d39673b88615bc00f0394820a4667ad836008ed885 SHA512 2be7ed9b8f89ba16a957541fb527f057a6d01565926774d9c471c1d5a697d74f022ad6925ffe11718e042fcfb63414eda9046a04f61d47b7dab43801eaa68bb2 +DIST thunderbird-102.10.0-nb-NO.xpi 662682 BLAKE2B 2ca028e7eec4a0df45c1bc8ffa5305a2889374bf9886de6494fef691ab2f5233905545ff4210a5dcc324ab582ac6de63db39476470893cdb80cfe9bcc7d59be0 SHA512 7e372d82a8ea99ead60274895c7d0a38b77a5490c600aaa04fe2ff881349acddb7550ddf3f431e233d14d116d254c021567c623ca009b97756cc56c274c8ab45 +DIST thunderbird-102.10.0-nl.xpi 703277 BLAKE2B df955798d0b6bfcef64b6a91c13300d688039e354f5b0a4c7e40888a2025c8f69e012cbaa062a6ded9e2cb6f225f16bf6f97b73e249ce246d4a223bf3f819b91 SHA512 c97455e12ca132b1541a04cbf6ddc1c255c52b9245976a2a3a819d9caaca31e47ca143e984e70154e7f116be7e9d3bf131b818fc2fb8a75bd50e9f0dc5fd635f +DIST thunderbird-102.10.0-nn-NO.xpi 672833 BLAKE2B 7648cd1a17b287f6d012ef5105b95faf0e6ce346851ddd2313df817ccc5a588256a5361dabf93ac727de5cc61e89c3911e5aed893088afdeecc6985bd9b15dba SHA512 3f114db0be45124b685c577951b6407722bad3abb17dde28e0a9e198cc11100573d9bc58f8649e8035ee46a44a6ac8a418b64fb6e78cc2e1d257be6fbcbdd5aa +DIST thunderbird-102.10.0-pa-IN.xpi 668031 BLAKE2B e6ed44f21fccbadabffb9f85a1306f9bcfecc9b6f0d4f2bf4991da4ce14508394c76c06b55e705f2bc6dc0dc10970b9c14322d20287aa52a643c42c055406cab SHA512 df6d62b22ecb6a0b83ff2bcb415e24486f9e7ecd169884d7136eea584f123b83b8081469206dbcb9aaec1f6be0abd381a5a050ae69c7a26c0414f15032c758ae +DIST thunderbird-102.10.0-pl.xpi 716231 BLAKE2B 14073b514851207c02ff265283fef8be34bd3c15d10a43ecf609729b5f901d49471db77ffdd0b8d4f6e17a13d45bdbbb5b3a75fac3906fbbeb3fc3ef9dd0581f SHA512 40c98f5557d4a3d5648b5d65cf6df5207217483a817f35c8ba974f8ebe4032e045c4e6cb51d72f26fbd38a6cea179e3ab404cc02de3aa0f8690d9587198025f4 +DIST thunderbird-102.10.0-pt-BR.xpi 711152 BLAKE2B 7686a7f480dfb8c88921f1add5498dcd5f91d99d67dd0c6b9b2412f10d974e5eb08cf61ac14fdd37c6c1f9f3b82a99ebd82e3ac762d40189f40ccfdc29565061 SHA512 bb04def5d8f595734a09a95ecbaaf4c92e4e354133a19635ab81c2fc4ddaabc8f4655bda3a08a7c849b1aedc363aa553f8ad1a37e5c590d6ec0afe4d3ef76dbe +DIST thunderbird-102.10.0-pt-PT.xpi 686911 BLAKE2B c208622c77dddb0b3da5fc216d3166ac2d5af864f7b7b9f5658953da776032bfe66595d236adf10e592e58e51edf49533e8aa16107c5750e5925f6cc4e989160 SHA512 aa69f8d68051c0bec50ac1b171b1e5c21b6030463b5b4d1aab63fe53e02d5c8a599669c780d69a020652aea130ac5fcf9c24fd9a7c6a4a4475f46e60b33a8e3c +DIST thunderbird-102.10.0-rm.xpi 701684 BLAKE2B 6ed4fec862e16f00205439ca4308c1ae7b3decad447532b1698c828910ad7a03657a465c1f475b2c73549c3550dde8c9fa409a8071c9672a77229266e4b33b97 SHA512 318a2a2e62bd8494d217fc528c27ba4753ee45e99a655483f9fb25c7a13cdac8365be77a9ea4183ea263f4ee3946e0807c827ddd0d55eb9383f9f56fc864a17a +DIST thunderbird-102.10.0-ro.xpi 661284 BLAKE2B 4029e3946da15524dbd5402fb5fd941aa5a5377739597b20882304c0d19518d82fe51239ce7713ea06b8a2465d6686cbe6024044d36ee55ce08a87fe745189e7 SHA512 fe9a06a1865f4a624997e0a85fad8462dc49e46876f85d3b4458b965e7dee32e82dc657db99916598348533560b3ee387ad2e1a6fd693da7af7e9f20516af9d1 +DIST thunderbird-102.10.0-ru.xpi 827221 BLAKE2B a2a94074815b6311c5a97b2d325c55ad4174504a28b454d00b1379b761e3f9131cdd2f4a17444929b7f61d748bd48404045c9dfe87ac1652c36dbf762e9de2c2 SHA512 71926f5692e3b51ce77e4718739111427a0f32796f1383342fb0feaa7c7130ea3a1ad46941265140421a82999f3f7934b029904b67768b6c0c7b3a1f8c66564d +DIST thunderbird-102.10.0-sk.xpi 740983 BLAKE2B e6eeb5b78fbd2302ec7f30cb5c4ff0b7a514eeab84421a6f0f3b3a4ae28672e2cc21bb0cab684592e50e977020ba3a00f1e099fe155422c4b407b451fc2f64ad SHA512 178a87ea1dfe0817072967feb0c57e2dee4acae9df2f0c2edc5c4d006b5c4c12db82238a17958292beb72fd515d6ff7555422a92cf9130f588ea4c3dc37faedf +DIST thunderbird-102.10.0-sl.xpi 704058 BLAKE2B 732cbb0d47195884d025a599a59b3b45d8af2fd94c1ea729821254b3fb43d6e2c06698d4b91a2507c4d1ac546d7488490024e89cfd71d9c54ab9105db6c5c82d SHA512 ba88434111304ccbabcb33dc77f111d9c890054a1c485d8296642aa48e7e3f7d1c504f7870fc2fc57d302462f909cb4f4cef74dbf7b45b618ef89730dfb6be0e +DIST thunderbird-102.10.0-sq.xpi 726037 BLAKE2B c789a1004b1826ad144e855fe76723e950fd00e26a46be3346d399614b95a2f3c362acffe9211320b25347d8617c3f08d8a1d35645ecd4807af17c73aef83340 SHA512 89828bcdde5382f1ba2c72d02a2e3bc27a8e8a99f7da92694acdf301f10a5766ca5e1ef8f675df9bd1c4a6e8748a91f6dece7e432e0225368805ba6c91610a0b +DIST thunderbird-102.10.0-sr.xpi 720558 BLAKE2B 7e2937e1d079383c2072dad5ce2e59aded8cfe8eeb4f0b415a7f585f9d883d7fe867e3fed78739050fd303b7afe7de5560d3750d3f3d20af86b6df0e0f3c1716 SHA512 82e28f06b4cb75a4eb85fa0a6a8187cd9751d4b4a7c9460e1e2de302c5d8bf36bd616dd47c380dc652965a85cc53689dbc4f4864e2f19db87ccf3fcd07aeef35 +DIST thunderbird-102.10.0-sv-SE.xpi 706954 BLAKE2B e0f6370c374f5627a3077f572979434d8a063d8c80cd33ddfb2a5600a0be91b1654951625742e835f79c06b1b0eddbcf4c2b15b8ced03e03eca0ec18708e1fa8 SHA512 baa8fc6b38ccffa33f64e237ca69a834651f5da7626f5a86efe16caaecae5eaa1b85ab954c28fc94b3f4b17dc7cbccfdfd00ccdf2ce84783cd2f5d709727e4c8 +DIST thunderbird-102.10.0-th.xpi 758237 BLAKE2B 5f194e37bec690400861f1014c7619ca6faaa4a7a7c41e8a788dcf807ebe5e1cc8bae0c574afca6013fefeacce705644af0a717991f2c031f84b0322f84277f9 SHA512 f3bbf9a12044866ce91325df2ab55687924e9fc67b3a3e89c99d4dde57489fdda8fe36902356422d496419fb7a557aa1cd1f8c51a9c477fc0dc93d863e2ecbbc +DIST thunderbird-102.10.0-tr.xpi 720176 BLAKE2B 2edfe9bf5a7ba5ef0b99304a4abc970a025c2d77a4d21041e8b213fbda7615241cc955d1b4261e7e4fd119c476abd4823d2f2d4da7ce5fb3d7ba43ea4010058c SHA512 f9d75ba7a9be0fe4822eb3fafb5db4f5f404655591a13cb5612e11daed962c69d3957e443ef967794322e7cebda75973d2a966cfde3ef8f3a46091a5b5f1d1aa +DIST thunderbird-102.10.0-uk.xpi 818665 BLAKE2B 9ffd25b23f0ffd8858cfbbfc0ffe01b4eefeb46c3dfe25f739c2fd358eb076aae3c252190140c70cd31c95a663bfe506f6e914cfd4f2fab1cebd163ed6f8df2e SHA512 6276b2271b5c358848eb8b6238b80cce91a2341942a4dd8bf1d6cb34fdfbc9c04d10210dd0e9b7380b1d6d8dcd3199f2967645cde923c4cb1a6f3e789c1b7153 +DIST thunderbird-102.10.0-uz.xpi 593013 BLAKE2B a4c138318d6e80be52c432b73924755428a7293b507f1672353389828cf543b552e603eb62ef0aef8bcb61ce2333bfd3643489f601e20d97df67e0fa1b4264cd SHA512 b46dc4197fd5eea0bc108b65b78e64adfb006642e228e8aa09a93cb657080055c92fbd3c59374688b678b8f29f33669b26cf9e04f029d500815f0a13daf678c1 +DIST thunderbird-102.10.0-vi.xpi 745667 BLAKE2B 3aacd1499568d44cf30090b60fbf3ab1475d74489c955297337532264fed244ccb1720946b506d162cc3d37e953fddc3bd59c10c778d8261ac401986cc7aa445 SHA512 6989f7e63af1db69653cbcc81755470a8092761903340d5480bf00dc58b0252df55024ce55215d7ecff9ce6779673798e1cfe9580d7de554ce9b16aa004b953b +DIST thunderbird-102.10.0-zh-CN.xpi 739889 BLAKE2B 520724603b97d7355a9ae673bfa464ff1c0a912917fdc6129998d4ef48e2206a6555df3d835d3bdaffa112228c7ffa3c16f809d26fcb1d03f2459823dbd42695 SHA512 1758de279cea6ebe4418de5fdeb01d627aaa7527ebfe7042677c33820f029b1219bdc56aa16b4879e65ed7022b3382152fb160189f0ff8a9537e6412d07b63df +DIST thunderbird-102.10.0-zh-TW.xpi 748348 BLAKE2B e55698524f79262a23a7c1f008582f193015531f86243443922b4bb912b8fb1ab44841ed5d8591673ececf3ce629abc87dc5a3a0d47cceaf389a94c5f40c80d6 SHA512 cba5d31b6163fa7c5826931b91361332f05bb4c693e62756217b141aa6784bdf995889dd55b0c9f3fafd05452dd7a91135dc0a3c7db5c33365f9fc52fa515372 +DIST thunderbird-102.10.0.source.tar.xz 500949660 BLAKE2B 739e855a967ccedd6bf7c53cf406f3b66f38a173382c0a3b3aeae8a28d2cf472c3f5bcffc46a0c3a3f92ef54c79f3bb953123e296a3de938d3c815fce9c77522 SHA512 08d7908cbef48cffac2fbab857f8aceb9a7abd7c72d5e9c9dae8d3a3871846b6f0cf562c5b646ad27a0d79ac04b8605b123c5e1929f92afee4501344d1fbc5cf DIST thunderbird-102.9.0-af.xpi 556846 BLAKE2B 4f98b3d4db5a1a7c63438544ec6d661554057d68c091e347610a223459f480becdd345ffae53476dfb2b2ff7b61234f19e275185be886a390f2956a3326481aa SHA512 26cdfeecb18a14bfe01902987b9051b2d58b1f4bd85b45e90ca86eb2929c5387077b146f3bf681b80268bba2d048be15bc11124d58db1176ea2b6b487d9422c8 DIST thunderbird-102.9.0-ar.xpi 666812 BLAKE2B c5146b6f9b578385792f4bb24f08c406100c613618230b8c09b5c518453a57ef1751cbfed4485d9f3145a13674a2e21f7012a0d7ff1c8a9d7bf7810e492093c2 SHA512 1b4b2875783cb9681343baa268a6d9ec788e366e09e5e2ced5838e1e3083b664f771c5e788cfd1c80410ce029f46c70a48014024e41b6d98791cea95d4801daf DIST thunderbird-102.9.0-ast.xpi 572266 BLAKE2B eb7d8987f51f99694833304d0d86158df2c61b3c6c9cfea17dd8855cd98d8746449e67b98194d22da51ccc65b7b62c9ac66b16a9093e371d4557d067620dc234 SHA512 1f897917ac1ab4513040275d195c207fc60904691415b64d2cc768877f4a4e04e5d953d734c867700f5b32e614de6c57d6671c08f10e4c72d6c8b8d23682a07d @@ -135,6 +200,7 @@ DIST thunderbird-102.9.1-vi.xpi 745663 BLAKE2B 362a9cb76087b5058d13bd01b656252d8 DIST thunderbird-102.9.1-zh-CN.xpi 739886 BLAKE2B 80b2851545b7b81fc1e80e978b8fc3ef4596da70820903851174eb8925c4572df6242a946c6f7a9a694078d8d7c0bf1c1ad94993c853f695a2040d01e70f8cc8 SHA512 292a0810d8ba90017c5a2370197c883e77bed74270f3079fa8dddb8db2884b67581a2eb74dabeea9b375bf7d46e1f6233d21cd4b5a1c0124d8c1379ba430d309 DIST thunderbird-102.9.1-zh-TW.xpi 748346 BLAKE2B d55821dfb8c5b8321bc1dbbb0d609c63018f10cd6813c5e3827a03c9087fb32d07cef53f45abb651c8af8e593ed0061308c963378d72dd840e97446e68cc1c03 SHA512 d751cb5e9c9a9e103b5c79a16d295b44f66cea2753aaf1bdfe21f635d7a692d10f5573c5ee40980c6ae2625a6d1f35311fd62f6ae64389761fdfc8654e40b4ed DIST thunderbird-102.9.1.source.tar.xz 503181696 BLAKE2B b2f437489284105dce072b6a3816b3fad52fd4a5d4d7fd65284473896ef6f7134102fa71b77b62f2dc25c3135cc5c287471ab87add160d7437996904c76f4c87 SHA512 0a4aa344387d19ab6e8e70a08f27ea0e47e74f90e8cf47545870b7ef30b08babfae9be229b13bee31b6797c45683859ba54ecbc0d1e31c40f780851ae0c0a84b +EBUILD thunderbird-102.10.0.ebuild 34159 BLAKE2B 26750f2f77fa91012c8a0bc3fa966a04423e01ba9bd7e803af9f096ca9296aa1ac119dfec6a7d3e57ef513c4354596657702fabc94f3b228bd6984b2cca8edb8 SHA512 6e9576d27f09570f151b98c07c2ab57ad27d9a46d13476eeba18f74f06cab7857f3727f55091c9062c62d9e6bcbc3990c0c190c8fc3e80b92d02cb311ad4f97c EBUILD thunderbird-102.9.0.ebuild 34157 BLAKE2B d017fe1b984b0e0c1b12f47ac09e3eaf17d1c94f98b869605784fb90f5210fc7133944bb3a8d849d93444713019d5e453781c898d5f70e0d7519551fc5a3cbd2 SHA512 f75831c5dfcf67a6ce05e937f3bd00dd0f44e2448e931ea9ab6253f69d5a105cf05a6f039af8ebdd0cf02b56db96a143e95e64e52b4e7889aac8051159ff457a EBUILD thunderbird-102.9.1.ebuild 34159 BLAKE2B 26750f2f77fa91012c8a0bc3fa966a04423e01ba9bd7e803af9f096ca9296aa1ac119dfec6a7d3e57ef513c4354596657702fabc94f3b228bd6984b2cca8edb8 SHA512 6e9576d27f09570f151b98c07c2ab57ad27d9a46d13476eeba18f74f06cab7857f3727f55091c9062c62d9e6bcbc3990c0c190c8fc3e80b92d02cb311ad4f97c MISC metadata.xml 2139 BLAKE2B c348f9dc2bf813c386bc2e62782bf762ef4fdaf3f913cec41bbd115a7bac54b01852dec04e6f7574b24ea5cd6d9500f289109127cdac5887128b07116d6a6cf8 SHA512 09b0670e852cc954b5df5e846935d274ae180e4627d112104d5fedf2a777fda7d52d73cdfde9e50475d9a560ed44946d4c0682d52d793bbfb5f2e1b1e0aac608 diff --git a/mail-client/thunderbird/thunderbird-102.10.0.ebuild b/mail-client/thunderbird/thunderbird-102.10.0.ebuild new file mode 100644 index 000000000000..f4d12a7ec864 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-102.10.0.ebuild @@ -0,0 +1,1178 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-102esr-patches-09jtb.tar.xz" + +LLVM_MAX_SLOT=15 + +PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="pgo" + +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 \ + 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,whissi,slashbeast}/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" + +# Thunderbird-only USE flags. +IUSE+=" +system-librnp" + +REQUIRED_USE="debug? ( !system-av1 ) + pgo? ( lto ) + wayland? ( dbus ) + wifi? ( dbus )" + +# Thunderbird-only dependencies. +TB_ONLY_DEPEND="!&2 + return 1 + fi + + if use clang ; 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}" +} + +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 ; 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 + # 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 + + 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 + + # Clearing crate checksums where we have applied patches + moz_clear_vendor_checksums bindgen + + # 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 ..." + if tc-is-gcc; then + have_switched_compiler=yes + fi + AR=llvm-ar + CC=${CHOST}-clang + CXX=${CHOST}-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 + 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 + + # Set Gentoo defaults + export MOZILLA_OFFICIAL=1 + + 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-updater \ + --enable-js-shell \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-release \ + --enable-system-ffi \ + --enable-system-pixman \ + --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. + if use ppc64; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + fi + + if [[ -s "${S}/api-google.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-safebrowsing-api-keyfile="${S}/api-google.key" + else + einfo "Building without Google API key ..." + fi + + if [[ -s "${S}/api-location.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-location-service-api-keyfile="${S}/api-location.key" + else + einfo "Building without Location API key ..." + fi + + if [[ -s "${S}/api-mozilla.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-mozilla-api-keyfile="${S}/api-mozilla.key" + else + einfo "Building without Mozilla API key ..." + fi + + mozconfig_use_with system-av1 + mozconfig_use_with system-harfbuzz + mozconfig_use_with system-harfbuzz system-graphite2 + mozconfig_use_with system-icu + mozconfig_use_with system-jpeg + mozconfig_use_with system-libevent + mozconfig_use_with system-libvpx + mozconfig_use_with system-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 wayland ; then + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland + else + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3 + fi + + if use lto ; then + if use clang ; then + # Upstream only supports lld when using clang + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld + + mozconfig_add_options_ac '+lto' --enable-lto=cross + + else + # ThinLTO is currently broken, see bmo#1644409 + 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 + # This is upstream's default + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld + else + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + fi + + # LTO flag was handled via configure + filter-flags '-flto*' + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + else + 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 + + # 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 use pgo ; then + virtx_cmd=virtx + + # Reset and cleanup environment variables used by GNOME/XDG + gnome2_environment_reset + + addpredict /root + fi + + local -x GDK_BACKEND=x11 + + ${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 +} -- cgit v1.2.3