diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-04-08 17:58:33 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-04-08 17:59:55 +0200 |
commit | 3a31fcbd3122281f79d086a4f4517f4aa917a7d6 (patch) | |
tree | 367fb3b53720a5d62c5f8e09cf88561859463c1c /mail-client | |
parent | gui-wm/sway: 1.6 bump (diff) | |
download | gentoo-3a31fcbd3122281f79d086a4f4517f4aa917a7d6.tar.gz gentoo-3a31fcbd3122281f79d086a4f4517f4aa917a7d6.tar.bz2 gentoo-3a31fcbd3122281f79d086a4f4517f4aa917a7d6.zip |
mail-client/thunderbird: bump to v78.9.1
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/thunderbird/Manifest | 65 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-78.9.1.ebuild | 1100 |
2 files changed, 1165 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index d899d4531db5..38577def3abd 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -64,3 +64,68 @@ DIST thunderbird-78.9.0-vi.xpi 674604 BLAKE2B 188a95bc4795d296f86425c59fef598c0b DIST thunderbird-78.9.0-zh-CN.xpi 687187 BLAKE2B 95e3c1ea1ccdbe5c652cb64557d0e439bc29632f322bf5baffc1baec96b6848057cf629534ae23511aaaaa136f2b72db80ee2527f66d3f01592a7302622805f8 SHA512 69e17fe996d23478a1a5741b49722b0beb0a471f7617db8181baacbae8e9fa20ba776b9787d8847b8dc16797420c7bf52e014e1376048f342fd2a23028481533 DIST thunderbird-78.9.0-zh-TW.xpi 687614 BLAKE2B 3c0151fe2835d1056a7e54300448910f693c004d95688a78d3e71eaa4a11c8bb266a9c1870ad03b2d9146dddb5ee36b854ef51698d338303f9887b7eb69a2e2b SHA512 41d1166f75f3979c7885349fe58306f7e64c701abf6ad57233fb7e6c62cd6834e9b5284cfcd0d7489f742a28b5e60e8ac4fe2527ad742cf4df21bff7187c4587 DIST thunderbird-78.9.0.source.tar.xz 353051768 BLAKE2B 4251842f532a63fe6c882559a0bd2ec66a849e125fcc317582031cd5d3f67792b52293929d68dd5fef94ed707e013150906365fafbcd1d557ef1f1aa98c5c2dc SHA512 fa5f9fee79c19810682b0848c2a9ca9518ca755b47689984165538d4d2a3d29423dd061691d5d227869472ca7275680e03f2a2b75766707cab264a9733d064cb +DIST thunderbird-78.9.1-af.xpi 548335 BLAKE2B d8e96e962a8c4bbca9735042b779ab29f88cb7e37e4fc81538bcf8892f89f3cfd4c84cbd6a52afe15e51c988f7e31d3907fd84a190ce52800b9a51db0e86a634 SHA512 b62227af55a5c630d85b6df8e18f8a6b81be31627cf739a82fa718eed2f4ac46e59a79a8863cf6b50dabdc1557feba8ea2b080b7fc8418b1f79222db5f71fd70 +DIST thunderbird-78.9.1-ar.xpi 648609 BLAKE2B 8a5d124dd05d4e604710b7720f57ec11c2b4719029556c79bb7c68aea9a52fc272a16639de17ec66d1778e9fc3ee4b563ed9a20efee054a3a9e26dbc0d3534fa SHA512 a9d10d6c8bbdd3df4c688e907f08a33cf376d955da0e5531b3cef0638e17b7d9058eae8e61f51fc35292c582f238cec02ebc8698416e34730f545d667875f16f +DIST thunderbird-78.9.1-ast.xpi 561260 BLAKE2B 66cd5adf3c7a28019a09d07c4632cabc7ea26b92c5bb9c31ecbc48ed086347c1d9a25258791e58f62ea7560fe9bc01d143e142a791361ee9ea256cb0a0dac8d5 SHA512 8dc474a1e9c3cf54bc878723844d798b5aaf8f2d768986a8761d9767e6c67b95b33731b2e84931d144d6300ac2cdc239754ce2b12c340521318c0d4671c6ef85 +DIST thunderbird-78.9.1-be.xpi 666673 BLAKE2B b36d0526ed3801845d612d6826aaac79a9fc4a8e702a4cb5f99cfa23f6ff3bbf338b005d0cac2548951506bcdcf73161b0df9ce44375c1c1bab9ed7c2f163c90 SHA512 9e1349f2544ffd66d05729aa20b5ce1fbf7b7808eb2969668c9544988ff101d94701b186d14e72d1fd28d96394eb5ddcc0ae81ebe26a10d146a05c50bfc77199 +DIST thunderbird-78.9.1-bg.xpi 672415 BLAKE2B ad2004110986477a483b1a33d7803a8c673d45ebe78c0c6f5bdcea8b03c3c32ba976bae7875981add477f72d001065b843333964a1a795a89af18104f35c2ca3 SHA512 58c58b940a9fbfea082b2d68f225719a34f14060529d4483decf87ea49ef3b566dc451563317e47ec0f714267c0d72223fba450da26384adae6afb0beeac6714 +DIST thunderbird-78.9.1-br.xpi 604528 BLAKE2B f796cf976d34fdaa7c11f63e006bc114db9a6b4baf1a6c77f8686bb65c644063c9482a4389a793169550c057c45c2a37a5a132994bcdb5c5d2f06eb8eae5467c SHA512 d4d9aa0e5bdc16a629aea43f759c07e70ceea3bf65b9eceffbbe902f47eead80ac61f4b1a020b65084e2faf147185f66d50fc648310fd42c6f95bacb8bea3418 +DIST thunderbird-78.9.1-ca.xpi 620444 BLAKE2B 62cb18845375dbbfabfec546ce21d6f2b341ee484b2f786135a33cc01ca80339ab94af41643108f917a705601581f959eb18431baf13d82653ca30fb91130ad8 SHA512 d1ba3473b6955c03b0bc49fe9906eea25cf72858486c05287aa5644efe07a5817d0588da73e78d69de70009f9e1506462ea3d67d1baee668ca22ac1dce2e01c7 +DIST thunderbird-78.9.1-cak.xpi 635645 BLAKE2B 4347d3036d67654f8352baed55a89202a840a5c3d048dacec93067a5d54406a32b9097154fe62ff5023ad97d9b570c92e9701788fc7251547a3414fe634919d9 SHA512 6d83eec6024813899f5336942ed2673a35829b9fcf56a49f0de3e4b8b47f698755c2f905e02877cfbc120d64290c1c25ea4af5f45526c9d51aa97149ddb4e103 +DIST thunderbird-78.9.1-cs.xpi 635346 BLAKE2B e05833aedd52083346f68d48ee2e85ad13983bf881a5493e20b575f927fc27334c8287c97a3f7e5168c0b6ab34f264bea1271971c3f998a1b95d23fda452ad99 SHA512 e67a4fedd015d6d425465045058c0ee2b7caa9b3c2c3cfd606121905e4bfd55e794eae8729ddb38bf6c7a61f0ee496b84da56296c08df64743f4a69299c76fc6 +DIST thunderbird-78.9.1-cy.xpi 646243 BLAKE2B f0605c0c3d7f7012c1b49ddcd24615adbc80b67bff6afbf538205d1b1d3af04bd47d5565ccbdc32c9682ab178d1cc56cbea482e3aafc932c2e443d7e9fc28d80 SHA512 38279017129f79d1bdb99aca34ff68c37ea5ef2c43add0d590ea51001c98edb9ca59399b5f005ee6528db7dd9e99d78642b921743e5aa5751981978beeaa0724 +DIST thunderbird-78.9.1-da.xpi 620992 BLAKE2B 37dce7c0f27f97f7f4fb9f1412e2cd5644b4c87d6218186695c6cb34e1fa7f9b886625f1817dc229da4a9be3c43cf61b06eecda1578ceb0900439d4bfdc169a8 SHA512 6fe4d4ff9db54c3c90263ca40074b89b106b7cd4966db436dd61c6ab8a3b06c30f396fb800a705ccd8d15e7368cb3dc4a54877cdea059e1896012f61f8537b6b +DIST thunderbird-78.9.1-de.xpi 665183 BLAKE2B 11b271928cf7679e104e1a167478853e2c3cdd8d72852c77680515b9c55a409689b763cfdbb69e5acb54e8965e10c438caaee4e5f12cf5c6f74ad2a12fbb96a4 SHA512 90b2640fb22062cb2311ea7125ae4033056a21b6c1cbd7ba42df0125d2a07ff6dee897afa62434c67e568ee30b248d848a9226c9e4ba9bb89bb92488ccb2c7b4 +DIST thunderbird-78.9.1-dsb.xpi 666771 BLAKE2B ef0c0db07851274928910288b0b4832bdd0a7704324584b68c287b934d86950b072d746ee2623e85a3a4da8ca8ac76903296ea98958dee816874a020ad40700c SHA512 485f95d4726f5326533fafad685f68590d2de8ae1de0b4f5464f41d827bca7860cf3397b60523b9d90011526e2622bfc1b1b29d995f111b0071f96524e658bf2 +DIST thunderbird-78.9.1-el.xpi 774458 BLAKE2B b1afde66e2b3b7d111d7a05588c14fdf36fb62ef93bde0493eefa2f203999c2ac43353cce0e36116dc848227c2b3a86aab41e3af8ec0ded754dee1d24d1c3c91 SHA512 0edcbe0f2669eb52a1d72978c37203caf6496e096f97cdf96227be7ef130fb238fcbb83736f7454beedf671682d61f389cb576a3e4a46128eb608a4c0161bb40 +DIST thunderbird-78.9.1-en-CA.xpi 611777 BLAKE2B 993af766acf811832a83863fb02f9b43f149cf2ad9c29bcec0528dd158195a16902a6e22786197e919665889c282d6c06437918a435616d96fc44926decece6c SHA512 1d320bda48603f782e35bdbbf17350720114b919c608fce1702e0c94050c96c40dab28298848e2764af455b77f604cb73c4d4c22f26b1b0f1a311010cc7e196b +DIST thunderbird-78.9.1-en-GB.xpi 611179 BLAKE2B 2d9f0a5fc4f29043992f585ea65f3ba260a661cd25d9bbba3d0f5d78897e1ae863c670edffc0e564b2f4a6eb4ee1db3f3d88dbc277459753636b47d0e13eb471 SHA512 29eabbc71da539d15286a523f3aef38f7e83b6f63d5bd2094447bf996a355fcf24f67107237526815797fd9343bd5379fc645f970838fbb79fc5fdae53d872e0 +DIST thunderbird-78.9.1-es-AR.xpi 657785 BLAKE2B ae6d0e3c865d950ab967a153ebf03fd82a4dda5c9d693bb0ef1a2f966a708373d16e978c2333f0cb34227b046c09ca961f84a0a6952e6b01cce03c29cd924234 SHA512 8d4867e073e6e7f169bc1b752e788c1bde63bf518807a3df24705e2b41a7a27a7162b7c45e1998cca90b54066d148efb63802e8073bf57530eaf77e1b85cc885 +DIST thunderbird-78.9.1-es-ES.xpi 569800 BLAKE2B 95ffc89e39ef7ec5cd358fb45620b7c3f12c2cf1037a3a2851173fc692cc6fdbcc520dd39b322678ba78cce545f7c47af2f239a51dcae6f5c901ee6e7c28f050 SHA512 76b917c8177dd456532e3ec4004d364bdaf93f4dc715f4067d8f80df5b6ed4458f6870c7aea79324596b3a71820d1a0e02287d18b64a0f9540d8356783db1084 +DIST thunderbird-78.9.1-et.xpi 597728 BLAKE2B 5cb7280f004ce6444b26c2282bbd698a35cb01930e83e2b4e288d69f3b7a03490f7e3fe8f3a9b0466ca3a3ce06e5884593c3fe6456e196671cb61f66926d0511 SHA512 58e9bdb8d362732c7f2a8bd3a19ba47faf61f4629522dfa1b11e711a0247aa699421d522ab39ab6787a87cbfc7e201a94daf1c7d62832c3547ae7ad8a0118a54 +DIST thunderbird-78.9.1-eu.xpi 632973 BLAKE2B fbc2fe779339ebdf6c57b15c8022f638e8cc26226f137ad4c4231ee4567e9531be7276d32501dea5ce8e4a455a34b496254438c7acbbd2d8a28f1dfe30ef629f SHA512 1c0919e050075709c9a1d8f8235377438af8f5b89cc3bb67be6dfd88505c19ebca1162460199514b5d89ae5839e8b06f7714a7efef45a2eb638ab51f7f748362 +DIST thunderbird-78.9.1-fa.xpi 639753 BLAKE2B a69e12408c6d2633f24baafaecff161eadbf543da955e2a54740b420d692441f52f9bfc2d2a78a864c8d1fe1ae31b572e30a1aeea8af1b1e9b90d1cfa090dacd SHA512 5474b68165d10d383f129c0632d2686260162f65c53cef3bed13c45f51ccab1a96b946facdbd8678a3ceb1b925e1adc14e24b2ebf387e54a452a0ab26fd918a6 +DIST thunderbird-78.9.1-fi.xpi 642454 BLAKE2B af560de642d86a968db4e08ac12c3b8d1900367b5d924416a6c25326facce8ed2fafe109cf23ec1fbb60aeca03a64b23b3ff21a84758356d69d2592cd86c07bb SHA512 10fa8aa47677ae500c8509f94c6c13e242bd9e1eb95babc06e74ced4162cde46235b2f5dc3233e310e8f6c64e4ef9d90afd6ef274f85a9dfbeb9ed4b84e27ef5 +DIST thunderbird-78.9.1-fr.xpi 669492 BLAKE2B 7a310dbd33df5dba9ff9d0c7c9bfe0501a2bdf4cd543f06be15786719947217c36524413fa0e28b52dd802c52ff6118b67107b12003ab21b67f6f97c2edd3979 SHA512 26c7f5e5681b2e775b94278a1a927d2b297da6c797f971c9f87e5c20c481df71f4a796157a80f04d37ad6ce0d36824df92be66a2148b2fcd4767c20273398a09 +DIST thunderbird-78.9.1-fy-NL.xpi 653076 BLAKE2B 8bb7c734eb96aeef6ded69c41debd649587b7a37c160c64ad97f4f99799bf6f6048f7845aa9989fc025eaaa9bd534965cb3ad010273ec92aad8e50b1d7003a0d SHA512 b30238989a5ee923fc30cbc6c06d87f255898d2df62747f16a2a5c557b0304d4e96a2989ce358b41dd39fc031ebb4618e3b99cb09c41f042b533438334dc91c4 +DIST thunderbird-78.9.1-ga-IE.xpi 600704 BLAKE2B 3c618adf1b7d2e98e629e64db33e5b52d68fbc5d0cbdddadc4f1e4c14bcec569bc2978a8547b1393e10e84d3efdf5e2507c775bf781f50a7c5b4340551f2d828 SHA512 4f31fb070368e9c9a2ac878a8e18e3ae817439a871a1b43c29d6a538a21207cbd1317e9307eed678a841b863bc7d5442c1837aea04364a24686b55d796ba396a +DIST thunderbird-78.9.1-gd.xpi 609384 BLAKE2B 17e984ec033cfbea411b5f3bdfffc528935c801cba4fb51415f458705e489431845460e5931e75a28e1bcb997891437bda43d6e91e798109462a13734e9e25ec SHA512 c13ccaecc7b0e8bca79eb7aeefaac8ffbb570d8ebe9566b11f8c4ceb1e777543c96d13f203ae120342d3a7a8ffce6ff5737a0eba2dfabceb10fae15e804760c0 +DIST thunderbird-78.9.1-gl.xpi 615719 BLAKE2B c972b7552b87577009e28fefb5dcd2f277359b592f056c75289627bead45b0c07898bda8073c65abb7cedf5feffa23df3bd589d993b584a83242d8d0aed9a76f SHA512 34ae9e788813e53e83b49f6d3fce85a83ebc59159ec40a9889ac6971b5b1a67ed89386ccdeca9524c059166784fb41736084c572b5ca988c423a763d494f9a43 +DIST thunderbird-78.9.1-he.xpi 640488 BLAKE2B 4a3c883e47f93ec6faa31b3d331b4552de8b364818521de8bb69de5fd8082e9901d38d9370946f733e2650de1c4aa0e141e455a1ec89cfe01088f63f6850b531 SHA512 5a87a55efb71b73152eb8add0be5e63290cdce709810d2921f9a9bda726e13c2afc9c9456d8abff295f1e70bd593829b68e8473a515232599b36353a53215ee3 +DIST thunderbird-78.9.1-hr.xpi 629034 BLAKE2B 8bbaef8f0fb1dec6c3e2a0a4c089e819c337e135f05e22a18412ec74c789f95d9b58d2e8bc55351057bc9f66b0b2907e8bedcd8ece0997f849c1db7717f5f8ac SHA512 aa27403e8638eff02b351f3d19c8d5003fd7f83c0a01ea051fbd639c6213740c0bd3612145a4743a789ae9b8ff437b55568c60c86e08855187ed3faa9e1082e6 +DIST thunderbird-78.9.1-hsb.xpi 668608 BLAKE2B 3f38ea8fa2ebb964e40924aaee3bde290afeeb15ba129fe0a752ebebac1d002c0e1a6bd479aa967c0f136beca8217332782faeaf1d6d563db23ae660de2557da SHA512 3a7cf3b3a370698969fdfa92621ac204bc74ca86caa59ebbb346111ecf0dcaf9bdb6c8c92e3f1fbf08ca6cee88dc03f22af2ec60b5f59ebf98692ffc67f6e0a2 +DIST thunderbird-78.9.1-hu.xpi 679829 BLAKE2B c990e3f8f63e495883c824102ebab6cda03125c53447df7ecac6ade285080548053456426d751c15986f4809f7623657b8575682e8ed0536339d3200a7f558a5 SHA512 010ff9c072a934aea5e2406c210c0e383c28f4ef27ec57ecb6e76bc12246d4ce88bd866ed3e0107a85c317a26728470ff13f3c9f519b8553e8bb6214592f21c8 +DIST thunderbird-78.9.1-hy-AM.xpi 713329 BLAKE2B 608f26ca7a0c4ac11bfaa5cc04196244225a15d5fb05909a5352ff4596bfc4c3862f66d4c5d2bda3a3811e75163d4282a54754d8e99c5c3a80f8d2267713eb74 SHA512 c0daa2a0e27de1d540377f7105bb520d937a9cfd1da26099f951f49edd3803693ab911efb4bd5441eeccfc5f1c35aac1b4d4872b29c0fc972efa284a27799a9e +DIST thunderbird-78.9.1-id.xpi 620672 BLAKE2B 44aa031d1911b338e9fa8618c63ed716d288cb043dde0b0bb0f9afa9ed8478d69d0cb672340d0e46c95b7ccd53232db81708e21191453d8bbe0bc982383c1945 SHA512 48a90a71a7e9c4908850b1725716b13111fcdc1eb8dec900f3a7876c96cca44409cb8f0af79d30495b053fe5ef9d6fb3cf469a9e61511f579dfa6907270b86da +DIST thunderbird-78.9.1-is.xpi 581645 BLAKE2B 4f3ccc13da3d9f7f35baabf925e6d156ede2b9bc6b94693ba3010bcd5bccbc3a8578a071342b6ad8794ac313e3859661c872701b1cad7c5d2d232eacaa93f714 SHA512 ff6ead205bbae40ac4c122f21f68b0c2332b17cc7d4ff7309618539e8b864772d3dfce05786494e361af6c60ff13e0607ad8ea6da4bd5ab46c28f9642100ecc8 +DIST thunderbird-78.9.1-it.xpi 572961 BLAKE2B 45dbe3a5ea991cacaaa6d214d7a44f8a068491ae4cb23c843dbd234e916528f757661f091c9e6defc791d6b3363134c1fe8449097ed5b7cda4c23c12eabd3faa SHA512 2697454b1170e3b82a7b06e8e54c9fc9afd4214b4b93ebeb7620aa16d9dc1a952827db128e56a8666ef8222e9b439af02fa8c9f90c80771260eb4186c03548dd +DIST thunderbird-78.9.1-ja.xpi 722458 BLAKE2B 93794fd5a6c0f95362accc5fd24f5c2e63c19f15df7ff4746ba6bf1f68402407ed1ffc4a8e5aad081ed2c936cdac8886d31e73f4133ed30084ac2b6f8dff17a5 SHA512 4745ed507efab255f4dde3895caa539dd13b6a91af4b15f5d3d7b4580b494abfbc1d93317c95b350d0cb692b3aa057a1b59f760f904d18a2e8fc4d55494ce517 +DIST thunderbird-78.9.1-ka.xpi 717015 BLAKE2B d2abf76ff1ae4a6e4fd064fb414f31bfbca6628099c252bc0d3a8a2b5b96bd764b987f382ff6c62dfca2f5af7d1c0dcb8f094dbbe50fa6f458bfb76650f88864 SHA512 e5752ae55f0e33e624681671ef53ebd6a4649509418b20116141244af7e5cd21463f83068da9cafe6a65b744b8ba33c65ba5546394457b341bcba9d89887fbd3 +DIST thunderbird-78.9.1-kab.xpi 651921 BLAKE2B 3922eb9a8ef883f4cd0c07fba22c6f1a9aeb6ad997603523bf059bdba2c71d33279b9286712c4977fb2070ac94d603a774f10b44ab4b9d7586c26c2ddc1fa6a2 SHA512 7bacf3d116dfd6170a24982c7d46f6c3416ced777c60ea60e5415281fbe1376e327eaadc23808ae1227db7efa152c0f0f922a02dccc66cf698f41559210b15af +DIST thunderbird-78.9.1-kk.xpi 720465 BLAKE2B ac6c1cd954fa522f0e983eed995c7176397b6cd893564401d0e2e30fedc18b183d40782a9f03ef61a0e19b3d868c59451eeeda5b34bbd5a98520a0f5dd490044 SHA512 e1cfa75c85b57d6c91d11a8218c4e2815087daf9b083005d8ba65532e08dac9edc22c20fae81565a6a6910af6bbc569026631d89e1437980dfe6acdb1912767d +DIST thunderbird-78.9.1-ko.xpi 688211 BLAKE2B 32c25b7d1cfd849222c49e7db40dd6a32f6839e304740e9568f25c31a599517fbbb278c2724f243f59c10c134d96c6950e94a24b7aec41fd8a5f2983e96436e3 SHA512 614538cb131e814840c934d09ce5b84b42df5d2e479d893f8e1bb37fb775f98da1eb639780e47697757d8e03672d06fc3ec69286018b19d7d715d948d328fc18 +DIST thunderbird-78.9.1-lt.xpi 660297 BLAKE2B 9db89df3cee92933f830b4873a47255a43631759e6edf49fe9ffeb42072c29cae8b56167607239eac7dde0504e5c6d1dc85f95f05044687bf30899e123bdd7b2 SHA512 eb731621c27e253bb2c356b55b2dabb00432a049655d20c9e2c737f4c1ff348ef602aab368b80f5ca1cc43239327d09a35dfdc3b41a7c9f884d7dc8937dcd725 +DIST thunderbird-78.9.1-ms.xpi 572162 BLAKE2B ca55f0f8b7e6ba4a73dc626153f612ab602f38c4a7884da14bddcb801445a5a7628c16746c46e9b68b5721ec9b4d8c0c7aebdb3691fc51fb702d8e6fadf1b878 SHA512 e7cb705771d788fd2713eac1b1dde6b306359409837faadc845fd0ab57e20ff222769f53abf126245a43c9f7bfad4f8942983477520ec5c4ed45482b8da45b1b +DIST thunderbird-78.9.1-nb-NO.xpi 637234 BLAKE2B 5c7c98a1c93104382db954d36a5465df385c36920835a6cbc6745d6f93b2fe8e645c5cedc01bf80e5c00cd7d5fa6bb6519c4a1c500c6269b4600b96378b23da1 SHA512 c9199fd4adc7f7c414a58701828f9de458bb9976240a63b11af5763263e1ac87c73d5ccb21e79a359ed8d820c15f5652331bc2370aeb97dc9698cfe4480f08bc +DIST thunderbird-78.9.1-nl.xpi 644350 BLAKE2B 32473bc245df6035de6c2aa1d4ab5a0631a915fcd2f7df03c8c43624806f7e1cb59f5c307557e73eac1493baacdaa8447eac38442361e751cb6b36394fbe60e9 SHA512 fe1f2bf1ef4ff724c3fb3f2118aaa37385ec3a0605e8f266e118f7d807600054d71cac70d2fc9fc8aab98fb4c68c1b40eb3b4d150b4a42a4cef10dcdc6bc4fe9 +DIST thunderbird-78.9.1-nn-NO.xpi 640689 BLAKE2B 6e2da75270eb631e1f29587246fbf88d814af09c099128e8992fc7e7675c43aec433925e1ae285085f617d16581ab5b0d2028dc15e8bdbcbb6d857f9e865f44e SHA512 25c280441f01bfcf1c77c9ac24534d32baa606086348ca706a35cf5d106d94151be3fe94724364599f594f688826d0492e9efb66b18d35df00a1adffcc2c1746 +DIST thunderbird-78.9.1-pa-IN.xpi 633220 BLAKE2B 7746a116bcb60d98ceae1a0f4404562fc3e3ffcf56fb6869bea8a97294ebdb3591f90616b90dfc2ae4889fc3cd5598da105e2bd085216f0e370d6521164ebfb5 SHA512 0828d3bfe6a30264b1b5c4aefa6d7cd5f59da93763f358063a51208be5b0a79c40e40554b89b9717ec270d7a4bcf7bc9de09df4a39298764ab877a29b159e9a8 +DIST thunderbird-78.9.1-pl.xpi 637127 BLAKE2B 993b55f715fbce1902799829e21f76164a47b1ec62c0c313fa25d0d13ef54af929b8040dfac4bddae16d149af8acd3fb54b52377870c5b125ce00ca2bf45422a SHA512 d3e81b3dfe0206528c1260e72ff1f0eec44eda74a14507487136478b44f13017bfc9eacdbb741bb5a1f828787ecbd0fe6958aab038d776c2f151f7c017287462 +DIST thunderbird-78.9.1-pt-BR.xpi 649420 BLAKE2B cbe8118c3bce79cec5ba8e0d0394607ca18d3b2f8365aaff31e5661f60520007dd7490810a0bddc061397f5294025d776fc03ca685ed8784d24f8a37f1b98574 SHA512 a1fa246d89d49433de92cebc489ca00e0a08a62f29acce7770c25587a8ff24704b3dd6c7efcf6d7acc40354fb6509924196f8f9d7f8542daa91abde896bd883a +DIST thunderbird-78.9.1-pt-PT.xpi 655496 BLAKE2B 0b1bd6bd4cb577a47541d20141d71a87a8e10471c0c4267a5f51b0f37c8d0159b8231b64d86c9e1ae75efee5a98570d85bcbe1c20c722a8e7a4aeeb48349330b SHA512 7a964e3c14bd3756a3328439d9057a8ad8c2e2c94039b4139fef6ac711488eb646f8be4fbf12d5c92dbfc92fd3bb0325fcd3371c2342731e21a2736cd43f9f99 +DIST thunderbird-78.9.1-rm.xpi 646536 BLAKE2B f8a47c3d1f6b37f9e8ba8e6565e60f2aaf3b3d263edb1495db0762de32869a8e42f568572463c64d3b53b5c9cc3fb265bde6d1d256ce959be9b7a9fe8a269919 SHA512 9edf9a877ee15d9cc681dbb78cdf0c3cb1f49aad39576bca6c7964a812856fc9614e5cf7078985c881db4097bdbcd61356056b3fa94421c9ab3a202bfbe16dfc +DIST thunderbird-78.9.1-ro.xpi 662630 BLAKE2B d1e119fc05158be97e75bff2b9cafc8de373174a7432d70cdd4df97bf142117d461904921a715e04de8c5d49a22a95131b7c083943a7885fc4a202f3d518a663 SHA512 ffcb8f3290ddef905ef84a18453173bad28a48e4e93fe11de1e153621e0bef6eadc8f7a8707d6ccfd5d2ccee2b510102f48de37bf61dcf2072d3fac02d9f89b8 +DIST thunderbird-78.9.1-ru.xpi 756188 BLAKE2B 7b47f7905046e30839cbc6485dfc034012db053d147a491c3a2bfc56e9f1485d4eacb87ef719563d63601023a590271bac053cdd1433d009b8fc9c3e81c0df2c SHA512 28694d4347628f507d540b87e1c44c38ccb83fe4555d7d200973478afdaea1070316655a44d7b49c56b62fb8a4d9a04a0ab75cb67dc0b1c35c09b2475645dfa0 +DIST thunderbird-78.9.1-si.xpi 651100 BLAKE2B f72deb603208f09b5fa4d8a4203495ac227ab555551f52a3fec1a6f9ae1c636d40c3f3b953a841c9f06b95e1a21072f3176089c2e333de89ddb191d2df6a50f1 SHA512 f1455341add1302f7405caa9c3c0b1a98a6bcfc403b1f50e6663ad543a8b5e1311ba549bf2a86479c8446320a3e1fb99a432c3c69ed192ff3f7a1a862f0210c9 +DIST thunderbird-78.9.1-sk.xpi 643225 BLAKE2B 4e2d712e25fb03898643f8d5a5dcd794382c19a7efde35b38f78295a9deefe2efb1e7ddd59446cf1274ef35ea3f46fcdef81ebb2e74153a33708c1dc1eabc681 SHA512 48d01f784fa0c081019c3e9e29db8dc54eb1c020a10b3cc9bf21463e833617ff60ff2a2db03faea8fabf072a0a277d0ba7ca555cfa9e438ded9d372e27c886ee +DIST thunderbird-78.9.1-sl.xpi 632380 BLAKE2B e4d2d0405eacee3730c6c6f62f72ce16a0c6f7f25658f8e0526f942c8137969678271b830acb9e4db874adb7341195757d69058461cb4b2dbdd2dfd40c0bee50 SHA512 55c4e6ead25e87753bb83bd8c51215b9b84f76b482348521bd2b5b3db5c10619b4077cd3934e3d82fe7db0fd41e7f1f93efed32f43ca125a8602aeca9aa8048f +DIST thunderbird-78.9.1-sq.xpi 657824 BLAKE2B 6ac35f9e3484090b4a7fdcc30179977df37c3aed980ad2999833203dcd3882b5be6ef40ce4fabb6ceb6e30970c34c0b4acc870a3c54b9988ecbd881d15434001 SHA512 d0bd54bcefaf97e8b2d0131c7b9a8afb5d4507f6f0d5a8bca41892181e1c5da7af7728825c42e6a019f30ba6a3f58d255bfc26af0472ed825bc2bc7052a82a80 +DIST thunderbird-78.9.1-sr.xpi 683114 BLAKE2B 7fd19d3d8657075c36e7d57175660246e70d7da1d03c5b05ad230eafb16c7586b2dabc7c45cacdd0c3df1ae9978d7efa6a74a84135c605579701e99d3fe686ec SHA512 e7d8b8d24e32561d370690f08a9733747f07e9da419c06339a4ca88d22057e1049cabe67eea27f006d1cde089e24ebaa6b497559846f17c60a22e9ecbaa805f3 +DIST thunderbird-78.9.1-sv-SE.xpi 648874 BLAKE2B 0be15a0d0243d00160565b830830df4d5dfa728e6c4db791a597bf629b82ff6926886b3e6def1be6c0b2c32918dd987c3cd22199027b9159d8bf3f12e52cac92 SHA512 bb38c6edbbdc7a7e06ddd35b94ea6b6bd8eb006be04d22f1b0601488d7c9bf9105616f2c818ebb00b687d7d141427cd65c0d3650857369cf4d3a8a3a2609e960 +DIST thunderbird-78.9.1-th.xpi 712033 BLAKE2B 8cc497853603f40138dee9b8b1c2c435b54fb9b0a9a801005b74db049881afb0475a3073b9312f34d4f2b5c9251f1e330dd5128131e8c1d02b3e96505e7f94e2 SHA512 0abc52f199c543595f7655bf354918c51e8b076f9c27e20d023ddadaa89340b7d226f4e2541ddd4e6cdc720d8d685ba8b7b4398e4c97fc5417d3135be041850a +DIST thunderbird-78.9.1-tr.xpi 649065 BLAKE2B 29fe67d0c90187117d787469bee8e12a4a484a176330b8d0b87d622c4fd29a4bf1ba6f4ce63a0bc555be0555506d59af09590512a7d5142b7fe80c660054afa9 SHA512 d4ee98c8b1b07a007fd81848472906dfffda265471c661801ab0805a75bcf82b0ac6049f9c906085157c785e2aececd3551dfe87a47ab912aaa30c989606cd48 +DIST thunderbird-78.9.1-uz.xpi 586594 BLAKE2B 5d9c4d1fd52f29a60fdc4a159fb8698f6c74efd1a29253043be4fbf7c39cd5675586849b1a9c9651b96065d68914b9ba987d52a3b053de11f50bc03948da9707 SHA512 0a852bbcfbe6f8bab95ae46d1fe59f882610237661ba63e757bda026ad183408ef7efda10ed288f7aeca681375baf078cf4b593f6719023ce8ba0ba4d1b5782b +DIST thunderbird-78.9.1-vi.xpi 674611 BLAKE2B 73dcb612a0cb608e555b8d43c9a378a070a05285006645bcd4235a0bf2d8f293acf25142051e2f5ae785eb5691de1f71bdce376e45cd1a8d939e6a278cbca5fe SHA512 2cd2dc83e3432f3633177cf7cc9f2eef7e08c09f20cd0935a28dbe676e65ca003c835887e8c916b45cf7b877a5fb234f5f479d1401db0674e45ad2cd6124e2dd +DIST thunderbird-78.9.1-zh-CN.xpi 687176 BLAKE2B 43b0ab43e49b9fa9f6f393ffe6f78cb35c47422e83cfa9a95d237eecfa5f207a225331968981fbefec45b7a28fb66b2f11a84f06bc938998a9533ad7b236cfad SHA512 91da51fc59f1d30668a5d78ac59516acdb13818202f968253e8f5b3f0d7c965e46ff0550cc6e1515413d05afcf149e2349a3793b4714bb391e37a7c7de085ef0 +DIST thunderbird-78.9.1-zh-TW.xpi 687615 BLAKE2B b1a885ccef64f9b62e91b0080cee75da04f99d7f0cf20f19a912c85448272e8c4705f81248cee77f05b963fbad33acaa832538927ef588f1859a4bc4ea31b5e8 SHA512 4f14d40fa52805740414da1b1d93ef254182808f82f732ba507b4769e7197033b036629e4fa79fd1f4e7cd206747cfa656842f330778142d9a086f27ec2e61e0 +DIST thunderbird-78.9.1.source.tar.xz 358277740 BLAKE2B cadc531e2d14eab13fb1b9a55799fd177b2fae0b776e18665ce705b9bcd68c7af78d92b675f3560d79c9932af710479bc2b2bb9ecaecae6dfcd6e3c74487f219 SHA512 fa27a327ce10a0c16877ac02338aace257f60f69af40d12ae5bb2055f6536db9ba45995765ac0eaa1aea2fa2b353ac9dc6eb06fcdf6cb4ae6fafcd65fe5970c6 diff --git a/mail-client/thunderbird/thunderbird-78.9.1.ebuild b/mail-client/thunderbird/thunderbird-78.9.1.ebuild new file mode 100644 index 000000000000..8f3de08b5501 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-78.9.1.ebuild @@ -0,0 +1,1100 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +FIREFOX_PATCHSET="firefox-78esr-patches-10.tar.xz" + +LLVM_MAX_SLOT=11 + +PYTHON_COMPAT=( python3_{7..9} ) +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 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/~{axs,polynomial-c,whissi}/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.mozilla.org/thunderbird" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +SLOT="0/$(ver_cut 1)" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free + hardened hwaccel jack lto +openh264 pgo pulseaudio selinux + +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent + +system-libvpx +system-webp wayland wifi" + +REQUIRED_USE="wifi? ( dbus )" + +BDEPEND="${PYTHON_DEPS} + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.14.3 + >=net-libs/nodejs-10.21.0 + virtual/pkgconfig + >=virtual/rust-1.41.0 + || ( + ( + sys-devel/clang:11 + sys-devel/llvm:11 + clang? ( + =sys-devel/lld-11* + pgo? ( =sys-libs/compiler-rt-sanitizers-11*[profile] ) + ) + ) + ( + sys-devel/clang:10 + sys-devel/llvm:10 + clang? ( + =sys-devel/lld-10* + pgo? ( =sys-libs/compiler-rt-sanitizers-10*[profile] ) + ) + ) + ) + lto? ( + !clang? ( sys-devel/binutils[gold] ) + ) + amd64? ( >=dev-lang/yasm-1.1 ) + x86? ( >=dev-lang/yasm-1.1 ) + !system-av1? ( + amd64? ( >=dev-lang/nasm-2.13 ) + x86? ( >=dev-lang/nasm-2.13 ) + )" + +CDEPEND=" + >=dev-libs/nss-3.53.1 + >=dev-libs/nspr-4.25 + dev-libs/atk + dev-libs/expat + >=x11-libs/cairo-1.10[X] + >=x11-libs/gtk+-2.18:2 + >=x11-libs/gtk+-3.4.0:3[X] + x11-libs/gdk-pixbuf + >=x11-libs/pango-1.22.0 + >=media-libs/libpng-1.6.35:0=[apng] + >=media-libs/mesa-10.2:* + media-libs/fontconfig + >=media-libs/freetype-2.4.10 + kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) ) + virtual/freedesktop-icon-theme + >=x11-libs/pixman-0.19.2 + >=dev-libs/glib-2.26:2 + >=sys-libs/zlib-1.2.3 + >=dev-libs/libffi-3.0.10:= + media-video/ffmpeg + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrender + x11-libs/libXt + dbus? ( + sys-apps/dbus + dev-libs/dbus-glib + ) + system-av1? ( + >=media-libs/dav1d-0.3.0:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-libs/harfbuzz-2.6.8:0= + >=media-gfx/graphite2-1.3.13 + ) + system-icu? ( >=dev-libs/icu-67.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-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wifi? ( + kernel_linux? ( + sys-apps/dbus + dev-libs/dbus-glib + net-misc/networkmanager + ) + ) + jack? ( virtual/jack ) + selinux? ( sec-policy/selinux-mozilla )" + +RDEPEND="${CDEPEND} + jack? ( virtual/jack ) + openh264? ( media-libs/openh264:*[plugin] ) + pulseaudio? ( + || ( + media-sound/pulseaudio + >=media-sound/apulse-0.1.12-r4 + ) + ) + selinux? ( sec-policy/selinux-mozilla ) + !<x11-plugins/enigmail-2.2" + +DEPEND="${CDEPEND} + pulseaudio? ( + || ( + media-sound/pulseaudio + >=media-sound/apulse-0.1.12-r4[sdk] + ) + ) + wayland? ( >=x11-libs/gtk+-3.11:3[wayland] ) + amd64? ( virtual/opengl ) + x86? ( virtual/opengl )" + +S="${WORKDIR}/${PN}-${PV%_*}" + +llvm_check_deps() { + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then + ewarn "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 + ewarn "=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 + ewarn "=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 et eu fa fi fr fy-NL ga-IE gd gl he hr hsb hu hy-AM + id is it ja ka kab kk ko lt ms nb-NO nl nn-NO pa-IN pl pt-BR + pt-PT rm ro ru si sk sl sq sr sv-SE th tr 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="6400M" + 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!" + + # temp fix for https://bugs.gentoo.org/768543 + # we can assume that rust 1.{49,50}.0 always uses llvm 11 + local version_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'release:' | awk '{ print $2 }') + [[ -n ${version_rust} ]] && version_rust=$(ver_cut 1-2 "${version_rust}") + [[ -z ${version_rust} ]] && die "Failed to read version from rustc!" + + if ver_test "${version_rust}" -ge "1.49" && ver_test "${version_rust}" -le "1.50" ; then + local version_llvm_rust="11" + else + 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!" + fi + + 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" + 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 ! 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() { + use lto && rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch + eapply "${WORKDIR}/firefox-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # Make LTO respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure \ + || die "sed failed to set num_cores" + + # Make ICU respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/intl/icu_sources_data.py \ + || die "sed failed to set num_cores" + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \ + || die "sed failed to set toolchain prefix" + + sed -i \ + -e 's/ccache_stats = None/return None/' \ + "${S}"/python/mozbuild/mozbuild/controller/building.py \ + || die "sed failed to disable ccache stats call" + + einfo "Removing pre-built binaries ..." + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Clearing checksums where we have applied patches + moz_clear_vendor_checksums target-lexicon-0.9.0 + + # 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_src_prepare +} + +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 + 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 MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + mozconfig_add_options_ac '' --enable-calendar + + # Set Gentoo defaults + export MOZILLA_OFFICIAL=1 + + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-install-strip \ + --disable-strip \ + --disable-updater \ + --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 \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-nspr \ + --with-system-nss \ + --with-system-png \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system \ + --x-includes="${SYSROOT}${EPREFIX}/usr/include" \ + --x-libraries="${SYSROOT}${EPREFIX}/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 + + 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 system-libevent "${SYSROOT}${EPREFIX}/usr" + mozconfig_use_with system-libvpx + mozconfig_use_with system-webp + + mozconfig_use_enable dbus + + 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 + + mozconfig_use_enable jack + + mozconfig_use_enable pulseaudio + # force the deprecated alsa sound code if pulseaudio is disabled + if use kernel_linux && ! use pulseaudio ; then + mozconfig_add_options_ac '-pulseaudio' --enable-alsa + fi + + mozconfig_use_enable wifi necko-wifi + + if use wayland ; then + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland + else + mozconfig_add_options_ac '' --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 + # Linking only works when using ld.gold when LTO is enabled + mozconfig_add_options_ac "forcing ld=gold due to USE=lto" --enable-linker=gold + + # ThinLTO is currently broken, see bmo#1644409 + mozconfig_add_options_ac '+lto' --enable-lto=full + 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 + elif tc-ld-is-gold ; then + mozconfig_add_options_ac "linker is set to gold" --enable-linker=gold + 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 tc-ld-is-gold || 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 MACH_USE_SYSTEM_PYTHON=1 + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Build system requires xargs but is unable to find it + mozconfig_add_options_mk '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" + 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 menus + local wrapper_wayland="${PN}-wayland.sh" + local wrapper_x11="${PN}-x11.sh" + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop" + local display_protocols="auto X11" + local icon="${PN}" + local name="Mozilla ${MOZ_PN^}" + local use_wayland="false" + + if use wayland ; then + display_protocols+=" Wayland" + use_wayland="true" + fi + + local app_name desktop_filename display_protocol exec_command + for display_protocol in ${display_protocols} ; do + app_name="${name} on ${display_protocol}" + desktop_filename="${PN}-${display_protocol,,}.desktop" + + case ${display_protocol} in + Wayland) + exec_command="${PN}-wayland --name ${PN}-wayland" + newbin "${FILESDIR}/${wrapper_wayland}" ${PN}-wayland + ;; + X11) + if ! use wayland ; then + # Exit loop here because there's no choice so + # we don't need wrapper/.desktop file for X11. + continue + fi + + exec_command="${PN}-x11 --name ${PN}-x11" + newbin "${FILESDIR}/${wrapper_x11}" ${PN}-x11 + ;; + *) + app_name="${name}" + desktop_filename="${PN}.desktop" + exec_command="${PN}" + ;; + esac + + 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 + done + + # Install generic wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}.sh" ${PN} + + # Update wrapper + local wrapper + for wrapper in \ + "${ED}/usr/bin/${PN}" \ + "${ED}/usr/bin/${PN}-x11" \ + "${ED}/usr/bin/${PN}-wayland" \ + ; do + [[ ! -f "${wrapper}" ]] && continue + + 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}:" \ + "${wrapper}" \ + || die + done +} + +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 + + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + # New install; Tell user that DoH is disabled by default + show_doh_information=yes + 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 +} |