diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index a24af1526c5a4..4ecd51d1f0f7e 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -458,4 +458,69 @@ DIST thunderbird-139.0.1-vi.xpi 516771 BLAKE2B 69fbeb5409ceab242784a4f503377bab7 DIST thunderbird-139.0.1-zh-CN.xpi 506145 BLAKE2B a1fc99eda0ef67d505b35f4b58a4fb6df0175e3a88671c1dc66c265db0668507c1605d2a15715a2593a9c91ec2aa8455e2c6dbc01aef22470f17e17a40b6fbd8 SHA512 14f9102bd33946395195aa30378007982536dd564c29ac62cd58d05044d834eaa76dc8e9e7210aa4864c9cf4db8149f526e83d84931b6a655496637f171b15d2 DIST thunderbird-139.0.1-zh-TW.xpi 509370 BLAKE2B 980652e1b06a888e7e61cea7681408df028356922ce1b452e3bc0b33bb71f46d7f104d78b47bf573a35cc840ded9e676bc105721f6c2df7c4bdc582daf452218 SHA512 3c818a96029d6b2b48e03077de7f012d5b6b90166085015b845115cecfe4f8b89334eb8736ae7d3e7aa1953b9e650b1ab91dda19c495ec4b8477741ef328ec15 DIST thunderbird-139.0.1.source.tar.xz 755720308 BLAKE2B 59bfe43c3aa1bda5eda261b21e635c92953d89338a89f36b22fffbe6be9ec13a70a68268528d0b0be09f35b2348aa32e64c7e2b8f79559ebebf8a98d619580c7 SHA512 3ad96de458d054470c52ddaa3eb267176ce2cdbf4dd8fa707fcb4313bfd0a7ba4baa2c860b247940a8c9878e1f25509961afc40a545f818b1c8acabee1f70ed3 +DIST thunderbird-139.0.2-af.xpi 316966 BLAKE2B af48fb7d139134ddc3eaa8a88e9aad7db3f07bcaa0fff6194a90d7cc7d7fc045b955cc1543730c2e09236153a8d4e4c0e6f0100edb1327b908ce3878ffbbabba SHA512 988a9344de207b105e21ef9997bad0cc0c77defba62004da0017bce41abb9e3555e7d813413d86cf8852f98d900fe75c19b5e08b3937f64aaad409d583de2a3e +DIST thunderbird-139.0.2-ar.xpi 435736 BLAKE2B f306f18bfc651efb265a73aedeccab0e63179b6323d5a04e867b88cdd426e61fc210691c60b8de0fcf2675150b86e0c294845fd3862ecee83372050223946c1c SHA512 d161bba3aec9570204fe524ace4b46a8b402223f4255fd71b49585209370651ff7db9c9464c6c2e8a14b046f7757ae4bf2c0392013038ab1f3f1e9c5180f7f04 +DIST thunderbird-139.0.2-ast.xpi 342368 BLAKE2B 83cd8f7ab4a3fa1d00bf1d867710c61a3b7a70e9a629654f05ea309907021911da405c9b875acf9a67dc8d924e4ece9eec3b674d3b74bbbf1a158856f70bdeca SHA512 4fb5be29f1304a7d3897c32dce3291d42b6782e25fc07a4c9b5bbe96d7afb40c72dd2137d94ec18738819dc1cdc0436b24287d006ecd6aecc4ff6f2cd80bd77b +DIST thunderbird-139.0.2-be.xpi 518996 BLAKE2B 83188694f526ded219e5bdf6db07f033d02774a80eb38654ff418db9a00d2bc01611ba0f5c295d62d8788272baf64db23617b6075bb604ac09c715770da70cea SHA512 b0bfe2fee0f961c2d71c2e89f1be7061853acdaa747d050e22d5723f6c8c19dd8c2c5a589f03f461ea459023c7e4acf24bcec880e7b7d758f090347eff498631 +DIST thunderbird-139.0.2-bg.xpi 535154 BLAKE2B 5d9cc5f95d6aac8414fbe0b35f52df123e8f4d5ab7efb5d57e16f9e4416924fac7299848b443ce9670b5926520127bb93bd6bb42e7823dd751f886a11ab17710 SHA512 58c5709c4aaebb4b13bb8dcce63d9a30c9dcacdc1baba0d55c5f527fb7a3b95220d3c24d3e73624801e64ae345136556ceb963105145f785fb641a6b9b13aee5 +DIST thunderbird-139.0.2-br.xpi 403227 BLAKE2B bfe4e1866c858b3352bac465373ab93869e212c9c622d954fd03af1763de8ba63b76f5de6a5393c4cfc5459a46128e455ec2e6f11c94d1e8f4a4bbc0686c01d2 SHA512 6a39b38fb11ae3746ef53f11da7d3b00b8872860b67475fa09b17996e5911a310ae64e8a6889a81457a862e2dba886947f0a52ea7e378a58b99a63b29e30dd88 +DIST thunderbird-139.0.2-ca.xpi 441384 BLAKE2B c579a3f1897951da2275adcecdde99603c6b812ca82e8893f7d1395aeb669c4532d60b7ca668002369ac345958dc46d7b5e8abae225d990f6b00ac54ac6260b4 SHA512 1547e1581f5312a5e3fe15211c692d543558225b5cc12e24230f7436e325e73f18fcf1465db83564c8ada9bdcecdb8bac3d2e893d9687a0fbff08a777298a46e +DIST thunderbird-139.0.2-cak.xpi 419101 BLAKE2B 05abdfae0b7874000a16a251249a197fd152783a8bb0e6990839cc0dcbc742c4f7b0800cca569136714f7d4cf25d8c7395f21a21e3d2a2fe784ae4dc649d874a SHA512 d88714f492fa941129da1ba128a3452889169b0d2cb2dab2b30190e5bafcca9646bdb40305d6d62ba21b83c45ee67920174942e1d288d8ac1e16bc81fb9b9cb3 +DIST thunderbird-139.0.2-cs.xpi 517127 BLAKE2B 0a1b487afcebdf23e6d9c4e0731483ac26e21b57949e56981b5d802ea1b78e49e6f67444a888f7165abd5a897a27f01b3d2e7d05a25cc8442cf9b08c26d60ee0 SHA512 fe2fe62756c1f517b14926631b9d774062e84152ee20e1f5961f72039f9d995965d70a1013fdaeb6f50b6b8f0d06af063507e3f83e886d46cfe694fa884c95f4 +DIST thunderbird-139.0.2-cy.xpi 485814 BLAKE2B 23a40395ea2ce604b204b498088689d589fa7d072ec1bb16864dbcbe183b34f95289eb5e0937fbef2f2c615cc3b9482e983547604a2b6ab72db0d9380ba78fc5 SHA512 512b01edee02a143ad05044e357ddb91dbb79f1b4143eaceb5f7b36dccbff4214174f7fa81fb6774f5843f00d72b25cc28a4088af30503ae8843006ab6ffaaf3 +DIST thunderbird-139.0.2-da.xpi 474893 BLAKE2B 7fe9bdbfe8cc9e5d854d6d0195fc9feee7aa5ca9160ff512eb292984869bebf3469322d14ae5f154fcc5a51e044613ddc2dda02eea439849c0d673a9b4a7795f SHA512 c822a08ea07b93bb928396461b4a5066c38808df419c8be4792cdad7deacf52108bb18ef9dd3c4799caf977eea180e966af23089d22ddaddaaa7fdc15312bb45 +DIST thunderbird-139.0.2-de.xpi 502964 BLAKE2B 6e7126fbebc883e4cd4756fa01a0cfde9a74e959e02c1c1c7fcfc61ef160d267c8a8d9fb44c18ca0d7a824efa6c05fedb3993b36d7ba0412dba8716d468440be SHA512 8731a9a6dede03dfa15199f1cf81124e5382bd5ab2d37afeada996dda74eb00e01f9215f156dc10e3091d8b8d5faa9820b202b896a91ff1df3a8f4b5b4ee4a62 +DIST thunderbird-139.0.2-dsb.xpi 515790 BLAKE2B 940db6b85329dbb6d2184d641f8feeaf371ea91c61cac090461303ed44a7cfc14811320aa3791fefc66079281afdd15dfe6c6035f6f5ba5a00521766f871780e SHA512 7a77382180d6e0eeeffcda8be7eb0f7259d48782b68857958b0086322e54000854ff0f06ad68af84e8c50424699d233ac200413029585681e951c14e3727575a +DIST thunderbird-139.0.2-el.xpi 606199 BLAKE2B a3bae7777e907615b37356acf442a75f7d2f1425a253564173c3f139ed93237c7fffa2afa62dc058a7d42ef95ff86551ebd37fc56d8f4fa93e8cb1f37f78107d SHA512 926475de9be22d4bf313a495010fd2d41fcd31e1072d95eb480bef417467823e8a7140d3ba5bbccd6ae8bd51206238bc73d524533306f0e32b3bd934261438e5 +DIST thunderbird-139.0.2-en-CA.xpi 449782 BLAKE2B 88049e2b488241d11c03a69268ea08edf54a65d92af18eab77cc2124e437535a782b9721714cad081fa15f86d29309891f09ea8a0ef2885e6be7efa233c06655 SHA512 23f9ebb41f58e96c76068f218c493a87cfa103d64aa153ae72c51199ff7d3f3050f5ddf931a338bdbf009e02b8e4e5649d61f7a64ab03890a623f6d1de1a713a +DIST thunderbird-139.0.2-en-GB.xpi 450741 BLAKE2B 4de21b407a83e4da432419af7b8660a6c426b1c74b8035fb096227e23d67f05c6660febf305cdaeae6f4ee04a8187c10790e84305780554dbaa446358930e92d SHA512 b30266d0937836d38747675d129d7e84a6880379d24176aea67146c9c8e9b592b6dfa1f20f082602c0ee9c306e3c84283f36bcde83bc844666235f467bca48b4 +DIST thunderbird-139.0.2-es-AR.xpi 493642 BLAKE2B 9160cc31c7808449d592b87155b20cb116511117f09a21bd069add1cb1b0db11fc1d3935cb29eebb0f842ce78aea479c33d1067ed33a20c5e2b4d10236e29138 SHA512 f8da52e365fd1b3ceb5d62432805f011fa26d006d34ee5839f47e6bef585d7f07a61c32b309f5ffd3d0a3aa84af5a023db307b8d38f5946f0c3e93607763b9f6 +DIST thunderbird-139.0.2-es-ES.xpi 495373 BLAKE2B 161eb7bb82749dc58b733588cdae706264dec143abaea6c3d1a9a00943716cb27b81a5471fe2a7cb5bff6ce56fc566c2f20a6e01cd1ccf25e991f4788619c6a9 SHA512 8b3ff5859ce095e758a25d2919604c3af06beeb70fa92db623ee739b244d88bc0f682d73b42c7b0b79ca2aba4b8c3834b895d1e1f4074c5f8eaa493bfad65d36 +DIST thunderbird-139.0.2-es-MX.xpi 489247 BLAKE2B 782bc8129df01e80eef56d6fee255e3148af5ff3fb3715a64759a2051f7d024db13a419d39c9accb3c338e12ee8f132cc09bcacfadcf488e48a6bf30fabc196f SHA512 38122f287a4a33d6cf84ed5660630785c37e9aa8297b9f8294f869fe1a9e9ade56b2ec4bc7a99f7829377b8aa0bcdbe93fd80bcf6fb6a918466fc3d1e47d557d +DIST thunderbird-139.0.2-et.xpi 443103 BLAKE2B 239ce5f78361990c6bfa152a2ca712b441f4aa65ea12754f95b8fcc374db9290dafaefe21960480a498d0efa4ab289f561c402129130ed24c7899bb3061f108c SHA512 ded3641aef11de10991738e32eda7f9d3337c2fbce8d09c0175a2d05fe5fd566da7b5381c052d7ccc20e022a2ee9223caa646cb2055384a30be7148c184a333d +DIST thunderbird-139.0.2-eu.xpi 471469 BLAKE2B 062f8df489839cdd1fbd8e8db2b031d914c82f06e1c976b17d4789072a56d054eec87aad53eeb8f55404ef3c4f2a2a7b6fd3126dd6b22116ecddb37b98a28e87 SHA512 dce8b9aacb8093db65acbe8894d3273f0426452c3e8d9467a8148a99cf8eaf660ff8f73854ca8c1e0d12dfccc8ff171233f09c8f6ea66cd1686389ccd72f4b5c +DIST thunderbird-139.0.2-fi.xpi 472730 BLAKE2B 8248cce82eb3a1dd19e8344d0e35779eb4414131d767299e90529c7798483500270990bbc920a2c35583158b5deb1626dc939042facb99990a028ed3dfbf22b6 SHA512 1b5f1f58fceaf0110d4f45917405f9763493defe2321e51cf080b8218dee4b18d945ab1e738b6d76e0919f3c3e8091755298b68701f6a90ca45f5a630f303158 +DIST thunderbird-139.0.2-fr.xpi 506094 BLAKE2B ecf846e35f58a912007708630379d0993ed8056c23c4e10d492efaf0b744ca28e026d5de1e429fd609154af84a7a844b47c0b3119fa4a2859b27b2244db8cb25 SHA512 6a5a4a03cf3293be7b73b5b03cc76388a30ac96e86d0b484dde869a9f0675a62620c1be4de85452808f4736daa1fdcb69dc59eebb79c24b075fb3e89223a80e6 +DIST thunderbird-139.0.2-fy-NL.xpi 488898 BLAKE2B ec7c30db940361f6bb60379a942e719a3d3d4e50135620ca328646d35d8b71d54e6cf1fe807bf6199f13fb2f750690759c344b3e666df38141325628b780da1f SHA512 0661c672576e545f2648389beb3f1a7a3b88f82f97501ecd4458bf3866b3cba7ed3cac6e3aca002b57be11c314f863f393fa4c07e04cefe24cc9dc3dbb588c52 +DIST thunderbird-139.0.2-ga-IE.xpi 377496 BLAKE2B a31ca14b3be95be0cba0c42b357f49ba2aca769b234b6527570630ee5c4388dfa2dc51ef6f03ae46f65fc39033616f5f96a939213fa51d983cebf8c60a4b6634 SHA512 69637770518f84b16a2d489a2f6cf8de4654092e6f4bc1582facbb3c01822b149900f3b53638353fa00c3f4db627790f9bb5ad1e2ebbae68c156decdb91e4e60 +DIST thunderbird-139.0.2-gd.xpi 463048 BLAKE2B 6fd39ba1918d4e0ba4c2ff2343a9166d88c7d5c9447a04dbff2ce23b503ba15fae486dd9c4fae5aaf9d70d6bf8c2992fe88174cb591983ebcfba1c1926a62747 SHA512 ad93b72fe90cbf8e345598a891dd48f862542a0982dc5a40859deb09bb5dc358331002dfb651aac1634e18ff23ed9e5c6b871c400b95f527c59dba562e032354 +DIST thunderbird-139.0.2-gl.xpi 471957 BLAKE2B cd9d47aec5cdf08f002bec6c10d1468e2dd293e5348ffbc3deef632556a7bcefea64fe455f88b81b678adf03ab915bfff8a1bef21717435338cda6600b450aba SHA512 c70a613b0dd6da4aaa22bbe8c5b65fa7b74b3a87903dacb6b8231f436d9697f3203a582cc80f9f05691bd23f1d4a0063039e9d4822e657296da0117861579b81 +DIST thunderbird-139.0.2-he.xpi 440194 BLAKE2B 59afc298bcb628b3ae04bc67e260266d292c8662f1813f15a9ff33d314ad61e06b95fc61fddbb327dbd9d6f13e468df23b1a2d37b2fbe681c071a70a6624174a SHA512 91832898dc683e58f666f15f656c62acbc734f6841dabc8b3aed5166d648be45a10af4a7ffbff418b10bef27ef5fe4e3ef1ced356383183daeed188440af2188 +DIST thunderbird-139.0.2-hr.xpi 458918 BLAKE2B 685116fef1c8b33796e20b8824b549610a2f8a5e3851f9ea5cc520095990242c3a51b39ed019d7787d24981d355b825f3b35a9ff990c39391f52c08726ae7035 SHA512 c18f90be0f2084301e91acea88f3ba0df72ff78d8392b162ff1f67927532f530092ce3d5007e06456a937c2ade30b61f5149f620f0d59e059dd7b309961d6194 +DIST thunderbird-139.0.2-hsb.xpi 512881 BLAKE2B 2bac73c57a47838a3012866624cb043352f43ae2f10111aa22d0373e342af9c2a7d38e58acce73d81a3827ae1fd97d6a88481ea29bd16632de63f9b2554c0cd7 SHA512 72f8e00673df72b40be2bd893a64eb3a8f38229439a9f75433be753393896cf4971d9cb1ea7ab97c31863cd5882f1053c3b1f11de3c67f88554876774a33637c +DIST thunderbird-139.0.2-hu.xpi 515601 BLAKE2B bf36176f11ff87b1ce4e791b325f50c327b966d429b2f3ac5a841a9968c57d9c9b20ec4be5f4bf832c23f825cbce0a830c016c3e2b0b30e2a9b332b3529f9977 SHA512 cb844b19768473c602e6e6e0a143edcb772a7c15caa2ff5face639ac31adc693711b1e3191a07c4adb0dddb6982e5f59e9d38a00e8e925aacf3d9bccdacfb03d +DIST thunderbird-139.0.2-id.xpi 464508 BLAKE2B 46ca1c2a62db549fb742bdba6eeba952895299240e9002e50faece172b6b3c383ccf1ab692c5e2a482baa58ab4ffaed9b6ec1ce67d486c6a1c96a0020a3f1c2b SHA512 8796350ed3396ddcb366eeafd2509d809ce6937de30edce3ecc3c08d2e088638baec539ba047d274e46228ca1c92a99adbe44b675930a40dc69b3ca56054ff5e +DIST thunderbird-139.0.2-is.xpi 481855 BLAKE2B 02a7041ce34c293ad8d23ce0ee80188487d6897d4879cfc42a8e9f54d3394814aa90c49e0256ee9b52c110b4eb8132eb1e279dce410a057621289aa3281627a6 SHA512 31c7cbb9c873e4e2a2e03f9996fb79e47c3e9e1edd35efaa4f83b898b3fbd9dadcec29c33328844d74a736b58324f4850516d0adfd54645cdf33e4a42376e3cc +DIST thunderbird-139.0.2-it.xpi 486744 BLAKE2B a65532251b0d031f439db7ed713001944636e82dc0e8ffcbdef50990facdd14a9dfacca396be95673f74840933ec8e83197e30bcdbb7ea94033b77822d7db346 SHA512 e05af7ffbc20cb2ddf60b99793575dc24ee3c12c83c02ef951f4bf5a3fc11daf163a4a002c1f19fefaefcd34a1f8f32d458f08ec3ba42eb3a4d1f02c1615216a +DIST thunderbird-139.0.2-ja.xpi 537134 BLAKE2B b4629e62f0110a0d31042a3ad0e0b5bd01813e4900b62754192a959048fc7cd3de6ac16ae8ad534fd94bab0e0101cca792fd4a0cadc6551d3ba9f4d12401609c SHA512 b9cdbe21adb0bc57d6320d379852b658d076602e3a97351bfa3575f4ba3ae77e18df449a854140989467885f93c70f0f29038cd02847ccaedb8e89d0c8cbf4dd +DIST thunderbird-139.0.2-ka.xpi 541999 BLAKE2B e3dd85de60a9b42f88369123651d91cbd6dcdc4e2c9fd45c6ec90a17ad91aae8a85c12684fbdda5e7642ea120a50c766e32c08e2cadc123b142d6871901167d2 SHA512 109460d8d571033d176e5fb92c522bade1171430f85ac6f32bb39026cb4111729aa41352d7b7ebb4091982b36e6489089b418c8799c8d30749158c8225a20485 +DIST thunderbird-139.0.2-kab.xpi 468317 BLAKE2B 2f97a6bb189adb6d619b8e468e0f3595e3f9731141cd10f3a10708e202fd90c6883d761978cd9263c2c0e26b7f6b34b2e58c1c0877bd9f3cc915fc02b0095911 SHA512 4f5d7ae873776d91338f0c8dab5d8a7f29ce348850f3fd2b49efc4856f66ca51b9754296de8360167a4cd33a68da9fd61b0179b8e5e66c37e6c9219a37b868e0 +DIST thunderbird-139.0.2-kk.xpi 572044 BLAKE2B e0cfbcdef0ca959a18d1fe57cb265923810f197322402ad62a09ec943c8d7886ec05dae04d4c3edf07f7a3ed37781fc3cc8150dc43e9f55e1fb6ab9346ceae09 SHA512 da418d73cf20a7dfbfcfc2d9068e264c3263d5d1168d68296e454be0efd0ac18054a068202020e1f6863513edaed472b58c26156c1e9c19a02ba2d425505e7cd +DIST thunderbird-139.0.2-ko.xpi 513101 BLAKE2B a56f6f3e438b78de04d4081ddb891dea0ecaba6aee00628848299c337fcb1d4a70aa7a1ffd49989d1d4dec145b928493cec74cb5bdd566b719ca255410fd952d SHA512 9dce9be5a166f65cb58565e90794f4b0ca2781a8f3d92ac6c3a76ec7cd58af4a4c1e46e737251e4c02c00c3790604502f3e79548f5468ce53402422e03d459cc +DIST thunderbird-139.0.2-lt.xpi 442903 BLAKE2B f5eac1fccd9c0b1ac0cc3d246543e07ea20473dce0afa2923eb80ce3deca3d7897c57d3804930108db1026aa046d5f2dfcbc25a51bb853256c10336b24165b13 SHA512 39fc745519ef47434ec130965efc482f7bb428ad76f6de436380e7faa2d106cf9f45bb2f5bfdb468df729904ee76e5615552f851e15c54ef28fe759e419fd001 +DIST thunderbird-139.0.2-lv.xpi 392675 BLAKE2B 3f206e23466e407a1c6929073e26a9ea43acb5b4e49467ef2b13b02d40911f91695e3afcf704adbe7201aaee45835439db42ac13c6e49d67e1464a49b753f6ce SHA512 06033972782dd701402480e8a60270273bc26571535111fcf519313e144d1c72dccb7d9fdd749d32b9acbfba4826ca5d3f9908cb561bcb9a5b406200cb430a83 +DIST thunderbird-139.0.2-ms.xpi 352871 BLAKE2B 3f75d9bc80976fc1e3a9f7d08e3ec5891811393c44da5276c261cdcb24e18f86cc4abf8254782c0e7d50e1169b632e35822cbdba59e4714fd27374493660e7cc SHA512 f13ce6a28d1f90f0a955f8a74e8314497c26ce3c9323375754a800eb36392037cb53d3d760fc24a910c90bdac5a58ed33ceee3ab431cf0c95af65fc16dc36c44 +DIST thunderbird-139.0.2-nb-NO.xpi 445667 BLAKE2B 16ee1d883f693e70c2a317e6c870de83ab93784f8574420467d2926ff4a2486b9bd52606e2f104aa8be2077fe0f89f9d72825348d2e0daa6e1c857dec90e48df SHA512 0acab0772ea7bafb0874373e5c843aa4cd0611d94e3b660e4715bd987b704f68d515e24558804cf4185174e12ffb5861a8397a349e029c3add7b91e25da38411 +DIST thunderbird-139.0.2-nl.xpi 480404 BLAKE2B 463c79408bc8e64393fcfed8a4ad3efec6847f650dd5589e15c2a343ebf7162577793e4d58062e15d13745897e3bd9891de95d03f6fa848f3f9b8a65311cd933 SHA512 8519cadbbc778875a83f60a375371d13c835551346861a9aba3c428f745db913f99bec1b0c97f5d5ac3394c0e1ac4c1ba48fd26439efc8e28291c6d5ce00edc7 +DIST thunderbird-139.0.2-nn-NO.xpi 465876 BLAKE2B 1c0c87267ec42671c407a3f925e634e830debebb5141049607ff74697da7803abf39e8916e9703f6481f89411a3019eda9458eb4ec17b9e526a63b4cd205e226 SHA512 e31196627f074ad1287c4feae85923a11f5850985c68479ac20eb13b7fd483e5e551de09e1b17c83d8d463cf3a9c74b239072c938308992558bc21bdbbedb880 +DIST thunderbird-139.0.2-pa-IN.xpi 433720 BLAKE2B dcd0141274007529bdf7c759e5f95cdf0612447594653cfa14450fc9cd72807402166ef71cb47687046b56ac508d25e61554f5f3bea803ec385b6089cf56db04 SHA512 ba339305b7f6f5cba9e323bea95c038c84d3b659b131e9ea6308a2685487f366d8acd696f3cb56047a91ca623907fd3ee60fa31ddbc1fd519fbc273fde347c4a +DIST thunderbird-139.0.2-pl.xpi 513174 BLAKE2B 36e4833f7b6da9af1d540544eca4fdc5fb863d9bd8fb110bec3e756b99d306ca21fde51d4c3fdfe573374d79cc48292b70d10dad780ed5e2726649c90434a964 SHA512 7cda2f06f7d5b50a7f0e185ae6cc5d6b84b2a3d49b9ac34f130e04cbc89e54d449f514c9d64c6465826f12e0375b373a1900631dfe3afdea10c535d120e26c92 +DIST thunderbird-139.0.2-pt-BR.xpi 488457 BLAKE2B a37f4b15016a70570a7d6b80c126a5bc605fd2b6efdbe1273854b18854c5c8377ccd0cd904762af57e47eb4f374c919d575882f3abd4825e883bf892bfec9fd0 SHA512 4b02fea6ec86015aeaa9c0ef430df91e77f059a36a16a2d659fe9abd74e7ededfcade5337c1a818a8a1f23b3da30222e446e46d3f567bc7999f01778b7ed95ba +DIST thunderbird-139.0.2-pt-PT.xpi 485386 BLAKE2B 057f38b1ef4a9ecd613eaa6435c35d40645bfd4d87d01c6f51a31b7d919bfdc990585fa799a48628d02722fd471b5c5d6cd3877dc24ad345b89130bf8044ad29 SHA512 fa4157bfed62136bf0e326c4b1ea19f7c971fad41896af92c7949a3a8a4cb61355cfc9bf3a6181d7e3a4a9cec300e8630843ce62191a4ca45291ef2144bd4953 +DIST thunderbird-139.0.2-rm.xpi 488210 BLAKE2B 497c280ba7bebc0b188494cbd6f76391b83df710efbc4d3a0c3f3b780158b96e4ceedc408e319b8b72555815ed7ab6c57a6c7e1ec928d2ef2c411623cd174a77 SHA512 ab1f840f5d1a14dc1e086487d1b2e7730d6a6a86acc1a266ff7a32bfc9e339972277d759b1e61debbf160f5e49dbc97034fc9564ee631891d41ba13d6c5cb809 +DIST thunderbird-139.0.2-ro.xpi 418448 BLAKE2B b6451c84bf7bda5264ec5e146b07afecf33a541ae4be39703ee1113c790df3ff96045a96046e757f41341c31d0abe17b46d673fa43b54d5cea1a66e1d4a499c7 SHA512 2d99922d75a38fae0abb741caae4987c2b827acbe35ca87def17170043252910bdb415638fb011a915d2e14342c06adb829989cdf667290249a79cb63840fb7c +DIST thunderbird-139.0.2-ru.xpi 590187 BLAKE2B 78e29bbc3702f49b6ab09acd380bed8f00c07eb429a6f1dd25e10241c4cb77b9d22f22e32f2f39f0133a92f3046847ecf94cd5c26f3f978471a7d488d3d50e4e SHA512 876eb6a9517373b2953cb2f1c5bf621fe1566167c325381ed790eabc4955dc462c7670f4770c06dfd1b7e5cc8cb0e819965c8936d9dc4433e8f1d6bcb5b44fb9 +DIST thunderbird-139.0.2-sk.xpi 517023 BLAKE2B c4f01b0fac02e394cfc8e9eb21552990c195fa4f8068943eb4d7b52e729b017eeec1906ac89801d3de2bb74ff96e3afce88baf5ed859e8a56fc5ded630878edf SHA512 b92b5df03148bd91dba5bf422378c2b3b14df7f3d5e999f3a789e8a360acf9d33d675725bf6159ba154efda0f38ef19873c4e5b8d864c4e7998774f04f4b00ae +DIST thunderbird-139.0.2-sl.xpi 483954 BLAKE2B 09d627a5d09176016caddc4d0e6ba67b838774a29cbc105ec05157c3ba39b47005c00af914568795dbe470cdf5dcd38b1a2b638a5578c2c2001bb325ff6a129b SHA512 6df46493e63f269d7728f99dd15766653a8a8aa22f486b51c729b18ba16fadd29ac5037728943a099a3327743ead2f676d85df984b2a2c2310148766957019a1 +DIST thunderbird-139.0.2-sq.xpi 504115 BLAKE2B 9a66ba72a6edebf537226fffdf66180b75cc156fd700e22e07d4d6e94e6a51eaa82ff9a3aae53367a1ad4be5b14999cf4df1b67ed69a19e7ec820363742da9ab SHA512 8376c09e0a6f590b367975f22577d0263dc48b36f287dbf819f1dc7876ca93bbe2cabae24180cf87892564de60ee2319462795018703f0bef3e508790f9254ea +DIST thunderbird-139.0.2-sr.xpi 496743 BLAKE2B b3aa3afc2d553173dca8499cc0fd89aa8a13d4d70fb5e9f32ae3678e2178f7c1cee78875dbe455d266b1300a5ec9da67f7fadef646814e691ac3169ef1435bd1 SHA512 f1552dc40a81da81672ae24d6040b724e84830b88e32f04921aff0bdc8e16c594ccde72e56d89a2c0c958b783476063fa5c0f010e11cd5c05432c539eab1a2fb +DIST thunderbird-139.0.2-sv-SE.xpi 482749 BLAKE2B abd09c7ff234603bc11d9dcf1ad7599072bb0380868f867e1756c06b65fd0d42010901e4bd1df7de5ffd197c0196472b86511ac42f69285a20b9ac83eef8574c SHA512 2209364ff5760468cecd126106a357951f7ab9d114d4091aa639828e863c4168163bf0d5ab1f263966b7d0e40f59deb4d3c3079fb2b9102534af9ed3aadbfe5b +DIST thunderbird-139.0.2-th.xpi 563674 BLAKE2B 1d0fa356b474da330b6498e78024289d01eed0f682339f40dca5e8f977bfca4628d80360d166e300f6e3c9040bee4965a9e6ca568f261c1f9ffc687318ed5ae1 SHA512 9b707f6c89b54db865e1ae0d0b4bb8cff8bb0ba4ff4d02fd2892eeb5365caf5aefeb60389b541f702e1e8235099e44ece75a430d3838ccbb38ff7a2e9f2868b3 +DIST thunderbird-139.0.2-tr.xpi 493122 BLAKE2B b8ffb01c2ac00f3809b695a07db7b7c9564e5bb407bd675079c403b8c220113263d3efd4860446e1f01f51a5586e82adbed504878071b75fdd0c05527a0dc9ba SHA512 ceb95750272369963ac59e5e6989bbcedb8a621dba471857f31fa698a4aa88e23597a1f276e7dfccf44db4321968434f0ff3b08791eed8db766a1fa09d2aef8a +DIST thunderbird-139.0.2-uk.xpi 579870 BLAKE2B 9a96863782fa6a2278134564d107d751342e5315054dafdd77aa696030d8fe1abd9f4d5bdea94b282960df639135185e1078180feb6045ceff7f3d2772e67fd8 SHA512 2bddd9a12a61e0d25103363ec30f9e4cc3f7dbda118343e23374980d141fdcf8303fde7c62ee06cbbad0d48d3ded230277736d81cbc51ea60fae09fba6041ff4 +DIST thunderbird-139.0.2-uz.xpi 356057 BLAKE2B e8a434fe2ba521d424c715384d7886b66493d534a4d0b488d98abbb968ede861ac97e21da09d2f15c8f6fcefed3d42f3aaec1ee76b3608f4e506529079caf958 SHA512 c69aae771dd95eb0d6a618af0ea895b4cc536cc88638dbd67a9d2d20b774745b084b649fa122f194194a383c54e759525abc50206c1bcd61b218d542d26c0c55 +DIST thunderbird-139.0.2-vi.xpi 516767 BLAKE2B 2bceb16d948315e99c454ae2d41884df9958a8412eb071eaf820eab0cfbe8498de02eaf26ac772553807f645e81559956c7083e1db0174c3f8048e11d7414bab SHA512 f3785e650276198c02d61e847415a867729a981c8cd916d88ac9ecba373cdc9668ffdae0561a8dff09078255d53452cb3d7c9b7449ecb46251f5ef4bbd67e080 +DIST thunderbird-139.0.2-zh-CN.xpi 506145 BLAKE2B d1241c380efa9e87257ee92e68d0197fc8632fd7e9dbb7d80a43750c2f1f57e25bb117de86ce18d565120098a50e23c15aab255715d9b8b5f649eda9f3955b29 SHA512 7be0650ebbdc31f61ea7b38605eced4c36f1b2647764c38f671415189e807438ba3051255196befea25a55c1afb44b425d8a3aa469fc8eabbfca658974997181 +DIST thunderbird-139.0.2-zh-TW.xpi 509370 BLAKE2B 1d3b4728926a83c65dccc13e95ee614d8cdbe5401f91c3551f29f8f59d56ed9f1cf6e9a83a7ee259d58862e2fbe198c28d05833d7e89c9ef6853c6db13b5f8bb SHA512 f391b30eb5b146f284f31f25caefc43ab00d9db887ee0a5ea8aacc739138ce38e7869bd7b79851868e4a7c61f300308cd60cfb09ccdd7b916335472e7faa7336 +DIST thunderbird-139.0.2.source.tar.xz 759561852 BLAKE2B 16998e3e6a0363a6f2b02f68a9e97540f8168300e5fb6c816b27506a936e58737537bbe025b4aabcfc0fe44f725a86aeb2c750bb1af11d9b192091d8a0f75a16 SHA512 edb20c692674dc5c3ba70673f7dd03710bf7ac0ce2be614a7a4b3d2b40b20b4974aab2a621dd5b43720c412a590c08f8b78abeb9b61f288f3217c6a04cc1e8ff DIST thunderbird-139.0.source.tar.xz 755313836 BLAKE2B 1804346bbfd01c3d4ccc44ea567f7bc573f6231bdaf3338ab6d151a74b28d84562cd5ab2b725420fa110feddf64aedbcabc41bbf21ca3cb5725daa0f5a5438b2 SHA512 8e749ceb7f0e88603ad244485b0d33ff209c71b7419debab5ca0bcecb3d9835079d72fee6333ba29458399ce748b92e55156ebbf1bd147a3787fa2f5bf1ed55c diff --git a/mail-client/thunderbird/thunderbird-139.0.2.ebuild b/mail-client/thunderbird/thunderbird-139.0.2.ebuild new file mode 100644 index 0000000000000..5d3c0c1226d6f --- /dev/null +++ b/mail-client/thunderbird/thunderbird-139.0.2.ebuild @@ -0,0 +1,1162 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-139-patches-03.tar.xz" +FIREFOX_LOONG_PATCHSET="firefox-139-loong-patches-01.tar.xz" + +LLVM_COMPAT=( 19 20 ) + +PYTHON_COMPAT=( python3_{11..13} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +RUST_MIN_VER="1.82.0" +RUST_NEEDS_LLVM=1 + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +# Thunderbird will have separate release and esr channels, matching Firefox's rapid and esr. +MOZ_ESR= + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit check-reqs desktop eapi9-ver flag-o-matic gnome2-utils linux-info llvm-r1 \ + multiprocessing optfeature pax-utils python-any-r1 rust toolchain-funcs virtualx xdg + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET} +) + +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz + ${PATCH_URIS[@]} + loong? ( + https://dev.gentoo.org/~xen0n/distfiles/www-client/${MOZ_PN}/${FIREFOX_LOONG_PATCHSET} + )" +S="${WORKDIR}/${PN}-${PV%_*}" + +if [[ -n ${MOZ_ESR} ]] ; then + SLOT="0/esr" +else + SLOT="0/stable" +fi + +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86" + +IUSE="+clang debug eme-free hardened hwaccel jack libproxy pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx" +IUSE+=" system-pipewire system-png +system-webp wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 )" + +TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( >=dev-util/librnp-0.17.1 )" +BDEPEND="${PYTHON_DEPS} + $(llvm_gen_dep ' + llvm-core/clang:${LLVM_SLOT} + llvm-core/llvm:${LLVM_SLOT} + clang? ( + llvm-core/lld:${LLVM_SLOT} + pgo? ( llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] ) + ) + ') + app-alternatives/awk + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.27.0 + net-libs/nodejs + virtual/pkgconfig + amd64? ( >=dev-lang/nasm-2.14 ) + x86? ( >=dev-lang/nasm-2.14 ) + pgo? ( + X? ( + sys-devel/gettext + x11-base/xorg-server[xvfb] + x11-apps/xhost + ) + !X? ( + || ( + gui-wm/tinywl + &2 + return 1 + fi + + if use clang && ! tc-ld-is-mold ; then + if ! has_version -b "llvm-core/lld:${LLVM_SLOT}" ; then + einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + + if use pgo ; then + if ! has_version -b "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then + einfo "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2 + einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES es-MX et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +virtwl() { + debug-print-function ${FUNCNAME} "$@" + + [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument" + [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset" + tinywl -h >/dev/null || die 'tinywl -h failed' + + local VIRTWL VIRTWL_PID + coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; } + local -x WAYLAND_DISPLAY + read WAYLAND_DISPLAY <&${VIRTWL[0]} + + debug-print "${FUNCNAME}: $@" + "$@" + local r=$? + + [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly" + exec {VIRTWL[0]}<&- {VIRTWL[1]}>&- + return $r +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + # Ensure we have enough disk space to compile + if use pgo || use debug ; then + CHECKREQS_DISK_BUILD="14300M" + elif tc-is-lto ; then + CHECKREQS_DISK_BUILD="10600M" + else + CHECKREQS_DISK_BUILD="7400M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + + # Get LTO from environment; export after this phase for use in src_configure (etc) + use_lto=no + + if [[ ${MERGE_TYPE} != binary ]] ; then + + if tc-is-lto; then + use_lto=yes + # LTO is handled via configure + filter-lto + fi + + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + if [[ ${use_lto} = yes ]] ; then + # -Werror=lto-type-mismatch -Werror=odr are going to fail with GCC, + # bmo#1516758, bgo#942288 + filter-flags -Werror=lto-type-mismatch -Werror=odr + fi + + if use pgo || use debug ; then + CHECKREQS_DISK_BUILD="14300M" + elif [[ ${use_lto} == "yes" ]] ; then + CHECKREQS_DISK_BUILD="10600M" + else + CHECKREQS_DISK_BUILD="7400M" + fi + + check-reqs_pkg_setup + llvm-r1_pkg_setup + rust_pkg_setup + python-any-r1_pkg_setup + + # Avoid PGO profiling problems due to enviroment leakage + # These should *always* be cleaned up anyway + unset \ + DBUS_SESSION_BUS_ADDRESS \ + DISPLAY \ + ORBIT_SOCKETDIR \ + SESSION_MANAGER \ + XAUTHORITY \ + XDG_CACHE_HOME \ + XDG_SESSION_COOKIE + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if use pgo ; then + # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure + # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage + # (PORTAGE_SCHEDULING_POLICY) update... + addpredict /proc + + # Clear tons of conditions, since PGO is hardware-dependant. + addpredict /dev + fi + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc" + fi + + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ" + fi + + # Mozilla API keys (see https://location.services.mozilla.com/api) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi + + export use_lto +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if [[ ${use_lto} == "yes" ]]; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + # Workaround for bgo#915651 on musl + if use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die + fi + + # Enable jpeg-xl only in Firefox. + rm -v "${WORKDIR}"/firefox-patches/*bgo-928126-enable-jxl.patch || die + + eapply "${WORKDIR}/firefox-patches" + use loong && eapply "${WORKDIR}/firefox-loong-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + + # Workaround for bgo#915651 + if ! use elibc_glibc ; then + if use amd64 ; then + export RUST_TARGET="x86_64-unknown-linux-musl" + elif use x86 ; then + export RUST_TARGET="i686-unknown-linux-musl" + elif use arm64 ; then + export RUST_TARGET="aarch64-unknown-linux-musl" + elif use loong; then + # Only the LP64D ABI of LoongArch64 is actively supported among + # the wider Linux ecosystem, so the assumption is safe. + export RUST_TARGET="loongarch64-unknown-linux-musl" + elif use ppc64 ; then + export RUST_TARGET="powerpc64le-unknown-linux-musl" + elif use riscv ; then + # We can pretty safely rule out any 32-bit riscvs, but 64-bit riscvs also have tons of + # different ABIs available. riscv64gc-unknown-linux-musl seems to be the best working + # guess right now though. + elog "riscv detected, forcing a riscv64 target for now." + export RUST_TARGET="riscv64gc-unknown-linux-musl" + else + die "Unknown musl chost, please post a new bug with your rustc -vV along with emerge --info" + fi + fi + + # Make LTO respect MAKEOPTS + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/chromium/build/toolchain/get_cpu_count.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed sedding multiprocessing.cpu_count" + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py || die "sed failed to set toolchain prefix" + + sed -i \ + -e 's/ccache_stats = None/return None/' \ + "${S}"/python/mozbuild/mozbuild/controller/building.py || die "sed failed to disable ccache stats call" + + einfo "Removing pre-built binaries ..." + + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Clear checksums from cargo crates we've manually patched. + # moz_clear_vendor_checksums xyz + + # Create build dir + BUILD_DIR="${WORKDIR}/${PN}_build" + mkdir -p "${BUILD_DIR}" || die + + # Write API keys to disk + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die + + xdg_environment_reset +} + +src_configure() { + # Show flags set at the beginning + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + local have_switched_compiler= + if use clang; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + + local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }') + [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}") + [[ -z ${version_clang} ]] && die "Failed to read clang version!" + + if tc-is-gcc; then + have_switched_compiler=yes + fi + + AR=llvm-ar + CC=${CHOST}-clang-${version_clang} + CXX=${CHOST}-clang++-${version_clang} + NM=llvm-nm + RANLIB=llvm-ranlib + elif ! use clang && ! tc-is-gcc ; then + # Force gcc + have_switched_compiler=yes + einfo "Enforcing the use of gcc due to USE=-clang ..." + AR=gcc-ar + CC=${CHOST}-gcc + CXX=${CHOST}-g++ + NM=gcc-nm + RANLIB=gcc-ranlib + fi + + if [[ -n "${have_switched_compiler}" ]] ; then + # Because we switched active compiler we have to ensure + # that no unsupported flags are set + strip-unsupported-flags + fi + + # Ensure we use correct toolchain, + # AS is used in a non-standard way by upstream, #bmo1654031 + export HOST_CC="$(tc-getBUILD_CC)" + export HOST_CXX="$(tc-getBUILD_CXX)" + export AS="$(tc-getCC) -c" + + # Configuration tests expect llvm-readelf output, bug 913130 + READELF="llvm-readelf" + + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG + + # Pass the correct toolchain paths through cbindgen + if tc-is-cross-compiler ; then + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}" + fi + + # Set MOZILLA_FIVE_HOME + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # python/mach/mach/mixin/process.py fails to detect SHELL + export SHELL="${EPREFIX}/bin/bash" + + # Set state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + mozconfig_add_options_ac '' --enable-project=comm/mail + + # Set Gentoo defaults + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-disk-remnant-avoidance \ + --disable-geckodriver \ + --disable-install-strip \ + --disable-legacy-profile-creation \ + --disable-parental-controls \ + --disable-strip \ + --disable-tests \ + --disable-updater \ + --disable-valgrind \ + --disable-wmf \ + --enable-dbus \ + --enable-js-shell \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-packed-relative-relocs \ + --enable-release \ + --enable-system-policies \ + --host="${CBUILD:-${CHOST}}" \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --prefix="${EPREFIX}/usr" \ + --target="${CHOST}" \ + --without-ccache \ + --without-wasm-sandboxed-libraries \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-ffi \ + --with-system-gbm \ + --with-system-libdrm \ + --with-system-nspr \ + --with-system-nss \ + --with-system-pixman \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system + + # Set update channel + local update_channel=release + [[ -n ${MOZ_ESR} ]] && update_channel=esr + mozconfig_add_options_ac '' --enable-update-channel=${update_channel} + + # Whitelist to allow unkeyworded arches to build with "--disable-rust-simd" by default. + if use amd64 || use arm64 || use loong ; then + mozconfig_add_options_ac '' --enable-rust-simd + fi + + # For future keywording: This is currently (97.0) only supported on: + # amd64, arm, arm64 & x86. + # Might want to flip the logic around if Firefox is to support more arches. + # bug 833001, bug 903411#c8 + if use loong || use ppc64 || use riscv; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + fi + + # riscv-related options, bgo#947337, bgo#947338 + if use riscv ; then + mozconfig_add_options_ac 'Disable JIT for RISC-V 64' --disable-jit + mozconfig_add_options_ac 'Disable webrtc for RISC-V' --disable-webrtc + fi + + if [[ -s "${S}/api-google.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-safebrowsing-api-keyfile="${S}/api-google.key" + else + einfo "Building without Google API key ..." + fi + + if [[ -s "${S}/api-location.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-location-service-api-keyfile="${S}/api-location.key" + else + einfo "Building without Location API key ..." + fi + + if [[ -s "${S}/api-mozilla.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-mozilla-api-keyfile="${S}/api-mozilla.key" + else + einfo "Building without Mozilla API key ..." + fi + + mozconfig_use_with system-av1 + 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-pipewire + mozconfig_use_with system-png + mozconfig_use_with system-webp + + if use system-librnp; then + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment + mozconfig_use_with system-librnp + else + # This controls the backend of the bundled librnp. Choices are "botan" and "openssl". + # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp. + mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan" + fi + + mozconfig_use_enable libproxy + + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme + + if use hardened ; then + mozconfig_add_options_ac "+hardened" --enable-hardening + append-ldflags "-Wl,-z,relro -Wl,-z,now" + + # Increase the FORTIFY_SOURCE value, #910071. + sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' "${S}"/build/moz.configure/toolchain.configure || die + fi + + local myaudiobackends="" + use jack && myaudiobackends+="jack," + use sndio && myaudiobackends+="sndio," + use pulseaudio && myaudiobackends+="pulseaudio," + ! use pulseaudio && myaudiobackends+="alsa," + + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}" + + mozconfig_use_enable wifi necko-wifi + + if use X && use wayland ; then + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland + elif ! use X && use wayland ; then + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only + else + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3-x11-only + fi + + if [[ ${use_lto} == "yes" ]] ; then + if use clang ; then + # Upstream only supports lld or mold when using clang. + if tc-ld-is-mold ; then + # mold expects the -flto line from *FLAGS configuration, bgo#923119 + append-ldflags "-flto=thin" + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld + fi + + mozconfig_add_options_ac '+lto' --enable-lto=cross + + else + # ThinLTO is currently broken, see bmo#1644409. + # mold does not support gcc+lto combination. + mozconfig_add_options_ac '+lto' --enable-lto=full + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + + else + # Avoid auto-magic on linker + if use clang ; then + # lld is upstream's default + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld + fi + + else + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "linker is set to bfd due to USE=-clang" --enable-linker=bfd + fi + fi + fi + + if use pgo ; then + mozconfig_add_options_ac '+pgo' MOZ_PGO=1 + + if use clang ; then + # Used in build/pgo/profileserver.py + export LLVM_PROFDATA="llvm-profdata" + fi + fi + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + mozconfig_add_options_ac '+debug' --enable-jemalloc + mozconfig_add_options_ac '+debug' --enable-real-time-tracing + else + mozconfig_add_options_ac 'Gentoo defaults' --disable-real-time-tracing + + if is-flag '-g*' ; then + if use clang ; then + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*') + else + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols + fi + else + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols + fi + + if is-flag '-O0' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0 + elif is-flag '-O4' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4 + elif is-flag '-O3' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3 + elif is-flag '-O1' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1 + elif is-flag '-Os' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os + else + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2 + fi + fi + + # Debug flag was handled via configure + filter-flags '-g*' + + # Optimization flag was handled via configure + filter-flags '-O*' + + # elf-hack + # Filter "-z,pack-relative-relocs" and let the build system handle it instead. + if use amd64 || use x86 ; then + filter-flags "-z,pack-relative-relocs" + + if tc-ld-is-mold ; then + # relr-elf-hack is currently broken with mold, bgo#916259 + mozconfig_add_options_ac 'disable elf-hack with mold linker' --disable-elf-hack + else + mozconfig_add_options_ac 'relr elf-hack' --enable-elf-hack=relr + fi + elif use loong || use ppc64 || use riscv ; then + # '--disable-elf-hack' is not recognized on loong/ppc64/riscv, + # see bgo #917049, #930046 + :; + else + mozconfig_add_options_ac 'disable elf-hack on non-supported arches' --disable-elf-hack + fi + + if ! use elibc_glibc; then + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc + fi + + # System-av1 fix + use system-av1 && append-ldflags "-Wl,--undefined-version" + + # Make revdep-rebuild.sh happy; Also required for musl + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags + + # Pass $MAKEOPTS to build system + export MOZ_MAKE_FLAGS="${MAKEOPTS}" + + # Use system's Python environment + export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach + + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none" + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Portage sets XARGS environment variable to "xargs -r" by default which + # breaks build system's check_prog() function which doesn't support arguments + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs" + + # Set build dir + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}" + + # Show flags we will use + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + # Handle EXTRA_CONF and show summary + local ac opt hash reason + + # Apply EXTRA_ECONF entries to $MOZCONFIG + if [[ -n ${EXTRA_ECONF} ]] ; then + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!} + for opt in "${ac[@]}"; do + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--} + done + fi + + echo + echo "==========================================================" + echo "Building ${PF} with the following configuration" + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do + [[ -z ${hash} || ${hash} == \# ]] \ + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}" + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}" + done + echo "==========================================================" + echo + + ./mach configure || die +} + +src_compile() { + local virtx_cmd= + + if [[ ${use_lto} == "yes" ]] && tc-ld-is-mold ; then + # increase ulimit with mold+lto, bugs #892641, #907485 + if ! ulimit -n 16384 1>/dev/null 2>&1 ; then + ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources." + ewarn "Please see bugs #892641 & #907485." + else + ulimit -n 16384 + fi + fi + + if use pgo; then + # Reset and cleanup environment variables used by GNOME/XDG + gnome2_environment_reset + + addpredict /root + + if ! use X; then + virtx_cmd=virtwl + else + virtx_cmd=virtx + fi + fi + + if ! use X; then + local -x GDK_BACKEND=wayland + else + local -x GDK_BACKEND=x11 + fi + + ${virtx_cmd} ./mach build --verbose || die +} + +src_install() { + # xpcshell is getting called during install + pax-mark m \ + "${BUILD_DIR}"/dist/bin/xpcshell \ + "${BUILD_DIR}"/dist/bin/${PN} \ + "${BUILD_DIR}"/dist/bin/plugin-container + + DESTDIR="${D}" ./mach install || die + + # Upstream cannot ship symlink but we can (bmo#658850) + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin + + # Don't install llvm-symbolizer from llvm-core/llvm package + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die + fi + + # Install policy (currently only used to disable application updates) + insinto "${MOZILLA_FIVE_HOME}/distribution" + newins "${FILESDIR}"/distribution.ini distribution.ini + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json + + # Install system-wide preferences + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref" + insinto "${PREFS_DIR}" + newins "${FILESDIR}"/gentoo-default-prefs-r1.js gentoo-prefs.js + + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js" + + # Force hwaccel prefs if USE=hwaccel is enabled + if use hwaccel ; then + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \ + >>"${GENTOO_PREFS}" \ + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js" + + if use wayland; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs" + pref("gfx.x11-egl.force-enabled", false); + EOF + else + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs" + pref("gfx.x11-egl.force-enabled", true); + EOF + fi + fi + + # Set dictionary path to use system hunspell + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref" + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell"); + EOF + + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it + if use system-harfbuzz ; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref" + sticky_pref("gfx.font_rendering.graphite.enabled", true); + EOF + fi + + # Install language packs + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') ) + if [[ -n "${langpacks}" ]] ; then + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}" + fi + + # Install icons + local icon_srcdir="${S}/comm/mail/branding/thunderbird" + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg" + + insinto /usr/share/icons/hicolor/symbolic/apps + newins "${icon_symbolic_file}" ${PN}-symbolic.svg + + local icon size + for icon in "${icon_srcdir}"/default*.png ; do + size=${icon%.png} + size=${size##*/default} + + if [[ ${size} -eq 48 ]] ; then + newicon "${icon}" ${PN}.png + fi + + newicon -s ${size} "${icon}" ${PN}.png + done + + # Install menu + local app_name="Mozilla ${MOZ_PN^}" + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop" + local exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + if [[ -n ${MOZ_ESR} ]] ; then + local desktop_filename="${PN}-esr.desktop" + else + local desktop_filename="${PN}.desktop" + fi + + if use wayland ; then + use_wayland="true" + fi + + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die + + sed -i \ + -e "s:@NAME@:${app_name}:" \ + -e "s:@EXEC@:${exec_command}:" \ + -e "s:@ICON@:${icon}:" \ + "${WORKDIR}/${PN}.desktop-template" || die + + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}" + + rm "${WORKDIR}/${PN}.desktop-template" || die + + # Install wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}-r1.sh" ${PN} + + # Update wrapper + sed -i \ + -e "s:@PREFIX@:${EPREFIX}/usr:" \ + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" || die +} + +pkg_postinst() { + xdg_pkg_postinst + + if ver_replacing -lt 136.0 ; then + elog "In this version of Thunderbird, upstream introduced an in-app notification" + elog "system. Setting pref 'mail.inappnotifications.enabled' to false and nullifying" + elog "'mail.inappnotifications.url' may help you avoid these messages, if you don't" + elog "wish to receive them." + fi + + optfeature_header "Optional programs for extra features:" + optfeature "desktop notifications" x11-libs/libnotify + optfeature "encrypted chat support" net-libs/libotr + optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas +}