summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-10-21 16:17:19 +0200
committerThomas Deutschmann <whissi@gentoo.org>2021-10-21 20:08:12 +0200
commit02ceb60a875ad06d7b1ed7d6ccfb4c7f4c5b5246 (patch)
tree006ed30d912ccb8150f2f5a08fc43884423f8e4b /mail-client
parentwww-client/opera: remove old (diff)
downloadgentoo-02ceb60a875ad06d7b1ed7d6ccfb4c7f4c5b5246.tar.gz
gentoo-02ceb60a875ad06d7b1ed7d6ccfb4c7f4c5b5246.tar.bz2
gentoo-02ceb60a875ad06d7b1ed7d6ccfb4c7f4c5b5246.zip
mail-client/thunderbird: bump to v78.14.0
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/thunderbird/Manifest66
-rw-r--r--mail-client/thunderbird/thunderbird-78.14.0.ebuild1108
2 files changed, 1174 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 410ff64bcb97..7e0bcb462ccb 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -1,4 +1,5 @@
DIST firefox-78esr-patches-16.tar.xz 55964 BLAKE2B 79d3a465c69656bb55ee7c1e9060606464b6404435b92f534db275521ac2343e045feae1fff6166fde9e2599a82cd982b0b2395271b1033f0f784e745e2c6965 SHA512 3aa971c726646cbf37a14a0dba6c4ac966b88db655cd8b730c5572543bfbf682991ee7c139889541e4f6936c13f27233dc1837fbdb9ee340b33ebb2cec59b01f
+DIST firefox-78esr-patches-17.tar.xz 56004 BLAKE2B 01d2ded2658c24176a3d13d0267d1c4df4ef0113c5c40b1002acd39a0f04db35b773bc617afed1c681df3ec38120621a5c3753ba2d36688d7d5926233bfb8501 SHA512 43b372b848c1f30e02505d06bbb11f5b80d976fe7ee39c0d2aacf60d48bc1d3e378c325f4e2fd4730b971e88c3bd902539a7b81874f53b8b92369f876e05be5e
DIST thunderbird-78.13.0-af.xpi 548343 BLAKE2B 06beb7e934e29e09145fce1b30c249d79f6e9f40c8fc309b5033aeae664dcb9dde107f42ae5ac0d2d3e46487be30a22b3541ca87e03f37699bd8d352254e565e SHA512 30f699ccd68cd577b691439a3769ecb6eadda84352cac52d27364527a61d77f9584ce225ab871bf0ca76ece6e65fe939021b09c4adaee8e09f8635d326cb4d96
DIST thunderbird-78.13.0-ar.xpi 648617 BLAKE2B 78542fdc6c1c5f803fff4881cb87911560b8be5e350cb5232b573860af76f689a8e60aea674054bf614ac95d8ca75b8b994b25b7b11689d8f82449f0b124569d SHA512 678c1162243aec8e33a0fe09325f2856dcf2ba447e91a5283aa766c65285e95e7dc66e609a6b5bba9129cac393f09fa7083fb7c39b2d7604216155d9f03c2e56
DIST thunderbird-78.13.0-ast.xpi 561258 BLAKE2B 88ce63137775dc96a410e86323305ee0719d1dde716dc6a74e1314b9502d3d25a0ce92b9bb8194a37ecb06445b063024e3f540e547dd56b660fb732f91505b96 SHA512 84f42514f68228cff173a0fed9b7a54859a716b8bc53ea657241fa9e28f16161230c14c4b32e0c5208386ff47716244837130f2785f7eba3e1845a87b5904dc1
@@ -64,3 +65,68 @@ DIST thunderbird-78.13.0-vi.xpi 674616 BLAKE2B 52d05bcd5e3a76a9c039cb73374c8f21a
DIST thunderbird-78.13.0-zh-CN.xpi 687181 BLAKE2B f80dce96eafbc4d2174c250090ca9f644340664f08fa02260b762053d20d391658e33c3414423e5dbd379426296d65fd3f5b243908be04e83fa8c6568f989789 SHA512 067fbe8bec14e682985dfb64f2bbb6ff9d5bb9a13d333df173aace02345356bf4c981a5d0886ba750c3696920231c0ef75b01a4d938f98884ab8de0f3af8312c
DIST thunderbird-78.13.0-zh-TW.xpi 687613 BLAKE2B df58049dbd71dd7456fd23d743aa3ca8b162076bf33e953ca3872e2fc1d1f023adfb2c4fd2aaefebadaf81e450a712c83a86333b6d2987bb3341ecb31ea9bd74 SHA512 86ee904bc972273970594e1d531287cd4dcb6a3fa9513a6258366d40483e8aed1e1bed427e129caee75d1518570c05a9022e1344d3739eabc890e4ce704020d9
DIST thunderbird-78.13.0.source.tar.xz 354497644 BLAKE2B 4e0df4ca77ccb095c6f47ef4a5b13f1c46bb59a657fc8dfe2898b80458e1632ac6b94ce2754e2e36620d62f62b63dea2cd30fa44557d62e3375f78758a024269 SHA512 daee9ea9e57bdfce231a35029807f279a06f8790d71efc8998c78eb42d99a93cf98623170947df99202da038f949ba9111a7ff7adbd43c161794deb6791370a0
+DIST thunderbird-78.14.0-af.xpi 548343 BLAKE2B 7951ce75e859d270fed3e060a284a883a357fd1e9de8bc80146b608e5e2ff2da7880728b1583f774abde3584d2178dd400ce0585df2119d39a01f3ce5e248b77 SHA512 aa3a55984141b42f8f76eb6bf3cdf6f77cd49e3ad20e2a2d2f7858eeae8d70fec05730543a263e730541707044596ce25aad512f11deaff6fa13e6cb9b13c4d7
+DIST thunderbird-78.14.0-ar.xpi 648613 BLAKE2B 1a70587f3a4939eed073d170bb27d2e5385d304e4bdeb7e91134ed097a1b1330aec17d43096e6443ab0760ef5be5b6618f0ba4faa8a6ef1ea564ffe739753ebe SHA512 c0acf89f17545c8619b22f1cde3d1d15c503cbfe0e1f860d4c68b27088a2b1536200d031c65d5bd4836c1538f27313672d391d2de7dc836755bc6827cb8fa0df
+DIST thunderbird-78.14.0-ast.xpi 561258 BLAKE2B 660857bbff3e5950bbf4c5cc1c9b533b8c4c89f84ec93ac5a3a01fff59e294d6e795707decf3ab65ce2ffa6a90da100d3b599a6110d6106419ac7ab8b2c978b4 SHA512 f88e4154f99a898783ad24f9e871aaa4a0954368686fdcc7aa0581c4f3f97ee234842c32d4acd51ac5559328dfa5817bbb4644049be413ad4e93b8a36d316f34
+DIST thunderbird-78.14.0-be.xpi 666661 BLAKE2B 95138306bf70f862292c087e781c9209dcf32a135d620fbca73567ed4a510bb00ecee6fb4f1667fb86a9e6dc177bc8fa96789f3a9f1a8b2207ab70a22231bd30 SHA512 b18746531c0cda0c404aa671e07283786b208806925ff4a8faf3bd8b6a7634ca40f9780424e9f5715753640e2acc999cb5f6b450b9c5d9a2b830b51070c9b53e
+DIST thunderbird-78.14.0-bg.xpi 672412 BLAKE2B e707618ca7cb3b9b0fb7dea191926da4a7c752f565705aa23543861c5ab0d28776ea8bc7adb38bbfe05baef3fe1d18e5d309c70cee43416afc1879a19b02c6c0 SHA512 00802c72d35569cd0f1ae565e008cc0535e0b8c347e4e2a1a3cf7c2ce7a3e3ce850aa014202841642caf2cc55d1f9b6fc66e8e2f9fecf4f61ba45d5adc88d5f5
+DIST thunderbird-78.14.0-br.xpi 604525 BLAKE2B f33e2c5a82c6f122255784af188e60e4ec7a565e6ad69a94e16ee6743e677ab3c44e2831204c78a8cb60b58f3695498da47726f4b88f057ed0b15e6f13fac76c SHA512 b8067fe7948c9b36bd89f36ee205b7d532ffe52e7562422e4a1e625d1f966fced7bdade0d151947d4f8e812ea1abd0ffdc04f50f8c674e1a1d7f0312e2cadc96
+DIST thunderbird-78.14.0-ca.xpi 620446 BLAKE2B 22ef4311deae77c31df8a5dec54489075b1590c81744885e8c3314cac89c2dc6d046e3e83bcedbe62ccebf946523e847a0543fd1bbf37b42eb07500548c53150 SHA512 a9638d094f36a923eb818660928fa3d091c672fa1c89d10dcbcf05445dfe85076c535809e0d48b7dfbf7bb66bb32ede191fcb9e129c385ce69f15e09cf62fe95
+DIST thunderbird-78.14.0-cak.xpi 635640 BLAKE2B 14a9af825f6b1a7fc2bdd5e19c5e47a2f580784649208439e84fe5ef5b00f539830bdb208ba073e6a02120465cff255157473e57d401e422d0750d5018d1bc64 SHA512 501f176ee8907ff55f8e1541d603f82c12a890a7293d813cb20c7bf7c22a1cc451c73c4da3a211f2ff1e22920c19a595f2abf38698be2f90cfdce59bb8c55042
+DIST thunderbird-78.14.0-cs.xpi 635340 BLAKE2B e7ebf6472d8cbc71fd2d1c7f7f846da1c484e516149ac6a8a7ecb91e9170e7bb1a04fbbb772378ed3388b68bb0bee6652bd8635145a348cc49e9a878fd886d87 SHA512 8824b22acd409532fb029626f99f0798357bd020d1673ec77aaff6a850d8d176bab3860273b9554c43624fe138d511200c3c5f6049fb62ca9c631f411a76aea1
+DIST thunderbird-78.14.0-cy.xpi 646235 BLAKE2B 796dc846ca2af7629961dcd5e9e919f1681d9ef508c79eba0cd85f21b7839c876d032d011fc87e8d6a393fef20bb51234499ff7c9c7ce30321591c0558c09fb8 SHA512 8435af58c4399ac752222836994d9e92f0007417981c2fd1ec5ad01d4c87f184630a281d788c599369310c4c26dfe14c2f220c2cc03ccd51102c647eb117d27c
+DIST thunderbird-78.14.0-da.xpi 620995 BLAKE2B 25d7ce0721c499b7c7f7f54622bcb6b7438774a604d58fd59811c3639f1acbf86e44240955045f1ce4126a3f405369ec13ed2490a6d609cef54545fc2233d8da SHA512 53e3e3dc202a44a9247738c75a6b17f0509bf581bb483f4df7279c38cafca623c72c02edfbe0609dc31271cb20e779445b527167bfa3920f1aa1ab35e6e7335c
+DIST thunderbird-78.14.0-de.xpi 665191 BLAKE2B bf83766e51fe43480eee27e0d70fc281ef2b3ef89143c86064653d37f6c15ed715ee37d470dce2c031d70260f605a890859e5288b220bebe7066616f1878dfc9 SHA512 0b4edbc560024b6d788c57690f6579b570d0f1d614efec2df010efb733f5a45e3b7cde14f2e9bab264eb14dc4f018bf5f70b42a94b19bb599e82db85bd68b203
+DIST thunderbird-78.14.0-dsb.xpi 666770 BLAKE2B 590ce2a5dcaa66900a6227e0db7a23133ac599892a5e0e044642af5a4c96a98154d35177a3b1160b2815d6343f39d5c9433aec164440fbda9419b45f9084187e SHA512 8573e57d020e08e2b3ad8e74fb622cc79f76324693e0fc09328c4351e59c66abe008652e34a867d22939a0ece9c56578165e0ebb8050f2f8044c928732656383
+DIST thunderbird-78.14.0-el.xpi 774448 BLAKE2B 5c001c3589df11c2f3662d0ac8cfd4ceed758f93e40d12b46f77543a80c805f9c4894bd8b09e39e53888a3e2733d4e881083ac121e4838be1085e1457e06b6e2 SHA512 934807383b8503f5967a280a912ff90412e6e63f801d6bd01bf0412faee2b6fd3dc169218673b0b89502e64e3499c6ff135f3d820519a7d0c928a56d984f544d
+DIST thunderbird-78.14.0-en-CA.xpi 611778 BLAKE2B 906df8f53b0d7f773554e68b42cbf50c2eaf78f1b4960038597ab1aea91ca7b1053dbea31081e76ef6f656155ffe7f20a562fa2083d691d1dce0588af0228217 SHA512 42b50fb9a533c3c66f814b918dfd800202253ce84b4a4959d7a2c4db380622ff5fae0e889ecce32da301ea53c1f13376eaa48fb6b49de88e3e5ec47ccf98a004
+DIST thunderbird-78.14.0-en-GB.xpi 611184 BLAKE2B b7f55d7aa409fd850df044cf1a2b7e8ac36197ffff5d20e873ed696186de140b1e34710a3e11561873b521caa0c3dc23de593fda5d8fdab2acf7ca43770f9a65 SHA512 766e9ca51dab32eaa916fe023fcd9d9a2630775b57798e7942505ff496464711a481286647cf75ec599adb1b89b8e843a39625611ff09f583beed31d76b9a67f
+DIST thunderbird-78.14.0-es-AR.xpi 657786 BLAKE2B f92968f13aff6fe57058c12e4d80fe8cdc736c9b469fb9da9e12111fda08b540d819a7216c5c3cc68c243ce64821f40e3a0500627ca7549168be3010b6150851 SHA512 04c0516a4f0cc6930ec6e3f0114d0ee969dbab1cf1f36d889a3b9ee9c9a7cdf93669ad506ca7e3ab8dde11cc09323151ec90d9fbd6692e5e39807d9f40ae07c1
+DIST thunderbird-78.14.0-es-ES.xpi 569806 BLAKE2B c6ba703b46266633badee4fc3561a74771b2496f7a7247c87c2e33492c5fd0906430995dd4c233c7f6c34df5b2d8fa4592442db7f3f5f07f3ca8b3066721192b SHA512 71f75d8acba15165b11963f8cf5dd18285aeb5741584ebd2d278429ceb2b2c98bcd4f1b047252685c84c08e5429ce17b50da314984c4a35d24620582994bd572
+DIST thunderbird-78.14.0-et.xpi 597730 BLAKE2B b5a16fda8f084e1658c102d33c836e0326ef424e8780c456566fde846ff9729c0881a4e1b5e1ae438747ff593244a4c433237cdf9ab09ad0d212e4323263c840 SHA512 2f0c33770ca10b157d4bae6f1e99e2a3e0610be8894d0dfb87c380a8eb6a20198490947cceb0302ed9ba071a564d07a5983e8a5a9c9786faca33a7dd33edb970
+DIST thunderbird-78.14.0-eu.xpi 632967 BLAKE2B 0bd03affff758a1d072298bcd083b849e57071dbf1a34a05536b42034e5c451a8c77685a15e2e7dca615e050f5dfc731ab0261d799effd95dd0ccde762170255 SHA512 a18dd4bd2c0299b8183cb60e7ecca7b914142999c7792bd6906a60e12ae2db005d5d1f047aa29524bd86824829e91cc3dded6f94a91e559e12c0a65ec3579f42
+DIST thunderbird-78.14.0-fa.xpi 639754 BLAKE2B 1a310bb0d3c9da401e27fe6beb0be5f505d9795157cb439071e100498040e9c10e59f3377d75cc88630b350c65e784d09b8f170dc1cc0710a6e40df81a90621b SHA512 19aceb0f6038e24891a1beca0811eb5980650a909b2328c8c3cda1894954e852f9084eb25f259f60249d5383e59eb5e9b0f96ab461a78a2afcb15ab5592335b7
+DIST thunderbird-78.14.0-fi.xpi 642445 BLAKE2B 0d0e410def6c12158812408f380d427c0e9570bf729f76f80fafbd4f88e0e3cee6433cdc7f2d52009b2ef74e6f288591eb816494519806083b93a88aa7d52536 SHA512 a0d46a6b059290769867630e0dddc06ba791a4f13a56359f744f31561b927843e99b1bb663e68b85996a29f677a84726b96c479030c7a2b5aec1c1cdadbcaa0e
+DIST thunderbird-78.14.0-fr.xpi 669490 BLAKE2B 2448df98cb777afd7cbc5ec0451a7c3a193edf2ee4e70d3b77b61ccb309114dabce20289da32bc800160f52034bd1875aa58bdfd71bbe55d4f801157c8615f4c SHA512 25c0cb3f8969fc160c06d543d95a03c4ab489f0baeac68a553460ac3672b56aa7ee4a237917a79f1206aabefb98a78bcba209b74143c4daab91b8553acc4b43e
+DIST thunderbird-78.14.0-fy-NL.xpi 653078 BLAKE2B bc4aeb715e51c65515a56bf16b429fbba17fdae47042175f6de82d80abfacea69f60a9948b27a0f30beb68697c2f0e77b460aae767efb1dbb79a1eb3261fa2aa SHA512 7fca64a122c06c8513c8ccf1fbc11448b332a58af153a4de67324fbbfd1917f3e607c880bea1fd24848797b0a7ef08d3deb7423a402502290b68bc94d4efa705
+DIST thunderbird-78.14.0-ga-IE.xpi 600705 BLAKE2B e07258ae8cb49d39bf2f47b01dc991cac3475659e7d021fc9893ec31f503269d38f50eb6a93beeb2ec70f404960d12d62f1e736e20297ef32100c5a24c212f9e SHA512 9ce1a905e041ea463bd3f937991fc2b4b4ad9ee94b123f486c8735da03c24066a216b25f247803c341e33870f7bbe8114bc7e09d9eedb795ac1139662ed49aea
+DIST thunderbird-78.14.0-gd.xpi 609383 BLAKE2B 55935e3842d4e39c5c3834226b5d23d264f881095c2235d2635f77263f6a27be698ba48e6220bb99db05432c490de37b47283e2ebc86649b75221ed44ed8e171 SHA512 b255c97b5bfcd8094061cfd4f3645a307b5dfe082d7b9c8ae6ff86ab6da9fb2bb357f5950c205b3a720629b16f3c78acf1339a79cebb452180e1067a499c167e
+DIST thunderbird-78.14.0-gl.xpi 615727 BLAKE2B 3b0b6e6160fee379057e4ddd1ca9c0a96df8a6b8242e4c142e183665ea3b8fa0aac0f42640e6b681234bd224dbb5552625c1cb9d11f0c86649cf536072ccd1fe SHA512 e9805d4e3ec4ca981d2bb7f502fa3bb71aecc76afdc1df0112c883266454d3d2d69ff4dc7a14936aecf4e1266027503742644687fae845224fe380358b15e2df
+DIST thunderbird-78.14.0-he.xpi 640492 BLAKE2B 6f51e6a53040f6bb4b1e0f234dfbf443770d376cf623be408e2134e1d807cd30d90dd9bc5ad52f12b0e1f342c22af6e1eed535d45a719e28d8e9fad730f3c31c SHA512 2b96748021731ed290e9681bb6f910142137c91f6a6a5c3785bacd677baec9ddbd0fb8132aec7f0e0c75aeb4d02be606a7bd2d66a487278818bf5c51d71982e1
+DIST thunderbird-78.14.0-hr.xpi 629035 BLAKE2B 889703f4c9a6a197bd3ae8c5301183f6ebfb224a2b696b5c5ba45361a58bbc2116b036592138bd03c68084163d246a9e4796c2a17b77e74ab1fd1079312b2588 SHA512 088f68803fc404597eb08a55558eac2fd632c771e4b695b99c61ecdec06e2217b4971dc96f8a75c516497cd2831ce10058e623cbf856232d8f62a96a0879b43f
+DIST thunderbird-78.14.0-hsb.xpi 668602 BLAKE2B 433924695d7c596c1338dd3062417916f86cabb0a80e8aae7c8fee1cc47dcbcd6557f04ffbb859bf58827da3e90273eba1dce9583321a45465aa732847112a55 SHA512 e896e20394c9d6f3ecad834e8372ffc3289dcc763385cf81af8aa60bc0b278f190d986ef1b4e7eb0fce88749ce3c89b554e37989d04f8acb650727ebe930efa0
+DIST thunderbird-78.14.0-hu.xpi 679840 BLAKE2B d30485aecd7bf75b664e24d4456bbf6f7fb3eba863c4f1f511f6d31c820c1f50ac5127a5ba5821eeeb472e8558364af72b5f69dea3973944350165b6d190a8e3 SHA512 8672d737e3dfd6e7cb7ee7a4d202a64ff4c8db62d17994b3def2e6e673a4c17a5c43fb28b7fb2dd36150b6eb96c9dbcfc36ca58a58f6084bcc02eb3247c2e8d2
+DIST thunderbird-78.14.0-hy-AM.xpi 713332 BLAKE2B 296f4826e9d9d4e40e465793ba630bfddb16d4bc0b22f7fc221cfd00f8b0ce81c29b3b87b4ee56f2f5a843c3a169c1f53cfdae78784e39d47e82f7539e7e7cd2 SHA512 d9e78aab16e2c018a9d0429d68c949ba2ba12f9a9534ad24f5a64018a7333f15d7dd87f3b966f97c85f74a72af224c5915c6d411497fb4157c77236ecbbde0a3
+DIST thunderbird-78.14.0-id.xpi 620673 BLAKE2B f85d592401f978379db03501a218c2be251da93191daee8af1b167b178476f31c006dfae933091810deb829339fc43a3762ec14ee0b7d1558c70bb6dd743a576 SHA512 3bba3d43b2dd298eecb56b7b21de2a5d2342795435e6870c8b32f87decb4d9b5d4cecad5be92381e9c48449d682e05eed4fb86a24c0d33cdbaea5d24b0690ea0
+DIST thunderbird-78.14.0-is.xpi 581640 BLAKE2B 6dc72ec26a3126fc428138229c8bf12b77d3a0b4839aac2fdaa7258858bf6e8eafced1b92d9304fbd2c0a53ada73f375adcad6b7515f6bd89085af91abc88696 SHA512 dfc6ae3a98e4f90da0b7ddd54d728b2d83b82d40132745ecc7e8bc25705d7d25a6d01c412b27a54f175bda122075051e53a96ef706b26c8f7b505e242a9aadaf
+DIST thunderbird-78.14.0-it.xpi 572961 BLAKE2B 2c6992b44d0af3e840ed63d8e6187b60363a4c608bf5c539c8166dc5a0f4f8734254c7c4ed001ddf0559716580be46f85c3f62f9898c5d4ce5e98f7138d02c95 SHA512 805ecdef806b5c50c3a9934b23e450d37eef0d9eba84018f2205a93d2b2d3d7ffc7f9ed8e86718e7aa9a232953a1cc8faa0dd231428b6ea2bf9d70caab6afd2e
+DIST thunderbird-78.14.0-ja.xpi 722450 BLAKE2B b43a9fd52758638bcc9e952e511fe8cb34bcb39d02a38abbe3bad219797793f1c0f9a5e53d3872ea2d464458e448f25bc9cac8823b6793b43786da42e9335def SHA512 b4906b216741f9e2c70aa7297f81c4f3934fb05bfd0b798a9405b1022f5c20313d81045292d49cc2751dc1ccc94aae433cd87300246d22c518b4c3b18e729beb
+DIST thunderbird-78.14.0-ka.xpi 717023 BLAKE2B bde848e6ec4d6d564cc86f7aab677e12471a5092957cb549345c9517ffacfb4668412805f1dee8f9a98a26bdd47407c3337cae45599014e6d0578dee876ff3ff SHA512 bcaf7eadbfefd816486b6cc45caedebca49a2c53cf1e88679a940b522ec99d4d6be340438da7a1e4a9fc9e8df0fdace37916c9203956946450497c2a64920fd7
+DIST thunderbird-78.14.0-kab.xpi 651920 BLAKE2B 51c66e0658fb0fdedef36fdfbc7f20f2705ef3ae053e96c84fb2b90088929c7044fee470ebbb068010063f80740963e250931969ec6e621579ddda68c3d6093a SHA512 1a5bac32c29e73236802cd4733d9bc0b1a6689335e1daab32b7cf3b332dc332370982451a325b3ce293d74f960775cf1f8b8077239f548aa1471f9e3fba1d93a
+DIST thunderbird-78.14.0-kk.xpi 720471 BLAKE2B ba2e8ff9e890349ee8eba8eb18bc6dd4f20483958a6beadb1f934874a047e2f3a944d8fc3af7db07b2925a844770882318a575e53b37d71dfe2a738ec4032c50 SHA512 1726e41174b24315c510d8d1115f3dc459a658d40482952b686a5cd21f7149d532b547424baffa5d4d436f7fec8b6ccca7986090ae8248d44b014a5ff54b166d
+DIST thunderbird-78.14.0-ko.xpi 688207 BLAKE2B b22c997d48e2447bfa26dcc2b2a957530e41edb3947bdcad6fc16255b4b6f780d874d93b4dd74b0e91bc3ec8006394125e074662b2170287b0309025269f7631 SHA512 d494e370d729bdc9ca0944009df0630b64f4a5ba4bc17f2ed7b6914edac17322472e93abff5b65453e92cfd7c803763575d6e870c9bf78ad81f91288890988a8
+DIST thunderbird-78.14.0-lt.xpi 660292 BLAKE2B 9bcfe2fd6fa8908714687831ca844dec012820dc56444cc4dff173d094df324c15948968347244c592e9be4841dc894656e7e6bea1a424d64e330e889164f22f SHA512 04a9e206546447a87cbba335053dd2f1375ef2f80f3ab52c8411548661d6dd2e600e0bbc4bde073e980e7fc8f9bf84a66ae974fc314f15e8918fad54e9b1282e
+DIST thunderbird-78.14.0-ms.xpi 572174 BLAKE2B 32cb6be789a0c20e892fc92239e1b60f407319ce1cd9075485e945720d7deafa43ce2e9ea1ab35a0c9a8c2597d1f912c35642768c08406978ed300b2ae4dd4e7 SHA512 7e1abc5836080b35a61d3772cbef3c23d9944ba2a59530441febe24c886281498b2bea2cf464531cd6bea8fbd4dee293cdd12273cef865d7fe1f18f38891011f
+DIST thunderbird-78.14.0-nb-NO.xpi 637244 BLAKE2B 6bbe76c07f3bd4b46cec580ff0599a6df93b85779ccb2ba811786081395521f8edc12ad7249e287798915e6ad2dd5e2274848cebcf1f1c54f8dba024878d8a72 SHA512 e434559d5dd5d7e4b3c68371395257e43f7831af422d11db533fc436f27f99d7d48198d6e09ffe8ca678512a9aaa5f2edc39b7b1394bda48bbf66e81d615cc47
+DIST thunderbird-78.14.0-nl.xpi 644362 BLAKE2B c2eb39c765ee9a993f9175cfa69f0e30d11788e9e64b9692b1de702d0fa3e9f822fb945fcdaa6ec6357668e466f497303f3fe21a64cd460e420fb7ab9db1cc36 SHA512 c4231682b10125bbdfff6d223c870afa838231de48a8aff7559d5f07804ac0bc91b9b8c17711c8e4178acb569c32c996fb176092fa6e2cdcd55eb5cd73c3df63
+DIST thunderbird-78.14.0-nn-NO.xpi 640696 BLAKE2B 1686cee6cf142c9edad5949f4070ab0de34e5160ebaed15a24ec92656b57820a2384108f1b952446240529b951f4a7b4a3e4a0e2f1eacef2dc5841471d6ae1e8 SHA512 4d227012c317132c929f4eafe1d7a0e10e1f1ae5dc973af1f4a58e59934b5d84aaed37e3abe366c8ea020161c5ddbf85b1bccf6577729919e5b88f655d91c5fd
+DIST thunderbird-78.14.0-pa-IN.xpi 633217 BLAKE2B 55961096cb4fe83ccb22667d21855048e1f68ced800733073704344d5f91dbcc90f8540b8ae398402ca4aebe5d1361f2e503456bc31f21dcac9fbcd1328b9f6b SHA512 172e8330a60fe6ab6113e154118c29403b91becc59fb705ad7743b039f4301585521d327b014648c097cdfad3c61f714c0309e37bed29319a1def3cb5acf583f
+DIST thunderbird-78.14.0-pl.xpi 637118 BLAKE2B d45ef168fb798af490d01901dbaaaa5f006247066b4cb6709be2344277e8d4b740ab9a20afbe0ebad92bd5b1599f0b2cde98cfeb5d85d49a91bb25bc3125aa8d SHA512 35b9f42135c69442407c3941fe2aa9dd084f7874e502bddaec5bfbdd6389f1c249f6e741094bca249d703b12a723483456cfe8f6d380ef4dce7e1159521b6a42
+DIST thunderbird-78.14.0-pt-BR.xpi 649417 BLAKE2B 292797e97929b016b142a4e286abb65e28b04248d7a15ca25180d4bdd1f0c8c379a118d120b2f1bd42bbf2ab93e51fecffc73e4e2b8b657eb75b738611219070 SHA512 3a3b7001bfc4f1be61aa417a4a3c82093082e8b2a0e2b96ab7f2ae16314d2f048fae99ec9ff4161c3f5c8d3554189879acb49f6c9756e78dd652529e5c624633
+DIST thunderbird-78.14.0-pt-PT.xpi 655499 BLAKE2B 75cc0a11f074e41440d140c656d284ee1db2b9a62b7ffae916aad103c914fb2cf93a8c43a81f8eacc438bac7112a92c151992caec09a27f9cd0ee18a4f06e978 SHA512 f86f1cea3febf01835b090b252b1c7de4229c9bb2c759df9235ea3953ea973dc3d0c16c4363f4fea01f4ac643497f5692ee4397ef800aa45e74f037422ad9d9d
+DIST thunderbird-78.14.0-rm.xpi 646530 BLAKE2B 976103b8fab88f0c67c2aa3dcc93898e855a8c7c3f5a509d226ac68d964131554d248aa0a0422e3257250c7528f09eef4f10046784ea4c0d37498c5cd32eb7b4 SHA512 a74a97ee82b3f89b4edc61934f313cccea45533307114d397c2bc7f5b1c66c557540bdb9e5b7ea537a3d3324cec6b393e8052d4b45a5f53afbb0010914d046b3
+DIST thunderbird-78.14.0-ro.xpi 662638 BLAKE2B 0ea81ec2560fb5fe47216b471c5e58c39b24135fce94c10fa367a89151665c6033d9ba5101fb4d5c636d4f4708183a954994848d7c8a200ce190efa78342938e SHA512 1caddffbae098a9f2ed6062d333f67551a82c18d1272f612a11f77060fb3d7b802bd62d07cb791a151d097fef9be8e879a8277ce9668f5f156caa3d7c372d499
+DIST thunderbird-78.14.0-ru.xpi 756184 BLAKE2B 8b6f630c9745f74aae0429d6eb8920d8b1a2528496dd3678548ab7bb24f76696f8978430aa95738aeb7626189a3bc54599d75acd6fde82a8caef81b765772cae SHA512 c45bd949334ce0978307a78f26967e966ecafef64c3a2e9790be2db2ff115ac3b8e9147635f4b70d97c024506c44a4f059d82d60c6dd677aa00c7d03f7722620
+DIST thunderbird-78.14.0-si.xpi 651107 BLAKE2B 1ba72df2120f585b67508948af1772e8afd91b13138a9e686f17cd1f7cced404226b58520ebcc0679de94acfd41152fb1acba2586e8c82ace2d396e64df9cedb SHA512 859b9f4f0b513d1fe93d949d07e08776e92b792422e27f1fa69b15d1840939145371dc183cbab03ff4a5401c59c5cf69fe6dd86b73b30fa41922f5b3ecf3b2c7
+DIST thunderbird-78.14.0-sk.xpi 643224 BLAKE2B 73ada66370d92852ee4e96b483019fba072f5fcd8a2f9d0ecbd26c8f4167e282b27ab0b3f3862638d93e9ef61ceee8291c4b1c4918d248da9d4614319fbf819d SHA512 0febfcbec6ca3b268774b16a54cda826b442b33ebf864a01b7b29518b006fd581a85522688bcafe1790bb976463dc42ad8157a6116c465b040d7078b147d99aa
+DIST thunderbird-78.14.0-sl.xpi 632387 BLAKE2B eb51a27ec9877d7da6ddfb07be612686c493123410f9c3cbe144f1debbb58f03a23115394ff741bc4e2ba45ab50b6284073c6a5dcdc3a31f81c88f6ab71f422e SHA512 f191e0d9c9bb7cd7bf75d861c03e71803c618311935b3886e6e38952f8490da7d03562abcd93a7155f310138dd6391995b1325c264c7dfb1d23e9d52d8fab2ff
+DIST thunderbird-78.14.0-sq.xpi 657819 BLAKE2B 12e39f142856ffd6789a562ad5d7592a7fe024f5cb87039cfa4c357835ddc71915a4849bacf6c2f98ea9f04b60829af9e2b8a769fb14aecbaa3766e895bcb0e2 SHA512 be2f69677213dd871feb35d00d515dd28736b8a233b9ddefee1d015681db2521505c5d5d55d9880cc76824188dbbfce27a6c4e3b9d04543633db21eaae1b4c49
+DIST thunderbird-78.14.0-sr.xpi 683113 BLAKE2B bce7b5881d2d204498eb28f1b2674bfb5abc22d8218c163423b09288b23855bf50f802fc6433a0e628e258a1b713997b51b2410c2fbd451b73ca0580128b0724 SHA512 7da839a826bcbdeb24fa296de7fda7fb7ad04a0a183ccf5d7323d2282d963ce53bc3d04cb79ac0b776c7449768a1ddca527af039912f13cbb7bace00f3df7972
+DIST thunderbird-78.14.0-sv-SE.xpi 648858 BLAKE2B 515a1a90aa525848234d5a5ad194201659d909a8596ac82e721a5194145909ff72a0fc789d6ce9f1f3baa6b3779a1867356629dda0774618ee94c0e9b3fd1165 SHA512 045e87e73ea64cb9c0e0caa9fe49b9e72388e997e2b27f176a3296ad4f9cf6f7a802c2c76373fd7c9ab252919a44a3cbe138d41c44bcdf69be652d7ac47e6847
+DIST thunderbird-78.14.0-th.xpi 712041 BLAKE2B 909cf152c52e3ce3ea3584c20f40d61c81127ad98ab6d08b9661b1dabe2d6e58dc6952eb23a4c90ea95e7fb6e3bf92f309841a22861afa4a5607b06eebc1f009 SHA512 256d0793855a1bd3b47edccd5324c11998b7474a59aa22e0d9f7a6570a588111204dba42b11f2133759e894071577e0f08fff130ba3f9cbee65424d3f4efdd66
+DIST thunderbird-78.14.0-tr.xpi 649070 BLAKE2B f91743e731d1d6d00d0cd91409ded9a261c1f93d992c9dec52cc8ea1c069219c498741a3db53231376ef82a6e7040c5aed648704378081ebe6bf48ab54c3f334 SHA512 d646bcb92bcd46c63f08448b03ad88067f2d12f2624b0b2b382e18a2475fa4ebf0199c83640560fbe319f7f71e80b2be7d0e27edba118d707b41715e776707fd
+DIST thunderbird-78.14.0-uz.xpi 586602 BLAKE2B b0dce91018daf4973bbfebebbd6ae98e9d3d0eadcaf31f3227c7acd06cb71bda8ac13626f6d949f86f8300b7f0a75cbf247756eede15083e3bac62a7e1ec3ba0 SHA512 75d17de257443a8d053d01ea0618d9ddaa7a2f9fc3e7865c334c03cf39847c9707dfbc3c9be95933cea9aaf97ebf28720ad6e61a8d8962972a7fffdb76f6afb4
+DIST thunderbird-78.14.0-vi.xpi 674612 BLAKE2B 7c2a212ab5233b307079dbe418f61af45edae6f8afa686e5de13253553bf62b123c4c323dba1eccc643b52ee63060b241f68adee3fa365556afae745347b1c86 SHA512 e151a566cc04bebf64aaba018a4330935dcd2455335e250644dbc26990f8b90f48b51afe2ee09507cdb219093098566d71817de2ff7585847066409a95053737
+DIST thunderbird-78.14.0-zh-CN.xpi 687177 BLAKE2B d637b0456f8d90e8e2ff1149ba315a1198512882c15de4010f00b217e0446d3bac533fc9bd8b4ec79167b4de778b5c584818953964f792349a69269237b25efa SHA512 cba980ceba034dff08d0e97902f7ad5dfb4931b269fc16f14cb00ff2bf23391a95086be6b5df9944ba213d18e58071fcfcd4060b5f453a2dd2fe84e8ea9d2899
+DIST thunderbird-78.14.0-zh-TW.xpi 687624 BLAKE2B 6466d30812b61fa2d053befc19a4404920bf99c7de6e9d43fa427141327dd9018f4a2fe312834af917f9a6e10cbe68e6b04893fe68fb9277f137525f8807b7d6 SHA512 6b4b37123881c42b0a70727ad73929e026f79214a0b4ef0b9ff2adc45f10c6025379375db60dc3ce56c0f15bc129c1acc2426d90957e5c2dfd6ae0ca249ba526
+DIST thunderbird-78.14.0.source.tar.xz 352766276 BLAKE2B e692bfa7c40b05ae691d96efb03e3d6c86fcd1c87ebbf06323d0127d7cef603aad2029b1c76406d2893458b1dc5c0ef7a9b352606c5ab4475e85fe1a75b32311 SHA512 a6b70235eaa5bb334bff02591e030cd19a6c13d0302d12a83966a93c97bbdd6557c78418cd26b486fd1ce7b7c1b84cbc2397cebb29682ad1b45bc8de120cab3e
diff --git a/mail-client/thunderbird/thunderbird-78.14.0.ebuild b/mail-client/thunderbird/thunderbird-78.14.0.ebuild
new file mode 100644
index 000000000000..f328ba5452ee
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-78.14.0.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-17.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
+ einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use clang ; then
+ if ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then
+ einfo "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use pgo ; then
+ if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
+ einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+ fi
+
+ einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+ af ar ast be bg br ca cak cs cy da de dsb el en-CA en-GB en-US
+ es-AR es-ES et eu 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
+}