diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-20 14:00:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-20 14:00:29 +0100 |
commit | 40a480a83a10d1718e26a6f4fc54d271c1f13a95 (patch) | |
tree | bfe08ce789f69c5862fd8e5d1bc17b22f9f21b86 /mail-client/thunderbird | |
parent | 2eda3a3b8ebdb3fc8552feb6f49e466d3bc8e88c (diff) |
gentoo auto-resync : 20:10:2022 - 14:00:29
Diffstat (limited to 'mail-client/thunderbird')
-rw-r--r-- | mail-client/thunderbird/Manifest | 66 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-102.4.0.ebuild | 1165 |
2 files changed, 1231 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index ae0b782ec482..0a0a294665de 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -201,6 +201,71 @@ DIST thunderbird-102.3.3-vi.xpi 724846 BLAKE2B 8bb5dfd792edbc8e5d60c9122a2a3c0d0 DIST thunderbird-102.3.3-zh-CN.xpi 722696 BLAKE2B 8d8ed51ef4302f790628eb8a5971125aaaab1476efdd20e5380dea9feba46de30800f61ee9d14f46db6e134651918e6399ac364285bc2977c46f1aafc1fe5889 SHA512 7360f3cb3ec5ff68ffd49bb9051a44b66ab082767bcd2f699a3ad3c8eb5226f3a03f7ece672654785d40599e401b92f6be533b1ab1b39036da8f318230a19e90 DIST thunderbird-102.3.3-zh-TW.xpi 725967 BLAKE2B 5c36662e1156c86da6e3ab1493d53a0a9191294964791c56d7e6d8fdf46b2cef3211444174e6624715dc197d22bd6aeacfcbd0cd52d99fbd083bb5421059119e SHA512 de7e4373513b95f131eea4d48795d9d5260499a95237af275440e43c9873eec45eef665a89251dc61d4f25d307f6e96130531398342d7afedafdc59dfffaf3a0 DIST thunderbird-102.3.3.source.tar.xz 504792532 BLAKE2B bf6697e959325d4ab6aa6e9d0d86935ee8e8970e43372a748947842cdbb3227b6aff5c78a073a40f7fe9893d6503ab499c80033d253b3656d4175e2d9d70c2b5 SHA512 37027f251513885d1432ee8cbe0fb2b4cb3c95b0ce88bd35f207cd7a4552d6700a63d13e0542712f796d46be6cfc165d6d1c224b30a445be7f5058fc396655fe +DIST thunderbird-102.4.0-af.xpi 551915 BLAKE2B 13681d8aac920cc3295760e3ae21717d8fa67c35557216c70044b0e0d53515985e7a1c1508199149d34ea1dc6d0fe209091da3a30e1f0f9654b7c9ee607cd44a SHA512 960d9abcb20ce01ad1156c0851e8911f20de7de6e81968f85eeffadec76a1e322c7072b098f8001f0f9f252ccd5079efbec1d4ca41bcd2c5202982e3d7590b99 +DIST thunderbird-102.4.0-ar.xpi 656148 BLAKE2B 9e83046403ddbb6701efa85da7c9492e852bc61bbf67287447c51a57d48934fa7e1111147ddef881b40eecbfb1da30c0d28cc9f215e210defdef583bed515936 SHA512 3ad66f30160bb1ec4d881849e96e511cfd71cda4b1b5d559bcec5e4268085e2c6fad30b7a7ce276b9e01cc70193bdc097e0870538c60ff3c4d86e8e23735b9b4 +DIST thunderbird-102.4.0-ast.xpi 564832 BLAKE2B 83e12d4c8de9ef10bd5801ba54e2c37c718303f204bb730f99a3769b0931a62144d17fb699a24baffb3b16ca506638074a3d1f586f6c128f1874d70bf2d50ce2 SHA512 f07d7aa6d5c809506a10ddd79d1542045f4d222eca7ec5889a06ce539e10a291b8fae89cb500476a8945c2d2a093e102e08fe56cb27e9211ddd2780805a429f6 +DIST thunderbird-102.4.0-be.xpi 686677 BLAKE2B 2ed6179305e827b0330f509cec1c42312f93acc4f59b382cf7e74ee6c9003132521fd89276d7627ab58afc411b3ac5511b1c81b482c39b4b917cc49734ed10af SHA512 2c943a0dc0fccc9aa93e710adf03425097635b8753152f6e7b2d4a76defcfd79a5c88ff1444f3b6ca4ef0b9ab13095515e09abd629deaa6030a08cdc73269cf9 +DIST thunderbird-102.4.0-bg.xpi 682265 BLAKE2B c362913895c26961abbf16edd735fb7a16893269258cfd4fe158b67f9dee9b18c8dab18e0511aacdcf089898b4abdb4ab4e7fb07f0a48d4cc476419b0774f160 SHA512 0cd4ea1726d7dda209e0bb122aae68544e4fdb5c0b88abbf888349288e50aeb517019123f0a591fb8e8b3c84fc82200d5998c2c5f64865a1ac113a25bf5979f1 +DIST thunderbird-102.4.0-br.xpi 615113 BLAKE2B dcea75684b317b427a25e8f763d8c139befc8d6733e8ad0fd5167f6522e46a33452d49b252dc4fba853c956173fbd41632a48a5e5c1c2fb1f0c43ac472c1453f SHA512 3b722edaec0b55638a710423e3063b9ac9e16afb8789da63dcddfe07aa2457778c322d734c8a5fb4f657465d5db488bdf0c2556bf5ea4c91a11f508ad300c8f3 +DIST thunderbird-102.4.0-ca.xpi 636172 BLAKE2B 39b46a88c687344c225d62a2d7c16e39ad582484a2f38285bfdb5662ad969b9b87e8824d62bf93712b3ce60803edecec520c717efa3ec833d86dadd54a868908 SHA512 1f8ba1f27f5e598ffb2d397b37f043cb50b345daa0cb83831627c2db8ca22aec20035065b34e8d13b6bc3e8c02ed9632c7aa233c62f59ed4e56b7546a2d75893 +DIST thunderbird-102.4.0-cak.xpi 641840 BLAKE2B 69b031c956bdb75de0744c5f7bedbad34d39804b3a14d777b479efe8d41d78489e536d6f5622fc49a51f2bd3c5a0a06ecb89710a074c9b820ffb2ae304964604 SHA512 436830dad34a76a4c002756e409003dce5bff76db10e3909935b0577b57699268f000be889c77e9bef0471dd22c33b3a5b25a4cfcff4e83089e076b890a0b55c +DIST thunderbird-102.4.0-cs.xpi 706225 BLAKE2B f76180d4cfd62d5770384f56448dc9880f027d0d76b0365e4ceaca0e7e7943fb7d66e27c956a18bd1919454100ed600b8eb6c39e87e1a96a951a0f59cecc92b7 SHA512 0afc09e8a0c3f835c66e2998b72e7f26140bc19ea26c59ee0586004d6625edc59d4bf61033d8f162b0f54134188664ab7cf480f800d5f17a776f377f1c0447d5 +DIST thunderbird-102.4.0-cy.xpi 684714 BLAKE2B 5f51264c7514d3637aa36277b57d9ea1f525fc7ff17a54935d39dfa205142e1671684c6ce65dcbaddff136c31da497a74db669190411b3bfa47cd33442da1e2c SHA512 ebb0ab6a308f384461bc316c82464d0fe638bd274030a7d80fb591b78b5981412ca3d9fd2328fd9c843df0c5c86a1faae4cf766e72767f7effbcc29470c1322c +DIST thunderbird-102.4.0-da.xpi 670576 BLAKE2B dc65eac9f806ae991863a1a41603b12f51b70c6838dab4c5edb984eb30169c04d64e405d13c3d4e0185fe602f3c9631ced2157e950e869e302aa87a31e4c37d1 SHA512 f414320caed38831bcd4a5149181bfae88bf60501cda40ea70d223566d68621e24f328d606a739a5dc7b95fadff8c61ec18dc145ab6759a6d3648c1adde08172 +DIST thunderbird-102.4.0-de.xpi 703558 BLAKE2B 8ea366e11715b2ec73107266371f302483a604e6bac3388fea7d3067718af590f4cf25ae423e4afab0b9867e7bd1209e22c17599afc55833f5535a3a94ddcfba SHA512 e3655ab5b0f27226aec1b327611930fdaa1e27c8b7756ff8e38e386513555c8f06a6bbc546d5dcba905265c85f9dce8f7d6310088b13bc6aeecd67e090dd8a06 +DIST thunderbird-102.4.0-dsb.xpi 718468 BLAKE2B 1e783f062b9107f13abf7d1f497957bbf4c6e7c13f2ec6dfc8b1851bd0cd442c17bbb2fe7205009ed89ecefab6d81994cccbb44c79a90e12945064e29dac26ce SHA512 ff5b38c4e85421f1014fb840d4d39c53be8c739f10c27763911273456ad99f56a69d74da31a212b6b1cf4cc91c66cab465516eaf223101c58f73e00d9dab5e53 +DIST thunderbird-102.4.0-el.xpi 816315 BLAKE2B 6bb2f4105356cfa221062b86000b19445710173649c96bd53a7819e2c51b110cf1f84efd5013754de7217c2bc07a60ff8a58e0f273ddfa877a15c1dadde4b929 SHA512 86a58f020dffdda717d8f35014a39fc7cbcf9b4e53ab8e1c0bc1517deabd5cf436df3802cd41f0d414a485f037cbf45c4442621f89848c07c5c9a3d1e2a90eb3 +DIST thunderbird-102.4.0-en-CA.xpi 644396 BLAKE2B 0ed65a355baef39ccd2ac959d00aa7fdf8248f0c6513294e1594498c5a77382706ee29fca5287158d566a7b7ac64bc96d346c0c26136cd8ee4fedad5811e147f SHA512 7bc786ff00b7b15292ae4af833fee1e22c68a2c00aceffa120a2cf42ece888b07b9200f9fdb3d7df07e2acdb96599c3f453b846a8e8093d2e7e997f17b5533eb +DIST thunderbird-102.4.0-en-GB.xpi 645395 BLAKE2B fa6affb22c7e288e90180273631192dffdb9f7d4324308cb99db94d1e880592f7da06908ea8bbfc02321d94326f352a55e7cd7bdd8af4253147986edcfc08ced SHA512 bef6622b2db1af15f04af5ed911b02009aafcfb24702de0f9af2a99d7ac13e59c34836e89c87b48c84caa75a624c7edbce797620eac0e4200b58e95b68e48999 +DIST thunderbird-102.4.0-es-AR.xpi 695962 BLAKE2B 8883db9b8b29d8ec974af70bb6ce3d2c6f81f8abdfb863e83d8dfbc235bbbf05a13b4aaabf5c9ed40897369c5209899ac0be41be30cfa0ef3576a7789b0d1b60 SHA512 a6c23aedc066db57a86a078f3ec4fafea6270603b29d510ed4afa72440b27b5dcfae8528c00d490350a3dd711475de55d9e537ca56b28cae47de4605fc941178 +DIST thunderbird-102.4.0-es-ES.xpi 652045 BLAKE2B 64d7d720aacec2791b2e5a8c5594bf1c1804784c668baf2fb6d941a94f49df5d7bf9daedfff17797206de91fc72a394fcbd9c8abd44cb4c86d42b816ca8b5343 SHA512 1a9aa8202a58d85aa9888e2fdc67f16dd5fa9c2c56335059009cc530dbe8cee6cd5387cdc569091ffc2038f90ca6a813eb8215329c9770acddc256aae12c6b80 +DIST thunderbird-102.4.0-es-MX.xpi 698651 BLAKE2B cc7a3875463608b757a8e4ade3ff89d85f9b780c52fa887e3091f1c52241470b8e8ed54a8a264706219c6b55261e2dd8f5ac8074c4914e33e1adf32f6d177f0c SHA512 4684fa6ed1fde690fd9333b0eb30469b7cbb8f02f9586442939e5b043511b29e434c64481de07c7fd2d58be0fb711755ceef7a488a106fe46030148f55be8d7a +DIST thunderbird-102.4.0-et.xpi 666813 BLAKE2B 14099dd864a19c805782bf30c21c132ec7e464d6e7615160a1be522163feddd36a5990ed6318b587ee641f95bbe7c606779a2e2ec6fcea4b469e66eac211b089 SHA512 98b72ae0e3c1910180ce5a92baf5d3e6818807467d5348922ef0bff88d25e53d1099360a20322d11a865d1a07c0e3ac422d7903cfc48be045e0cc41906ac3115 +DIST thunderbird-102.4.0-eu.xpi 680209 BLAKE2B c44b91a5587789416683e609fbf7fe95a8ca460a24f851a8b69ed516725e960b13acee1f7845650b249415b9e22c9886a5863faf2814c5be41ec44e0eb922240 SHA512 8bee9d6e4fdd4ec30e8cc433b2f5a753357009b8fd820cbfc11db26bbb7e9e417cf8057d47a703db64c9cc70081a0f0548eb4caa218d6eda45adcd912eb093f4 +DIST thunderbird-102.4.0-fi.xpi 673900 BLAKE2B e09ddad3ed36eef1c19f2d20759a5eb0373e340e32377b484b09e3b51660ca591a499cbe9bde0aa4f27e091d94e54a4d90d9dd7fd0d4d4b3bd74bf1680ea72c9 SHA512 2ab10a6770fa76027c7addd25dc932ba7d2e0e2c7cf268c9703f6303d4f8de3dcc2375924c46f22ab814f3444075da373886d5a353abec3b5f91ee9678cf8d70 +DIST thunderbird-102.4.0-fr.xpi 708766 BLAKE2B 5acab6b0bee3be36acf916d93943027df1c9a51f44a7e49211019458b5ec37bfc3d72fb7f41932b5557f5d5cf45962a1ea45a52c8d889edbb70227ebe9f1d00a SHA512 04353cfb6280203927a04e18b0ae8b4537dc4043226df9676b7a172501b8cb9beb74689bc76ec4cf7ddf7faf6519e08151e80a80e15a824f38fef2f43353307a +DIST thunderbird-102.4.0-fy-NL.xpi 690680 BLAKE2B 5e1d2c94d196a2eb5cd735081b2d0965a165eaedc7c0e218824f1f5442982a8f99ee0bfc0d9a39607fbbc53eb1a116107c1b7b64c036537ddfceb7f63a7fc813 SHA512 0ce4fc06930f35079c01bff7e96a590c2eed522baf0502f2a26626449580230762bcd8ac59ae4f8397bdc00e7ca21e970a88b1abf2792ab76faa71fcf91d6a74 +DIST thunderbird-102.4.0-ga-IE.xpi 603097 BLAKE2B 5f66c084c8d9755eb4ce352756acdddac6f0c1fd7fc062a62a722b6cc492161e6af394451dddf51c05eb5f957123e0c458ee32a61afe2a407ae19ed9c7ed170d SHA512 34e7ef17fef7fc441b80c77b0ee6fcdc0199b3037b4441d9a4aad62e0a6779fcefc698d00e6d1e2dde45aef2af9a414362d2427cb6107f3d7cb39f5735948301 +DIST thunderbird-102.4.0-gd.xpi 632443 BLAKE2B ba8163acecf9b9ecc9d76ada59eee756b3717bd4de1130378158c8d8926e7304ba9e09aac3269b74ff12f474fd477fa7d85032cf10442c312b96c72ce757c847 SHA512 5c7404181ed596af4bb7145d8fabbecef56de1182918add6a9040cb2c80a5da7b1ec4021d5fecec6f81d0bb4c56ce9a37f259d424d3b5ddf577f528e228fb676 +DIST thunderbird-102.4.0-gl.xpi 663208 BLAKE2B 7a94ccce0b8472027213f8d6e80e41446ce4c12c5018c61f03e92774e4d2b8c24b3fe7a85aa96c475f261838dcb970b5e2ba4540f87791103dfdec53e3ece825 SHA512 55e0df21fc49598c78be1505fec61c13df4e7cc4d0c79af73685ca2cab4e629c0cb27bc440303319aa412252e41589726f4a454cfbe44e3701b817ceec3f704e +DIST thunderbird-102.4.0-he.xpi 662889 BLAKE2B 9b43c02049472a4e7d639b3904d14ee92f6a1828330cbf2c299a5c1b58a4a1a56e9acaa5a45e30128dbe61448582d89377c548c2a8d63047422ade01018a2d14 SHA512 a1f6a6c2a6f3527f1d89fec8e3afea4fb726068d2aa48213121dcfb9ee44edbab90e81d2b600dbe4eabb331aa15ff8d55ddc317b608cf593859d7b39cab38447 +DIST thunderbird-102.4.0-hr.xpi 661111 BLAKE2B c1f91d177eb7f8313537b119ea71612b6808e7aa2a1f86cc84763fd15491482c0129a6d057c727e7eb867b4d80468f462fc907460cea1ffc1dcd6d1857d02dd3 SHA512 950c424ff0a0b9674f99328826f6b6388eb1ebe36b2ecf4f74da6399453136f654315a03167de2dee69c573122ba20e1a723ed465300de3465ac82748543164a +DIST thunderbird-102.4.0-hsb.xpi 715752 BLAKE2B 01e9e4e9a96f8d9cba39f3a1135e87e7546ea6478eb7c01b40354b9daabc87e116d84c1185890374d4cb2458e84cecd243cc4e09f550b04b01962fbcbf6a0f45 SHA512 87efbec22e2a64717ce1f1e78ec50ca397975bdcf1a30a63e8a0831652435632aa5385add2b424d696a37c316607baadd2bfe8e4f60f62057bd47667838cc660 +DIST thunderbird-102.4.0-hu.xpi 718784 BLAKE2B 3a1dc0f1f077fa3f6f325cb477ab23a11c3a73ade24d684d531767d309ee7d0f8d22526a94bc98a20059173665fd83549d6282fb034c50e27b16033b473b462c SHA512 fd13f1ee33e15fbb0a82c423b734f6411e2d83eaae2981e2fa1609eb0764b3badd44ddca3b9258346185eed372c17552d82ffe6f5d104ef4905366f5d2bfb306 +DIST thunderbird-102.4.0-id.xpi 639539 BLAKE2B 826584fb3d4c69645b25356497068fa213b8210d6eed609d2b6f498b8924de8431cb9cd697a581c6a2742d4e963aa54ac032064b1b67aa5f2992de12f079dc3c SHA512 71e5af5304d9f611282a9d6a3d4d53522ce8111ae870b480ad0a52bc0203c3c0f7e65aea94984528fbcf2f0c63f0b749c8beebc842bceb8e14b972cc898356bd +DIST thunderbird-102.4.0-is.xpi 685615 BLAKE2B 7d19cc2b819c2d71beba28a9e090c43fdd7a7154144a3e136a3b13ed2b087770c5ca2f5fdf2b204cfa3f129f569c21b52166775a1aed7e31bf961445e769e2bd SHA512 d9f8546136559176bd60e240f1adbe1f7429c43a84cf072b07ba5e33dc96a411dd904eac7ac5e889c78b1e144d17747def0c4936b383e557eec3be9d0ccee2ec +DIST thunderbird-102.4.0-it.xpi 617778 BLAKE2B 9e1ad0c30e91de4d9fee56dea98a5b2a9ee1b19453d759adc6c5233e02f74c47369de7f57022450dceb6d125e3c604ad723300f33bf84ab76af036583f6b133f SHA512 e0e8dc5e71f9e1caedb24e6f2a142444ef00f8315c896a45cfe3e8cbb1635729367a5f9dbfb745381428fb66ca8b5791ef63f759e4d31ae3e1fd1dbb9811a360 +DIST thunderbird-102.4.0-ja.xpi 755143 BLAKE2B 40f71df2f276e599cbeec386bd33b4eeeabd4e5397ab2ddd4788c2b6957bc947ee8cc2fd6d2aeca3d32d6ab8bdf17a73390b733c6e58f3b3ca855dfbc20eaaa1 SHA512 9a719c8f56939bdf00bde16388141df122460b33ae723f25e383f05a9cc916babb3b7c015a44d7c52f2dd85d6c49a43fdb12bdac4ccbbb5c92c2875c147a3120 +DIST thunderbird-102.4.0-ka.xpi 752976 BLAKE2B 16c8724b894abd052bf2e4ef545fb188b51c3e11f54d316668c9c482531e6c6dcce5a2a82c3436a60640c7846c262ea65bf8c94106b5abbb28cbd5877397e6e7 SHA512 8fd9a4da911071ccd4dc1cbffa70fe0258651fe1f8c1d3484c562f62ed9e47a2e13a282212e14303a5ae5e2e1457e18b1ddc71847ca90ccbf7af6acb9031da1f +DIST thunderbird-102.4.0-kab.xpi 688570 BLAKE2B e027f15248300cf5be4ca3e09e3051fffbd6baf3be62dcf8be14b135dd8d71dd56ae71a8261b4c3834580a4f3a8d57e01dfa08c6828a30d1df3ec9b912c270dd SHA512 ab72ee2fd53214c4f12f90beb7d89a2d31385ef5789a38382356c2767aa821c75568f71a4cd507e71cf324ae223e0e1a90127aa3d3481bfaee8ce2271c894469 +DIST thunderbird-102.4.0-kk.xpi 731941 BLAKE2B f13805b3395b2c2c712ea6c00cc58ce3df468479e833419bcea0290a7d1d31832e4e7292ca3a83e116b91db806f9896b921a5d420f4a7cc7f71a01940fc98cd7 SHA512 409269a687e80a9a772c770dffa961aaf792dcdac290a83c7dd90fbadc55419ba64fe7db08246fc36b72a498ccb8e8eebd32e39c51eb88ff19fd2071b0eb4c3a +DIST thunderbird-102.4.0-ko.xpi 692940 BLAKE2B 5e556315881d37867a894860b48b24cacd87a906a61611dd0460c929c3442ad6a1bf4d9d61530d89489cd7ea8c7b152bcb1cedb691854581bd566a3323321f8c SHA512 ef92beb1f78e0badd38056851e202d228f3712be4db759791328832050b218fe2550af611ba2fc418607dc7d67729e8f873edafdd22af903bc789063ee504185 +DIST thunderbird-102.4.0-lt.xpi 680718 BLAKE2B 577c64ed7817a3b80bfe00756e04e8296a05042aaa6728d676043815a8960d93027d55d3ac85c060e1ad71b9afd9c207af13124eaddb1726dbbb62e7028c6d25 SHA512 81f6b8d1006aa8274ea10559eff434986bc41cbba52d3d224bbfee86872ad67f69c38c7181d6886738a2a59d31a3ab7c20f476a2269165dc43098120ba2e9a36 +DIST thunderbird-102.4.0-lv.xpi 608588 BLAKE2B 91bdcd101f2d03622bbafa588b973f254a6d4d1a4790eec54fb9e3a38299ff5b3652a42c08e979b107528365511ddfee1d6ddf95cad1d7d755118859e3c9bfad SHA512 0bd7e5fcacee0ab5aa48c5ff8714d82505f3a278d43981a6ff9cad47cebdc2ff1f9f7331d5fc6fe1342af620d20ef3edc29be0178c9775963bd19c266168abb9 +DIST thunderbird-102.4.0-ms.xpi 568531 BLAKE2B 27f5d8566d9e040dab152b8358468be16aaf6b04b4176d39b090089a773da0a4ad4e8141436285500a5054c8b4c51578f5fc0ba9cee03dc1a3e7c9dd705bf217 SHA512 2771825fb0d704c5d0c581b700ba7daad33133414e415320d229ffb7542f8e009ba36cee9c93bfb02fda6700dccb2d160ba6934396efcda8b317552692be43e3 +DIST thunderbird-102.4.0-nb-NO.xpi 648582 BLAKE2B 60032c78133c65bb84d1745f6e913b6449e233ee4728d0b88ad4cf877be9ad126c00f9ef6a38382470b4f1389fb60ea9477f433f9bbf717ab1880617d4f0ee4e SHA512 b136d95f3cbc231f18312dea62da761fd39cedafc3e3cb6c3127474afb789cd72ec24676c7a41a745655ba1e7621fd0575934822569bb4f5d6f008e5212f7a5d +DIST thunderbird-102.4.0-nl.xpi 682267 BLAKE2B bb2ede687eb355b61e8d6e7518a70fb9abb70c13ec809e65d053115c29a58f1843b90b83fbb14be4ab1040d4898068cc463ee448d98f526bb8f3166cd4d421e7 SHA512 2f948d62c9af24233e84f61ebdd55267a58eb43ce9820d1e78b5052dc5ddec3d2f58cbd9c1b47197e13925acdad6a3fd935b7a09a0a5a85498489c15a75d6dd0 +DIST thunderbird-102.4.0-nn-NO.xpi 656905 BLAKE2B a45bfd5885a2d44c859bc5c821a22f1db36eb1a1c69aaf3a2f66c6d3f84d0a9f1f6baf31eaf911e25ef87b7b4c81cbc899ec2fb531e6799a1e8278036fd3f0da SHA512 2a815dd05bf8bb92e8b1cabc2b7de876d406f1d5557d236a3e62005db020732492cb4f962ac3f89f2929027ff8c45f4888250d902ec257332dfa43a9477a892d +DIST thunderbird-102.4.0-pa-IN.xpi 654093 BLAKE2B 66ca87e7461759ab680489ad1783ad1a1e367835977a49d135dcfe43bc233dcfa08ee6aacb70f2675eddb41aed7d343c1bde95432628e47139681d431ceb63f1 SHA512 a8da02241ce52892b90f823f4ab324922537543d29b681a870dc38aab3c25e11a790710f2847d6e70c52cd322a599b9b4eb39909f96c690917d41db408c244ca +DIST thunderbird-102.4.0-pl.xpi 695416 BLAKE2B adf9c0e9685241935211463a799c9618075818f84970430daac74890c6c1820019fecf7e9788ae6b02012156d7b20ff531638c786cdb05ddf4a4c0bc6f7ee42e SHA512 eb542db2a3ff02c8ce427adcf0ef886969bcb5d62503fbb51f4d90bd522d384c2158176a37c1f92bdef1edaaf243b2e88f868e06483bc9b22cd2f9d831545adf +DIST thunderbird-102.4.0-pt-BR.xpi 690287 BLAKE2B baabafeb607a8e93886ecac6d2103f11e4ad613f5cade6dcae228d3fd7656e2718ba8327ba6cb45d40242128b6d0c2c46eb95feec75d461464af153e5243b9dd SHA512 ef3924bb386ac3171636f3d7119fd0843279466e74c9e99de0dc9447b928f3aac99f8893d4040a345cdb252d46533a8c2304fb3596f10d12eccf9f98904034d3 +DIST thunderbird-102.4.0-pt-PT.xpi 666878 BLAKE2B e96044817e4f91678f103e510063ce96ed3574aaf6fc3cbce1ccd679cf309c235bd476c66d830f1344587ec5816d5ba4a95e4e6a2ce92b482c61b15f393afe36 SHA512 367492142cad43ff400b20d610978b36b75048a782f1acb21f7b624f32d582fab9d82411789c0e552217c76537ee960474e21eeb12547d3010ef39d4682fce3b +DIST thunderbird-102.4.0-rm.xpi 686109 BLAKE2B 10fa915e8615e0c3e8900636caff76b2ae9c9a4c7441d69fe3bb12bbe1e5b962324bab40e4975e6b2bede917aed863112672e8d9d5bdb115db83dd1105ddf850 SHA512 8a060e845079ff0f790f9f2b00c49c9cc2ad21e7b5990c3e471eef4d85d0210c2328b13fec63265ef29cab44817f960c526b1623a8a4490baa71b48d38e337cc +DIST thunderbird-102.4.0-ro.xpi 651333 BLAKE2B 42e148c610ca367e20935fcf5fa9e8b27447c25f30f569f544a5ceb67536279eefffabaf07bde76ee84bbd0b6b6b7d06eeccbe60a2905fa25a7f05a10d951368 SHA512 24951e059d9a70d89bb60e981317bd51effa25002269c1da3650b83dba568217fb8dc3b0d887450d1f653dab948d324b350176d96c2f01ed398ecb74d8969cc7 +DIST thunderbird-102.4.0-ru.xpi 801783 BLAKE2B 8494ecd3f64cfa501a6e5737584ef8b8c4429654499f53e6fd86559db9901e2b1e85ea0a32c14358c6ae4b0c6d5b1599031f16a6b883f6599061865c02b4fe12 SHA512 76b6b42c1dadfab6826bcbe3f99372fe1a099fa7ed4a2ffb73086c2b03e60092e01a683a20422bfcc4c95da00a804df80f8c122b8409e873f103c448d223fa32 +DIST thunderbird-102.4.0-sk.xpi 718252 BLAKE2B 25cc03b3b90f9f47761bd81a6aa8ef22da7662498b6bbe23428e69a012219ad5bfd7da6496ab3248d9287f4dfd2589e7e8d1847f14d0a460fcf66c3b8e030686 SHA512 05a20a3379a352503bfacc23a45db79d41c1db4c98dbd7e3ae5caf17fe948e153e8a8b1501525bc73bb73113beaada160bc942f160bbb67fd65ea7ebc38c0aee +DIST thunderbird-102.4.0-sl.xpi 683686 BLAKE2B 6d24f328978a4afe10cae9f80731c38bc560a1beab8e13be1b7a4617c95524b5e82ef42e552b08183be44d3e2f816891c6e0d5cfaaa99aa9b2c54249807d2150 SHA512 a93b99d47cb46739e6ea619a621a6cb34979cbee5437bbdb368646c73e2b7690564748fd2c596f5747d78b6799f257ba5b5bf55a76fc0660034b6335159e44c6 +DIST thunderbird-102.4.0-sq.xpi 690225 BLAKE2B 6572715a6c9d53df55416f462ed29de34f27c267bd386d83d7568ec91050af5162cf0759b0ae7efbae8bcefc2bea966d05c59a4bf3288faad6de12000a8a89ad SHA512 44ec0002fd48a59b85946b4742552a46fb75893d98c5377f2c8c167c9200619c83e08db07d2a436aa54fbdc2b4dbeacafa5e65dc6470b95c52416653f2e58f5c +DIST thunderbird-102.4.0-sr.xpi 705269 BLAKE2B e32b5bf0bbf3f1db077871ce318483ea1d0815ef373d70832a83aaef71db1bd9e7c1488266e15e529592f6a6bd93dc8cbe767f187ad76f44cf4245ebcda58ffd SHA512 f42c6f145fd4119cc1a3540a0b088c1374e1ee98fb43462b7503f1c39618892e8f0825dd3b8f7dffeaaca62e7f306b819a0146e865c5d4d5c25793456c01e10e +DIST thunderbird-102.4.0-sv-SE.xpi 685683 BLAKE2B 0b160d77fcc48591077a599a23e7993803632353b11781e496390c8255826efc3625ba50ae97f5d488d7f3ce00e3400c7a5bd04a2355ef644264d242c8c6ae74 SHA512 c78f4bcd872d366884f7fffb39fca862a3bca86f5e908f680837128dfd6368807a47e724910b0cffc4bf6d887e161b4fdf84bad2ecd5f564f92f17020e0bee12 +DIST thunderbird-102.4.0-th.xpi 734539 BLAKE2B 30ead9fc34e315f031b0267077289845ec21c1806cb0eeb23b7b3d41f856f435463eddc4ec5d744e68029f9eac951781d9deb5c15c73807f0bef38eded84362c SHA512 718c8494afbde390ce89a692c63888d426dc8d2873e15eba8162b2dcad6d78fb2d84fc3291fb123f02c0ae7cae2aea1bad6ce897d634bdb7bca61d7e72ef473d +DIST thunderbird-102.4.0-tr.xpi 697055 BLAKE2B f163ea2c84b5fe479e254944862dc3b43eea285c7f1e694d06442d1f11e068dc6526cf47bb42a4a3834a921977b13364707a5a212a60dfc3820d2a0f6b33d9c0 SHA512 1bb77e85741d6b56dab07287241760ef23b26d6b98eff09e1de70206524420eca2933e73416e22af5a7e7c0afb3daf0e4e98286fc5f550f37398f6ed2a5390aa +DIST thunderbird-102.4.0-uk.xpi 794404 BLAKE2B db38d840aaadd6927c5bd8242d31c3a60aa8e0ec8cf8991db80248e405fce9f2761c7f6818ff214d189ef000195cec41e518c5c8dc64189299ac6ad94cb6b27e SHA512 49953e283b30810306510a5221becf32f66d9cac1772b087052d99a8602fd56b1b3217ef776ab93f96fbfcce8a85488949492d074b51e0244c090158e7fb879d +DIST thunderbird-102.4.0-uz.xpi 585350 BLAKE2B 72bbb58a9c9b568e4f9cb1728dafd064fd5c6081f4f4e4e51a30b682605551a4bb0dd4b1480e1fdd4d9d0cbd04a7cea128ec047fd2b98da472f9ca2504a759ec SHA512 e7ecca1e673715d333bd6a9091fee2122db8cacb43c2f12852b576f3f75726f54555f833bf93ae2cec3b4c7a9e281ee01b558e45cba6e08f5ede9415991a0188 +DIST thunderbird-102.4.0-vi.xpi 724847 BLAKE2B 66c99673ec9b66a4fd3d0820e2f853a40bce31c53cf0823cb4cfdca6499ccf9b18465c4e4df774ab72a810ff6e68a2d9d9995c3b92fa3d4ff5b7664a3e19c03f SHA512 64ef76c95df421dfbc47df316d4a6981443c874ad71ca0bc427d222f4114c8a10d747c0fe4a51bf7cd3f03c9d4e7bed2d10e059587c70e67a0b473575f9f0904 +DIST thunderbird-102.4.0-zh-CN.xpi 722697 BLAKE2B 464fff02ab6dcfb8c21e10162883ab76dcf9b6fc67e750be6603c17c17ef54620bfa4d75d9f81a4ceabd8816095754ccf26f5bd8e3e15092a3b917c4df861b3e SHA512 93dc589af87444651e29c1208d4c3e301b0eb73fb03d2ae927620c5c3f36763695e28a5cf7fc15b88a111148a8b86a47de8002955cfa32e62af60c9beff4a45a +DIST thunderbird-102.4.0-zh-TW.xpi 725967 BLAKE2B ffe45ffff1b2564b6882afd85fb86ed3819bb06aaccf84597b0809be8b6a65adfb307c5c7ca0e3f5d095e12da2b8d80f1b4fe97022604048dd3da7ac106cda61 SHA512 de6327c2a9059a89768c72ada5f62d6d1dbc5b48c824702aa0ed8d4ef29797a4f5d2d1045dfe0973316190330ebefd512b791d01d3c67c591f994df053fcb944 +DIST thunderbird-102.4.0.source.tar.xz 508467296 BLAKE2B 3831504f898a8ff1625ca352f4257b3d0a6debe54eaf81f8f46e74aeb2d6f8b6d7a354127872c860e75ad41c0860c116ed074f7950324e05a01a98ba88f79f12 SHA512 e2ce59eefb0c4df3eb20af01af2b7ad78a09e0fbac7bcc8800538d6655ca63a5d132c0700e2465654cc707a50aee01c62df0532f2c53b5f11c2d3a7ca881d8f0 DIST thunderbird-91.13.1-af.xpi 561879 BLAKE2B b3b2f9303e0540dc258fe2a9653a4283ca88645edd7717d3fa885cb3b79cc428b281e53d86862c6a4a78ff0609670749090ef637481f230ca8445686a33beaf4 SHA512 c3eb26d200ef6d121299e041b69d82951b1fdaf40eb409d002e2bec4082f501284463020c7cdb486775062fd5d71b791093c9a188276e51c2287b95043250013 DIST thunderbird-91.13.1-ar.xpi 665731 BLAKE2B 4a82e82a241b00e501d4558f13f021c87d8f90403bae36705bdce155b2f90aca1c8eac98be4c443da06bd62253d6805be5011025b0f61343d5f5e949ddbd0905 SHA512 03792643d2fd90ab3f33b065e9078882c607293bc674e44e4960635e946de8bf5843261528c70a8cf04218386b8058d83b9d3a952115bed5883931bac36b3feb DIST thunderbird-91.13.1-ast.xpi 580512 BLAKE2B 660ddd94462b403d82a3b26b4e89e515c33a3467bb978da0cbcb6fbbfad45986a99f83d93d6cdff67ae2e187ab4442821f82dbb2ab4a864291afce7aeb681359 SHA512 1ba13cd42b30bfcbd1966e30c274eb790b5f9b92d6705f06d607d6a38460cef9ef1f4fe873a8560413a86cd3a7186461a1d953332c3cfc4a80d47afc260b1124 @@ -268,5 +333,6 @@ DIST thunderbird-91.13.1.source.tar.xz 402696448 BLAKE2B f5219c185eff49932cd4172 EBUILD thunderbird-102.3.1.ebuild 33359 BLAKE2B d7cf72b476e300c59275656af3673da040ddfd37b6e2261bf6d0cf57524eb1973d2855523756c82e145aa15f7c22ad00cf93c8ce27ad49e8776da040c4bb8e59 SHA512 21be4a0c807bbdcc966827a58d7bc4e14061b8b312e0b757351ea9541cac7431af086c7dd85ca7657bd9d4a4bd1ad986dbe70cabbf0ee65d5e4a4b53b5584258 EBUILD thunderbird-102.3.2.ebuild 33380 BLAKE2B 742658551b8235577d49d4987bce4178de78c4f99ffb967358ac8637d49dc6c3f605319864068448a389e010ab392a9691fe23e99db19fd1faf2be49eed894d8 SHA512 1efff394a41d4124189fc0a03b213ffefd85d56648a79e879e04f6cdd017de6905af6011f80538a2f6eecc593f9274668e48b90d41814ac530c7118dbb281994 EBUILD thunderbird-102.3.3.ebuild 33385 BLAKE2B f1d0ef254090859b7fdcd76652dbe173919ce5b5d7f801a443e7eb25150aef0071788d4d33c4dbdac8618e69af27b7c0fc0e6d25d7a235b1f7c4aaef101e8aed SHA512 93073ae1d25482aa9d3bb12feff138c2cc840b47609158d3be3c9f8827493ef5ead5160c229df502e6caa4ef21f84ebad6a0cc479963fd93ed47e7176112e00a +EBUILD thunderbird-102.4.0.ebuild 33381 BLAKE2B f9a7fa12784dda83531346d7281805ce79aecbe1c32edbc060b05628fa9833828b3f11a65ffb1beffe14f8552facf49bd9d7aaa0ed62141b558cee9258d8a4bd SHA512 60e2ef80274f85d9b6a074584deafebc8395ec4eabe8f41a8bc65ce9656046df3b1821d7d7b69060652710476b510301bbec4c997cacc74dcb3f7e2d73012459 EBUILD thunderbird-91.13.1.ebuild 32760 BLAKE2B eca6bb6ad4a3c2cce82926f76410e8543f7c9edb32c4cad7b19fb6a0175384f0bab5706fa42697367011655c3ea9b537386a432059e4766d6a7c5764af6f3e32 SHA512 b941bc14b6d7a23d142eb4c21f8af8641ad2aaa800ed0b56d717ad5ca57988f30b7bee2a4ee4801b09ec25b2523b2d0ace457d358521d2efa4b8d27e237d01ad MISC metadata.xml 2139 BLAKE2B c348f9dc2bf813c386bc2e62782bf762ef4fdaf3f913cec41bbd115a7bac54b01852dec04e6f7574b24ea5cd6d9500f289109127cdac5887128b07116d6a6cf8 SHA512 09b0670e852cc954b5df5e846935d274ae180e4627d112104d5fedf2a777fda7d52d73cdfde9e50475d9a560ed44946d4c0682d52d793bbfb5f2e1b1e0aac608 diff --git a/mail-client/thunderbird/thunderbird-102.4.0.ebuild b/mail-client/thunderbird/thunderbird-102.4.0.ebuild new file mode 100644 index 000000000000..30a2eccaa1c3 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-102.4.0.ebuild @@ -0,0 +1,1165 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-102esr-patches-04j.tar.xz" + +LLVM_MAX_SLOT=14 + +PYTHON_COMPAT=( python3_{8..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="!<x11-plugins/enigmail-2.2 + selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( dev-util/librnp )" +BDEPEND="${PYTHON_DEPS} + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.24.3 + net-libs/nodejs + virtual/pkgconfig + virtual/rust + || ( + ( + sys-devel/clang:14 + sys-devel/llvm:14 + clang? ( + sys-devel/lld:14 + pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] ) + ) + ) + ( + sys-devel/clang:13 + sys-devel/llvm:13 + clang? ( + sys-devel/lld:13 + pgo? ( =sys-libs/compiler-rt-sanitizers-13*[profile] ) + ) + ) + ) + amd64? ( >=dev-lang/nasm-2.14 ) + x86? ( >=dev-lang/nasm-2.14 )" + +COMMON_DEPEND="${TB_ONLY_DEPEND} + dev-libs/atk + dev-libs/expat + dev-libs/glib:2 + dev-libs/libffi:= + >=dev-libs/nss-3.79 + >=dev-libs/nspr-4.34 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/mesa + media-video/ffmpeg + sys-libs/zlib + virtual/freedesktop-icon-theme + virtual/opengl + x11-libs/cairo[X] + x11-libs/gdk-pixbuf + x11-libs/gtk+:3[X] + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libXtst + x11-libs/libxcb:= + x11-libs/libxkbcommon[X] + x11-libs/pango + x11-libs/pixman + dbus? ( + dev-libs/dbus-glib + sys-apps/dbus + ) + jack? ( virtual/jack ) + libproxy? ( net-libs/libproxy ) + sndio? ( >=media-sound/sndio-1.8.0-r1 ) + system-av1? ( + >=media-libs/dav1d-1.0.0:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-gfx/graphite2-1.3.13 + >=media-libs/harfbuzz-2.8.1:0= + ) + system-icu? ( >=dev-libs/icu-71.1:= ) + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) + system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] ) + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] ) + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] ) + system-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wayland? ( + x11-libs/gtk+:3[wayland] + x11-libs/libdrm + x11-libs/libxkbcommon[wayland] + ) + wifi? ( + kernel_linux? ( + dev-libs/dbus-glib + net-misc/networkmanager + sys-apps/dbus + ) + )" + +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack ) + openh264? ( media-libs/openh264:*[plugin] ) + pulseaudio? ( + || ( + media-sound/pulseaudio + >=media-sound/apulse-0.1.12-r4 + ) + )" + +DEPEND="${COMMON_DEPEND} + x11-libs/libICE + x11-libs/libSM + pulseaudio? ( + || ( + media-sound/pulseaudio + >=media-sound/apulse-0.1.12-r4[sdk] + ) + )" + +S="${WORKDIR}/${PN}-${PV%_*}" + +llvm_check_deps() { + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then + einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use clang ; 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 use pgo ; then + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* 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 + + # 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 && ! tc-is-clang ; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + have_switched_compiler=yes + AR=llvm-ar + AS=llvm-as + 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)" + tc-export CC CXX LD AR 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 + 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 runtime features:" + optfeature "encrypted chat support" net-libs/libotr +} |