diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-05-18 01:57:10 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-05-18 02:05:54 +0200 |
commit | 0dff4c4dfc41a29d500a9682c98abaf3161ebba6 (patch) | |
tree | 62f2c448ff837f0680db426c8a11306509196b92 | |
parent | net-libs/libmicrohttpd: 0.9.73 license fix and other minor fixes (diff) | |
download | gentoo-0dff4c4dfc41a29d500a9682c98abaf3161ebba6.tar.gz gentoo-0dff4c4dfc41a29d500a9682c98abaf3161ebba6.tar.bz2 gentoo-0dff4c4dfc41a29d500a9682c98abaf3161ebba6.zip |
mail-client/thunderbird: bump to v78.10.2
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r-- | mail-client/thunderbird/Manifest | 65 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-78.10.2.ebuild | 1108 |
2 files changed, 1173 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index cf8d934d1209..67249664433f 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -64,3 +64,68 @@ DIST thunderbird-78.10.1-vi.xpi 674610 BLAKE2B f14923a00644e107072179603d06c072c DIST thunderbird-78.10.1-zh-CN.xpi 687177 BLAKE2B 43da21f8faf74f9392ede14bdc8bdc7ba741724cbfae91ab6dcd9e3a8ad41e834355a3069e52acfdbf5bb3685f53e275cc4aeddfb987939ebfb6b1329384cb01 SHA512 2275a1e189d806f98c59a19231ed03683aed60bc08969cbcd9d3650b9b545ba3f2cc143b536a6689bb9b14c930048cda85d038267de3a75d44c3132dc474238b DIST thunderbird-78.10.1-zh-TW.xpi 687622 BLAKE2B d3ff5da0323d6529a142ca20d29ce06397fb6761282ee6f4b8dc03ea4a79874f9db5856e5980de8cb7b2e68332b3589121768c1abefe9a9e5af29dc1cbafec68 SHA512 b4f85ca2ae438265fa9fdd99910d292937e78687a74cf12cc33e1a693e38cb76820a0e0c45f50de39cd2c4a3b911b5988eddbedb52a15379121590c9383ffac0 DIST thunderbird-78.10.1.source.tar.xz 354316236 BLAKE2B 756f471de37e96f9e9733864747b5d9270dbd67592e02b3632f80d815af95ce421a913f3f8d9454d5b5885e5506a6dad36f7b7c20ab46c371a5ba594cc51e681 SHA512 fffae4bcf2411834a86b5d1fd7c3fa8dbc32763061de4afef44ec95d55a8c4ab94576f54bd8b8c9aef22e0c4a09b48a381ba2ddafc31be60ef79b81e6835e4db +DIST thunderbird-78.10.2-af.xpi 548348 BLAKE2B 44d4c00a3672a82a1d7ec37394b6952824d940163a63213b8efa17488d97277de285f053ecca2925baef5ebb296647914028fbf37c884cf8d2527219e762d7e5 SHA512 04be6901b422e6a0a93d4b2a8c930f3ac8c78d4ce4fdff0dcfb904184080e5f1b0a10b05c44358069dfd9372fdabfeaa4b7a8b92fc16867fbe43569264996a08 +DIST thunderbird-78.10.2-ar.xpi 648605 BLAKE2B 5f78480a6bca437d650f8567e8fc53dcf1ed61b6fc303f245d6634917caba60a85aa95636029891230d898e49076601be9c5265c9f00f2fb3ee88793e9159a81 SHA512 85d4711c30a7956199d34b5bb5b20a1876758bb12dd0ab09a636d5cdee8c3038f5f7a1940327218aca635e8789a36cd4d8318878999bee7bf49e87e88e7af829 +DIST thunderbird-78.10.2-ast.xpi 561260 BLAKE2B 5c5883a0f42ef3b5ba1d42e70ec5d526eb93254d797c60ef757eed42285c9f9105a644088137cf59847da9fd20b7fdbdfc65c12c5c31118b8b004ba45c00bd28 SHA512 b3650198079ef290e82e51b9eb659c6675927378b14903de31d746ba6f5144bc8b1bc59b4909226118b4d5b88eb16ee7aee686cb15e6a28ae34e3a5bcc6d6441 +DIST thunderbird-78.10.2-be.xpi 666673 BLAKE2B ba9662d249e523f77b03be2b4e1f2610dfc28d9f037fe4956ad94ab3051f191218f8b660aba21dcb52c214785debc61cbcd5ffa4805c4b2c6697c80941051f1d SHA512 b3cbe2dbf3b7dbee3033c016a5cac70d54633c568f2582005c08d9d8c600c6a4a63913f7c3bb33a504d3ed1cb573cfe922ab689af98b9bec1d945e1f034eb15e +DIST thunderbird-78.10.2-bg.xpi 672412 BLAKE2B 4bcbf02e1dca21fc173da5cc7a5cfb748e6044433822efd9a2b908031155adad15606c60e40a9f75f15cba78ab9fe8571fd881b6479e2aef8498136a6b60e21b SHA512 6b4ab327f53e80f824b4b59091dc08e10f34919e8acbd2c89b0721a213ae500d4a355fff546e83eb3a610063a1d9789d087e04a9cec611f77a1dee4945575998 +DIST thunderbird-78.10.2-br.xpi 604525 BLAKE2B 3640c79dcd9c78f8afbb63153d93371ae5b50021494dc8cb5aa7e0191ce426e235d02406271a1f909fab7ad1229b7af77aedf2f8deb1fab0461b45bfb2825cec SHA512 d1f7be100422deee4bb678913e96e09c94dd198d08ce24eb1cef64aad85313aa539e21180ce25e0d6de7ba498389fc270c502005c2a5cc0468501aab45b392e6 +DIST thunderbird-78.10.2-ca.xpi 620452 BLAKE2B 2d61b461c81ea6e240fd551d0069b2aa87b30bbd06560b3917ee408b7f26a017938fe500050ddec3a63d371f178f418ce68ee7f73627683dbde33ac79d0b1f99 SHA512 c6bc69941c2f733dd92ad350a258520117407b6ee5877a236107974b3beb5349f29bc9f53071795fcfbed5c8abac104c08e0ef1c3848eb05ec6c67b857dd03c9 +DIST thunderbird-78.10.2-cak.xpi 635643 BLAKE2B d9263dc1c5d91bf2c69b3b6bcfdd640b8b566f82c68911e501aa4546935b729122a052d36a9531fa56e838500ad08a87761beb6e0a9150854e7231c4edf1f22b SHA512 ce771df6180ebc95e53e38dff77da0a55ca5c56085cb172e7cd4400e01915429230b675ce3ae1c15d59664476b1de1800cc59a8d4383f10dd6171868bb45a05a +DIST thunderbird-78.10.2-cs.xpi 635349 BLAKE2B db347a943a0fda46a60851e3c2731514a3695ce7a44c09c71faf6f37f1282ffdcebb752462f7419189b9ccbda0f01e0b58a38c1eeb79e7e5210dad14cf81d935 SHA512 50eea5f566706ed0cef0ec8fa0cb292e7b0643aab21393516e31cc2a61dbdbf45e81c59dd8c06657cd93c0d68db10301633bd73c3a76b2760600a06d1386a0ef +DIST thunderbird-78.10.2-cy.xpi 646244 BLAKE2B 4201ee82f7f512bd4b58e652948e0320c716e01169de66b1940e365d599eed25ada27eacfc4056392998266d640f37696e890236854ba0d8a3e3ebee965b43d0 SHA512 0086a25f0970f21b57109539ffbc8ef7dc6966c3f3e06a66e45986c8f209718bcc36a4250e84a97427f71d82c68949c25c7348fcf0ea6a7bcddfb6d12892e33d +DIST thunderbird-78.10.2-da.xpi 620986 BLAKE2B 17c608c1b857fbd8b7c91419ee7ab82f48a55211d4d6085dcb6614f49a9dca4c21077a5ca3da075b3dc8afbf4d375141e53e94150fb0e2b02adc5dde21381ac5 SHA512 890604e4470ca600e7ba2e80d0a4ff78deffd422207a9fd2ce23dd84f6ff2dcb36e351c21ccfa2d1e188229c8b4da9902f8e045cd518ff202aed1023d4fcbf89 +DIST thunderbird-78.10.2-de.xpi 665195 BLAKE2B b1460496d067743ba77205d34ee7b1cfdfe486255385c9df466a64fb49f846b5241e9e3e5b556b93b5102086bf96a06b3fbc8784a7c06b8188c027b32093474c SHA512 5170ac63d6295f84e5cc506af09e4af87dd91a7438a916342ab5d485ba028aef2704b49d1736d55fdc1148c371d72ff0adc97918914e79627ae73f25b7df7c8b +DIST thunderbird-78.10.2-dsb.xpi 666782 BLAKE2B 956dcf9929335166e9854c92e03e5e00c067d8c64e9353933c5acf1ef24a45f3d2800c81339ff13fc959ab8fdc7aac3955028b65018be5f574be4f8edecd6916 SHA512 348186117e9b05ab20562e89d15bfe2f1a3d190b8316e250bd5464b2fa906bf932297902c7c4088293895c8da8cc6a274477a2e36ec23a855a94fac1f2aac6e1 +DIST thunderbird-78.10.2-el.xpi 774450 BLAKE2B 9a460212b4a66f05c4ca9698a3b6f17ba3f2c63546badcd96f7e5550a41a201e80ba631fbc433746326c35a8cc94d2a12cac84e387dbbe90e3f940c64512d2a7 SHA512 e0ed4353fe0e51213a1d8b065215efeb287e57438f3da26530dec04a805f04fc1a1265dbddfda636759f150b895d80ae5b71e118baa09da2ec64398518b997c6 +DIST thunderbird-78.10.2-en-CA.xpi 611770 BLAKE2B e1f84a1979244eee2a23016aad9f5fd916d3e8cdb09e60c66c1641470a8246a0842ec99d0fdfa03c1cb0eed966a0872d59429cccf926c81607d3162decdf92ef SHA512 556d31167e89c7382a7d32ea4bb96aa280633641442d9c086cda060dc65dd7a49a19d771822beaa535650b17494f7a9b598fa8ee87b091691bec162f65236789 +DIST thunderbird-78.10.2-en-GB.xpi 611185 BLAKE2B c7721ba0647aa11f89eb1306ee08a8f07d0d49ca21bb15637522a753bc649b6d00d770a7ee1ffcd12cb25f128925c257f9d9725374b5d274830b098a88d10446 SHA512 f715cda23baadd9e3a2e06dd4b082a12832c07fc067e63ca3104036a5d5ffbde25d20b1a64473aa1052201a57d05d9bc9bfef7f1a0da6133db7a20f6667d07d9 +DIST thunderbird-78.10.2-es-AR.xpi 657792 BLAKE2B 08bc25600a0cccb5bed74f22599d2d19361be2bb05b65658ff0ec9eabe77500e2c42642132afa7509c7045372a18ce4c7f9b0c515821dc19d0a2d5bf8694c6a6 SHA512 62cfd7804e507f284a2f2e9f2bb13186d589d2e1c70408efe99fb9ba61f6a9952adc9d64cd9c27b10e635f81ff67500d2949933633c56db463931ceb87c9da9f +DIST thunderbird-78.10.2-es-ES.xpi 569803 BLAKE2B 63251b76597eef77813d280e1aeefcc7302f1b7b7423864a9d2b7a80dd1f048290c4a2423e3e0865ec3cfd094223ac8027d6a4ba34d7469c59aaf8de3bd79fbb SHA512 85d572e747101b617c3592b39d290097b279054424d44d515b86c067eda0b7c1c0b157865a5f1451d12936e27e2184bb59a6b939395b8c8b7631f057f112a078 +DIST thunderbird-78.10.2-et.xpi 597726 BLAKE2B 54e228ac4d4f6a4aa4303218a912c342e289aabf9bcc63eb46dae5bd9f27ef0c652b6b8803558c42d5ab5381d70bb7364a35119703d64dee69c1e7ca011bd5e6 SHA512 b81c7f7118d4c420367fdca070f8a429df466ee01d1e5a9a41d22954ed67aa2099769b5338caca97a862a3a124583a9a63f872606fc97d3c8053d5287a6a1791 +DIST thunderbird-78.10.2-eu.xpi 632964 BLAKE2B 4bf02098d86275174c24c8843e921205c9e434c93f46e90662f89f08d8950407eac656545b8f8ccd62e3502524792f3659b49784f14923de631167bf832d288d SHA512 8cd4f4017ca520df5d7e0eea842d71df3b5be2587461aa616c89180c4e343f04437296e32ed2a7013fb5a181359f9c7ffcdcc9dea768967d4ee8001857376a9d +DIST thunderbird-78.10.2-fa.xpi 639752 BLAKE2B 2f093ce8770ed9a19d57f51b870aac4a927f9f6b046f2352853469bfcd4a6788262b39951537ae9f3eb0007bef9c08f30b43fa6f76895f001c1189747841c18f SHA512 1226e1b25e700910760a1a85589d9a73116fb51a359d8f9849a5b17a0f8092a8784e20b849c7d09d6812849224892c68daaa697d636aa40e1afbc3df0a3f0c69 +DIST thunderbird-78.10.2-fi.xpi 642442 BLAKE2B d7081d333cc01f72a3b72544e026b40888746a7f17d962ee60ffaf323365b17449ae4368c135ab3fb502740d5d9e72288a21459cc63b4a3db209e1f4e12af358 SHA512 cd4d395d873e6625856c09db05e115505d4c6143f3a577d5c9346ae9154ed5400e7a45e4e7d286fcbb76f7769358fdb8a4c57d713932dffa26e6f473867d4247 +DIST thunderbird-78.10.2-fr.xpi 669481 BLAKE2B 22407c8752f2e1d9699bbb61599352272d6fb6d1f4afc1d1b64d45cbf0fe2c717fc12c5017c507ea468f4db2908d0e30df9d46040e55085b813721e5576263a8 SHA512 dbe0ff9059035b64f67325fb9de743b020401c1e93a4b17ca82e1e77cdf9463961bb09a2776091d116b15c2cc7325ea749220853f6dfedf9737ac12dc9591221 +DIST thunderbird-78.10.2-fy-NL.xpi 653080 BLAKE2B 4b2a06556bafad0fc81c3f2b136ba68ab30b0424307da7f20c0b979e61c893ec02f8a3b6755461a00f4fbf3c38db66247e883ab6a1ad88aa1968abd8bb180b59 SHA512 168c34a6ee346501544dde7a253ee722a0666c384bae3b9b91ebcedbc84bd6deee855b86b57e6d1b1c853287de04d440797dc66cd1e5bc3416aa5d8b211d598b +DIST thunderbird-78.10.2-ga-IE.xpi 600713 BLAKE2B ee9d5505564521d4269b6955e2f77c13aa7cade2ae9221ec59ad273423cfb1962f9797be9b48a5cc8bf4e8e6ff68f4075bd05ec26087f5bcd7c60a90d7f7a463 SHA512 39eda3c2975c6fc97d976ab4eb9c2c2721b28abcb4baf628b6ff4f7b5f338fe162e12dfd720b48185de9ba7d01afdfcdfd9489e71e2d61849da12da6691bade9 +DIST thunderbird-78.10.2-gd.xpi 609384 BLAKE2B 35be1bd035f82a8712a78048aaf12f849e8624bc67aa788a5e27b90d938e3f36d89d6f3219524d30edbbf462e9f5d727c1c9e5083361e5537eec51cc86534692 SHA512 b6d2abf79ee0f44e9146b138edd33f206beca9190d209d04d065f85960967c9938e82312bdcbc976431f9a9987345fc0f891a8dccb9e168564de4d1762c47d51 +DIST thunderbird-78.10.2-gl.xpi 615724 BLAKE2B 8c1dc5d50600eff64093976bdad4653c7325f322bcdbfe0bc5aabc6b972f87a81c4fa4f31f1fd8d6f24f7b84746f691bcdca4ff18d23b81619a40f5141578c18 SHA512 5709527a6bb1ec825be1852b5a1ea9544838507e8c7f1825ca21c2d54db217f8d54187fe9326ca05205505fed95d75ab170b60fa744284e8d0ccb96a5de8b6f2 +DIST thunderbird-78.10.2-he.xpi 640496 BLAKE2B 850857fa02dc7b08bff873ea80174977cf27e42e7954160d0b1c1d40fbfd8ae7f98eeac437716a8b1213412944a6dd7f2a793fc19a329417e360d6a813719bae SHA512 376d13a92cf8e4109b7e042674757a57839d5415dacc357b3698eda42eed31a761afa210c993a0bdfa43b068b95f407e659b58a5273217a5b11fbabff03f6f45 +DIST thunderbird-78.10.2-hr.xpi 629022 BLAKE2B 7248b0140cfc2ce59a3c4bd7fae7d3e4085718395afbbb234cb5aed9df75c677570683ce5b0e239a0cc8903a98eb5ea758d6ac513c2c1332235da9bdc83cf31b SHA512 d41384c8d3ea1a9523e6a9dff4de64bd6a722e597de1a3fdbdee7f6c5efdd5cb200b37bc7c0b2e7e62afc708ac0316598fcb6596c17ba6692b39d82b7e24e058 +DIST thunderbird-78.10.2-hsb.xpi 668611 BLAKE2B 5dd7104555af6a764a21ddde7e6d70b40ffdf88d3e998a4baf04c6613b3b6a87cfb96864339c5a6ce0c027e41c0f80f4c19d5340053165c5a5a86662bb3e1c02 SHA512 7d9b17bdf9897fe39dd8648ca6925f38b12a9f849434d8831fe18ce4503ef823f2fae94eff60c608f7fe6a75f5e9f0ebf970af55ad56c8c8c0efd9126143ae10 +DIST thunderbird-78.10.2-hu.xpi 679840 BLAKE2B 5dab056090c23f622821c84a20c52b788ad90558486362d02925c2c7afd4385e57dbfb407b7008ab73e7daf138eabd88997ac99a35dc6fbd30914797f04e0a44 SHA512 d0da60afca83d108c00d8719a424d5a2ad548e78b87e104482109b4ec037599366d555ea0cd0d6f2df21420ca48be2f3f46d2411e0161405c0bf6fa239cebe48 +DIST thunderbird-78.10.2-hy-AM.xpi 713320 BLAKE2B 531637a8b10a7820cd0d5372464ecdba440f18a976d02a7c78c934909c61fa724bf3c466fea1e3049c3124ab3aba553d2a35d9b58cd60bf5a58f21d2e5b63a07 SHA512 896c2ecfaf7ec41db7cfd72389877a922357e5a81111f26d574e0e5a960139882b904b77b4106ca18fa3e3263c659c0e0aeee889256b1433b9dcb64c95373245 +DIST thunderbird-78.10.2-id.xpi 620679 BLAKE2B 0c462a5727cd578b53df07fc5778648455e04b2622bed5b67d6972b9c5df53d3dbd1a1bc0549f701608644a6eaafafe38a447b7e438f779f1aada21a8ae9b0bf SHA512 fbd903a461a937e3db90a245120883f26af6becfad3a2aacceede9fa55e097f2e01087382452e84fe8f2c8508f9fa6e2771e5b2f34966e58a1414c54828cad3f +DIST thunderbird-78.10.2-is.xpi 581641 BLAKE2B cdf3733bc1f8f7103db0d2dee0e6857c8f0e8b6455ce2a36cc0a1d3a0a90eeaf570472ac45669122a390e5d2717df8f93907e9805c7bb087744e200ad87dfead SHA512 4bced7458b72299dd972885d9a14bfa0cb070bc7628cb5c85943f31bc6aa86b0907f451a258e93c019fe960da05254636e2fe09fe9dae8ff37d527426691946f +DIST thunderbird-78.10.2-it.xpi 572953 BLAKE2B 84fba8b170e25887990188e94af1529862074819fe5440761c0881d4dee3a2c3bf2443f8c359ea3dda8721d0bf3360c8cd28aa32468ace843de259ce5bbf8ea7 SHA512 ce05dcf72a6f2c38b514bb69f341defc4992b9e5f0857632ef6ad615ef11cb68809c150799ec9a41fcc7ec0876baae568d27f2ea1a4172b3ba80cb3da545b09b +DIST thunderbird-78.10.2-ja.xpi 722453 BLAKE2B ec5018bbcbc768a3221659af8d168ef11866f52dfc358e112bd8c4156e65119740f9b4206cd2dc61f629479bd69a9fae3c48d390ef77f52a41b71d887fc1f186 SHA512 25d4df5cec1edfd51689bab088b6af563324c775d50e78923210ce67584015210c8a17d3ca6769aad96f76bcd75f3f522d0421df9a17ced8ff20e5de68c7b945 +DIST thunderbird-78.10.2-ka.xpi 717012 BLAKE2B 0d59c3a06805f923a950832cf11588441f27e4c00361a2ef72acf89bbf030255f595565b824f20194a5fc021f10d5a85e12a144dabfa1f4d3a947d86363e59e9 SHA512 d3101d6b88ef3826a7aa0211e2b10483d2c36c99be58281435596d4d8e6550de317ee874b15769ae97570afe77d777cda265a22259041686bd6e1d9d576fef28 +DIST thunderbird-78.10.2-kab.xpi 651915 BLAKE2B 1dc33ea30fbf1b5ce768edf3628db3223b54eda75b1e3b29355a8915268ca4ef4cb7940846775dfbb35adb3b68671207e0cca8d5f32e6dad7127fb6605bfcc20 SHA512 3532c79866b6e8ff9114a9b6e6548ec7cabc9e95d7dc170433ec6cdf9546b28035c57a55ee7123ae0dc4d75365a2698be4afdfbef5b49696288752549892c8bd +DIST thunderbird-78.10.2-kk.xpi 720474 BLAKE2B 1fa1d19b9915d74bac8bcdf0b4f97814cb7d0534b995858b0fb0342c46d0b125b9c80a70beef806f59e5d358cf7b44bbeba9364ce4f7f262684747b711e98b68 SHA512 ab87fcfb64f201238ce4b3eff5e3bc1409cf9fd3f2f530e89b9a0d275857bb67c3395b395236f27a240c349b7df9ae369a884f0fcbe3288a928ee2aa5eac6326 +DIST thunderbird-78.10.2-ko.xpi 688203 BLAKE2B f653e31c60a06a8785ecf6abe15096c73ab0da1895b264ce877320674baf961a56f9af8634d85e26c5306eb4adf893c469fe26ebeefca45a07a3580fbef5e57d SHA512 8d093f074de0731b8fc1b6f871c8c88735300ba1358544d6f048e933b8aec2036a310fb819ca4ea90efe665b4d76c8ff2732fd2effda5a5a1c746fe62f924649 +DIST thunderbird-78.10.2-lt.xpi 660299 BLAKE2B 3219cd098e4bdf7b36de9e7c93cc179e90efd81564f6b10018b165ec98a8bad39f07653e246ca847a2f496ddc3e81d5d726e7350f04004e15b50eff9e04241f1 SHA512 5250616c627e1eccfc4ade0fd9261e06c39dc72a1b1fb24e6baa913e73f29f716c8182b722fe4b8e334ac7d33f642e1e288c21e5e3551fb9db01b7d9f61cda4e +DIST thunderbird-78.10.2-ms.xpi 572182 BLAKE2B 246077b9e37beaad2569fbb2b8ced527f8ef8475ca8566764c1eed6de2f25062f6ca80c68681c919ed856e23e02e31816859490ee39ba9ee67531ef46aa84e66 SHA512 e10122543d7d1f5eae0c102243a7ca47072663f3f18db0a7023a153d669432b2bcfdced994f6d1b2c9a30f876ad0eb895dd505d143039c1c00259a99be5baf5a +DIST thunderbird-78.10.2-nb-NO.xpi 637239 BLAKE2B 1561f8021d620dc798ee549c9ddefe1868a04e198606a3fcd4c0f77edd765f4294e25b86301778bda9b68b7058797771976d2c2966df342c84895d5633ee5b9c SHA512 0f71998f5ae3ea04dd5fdd1991d47d39eb64b60ae577790d94c8297770a88360e0ce6559efa6e49c819d23fb29fae9c6aa1bd45891c8c88e8d7a6294e397268a +DIST thunderbird-78.10.2-nl.xpi 644359 BLAKE2B 672fd8b9f9201beb6ec8fcf74df1c742ca0ff286cada51f9a0283a8b9cddce7edec6085666651ed2dafe346aa9888dedd7851a236318a4723cc9dae2afdc9325 SHA512 aed8aac63a8ca07aa138b6502f73993547772c7cb0932af13e2a73a97c2b233d930a15d387faff17c7970fa5e5bb2c6ee31b7f37fc7ff2d187e1c364d9217944 +DIST thunderbird-78.10.2-nn-NO.xpi 640689 BLAKE2B 76552d4e06706e5cd8dc1ddce07f751ff3a9bd09419abd9b44d6529d1b043edf58bba643ab172ec8d435a2cb738f8da5fbcb0a49dd5a2c85841c10c31b961a9c SHA512 7425aeafb5f10949484443d9074d09b78665086c3e666754ea0e4f2bc8b9917529d84cf6b8860d3470613648bac2298b43b20422c8833c3c8a13b02d35abce33 +DIST thunderbird-78.10.2-pa-IN.xpi 633216 BLAKE2B dc9357e642df02dd46419f9f7b328499f5b324305484728c1d8b5cca0b3c0c2743d2d966cfeab1aaeb82109f7accf914f1ce29329bdeb6eef6722dc78938a67c SHA512 c1fa268c497d5a43e8ff01345bc1c558177e4dcba9cd8d5ed82d4b200c2644b46ad183b1231bc540c2b13f4598d51ae020d2372798a7b6607451d172fb14990f +DIST thunderbird-78.10.2-pl.xpi 637124 BLAKE2B 608d4074839e7e9b8f93f240c3d6796efeb83af4bf593e90a573a65ea981b14182c46858d71e35040b16db4f720f756f7c02683f607aebb19c356da46456316a SHA512 a3ddb51596eab1025d0f4512975ffbdf641c6e4ea6935cccf4334248140f46a6082d525852936911602060ae7dc38f70d1f9f4289c16951d9afea05570583b02 +DIST thunderbird-78.10.2-pt-BR.xpi 649421 BLAKE2B dfafe541f4023a1af4b0cc72fc3a9dcbb724f82ff7ad7af41bf8c21a26b91bfdd24ab671901ee091d0950810ab30d2d5bef84dffd0f5dbae1974f0048e240f70 SHA512 64ffd00023ca35a6d7e4ff946144a3a4f9bc2356622700effd971b2b13a96c2f3176925cff7d69e1e407eeb85256a6c2be6fab0b84c8ae827afb16a58abfb4d1 +DIST thunderbird-78.10.2-pt-PT.xpi 655499 BLAKE2B fab4eeba41e55937cd2a045bae8afb6b8101b42c76fbdb41b70c62b9b439c837be9a30b37b17ec83948cbb9fcf7d4ee27e93b95993cf60de867445ac364c8e13 SHA512 04a4d949f24d37af1f3e9b201df766e9fdb2d6ea0100acc425bb0d3db3f8ed900d8a088148c3b2bc2b5e04c610c9a440479281bed0bff29adef20a1e7d95d188 +DIST thunderbird-78.10.2-rm.xpi 646532 BLAKE2B 808fcf97c758c0934958ad7cd168e677c8b609e4f627edb260ea1478a7be1053167b00bca11e0983b240fccb11f62ebafddd14067c5dc4283e22e0f921901abc SHA512 1a9c1403360e1a18428d3e3b6820e59db99658dfcf761500e0333e13e03ff32dbc7c4762491f28cc4a2c7f42ce1cd06c723535d3ffea072082ffbb56bf27421d +DIST thunderbird-78.10.2-ro.xpi 662634 BLAKE2B c297c8e818fef288b97900b225d427494b2d44d13d92d3e2d28f843371d4fe74431abd4e6bd9a252bed6573c568991a4235b65cbc871a2cff1c0aa5272ee256d SHA512 6afa9f76dc17ca2b93685c7f3510df8b193848b020ce5d088b4fc2840764849af7b4fdabd449387b4fc19be102a37c111583615773ddf1e2eff95d1fdf420c18 +DIST thunderbird-78.10.2-ru.xpi 756186 BLAKE2B ff533244e071f126903add92f273c8d4038e3ef29f795cab52fc4cac86954fc0e2a54191cd8e3206577e1fe324857e03a3779993e79408a1bf2cd4446253b13d SHA512 3cd4bae123bc07b49b373a58dd4cd9a44d47b48b559ee627ae52ca5f460dce5356d466330a71bac07cd4ec008d1d4d718fcfdd42e60f036432f074eebe5f8aa7 +DIST thunderbird-78.10.2-si.xpi 651096 BLAKE2B 0fe13805cea9499bb262a025e283ec0ba0b5c1b408b1c69f1f9e07901f2f3ed0710a2266be123a63f40e4e2c0246f3cab034b2b8a0dae868ec83589d5a162901 SHA512 cf583b85b5741d71db53aa475b24c0adc84a959a3cf8ccee833398f36dac9fad871544c895b8a03ad6dadda86f04530e80abfc9d601b38012efe990a720e2635 +DIST thunderbird-78.10.2-sk.xpi 643218 BLAKE2B 1cfa020bc3f1dd30880c2f84993fdbd278e964aa2d3a73423f9859c7020a31d6911f33aaf466211dadfa880f8c75095e7872977deead533fe4f676a1fce1f79d SHA512 ca5c7c1458879842c7da2bacee472cab200450bd4dd5c4fee92652cea4e55921c62aec89da25db9ce3d509e822c1612c13b662a21dd8643c5b32ac7eef20fdb7 +DIST thunderbird-78.10.2-sl.xpi 632383 BLAKE2B 9704d78764b0a32b538d4d93fd552607e4f6ca1d44de9ca1065c4730a9f87dbb14a26da2047b7cffcbfe299b735e9031cc995291552d681d62000819832f106d SHA512 3c0bf640327da12035d9a28248f09f74e9285f2ff5239089617a0144425f466236afe672403987a50adedd4fc9743bf66f968994b4239f996944b8030e98c1f5 +DIST thunderbird-78.10.2-sq.xpi 657826 BLAKE2B d2967b7011c290677653f974403289a7e9dfc0a32ae18f2c927809f66a10ac7375d3cce32c7169daf36290a21d8c4593dd85bb5786686ce06c608a750e9202ab SHA512 8c9f00cad31b190ab254103752bc376dc876e96ac6fae340f467f246056993e652b21bcb23f2fb3193fb60c2147b729702cb2f02d580d3ec6856c3202be235b7 +DIST thunderbird-78.10.2-sr.xpi 683114 BLAKE2B 178859c2968475105da49c9a4e5c3b7b9c03f0b3063112116a4a9ea7a3516af31045d0327eccece817ec0ba744dd744c39923326f7747d16113f5b5d7ad94d91 SHA512 022d7d3445b8a2a0df56ebe6877d5ee321f9335ab363e805a8356b2829a81db970358b626570dde0d646c2c30d3125662cbf3e7c15df520b2c6ab469f34f6439 +DIST thunderbird-78.10.2-sv-SE.xpi 648867 BLAKE2B 2b4519a648e76c34f65951151cc625bbc5837c30b10c66ed858938bd3f99e930e630464066c8ef07fb1842e7bb7542c4f8c3a0436b0c9562ef0f6a05c4d5eb3a SHA512 4ca886764db45a2c9e8ffca52112d10026f4fd9875a995838e7cbb35590e72e24b34ba1f310513665254867999419fb6a5377abb0de524ca78e4bf5f40bd14ac +DIST thunderbird-78.10.2-th.xpi 712035 BLAKE2B cb42f70400c96721c7bbec6353bdfa59c7738ff5ba028c9ee31157a5556b508ee21564b89e3574d4abbb9b5e42e7f81fedda35da01f423ccc0b1db72d1030d86 SHA512 481eb81819861c355d4a0234a0200c92ba2f6f3e770644a924e0492560a5e85aa6327b387ff6c98420cf485473b510c48674efa3c416bc7650bb340690db5615 +DIST thunderbird-78.10.2-tr.xpi 649075 BLAKE2B a594a63b72040a86ff2ebc60669d19ef7b8c43136e7812008a43b7d85c1672f34838f5c2d5ae458590f8cabeafedfe5d045efe379ee2797f5fa72c0aa276ebaf SHA512 5f4c9c6c1414ed92892a71f8701107a4252bde8a0d515878f9002c30abbc50dd08694e86dad522b6538e5e1bf0754925c00f28039ef9414e3f5289e65bbaf484 +DIST thunderbird-78.10.2-uz.xpi 586596 BLAKE2B bf71e12dd8cd771cbe86c2ef1c598fd3f2aaf9e804ee2051f690061b32aff1d92b521e11406d9b57335a481094cac0cc9da73763239764c9bacc4b2a74707d47 SHA512 b56103dcf2771dc2933b6b3d854c8dc5164febe5bc9ea539c73766d27e4b1c21931d7dedf72ef2ce143b318d0c27f45c47b3843f56f7ca6a67aa5106f9d70c54 +DIST thunderbird-78.10.2-vi.xpi 674614 BLAKE2B 3e24680e55133daefdd3b1759a9d257a10d8e11d8c0f28935e14f4c8639b9986a1367a2aea43e1fc51641d47f3814f76d3d2049e51006ddf13fea17189261cf2 SHA512 ed954eff56724b89745f85ba83ef13aa404c190a2e5efa85ea4ae27fbd37f8a211bea8878179c257cffc35a24b312116314f14351a440a1d9f407a23f7146154 +DIST thunderbird-78.10.2-zh-CN.xpi 687175 BLAKE2B 19dab68c9608822f54523bbc99647a51731c17290ef49d51379c48d284180e0b3a9f66380222a767c4d3dd0dbeecc7036cff95b57e29399d922527c2187058ea SHA512 5b90f11c3ff739fec02adec18285a95e70a02370567d9dadea97d64798916c793c5155bc3b313b489518d326124f215e29267a6465d7b52513fd2d3c25c97cde +DIST thunderbird-78.10.2-zh-TW.xpi 687616 BLAKE2B d1b895a11c2ef84b2ffb4e9c24b477f77f84145b87659a29ebda5c5295c127e37fbe04f4e8662e552f848b4758ea19116e0b4fb8733fd467de1f3d827c3637a6 SHA512 fcf0ca89e6c80facd0b669fdb2c7807f48f703ca7fbf193882d2f4a8a4037ef4aceafd5aa04730c5fb9184b74e50ec74369684f55e3f786215acf2aeb663c31c +DIST thunderbird-78.10.2.source.tar.xz 353926908 BLAKE2B 23ed531fae63453b0b088f6eca4df3fa70c87e659ccb4afb6e1a26a9837cb0740ae354ed8078dbbdf7480d99fc7b82f0f37f37978f957a1d855f61e9f10dd974 SHA512 b938580055b8b935a37cd7b7aea9b654f5dc42b0a5d459ccb95d10fbde49405c5fad3ebf450ecd1077289aef008801d1dbbb7d5be56bb238616df14a7658c3f4 diff --git a/mail-client/thunderbird/thunderbird-78.10.2.ebuild b/mail-client/thunderbird/thunderbird-78.10.2.ebuild new file mode 100644 index 000000000000..7e7981007ca0 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-78.10.2.ebuild @@ -0,0 +1,1108 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +FIREFOX_PATCHSET="firefox-78esr-patches-12.tar.xz" + +LLVM_MAX_SLOT=12 + +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:12 + sys-devel/llvm:12 + clang? ( + =sys-devel/lld-12* + pgo? ( =sys-libs/compiler-rt-sanitizers-12*[profile] ) + ) + ) + ( + 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 +} |