commit:     62d97fa9c6ab1f221ee2139045157aa201ab0c7f
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 18 23:47:05 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu Nov 19 00:09:53 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62d97fa9

mail-client/thunderbird: bump to v78.5.0

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 mail-client/thunderbird/Manifest                  |   66 ++
 mail-client/thunderbird/thunderbird-78.5.0.ebuild | 1038 +++++++++++++++++++++
 2 files changed, 1104 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 8bffa103df6..0a4ad96e006 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -1,4 +1,5 @@
 DIST firefox-78esr-patches-04.tar.xz 171504 BLAKE2B 
d51e55c255d1f5cfa0c7c030b1ea50cb54951bed3bc21b21f5cb3b1e4b8b2ad406b3d12db2baabd4a90e3c88a38f187f277e7a4afe441ea6cf82c48f84bb0ac5
 SHA512 
6f00ec898fafb34d7c7e0ff2a6fb5c1cbf1205458845e14eb39c131125c5bf6b2418fea1050bb72449ec40e18fd775fc844437ce0290281d66961de40a53235a
+DIST firefox-78esr-patches-06.tar.xz 36764 BLAKE2B 
bba340f1c275cd9f140864599bf8b8b69aab44a3b66352182f403bc5edb6e375af5da8dbbffb0a0fa45aec2150857f23b01d103d8f1e8d16ad3ff88f81075022
 SHA512 
638a11e6b46e6023c0c0a2904032c9726cd1d143c2e0671ca762341d2bb7cb95d5c309bd09e7b80cc883420f612cdf5e7ddf26896dfe8df894bfa393435f962a
 DIST thunderbird-78.4.2-af.xpi 548308 BLAKE2B 
80ec8a02d84141f167ad049ae84c8524092dc28e9f9cc7b9d9d30a635d33acc2e976356c7ca870b2d388a4e7970c69fd8037c99f47a4777024b9d12bcb45aff2
 SHA512 
c20d205ad3609dc2debb2a9fb473468b3734dca7dc06feac97b3b54775ff61e8269c1599ac88f30d300b220ee7d2c868edae96c3d5773ede75bb69ecc6e86dc9
 DIST thunderbird-78.4.2-ar.xpi 648570 BLAKE2B 
2debfb451e74022f316668ff5a8da11266ed2f4151dd743fe951e165d4f380a382e9280015edb2e82d7b45897ad44dd7f129407e344a629838b9254232791551
 SHA512 
45e8302db47fe0fecf522c09a407ec8e5a31474331a6035f0a6e56fd1c792ac00e50d26d4c13c58ba9704a7a39b8a9c9396cc4ed4f4af3c41a9bb4076a6eaeff
 DIST thunderbird-78.4.2-ast.xpi 561221 BLAKE2B 
b1d78ac212cf5935867d2b0b26e390059235a380d1abe781733ffcdd261fe29ff4f2fa80b212959fee6d30225f706d82dd9d53e070765cc3f584b42686ae7dc1
 SHA512 
31d9ff5a9f7f04ccbab68e1d0ebd72a16acba482642ac583952a3f52b4de33cebbda7ede1da3ea6cb9fdaca69a9beb98b37a8baa88d62dc24ce1409686365d03
@@ -64,3 +65,68 @@ DIST thunderbird-78.4.2-vi.xpi 674611 BLAKE2B 
c6e8054e03b6196067315af6bb800febc6
 DIST thunderbird-78.4.2-zh-CN.xpi 687180 BLAKE2B 
83e41c6109deb204aa5d2f12b7b8b0eeac578881de4ef5f393efa89f9b0e87ad1ed9e62cd5a94e3b25afa102fe5d08e0cce8a1d54394f753fe8011de8ef025f9
 SHA512 
0fa70df0a14d600008fb94186e3c384128130071324f5baf96ba677435a5c90fc3ad8fd344aac03f993c56e1f046eb334f580e446a628e9886a3f36a837b19d4
 DIST thunderbird-78.4.2-zh-TW.xpi 687614 BLAKE2B 
e6cf4c29878bf8d1269e40e38a4e69d836f101a3ec220462a050a5d8616ec45b36f643bce2798c87fb6546ba07aaf27a4e20b7af7cfcdfa9fccd506ccc190c0a
 SHA512 
cac2f2890d920def6731c0ead80b515970a87de18d5640b1351ae887f5933a2f35be2b3b3a9cf6d0c70e745af4bb76ff85f1a8828294ba5537b531df448c95b1
 DIST thunderbird-78.4.2.source.tar.xz 353466336 BLAKE2B 
cc102a81b3376cefb1a551e1bfcb8a9625b0ec5d9b6775dc9da270065d13049139e290e8397e6b9d5dac6c9be9ce0ac9ab0b8cbe58abec9b3bfe9c4c2230bdb8
 SHA512 
9eccb442715937ac083e607a1180aea6c9e64726a151cfb94df1d3f72d516e0130376eca3f52ff6fe51adba689e7bcb38f622d415958c7e3123fada8ce7cd456
+DIST thunderbird-78.5.0-af.xpi 548318 BLAKE2B 
479eebf8437aeed5e2ee9b4f743729ae97111dc19b75502670587b8848118282a9b18aaa1f570270c073408d9354a55cffc90878ceb52e857be19d3f3fc32bd4
 SHA512 
96691128a3d6b93392fa48dd7485cec8ca92a0af1df6949493aa096289ca2488e07672ad87fa1d5377b4fc5bf66aa171b6953e928b3638951f25eefb16a23534
+DIST thunderbird-78.5.0-ar.xpi 648572 BLAKE2B 
a5f17cd99faee0800d221ecb97cd98e1e74f23e03103a0aa2489c64686b072e692e1bff53bd64e7b3bef62b8fa94a0c3e207580d051a95dfd8d0d2bad6154522
 SHA512 
5d28982dbefb8d7186490cf3ba591b349321bae46ec0b30d79749389b17678f739ef04b6943e7028b223cea7e4835edc46fdd397c0f64439adba02321ed5e892
+DIST thunderbird-78.5.0-ast.xpi 561213 BLAKE2B 
7863103ed4c83b0c00825c3588f9b23798d141e3cf6faa378bacaa45b177ddeb75643125815733b3e3e7ee43433f97f483215efecd11b25c1a3110125e27ac68
 SHA512 
845b5c19ef773ca2a169122e3a8dd2513a91f016748ca834a0d2eb5579455be918ce38f77e71257c916ac6cf719c4c25795851cdd1b716029d75c4705a5de0b7
+DIST thunderbird-78.5.0-be.xpi 666633 BLAKE2B 
a333de1dde21f1d450f1a97b46d319f840b6ef5b3f1b3031dea2b4bbe8c7ee9a58c4c61e740835efc735b7894d3ef09c18d5f239b55c1ca9ed3af0d75695e474
 SHA512 
9c0cd7ad9b3994b87f48cb406a758d3b10e9bd397ff782f9e5d0a9c92467b25c5cf06ca81ac00e117b2080268a6500d78283dc8c281304941508c7c963cccebd
+DIST thunderbird-78.5.0-bg.xpi 672382 BLAKE2B 
4dbbeea6db33e4f8172ef9d95781b50d68916091673441463b0104873443dad3cd906137fbaca9e70674cbed61505bc7d298695f47adfba134e469bd3c547f92
 SHA512 
3386be24f48ad47ca7467997831b1f81e79f2007da5e74699b929b8d023ca715edf6354392b4865ef4b62635f3689902ac94c700b1941cae584691d8cda5cbd1
+DIST thunderbird-78.5.0-br.xpi 604498 BLAKE2B 
6f368232ef0ffec699f89239c8de8295307fb0b53b6b3dafe84d3b765c9b46dca099cea50707783b8bb4891c6c6d60effa8fc31b220ea9ffd78818cba7edc77a
 SHA512 
78803f838b4c7315b5761f0a93e362cd267674c532758e29190ec233aa886dd4840afbdf298856cf726540b21b6d67e41cb79781e8ed467a45c1724b0ae6e165
+DIST thunderbird-78.5.0-ca.xpi 620410 BLAKE2B 
b20e21ac5063486eec47721877eab8d8ea73ebd12604c6be2356be45dc2898f552067f6b38807fedbed605b21554fdd78a60d8a4b15188e9dcd52bf17430c442
 SHA512 
d5e122b96588ff32fd775da351d90a96db21850e73e00cfcdca1da65bc6229a5e481fea1c4b3e89a1dbcccb24ae55e60daf7952af6416cb0a7c0c671569705a7
+DIST thunderbird-78.5.0-cak.xpi 635653 BLAKE2B 
d2f4f5601fe56cb2336ef7d049ed144f30b78bf7f1ae7eefe401bc10210749e9c9ac53e2b3abc2c34292abcf4300191bf09108bd3db1ecea58a57188c63e5b32
 SHA512 
20ba4003476f673468cad2edbfb43d6ddfda8deccd44ba48fe8332c5d12aea01c4355de1a8d0ea372f59b526efa2e3b085339db70bedbbccc1a23ca4b3da4bb0
+DIST thunderbird-78.5.0-cs.xpi 635315 BLAKE2B 
2d4a08c27cc7b69e44f79c36c81e6d4d92c0fe91a7ca5d7267e4b7993c049fbf057c67e8974d95789f6465fb62e659869295f8e60159e8f923a0127ed988561a
 SHA512 
1a968bf633093513d326242d2ff057cee9824d91e3328b3bda6b2acb18aaafa4540bd2f974f8be0b4767a3a4bef68060d96449fafc9ee9e877a02527d4ae7d0c
+DIST thunderbird-78.5.0-cy.xpi 646244 BLAKE2B 
ebf23594f0053f179bb655339393edf562c8204f9dadf1b49f810a97de71d4ad096c841e51cf68c6ad05ed4b9e953e62751e7843ce5c09b1940d63172e482e5f
 SHA512 
53005cd6f409fed072211a504faa86f4456ab849e001cb44ad99c148228b11f1885f8d0a2505dc9f71f83c2061c8d7f67d2d5e6752e35c07f427536a978d2efc
+DIST thunderbird-78.5.0-da.xpi 620986 BLAKE2B 
56bdfacb9c40cf2c70560aec395cda594024b82d31d6c96bef4a5b71214edbc3bbf74ae013f0cce4bf44287160477e08a2ef6a91df14e8e700d2d9ccfaecfe67
 SHA512 
7c3af279f77e313c79b26a84ecb937cf799dce35abdbefdf1dca084d532a4121248b5ae056f9ec370171e8c1bdb70a6b05674b2b5eb1e7e7b7b9a51f9b5d0e61
+DIST thunderbird-78.5.0-de.xpi 665194 BLAKE2B 
2f0e1acf124aa2ddfd8615d1b596332762e105ec065cffa4a763d54a504d381c37bd16aef8a2093a99ab514b9efa226650d1d31649e3c58335dca35b71fb90c7
 SHA512 
63a326c45198aa2d41f8621d0624a412dd635955f0397090d931c2fa3fc7a3fe6e9e896c00954cee9fbaefd6650de4b86571d038ddd8c60f81e5c2c661df55a3
+DIST thunderbird-78.5.0-dsb.xpi 666774 BLAKE2B 
751095ef5074451e5c31554c325f15063fecab8c7e9ac1c4f330e0ff091205b800e7dbfb15908988eaa234aac75899813f9effe927e34acb21aec48d52ef0991
 SHA512 
300e63b1f3503bd8943ad757efb4fc04564e316a3484445750b29198ad3c1a41a485728c09b81364ea6538f34338d0d3addc85996855fdbe0ac4d6ff50c21b9b
+DIST thunderbird-78.5.0-el.xpi 774453 BLAKE2B 
7227d22a148d5c8a1f8e9f6ad787fbb1f3049b9348b9c19d731bf1886fd8bd7c5f90494a7b7a27b7e7eb3544fe03d0ba4bee4dfdf2d458e1742bdb449b8ee488
 SHA512 
58eb6309690db9b871b3e7d1aad35ad26dbaf84ef5e17207d4fc8d46ffab5f588592858aa56b3141b2fb62f77a2454bfd6e86260a33e455bd870bee822a61e02
+DIST thunderbird-78.5.0-en-CA.xpi 611774 BLAKE2B 
db5cff4f516ec03b6fb6b9f64294c32679414ff88e533e3bf9f8519ca937c952d6f51f76ee3354430a29438db0a85b7ce407afd7e6173ff9446d7c271e4a61a0
 SHA512 
ac0c9f7dff24427c597075c354cb4d9df4051749a77c94a1a5ffb8dc04a312a18cea97b37e5e3afda28aaf6feea07e479508cfe2a0080697f1ba5ba59d662719
+DIST thunderbird-78.5.0-en-GB.xpi 611183 BLAKE2B 
9dd73b2216fbf886064e5d000672d083456c0eaf405e638a2ba4ee205fa02b36f029352728d4424b4ffc41bb94fd4c1a9c7df8a40276e8b84026354ad7856e40
 SHA512 
0af500a12631db42c986fab910e30ac6d385b2b2c51960c70b21dc1110d6073681ba2ade60447eaa1e5d52052fe3c2217f2d70f817b250b22ab3a7ec864f4d70
+DIST thunderbird-78.5.0-es-AR.xpi 657791 BLAKE2B 
aa70da5cc23e9577c36106f2368e345edbe53b6861be5c92cc37d5565f430993d6ccc64f275cdc6550220c4f2f55e9d007b1549deb12b3ddb83538c3fb53b74c
 SHA512 
4b3f29a8ca6e03af2413ad8a1776412eadcd280fa9fc90b0e6465ffc0915453e792abf1ba9cae05b2a8e3b07b103d76524bc9725d425189babc8003dd52deb29
+DIST thunderbird-78.5.0-es-ES.xpi 569792 BLAKE2B 
2545d12db6082522f3ff7840edeef3b90fbad543b555853ddef5dd6b0c97b3fcbbe9d21495878e0deee497e2053611a8eda4327e502eb02b4e32cccdc5732e2f
 SHA512 
0a84d0adf2ca64b0d869c39a59a493d130cad491e02f2255aa5360f573a65bc7cb5666842378485f2717673087d452570b90d59ac97b2e48f2486374b042ddfb
+DIST thunderbird-78.5.0-et.xpi 597699 BLAKE2B 
8832e1ecfc20a5a812b78d603d689ef67b87f6a6b763afe421491f978a0b3e1f63dec8b4e6d4909b96aa996961f50b4290901ab70ea2c7081809481b999afc32
 SHA512 
cd57822ccddb61092d5b8b9330578aca883d2ea4d536e7f1e9546351f382b7a78f171905c360c9a4aef143983ff83db85b062a34b1828a1e99b992ffccc2411d
+DIST thunderbird-78.5.0-eu.xpi 632935 BLAKE2B 
0de8f2679a007a06af29c43db017934af8ba20910234e3689cbc1509b2f9e2c31c4c5adb6f6879a32122d05e616e3e0d305104e5abee7693ee3e88128d24385a
 SHA512 
53e0ad6c2ea7d08b47852d399b1c1139bea0ce6b0956f8458e4623524abf4213f0f2b085250964421586523486d95ef4550b17afd435db3905dd08afde75aadc
+DIST thunderbird-78.5.0-fa.xpi 639717 BLAKE2B 
95ba7fc570b926c7598d824ca49d5938fd39a10f96464b45ade2c693faa296210641f33bf6965e3d5c3934c30e0c7c7021e1aa613d71fb01ff656d2014e90fbd
 SHA512 
d46dc6015e5c8b80dbf5de451e4378a2a0a4792b4ef4b17be8b6abd8b6c7c0a1cb22fb8546e22fe857cf916a5a7d250238ee94b28303f6bec8b515380a68707a
+DIST thunderbird-78.5.0-fi.xpi 642442 BLAKE2B 
72477dc4eabd7f044849a3b117141dff8a19d24063939ae96105380ab8c67de769a09e93409f9f11c46b00800e73db530392dbe5026b06c19b501499da2f3849
 SHA512 
6b5071e983d2cb87957e097f72383501dfa1487fa16bc69d8895e1060768d4470ec54e402792c254a0f29cf5ed5aa36927b3bbe5b29aa1e3e85ff593dfcae2b9
+DIST thunderbird-78.5.0-fr.xpi 669492 BLAKE2B 
8a33feeb9465cec5b76b98a6c3160afcdddf6bdcf636d049eb6b62a77bf1c5a59866a58350a9bf16495fd80bb8c8ff8184a4c7b9ed371777621f2d6a8cdb9b20
 SHA512 
189d57b9e2400fc64385df87bb7108e85d145b003bd528231dec525cf5271cb68dec4ed274107350d3895799782b8837e51bf0e23d19c129b26ee80d169b3174
+DIST thunderbird-78.5.0-fy-NL.xpi 653078 BLAKE2B 
a01388939ac01e3f80d94af5619184d2e4b1ea7e4793dbf9ea4a13ba108edf88fa9ec4c2306505fa0dc4007f65d1973ab2e35ec84e734f24ff0ef7cc85ba7b26
 SHA512 
b68691898d813b25751c7785198ea934bd268536b6ff955cada16692b53c31836d41d9630dd2a19fb6e41c181bd4fb4d183dfb255ecd5b6a3ecbefb1af316b15
+DIST thunderbird-78.5.0-ga-IE.xpi 600682 BLAKE2B 
4132e89fe97cb2f7bed52c249de87402e17aba8d6c8df65e4acc7fed9df68eb8a2427538593586d6c510b01a0b3f754a33f12e4aa81ff63d5792e74f968c890e
 SHA512 
12f599046bde3d5b5da69575ff00e7bf6b106e8d4b69a838d38542ec77568db3b0a702c7eb73a7a0572b479547b2c9d0aabfbf4496740e8a5c3a76cd75c602bd
+DIST thunderbird-78.5.0-gd.xpi 609349 BLAKE2B 
794edca1cfd129a8c40e0314be00b55ea9220dc2891dcfaad47f8edcb7b88972528954e4d1ef608330cde89d77c2b17fc9495c4b8c8f1161dab90ec108d51bcd
 SHA512 
6837e09384170805e5525fd0421dafc9b33f2ae24955ef7d7c4193418d12cabfb6adae16d81719ce41cc9931d2c4c47eb61bc0ca77e4018905e07c07ff6d3d28
+DIST thunderbird-78.5.0-gl.xpi 615720 BLAKE2B 
4c323cf22735d0906ffdeebd8163eb0068d3d2925142d805d0abd836cdbcae5c55dfe5c25e78afcd8d90ca481219bf6fa00c98451bad5fb6214b2710525a5d37
 SHA512 
8adabc5252396d873e4e85edf7bf42d1db91f9a4fbecf81b44a99f550375eb2f3d0c6cd95837edc10637c0d1f27a6b05e050a47c33b7598449b97f30b6927cb1
+DIST thunderbird-78.5.0-he.xpi 640490 BLAKE2B 
cc2bf3f5e0dec1f999292e15f47b380155f64920f978dc690f7a98410db979374b9ef7a9ea42f96359ca2171c8c800b3ff7ef4fcb2ef34f81d70107043b90faf
 SHA512 
47d1b89dc20cdf01b5bf49afa4a6dd7e93f1cda6e9a557cfe2012305832f9e9e37a2fab1ffcea1be173030dcb4229120b0f19381bc3e4ddf572235237e23adfd
+DIST thunderbird-78.5.0-hr.xpi 628987 BLAKE2B 
88092f356b745ae7b9b934ae707b24a57fda6896f493e8863378abcde2ea082ccdc6ca94ac751877b73246dc6e90ca5cc25e9008480761ead6a0968938f71ca2
 SHA512 
762789377ed6766475c6a9fd35c89898088fe5cea59ea1540dd654b5bdc017c3b5b8314639d834093cdf9808002a8ab1f64b9bd2b18c9e1f4e2569adb1e1e390
+DIST thunderbird-78.5.0-hsb.xpi 668606 BLAKE2B 
94d94a476217ef84221540dc494fed8b14323c42952dbc9d8a82eaf1f28b50f3641779fcd5b174e84d5cfc2bd4d1c60ce15a42cc25a987d64f26ae11d478fda5
 SHA512 
1115090bc146536a9fbc5ccea7e599814fc2351bd499d66d95844b16a71599067eb2c593e21a3a49934689312841d974328ea8d6a528a97202364ac0010d28de
+DIST thunderbird-78.5.0-hu.xpi 679829 BLAKE2B 
4dfa36bb84a1e4141fa01ee667c23e66c48835e24f43af0ee4e9c07be1d69131cb939a53003266e9a58fc2695a95adc22c9a37e0a661c28f19f9c920426ad04a
 SHA512 
04624a6fe98b6e0786e74b9a2ee5d769a477b74b35b92f83e84e4570554750d9cfe49cadb6613fb81345cfbc32fc7cf0128c0df740908f74ac16afc59f866ad0
+DIST thunderbird-78.5.0-hy-AM.xpi 713297 BLAKE2B 
f885bfc263998c4e0ab7a1bce0399e84ae807b4c2cbddfe22e222841f762d38d12269d5ccfba9dcd2eeeb9b830ead2f8cd8d39e101c7db7a0a99913ed4a1d1f0
 SHA512 
8d459e9aaa2db307bc32e004d8d8919dccd17b02da08fdcc6220f654669c315c85fa4eb26084bfbf6250a95552b2781d5afabd82820e4292fd2e4d897b67ae6d
+DIST thunderbird-78.5.0-id.xpi 620640 BLAKE2B 
d113eed7cecc377615df9d890061f266cf221bd59a6804d7cedef9372c9de71f9882d06c9383f964a1d30a1f313eff5d0c39e3e04c0d2ac8b90ecf0d1f90a54a
 SHA512 
cd7868591687ea85e746f22ded825b7c64d640666faaad61fa543baf3d4754d2363d1d6899285c694315db5a4800be18e59e56b28455c6a96a03909e7ef00776
+DIST thunderbird-78.5.0-is.xpi 581605 BLAKE2B 
67c78746e0fb1a513d327280c29a1eb118fffaf004bc1e8d34e5bc490f94bef7679c4fad80b170e363a7a0b1d58da5362f708a7b46b0f9689eeb3d30369db978
 SHA512 
f21f12913d4a79dbcfb5688dba909345404761b2832467e9d31b370aa39c7fa7ed06f8b147eb8e55161bb345a78c4fdee7e8f1a25da9057c78ec76b5414ee18d
+DIST thunderbird-78.5.0-it.xpi 572958 BLAKE2B 
f005acb2a117146726bf944688be8cb5fc35e4c820bd68e99cf7858d8f3f2fbfd9fe7e315e24314f2428fdc7b9275572d5ea96aa198c06b15fa2cabf29eb8007
 SHA512 
b79a5eaec4b7e0e043bd0b39a0129326b2bdb11793428e8f722405cee5c922575876528e5da4109bae97546ef110c864910d35d5b791f04ffda24bf5f1e3974e
+DIST thunderbird-78.5.0-ja.xpi 722455 BLAKE2B 
aac3e647fd677b69c501b8a974e55558610581c857d4aa728300325d11b66d0233ab7853170cd9ac91644aa51f6d348192adc528208fb38a50a815da9ab96800
 SHA512 
8ea3d523759fd92464ffeb6f5432f80259068cd0fa85003f007be622bcbe788a59e6efc83feb736673db95e32069e132cbeb08eb2f21790e053ea9b32bf9d555
+DIST thunderbird-78.5.0-ka.xpi 717014 BLAKE2B 
edd1c1f6f9936344585006c63feae3cb100f2a2f7c6095e3fb08291e8760d2d3334574e5582d3dea35fd6ab487ff21149f10d2bb1b936628a492c23ceae75a65
 SHA512 
fd9e0f27ea490b998d399dc542442c755e27a11ba3748d125eb3841e4fc193c2776988744872c77f7fc77094dca7b58698772978e38618ada224c553177a92ce
+DIST thunderbird-78.5.0-kab.xpi 651925 BLAKE2B 
7c6e54095c3450b34e36eac6b31412097f84327e6bebaed1196162f1e5ce6518326c85596dd7fc04603e1be577bc69b6e7358576fde607e56dd273d7d62000df
 SHA512 
06b29cf7509b63a6f668c71ef900be12e3b6bb3b77b261eda16ae009d5214572148e30d30f660b18c72bf3b90b2926b5e931be892f299381ecce41d3885f639a
+DIST thunderbird-78.5.0-kk.xpi 720431 BLAKE2B 
58681793c59f883f8838ca7ce2a4c6cb5cc4d72d4b9aa6e8b9d492302dd1aced926eba3ece59589b92b1310f989356409e928f6a3b465dd57e799e401b5d1714
 SHA512 
9e7f589c20b6b06dd41fe6a4bc4a42d50a1d8be2745aaf6b14057db7abb9c59935f45e314efe7209b08897d78122737d5b42a0589c25d1adfc8c9ce704e7695f
+DIST thunderbird-78.5.0-ko.xpi 688209 BLAKE2B 
e50ed2289e34cfc0819c334959fc1eb790241efbecf82980fb8eefee80e5d7b45fea69b6ad2fec8a587fd3b26d8f09e52f255d531c7685347c3be7849b72ea09
 SHA512 
74985c58df4bc72bc1719383dfd8ae2ad601105645f852caae922128afc64ce10354edc11ab1f7e8e517ce95196db52ed0fc0bc41adffe521a2450302bcacaa8
+DIST thunderbird-78.5.0-lt.xpi 660299 BLAKE2B 
1cf913c519472630640bcd610c3f81a0ce93d2d7c6512b46ae8825f8be2144ccdb42926c0d587a2895af64d24866b33e655ddd6fad52f3cd45b47c73abf23c65
 SHA512 
d4df0dbbf5c9055fcd5f64da33b715d597408a65e684e59e7c05da70a16a0a4c6dc057f031b1eadcc7a499c10afa0cd8987c857ee408592a47fc4e7aab44998f
+DIST thunderbird-78.5.0-ms.xpi 572136 BLAKE2B 
5b49ae2b21691c0de11e3f3813aa958e5c818edd407127031a631c8749391b113c9dc0263714f0b1fe1e28bef6829a05ad4d1a858b26422346d7944ca965a8f6
 SHA512 
2db29f15f5d1016a3656de9b668416031776df5a821953dc57235955652e1bff29e0abf82023081bbc4b0b1005d75b168de9ba7c18f3f8b147df118a33d33c18
+DIST thunderbird-78.5.0-nb-NO.xpi 637235 BLAKE2B 
f1e6daf9fc7529e10fd1b4e65691fee484c911815db7c96e472c17d79a5e56addca302e3f21d76cf491c05479a82e61dd169dbc12892ac88ec970dc89d8f444c
 SHA512 
524c9ed6e0a66cb53f8394f8459ff34a2894b3d07edced3eeef1f1169b275898cc6c2b30fc78b4f4dd06f1fbc6651999a7050cd428cb0bf2bf439f866fcdfd69
+DIST thunderbird-78.5.0-nl.xpi 644354 BLAKE2B 
7d3f8f9e88957608c343a643afb2193878e239841aadae541429ce3441957bf5a0ffb7d016003d883a53f97b011c5ef096769de4a109c4b0615e620a93832fd3
 SHA512 
3621c41faea13780a139ed7485e9904893552b8b3e182f34ea49fb4a2e4f85654aa26fe7b76753b8b883a04d481e808bc616758624fc61e7ff9aed1d09e92df8
+DIST thunderbird-78.5.0-nn-NO.xpi 640684 BLAKE2B 
bbf1ff1201dfb1c2e5764072098d1a1ba1500326507c4f9274e479fe8fa07b5446fdc9bc6a8d9b84c80a876f7b2606bd1921be1343e46bf56533fb5ef577422b
 SHA512 
4560e185285c942667ff7d9f8af6659fa11efd4c2c5cbbe85494beb084f6bc6671a88dac0ec46ae2e738666a718cb14695e84e6a8e67dbbc93ad4ceb3aa04b33
+DIST thunderbird-78.5.0-pa-IN.xpi 633177 BLAKE2B 
628a1922abdf728a82520014f6da315be96a3c159752e5eccf3c3b18396e37202844b3cee4edc068bc8a8b0497e97d904f6f11fa28a0d74221ae4bd8c95ef992
 SHA512 
5ed8c7afe3bb9a92fec130e8ec377288472ab910b9bc0a028dd18960c39889f28211e11da7e34acc203ce57ab24fa524d862e22653f3c26a349fd604d1df8c1c
+DIST thunderbird-78.5.0-pl.xpi 637112 BLAKE2B 
a6bc4e8e8021eac5f53ced8b0decf23460b83282bddf0b9aa5822f2f2c9b8c1026b8d5c4b1aece0435cd88167257c2ff306a8405ceaa9df3c6b81e2e1197d1a9
 SHA512 
1b415108ae218ea9269a4cc2f51fd64d716deaaebc8116a94611fe2800c39ab56c123345ff4d075dca92cae56f00e97bb55f205bdb6b19948528211fb6574528
+DIST thunderbird-78.5.0-pt-BR.xpi 649414 BLAKE2B 
a0a56356620ec5226e47560e08132f56cbdf360576715a517ccd3ee9d9f55ebe5e7be6a6ce08f522687a32795ab128a8b9ccb78cf3b9ee8f3cd858a882cbb076
 SHA512 
349c8f47cf1405210d01e91a59a1132c47a84771d5da878b5f668f497e522d259c3ebd4ff1001604f580c1b54a3ff4fbe6084785b4c580c7a9b79056153afb9d
+DIST thunderbird-78.5.0-pt-PT.xpi 655497 BLAKE2B 
d49efa87dd516027f30b5dae1dca9f3b11f23802de03b9643804ce2d0554c494153a20500883a7c04fab15b3d30fc32bc65daf329aef1b9f352f3cf1627b56dc
 SHA512 
cd00271ff1919b88920d734706670b63dc00c6de4b0caa1c1b5e91f7f7ea5b82fef18452ee228f6949222bb6ab3d7a297c3123e3f10d34a7d7090afa186a930b
+DIST thunderbird-78.5.0-rm.xpi 646531 BLAKE2B 
0b56269c62d275dca843c57460dfd70bba13f01de7a852a29cfbbeedd4d9842e7cedc57ce9574f6348543d15623a607e283dcf89740b16328061664a8267878a
 SHA512 
f81a43a476c91d8f3d6f830bd27479b92a8fadf539f46fba8ca0dd07dbd2cb639ece560fcda88764e4510e8854537c5a558e1b837a4e7fd6ddc1dac914a88092
+DIST thunderbird-78.5.0-ro.xpi 662642 BLAKE2B 
b19931aa66e26fca2f857439c0e47172ced0255c23f3d7731af95a9639078f0869bd524e0cbbad49118c374d5ecc7f652467862076c2b8870cd467d957603f4d
 SHA512 
53356a655803f14d68312d461920d3a6f17db118547fb7d040f5110d4e65db76104e072646b3849efa5ca47f027e5c761a721be83ebf3cd200e36b9deb15ebbd
+DIST thunderbird-78.5.0-ru.xpi 756187 BLAKE2B 
42d2470e72e519a63addd3356824f4604ab300e43b0d9bcf08c79cd6d393d1decfa9a30f1c44fc136540af9979284a90530a6ca8b7c8886517b871536e029629
 SHA512 
2ade9448e0178aefa8ea032a2e53a42b8f77641dc56e790826f44ff3628d381dfd490b08164838c85ed80e84a69348251a1b5920291586720044a51e587b8b5b
+DIST thunderbird-78.5.0-si.xpi 651069 BLAKE2B 
78fcd5569a87e3938893f8010d3bb3a515365b92986a75bb2d27ae36482eed906eeabe59c6beed626027267dd0380ae1f186221d9227bad3e25ae60a213b3739
 SHA512 
5b22ef4072b0d81ccffbd62ac6279a783a5acf716b67561d206034f66e8569935bf1d0eca8e03d6af7a4601acc1176be0c78bb40daf95c544bb11b918aad9673
+DIST thunderbird-78.5.0-sk.xpi 643185 BLAKE2B 
e4fc5bb819bd79161359cd90aadb56f28d887897a4bc5b5c4b6db79ae525fae2ebd0f1d53e3897194cfa11232fdedb99538f398a1a48accefd18f7046d2efaf1
 SHA512 
e948a48e333306d744dc7c397b2839ce4b899a44c72c68748557657422ca0149781395c870a3bb38e97f8a2a786d2373f3aa64331e99f392b6bd451a3dac1a6c
+DIST thunderbird-78.5.0-sl.xpi 632340 BLAKE2B 
046266bce228b914c30f726bd78d00d725791cd6710c65fe146054e8a9fc0af743b3c839b57f1e773a2d009776ef2d703532cb2bcaef324149018bfd149e53b2
 SHA512 
aae9faa7de38d6d55e39bfc95ee035526bb7cc67136afd80b3304930067a8739cd5e8bb4d867fb49f2f8de784c4fd306857d9139a5d619f1679e5e7d64ce7c68
+DIST thunderbird-78.5.0-sq.xpi 657818 BLAKE2B 
d0af6bd2947854326be426109899308fe0d085ceff533e66db0b58cbd64ec419e85d7076e61bf4af17065d02292b64e7ac257657f4ccf4c3451de53ef398e4b7
 SHA512 
9ba4ec6ae1b69802d2db51649f05db16d1cd472af7fbb7cf00dfa87cebda6496bb8c293f88aef3bdb5b0cf84c8a751eabb461673b2dca2d89f7a049cdc01a654
+DIST thunderbird-78.5.0-sr.xpi 683076 BLAKE2B 
df42669c5ea3ff0341d3365f01e05911f6e6b275f2595ab2662131436907f0ec70edee6b0aef48f9afec12258257f3744c0cabfec288589b4e558a3ea76bdd21
 SHA512 
e85a21aaa1e83d97470241fec487b8df29982a21e7a0aa1ead9057b6dd2261f103882b31e3fd39ed1b35b296297651976e998d80f07eae135bd35538a97ff64b
+DIST thunderbird-78.5.0-sv-SE.xpi 648863 BLAKE2B 
18900bcda5bf2edfeccf2d2aec02ec7ad3bd413caf4d89d85f4723fd27254787b0968cb0740d367acf1590cc9601486b4027e0e9617844106c96efe52afb48e7
 SHA512 
2d0f6d8f7c5d7661c4a6d2a09487c03b952a4c542631b4b9d947464e6e74e6b760dbe7ecf808ebc8fdd258ad5f69211dbbbe7b68b08770b67b8eebe5413968cc
+DIST thunderbird-78.5.0-th.xpi 712031 BLAKE2B 
8de6fd5f9eafaa4b97658eb303289be97c053bc153fdc2d902d8ae8bbb0e290c4e0512f3085dc87c18afdff4dc37338d18fc9253419b0b7bfb66ac2e007d394c
 SHA512 
c9769389be0e9b154ce686e79fd4cc7047d7f115eff2b888dcaaf4a70b29d0f27a2b0a840a231569bf2229419ddef53c111fb4a3103d836b100915ab979997bd
+DIST thunderbird-78.5.0-tr.xpi 649071 BLAKE2B 
b7fd59c4c846e1214f7a16899741a74044cf9c945385bb57735ef2773da1877085368f273c25aa37e2dbc8549f0c805dff501614e63d7761e5892e0eb6240b6a
 SHA512 
e77fc7064bc530df959e73f0bcd2e977cc09ca3cc0adde703850a3c89b171e73ae57a9b7c715e75310b8d6ecc2a3444c36519e2c56f9c0c7aba561b26d8f2f30
+DIST thunderbird-78.5.0-uz.xpi 586572 BLAKE2B 
7ada629d4274e2500c59dd6ab75ff8c9e9b88fface27fb650abc0637a137971f6a95323b6fcf4bda995203b42b0f9a6a135f48aa16c37f6b7e5fb09a08f68b95
 SHA512 
9c627329b438b1a4afc7507a4e87c4c5a94bb665d51935227df51023d7c37e407ee4d6c84626668fd50d1f3b7d282c7701ac7a273ee37c665e99492fd22aa6b4
+DIST thunderbird-78.5.0-vi.xpi 674608 BLAKE2B 
af9954482a76f094a0ae0a48135198465f656fe739419b3cf75931967cb9561b8a16d44eb9dac54d78f024ff28658a8a5ea2144c344aaed63e8c33b3b67392e4
 SHA512 
2641538591d060a60abeb25893bee0446a55ee750de430e39ba147ff1620836a9f486f142e3f1c1180bc7b3c142b399cbb2765a162b792f8fcd1884163b7d61b
+DIST thunderbird-78.5.0-zh-CN.xpi 687174 BLAKE2B 
2fcd423229281528ea8767dafe8c6f7073b29b8b1e0d22624b81f84bb944bfca3040c840031317edb0f94a0c7afbd9126fd97ef76442a6d213416c0ab29cd4c0
 SHA512 
569e3dc49d102d56b50d9dccb7587e76481bc637f008493c40fdf7bcf2b7dd58c776131ac3cd6b37d479b900d77da4621e7c6476526159a0026da7bd156a163b
+DIST thunderbird-78.5.0-zh-TW.xpi 687620 BLAKE2B 
be48d9da7320faf2bea2f3cb682a34114321f7a0af505f4cf4e677b3ade4784f0a9d444c0b407a9d97bc50eb1f6292078a3e38f1e6d83c32ba64f094378c3b71
 SHA512 
a7a5e00e02ba66fd8dedbfe60af12843f5af67aa72e43c4b99bea1c6edd598d39219a58e147f819390a7d2f1536a27e87f63139a4014d84ac5ccb4ee653ccde4
+DIST thunderbird-78.5.0.source.tar.xz 355944116 BLAKE2B 
ca785b280f66442e1e3014f0e09343ef341d22e073d179514b6059f566e1436ec64fba9dc104382d38cd694baf58dc253eee35aaec1453cc8d5ca850df298c35
 SHA512 
dae49dc0910dd017250643c920c79f03d3ef14bcbafde7fcdb3aaeba2b27a42ef6f88c8de8b961f8bb1c3d1a153bc8988ab43a39eb051d81839cf3b9e8373118

diff --git a/mail-client/thunderbird/thunderbird-78.5.0.ebuild 
b/mail-client/thunderbird/thunderbird-78.5.0.ebuild
new file mode 100644
index 00000000000..3e15f555b19
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-78.5.0.ebuild
@@ -0,0 +1,1038 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+FIREFOX_PATCHSET="firefox-78esr-patches-06.tar.xz"
+
+LLVM_MAX_SLOT=11
+
+PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="pgo"
+
+MOZ_ESR=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+       MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+       # Convert the ebuild version to the upstream Mozilla version
+       MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+       MOZ_PV="${MOZ_PV/_beta/b}"  # Handle beta for SRC_URI
+       MOZ_PV="${MOZ_PV%%_rc*}"    # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+       # ESR releases have slightly different version numbers
+       MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit autotools check-reqs desktop flag-o-matic gnome2-utils llvm \
+       multiprocessing pax-utils python-any-r1 toolchain-funcs \
+       virtualx xdg
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}";
+
+if [[ ${PV} == *_rc* ]] ; then
+       
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}";
+fi
+
+PATCH_URIS=(
+       
https://dev.gentoo.org/~{axs,polynomial-c,whissi}/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> 
${MOZ_P_DISTFILES}.source.tar.xz
+       ${PATCH_URIS[@]}"
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.mozilla.org/thunderbird";
+
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+SLOT="0/$(ver_cut 1)"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+IUSE="clang cpu_flags_arm_neon dbus debug eme-free
+       hardened jack lto +openh264 pgo pulseaudio selinux
+       +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent
+       +system-libvpx +system-webp wayland wifi"
+
+BDEPEND="${PYTHON_DEPS}
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.14.3
+       >=net-libs/nodejs-10.19.0
+       virtual/pkgconfig
+       >=virtual/rust-1.41.0
+       || (
+               (
+                       sys-devel/clang:11
+                       sys-devel/llvm:11
+                       clang? (
+                               =sys-devel/lld-11*
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-11*[profile] )
+                       )
+               )
+               (
+                       sys-devel/clang:10
+                       sys-devel/llvm:10
+                       clang? (
+                               =sys-devel/lld-10*
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-10*[profile] )
+                       )
+               )
+               (
+                       sys-devel/clang:9
+                       sys-devel/llvm:9
+                       clang? (
+                               =sys-devel/lld-9*
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-9*[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!"
+
+                       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"
+                               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
+
+               # 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
+
+       xdg_src_prepare
+}
+
+src_configure() {
+       # Show flags set at the beginning
+       einfo "Current CFLAGS:    ${CFLAGS}"
+       einfo "Current LDFLAGS:   ${LDFLAGS}"
+       einfo "Current RUSTFLAGS: ${RUSTFLAGS}"
+
+       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
+
+       # 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-location-service-api-keyfile="${S}/api-google.key" \
+                       
--with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+       else
+               einfo "Building without Google 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
+       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 CFLAGS:    ${CFLAGS}"
+       einfo "Build LDFLAGS:   ${LDFLAGS}"
+       einfo "Build RUSTFLAGS: ${RUSTFLAGS}"
+
+       # 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/firefox \
+               "${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}"/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 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
+}

Reply via email to