diff options
author | Joonas Niilola <juippis@gentoo.org> | 2023-05-11 10:49:32 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-05-11 10:49:54 +0300 |
commit | 5ddf61103341e8debf2b2478a5c56130a0911cbd (patch) | |
tree | 300a1e884d29f70a148629f42bfec3a31d8bd2d2 /mail-client | |
parent | net-libs/libiscsi: Keyword 1.19.0_p20230208 riscv, #906062 (diff) | |
download | gentoo-5ddf61103341e8debf2b2478a5c56130a0911cbd.tar.gz gentoo-5ddf61103341e8debf2b2478a5c56130a0911cbd.tar.bz2 gentoo-5ddf61103341e8debf2b2478a5c56130a0911cbd.zip |
mail-client/thunderbird: add 102.11.0
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/thunderbird/Manifest | 65 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-102.11.0.ebuild | 1178 |
2 files changed, 1243 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 70200b3763f7..eff15bc0caa0 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -130,3 +130,68 @@ DIST thunderbird-102.10.1-vi.xpi 745661 BLAKE2B d51ed67d1c6dd4f2e9ef48f4f8fd02a3 DIST thunderbird-102.10.1-zh-CN.xpi 739885 BLAKE2B 178c90a70d05a8f071ccd8846d14e5a5bc39e862da01903beb3a1a113fb714c2a578581a9e005bf256688a77907c606e0e4fb9be5e7e417393494fe3c434b269 SHA512 7d114d26dbe74ed0f5bc7cdc49d2715b801e8bddd4dfdce7b8482d8c648c6f2e94f13b8d2eb3fc6263a87a5158c93f440e5cec549de3aa1849f14a69b62080fa DIST thunderbird-102.10.1-zh-TW.xpi 748346 BLAKE2B 403f85a50d7461845d164adb629bac52fb07aebb00573a017f8601c56cf7ee434c3a7aa7f0d5c74ad0e042745f2680c9091d5aea7902d75c6a33a4078899f958 SHA512 0edc2cdc774984b41d642011e63ce94d32c2b53c1832e7cc70c660aa4f591726cdab3d24ac294e4bbaacbaf326e4a24f973f4afa3c164ddc9e1fd748efcd61ac DIST thunderbird-102.10.1.source.tar.xz 506975996 BLAKE2B ebc64408193ae2b6a7b038457b21f8d655c0072ee6dae1ce2508289c6e7b11484c82cc02fe38d4ec50b64da5547374d7539392bf391d794f279bf1ba0539bda5 SHA512 dfe62f0d8b7750e54793e32e78fb0784c7c8e39b95dc4c03ac393e51195ec8883edc2536afc2cf2011005312a40805f7dc617c90bfb4a77d22393f1d9b719b23 +DIST thunderbird-102.11.0-af.xpi 556871 BLAKE2B e451737a66a7612b5845cd5632d34871ac3f5df9c85fe6a7520df44cbd5ff13220ad03d9bdd4000cf7c659a33037c7b4812469e87c5bbe1067e26a285a39e691 SHA512 485ae20825e7d30d6a2454b6d5013c6cb16e539cc7170f0c324dd39225206b8313cd344db19b3ee162873322537d9ee614b754f931580681fffb462c060c4774 +DIST thunderbird-102.11.0-ar.xpi 666809 BLAKE2B e1bdf8119b415c3fc981950660f790654cb014bb6b8626b3612f7608a68512578bf57c980dbd56edb6e7c31c3311dde81c8e4a5af0a338e5819f90b0158c951c SHA512 c39fa28a6675f9d7045351513a54d30fb6d2a37db3a84e89a569ad021d877d16b14d79cd012e46c44d2cc9d2eb80a4a25739deb420f7d9a79fa9ba2b3131365c +DIST thunderbird-102.11.0-ast.xpi 572288 BLAKE2B 15222ac9f728d69161fdd3f121f8c67694feecd700d9a75c86425c0a5ef8cb251f1e2fb1a49f6aa03d1b27299a9e1740cdb2a84fd08d10574c6c8efe92104496 SHA512 c73e3e3f9aacbb6ac8862f1baa974517051a2e27975e452486b701fb5116bc20e88f6366d73a6ca1d0633abc8047530b2353321be6af2f85f78298dd64b4d3d8 +DIST thunderbird-102.11.0-be.xpi 701914 BLAKE2B 2904ef4aa2218c2ff3a44d9f591451768e4b43f6205fbd35ddd4de7e75a13f85547ef18218e707c06fd6f0cf9ae865f9b5aeecd22c6efa6fcd1f3981a5b94757 SHA512 1949e53afbe0680d9d16703c0d80d5cd2401780ca1333810f1c20fc8cbaff3e6c36ab4e6fcbaa0216f58927bf27199a9a3608374d31e3b5ddda59a1c5a7b309a +DIST thunderbird-102.11.0-bg.xpi 693377 BLAKE2B d011c5527c485f8c8b0fb261c27d078bdbac72333d8ec1839f52dea385a74f0c66f0da720d69d9ba10f429a5946e317707afda5ad5d5802bae3ba2263b5f5033 SHA512 a6b2e49b3973bc2c70f344c63eff3906269d79aa1a5fbe0e42868af41f28f044789b4ed0e22102f470b1d8452dd928dcbd98ebe1e97c25e8150bbc73da0a6632 +DIST thunderbird-102.11.0-br.xpi 626473 BLAKE2B 2ffccb2518e18d7941a3b02dad80239133592a00718111f7e200c4ce187b50ed70cf762dfa3b6f824562c4b7079301d49bff46e5a8749ffb056f3b0911f5b09d SHA512 9f119cd61e4103b55f8503d6657b9e614c75a1423d075621be0942a13c7a90b9a1cc8e6f263c543c172cba605f2df39d66ec7cbd90292526349d758b2ff45f38 +DIST thunderbird-102.11.0-ca.xpi 651367 BLAKE2B 043a640910956387519bac2dee3f4c5e949d58ee719cf28bc509c30675c4376c5cebd3648b8d09003996c113b801526dc115874480c6f5ee16beafb91806cc60 SHA512 b1eb1d946e093594080e35d7c5bb0a637c1c79bc29bc8f33ea447a73fbbe5dd424d7752437cf15527a9301191ce4a560b9eb2e25582c1f020f9c298722730c8d +DIST thunderbird-102.11.0-cak.xpi 651779 BLAKE2B a41e444ea8ac7743b4ec2ed073ff48c986b3a5848ab1728f89aa1435ba5451c42ab5695636472db705f10793ae22b5030c5612905bb86e48700682b00eafd038 SHA512 21b227b97768d29787cb362d782fa1d92f70d57e65bbec1f9f3a4c66001a8fef66f54e6de5c18c4418c369033ed4c13bc1b4ce275094a633bb67072dfe94b80a +DIST thunderbird-102.11.0-cs.xpi 728624 BLAKE2B c0c38d9df006bfbd4adf89ce74632535a635e6b425380603b560538e8088d92a405322461fe77824bebbcc445dc692673432b2f27edeb3d24387734851be75d4 SHA512 2e7d1c3dcdc348029d327c5fb0bf909c5b0b48e7f40f03b29baa53c13c0cad0f9d0a692d03f69fc58888c05a16bca2709eacfbcbe3e9917b28c049918aaa3356 +DIST thunderbird-102.11.0-cy.xpi 705577 BLAKE2B 34966a71dd97b910c11e495c30f534ffc2864df384b20755c79c4b275f5170a37451ea72556a48b8eb7973b27d36cee5a9bf63678bdec6d70f30d41f2d07db39 SHA512 43e02462959c5fcb0a2176151f5d49851c4f9f379711efbb7bc0fd4504f0f6788840f01236d10909cefac0b1277a0358cebb411b50303c232b930da0297704ed +DIST thunderbird-102.11.0-da.xpi 685254 BLAKE2B bee85a2b3af238537e77899e7f464d8eea681ec223c7e344d59a878dce627341c080ea4572769152a9d2c216e74100b89998619bddfcefbecd4be298e53c5412 SHA512 78155b89d4de4855d7d967f9489fe5aa52fce6a55b8e185e0246eb400b9f21a1ab35840c3904eb539284693e287e9a5523ada6d250df96085c85bd9e48fd9c2e +DIST thunderbird-102.11.0-de.xpi 717944 BLAKE2B b061e54c6053b85b8279d53b8e436420fbee55f5453f6f6fed9159a83da87251460efdf7ea7c3f41684728e8fb737a2afa453b33e56810533bfdb6e277cefeb6 SHA512 dc42fb48f625b375f90d772b97e898a2751eec2b04d24269cdf09cf5ebe6c77cf73eaf0b84b8d59754e54631e7e205598783038371d44ef0dbe429125330a1b5 +DIST thunderbird-102.11.0-dsb.xpi 737086 BLAKE2B a1f05ab76dab156f9a0fa63d89373b94b2c2c6586f20898b1a484a93e191b1ea66959e33d1e7295a1073e00df9f5c5dfd10c4481e7f4b3c1d08ac7c0cbea7a0f SHA512 513fdda538c20ef9022af6d160ca44919221cf82ae651d0d90356d734e9cb0aab95d2105d72e65ed28e4df1da472bfaf157f0e3888a200cb65b352b66e2418b4 +DIST thunderbird-102.11.0-el.xpi 840812 BLAKE2B aaa6b5ba2af46fdb02738038546d08b9f87fff9730c32fdb32bd811dda1949036da031fa1e050522760aadbc0edb2e7d1282e78ddd60d1c134718948841605df SHA512 32f453951156502e742841abf314d4b223af1c3e8359b3c0d927ceaf48841a1f5ddfdac36eb8709801c32feae06ed0f1675c08b58da5f8d795aa9a47987e6c0e +DIST thunderbird-102.11.0-en-CA.xpi 659094 BLAKE2B bb90b7184a5063a4076ab5b1368b37711864a49ed63c79f3ccf7ca32687a2196a6e7f62eecdbcc705301e5193340fdb9b47132dfcc70683727e91669d077a8e2 SHA512 3505328fefa5929f419b0c74536a476f9ecf71afb359cfb29086ab12b429e62ef2e0b7a79ebc32b89d40ba7f1a9a7e84188d05c9a950493e7aa6d1ae8b772c66 +DIST thunderbird-102.11.0-en-GB.xpi 665008 BLAKE2B 00f413f239bad43a13f1adfdd336fd83c20917ea38925266c56102975811998e1df776925c7973ac7df1a5b40a17d310e3753ff60f6450f378a92a0644f5f8f0 SHA512 f60a8b2f930515c61390b39cb9ad50d7d73f9988ec34d4c71918669198e521667a70e469477042c62f47cd90cffe233bb3a2cbb172c99675c023b257ddf3ac7e +DIST thunderbird-102.11.0-es-AR.xpi 717276 BLAKE2B c2a5e27530ea94c062ade36ffa382d450db5d8a00650f2d0f2cbf0139b5bdcf070fbb0ca19709d9ecb23eb81b05895069260dad386895a5a88dca476c6b8abfb SHA512 3cc16180fb1666b86de9b81bb9e730894d615db22c20a75c7282c63cc05be65bca4997dc1bd331df17ddd9bf05908e014c1e0dd70e61cf985b8321394b476044 +DIST thunderbird-102.11.0-es-ES.xpi 677482 BLAKE2B 4345382cef6f318afa9babbf0480c420f6bf48358efb4b0eb18950bf1462ba20facb06327a02e8f7e28543127169886cde5770a4641c4af3edde2d3751d77428 SHA512 ed5f2a041ff31dc0d0406439548c3a753d122e296d5fbbbd48369a47d482340a399beb0be691e21b2f2a70de551939483ed3a8955c7bb5c425a35eb42ae21f53 +DIST thunderbird-102.11.0-es-MX.xpi 719709 BLAKE2B a96a78ec126c0d91f50228a494ff0a7c1bd26052f73433503f990d1964172722b988326270438d985739379bb9ddfdd442876b1c5bc3468bba4f411462544bd2 SHA512 e4d6aafa65594651808993a2925a4a7eee5957aadf3044d607a4e9ecad92ba2d0ee84752a9b0d724c62ff2dd7a80a998855e6e80a13999471a7a3b176ccd2ffb +DIST thunderbird-102.11.0-et.xpi 676677 BLAKE2B 78f53af0868b65ec579c922f4a18f393d4a1ad9dd77d73bf776fa32527229c3d2b04dfb065e132b7d4966892f59307a22e3fcc6dfa3e2a5d434838a737864993 SHA512 4513a1a3dee098b56687d8966db073be4e69d56bc76a8ec8bfb519122fd83384ec09367d48b84012495763433d47ea5faa2cbdab1233097c7214390c1c00c160 +DIST thunderbird-102.11.0-eu.xpi 701828 BLAKE2B 0cc898e5e042a0436ea7a125ea5248af309ff5866a8bfa51b0de2fd819ae2397aa4965d0b7303aedb76be752ae1baaf437430724e3f2e4b41ab43f56064f1e8e SHA512 4591a6faf52e259e19a6ce2159904c1f4f018dd1e95883015988a8acf8882d3b10914c139bba761fd675c76aed4086b4887b92698836ac3f9cc593a3d898c0bf +DIST thunderbird-102.11.0-fi.xpi 693486 BLAKE2B fe55f9d6c25f42bcbb23c69d0b886230405831049edd681909172ec71ec47fd99b3dfa13d8e83f84031a41dbbd7739100d358eb320f43c2fcc614a9272c8e5bf SHA512 68584b3abe323440d84ce25147cc3fce7f71c5df0cb6778fbfbc48b2dc9c201363c22089658e422a5f296dd85e8f236ba7b2184b1eb5473cf1d0f43892bc1ca6 +DIST thunderbird-102.11.0-fr.xpi 730318 BLAKE2B a343e6af9bf5e97e0d3ce4f7fe8477f8397d8c04cf14b1b922e9cc4ff2b103ede0fc6ef65279a4fecb08ac9db3f5bc8f3a94f5c49fa91d61dfd5311ee117fc13 SHA512 3ae2910cbbd4dae977bb7056b36ddabec4562f5642bb347ee70075309744010a71a7b7274171408f353d793c4c1be5e072b83452640d141a0621bc79d98e8189 +DIST thunderbird-102.11.0-fy-NL.xpi 711991 BLAKE2B 7b1b591e3533628dd636814fee9fa6e66e1bf3a27d9e55d4618ff605b00d0e6d89c06c80eebebf082a2f72b4e0f1f931551fda80158776f2eefaaab8c1599d2d SHA512 d75e4cbcf4db3446a756bde3344d83ed1d4130485a0074f5a1c2f3de030e1a5a3cbd04d7a03666dde942f65977c8fffccec6f01f936bb4b967018ef01ad0c811 +DIST thunderbird-102.11.0-ga-IE.xpi 614536 BLAKE2B 2ff1c2ae3773e0e1736a005f4f47b310029123db366a33a5f80d7787e7261560cee81b316e6df8089cb51ce2fc0d76d5dc7c91e6c3412e2e6658cd9c1954675e SHA512 6f79958ba17849e852bda0eb47f88a47e26147f92d23113ab77e2c97ea48955ef05ffd9fc6d6a25876871d4e239b002bcbc82a55abe7a32ac840988d4eadab11 +DIST thunderbird-102.11.0-gd.xpi 643575 BLAKE2B e947c53468ade421ed2c3942f0a435bf7b591e15239615fa2d7ffc788633b8b26a7fc48ed8f974d3dab699d8cf2ccafa53c41e741330ac2ee578f5a99c5fbb2a SHA512 e09abe8d6dcf9253f999306b2ade4cd2e1aabf979530bbbb9bff5b8305322d2d858624201394f58ff86a0fbfee00d0dc9062122af8005a9799f44d0334d9db00 +DIST thunderbird-102.11.0-gl.xpi 673002 BLAKE2B cf89b42dd3620063590b46a0ae0eaaa461615542c29ff220504cd9114674ce52946d1d84a79f0d95b0489110987554aa9e7a6baf2592c3723463e0889334aa53 SHA512 a4c6cf5c71e632bff8640c78335c0052e5a2b43797a9e87137c369c9373ee318238ab6f99bed3ea7a6954c3a874ad4cc950286bbe31a3e3da87d17ccc17c7760 +DIST thunderbird-102.11.0-he.xpi 676370 BLAKE2B 63feae1964d80c507caf44ea7f06facac3540e32cd532745df4b288e1a501dc2f0eea45bde438af96fcc8c448972eaf772afdbc122b6b822531bd7eb1f868cdf SHA512 c3875b4f13b9bd8dbb6c2d3ab0b023e39135d5f71262b1b98d6bf31654d1f750a24e437f9050cf5940fe6df7ffe3da7c3aa3fd62e24b89176a1f58277222aa3b +DIST thunderbird-102.11.0-hr.xpi 677720 BLAKE2B 36169d51a028c87618a8b562259a7fe3718817d396efee3129f43ad1e34da58130281c79fee5eae0328ffd7b19eca7204e8fb1f2165aa01adda2e0551291ac74 SHA512 4f345f3aabdc84db77727481a02bc137b00ea29ee61bb28f3a0af75dd4d7505ddb2e45afeeaa308be20caf569cd634cd4512b3b1dcbc6da50612f3201cc53778 +DIST thunderbird-102.11.0-hsb.xpi 736542 BLAKE2B 26bb51f50276d47cfccddceb4f59113db834adf83f9e915a3caba55e4268dd40cf59ce265da3efc7897807c7570f7abc36ac1abe8ede0c13910ed3c812f834ca SHA512 c90e1c8cca6f1581f4d6db7aea8a5c79feb1a5ae98191c57c37a88d065642dcdc8807aa7997ad37699eee8a2433861ab8e27b0d6d19e8ce2a52246fedad0c986 +DIST thunderbird-102.11.0-hu.xpi 741200 BLAKE2B 0bb90af2e4a36b4b4d95a5b775069659a83188216c896d83b102f2ee665a64e8fb435eb3de55f77735a97b002273c3e9fc2165cfe663c61c82568cb1868cbda7 SHA512 565a8a14f9fb92679b172c20cc9aed805d658f64c109245f69317734dd886bbf202fc3b7cbb52763b315bef9244fea3507edbeecadda884772abe597210e2623 +DIST thunderbird-102.11.0-id.xpi 653192 BLAKE2B ec0ef214bbb28242560e9d995d5df5638024006b16e3c32b3834c6a152a753624b0b11a31334588190e91b62686030e385eb9fd7a32ba3fc9ea8ad08820b718c SHA512 8283c3afbe50f9828d7fe12d4a0ba048289b2ad22ae92bb6f3dcc4bd56be2e0ce802c749dfa27d4ce62bd31df63dc882e9fd8a746abc51dac3eb4377a9fac66e +DIST thunderbird-102.11.0-is.xpi 706392 BLAKE2B 902714253e6f6bf330a313d59083c88ab871c528e38b32f6cbb5929f55452e73c21caac11b83268e79308d4ab42542795402a089a449506a11f55653592c27db SHA512 2fd795d5603dfb1b0f05f4eac75ca7c9dd63ccface8e00ee3f084fdddd567ef4a9b96216d36d9ee603631465a05c626a30a42411212de4b06502b16b51466e84 +DIST thunderbird-102.11.0-it.xpi 639987 BLAKE2B 7d1fcb43668c32fde61afc0c4678b50a283e2218fd152ddb9a1d49513315386772cc9bf4415c191dddb306437027784f9b8b07af36948e4e7a235e86cb7a4141 SHA512 e9dcb0ecdc3bb4f8437e97450fb34e8eff9db4132a8a9d8750b6b47c57c3ac11150cc41d2c2895a6a629a574eb56c9940b0b9cfd39655e24e1e586360760d402 +DIST thunderbird-102.11.0-ja.xpi 781907 BLAKE2B 90afa492da36ecc97d87eceda9a25db0795ca3e2baeb686af77f08c8352f7efe361eecfcd1c127a9909c64c17914696711fb2fe1b9643f0a9549b586f80ecbfd SHA512 e9ee9476456e2c3b66112206f1ad589acbf5ca52ed03ca9bdae1b66d75f3487202d401c9ab5ef6b46a79c1b414d6198514548e577825e77a44b8d47893342052 +DIST thunderbird-102.11.0-ka.xpi 769803 BLAKE2B 3778d5b62549fa4bb3a10fb72f62a511ff73471122a5fd382f2f1257339750bd4599dff3cd4af1e74baed22807ebc5b6c93ce3c2409b58a10f0808ba832c44c3 SHA512 7e2687af06028ea4f6cf71755bd60cc88ea93a3cbbb489466a6bc9598260d4091c0d3b61319a3ab597fddc83646b74577b60ea3717a807d0ed18fb3bb6da46c1 +DIST thunderbird-102.11.0-kab.xpi 702703 BLAKE2B 20ff0a6365a7cda8e42184f4b815b2150a7874508777d706a6f6108b6dde1fe7e6e5ffb926542365171c582b2d6aa20f1d3491d47b03d3d46f39981703ada003 SHA512 e509076e0dc488d83fd4f147e9c3f5020b1f6dd321d0f3280ef7fd88790417619f6d5cea2431f67c55d2b100a7a95b7a47152186f18de2aed09f7a26e0aab3c4 +DIST thunderbird-102.11.0-kk.xpi 810968 BLAKE2B 797be21fc1cc5929b3b6be6a50ba9a089d4e0b0fe03cbb243cd5d7a0f165521520920a04637a0c2f6571d461ec946fbfa667532736ba30c309c4ad9da495705c SHA512 ad30f62b8cd5055ae3147dbd261bc0abdf04ce53247f9cfe80b7b83f47f4b57214ec0f805760fd25417c44a5eff13c3f86951f73365ddc89284fb3dec6f19a52 +DIST thunderbird-102.11.0-ko.xpi 716820 BLAKE2B 3e71bd9d1c1229e659068415e7372941fa8aec762abfeccbb3ef95a8930f94fbc5a48ad946784126d0ad980cad2fbbf02b3ce1bf368d1cb5321a3d80c8dcd1ec SHA512 60980e6e753f7355406ddf27e140b1195448989903330a9297be5ff5e8760b16a7f745733ad0522f7e27c8e9aedc9cf942271be6f072e1a5acdfaf4f1f140664 +DIST thunderbird-102.11.0-lt.xpi 690855 BLAKE2B 6ae6b15f09c34a2709b43b654ecc25d6087e1d68f9708d77d0803e06595f0c42133b28ffc532c832840544eba3d5c0781f86154fdc5989008dd231b20e12e6f6 SHA512 5fe4a029b90319bdcd74db24cc2fe2bbf0994aceaf76d721cf940d77f64818ec4d616bc705c9de64f91c36e9e01b93c24a3f3ffd6f246e74de05dea232c9bc1f +DIST thunderbird-102.11.0-lv.xpi 617767 BLAKE2B de7f88f26260dd01e3469f73a3eaeb21160832a8ebbc0d2797fd07f05a0b88019f891ae24c6e5f9b6dd4d72a91891aa89ea2332c5896239c225f95e75b95f1fd SHA512 47afeed1edfef6356c13098cd3d6b2572951589c1fd772377353c408effee2ce452168f4f2d2cf917cf4ea6e75a85d21ed5b1fc1b95c66432cff9772dffb58eb +DIST thunderbird-102.11.0-ms.xpi 577759 BLAKE2B 6203ccdfa7ff6ab99799d4cc2e5983b2caa0aa8270b26af24711c0d3705e36338171f376939d2cd77d33527323539222e54444c5e05fb14ccb170815265dd8b6 SHA512 8c87a4ce179810ca7488e5ac7be095f40ec210760feaddd2b7112cbcac68a4a1b663cd62102c36a89f2f1d6885d6880c5149efdbdd2d99667b6a4bf144b5cc9a +DIST thunderbird-102.11.0-nb-NO.xpi 662683 BLAKE2B a7b10786148c1d05bee1b03c45fae986f1039c8575baafe5bf8f44e1deb66c7e8c7a0ec2c173227572e5d8abceccfeb2c1183dff3d1daa3b47d5cd589c022bec SHA512 37d22263bd4c9e74e2e0ff6fabba7e4383e0603b6137f4e807ef6ab65c4ff214f94f79af0e55de58c62742e17843a6ff56b555d768648f68d4c45e0ecfe79094 +DIST thunderbird-102.11.0-nl.xpi 703276 BLAKE2B da669b7ee939731ffc36b642c51ca91a90c85214f433bca862ad0276369405bf93bef8841e086d02edee90ad45c27ab871d363b8a79491e5987e226fa55007cb SHA512 8be0aecb2ef1e7e8b17440b0abbb6a940586af04e91ccd54a8194bdf9d9da36fbd7bf67c62f44c64a6b63bf99aaa505133d3c953bb1e1b3ffa524dfca3d14fa4 +DIST thunderbird-102.11.0-nn-NO.xpi 672832 BLAKE2B 00058c2967b56550198bb28fc18919584ec42d7a2f4770ed76d9b772f942d160b7c92ae84b1c897b253e2dd213663a9d271549971bac8a24e7790f0dc18af573 SHA512 dd8b4190665c73a3c1bbc2ad0cb5abbe5dd8dbdf3dadde8e1d4836d9632adc75445f89b2709171e96932ac313b37272c4143306f0f639f8e62092b97c44f9de7 +DIST thunderbird-102.11.0-pa-IN.xpi 668031 BLAKE2B adda3fb3e1825516dafb49e344850a0e484543de5f6e7c33e98697ffca91523bb299c957d965dd10649b370a0b2a2233705c6bf6684ca0312b20fa1829f1b38b SHA512 7be76ec8f983b87cda5e53c95b086620ed14446bdb055786d7a948a4410d88a65d5a9225dfd451b9dcae7b481b10727a97c86680823f566fe58d4b77e8a8e0a4 +DIST thunderbird-102.11.0-pl.xpi 716232 BLAKE2B 92a817812d62326d5d4760e6bdfca38dea1dc706e01deb9ca5c4565864a24d70174b714ead38c303f2d9edb7eed9042cfa9b775f4a4fe51d672d1444ee5a169f SHA512 81758242124ac36aedf98abcefe16c8bf75bd3b0b55efa8a4744de0068c2b48e0df880ba8a1e18257cdf29f6a444acaed88de341bbb5a75a418309d1ef7f4305 +DIST thunderbird-102.11.0-pt-BR.xpi 711151 BLAKE2B 3b238fbeb8e99e2078560e7ea85406de1a7f51350084ba367bb4cef306c625c12075b27e58cc9786d29b0de2cbf02a00a7b1c7781fc6aec6dd98b40246d68714 SHA512 c6106198f78a27837bb975bd8ed4dbe4a32963cf708b98b4c3df2a60b6a3d54ff0d00ab0078fad1cf8110caa019e5e4e41a55b3e35169b99b4f1cf6da8762f12 +DIST thunderbird-102.11.0-pt-PT.xpi 686910 BLAKE2B bd98e66dc3a02a95eff82951124bbba3bb842bc02c6afc84e1f6b5dfb1ca1cd0372f5a848deea266e14358ac081d8450a04c7419c5bc0f0bf2d497d0a425c3f2 SHA512 d00c251b43c37fdfe6a2f0812a70f1c0493b184b598ef9578ceb51acf2938f022e905d29713160f852582ff5cb8011c3bf91a3e1fd4b1a3c45dc799f7969da11 +DIST thunderbird-102.11.0-rm.xpi 701682 BLAKE2B 5aa8547f84f65ad194475678f9d49d80f6aea7afa88b63cb91ed621be26fc513b119c5e1cd7bfebb777e95d60f98f6e4642bb4e2b74b97bf6f322b3290b4c694 SHA512 499c148a88a78edd5f583566fbf1308b912cbceeca0b99b3414ac6ae844cae03fd796819506dc6215bd738bc82fcf20fcad6f58cbe0ee67b81a9e4d604d064d7 +DIST thunderbird-102.11.0-ro.xpi 661283 BLAKE2B 21f5323f96646f80e8541bde3d22a8fed862f5881fab384a53ec856064263e000ad1a8560c438a0541dd1e78d9b6f14da4109772748f1b8838e30e53431c9800 SHA512 7badffe03ad20cd86c1813ef1f55fc452af1d411be6de877365cd1f6574367f49708930d2eebfe73139ea4177aff3d53b37800b6b9db8f18e8e815b8d29ac3f0 +DIST thunderbird-102.11.0-ru.xpi 827221 BLAKE2B e00e472952240947a1d5e4a2aa97d69be3d77cb5e3526a2b7dc2f0b3ba425ed35e417f64c824baf8db19e8264208d005cc57441f400334dc521c96b82b03e8f9 SHA512 a680309c5222b7d0e460a83be640a02d191ac475bf00147949eee1fd1126561641f02aa25ed333be8570d355d982bea9def0470c94082833642b7e2bbf29a8ec +DIST thunderbird-102.11.0-sk.xpi 740981 BLAKE2B 7223ea133e53c1d7d751871e6cff5e9e176a5f989c8ec07f8db836bbf0c0f3fc7c31c0d406c044334d18b385811f913b9c8b0373faec7303f48fbd2e4c86437e SHA512 b15f9c5643168e22941e7d8e2f2104eec947ef1b85c693de31c5f52949732b857e25e5118f557eca1b7bb42fda1eda8bdbfadd2fd4b5e753ec18fd6e586b1129 +DIST thunderbird-102.11.0-sl.xpi 704059 BLAKE2B ef08ba32c9737fe8c323e582bb9efc14db702095729145a8b2120fd7fa0d714eda87b58f9cbc795ab0cdf299e8a0429837ac545c6c0ace6e1b5494ab5cb545d9 SHA512 c60f8ad34846acca23d3e7db7e552a77d1419f9b2a6d036cec6205109395fbe418279a274b71f8e86a493155a71c4b71d255161464e7f28a7a995287f3bbb9ba +DIST thunderbird-102.11.0-sq.xpi 726037 BLAKE2B 55206d92978bd93c13e4d57577e332b3954db0bb69659e18953042f2cc21207fae33bda2ca13d959077a241496dad1c0f16e986a36989b94195d3568878ce701 SHA512 bfa48dfd77be93c31c3c1dd8ff2fc2d7ebdcb2ff2739b43c03f2ae1b8ca4edb6b7fd23a7669100070a65e5f36260f5456e60cf50957f9fa2765f42333cdf744c +DIST thunderbird-102.11.0-sr.xpi 720555 BLAKE2B 3a5bea0b850fb122655a5f832e3215b460968cc86b5d9211b5b0744d8baa0c8f4f7ead0d90332b5c024c4da313adaf75e15596027289b73435d987d9f144eba8 SHA512 81f275c7efa39f0bc66311e0ed112b4243777f12a21ac86adba8f660a3bf57f19a328cf264cd5d5467364a8dec420d65e5bb6b6520af36b89170ed7f9eba9807 +DIST thunderbird-102.11.0-sv-SE.xpi 706954 BLAKE2B e650cc799e12de20243a24b9754c32168aad88bcc8ecea22451c30b50d688c8cc7621257a41104cc06bc45217f32788462bed81d385d06bed2f4ba4a6dd2e7f9 SHA512 fc0ba65abb3159fd661f5026722b7ab1b2c8930f2ac5f7ce9ee443638877b6e58aed750e41009b1027dda18265b1a98d247a216e33139aba0e49d035278304a6 +DIST thunderbird-102.11.0-th.xpi 758237 BLAKE2B 515fc0d2e0ab03b68be046029cdf20cd7e7073464b831ac30084e77ebd23b86a3472d392f30a981c2c154622087e88a66a5126b75a00f433c02cc817f37a6a15 SHA512 9eefe8a7123e82705ae5b0d1d887b00348e2a62c9993209def45e21073338b3d8df462bbf53e153a75b2e881500ee7986a1a441244302f953e7ea5c1ef7b9364 +DIST thunderbird-102.11.0-tr.xpi 720174 BLAKE2B 27cdfff50bb2ba85556c8be1a503cd6c157772dec6ab0ba8d2788cfa5ea0756504eaa454e5916b0c1074a8b314d182ecce8cdd5af5c2a1e83e8e685ebb54b120 SHA512 02e31d1072273236d0065749c37aba57eba05134f1347e331a5f7d7cf3ef89d077f68df874bc7910fb17dd4f25a76f1283b5952adcffd748109eb5f4bbf90aca +DIST thunderbird-102.11.0-uk.xpi 818662 BLAKE2B 9fbfc31aa328ecbbf84154ad43795e403f20c2dc9b7972f7554faef267e839e13fb16fa5c63efae606332059e1601ba97185f13587e926a605ca377840a6869b SHA512 eb59385c7ccbfc2c0102e3cea41a8b90b1d814e69e7bd3782636b1271b9038d1b96de2d0b1a45b3143451c9c8775e17c902f88b2e9f65276ba2462669c0916d7 +DIST thunderbird-102.11.0-uz.xpi 593013 BLAKE2B 3a5a95bffcc9744c4bd1a57f2aff12a3b5d5d3ce2f5d102e1ab54ee66ee702ce47458140ef7c038dc222e2df2cb8617219caa58289b238c0a5cffa921274f986 SHA512 537e448414a6bf4fe3cd52ed90ae709d84ef770a785f4ecb559d98376482146251c052e6302abc163d893bd9d593ac84d2304421d1edfe988de5d73f47a8d128 +DIST thunderbird-102.11.0-vi.xpi 745665 BLAKE2B 757ae36c07aba6d1e20eebeb3e294954648d409ee2c11a4e9515c00dd857cb1f6bcce958cf94c1094dd19f9f63417ddd294822c0031c9bc008afceb153c6bf76 SHA512 eb2a77d4ea5390705060368357f5dd6327b703dc481a48a9045ada51d6119af3731b87a39a1fd74abd97deb36e860cebfe2640312fc77abd0f40590a1ee83790 +DIST thunderbird-102.11.0-zh-CN.xpi 739887 BLAKE2B 45055d549a1a3f56a3b2f41907c0b072e0bc8653d90929def09983500f78e045401fa44f97921b25c4fac0a2a1553650f41945a8167970c9719446dec27e6bd6 SHA512 ef86ed3c3670c111a2fbf9cec2536d1436287c9784bff1cd6091bd015b387e967e4be44460b6bbf109636d14f2bb5f069ea3ce108f7cbd2cc83485179d9de876 +DIST thunderbird-102.11.0-zh-TW.xpi 748348 BLAKE2B 7f9d445a9f14b872ede3ee337529cf60b876601eb143a5c9316e9cc3e65bb7efc34e6ad224d5d9460a267bb7f486da5abe26e4a11d5ae6aeb3cb130b2865e7c9 SHA512 6bf42d9af76ab3389dd775547fe05e955dfe5740aedca60a1b29e652ba47a6a5d86d43c494eb46e48aea5585a9ea991d76fea201a538e27d6e108c6f7fcdd13f +DIST thunderbird-102.11.0.source.tar.xz 509580260 BLAKE2B d64a9525d40e89b76827a1210be224abe3fbcebb7e4e264aac9c66abad4d5a8c321d88064281e7fb1d846474faf1f660ffc4ddc29752733e7c5e82cadc8b780c SHA512 8ae12ffab5893456f14df7417e1a9d5e0e754bdd743b2f3a42623ea57342f10de32763e56ff9ccf6938f89726e31d2a4062d4336a77918e884aac70a338f4130 diff --git a/mail-client/thunderbird/thunderbird-102.11.0.ebuild b/mail-client/thunderbird/thunderbird-102.11.0.ebuild new file mode 100644 index 000000000000..2291ad1b535d --- /dev/null +++ b/mail-client/thunderbird/thunderbird-102.11.0.ebuild @@ -0,0 +1,1178 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-102esr-patches-10tb.tar.xz" + +LLVM_MAX_SLOT=15 + +PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="pgo" + +MOZ_ESR= + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit autotools check-reqs desktop flag-o-matic gnome2-utils \ + llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \ + virtualx xdg + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~{juippis,whissi,slashbeast}/mozilla/patchsets/${FIREFOX_PATCHSET} +) + +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz + ${PATCH_URIS[@]}" + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +SLOT="0" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" + +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel" +IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp" +IUSE+=" wayland wifi" + +# Thunderbird-only USE flags. +IUSE+=" +system-librnp" + +REQUIRED_USE="debug? ( !system-av1 ) + pgo? ( lto ) + wayland? ( dbus ) + wifi? ( dbus )" + +# Thunderbird-only dependencies. +TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2 + selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( dev-util/librnp )" +BDEPEND="${PYTHON_DEPS} + || ( + ( + sys-devel/clang:15 + sys-devel/llvm:15 + clang? ( + sys-devel/lld:15 + virtual/rust:0/llvm-15 + pgo? ( =sys-libs/compiler-rt-sanitizers-15*[profile] ) + ) + ) + ( + sys-devel/clang:14 + sys-devel/llvm:14 + clang? ( + sys-devel/lld:14 + virtual/rust:0/llvm-14 + pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] ) + ) + ) + ) + !clang? ( virtual/rust ) + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.24.3 + net-libs/nodejs + virtual/pkgconfig + amd64? ( >=dev-lang/nasm-2.14 ) + x86? ( >=dev-lang/nasm-2.14 )" + +COMMON_DEPEND="${TB_ONLY_DEPEND} + >=app-accessibility/at-spi2-core-2.46.0:2 + dev-libs/expat + dev-libs/glib:2 + dev-libs/libffi:= + >=dev-libs/nss-3.79.2 + >=dev-libs/nspr-4.34 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/mesa + media-video/ffmpeg + sys-libs/zlib + virtual/freedesktop-icon-theme + virtual/opengl + x11-libs/cairo[X] + x11-libs/gdk-pixbuf + x11-libs/gtk+:3[X] + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libXtst + x11-libs/libxcb:= + x11-libs/libxkbcommon[X] + x11-libs/pango + x11-libs/pixman + dbus? ( + dev-libs/dbus-glib + sys-apps/dbus + ) + jack? ( virtual/jack ) + libproxy? ( net-libs/libproxy ) + pulseaudio? ( + || ( + media-libs/libpulse + >=media-sound/apulse-0.1.12-r4[sdk] + ) + ) + sndio? ( >=media-sound/sndio-1.8.0-r1 ) + system-av1? ( + >=media-libs/dav1d-1.0.0:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-gfx/graphite2-1.3.13 + >=media-libs/harfbuzz-2.8.1:0= + ) + system-icu? ( >=dev-libs/icu-71.1:= ) + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) + system-libevent? ( >=dev-libs/libevent-2.0:0=[threads(+)] ) + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] ) + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] ) + system-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wayland? ( + x11-libs/gtk+:3[wayland] + x11-libs/libdrm + x11-libs/libxkbcommon[wayland] + ) + wifi? ( + kernel_linux? ( + dev-libs/dbus-glib + net-misc/networkmanager + sys-apps/dbus + ) + )" + +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack ) + openh264? ( media-libs/openh264:*[plugin] )" + +DEPEND="${COMMON_DEPEND} + x11-base/xorg-proto + x11-libs/libICE + x11-libs/libSM" + +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 ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then + einfo "virtual/rust:0/llvm-${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}*[profile]" ; then + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] 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 es-MX et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json \ + || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6600M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6400M" + fi + + check-reqs_pkg_setup + + llvm_pkg_setup + + if use clang && use lto ; then + local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }') + [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}") + [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!" + + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }') + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}") + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!" + + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}." + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:" + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version" + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version" + eerror " - Build ${CATEGORY}/${PN} without USE=lto" + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole " + eerror " llvm/clang/lld/rust chain depending on your @world updates)" + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!" + fi + fi + + python-any-r1_pkg_setup + + # Avoid PGO profiling problems due to enviroment leakage + # These should *always* be cleaned up anyway + unset \ + DBUS_SESSION_BUS_ADDRESS \ + DISPLAY \ + ORBIT_SOCKETDIR \ + SESSION_MANAGER \ + XAUTHORITY \ + XDG_CACHE_HOME \ + XDG_SESSION_COOKIE + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if use pgo ; then + # Allow access to GPU during PGO run + local ati_cards mesa_cards nvidia_cards render_cards + shopt -s nullglob + + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g') + if [[ -n "${ati_cards}" ]] ; then + addpredict "${ati_cards}" + fi + + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g') + if [[ -n "${mesa_cards}" ]] ; then + addpredict "${mesa_cards}" + fi + + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g') + if [[ -n "${nvidia_cards}" ]] ; then + addpredict "${nvidia_cards}" + fi + + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g') + if [[ -n "${render_cards}" ]] ; then + addpredict "${render_cards}" + fi + + shopt -u nullglob + fi + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc" + fi + + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ" + fi + + # Mozilla API keys (see https://location.services.mozilla.com/api) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if use lto; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + eapply "${WORKDIR}/firefox-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + + # Make LTO respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure \ + || die "sed failed to set num_cores" + + # Make ICU respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/intl/icu_sources_data.py \ + || die "sed failed to set num_cores" + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \ + || die "sed failed to set toolchain prefix" + + sed -i \ + -e 's/ccache_stats = None/return None/' \ + "${S}"/python/mozbuild/mozbuild/controller/building.py \ + || die "sed failed to disable ccache stats call" + + einfo "Removing pre-built binaries ..." + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Clearing crate checksums where we have applied patches + moz_clear_vendor_checksums bindgen + + # 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_environment_reset +} + +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; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + if tc-is-gcc; then + have_switched_compiler=yes + fi + 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)" + export AS="$(tc-getCC) -c" + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB PKG_CONFIG + + # Pass the correct toolchain paths through cbindgen + if tc-is-cross-compiler ; then + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}" + fi + + # Set MOZILLA_FIVE_HOME + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # python/mach/mach/mixin/process.py fails to detect SHELL + export SHELL="${EPREFIX}/bin/bash" + + # Set state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + + # Set Gentoo defaults + export MOZILLA_OFFICIAL=1 + + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-gpsd \ + --disable-install-strip \ + --disable-parental-controls \ + --disable-strip \ + --disable-updater \ + --enable-js-shell \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --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 \ + --without-wasm-sandboxed-libraries \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-nspr \ + --with-system-nss \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system \ + --x-includes="${ESYSROOT}/usr/include" \ + --x-libraries="${ESYSROOT}/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 + + # For future keywording: This is currently (97.0) only supported on: + # amd64, arm, arm64 & x86. + # Might want to flip the logic around if Firefox is to support more arches. + if use ppc64; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + 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 + mozconfig_use_with system-libvpx + mozconfig_use_with system-png + mozconfig_use_with system-webp + + if use system-librnp; then + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment + mozconfig_use_with system-librnp + else + # This controls the backend of the bundled librnp. Choices are "botan" and "openssl". + # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp. + mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan" + fi + + mozconfig_use_enable dbus + mozconfig_use_enable libproxy + + 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 + + local myaudiobackends="" + use jack && myaudiobackends+="jack," + use sndio && myaudiobackends+="sndio," + use pulseaudio && myaudiobackends+="pulseaudio," + ! use pulseaudio && myaudiobackends+="alsa," + + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}" + + mozconfig_use_enable wifi necko-wifi + + if use wayland ; then + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland + else + mozconfig_add_options_ac '+x11' --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 + # ThinLTO is currently broken, see bmo#1644409 + mozconfig_add_options_ac '+lto' --enable-lto=full + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + + if use pgo ; then + mozconfig_add_options_ac '+pgo' MOZ_PGO=1 + + if use clang ; then + # Used in build/pgo/profileserver.py + export LLVM_PROFDATA="llvm-profdata" + fi + fi + else + # Avoid auto-magic on linker + if use clang ; then + # This is upstream's default + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld + else + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + fi + + # LTO flag was handled via configure + filter-flags '-flto*' + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + else + if is-flag '-g*' ; then + if use clang ; then + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*') + else + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols + fi + else + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols + fi + + if is-flag '-O0' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0 + elif is-flag '-O4' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4 + elif is-flag '-O3' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3 + elif is-flag '-O1' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1 + elif is-flag '-Os' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os + else + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2 + fi + fi + + # Debug flag was handled via configure + filter-flags '-g*' + + # Optimization flag was handled via configure + filter-flags '-O*' + + # Modifications to better support ARM, bug #553364 + if use cpu_flags_arm_neon ; then + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon + + if ! tc-is-clang ; then + # thumb options aren't supported when using clang, bug 666966 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \ + --with-thumb=yes \ + --with-thumb-interwork=no + fi + fi + + if [[ ${CHOST} == armv*h* ]] ; then + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard + + if ! use system-libvpx ; then + sed -i \ + -e "s|softfp|hard|" \ + "${S}"/media/libvpx/moz.build \ + || die + fi + fi + + if use clang ; then + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822 + # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64') + local disable_elf_hack= + if use amd64 ; then + disable_elf_hack=yes + elif use x86 ; then + disable_elf_hack=yes + elif use arm ; then + disable_elf_hack=yes + fi + + if [[ -n ${disable_elf_hack} ]] ; then + mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack + fi + elif tc-is-gcc ; then + if ver_test $(gcc-fullversion) -ge 10 ; then + einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..." + append-cxxflags -fno-tree-loop-vectorize + fi + fi + + # Additional ARCH support + case "${ARCH}" in + arm) + # Reduce the memory requirements for linking + if use clang ; then + # Nothing to do + :; + elif 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 PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach + + if use system-python-libs; then + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system" + else + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none" + fi + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Portage sets XARGS environment variable to "xargs -r" by default which + # breaks build system's check_prog() function which doesn't support arguments + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs" + + # Set build dir + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}" + + # Show flags we will use + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + # Handle EXTRA_CONF and show summary + local ac opt hash reason + + # Apply EXTRA_ECONF entries to $MOZCONFIG + if [[ -n ${EXTRA_ECONF} ]] ; then + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!} + for opt in "${ac[@]}"; do + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--} + done + fi + + echo + echo "==========================================================" + echo "Building ${PF} with the following configuration" + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do + [[ -z ${hash} || ${hash} == \# ]] \ + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}" + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}" + done + echo "==========================================================" + echo + + ./mach configure || die +} + +src_compile() { + local virtx_cmd= + + if use pgo ; then + virtx_cmd=virtx + + # Reset and cleanup environment variables used by GNOME/XDG + gnome2_environment_reset + + addpredict /root + fi + + local -x GDK_BACKEND=x11 + + ${virtx_cmd} ./mach build --verbose \ + || die +} + +src_install() { + # xpcshell is getting called during install + pax-mark m \ + "${BUILD_DIR}"/dist/bin/xpcshell \ + "${BUILD_DIR}"/dist/bin/${PN} \ + "${BUILD_DIR}"/dist/bin/plugin-container + + DESTDIR="${D}" ./mach install || die + + # Upstream cannot ship symlink but we can (bmo#658850) + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin + + # Don't install llvm-symbolizer from sys-devel/llvm package + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die + fi + + # Install policy (currently only used to disable application updates) + insinto "${MOZILLA_FIVE_HOME}/distribution" + newins "${FILESDIR}"/distribution.ini distribution.ini + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json + + # Install system-wide preferences + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref" + insinto "${PREFS_DIR}" + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js + + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js" + + # Set dictionary path to use system hunspell + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref" + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell"); + EOF + + # Force hwaccel prefs if USE=hwaccel is enabled + if use hwaccel ; then + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \ + >>"${GENTOO_PREFS}" \ + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js" + + if use wayland; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs" + pref("gfx.x11-egl.force-enabled", false); + EOF + else + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs" + pref("gfx.x11-egl.force-enabled", true); + EOF + fi + fi + + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it + if use system-harfbuzz ; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref" + sticky_pref("gfx.font_rendering.graphite.enabled", true); + EOF + fi + + # Install language packs + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') ) + if [[ -n "${langpacks}" ]] ; then + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}" + fi + + # Install icons + local icon_srcdir="${S}/comm/mail/branding/thunderbird" + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg" + + insinto /usr/share/icons/hicolor/symbolic/apps + newins "${icon_symbolic_file}" ${PN}-symbolic.svg + + local icon size + for icon in "${icon_srcdir}"/default*.png ; do + size=${icon%.png} + size=${size##*/default} + + if [[ ${size} -eq 48 ]] ; then + newicon "${icon}" ${PN}.png + fi + + newicon -s ${size} "${icon}" ${PN}.png + done + + # Install menu + local app_name="Mozilla ${MOZ_PN^}" + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop" + local desktop_filename="${PN}.desktop" + local exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + if use wayland ; then + use_wayland="true" + fi + + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die + + sed -i \ + -e "s:@NAME@:${app_name}:" \ + -e "s:@EXEC@:${exec_command}:" \ + -e "s:@ICON@:${icon}:" \ + "${WORKDIR}/${PN}.desktop-template" \ + || die + + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}" + + rm "${WORKDIR}/${PN}.desktop-template" || die + + # Install wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}-r1.sh" ${PN} + + # Update wrapper + sed -i \ + -e "s:@PREFIX@:${EPREFIX}/usr:" \ + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \ + -e "s:@APULSELIB_DIR@:${apulselib}:" \ + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" \ + || die +} + +pkg_preinst() { + xdg_pkg_preinst + + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse + # does not need to be forced into the LD_LIBRARY_PATH + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + einfo "APULSE found; Generating library symlinks for sound support ..." + local lib + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do + # A quickpkg rolled by hand will grab symlinks as part of the package, + # so we need to avoid creating them if they already exist. + if [[ ! -L ${lib##*/} ]] ; then + ln -s "${lib}" ${lib##*/} || die + fi + done + popd &>/dev/null || die + fi +} + +pkg_postinst() { + xdg_pkg_postinst + + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + elog "Apulse was detected at merge time on this system and so it will always be" + elog "used for sound. If you wish to use pulseaudio instead please unmerge" + elog "media-sound/apulse." + elog + fi + + local show_doh_information + local show_shortcut_information + + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + # New install; Tell user that DoH is disabled by default + show_doh_information=yes + show_shortcut_information=no + else + local replacing_version + for replacing_version in ${REPLACING_VERSIONS} ; do + if ver_test "${replacing_version}" -lt 91.0 ; then + # Tell user that we no longer install a shortcut + # per supported display protocol + show_shortcut_information=yes + fi + done + fi + + if [[ -n "${show_doh_information}" ]] ; then + elog + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):" + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all" + elog "DNS traffic to Cloudflare by default is not a good idea and applications" + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5" + elog "(\"Off by choice\") by default." + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences." + fi + + if [[ -n "${show_shortcut_information}" ]] ; then + elog + elog "Since ${PN}-91.0 we no longer install multiple shortcuts for" + elog "each supported display protocol. Instead we will only install" + elog "one generic Mozilla ${PN^} shortcut." + elog "If you still want to be able to select between running Mozilla ${PN^}" + elog "on X11 or Wayland, you have to re-create these shortcuts on your own." + fi + + # bug 835078 + if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then + ewarn "You have nouveau drivers installed in your system and 'hwaccel' " + ewarn "enabled for Firefox. Nouveau / your GPU might not support the " + ewarn "required EGL, so either disable 'hwaccel' or try the workaround " + ewarn "explained in https://bugs.gentoo.org/835078#c5 if Firefox crashes." + fi + + optfeature_header "Optional programs for extra features:" + optfeature "desktop notifications" x11-libs/libnotify + optfeature "encrypted chat support" net-libs/libotr + optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas +} |