diff options
-rw-r--r-- | mail-client/thunderbird/Manifest | 64 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-91.9.0.ebuild | 1139 |
2 files changed, 1203 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index d01c60b49d84..1d04d63a2369 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -127,3 +127,67 @@ DIST thunderbird-91.8.1-vi.xpi 725526 BLAKE2B 3511130169dc5687234e037e35048446b7 DIST thunderbird-91.8.1-zh-CN.xpi 730901 BLAKE2B 6001708f9760a81f34bfacf5216c383b8f8726364cb56e70d144f37d42a2d72983c27804eae0bf9f1f45558c8e65058ab7c27af59606b9507325f919e3e3c73f SHA512 aaa6ccd11325fed781d67f0a004c60c1beb1c902c7746a7c7a945abb2424a5afcbd10cf09655e6872754884ad2de062d012eb9de5fb687bd04074ebceeed2932 DIST thunderbird-91.8.1-zh-TW.xpi 731944 BLAKE2B 3d09cfe5ba5a23c85745d006c4669485b37b2452f4a0f4e7cc7e5de1ad4cd183682225dca812bc31d474772b525440f125b2f41835d0f017f5ca990124062103 SHA512 c0047a86346a509a73002f89d3b34db76436cb4e09f736dca3f61513a710a632248a6eb8e9b0e8fb3ec3311f49d99d688b827b7723e693e3750b6fdbb050cf54 DIST thunderbird-91.8.1.source.tar.xz 403849008 BLAKE2B 77cc2304c656c317e367a9037b6bbbabf382a7be0643ba9ef7e3e95ae5ee7c1f1540c990065973988ce6cd2041a392306be00d0297ee448562fd3529347b6678 SHA512 1591f3e9c76c1f2ea7fa5e194a7d030c8657a7855a95c8a177e8067c5aa838f0d8ca2652cd049b4bc88d0c9e604285a47b0c8316c190e2ceadfc1130d1e4de6c +DIST thunderbird-91.9.0-af.xpi 561893 BLAKE2B a960b28e1076edb28253d6ba37cbabd7ec5e28390b2a03d3534523bf38526fe53c39662962253e796a86e78765e1f2464aaa8834ab89d8347d4d52ce1b04f5b0 SHA512 88ff48ab1881908070abe982cf3de1b6d2e956a7a8b12f2504369e27e1a6f7b00af3cdfccc6f6e6eaba916f05811b88b8ef36218373c1fd709ab5814ad94e67c +DIST thunderbird-91.9.0-ar.xpi 665729 BLAKE2B 89a32911b8efaef9865458440cad6c184df9c70b5aafa580ee49d520dc729f7885eeaeaf83fc28a25b8f5789e5b2e3364beaaf2aa7b87e0cdc5924d5046b8b6c SHA512 ea28bb9b5b13c0d93429239e27f4166a1c408b21973c850482ddf717addfb900e418930dbbfdc86ba6f41a4b561584ca6d3ae4d9118a461ebd856b9b9fe6b488 +DIST thunderbird-91.9.0-ast.xpi 580510 BLAKE2B d8af41d54f8b555f678b4f0ae1139153a7d82b7f330f8546b583a7e641b5553b0c1d257a4fd28857f20172416426c1158dae273dd357481f281c4e1a62335e72 SHA512 673575fc93a75631b443ed09df2c3c211f980059202494bd8320d9c4e7d2bdfe7611b83eda7d2c08695cfd7dc7adbbd7edf99e9419d36726434ec5bbd2f61a8e +DIST thunderbird-91.9.0-be.xpi 695198 BLAKE2B f8886653e14038f8866da66f1bf5d1d68e76706b507e17a7085e4ec90651f16edb2ba1ce87fbba2ee90e3cfd408f7ecfebc331edf0e3474ff5f71662fd742a02 SHA512 578dacbda7a6d1fa9759b6bfc2c9118a2918777e19d9f07d32b35b30f8d2e285c69a8bd446d970f135797a41b233fa21a7e73e593bb5d264584e256ebe9e4ccf +DIST thunderbird-91.9.0-bg.xpi 690995 BLAKE2B d7493477749b8fbf720b24857c4e1245bcfc2b130f092d7499c9aaf9e7266c8d25465ca15df6a94a5209b2d792378cac45c3c6eb571825099bbfa793cfbd1e0c SHA512 e6b73c1d372821c0789c195042461ba5339893ca877c63ee3a49f34f8a362e2d1af0eb259168eb0d81565f01f5550e00ee33ac8570d25c3edd4b5ffc10db8444 +DIST thunderbird-91.9.0-br.xpi 620587 BLAKE2B 3a6f7b3ff36005e9039a52b80dd7750da7686b883610f5fbb531ee3b078d3e135d3a1f65890eea6d88eed497fd2a2f2d7db1e2e6ba695b9ae19c328d4a6d5cd5 SHA512 54c160a072b51749c4362ea2dadfdf2a1a01183910e8986b33a93f2882218a8f74e250a7bc9fd1c4c9c8cb13c8a5569b0c4a44a91f89f52128ba63a5d86e50bf +DIST thunderbird-91.9.0-ca.xpi 645974 BLAKE2B b149440506fda3cd1512bbe2ed5296e85b2d03d2de2b64a993c3a0797340deaaa0d161eba1f63584ce2065c056b9d9d769191725f3b75ed7affa3ab678b47654 SHA512 af31836f18d45886d8da2fadf9052f6df60f1d4727dde10e21a14e26590a579b4d712cf9a6349bf49a47378723b003f0abbe648e1ec6898924c2256709b4910f +DIST thunderbird-91.9.0-cak.xpi 652066 BLAKE2B b9b8f3b6005d1b4e4b8d04d87e77ee2080b0db92b8d653fd85d29f506a58adea2a41063d9f092683cdfe0e727d833f3c6ede97e5192be59550b0a7025a932b31 SHA512 de05481fefc407713d6d62132099526aa065a4b29c320f4132f622f81d205149f18a7bc7bb60897b2739dabfb72017a2f68cd2427178490b6bd3220101282db8 +DIST thunderbird-91.9.0-cs.xpi 711939 BLAKE2B 9c5db0a812dc8ab627093e6ebd466db6375d9a1959d5ec404f24dc6f4a78012e31c446c8c3d82af0eba6043479f39ac83ebd09132727442c4887c16eacf2d19f SHA512 a2199359fd70a7fe19c21028c81e51267d66b908a39434cb9c4166ccab552a5f755e10677a7a2701e1c0514bf6c2d48495c15805403339f01eadbc1b98ee71b0 +DIST thunderbird-91.9.0-cy.xpi 688889 BLAKE2B cbf6edb5fab8202c2e5c5eb711fa659c71175d524c0716dcfbd31949b37b7f5cbc95b15a57aa6ce1952e5699942be1e0bab255480ce68d45158e280f9d94bb23 SHA512 354f373faed70932a19aa62a6159c56dd85b7e06576497e8ab954d1293c7393aab20bc8ae03527860d24e69c949963af06606098a87c904eba837af41401a937 +DIST thunderbird-91.9.0-da.xpi 674445 BLAKE2B bdc17f982af80ba85a5138ef3650d33d5129f12a4d4f28211a999f5012fffd9ed8031a83cfbbc1b516b26738c718c1c94deb3031cfbc06f9360a5edcc053bbad SHA512 085e2b7af5b01636721dd0162925677e983fd016eba2247a5b5ebf856014e7228cf70b9fc70390cd42575488cb7f3becc63b75777953adcfe6fe93cbaa7622e1 +DIST thunderbird-91.9.0-de.xpi 697527 BLAKE2B 452cff7e8ca3f7d10f58504dedbcc42a01e766429ff434bafce3b39e7758cc8fbb20b7652f98f5cdacb2f92f05193e9fa83afa5f1b45aeb34bd6ba15ed80c769 SHA512 b639499d8aded54909098515ded0b522d8d219b4d0ab8a665a4e273f9b103090775bdb15592f369a146e0f72b7d553f54f7f8855896750b6e7590ac22144f182 +DIST thunderbird-91.9.0-dsb.xpi 724000 BLAKE2B 9f5f34878c3297aa32050beb31807356ff1921773fc60a0f7922db3bd14e2facaffc42b9b09a2179554121b2cdb7be1d02911b112f156c7f5d4d65f071752b51 SHA512 53971dbd9aaf39a08b5b90b961a63e4ff82a994efede605df6aa88984ab16732e18885ec1abe8aa4e974ebe5a475079de0dea3275498c50080ff5e9ef5be86f5 +DIST thunderbird-91.9.0-el.xpi 821181 BLAKE2B 8f1eab436fe7885a72486ccad10266df3dc42dc2468807589708cd42baad1b5bfa96a797236bf541951fbf9ec9a532f36db9364e911da52d0c3c985c118eca27 SHA512 d58983a1473915922c913d42e2c6ce2346cf6221d27c0ac0ec303c99552586752bb381e473d8a669214828a3d446b8303b6a24c63704ceeb658cc4b1f2604ce6 +DIST thunderbird-91.9.0-en-CA.xpi 647813 BLAKE2B 5da9891b01efac97c970784178c5a9fdd8c542d9ea72c01a0f03b97e74d371bcf6e6cb19e40c0727c0b321c0bf09bf30ca3c163f6f10f3ec9ae1395242c1e492 SHA512 56608d95b5d79544b5649cf3e8d7d108098f072b9fb1136dd305369a106966acaabc8c0f4ea399c77c726eed5cedd38b9b965c4affcada704362387b7b89b932 +DIST thunderbird-91.9.0-en-GB.xpi 650553 BLAKE2B b215bf535dd86ae2ea53a5f1464e2a3d18517c4f9f6d7219d558c38c33fc92b8e747f7910ffd7e8a05773a3322cd1e08f936844a2b902bf4ec20c473b75591cf SHA512 71b4e64388c03c736910b5684375c7c97ac26247304d21d34952e7427613f72997ddf7b972b73c48fc5b60dcbfbbc71476fb71fc278275dc3b958ab105896911 +DIST thunderbird-91.9.0-es-AR.xpi 700497 BLAKE2B f809ef5107e619e085a4a4fd3ef56806d93769d582809ddcde1cdb0b75980b7d19d65e6e2e322e9445e79b2f335f88b3fe41e5ed344f201ac0ea5312c3e23095 SHA512 281362a6155144a20a4671127530a5abde1fb3a8d8f6fa7555cdb11f335787eca20c1a65513ac0124d7cc33b0b1afce5454fcebc4323270821da52e77862b199 +DIST thunderbird-91.9.0-es-ES.xpi 630920 BLAKE2B 1196ff9935b0b2e64ac033309944503f4c9778caddbfcf2eb76af913db83999fe59cd24cea65b68529515501037454a338e55b83cb80650c0d1e358062a15c95 SHA512 dfac9afd8fb756c072382cdb5ff47974a0b846b8fe5ffca81581fd07167d4f24416e4d3cf1ecea163f5c278c9130a00c061139ee79edf2e18cd58e30f9d4cb06 +DIST thunderbird-91.9.0-et.xpi 672170 BLAKE2B c5e555ea9a88a175a70a1ed6c0478cadd0e0e20029cf1efb52073f19368f8ca231fccb583f5aece1ad982f15d42265c75ae21aad7b6b2481e53c6a292a6c53c2 SHA512 fa6b590ace0ce60e36241479466fa67179d9514bea80d61ce1343fd418aa37b8f46e693d6ec6004bd91fd96b5725cd940d329a65de6773f44c16066179730a33 +DIST thunderbird-91.9.0-eu.xpi 678262 BLAKE2B be60dbb231b6264476f990120d4ec79549660e97c70e610c92a6568c3d4068bfff37410a1bd079b4a5d1c31620dda037c4334fff054657e0cf0e2d7502f71041 SHA512 b7bbc9321e122e32bd615390d326c12fab1090cbb5bdae04acacdc377d76126f1c5e90b588215ff6eb2c5e9c1c6b147f5777af2eac2f03d63962f1c2ab0ddf44 +DIST thunderbird-91.9.0-fi.xpi 676630 BLAKE2B 8a2a57814b2395b04f1db3bc96268452456e0699e4318dc4a2fd0c82df7bbbeec33fb248c7886cbcf0076f7f5dee111aa3780e900288c00de0889aecdd7eb6b5 SHA512 ee2e6d538ead1921ed7936a691bcef876283c559a78c19fc66c4e17d3c0d7f673152a0c929ba260877fca579978c2891edcbaad6c59c73236e63e642f8df8afb +DIST thunderbird-91.9.0-fr.xpi 711454 BLAKE2B 6b35a7495d0d38fbc20d114e2882b9a265ffb0efe290a2b5edec3fdbf31f8d66b78e496a0077d42c6bcb967f4e4a683fbeaa8cd331e951a55f4b2bf9d648d1e5 SHA512 7cb80474ebc3ede31377ffa41816c131cf199917ef144a9c5c888953c64463e36477837d9e9636f72f732ae3299dd4feead55e866bef0beb85bc8f1cffb6de3f +DIST thunderbird-91.9.0-fy-NL.xpi 691879 BLAKE2B 4a172455c0f6dbcbd542df9b4e327f34500ca2216fa625fa51a47acd2edcfba42c5392f235b3d163b2990d1b3ce37b78b9c3ed150955da46c668fe780ae88df3 SHA512 a84a8eeb69ab9b3f0394e05318455c4c7c13169a835719805a1643f6a13c10ffe4466440e134dcd3d88f62ece4e6941e279b78dd8674f6c86796ea160e79728e +DIST thunderbird-91.9.0-ga-IE.xpi 613123 BLAKE2B a998ee6a2064f2bb1b3bb34aa82b8585a5d9d7669f4ded7d1010b83c5a1488efb4d4a66c03b2cee78c5056e766fa5a479db7cb8747817fed949279ce5e97666d SHA512 1ab01b0933073d1e21d89018f75918d12adea1dc8fc9fefa7a439570c675f8602f1bcfd785e661169c62f01b748965dcf7ea622b92b198bcd5f8b84a7b6de28b +DIST thunderbird-91.9.0-gd.xpi 640647 BLAKE2B 53ce6b0a81e7232ec68c3b0bf32bef6e199fdc2dd01fa0c5958ca955e18f22aead55fc8512055d61150d4da063e694ccbd97f6ae43bb24774c0a708086d040a5 SHA512 f6a84137ba5250c328b37a3536713b9ec720da023e5f0d36c559f08af63b063529263a8f5ece62f7d14200334f579ca538bebeb0f426b09d9fb45a6be85a041b +DIST thunderbird-91.9.0-gl.xpi 677788 BLAKE2B 144c036b99b94af984d01a75aba0a870fef392489fff3ee79921c0431a3d6d52af4bb69b95078c166f41dd594ef65c35c4f500a9a2f86a38bcfe9d45c9695055 SHA512 97ad8be20e96bc44b26836df8422cf52131c12632369404bbc19aeb2a286d7724da3d4eed0ad26380ab056743d3e699a7ff8bb3f6f7ad4cfd99de3ff706210a0 +DIST thunderbird-91.9.0-he.xpi 673190 BLAKE2B 2e22621ee9dbe0bb913b3fa75ad7bb7dc02ebd833ae168260afefb9feb39d7b6432369a7218664b864fa915c07955c150efb7dfb3eb841a34b58dee3f39229c6 SHA512 0ad821aa399d3d8e5c6c9c4f50b7f2965b3aa0acdac03f033ae82096e1f0d28eafbf127bd67aaf0dab02fe09102de78dafd3e0666ac818ca448ee304ad4df689 +DIST thunderbird-91.9.0-hr.xpi 653579 BLAKE2B 61299c76d6dfcd7ad45735258cbac3ed52a12ce5286b17f132e4dd4021a8803651d38a16c80f315aeca1c07fd98ce3ccbc8635f3407390b35539a52d2ea9e25d SHA512 88cb14042028e2d71719d58c64a8a5e7c2cb61a041d24af7632424ec11dd4db2ea63e74b96e46e389f76ecd0f30c3827af3eeb60130dad89b8a24e92269341ab +DIST thunderbird-91.9.0-hsb.xpi 720812 BLAKE2B eaa0d2334a1dac1b1d46fc3846500714b9a1315209e18f79495b6936093b1c6fe1e9c51115e70fb3aec5bf33181adc6a7c20a4c0a7fca7a91e1bbe968d31886a SHA512 a9ecaa1f1cffeb7ccfa4535980162e382a7de352429692a55aee9b9bdcda16ed8e0170dde55f88a8cbe2ff2809d36f2458b8f7173cfe75b09d4270a86fc717d4 +DIST thunderbird-91.9.0-hu.xpi 723400 BLAKE2B 4fee3c754f5753cddf8e125e05da74932379a042c69bbb86526a3583519e7de8858fc2986d8f41bccfcee0043444242dba993df14e518cd1a6ecac37ced6facc SHA512 5a5b4ab9861d8e112011357e78d9b0ca9c381bd573fc1964c6f611f6c0a7f7b3959861ec18a7c18649170f42f3a46129e6eea8fc97310013100bdd267a8d3414 +DIST thunderbird-91.9.0-id.xpi 648249 BLAKE2B b95977ecc4a70d23e9f3569d9952141b2073e8043571eeba9d0ca53007409129bf0e9fa64816267fbba2c953dc5034909cb98b6912f8f08773411ef39fc36480 SHA512 9274dec833ee126465303506996e4910829c99b815c036ed489a1b483f4bae0cb24558055861d9318a95f3021a5226e2f2c732223754c1239f4907a5787e0368 +DIST thunderbird-91.9.0-is.xpi 682262 BLAKE2B 9f68535300adbeff02b138a7e598bd4d0cbc401eaec3ce5ba080f90813f05a3b632a0c4dafc130dd151cedc77931b59ae272d061c10186f9aafcefad270c0294 SHA512 138791eebd4362903a6288a9ca4cffd0d2d09ffd95413a21ca4df7c9c0f6977aa5c1f077154b5a0a735d97e40f83cb9b121debfa08a0b4ea9fcc9c3af25d058f +DIST thunderbird-91.9.0-it.xpi 613333 BLAKE2B b333a3b3b59599e43cd7c6bca94a5f28be3cef7ae6fc87c7e33ed2b578ca1125e09b2986a2f5678eed784d9f62fa992f82cf735f012b97f9f69a38cc66f60097 SHA512 52a6f549f2771c57025074e39845ef0ffc8d002e21118766bbe7f8e304000c45dfab23e602bc7327807d3d8301d5619d35c5b460fee0288a0348903ed4f03f57 +DIST thunderbird-91.9.0-ja.xpi 756466 BLAKE2B b59314d0fcb4a2c6f32a72bcf69ffd317fb49ceebd1dafb235278f0ee686ab4a6402fd3e42c2d8b5feaaeec08315820165068b1cfe0705619766fe690a18ae6c SHA512 2f715c015a02efe66da4b19aaa27fb8c4f49c14687e7ab22c40615ea6b5051f13f9e5c4dd008177b66cd42a470a366613bf660b698d9fe3c0c801ba54625e419 +DIST thunderbird-91.9.0-ka.xpi 762629 BLAKE2B 03c749271b7a4d420277a42f1cdd6c207b6e728e63d7c3cb3209611bfd8f1802b7560443ce84f8daa85fabbf6a4b098507edeae924279d3b480b64f5b81cabbc SHA512 651a5eb8a641db3bc82357d24bf9a545e591b189c3973ee2aebc6a4403d579911f9d2caf27a1239822b478ec07724b6da2c613e3dc73b996ab457f6a714866c6 +DIST thunderbird-91.9.0-kab.xpi 677086 BLAKE2B c117239ae7513d54d830ef4865b93c18bdc51d2585a37c6bd53f2a2061062fa5753bf44ca05399e9bdc1152a15462fac4427be8e5fe02fe3367fd789a5d0f176 SHA512 1d5552138ddc896efd0855af3bc4587c57fdc8a323f35b1b6f574b4bf243745295002a62f6c1b2f2d448542e6f68bbbd7472e152d9e39283bf814eda08c0af7f +DIST thunderbird-91.9.0-kk.xpi 745522 BLAKE2B 544b6cc5f219dda5091dc06c71ddcf9fa17b4844acfa47108e8093cb560c9c0a23383607670554c034e138afc924e416ede094eaf68b18ab32c1b012d92f1f86 SHA512 4751002ff331e59c4da910c068e2415394bd77663b7b87d5a82dd4533cab9f7504a4ed433824fc313554f5c49f6d0acc73979bf94a48e620c2f268e440c1f921 +DIST thunderbird-91.9.0-ko.xpi 704769 BLAKE2B 647ed171218ea862591378f5e1580fa55e1372140d5b239a0b3e8ecca9e3a763e3726e561521c1f265009e3f476b347965e812c98ae93ad53636e9240d3f90b1 SHA512 ab45b4eeadf6cd465b0bf90873f146b8094323af795e201f7b033863139559ca35afd546e4333b01cf1ebb9eef9864f5c49ab9ba023ce677e5762a1cc1892313 +DIST thunderbird-91.9.0-lt.xpi 696043 BLAKE2B f001d8ac1b63cebd0c1e2b3808e09c88f60eafbf300fad6ee0cc1e099a83a7fcb9a4ec1951c8dc3e5c418e51b46b6a55ab469eaa04e7dad2bb0976b785706f94 SHA512 8529ad40230fe51c1e2cc8eade56cd8a4d9458408e737996614bb7cf5bca4b3fcb83e995ef722d16a364d6e14ed04bf103592c5a97289a5d261e6d8f0783e669 +DIST thunderbird-91.9.0-lv.xpi 618523 BLAKE2B 17e1c9ac9745c4584f711ec31c1f481c55a9be02f8e2326d5696836de21504b6a8d6e24538e9b0af9942e5dbf20ec8875ef5d0136a74e58d3fe0a581d2cd25ea SHA512 ae0820426139aa1e88d509d9559141fc2048f9c3b931ac4fc609b5552b7458cf0fb404fcb35218f4dc168b98c334bab261bffe15c0670d99f755ee63295c0eba +DIST thunderbird-91.9.0-ms.xpi 578079 BLAKE2B 595bcaad49cf1a840ceb3992161977283103a9879719e1788eb1037191d33f0995d4edf6de038a76b6a05339fe475d1be8cf6d939561af2c60ae730449477d37 SHA512 1f5451d97ddcc0cf88be6f788b564d1675217dd27b57c418884b421c76cee429499b0678a0caf7f4538b69f168cc562b84e18b8fd1663aabdaf034366ada81a6 +DIST thunderbird-91.9.0-nb-NO.xpi 653325 BLAKE2B 78c244ff057e58bd97e6e8741fcaf07d556cacfb690f143371b4cbd394a2cee02cec5dc334f009a79c28040ba5f689d325e7c9fb309c53e0ed13d98411fbcaef SHA512 755dea2d0608afd85782554d6d5fdd8a952f1b78e34d27e6eff3460bc21fa1acf4795f969803892bea39ab7f07a22847a1f2dfef1e11c056df3a1aa642368911 +DIST thunderbird-91.9.0-nl.xpi 685342 BLAKE2B e692fb2d0925f47ddd36317e47011ba55fa92e78cd675c084a8a362b70359008236cdb1145d9a57aa6da1b25c9e3b6957d00d5205dc8294e3f21f62f25805f4a SHA512 9c451d80f4c0494cea1786e26933c1563d767d32eeb957a24c138c353aee6c972f977130242ffd4648141238983cd9c945037f56a43297db4366efc5806adaae +DIST thunderbird-91.9.0-nn-NO.xpi 658572 BLAKE2B 400c7c211b77d88de42b0e689c0d7cc80643010cefc219c09a2030cdfe90228b6c34b9a410751fd431afe9556a2ff54c422260735d5466ba36f82956f436f006 SHA512 0fa3bb155c9d30b7f5d47c2b7b26fc9130b3479144920a4214ad39c5f811806b085b756a62ced7840174835c621d5b0c5ebdb286d742fb320562233d91a92a8a +DIST thunderbird-91.9.0-pa-IN.xpi 652334 BLAKE2B dc03b3385a6ca9a299dc6aef455a7f482049ac305fd7f592ed389184bf7f8ba6893f4c4ae96a1cb99415d04248d90eaf3725886d744d85eda35cb5c36b10c0d9 SHA512 a180f8388d958af5ce54b7ae55b73c0d36950f94c73499c784c6c3314297713b314c95774dd53375db4a8b47d40ba315ae2574027127469b48bcc8c2010df1c0 +DIST thunderbird-91.9.0-pl.xpi 694111 BLAKE2B 00d7b6aee28790b8abe758fde4e6473950e7dfceb56c7dbd465593283e0078a48726f1f69e68dd115e2b9d34590d30dbcb5c6cee074868c419619c797c78fe51 SHA512 3dd4254fc63f44bf9e8171a4f2a0c4774496857db4d5334ef587ab6b2d4bccca5748ee4228e11373945b81f6339e7095a65faa3976a7cb2034f59fd5b4fb54cd +DIST thunderbird-91.9.0-pt-BR.xpi 694133 BLAKE2B 617276cdfe1ebe175d4b31dac5b60abed7ee0d9d47ef6ddce544a8bc597aa6a9e751736fd25cce76722fa09fa71e69b0840e90bd4e9cb8af853393822a714c4d SHA512 75e4f329e69a5362915ee15a3a9e83030f0013b1a8bae0bfe32976ae8d2915d7bad4e1a372df90fde78e7392d53aade50450350b9adee573931eb7af7a20e364 +DIST thunderbird-91.9.0-pt-PT.xpi 674674 BLAKE2B 7860059703f3c3f53c4947743c6c88b17f672a9cd1b3e55eccbe11169f9b44a4f699b0f2eb0011872d25a8f5b2260e532cea6dab93c04f8d4c7f56a22abe2403 SHA512 a41c5975f80e2a7b6199a4eb89fd14578b3eb003faf50f2cf8e8960c6283005f0170cddae897b446f31326e6efe811fda76fdf590985ed383089372dc0e90632 +DIST thunderbird-91.9.0-rm.xpi 687613 BLAKE2B 8876019fba14ac1cb3f6f325f2a2a1fa2323f4e566f83de058ec890862e27201a9a8e2a527c135c2862c3989da3b0df6be1734b818a65f4c576950f4b9fa8928 SHA512 249367a350a23c4f65c87b10598e08b708cdb645152f0405f98c14c407309f39862a4112865fbf22d2c3c388f4a9c1b0233322f88928e98f592d53c02ceb4533 +DIST thunderbird-91.9.0-ro.xpi 661345 BLAKE2B e58308083c72db3980cee4fbb1980a786f3599bf9c057312b2f7c6fca53b5f15d8d361868cccb622ef036c01382da65b63c2d89e16ecd4a07bac361bed2296c3 SHA512 b260a659a55d3722add2eba16ad3bb871e9b4ad206139d280fc304289cc38927e3f9052a5791cfdde82995844ec0e857fa7f0909fa02e88ca7eb3ce231b0dbbc +DIST thunderbird-91.9.0-ru.xpi 793375 BLAKE2B e3dbf6f667490ad5784e14e2f7f16387f8ba0c8d5ed6db21359f1696c0ff6cb12578435468b25a3766873a24a0c5dbc62bbd29148217e31569e64a855f0a2c4c SHA512 68f636e51bfcadd3bcfaf474d646786573f103d21d2a74b0b10efb7ea7c224e9712a78a46411850909c9cb51a3b2cd9c9986001df8c4871875516ba86b1ec77c +DIST thunderbird-91.9.0-sk.xpi 721092 BLAKE2B e12237d25e9de32ec9264a3a50a9a37e651d1f9cc01c61158a14e44446c4bc57dcabd98fb25f9b2b57b321fd9d8dd77442dfb8d25da473b33c769a3019dda5ef SHA512 a7b557163897aebec1c9f541320a08e0d6135ee4450e628697371cc07891870db3cb2e4c0c1ca3792a099042b757681a2ee2a984f20367f44fe3f51007527032 +DIST thunderbird-91.9.0-sl.xpi 682544 BLAKE2B 60203f9194ee028a941153ef8f1c15ac3e560723fa5ea342269f285523bbcdf2b88fc3479c1afa6aab26eee6d0c6caab25e110d3b89121820f9083e87bb398cf SHA512 87b9143619d9d6b87b30246e22c387279c25a0739897d3d695e89ac0eb30eb292979793df37cc804c98546b99bd8d4310b287445c3925c81f807a747dbe09c68 +DIST thunderbird-91.9.0-sq.xpi 703626 BLAKE2B 30664accc70eb50f04f9431104af849d30c516d8b331009f6fbfd333bae4b7878a7f3096b9dd633e26c0756025f50a79df5c27f0952e155fcc09fbd3c6fb2e73 SHA512 b0e94ac7eece597d8b3539ae16a5b64f0023e5a597ee94a9d595f597022ba3f707b796425bf484d0b8105ce8307f1cb9fe0bb46d642db12462272a666a6bff3f +DIST thunderbird-91.9.0-sr.xpi 710564 BLAKE2B 27b9eeef78c5119febdc144026c1c96ef0f7bf5aac96e643c846e483ca999eb9fe2df653e15c755afcfee25a06b2f572b49b9f08c2ab76ed4909f257b98d5a04 SHA512 553c34a62ebd2f15c993bef76c649760a532e22be2236509dc6c529a37549dcadaba8dcf929fcc8704712ca3740ae647a5d1fa7edeb279210cd624d0b788cdbf +DIST thunderbird-91.9.0-sv-SE.xpi 690968 BLAKE2B 875a193a3436d3df7903bea03d90d5b152de46b22f59408b48eb290c113410e1f587ed97f80b706a37ef59ca9b4def64a6492475f64d86a096c025f320562607 SHA512 83874b839edb45be55ea428a4c57a2e75a59ce389bcc9a56a36b7257177d61599cfc11875529062f5ba4cdf40f4ed9374af6e846a3d02b1de2322b32ea2110ca +DIST thunderbird-91.9.0-th.xpi 748754 BLAKE2B ddd63fc2d2de718d5d76fadf46b76aaa57a459d9777a6609a22796f5943004c7baa5640448d947a27fd306b60d36d18ff8a55cb83dbf30d31b5c15f990f7da27 SHA512 e12bdb07eca97361f1f7b0edcce5d127996a13829d882324f88f358f615eacb40ce15f3597181a529d747e986a49aa09cf40190623be1916320d4c373f8cdeb8 +DIST thunderbird-91.9.0-tr.xpi 699653 BLAKE2B e7af633ab015d55f55f7a7697c37adfb8e5e8aceded90577c787f191649f6cb63f94a5b7e3a2a592ad74914661e176441b9a7fb6e89089d0838cf88bd53d6847 SHA512 bfa109ab0cc8309100a653d8d3b39f14aa4178ed6aa490a825274d9ced25141f896a63bc93b4556d104ee3d930057e989ac9452f262f1f7e99a5a9b5f1d0ed5f +DIST thunderbird-91.9.0-uk.xpi 798482 BLAKE2B 03518c9a11aa24c3db8a13670b7384befd324fcb362cbc26c7be7909d35b88afd20d5b32e097b71dd1c0b2974d682338ea2e823aade72de5ef2994112401b031 SHA512 f78b1ae06c75c518de7a0229d64f26b2eec6a60aed637d8f3c91d2a74c6d3082caf11d84b41ac2d1688c38804e48ea5c8a1da15f7da7e7b88c528396669e7999 +DIST thunderbird-91.9.0-uz.xpi 595923 BLAKE2B 891c2b2e6f053c0360025bd59a4320e79cd3fd673a47922a091361b3bb45d15f92e6ac112af94abb407be2bff22ac4ed3d5c647e0ad6ac5f502a9d2756ff8346 SHA512 d94cfa93c26f1f654da9d26419ed63102a88b94732806c6c6c1363afe3adfb10535b68aa2d2f0117854f9a5b9478fc45e165bf5cc714795e3080e2fe9f53d259 +DIST thunderbird-91.9.0-vi.xpi 725525 BLAKE2B 461921f0281f635f4538f3f6303857526fff956b3911aae4473d9e191cbaf9b3ab639f25d54fd0490439f8e6d8e0ef0a83ef33f066c4c48fb3b37bb95b982023 SHA512 1e0bcef6b3d5885d95b792ce86545eb52d57805ef0bf7315224e624ee849c3219c4cd97cf74d9496844887108e6f583d58b2258dedd9d0d60284d7655beca8f6 +DIST thunderbird-91.9.0-zh-CN.xpi 730902 BLAKE2B 7b4afa2580ee07dc098940df67e457470cc03cc5f9680e4703ea9001af352113955c54fb318df0335977d41e426b873e41ea2364a7040b75edcd3fdb7a275411 SHA512 7e08d73b0a720800440ec7eb2d5ffd0e7ab393c6e6ecca515f5005bf1e4369a2b048fe5f4805536fc067712aab3b321c9bd546a342762114eac51f59871dff57 +DIST thunderbird-91.9.0-zh-TW.xpi 731944 BLAKE2B f1735f02aa8b45ee25ae684e0d63cc132bb6d1993f612bad9882a053749065d8bc0549fb5d74ca97cb4af306e8add6a466c1c001e7c148ebaf18130609a0602a SHA512 6030ad6d3c3b467ceabffbfff4d808ab5c63ffac4ece12b6c81116cf1a9b7cc5ce447f050115b60226ba0d3f9720636cb634bc7beda877eeab55765f1eb799f2 +DIST thunderbird-91.9.0.source.tar.xz 403847916 BLAKE2B 6905f18cace97cea12c02776d6b96259fe893cd416e14b4945e2a5982b025d11b4c74736cb6929211c6a9d13f0a5099b77bd40337a3b2c6a8cb9ee5f8fe35cb7 SHA512 474b5aca9c5e54fdc72eebff938f0d217bc039c3ac8d1caf965fb61bd1cf349f389a1df751a525de567a1eeabd7bb1bf2246014e84c7aab89edce059fe2e72d1 diff --git a/mail-client/thunderbird/thunderbird-91.9.0.ebuild b/mail-client/thunderbird/thunderbird-91.9.0.ebuild new file mode 100644 index 000000000000..a40dc07faedd --- /dev/null +++ b/mail-client/thunderbird/thunderbird-91.9.0.ebuild @@ -0,0 +1,1139 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +FIREFOX_PATCHSET="firefox-91esr-patches-06j.tar.xz" + +LLVM_MAX_SLOT=14 + +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="pgo" + +MOZ_ESR= + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit autotools check-reqs desktop flag-o-matic gnome2-utils \ + llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \ + virtualx xdg + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~{juippis,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.thunderbird.net/" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +SLOT="0" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" + +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel" +IUSE+=" jack lto +openh264 pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png +system-webp" +IUSE+=" wayland wifi" + +REQUIRED_USE="debug? ( !system-av1 ) + pgo? ( lto ) + wifi? ( dbus )" + +BDEPEND="${PYTHON_DEPS} + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.19.0 + >=net-libs/nodejs-10.23.1 + virtual/pkgconfig + >=virtual/rust-1.51.0 + || ( + ( + sys-devel/clang:14 + sys-devel/llvm:14 + clang? ( + =sys-devel/lld-14* + pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] ) + ) + ) + ( + sys-devel/clang:13 + sys-devel/llvm:13 + clang? ( + =sys-devel/lld-13* + pgo? ( =sys-libs/compiler-rt-sanitizers-13*[profile] ) + ) + ) + ( + sys-devel/clang:12 + sys-devel/llvm:12 + clang? ( + =sys-devel/lld-12* + pgo? ( =sys-libs/compiler-rt-sanitizers-12*[profile] ) + ) + ) + ) + amd64? ( >=dev-lang/nasm-2.13 ) + x86? ( >=dev-lang/nasm-2.13 )" + +COMMON_DEPEND=" + >=dev-libs/nss-3.68 + >=dev-libs/nspr-4.32 + dev-libs/atk + dev-libs/expat + >=x11-libs/cairo-1.10[X] + >=x11-libs/gtk+-3.4.0:3[X] + x11-libs/gdk-pixbuf + >=x11-libs/pango-1.22.0 + >=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/libxcb:= + 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.8.1:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-libs/harfbuzz-2.8.1:0= + >=media-gfx/graphite2-1.3.13 + ) + system-icu? ( >=dev-libs/icu-69.1:= ) + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) + system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] ) + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] ) + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] ) + system-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wifi? ( + kernel_linux? ( + sys-apps/dbus + dev-libs/dbus-glib + net-misc/networkmanager + ) + ) + jack? ( virtual/jack ) + selinux? ( sec-policy/selinux-mozilla ) + sndio? ( media-sound/sndio )" + +RDEPEND="${COMMON_DEPEND} + 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="${COMMON_DEPEND} + x11-libs/libICE + x11-libs/libSM + 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 + einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use clang ; then + if ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then + einfo "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use pgo ; then + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json \ + || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="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!" + + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }') + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}") + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!" + + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}." + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:" + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version" + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version" + eerror " - Build ${CATEGORY}/${PN} without USE=lto" + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole " + eerror " llvm/clang/lld/rust chain depending on your @world updates)" + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!" + fi + fi + + if ! use clang && [[ $(gcc-major-version) -eq 11 ]] \ + && ! has_version -b ">sys-devel/gcc-11.1.0:11" ; then + # bug 792705 + eerror "Using GCC 11 to compile firefox is currently known to be broken (see bug #792705)." + die "Set USE=clang or select <gcc-11 to build ${CATEGORY}/${P}." + fi + + python-any-r1_pkg_setup + + # Avoid PGO profiling problems due to enviroment leakage + # These should *always* be cleaned up anyway + unset \ + DBUS_SESSION_BUS_ADDRESS \ + DISPLAY \ + ORBIT_SOCKETDIR \ + SESSION_MANAGER \ + XAUTHORITY \ + XDG_CACHE_HOME \ + XDG_SESSION_COOKIE + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if use pgo ; then + # Allow access to GPU during PGO run + local ati_cards mesa_cards nvidia_cards render_cards + shopt -s nullglob + + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g') + if [[ -n "${ati_cards}" ]] ; then + addpredict "${ati_cards}" + fi + + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g') + if [[ -n "${mesa_cards}" ]] ; then + addpredict "${mesa_cards}" + fi + + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g') + if [[ -n "${nvidia_cards}" ]] ; then + addpredict "${nvidia_cards}" + fi + + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g') + if [[ -n "${render_cards}" ]] ; then + addpredict "${render_cards}" + fi + + shopt -u nullglob + fi + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc" + fi + + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ" + fi + + # Mozilla API keys (see https://location.services.mozilla.com/api) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if use lto; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + if use system-av1 && has_version "<media-libs/dav1d-1.0.0"; then + rm -v "${WORKDIR}"/firefox-patches/0033-bgo-835788-dav1d-1.0.0-support.patch || die + elog "<media-libs/dav1d-1.0.0 detected, removing 1.0.0 compat patch." + elif ! use system-av1; then + rm -v "${WORKDIR}"/firefox-patches/0033-bgo-835788-dav1d-1.0.0-support.patch || die + elog "-system-av1 USE flag detected, removing 1.0.0 compat patch." + fi + + eapply "${WORKDIR}/firefox-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + + # Make LTO respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure \ + || die "sed failed to set num_cores" + + # Make ICU respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/intl/icu_sources_data.py \ + || die "sed failed to set num_cores" + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \ + || die "sed failed to set toolchain prefix" + + sed -i \ + -e 's/ccache_stats = None/return None/' \ + "${S}"/python/mozbuild/mozbuild/controller/building.py \ + || die "sed failed to disable ccache stats call" + + einfo "Removing pre-built binaries ..." + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Clearing 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 state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + + # Set Gentoo defaults + export MOZILLA_OFFICIAL=1 + + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-install-strip \ + --disable-strip \ + --disable-updater \ + --enable-js-shell \ + --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-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-png + 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 sndio + + 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 + # ld.gold is known to fail: + # /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld.gold: internal error in set_xindex, at /var/tmp/portage/sys-devel/binutils-2.37_p1-r1/work/binutils-2.37/gold/object.h:1050 + + # ThinLTO is currently broken, see bmo#1644409 + mozconfig_add_options_ac '+lto' --enable-lto=full + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + + if use pgo ; then + mozconfig_add_options_ac '+pgo' MOZ_PGO=1 + + if use clang ; then + # Used in build/pgo/profileserver.py + export LLVM_PROFDATA="llvm-profdata" + fi + fi + else + # Avoid auto-magic on linker + if use clang ; then + # This is upstream's default + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld + else + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + fi + + # LTO flag was handled via configure + filter-flags '-flto*' + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + else + if is-flag '-g*' ; then + if use clang ; then + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*') + else + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols + fi + else + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols + fi + + if is-flag '-O0' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0 + elif is-flag '-O4' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4 + elif is-flag '-O3' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3 + elif is-flag '-O1' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1 + elif is-flag '-Os' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os + else + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2 + fi + fi + + # Debug flag was handled via configure + filter-flags '-g*' + + # Optimization flag was handled via configure + filter-flags '-O*' + + # Modifications to better support ARM, bug #553364 + if use cpu_flags_arm_neon ; then + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon + + if ! tc-is-clang ; then + # thumb options aren't supported when using clang, bug 666966 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \ + --with-thumb=yes \ + --with-thumb-interwork=no + fi + fi + + if [[ ${CHOST} == armv*h* ]] ; then + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard + + if ! use system-libvpx ; then + sed -i \ + -e "s|softfp|hard|" \ + "${S}"/media/libvpx/moz.build \ + || die + fi + fi + + if use clang ; then + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822 + # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64') + local disable_elf_hack= + if use amd64 ; then + disable_elf_hack=yes + elif use x86 ; then + disable_elf_hack=yes + elif use arm ; then + disable_elf_hack=yes + fi + + if [[ -n ${disable_elf_hack} ]] ; then + mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack + fi + elif tc-is-gcc ; then + if ver_test $(gcc-fullversion) -ge 10 ; then + einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..." + append-cxxflags -fno-tree-loop-vectorize + fi + fi + + # Additional ARCH support + case "${ARCH}" in + arm) + # Reduce the memory requirements for linking + if use clang ; then + # Nothing to do + :; + elif 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 + + # Portage sets XARGS environment variable to "xargs -r" by default which + # breaks build system's check_prog() function which doesn't support arguments + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs" + + # Set build dir + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}" + + # Show flags we will use + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + # Handle EXTRA_CONF and show summary + local ac opt hash reason + + # Apply EXTRA_ECONF entries to $MOZCONFIG + if [[ -n ${EXTRA_ECONF} ]] ; then + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!} + for opt in "${ac[@]}"; do + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--} + done + fi + + echo + echo "==========================================================" + echo "Building ${PF} with the following configuration" + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do + [[ -z ${hash} || ${hash} == \# ]] \ + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}" + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}" + done + echo "==========================================================" + echo + + ./mach configure || die +} + +src_compile() { + local virtx_cmd= + + if use pgo ; then + virtx_cmd=virtx + + # Reset and cleanup environment variables used by GNOME/XDG + gnome2_environment_reset + + addpredict /root + fi + + local -x GDK_BACKEND=x11 + + ${virtx_cmd} ./mach build --verbose \ + || die +} + +src_install() { + # xpcshell is getting called during install + pax-mark m \ + "${BUILD_DIR}"/dist/bin/xpcshell \ + "${BUILD_DIR}"/dist/bin/${PN} \ + "${BUILD_DIR}"/dist/bin/plugin-container + + DESTDIR="${D}" ./mach install || die + + # Upstream cannot ship symlink but we can (bmo#658850) + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin + + # Don't install llvm-symbolizer from sys-devel/llvm package + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die + fi + + # Install policy (currently only used to disable application updates) + insinto "${MOZILLA_FIVE_HOME}/distribution" + newins "${FILESDIR}"/distribution.ini distribution.ini + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json + + # Install system-wide preferences + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref" + insinto "${PREFS_DIR}" + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js + + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js" + + # Set dictionary path to use system hunspell + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref" + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell"); + EOF + + # Force hwaccel prefs if USE=hwaccel is enabled + if use hwaccel ; then + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \ + >>"${GENTOO_PREFS}" \ + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js" + fi + + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it + if use system-harfbuzz ; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref" + sticky_pref("gfx.font_rendering.graphite.enabled", true); + EOF + fi + + # Install language packs + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') ) + if [[ -n "${langpacks}" ]] ; then + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}" + fi + + # Install icons + local icon_srcdir="${S}/comm/mail/branding/thunderbird" + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg" + + insinto /usr/share/icons/hicolor/symbolic/apps + newins "${icon_symbolic_file}" ${PN}-symbolic.svg + + local icon size + for icon in "${icon_srcdir}"/default*.png ; do + size=${icon%.png} + size=${size##*/default} + + if [[ ${size} -eq 48 ]] ; then + newicon "${icon}" ${PN}.png + fi + + newicon -s ${size} "${icon}" ${PN}.png + done + + # Install menu + local app_name="Mozilla ${MOZ_PN^}" + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop" + local desktop_filename="${PN}.desktop" + local exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + if use wayland ; then + use_wayland="true" + fi + + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die + + sed -i \ + -e "s:@NAME@:${app_name}:" \ + -e "s:@EXEC@:${exec_command}:" \ + -e "s:@ICON@:${icon}:" \ + "${WORKDIR}/${PN}.desktop-template" \ + || die + + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}" + + rm "${WORKDIR}/${PN}.desktop-template" || die + + # Install wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}-r1.sh" ${PN} + + # Update wrapper + sed -i \ + -e "s:@PREFIX@:${EPREFIX}/usr:" \ + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \ + -e "s:@APULSELIB_DIR@:${apulselib}:" \ + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" \ + || die +} + +pkg_preinst() { + xdg_pkg_preinst + + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse + # does not need to be forced into the LD_LIBRARY_PATH + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + einfo "APULSE found; Generating library symlinks for sound support ..." + local lib + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do + # A quickpkg rolled by hand will grab symlinks as part of the package, + # so we need to avoid creating them if they already exist. + if [[ ! -L ${lib##*/} ]] ; then + ln -s "${lib}" ${lib##*/} || die + fi + done + popd &>/dev/null || die + fi +} + +pkg_postinst() { + xdg_pkg_postinst + + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + elog "Apulse was detected at merge time on this system and so it will always be" + elog "used for sound. If you wish to use pulseaudio instead please unmerge" + elog "media-sound/apulse." + elog + fi + + local show_doh_information + local show_shortcut_information + + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + # New install; Tell user that DoH is disabled by default + show_doh_information=yes + show_shortcut_information=no + else + local replacing_version + for replacing_version in ${REPLACING_VERSIONS} ; do + if ver_test "${replacing_version}" -lt 91.0 ; then + # Tell user that we no longer install a shortcut + # per supported display protocol + show_shortcut_information=yes + fi + done + fi + + if [[ -n "${show_doh_information}" ]] ; then + elog + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):" + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all" + elog "DNS traffic to Cloudflare by default is not a good idea and applications" + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5" + elog "(\"Off by choice\") by default." + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences." + fi + + if [[ -n "${show_shortcut_information}" ]] ; then + elog + elog "Since ${PN}-91.0 we no longer install multiple shortcuts for" + elog "each supported display protocol. Instead we will only install" + elog "one generic Mozilla ${PN^} shortcut." + elog "If you still want to be able to select between running Mozilla ${PN^}" + elog "on X11 or Wayland, you have to re-create these shortcuts on your own." + fi + + optfeature_header "Optional runtime features:" + optfeature "encrypted chat support" net-libs/libotr +} |