summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-10-21 19:04:05 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-10-21 19:11:11 +0200
commit5fbbf217390df65b2ce75fb53d474541875c413e (patch)
tree93b51937930ff7ddff232142184ca759d0f2a09d /mail-client
parentwww-client/firefox: Set MOZILLA_OFFICIAL=1 (diff)
downloadgentoo-5fbbf217390df65b2ce75fb53d474541875c413e.tar.gz
gentoo-5fbbf217390df65b2ce75fb53d474541875c413e.tar.bz2
gentoo-5fbbf217390df65b2ce75fb53d474541875c413e.zip
mail-client/thunderbird: bump to v78.4.0
Package-Manager: Portage-3.0.8, Repoman-3.0.2 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.4.0.ebuild1038
2 files changed, 1104 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 335496e6cc54..ab67ea527c12 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -1,3 +1,4 @@
+DIST firefox-78esr-patches-04.tar.xz 171504 BLAKE2B d51e55c255d1f5cfa0c7c030b1ea50cb54951bed3bc21b21f5cb3b1e4b8b2ad406b3d12db2baabd4a90e3c88a38f187f277e7a4afe441ea6cf82c48f84bb0ac5 SHA512 6f00ec898fafb34d7c7e0ff2a6fb5c1cbf1205458845e14eb39c131125c5bf6b2418fea1050bb72449ec40e18fd775fc844437ce0290281d66961de40a53235a
DIST firefox-esr-78-patches-03.tar.xz 172416 BLAKE2B 2d67e793e4f4bde447a3a3f3296d1c5ea6c92843439f87e0ab08b51d2f0dd74f0d37762807a1f24853e56f7987e18af65f010027602e32d40a3444c7e418ef47 SHA512 86f35b89ad573c10b839b1631149c6fce3374943d101a6496c40a69a813525826cb2bac4926fc7813dca334c9dcca534e0a963b0725ac3f95fbd3a1c2bf8dc3e
DIST thunderbird-78.3.2-af.xpi 548780 BLAKE2B 143522732016ad215d9d8531334b4aa6d2adcbb997b6ce499e429c336c119eebbb0ffa1acea5bc96d3f3bcacd956a126c4b4793cf2068de2c9735c47fa568e2e SHA512 f6e130943effc59150dee4d73d3cb92f1bc6fb4ec26cbef0692f971c549b43e440e695e8180a933714ad2b10dbdb9dd025685b0555ac4845f817360e89d93b9e
DIST thunderbird-78.3.2-ar.xpi 649070 BLAKE2B 453b834df835f5f564739309b17a25465a6ad1d5a93c46132ea571b419d66763c72049f583300cf09bc61fdbc110a3037fc1fe926315b00772d2b3f1bee16437 SHA512 fc68874afc3856413ed1340e0c58631fed1f97af4b6d77a79ea7cbdb42785cf1dc6566b1a8a69fd1de88f3a36fd84124530f8f5eb710d441519b474525c3e079
@@ -129,3 +130,68 @@ DIST thunderbird-78.3.3-vi.xpi 675054 BLAKE2B 40dc665f92a088e63a969870b932c2a37e
DIST thunderbird-78.3.3-zh-CN.xpi 687637 BLAKE2B 970476763e6251cb457d558314a673babbd1af6291f088b8b3c102f69554f12b845437dcbb258043aed45a3ca71af734b7178d0f53c945af8248df05876b86f7 SHA512 d319d72df75e10c05f54916e1aba953ccc01f5ec336970c798bfc865c50ca88bb958caafd6d2ec53fd2d4cad80fa7d581ee8fd70de75cea123c8827fe61371b4
DIST thunderbird-78.3.3-zh-TW.xpi 688080 BLAKE2B d3b40ceb39b255adc02f14eca2254f64a7c1267443ec7b0650ab825397caa1d0d2b9fe36b0b02a5fb0243b791342d9fb1bc9f967cee36c0d28d1c68ad07dc615 SHA512 fcb3a2b536cb4679fa356bfca73aa883439ce8f232d81d968327a532ea71be291dfead8ef82db1f84241f1d418023c20558e18f85d5fa661f29635942655f1ce
DIST thunderbird-78.3.3.source.tar.xz 361488376 BLAKE2B 6b0caf4a84df0f78436a07e8957b4d44806b1c3d0b9812dcaad206d79bf66f419505761818d44d4c064a33c0e4c64c3c3107a499ad02b45916ef1a0d4f265d5c SHA512 eff25c62fde0f2dafa9a844c732159529b98fa5bbf7acc9370422b889ab30c87fd1a456ba7804c41bd39793b2332a1915f6b30403d3091cfe74a4fedd04b5b38
+DIST thunderbird-78.4.0-af.xpi 548310 BLAKE2B 65eb7d3016668e2504a394d20b1a3430ed4496eb3252a06fb96f42479ce540622d1a82b0ad1716cc342b44014a29f2ea9ab5b16e1dfbf6b0f882f672b54b43ef SHA512 8213c5df49240edaa0e3660245705b0aa8d101adc84def5170717495688d5e81eb61c115a788de81b79ef29df027f0e4eb9af1b79a1acb833f90ef2bcdbb68d1
+DIST thunderbird-78.4.0-ar.xpi 648575 BLAKE2B a5500776b53a876de39cb4737171cd629c9f54e6083e56aa4f19c9663a0b532ae0dcd523e74111625776b093fdef2498f2120314ec354377fddea244f84d7912 SHA512 596364f1aacf8da7bef68f9ab20b6f3773017e1764323b7215c3f74f69e63242233fd6f54534f0e655e34223b86bd18cb14e5b6e3d56425044f3db9fe9524101
+DIST thunderbird-78.4.0-ast.xpi 561218 BLAKE2B 381d0b879e80c9fbc08fe40dfb33b0d6db78bfefe37f148ce17afc18e3033c217dd64c3413a4b8d11cfd18037014dba1432de29f2042d7b918dc0c2d5f5cb9ed SHA512 a410891fa405a7c7417096bea2002e747b6a3eb1d03bae260eeeee9973642951ef9f57e2e57d1c3b457a3f817882f577c6ad7949869b6d63e371b7feceefb2c7
+DIST thunderbird-78.4.0-be.xpi 666633 BLAKE2B 2572cb9f4923417c5277474370c3a38e9bce67134b093e84ca7e8ee1b0eea8b5732d09293e1ff2028ebad36eda6cffe4016648135192e708b8d7a87296cbcb6b SHA512 1f6b6166265c893ec4070b12027304034a8bfa8ae0aab10b3e05b257fdbf0d1dc5319d6b5ecf0ea3ded991dc98ae2f6dcca5f5601a0dc7b3d2f1a73644ab7a20
+DIST thunderbird-78.4.0-bg.xpi 672389 BLAKE2B 2f1782cadfcc5ee85c0b4383d9a6c1115d23e3533ffbba9d2d5f0a2a3a633b675bb2a562804ff632d70c977306d2fb0aef3f3fe47596906796260a44c1047543 SHA512 3a904a9e9472c850556382029c676fe2a8eeeab92cc3c41e2ecf963aa3e2875c512189d1e4b97c8d1bdf216ee32980bf665b0fe4e3d92c4d11374a47c1c5d66e
+DIST thunderbird-78.4.0-br.xpi 604493 BLAKE2B 350c3736538b83d340b2410394fcec03c770db00d97e1b8fc1ad54011aa212d931cd68d3b97ed4d5456afb7c78d1fa0ddd8a392031a29de77b6534f7d7f6d820 SHA512 f4fa94d030ec759acf20a2e2fbd5c388a93aee79e260072715430368abe5f263814350601f1df02bb216fb846a63d7e96f254446bcd45c1eb7a2db9152942d57
+DIST thunderbird-78.4.0-ca.xpi 620410 BLAKE2B 020c8509a7b0c9d5360722948138accde52671eff3ed4e500220414f1573d2f18f749238699fc5a8d45f2fcffe95146300bd5550dd22e77c1f2224ff4aa47206 SHA512 328413b20ec94bbe84f75a71e36136ef3ab32a059e962a6990ee28401f439ffc972b057d921a8611ce890a5986aa58ed068f6b3c39b8a71f5e459d6f53adbb7f
+DIST thunderbird-78.4.0-cak.xpi 635651 BLAKE2B fc4af96b013610653425253c343fd2e04173260832b820ca5a0c41e499aed53aea1764d3723fef7d58a7b1b1c1f5eed65a6a013e77c1a854b9480f378071e132 SHA512 9a0ab4e28ea800245f55e682d4e29ae40e20689281cb7002564cffd1472c666675207920830c3f2779cdd21376f53eb98f74ac45310077f06bf4a3e3bd18ea70
+DIST thunderbird-78.4.0-cs.xpi 635318 BLAKE2B cd1c0ab57d104f550ff259d2ff973c273de29cf3429a2db0fbb75cce17981ab2cc8210f1accdd6567947ded3f8eb41e8c2bca6833054c4137c19f56678913a37 SHA512 1e037cd20c68ddfc3a487c4fecf8545701f7b1188d63891d97e9be5a633a21f0689b5273630b9db6136a3ba5283a866fb3dd396bb2c3b1f0e46624a6792e194a
+DIST thunderbird-78.4.0-cy.xpi 646243 BLAKE2B 3e5bba063227cce94b1e6b08684c74ab61dc96c30c2f0116b6bcf463cb1fc29895a7c181faaff17ecb28cf529a31ffd8b3eb4adfe2220f207cf144000d23ceb3 SHA512 ff205a18a6108e8597b74db9a4aadc3c2859309401efc44de35206c34f9296b68fdc1e66be21b28c7c76fb9eaa857631801bf971acd284d878ce98a70ce9df14
+DIST thunderbird-78.4.0-da.xpi 620987 BLAKE2B d80da870eafeceb6712500b778c3370e42aa44bbf9c5ccdff8c2f5c88adedd5fc9845fa497eaaa2bc0560f5009058c6b61a4fb5fcd9ccfb90d443cace6412784 SHA512 297adab359522c5b79f69770a60798ae61f4ba75fb1bd5e5f824fe670059b7cd6a56cf8eaf66aec1a4746fb6d9d0e25969c9b7121ea2eb83cc26b5f13b5a29e2
+DIST thunderbird-78.4.0-de.xpi 665196 BLAKE2B ac9adf3aaa055c2d80a85dacda85a39c62bfdf8d7178beaf47869cfd72600d3ecdf83badbd1ba653e26714a0727afd151fd513aa08dc798f8e85023620de421e SHA512 2f9270ccdce52ab304c46bcb3b4ec10cd76a5a28b19c53b46ed0daed12653cc639d2c810e964b1823e503e83ed8f4d5abd314c8ca42ad26166a1239ae3b4fa50
+DIST thunderbird-78.4.0-dsb.xpi 666779 BLAKE2B e7015eb18bcfe732858c5eee24ba47160bca035ac0a7d591fb2949d9bc30f2152bc1744a47ee91e885c7531dd005d892520e8b048615d303758f6c48a54895c9 SHA512 bde46608090e5e0006c53aeb07217a3b3b9672adebf7dcfeb50661a8d1fc8309b8c4495e007bbff36a04299e36ac7ba78c879d26fe114addffc0a1ce550beed4
+DIST thunderbird-78.4.0-el.xpi 774459 BLAKE2B fa88e27ff77d8d2decc26dac671ddffaa0a4b1ec445164fecdbd75ebb9dc3e13f94e16f623a9dc830be5b8a4ebd7ea699933f6f23136c18317526303cec3c17f SHA512 c77a3a6fe6fd5245d7cc37f8fae4ddb391583cdb260917997146de2945cea9b5d16124e5463dc133faaf50c14fac29425112a2272c3c19bc5873f773f7ab9ed9
+DIST thunderbird-78.4.0-en-CA.xpi 611768 BLAKE2B 66ff95700db85160123523d48f954eb41667aec56277fda5f9739172fd966dcf9300d9f563e173a45239e949ec412d061dfe9ff2d67e3be7abe277f8f02283ad SHA512 dff6b07494e273f50779f5f9701bfb391a9e80fea3b978a1bdfaf78405e0a8eb554f32617bec2f7108e6cab23083bd98d4867958b5e234e6a4d35514818c97f8
+DIST thunderbird-78.4.0-en-GB.xpi 611189 BLAKE2B 516dba2e00354628871950cd7588930266126654beec4908fb0f9466a8521195f10c8e4ab5fb18aaf6089d0a528356cb622035bba44bacf3c406fa136da41852 SHA512 e70b22872005f6ef5c1ecb2cfcac9d5f20f2d92b5e195a651e5c51d3e39fb38573b2d8ef2639b81b5e710e750ea29ea18fa2c18ee3c066fe9f7e709a2f0a2694
+DIST thunderbird-78.4.0-es-AR.xpi 657786 BLAKE2B 7cc67ee92d60da4c60d781c34a1d4ce95e6ffbe9fcfa12ddff9ff2c64791a8e4c0e57330d13de2608d57306f9a98a009b38f2ec3aefd406c2ac3a434acefbae5 SHA512 2429b52e43f4cf6ee0d0f3a513e494ceaba352d162c84fe0931a7cd1b4e2bf387222206359f186a71ded78724bea24386fe9c1957f01d3f376b7e054584b06ab
+DIST thunderbird-78.4.0-es-ES.xpi 569806 BLAKE2B d35be023aa142042d36d10204448455d24c65d985dcdd72ed335ed05d49faa7a4f631a4f6068ad5a0d503e97380916346786991090c1922c6eae9f3dc4682ce1 SHA512 6ffa19f98b49c1224517dd28eae19c28f66ee630b931f0fead20dcc310698e6f96c5afcb3b1646a2d36755a3489e12ba33d99d416ec4e92c8480d96081f35302
+DIST thunderbird-78.4.0-et.xpi 597701 BLAKE2B 77c541f6bb9eddc7c6c6ecf75f278ecf2b82eae97be76056880e29c25674642496d881dcf329df1e82bcd061e3619d550166e93c6622b04dc325de86599de431 SHA512 b0551c163df89f4eb3054178174fd6b6621eba6ec1779c9160b7f40313ef2dc101dd539c50da405918da283d202c02bf28b7ec63bb92c585152f67212ae24709
+DIST thunderbird-78.4.0-eu.xpi 632929 BLAKE2B 6195fffea5a55dd549c5dc143383cf6d0231eefb78a1bf3c414dab152161a282c794a7a4c87861bbfeca02b5a8e2ae64bbc586e852e1d1468cf8dca33a31b6ac SHA512 c7aad18bea420e1bd9259436ebd33d670e2bc04af443f3b79b6f8db997a18013f1a55ca44d00d514876247ee4bc1ddb7e66a4fea030acbe6527026292886b0db
+DIST thunderbird-78.4.0-fa.xpi 639719 BLAKE2B d88769b3624278609a16440a5b628459e161efe54ca5841791ad359bcb0cccde43a9d719a46508e14e5973706018e3b2be56ff7678be146718dddfb34886d4b2 SHA512 2ae20b7184acf67158d65f1e5f7cbf108901c400ae81bfbe578f4518860eacaf123600fc9e38214f5bfaa41d0b8df741936240a0d6effa066cd788df928444c5
+DIST thunderbird-78.4.0-fi.xpi 642446 BLAKE2B 0f43e5af47be33330ce637cecc1924e3b6b01bced0f9c32c148af8e2f13f08f9cd1ecc9a34d250b82f0e1580a4abcd12ab40dd32cdef36836da5f4c2cb880b5f SHA512 441fed12bf41e923109958f524aafec91f3ea5f453440f324049e6c38f253b72e1c3e9e748c57d549c77c24615d5a6a1cae23be7528777441f5204f5c70dd84c
+DIST thunderbird-78.4.0-fr.xpi 669498 BLAKE2B 288c2f684fafa9631c50a16d231ef86e916adc0fb3a9d644746714fd2f95fc40f463025809b3ee517d40fe478741242e3491b6c641fd7472abebc1a73ae75a84 SHA512 e6e74d5d7ff3cc9201733e2697a3bb11e8b08c6735e40eb816f845fdc8317003bc01879ae1f7edb443979fc30b7ee895beb3b6dbbaf2d81de4651dcac26dae1e
+DIST thunderbird-78.4.0-fy-NL.xpi 653082 BLAKE2B fd457bee43ca42d2c09edc28465c0ac4bee5951f4166295578934fcca1295b6320c591a4554c71bc9a480cc6f7c38f77d254d1d2a4cab9b9e7b2aa1d4d9fd97e SHA512 f1736dccefea5aabb401bf2fe1b9a5c8b988780cf6fffa65cc4b7d2355c4cbdf6dff696427c133a01e0da7e182546828f2d836d8d92161bafa87b9b25582103f
+DIST thunderbird-78.4.0-ga-IE.xpi 600678 BLAKE2B c9a5ac8cd0b2927ad9b678ad0e1ba0f1638e4354329771b5942ea3abddb5b856c8b8959bc79a3220205952885e6484c0368a8fda69de0190a7737992733c6f5e SHA512 f67abba1a7f60e5dd12dab9fc5ea584375245e2d957dd4160af772e94a04a597cf8cd0acadb580c491fcae3199a2cab5df089a54eaa8703e83e8cc96124f205b
+DIST thunderbird-78.4.0-gd.xpi 609352 BLAKE2B ce3bde51fa2e5ff5b4be0243e49e54278039f781afa16886e23d4731ee03d7042fef24e0c21416617c71aebd736836b68a7662d5c47871b704e69a4478d860a5 SHA512 21d2a80d2fcc9c85b52a79713da3a11ed400842fbfed41f752ebab9a062e1de079a02454b6abb1c214b4ef7d942b2c173c891e3e1eb04760c0df69027b7700e6
+DIST thunderbird-78.4.0-gl.xpi 615723 BLAKE2B 8e9dda3483bf8b85975b432f7e82f2bb75dcd85db854aafb2fa5f27ae3f1de73d9adba6aca2062c3bb4ce21bee92f29ad65f4e79c4262f2f7e5dda65a16aa749 SHA512 f3fac5617c28eeb56ba63f4222e61fc9ffabd8fe64b89448cf224505021f318a6f7154ebb747816e44fb6799343c71b7df84872bf50489191e4493db5bf87723
+DIST thunderbird-78.4.0-he.xpi 640501 BLAKE2B dece5afe48251fef2faf0505962dd46caa432779933beafb23aa61af36a6b366d4fca47d1e5849679c74f5b0b0d8f777b9cdeb71c54c7111e1de7b70fe0933c4 SHA512 b557adcc859a0e2f1c0b28873f8f5acd9ce1be0822671c2f3791eda6334228d282adfd84d2da6ab611211c3d4b66b2993ed4f59e2b90b380beaa0273efac4006
+DIST thunderbird-78.4.0-hr.xpi 628998 BLAKE2B f89e60df58ad7b6bd0e0ddc3bac9ce51bb62ba92dbfe9c9c5706f3d84361fa114357512119b8d262ddeba6232e0e5a0b225aa06696b13515aa8912621c4d310f SHA512 8455a70231b7dd274ec11fbe488f9e2fbac0ce7b56ab588459225582a6543513e9a4fc748b23e6c141b97d01c6a81e30c975fb6a36ca4aeb2b427d544775f84c
+DIST thunderbird-78.4.0-hsb.xpi 668597 BLAKE2B a6fa63b7357aab88be2657c9bf53cf2b24d1964d99ebe3f0443e54f46d388cf7386039fddd801a452fd8ceddbe07acd8de7a2deb0a6bfff4ea4cad4081a57dd7 SHA512 699a9725b6e2d3455969a52cc4ef8b3b9f07196c8e13d46d2bd224aded456005fee72ad2e7de3a2d295c8909dda63d0fcd3aa19b81f1f9c2ba002ccad875e8b0
+DIST thunderbird-78.4.0-hu.xpi 679840 BLAKE2B 31c825563df14edaf731f27480d0f0319822d5bdbbd69fcbbaf3ac5ca2204e326ae31bd477f72f5ef4171aa2f8adba1df45adc6e7d25e12078dedec9073c98af SHA512 dfb79a77ee1a26d04f39cd9057b5b3607e0e9d1f9222f2dd79445b49e559b2bc41f3f79dacd7f0974b94ae9054fd452a56de61cde2ae19efcecc21215f983aab
+DIST thunderbird-78.4.0-hy-AM.xpi 713293 BLAKE2B 67b146fa51d334197aa9e4172cd5110b7e2d6fb0cdfa71a7c9761c0e6381978ebd158614327f349f88ac8480f7db65c352a4f8e9d5dfaa5153fce0b0eaddbd77 SHA512 25cfebfb7e7d55fcb67ed8e8891a82dbc901c4e916ca33bcfe8cdc43d861af65f15c1e8a70f1b8798ca36ba97d0f4aed2823cb61de83dc1e3851894bb9c1e644
+DIST thunderbird-78.4.0-id.xpi 620644 BLAKE2B 5be696fa57b3fa7a6890243b4dda5b3614310fe379b7bb3bef83a3f4cf495f7d60a4cf2bb822f90d9a5d7fd433d89cefa6041ca80db1bd60704d33cba23b9cae SHA512 44b0de50c6fd15de9073e39c15685bd72dc75e44a4d6ed4b718cfcf6514a1ed7029a79a1cfb98adedcc490b4a3f913551d0dab097d904aba559b93188d89d473
+DIST thunderbird-78.4.0-is.xpi 581614 BLAKE2B fc2b7edd04c16adf880e7f00e2113da4f8d438d5cba1dae231734b0ceaf97c9f5abcec9c75866d69971fb91b6e0f741904632b83d82c73903861c15a011a717b SHA512 ec49d0d9be0621066bb3f445b501ab55c629cffe332face1f5209f3b49df0c758782ed6051b6664f38fa12ec7d8f9bc474eda1c119874fda70af51e9d87389a2
+DIST thunderbird-78.4.0-it.xpi 572962 BLAKE2B 9d897e7212e95d33d8c5e0a6c34a0f6ac57b4ed71e0744673c459a7f32d31bd6697e874652aa1bb1ab19d31be62f1ab91b19ed7c2f62a87431e7cb5c788e4499 SHA512 88559c9ae624d1db6a07d6fd4e6fbce32a54487bc9022c82b399b36bac9b38f25e3eea1fc9bd41ad932c3d1f5403fa0b5d2fa9cd4e276fe1d5b611f3cab53def
+DIST thunderbird-78.4.0-ja.xpi 722453 BLAKE2B 103d9d81147ca4970e55afc04f307a8dea82a2eadbba29918ca14640d34d267cf714d91669507d9e0aaba0812460058c53e83798cb071c9a4bff2ac8267a75dc SHA512 5fe5b20dc4f1144d1c203de25cfda42d2417d56bd94fbdd43c87292db7247313d8d47fb2123e52f54772aa5c9f3d253498e037936de19ac4578751d2356974e3
+DIST thunderbird-78.4.0-ka.xpi 717007 BLAKE2B 96a4a5b0d9da2c91c8daed44306ff19fc93e30829741cb490e5bf463fc1a33d1a61490aa151060c778d988c3e75226fe6b00d5f8d79131034dbc513fb4aeb19e SHA512 53b380a91eed3bc600fe912dd4826e11c4663d21c5c6a0e4bb8036fa8468bb8bcf4a5a06b7d4bc0c1ad09c808b07ef840f970fe9dced7678119f9f81b3fdfbe5
+DIST thunderbird-78.4.0-kab.xpi 651915 BLAKE2B a608af954f79edce62663ffc6acccc13e2279f65c1643e604de5942a79758281e0b0fa33c2cb4c70d1f10c39cd4d19ca0ea6cd0481c7d59098c3ce09f5d64974 SHA512 14a0643fa033be2876e4f538126b3eb6f21f9186eea466da6ba0bfe3dcb0480b369261941dc607d423581798ebff199b1303b9d6429d4c1c92a10e5861d7694b
+DIST thunderbird-78.4.0-kk.xpi 720437 BLAKE2B 14c84b25bec37e3b1b5c37d214b97182ca6161e81252d3a117b7fae1e75cabf3c1ccfa8844af3ec4e73af5a03ea9b4d23232ac1b0604dfc418852cad6e2e866b SHA512 211d4904934f0cc2797c111017883ff658fdb73ac4b21949944f699681c02348100c4cceb2a1c8cdbcb5d464d731ad61c740fcf8c341dbd8f226e9a159904f77
+DIST thunderbird-78.4.0-ko.xpi 688205 BLAKE2B a57a6e9b17522b538374fa93ad0d88294e96c05af443f616799508a7ac4c20591383d0a8148b6220a52eb4284bfc6f78e2a196c3e81ed4564538715244754a9b SHA512 506ff53472088b03b45984d3f0b812b63d071c3de556762bffe2a6dbc558a11cb7a9cfec2483de58bfb6aef306d4409ce80b4c9d8e69d138cf5ae570285a125c
+DIST thunderbird-78.4.0-lt.xpi 660297 BLAKE2B 51c42666115f5f1682c5d6a15f3cc26a414dc08e0c4a20655c7372c77bba7275a7e274dd38b79087d0e84415df3ad5d59699e2cb887a51cfe9e2836c164f2b7e SHA512 a6504d9ecbde742f623a249a4c6d1da8fc873d6590552d8b9e66d21de593bc0bc3e06d2e2f693021bdb5ea82ed8642fe0c755bc5778f9b8570e5f9bb2012eadb
+DIST thunderbird-78.4.0-ms.xpi 572136 BLAKE2B 0738c0832c59d3c11f285a5cf1ddef8609558ee723bb745fa6c7048b035c2f481bf63293eecf53f1ff7c64b0a0121c06e465e2e79e217cf7a8a4dbd648f9e626 SHA512 11b4c69cae8f51411b74bd8ca1811296b936574c590502a1765995a3d4831847b5c9d194002537a06cf76f5180ac0b4fd2c66fcb7b09809036f3cb8b882ccdfb
+DIST thunderbird-78.4.0-nb-NO.xpi 637237 BLAKE2B a40009bb1f67595a168121188f6d50e77e2c2f6bbaf3d36cb96020666063e4a23f2356ea6f0fe68a994ce8018d70521286098bdfe62cd7d031064078192b8000 SHA512 b0f9da32307a92b7019859f6aec39b90e552118007298cca969faadfa1647dd58472db53800d9fd24a6c3675fb6cf5ba3895aca52a6a8c8b4929918f87f445aa
+DIST thunderbird-78.4.0-nl.xpi 644358 BLAKE2B 561b975a1e7855bacb4baa01bf24b08b6a998b9d630a343b7c53f5bea5419ae6a9dcfd27e24c972cdbadd1d81c58195f377ec5f888775ae33428507e08f59d50 SHA512 ffb247453cc351274051da071bf0dd53f79261e17d958788b91516b810b3bb9b9d82811e95f9db9a878884b81d0cd326b712bba326f8ca8878c0ef5c82fc72de
+DIST thunderbird-78.4.0-nn-NO.xpi 640696 BLAKE2B 0aff910173b58835ffcb67329951eabea1c975d3c38370dd8c1da5772a485339410967dc38444c2dbbe234b26298afba741f7e943dace47b0d3bf1f70a44114a SHA512 2930b731fccfc50aa4ff1bc4d255af3f3a7fac85bd566dea6adc7c4168d552624f92af0681f67020e1b8b11850592e6c55327562678e291a2b7590209c8cc794
+DIST thunderbird-78.4.0-pa-IN.xpi 633182 BLAKE2B 987cc1edff3e69ab5bc0c2c825c9d27899986acb861fb54afd375efd3a01a4583720ea3dfe6bced56ef173f8aa8c164ab95c7fbf19fb5f5e54c471d80059438f SHA512 b0243a75b0074c3f353d015734045e9b8fe7d15fa2c45d01ca42ada0126c7b0bb4968019db41af956433597202460b9aade014a4d1e404501f8d0b8efaf97e92
+DIST thunderbird-78.4.0-pl.xpi 637125 BLAKE2B 6b5792bc52721bfdad71785937dc88bcf766ed9c094aec4919f35a68c375550128347e4db81d4038a964e4bb9849b70112a88cc20e8bfafc3349338a768d5c6b SHA512 7ab6b5157ecdfdebe5aa07a34a10dcdc3deb412217a4561fd2ea148cddf621796a6f572714648789e50fc87a574a9342ca7d79a75fb6af342a15c3bcb77fcb13
+DIST thunderbird-78.4.0-pt-BR.xpi 649407 BLAKE2B b239e4d03b0d5d02f6a66ff5808562a4cb363b5b9b5396518a048fd39c729a607959bf1e2dc894cdc693e8a66fe13d80bfe9c671a2adaf95ec215f32df4cde19 SHA512 8826cb9d32a52b8dd804585e4b5c2fd2052aff149c008ecfc99a6fa5fc950a30d96cda67b30330856de6155fcca24ebe200f6c406fc32871b1910666e59948d1
+DIST thunderbird-78.4.0-pt-PT.xpi 655494 BLAKE2B 0a203a38e1066e0b64f1271bf138c08ca45873c67cc86ff0cbc5cd60ab5664e2b439058d22c790ea7041df94ab1c54da5ddc02a4ba03ef2cc89617b79de46ec3 SHA512 86e66f89bd954c7afc0b9d43c02bc7c6677a382796d2649752349f796fb56fa82ff1b267d7d75c0ec286ee08e4db4ad90aebaf5b0d336912f0f0948dce200afd
+DIST thunderbird-78.4.0-rm.xpi 646532 BLAKE2B ff03ffa4b1e6cf242101f7f9822b29d9d929316cbaf1183b70e3b423a3d8b358adf13cd543623fcc0e5a575910a24022c5458a9cb0c7ca256239bc846ea17aaf SHA512 691e441e31eef852a253945f71f68db907f110db13efa0f0bb4dc52e22a68abec7d27a4e7b68b7130160e07ad861835fde82610bdca9de19efdba6600c4d7362
+DIST thunderbird-78.4.0-ro.xpi 662632 BLAKE2B 95b1775899035a908ad197c09e1e2d172bcc573319227a93faf4659c0e85adc8ce9b05e1a25dd115e3e54145e136e08d3aad5082ed91652e023f587341bc36eb SHA512 3b65ac4e147e0c2d3883f8b8fe0839a062d21056b751ced33b2aee4d9ace3a3d12f99ccbc2404fba817320faf4705da50ee68984844957ff6ac16f116cfa3aba
+DIST thunderbird-78.4.0-ru.xpi 756186 BLAKE2B 5cecce12d46bd437a353acef5c95b99eeff428259703ac2ca58f8a3a17416d40420c97045ff1929244b8193c42763cec8bf218255c28f4e18de141f579c27835 SHA512 c55339dc0d79d4ba5939eab077f438a8ce5ea359922ed24400cb50b4c275753f01f373cc0e45573f75f95d2353b9472efc7ec55949ae703d1a643dee7e8f641c
+DIST thunderbird-78.4.0-si.xpi 651067 BLAKE2B 4f7dab48db8e10ff79cf863e4593c7fd69e356fb97becf9ff37dbe10e90f6ad5fa8661e6ef9a4f25f35c26c09b193cfb999b0d9879df5cea9c8bfca90f302457 SHA512 da38868dbc647510c698db309ff6f6d9bc93ef0f5593d206cdfda06470a9e7cbf009591c10a6ad9bc4dc1aa73fe4a6c3c7b1a2cd1a144ff47c971be01cee7ef2
+DIST thunderbird-78.4.0-sk.xpi 643180 BLAKE2B 20bdab411243989b025fae8ec15b92795f83b0dc38951a3085b877fe2bd3c59b360bf404a1ca5244563cc20200fe2d5d98427a80825c8e980ea9db7f2d186a2f SHA512 2ffb05a33ba161e0a9a4ab1b3b8a2c349dbe833a29a06c6b5cd1b04661f71a1590f6052a594d5f43aacd8180cf9c9771744b38a9b544da92ec495bcb6bc2f5fa
+DIST thunderbird-78.4.0-sl.xpi 632351 BLAKE2B 0eca89f6fe299293bc741935f679b8a2a92378703eeb7afe889fc04ab34e41c5674ccb247fce479cb0fc3845581fba263b05e81a329d4d52070bda9fabb1beb6 SHA512 c0264531630bba13dea5eb8a7b14e9a68583ef1f95fb5b45a9783a158ffda40cc55952bed82e4b891f35fda6fd4349b31effcf1da6ef4724a5eb736dc03dfe01
+DIST thunderbird-78.4.0-sq.xpi 657820 BLAKE2B 7a4b4d504e22cc08967884cb87c744a488207fd717de8023b2ce347dcbfe3e45b94b948ea1fb7677b4d71ab9970932c5d374acd5f32c6589256ce8cc03aeeb45 SHA512 d8977bcc9d239604e650f88b5b2cd5ef18bc3e66551b6aa0cd7ba05254b030ec45e43b885bb4aff8e4cec1d8142e6e7c932f70bfcb7c7c4385811702cca7db5e
+DIST thunderbird-78.4.0-sr.xpi 683081 BLAKE2B b844fc4514d9702308e5639ce34f5299e0d8374608c1b679c3d2de49e16dcea6b6517281b94d51dda0baf70f74be9b03ddef333a96a6693a373f86f2c82a630c SHA512 fba728916383860790d2546661e2e590dbd7aefcee075380752a286b7dc7df7ad62161f9af9ee544e089b28564a60bbcb68c50945d69e15d7231a3e4683dd64c
+DIST thunderbird-78.4.0-sv-SE.xpi 648870 BLAKE2B 09fd129ff7a10c410e109c84204617363b4934ef1e355a2f7dd376c0f7aead40ca7675aa86b1c812d05f83ad618d4ae6f59e2d81e5c4072b3ad52bd7da761543 SHA512 ae670f02ec3e5a9d5fc391b443b74236762e84cc0deefffa2cbf64600aee42296f260e8fc33beff9a9c4c946dc04c3ccb884b604863e243fa65e9b3d1cf281e6
+DIST thunderbird-78.4.0-th.xpi 712035 BLAKE2B 794792ee7f1d8157920ecfa632d7e1d60b734a1117d8cf55d04944773f5846dbfe6816c3af2abb23dbc64030753334eb34d9667c9990aa407f8ca6c5b5a611b7 SHA512 88b41bff802adc03e0c9164d24ff5a69eeba109b9c807798977b2079fa71cb53cba158a1dca3bc06e400e137e3f476d7ae10fcbf96e6292992c73f8224ffbced
+DIST thunderbird-78.4.0-tr.xpi 649073 BLAKE2B a8ba35220c838e7451122896ba646c05378e2bf8dd78deb1a61096415bde135745bfc7254bb7b891e4a416d1957e6a3205e1a564fa9d3a08589bb0073546e1f1 SHA512 2f08083f32a2ed9a0eb3daa0e3d0ff6b7a26f715e50e5406552df1e32fac4ade125e0d0b476a862581085676acc12496b44599f2bd4f551ad6f287a078c6f0f7
+DIST thunderbird-78.4.0-uz.xpi 586571 BLAKE2B 77b427aa67fbadcee77818ed7ceaf9881085e40b552d4c1e23efa24517b10e7a9a2e8b7e2ef9e000b673364c74a6ba04fbf9b928bc113a0a79575d6b82ed435f SHA512 d0694b7e6a72d02a55a6907d4c13a53c4ec96227452bef190a1373435cd55a9184fe94d83467c0e3f68cc6212fcc4dc7ac7ca0a4a81abaed016034a272016c3e
+DIST thunderbird-78.4.0-vi.xpi 674611 BLAKE2B d143adb7bc1100625139a0c52909c546a0510ca116dd0d8c3d1fbe353941a24db2c2cf6dc800a500c2721df4e37a37fefef5e57e56491ed61c956ffdc166acd6 SHA512 6110007bdc27e223fff6d2c3420d4af3c511064b4b3fb89d73c5fda4995f8426805ad961eb5854f81fec657a6f587949997613fa8cdc9c40e75bc1c51b2f37a9
+DIST thunderbird-78.4.0-zh-CN.xpi 687181 BLAKE2B 6ae557ec78fc7f0d1dcea14ef0f853e9a94e662768f0e791d75d76626dfc47ac1ca0156e8a98df2214454e81532ba3f3dcc7a95ccbd659d1be1953d7ce987766 SHA512 05a3ec86e362fe4a2a22d98cb58b9e9f3d98f1bd3d1bef29939cce11acf220bcdfff05288ddd303133f836b078228b079cd803dca8c40367aefe0b524f56a189
+DIST thunderbird-78.4.0-zh-TW.xpi 687619 BLAKE2B 3632264d8d1810c866d4efc3885d6856418d7d3e9d35d6bdfd7f1618fa325da2b251d9b030ec7e9d839653a269cb96e6dce0622228365a4f6aa99dea6424fc7f SHA512 dc555bc40bba3af879c48d294dc3d417547dc33a85b7419dbe34f7cbb8e23075e1a241f3ea36a1687c0338ca2ba3185d0f1de57dc6966c98c2010883fe54378c
+DIST thunderbird-78.4.0.source.tar.xz 361176060 BLAKE2B 189ca273d5ed6b450cf23af138653ad3460808d3d1dd13cc795b090045f26875441f741d98d43146c0ed278db440e5a153b7862e7ac38e49f606a7b3f0fd4ad1 SHA512 0536a59286dec2f05e3fa00bdcc4f2e52139d9c53d5c086e0074d0d7c6a3b01bbb4beee2c996ffecace2950d1b8b35e2731e6c681ece804b1505acd26f58b308
diff --git a/mail-client/thunderbird/thunderbird-78.4.0.ebuild b/mail-client/thunderbird/thunderbird-78.4.0.ebuild
new file mode 100644
index 000000000000..9d1d11a1429a
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-78.4.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-04.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="13G"
+ else
+ CHECKREQS_DISK_BUILD="5800M"
+ 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="13G"
+ else
+ CHECKREQS_DISK_BUILD="5800M"
+ 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
+}