Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/thunderbird/
Date: Sat, 30 Jul 2022 08:16:31
Message-Id: 1659168985.65b156d61621e876338a3e50019ff2a3128c501d.juippis@gentoo
1 commit: 65b156d61621e876338a3e50019ff2a3128c501d
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 30 08:16:08 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 30 08:16:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65b156d6
7
8 mail-client/thunderbird: add 91.12.0
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 mail-client/thunderbird/Manifest | 64 ++
13 mail-client/thunderbird/thunderbird-91.12.0.ebuild | 1131 ++++++++++++++++++++
14 2 files changed, 1195 insertions(+)
15
16 diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
17 index c6bf43d253bf..bb0d5bac4660 100644
18 --- a/mail-client/thunderbird/Manifest
19 +++ b/mail-client/thunderbird/Manifest
20 @@ -63,3 +63,67 @@ DIST thunderbird-91.11.0-vi.xpi 725527 BLAKE2B 104190b96e95b5ced672b4eb25411ef3f
21 DIST thunderbird-91.11.0-zh-CN.xpi 730900 BLAKE2B 72873985e276a600dcadb35ddc5548a3c21f3975bac03edf52629b7073d23baa7465f531109d7859ec312775ecc411a6a0a49a381adbf5e93528a4674761490e SHA512 41de80bc7367bf9e07b1eaf66bae1267b0085d5e1994f116f8536dfe826b9708f4d5b8b0ad54d5bbc00aac72f22461129223e8281a9e6f7c020f8582fcd9d27e
22 DIST thunderbird-91.11.0-zh-TW.xpi 731944 BLAKE2B bdd33ee5058c0e16cd9701876ae68f095b54e4059cec630cb7b2a15428416714fa7dd0852fe15139d8f4c9cd628db8d6dbc4d20e22fc0ff4e476c4dda20fdceb SHA512 6450e341d72472846fd23aa65eb0a931c797f9c28fb5524b8fe4c1c3f4ab12921a57c750fe4877c98e893c2ed729d2ed32691ffab5dea4624acf6fab91f3d01e
23 DIST thunderbird-91.11.0.source.tar.xz 408098564 BLAKE2B 01a0703438f51bfb8da1949b005df1a8bbb07d39b3d5e3d0ae92566ee84d13a111ffeccf8869faf58eef7161d6ffa91aa5d95e95ca6e7b2d7016fae709d010cb SHA512 26b9242259b71eb14ddadffb34a59d07d515bbbc0cb806eed965a73b001ee81b3b1128d06cfdf3e50d5da4ef97be21d11193be34a582d3c9f27f27d2f97d90d2
24 +DIST thunderbird-91.12.0-af.xpi 561877 BLAKE2B b32da4d389738f5984c6a5ab27810d122b3413d43b120862ac6cb4c4b550a45c4870d0f038d2421cad92eafa077f0539cca89c42ca745931061f2b9fb497a292 SHA512 dc1b72fe8c088ac48611678c1332aab525624940c8d9f5fdf1ffcf512837bc003e7893882f4bce724c2c4cf54487038c600e326ed227849250ff5e8cd76879fb
25 +DIST thunderbird-91.12.0-ar.xpi 665730 BLAKE2B 8919628c0d364635ea1c9a92acd5184f016ddf32ecf5c66cf7653ab26db05b208cd5ab9c3e6b4addfdb559754fc284c1874f7560f949d8b9fa6aa9c4758ec72b SHA512 97b228149582f5a4608cc2727c22e41253b7b3081837d9d020ac5af32144722c31f5d8d6b812641a43efb3be221a3e3ef66b034ff3e02fca902793d4156d2218
26 +DIST thunderbird-91.12.0-ast.xpi 580510 BLAKE2B 65e4d8e38b9f4d0189dd939e1440ca758c4196907159e1e627487509e8bf6a7ff156e57120c95bad223d980d7a97bcc20abed4c890f46c430671d6e68fdfcf11 SHA512 c77245fbbe002ab17f7f33d2abaee1f6ce24617845c70fce606380f1013128992e9d818f6f924f5877c7b78dc539f1aa785396eb622caa2037230c68e4e76af9
27 +DIST thunderbird-91.12.0-be.xpi 695197 BLAKE2B bdb8e8953af5ea22150f36d302f64efd4288766f3f8ce412ac9a89de259f83ad5d0108af4279fd59604f672d7690fa812fefb845d3f71fcfbdece7c28f0d1e50 SHA512 8398456ba9f0e1619fd3311b453b18e3774e3dcc2d11f8808f32d3548aab0c978eb40e6ca707f4eddc565ab09ce808db2ca461608de17432a7a6c31ceff3a728
28 +DIST thunderbird-91.12.0-bg.xpi 690995 BLAKE2B e2dc570320e91ca39e02b83ee590a4722cda6d7091a2c4451b7cef95a4219aeb01fa6310431bbcc5df2e4f7869097862dd24a13555af228825cbbe9063eb8409 SHA512 abd355a267bb32ce432389658298d86eb145d2ba9b294b48c0791171132e2754445c01120e1a97ea33c8838724659ea2256d76af8f5cbe684355c93ec95fd714
29 +DIST thunderbird-91.12.0-br.xpi 620587 BLAKE2B 652545be3c46541a12d0596abfeaa8c3287527d0735dcd70aa46bcabe39946984397a97201296198f86ac09634c0b295ea33739b20a6d5cdc78ea6eb95c1db35 SHA512 1886bd31b03c6fbb06507c3a1ba44de8e08a74d0265bf58f99ab6f3b12a256d66b6104af43491dcc6127fddb379d653f8d91f55cd8bfe9e53e40ec76ab15982a
30 +DIST thunderbird-91.12.0-ca.xpi 645974 BLAKE2B 4f47d83ff27e04ca00a2842bb110da1e498286f5d1c302f3b92cce176e9619dd0c1a2db0cb807ee5f42b0ed98feef84cf570e784f488d190f336865baf329316 SHA512 3aaf4797a6236ceaa7b8c7bcad5e1388bdd93c4f930300e9a3f2ceb1353b49e4184d0eb1398285a91e40180ba84e62967acc1ffbe8b6cf6b1318842d5ebaf086
31 +DIST thunderbird-91.12.0-cak.xpi 652065 BLAKE2B c766b2b39a013dbf059bc31b93a2370ffe50b65acc3201f41af14f48c32c1e80c51d802cab05ebccc661fe10c1a9a8c9c6dbec801914fce0f651ed01ed7adee1 SHA512 41752b0ac73fb37ce0e39192a8cd0b8fc435ea5e998c369e2a3d8c310b655bdcb50c50773a3f051ba99cd3b7a35a2369edf9a67622cec4070571a310ea1d3222
32 +DIST thunderbird-91.12.0-cs.xpi 711938 BLAKE2B 804c334ca6bdb690d1a674604bfb6432dda524276f94eb4aaf25cfed362ad4a9761155b3ffe22b11ecd915e3b61df1a2a4f06bd5adedcd5e6b0df1be622120bb SHA512 8a55ead4d0c543c1a6520cc19cae49cc79794a32b577e4b1b21e43ff9f8ad50015aaba9a9e9f34a390958183a81011b876fce16a78ec2ed68494305bbef9ad50
33 +DIST thunderbird-91.12.0-cy.xpi 688888 BLAKE2B 6e3ba696b19701112326d159dcd3ed4e29a6f38e8cd6a6f08bf831ec4d5b46ad962019bd3f264db2ef961356d3f70ad6c099bea659850dcf6e3d4376a510146c SHA512 586000f3cbd70c2e5486f9eed04f953f6e2940b0c9fbde5f9c7884c1b89e02e844741c57dbe0f78a83d24430071b9af83ee8c058337e02b3379b71c946a3d5fb
34 +DIST thunderbird-91.12.0-da.xpi 674444 BLAKE2B 3c80cd34a53bf5d1d5ecc3ac9df03af9ffd70b922eff67578db68f9de6ff989a6c07678c39ec7c3a91c1a00eb3439f63c1b00e3e829166ba74a29887e3d1b2a1 SHA512 a8362938c7636610f6e0a2fd8cabbd3e6e55d7a5b1170d7b1ba3ecfbe9a30beb7fb17542137138d2a1e13db43d743a0c04588dc925333a916afdfefb7f8ce5dd
35 +DIST thunderbird-91.12.0-de.xpi 697526 BLAKE2B b4cc8020d9136ed2eb13aeef46864d2bed8d22a969e5f30ba44e090e748b808e20eb02e8a9d6dafc2d6be46eb360d5f079c93f1399a959a50541b6f2fa4b885b SHA512 43956187e276802c44820474213c435d1e5fe6fc60765a480c5fe4cc1a8eff002f924b4d04e0c134b9061274e6d82c4d3d7925975270aca7b3c5047db4b8931e
36 +DIST thunderbird-91.12.0-dsb.xpi 723999 BLAKE2B 22feb9dd75cc784bde1f2cd0a9d4b9762f42332f28b1f70cb97ae8d2b4e930991891babb8c57dc6f0fa2e4b385ac6411985043e34d0497cd46c076d4e8c8208a SHA512 88eedd2151a32acf08e6bc940b98b9819423fce60677fe961a4449583aa0ccf8ad498c8d7cc53a2186863394d0674e0040f56d1bf5742985b156af610601866c
37 +DIST thunderbird-91.12.0-el.xpi 821177 BLAKE2B ad2ffd5be0ae45dedaa6268f387cab9ff0ff9965015bb88e9ba086b7e5e0bd467c6e6ee5b23be295e2856625a492e1c9f79c5d692c45be37dfdd17336f694da6 SHA512 a72a3aae42d452468467c62f04c01d9d490d1b08f36853093b621d5d027b12c31cd830b106ee6a1ca0a56cf854516c25b6f2643c121c7561f495130713c1cd2a
38 +DIST thunderbird-91.12.0-en-CA.xpi 647813 BLAKE2B c074b23412a98cb836c6713c03dbd72ded581d6769a486b7284d28dc1dbefe3c6eb873444edd48af058a3dabcd3d4e3ceb0a124ddc206454bb8baf40777ca70f SHA512 e99ed3bcea85c3f0e2d089d516a1c8c1cb862bebce8222e5c3001ffdadbf27f066f98d4f9a59bf2b2564b8622760a5938b868e9ecdd85cced952e284fe122e59
39 +DIST thunderbird-91.12.0-en-GB.xpi 650552 BLAKE2B 7cc7ed88b1c0d150883f253d5d24ec0344f7374b3e5319aeda0ce8b70bf162d3974cbb6b786e53aeb628df0aa8d48b1ade47c243c3dd8ea5b1eb29d22c01a29b SHA512 d47ceccb44f7116146ead95f68551dbdbbf47748ca2fc390fcab2703a96fe779173d9c30bc6ff9c5a4228190624d2be34cea38112082e8e173c0cca814eff3d5
40 +DIST thunderbird-91.12.0-es-AR.xpi 700496 BLAKE2B 1878411d727c6c17d00b5f28bf969f2dce237a36d7e574f2d3f0df38526a57c2e7bda886bf96f9944b3b2e5550465f988a657dd84e5b8db42888daeb220edd49 SHA512 0de0eda88398bc1cdd44fc506401642d170e5b282af29386cad003b9197461a213fef697efd76dfd2b611169a43a51099893014513fe2f9ce200330672c1958a
41 +DIST thunderbird-91.12.0-es-ES.xpi 630919 BLAKE2B d4884d0e8445aa2dea94e861c932cdc10353c8c127b83202f1cbd9a5b7db1b10922dd2a14687ec56c747bcda2576ae15c10616feca3d460dbfe8c146d8954350 SHA512 ad343dfa81507dcdc8f72647c262127c0761d00f7a258e73c27198301d9c85cd0d6d2ed40551ff83acb25c5335f29e24424b8ce06cc13e31dd2a9f405f35b586
42 +DIST thunderbird-91.12.0-et.xpi 672165 BLAKE2B 156e57af7bfb2b64a13cdab001cbb9912b2477ab2dddc04cdcb36429541a3b9aa160bd75b1abae3f0a5f330b20b9032331393d5650c49cd59add8bcb18892e6b SHA512 cc3478807b4ae44f2f1c02f25500941eb8ab32fa4c262c5d22208031af5b7da9a8a9ebf66b83dcc607068f8a4116514568b5d193c00def6a9d34bc45def5fa63
43 +DIST thunderbird-91.12.0-eu.xpi 678262 BLAKE2B 2161682a48b68af72f7878a6c35772a4ea7101fd1aeb12dbcc097c641a84663c7691362dd05c4abc2094646c373bde6658350e4ef8db92a10167d58b64b5b561 SHA512 fc0b2dcfdbd7465abcc360c5dc8c56740eea9673441d0a5f151032c562c2a18a4f6c348338368ab1a41637f6ee98196bbb3633037d9432a4d792f7b2c4bb7831
44 +DIST thunderbird-91.12.0-fi.xpi 676629 BLAKE2B 24a5d288edc5deb800c9d30344530ae3ed3770a3227ad9222caa48ad3dc48fc28930288508bc80b5eb3647468dc9ec4baf40357f1f1eb07d4aa97370f45d7fc1 SHA512 dbe720213d2a0be92d73613c42917515589ca69fa718212077062cbd837f6bc9f3e57a977550679990274267e2044976eb5e4a4d4be24e2889c8f29fa8775607
45 +DIST thunderbird-91.12.0-fr.xpi 711453 BLAKE2B 8ecef995d8973b90f4248b65a8d952030f367248d785bab187616e27119afb2085f476be091cfe01c0a5a4dc01e8a9d5ff892281f336029a20c975c68077185e SHA512 2bacaabdc0fb54c452801d5f9c0ff9b9d5026fe23466d15ac7bd51f03f5b4c8c993380fffa4a19657ad5cbd60a3813c76abdc327809dbdc811f867b67a80b84c
46 +DIST thunderbird-91.12.0-fy-NL.xpi 691880 BLAKE2B de11586c712c5a8cfda65fdc9cc4222278a5f2150c58c8bf9e93a0ec54099ac4c621d20ae4f84c923c9042cd7735c9950491d38793c65ee5bf8eff8bf26cf258 SHA512 510ac4a56fa38b488145394507d8de08e3d4fa6cee5b5f8efd347c5897f5be0ec4e3426ca17bb375c9e85b8cf03c2869288b0cbba048316bc1d7642233cfd4fc
47 +DIST thunderbird-91.12.0-ga-IE.xpi 613123 BLAKE2B b2092c69352a4d607f12b7e045561015b55caf1db2a135c544ea5dd3fe4c1222f18e70c63350838fc9d9c14a6a7c12702ddf79bfac240d324535cba8bda8e9aa SHA512 f7f9b942ec7f87ebb876dd3ef1250ca1098fbacb177ac09ce7c1010640a7aeb0488e047e7c50ede726634e21632374b9b447d279f136713502055b65197ab75e
48 +DIST thunderbird-91.12.0-gd.xpi 640648 BLAKE2B 53ae556aeb654912f5b6156000de036619e5b258ef205f2cc4b586efe76d005706e3209f13a2c0412e002a79c21364df65a7d124b77bbcdc1d7535d05b0457c5 SHA512 2a6184f1beddbd9be7ac38c35e6826714f87cc4a36d698a14a9052c8206f38f6907ed24623dfba467b997aefb4aff3a7e25b3286391003798a53bb1b09f2d1d4
49 +DIST thunderbird-91.12.0-gl.xpi 677788 BLAKE2B 9231b80caf364759b4c3f726322d8bcae83a8a92b6978c7ff07dc6763fac1ea0f3d7193781da6277d875e1c3288a09c13ad944400504f9e38c1ed48dd4e8b367 SHA512 53cb109e4c307607829662c852a708ffb4fae02e814e4d80e1eac185de1e8b25607f4ea18be32ba82f84eeeffdefa4750e851036e571785c8f047b95bff724de
50 +DIST thunderbird-91.12.0-he.xpi 673190 BLAKE2B f1a2523451e21f801ef804daa1c9ed6df7ba941b5336b48684997261d541a3493ee5f27f77583acdbd9a58d9609cc7e6eb31fdaf9a1125f2aaa2a72ceb504b55 SHA512 9bb5a7d25112de53625a2e43bb035a0fe7b2b22c1a3edfb6c270c7cb3658d5e8fe50701ded3c5d15b82d6f69b80c7a759b0a6114456390c6498261d6fb4cabd8
51 +DIST thunderbird-91.12.0-hr.xpi 653580 BLAKE2B eaf4fcc98a9344b26cbd0a31d349e40cb269f220b0633d56f498f600be1ca83a741969ee142151f20db3fc1be2483b496aa5ee8331603089e3e4a82874e4957b SHA512 73f2c08437b74dbd04c3af4cdfd80c2d2f4a9898c6a954255079705964546d2d6f1a03d66bd662c6131d461ac838c6e6a0912d725cf64b318b32457cc67f89e7
52 +DIST thunderbird-91.12.0-hsb.xpi 720812 BLAKE2B bf50445bb713b3844beee8dddc8eb0a16885279bc8dd43434400ece46cbf9ef6b64dbdc459d37917752ee043fa76f14c6925228376d55ad34d1bba363e20879f SHA512 3fbf08d73e864697f96778e7291b1b0809f17164e2f1aa462318bd42192f4782e127ca432691672c0cdeb8db636c032953639437e8c695c309573c599cb39272
53 +DIST thunderbird-91.12.0-hu.xpi 723399 BLAKE2B 34e833b21ac0614b38f63272c73e2acb8c3324d2c93a6f5240da24bf48b44bcb1784e0077ce8d6c5dc11c52bc7205ca3dd5e3702bd12567810c67a2dff8295f0 SHA512 7b11557f2add0d847f7ecc4a667395b0d38b53eea1501e68d115341d5190553c556c7b460b5cb41f245e21dd6769245cf3deb2e7b20df2cd33489455feaf034d
54 +DIST thunderbird-91.12.0-id.xpi 648249 BLAKE2B 5c5d74d6cd7c4183c3a3572faa2ac0f2be45bdba4618813342cf988d205037768e47f193c016858c1924059e4c618182d255f3106aa7ab371cd9d9bcfd9a7bd7 SHA512 9c41993701fc269f3dc6d52d9e532f4f6a3d02749e176f4e3bb850a4825a8b29f751c7a6b7792f4c0a612ee4dc85eb6cb25a15328995b96e3a39cd3ccc579bf1
55 +DIST thunderbird-91.12.0-is.xpi 682261 BLAKE2B 3a9ba3f188461d45ec63c0724db3d142592893e883dab3fa35b6eb843b8157456be9cf80bf61ef682d30086a04cfc0ef048eb5c2e49c646db18ae39b930673bb SHA512 1e13f0d660a2506543a504e4bae4f3a1048fb2160448380e33e278b85a2825187de8acaf3fd560dd17e19ea9c8d9e151306448b9cfb5258129a304554301f776
56 +DIST thunderbird-91.12.0-it.xpi 613332 BLAKE2B 6bda9311c88ae2b7eefad358f2088a89f076108e7481cddcbe0ff4ced7819145bb439e5e6378fd806a38576221e06c83b9fb03b21cef438655d8c8e09c35faa8 SHA512 b94e7b056a9ae44fdb138085a5bfd1c9dbaa8cf8a035c9518182c1c7d42d1741529779b7d5eed39a14fca1e663a15a9d04640035f89d58de4635655672a2bf1c
57 +DIST thunderbird-91.12.0-ja.xpi 756465 BLAKE2B 294313d414ba8f6cbb7384de9ff99bdd37e61f9a8b8f3fe30f57d212ed3e335f81b847f27af0aded2d3f6b897f6afc7ba90bbec184a8c5da2cc47058842d1c7e SHA512 e5ef81a967ea84d7204ae7ec1aadae015ca097a2da34106e9d6af6d28088f14bda346612c24e8b7ee3e60b76222dfe2051ba8d1df9cc6de62bf04b1e2802c17b
58 +DIST thunderbird-91.12.0-ka.xpi 762628 BLAKE2B 315bc6d9967a6846d10bb9388c8d59176cf7cf814d5299d9e3d78850cdefc144ce58b5e5ead1dce290f9f3ee83dba1f7135e46f75f1c4ce99632f6e3e7dbd6c7 SHA512 2542c0efff6ec1c0825384c69de225a2af00ff62fef70c9aea32d452b090af06ad3c197c6b6d27380efd8cd5707ff0870b8d2da8fa3ceacde25f714e5d9044af
59 +DIST thunderbird-91.12.0-kab.xpi 677085 BLAKE2B 6bc984773358961747dcbff74f8f5bbab9ebb32f26dd8ea9646ee8abaf035dd0292d8f2d0468efbb0da6453079a92fcd7ee29c70799913f1fb8acef4dc5bc56c SHA512 b43bc6b89eab93a58f78fffb2a5edb8c2b048047ef836b86188ed5c2edf8160b46f5c3ebf1335cdcad7a7f9c588558c01af45041609eacc7c4e4eee7712242e7
60 +DIST thunderbird-91.12.0-kk.xpi 745523 BLAKE2B 825d86d7d74074adabfc6913ac320d8351a552cd9cfcdfb3f47564377f0252a9c732601f6d66e7e8496f8f649ee5fd9399b55c64852ee9e4c55c03de2c391bbf SHA512 4e2c5142ec936ae24e29ff886a9c701eed53476b546c158b33b6428e1dda6cc3fce993fb60a759aec515456f81766436fd0ae0ffe63e9bb043f996d04864ea88
61 +DIST thunderbird-91.12.0-ko.xpi 704768 BLAKE2B e2424da47f368cea7fc75188f3e0189984be78dc4dfddcbc130a9cc04cd32455adef1bf2ac652c98704d6244042284ebeac867bff7b40929ab7cabe135f8cdd0 SHA512 80aeae3cb8ee9b387b752d103ccb5418a0ec1c1678c780e15936838f0c751505232d826a2496f2eb2baaf685bfc629f4ed37ae87289d418be28f956caa72688c
62 +DIST thunderbird-91.12.0-lt.xpi 696044 BLAKE2B 53c0dfbb246f87a196a475be7d36c048e5f3250a855e5433a73809f274ac7a43792b766f96256a2da91fc56dc6fc5650d06e63df1f277c6bbfc8bbd2cceb09c7 SHA512 1d5803e6401cd7151bd89a332a3f6e5e3df60260bf214fab7c19c1d18ec77846d3d30bd272d8709fe421966d96593cbc5d79c76460a578c1b4b005d868e6add6
63 +DIST thunderbird-91.12.0-lv.xpi 618523 BLAKE2B dd5f469d6f767ade48c6c692f1e25ad165628e17b7b2c6697ee42158598114c7c55b00d3b9d1c100b4da097b04ee40d8a6305dd7268bb2bfedb4443c9d5f242b SHA512 4d0c88ecbf19eef503d244138ff1a9f3515c3d1025ef2c6c15b680583be266490f5d29373d44ef827971caa2dba4abb11e70f77fff3ed7ff293f937af67c9f60
64 +DIST thunderbird-91.12.0-ms.xpi 578079 BLAKE2B ffc57088e1cb2caf4bc34de9dc914975591da10a9c85a3f2e9802b7e6032a106293ffcdb2859a7f83416c1ac08319aaeb3257213b9f2fddff0d7dea8cfab74ff SHA512 7c004d28966ac6cc699c3a04cef325f4aa28697484ded21527b9610812edec46fe510fda88033c048e32257be2b2bb292da943a4b1644d2535ce2d921bd3247d
65 +DIST thunderbird-91.12.0-nb-NO.xpi 653326 BLAKE2B e4b11d6ed736710ccee838b02e9eeabed28fb27f75540166c320b090ae555a16984110c3d361591654e6644f02c73a1a473d7098749a431c2c140b38ba9e35f3 SHA512 3103f1086a2496a3189b8f3dff28236e5692dd77d29e3643ebbbf6bf13ce3d18d38501a0ad424b1aa12152649d813e15bfdb48f3dd952cf2d29e309d0823182c
66 +DIST thunderbird-91.12.0-nl.xpi 685341 BLAKE2B 39c0a8478ce78abb886d3ab6a740eadfdbde77f59527965b7a29aea466aebbc465c1a6a968fe97df4f62ab535feaeee98478f7092373aedbe9683a0988c5cd33 SHA512 9b3b4836a18a3ebc2274a2fb5d86d4ef807ad8d1586d10d2528cae5ae26c51b0ccfbdcf9eac47bd8d0fce93658735e9de8f56b0ff8f8410dc1aef7aedcdc7178
67 +DIST thunderbird-91.12.0-nn-NO.xpi 658572 BLAKE2B 0d8c3e47a5e147892496222c6aaf728270ac6ba742ae9265c80e51d4fef7ef4196d0c8769d148f1fa0ec2411989cf606dd6d5e9305080d45ef0fa4065a512cc8 SHA512 f2ce60169c31aa3c10477c3a150f9241b85e64e3a9c24da7cfe7802f20e179d4982648e29752a0a547ac271b8e83ad69eb180dc069df708d632f295b7df6056e
68 +DIST thunderbird-91.12.0-pa-IN.xpi 652333 BLAKE2B 46071999f24491f4dc935897a9cfc7ef0193078a80b7b19baea0afea61481471ded60eac24f59fda21c2c905cb94ead11f740b7ddad832f144dd6ff92051c7eb SHA512 483f54a158cb5cf2a8e24c990797d0178018a4c1a2dec3260796cd25185dcea7739be904b6dce68b3b8cdcfba02c2a633b15784f5ed45a49c2ef82473249824c
69 +DIST thunderbird-91.12.0-pl.xpi 694111 BLAKE2B eb5fb48a747136b7da96841911a795540662239b6ebe47590a1a918383530344ad886736b9d374e9267adef1850935080d9ee26cf86e99343e2f2cfac07cf0ea SHA512 b3cc4c40b10e0276ba5a0f606d4520686038ca531bb84847d3b6cf7eec4ff0f6105e96727f7d59ea132a4573ed692f1aef0236216c848c020592db6a0d7ea4c5
70 +DIST thunderbird-91.12.0-pt-BR.xpi 694132 BLAKE2B b97af5b2fffa1302cd2fb2c0eda4b29de026a60e202914390bcce29a03fdad6b72229391bca17c676bf196eb3e8b50cdd838b6d07b89af43025c36b4527eb34b SHA512 9aae8fb9374643c1ab41d98e23fb22239e2b840173c9ba18ac97aed06465ec9ac574a3cdcef908356d0156a04ad0e3651d86ed32187115ca3bd433b50fd5bdfc
71 +DIST thunderbird-91.12.0-pt-PT.xpi 674673 BLAKE2B 9a432d467d1368a31058d277526b81900b6a2a463518e8b8afb2b058f841d04d170e33de3123b1fba9c8c53b5061b39c177439dfa87070bf74bc35b9728b7ad8 SHA512 4514dbd0630484ce7bad096cba5c36073948e85e7914aa443603bba8af66884578cef70f5dc7ba6ff801145589ed969780f7548c24cc743d1e49526b948b690c
72 +DIST thunderbird-91.12.0-rm.xpi 687614 BLAKE2B 9d7646e99c15e20634f6d4994ade393b40050bf4286ec7e077d9406f5075713e59fa0bf65d503cbbe2a2cc271676415f3f4f271ea9b5299a15094339136a6991 SHA512 e80e0f51f1524b4f8aca2aa04a014bf7c164ade33cd64afb0b3d1112b3fed1aa5d2c22d98752770054d430cc35e5d48faf2afb092cd9e603e6048567a5d36f1d
73 +DIST thunderbird-91.12.0-ro.xpi 661346 BLAKE2B 216e6faa4112ec6ca86d2f01e6d6c49d31ac846ef26751bac11143d5309740f635e4db8fca0a5e969d4f03b8baf7eac8a5a2e05a964ef2bc1083e381a0bc813a SHA512 e4be6c52b3c133129ebee33dd183d382a28fabc7dd24900488a4f62d651c44180563ad752e7e4e24da124a7a6adcd72fad139a6a16fad77fc2d42d599af5dbe0
74 +DIST thunderbird-91.12.0-ru.xpi 793373 BLAKE2B a9689e5110323a547b436fcb22e2f13760ec8ccb053d686d3b1b66b6a3d8add55630f2a906ad43c2aecc96d831b55d60ece3c2c4e95b564cb7da11da755ad791 SHA512 9759ecc8585996457c4d2b9116678bdff1972a3a2db2803b2bea0a52ddc2fac1017ba247ad59d4237afb5d3344bba791da1d51002a4bdf75061ff5fe642ac78c
75 +DIST thunderbird-91.12.0-sk.xpi 721092 BLAKE2B c7939edb9025216f8716ef60486b77488462dac2a85032199304ee06390bdd59a7a82cdd3a76eace3d195a43b880cc8968208ab4bd38a7968ed00882a21ff65e SHA512 f19435c22427dcb54f7c2c5dff6d91affa8468c82150eebecf5bf8d9a937583371c2613be7af5c69beeee3c9cbac430cd0ff4a151cb884191aa15e28b15b4559
76 +DIST thunderbird-91.12.0-sl.xpi 682543 BLAKE2B 5a5bed11847fe3f02fe11387ef66fd92450b6f9fd8fd6aca762a9e3bba92cffc154fdb450692e3187f9b4e452bf189821a90155098db8ec5cbd87321f89c41a9 SHA512 d3afea20f7b667524c2e70e3c46611776848d9e44462a8f987efef28cb36df0be43164889ddc41177b3cc63ad626a17569df61f0d442b284370cd2f5e639d369
77 +DIST thunderbird-91.12.0-sq.xpi 703626 BLAKE2B a9a3446663ceb0ff9e4a2e086c36f803953b2b7b56940e1e41a04a0e824af4499c372f4cf2dff420ca553ac8a48158729118a44c5cd8d886c1bb1f3cf023f1f8 SHA512 9ea2afdffe162cc85941fcfee330d07dfd1c0d18dba72a42d02b0b9cc0d61a3288dca5fb9e089e8978f1b69b28aec3e77bac14d168c97eff961ad758a888f6a8
78 +DIST thunderbird-91.12.0-sr.xpi 710562 BLAKE2B 16715cd53e0bbe3460e45d41c408644dbd9149a9998f7ed954a3f4d226efa5c76d109a3d6b66a2db52ff08c38961f334caa03f94cb83f5ada7e329cd8c46d2bd SHA512 a3f90d270f18265c84eaccfdf5491540746b5dcac5b0484f2fc687a74e6759f7c18ef4328baac6e056dfb9c8d2fc8bc3080dc214ed4e5e6fb79ddb5b3959bdd6
79 +DIST thunderbird-91.12.0-sv-SE.xpi 690965 BLAKE2B 59cbda2eb448ef6efd4060d55ee3a420ff5117c6413591cd786886563d51b38f93c4e7e632b5e83f1694d2abdd67eec20bffc14e8fdd5c99d092cc3f01f71e5d SHA512 0dd67c2f478ffc0712d5b2a63f118ee05a7d9db9e4eda9456a44c06fbd61ba3880db75c64b37b6c3e55c7f6be2dc26ed26c1d9fb9a15e76b830b78f486b90ca0
80 +DIST thunderbird-91.12.0-th.xpi 748755 BLAKE2B e8c08992950a19f36483bee6a043a8ae87740f316778dfc84cea5b3b7aa9ea372628f2cb6dd1f0ca89a10db25d4ae73e9fa6b9598ce17e6aa67eec6dd694d649 SHA512 5e4fb6d25816a63b5bbc7983ec4cdf54a2b2eba470010edca6d2df1c0be91a9d09a3452bbf46a09cd717ed11fa6e04347054d70d28b4510d8f1d7f5d28195f98
81 +DIST thunderbird-91.12.0-tr.xpi 699652 BLAKE2B 68122681bce86859527df47bf1e23226e3a6982f4ca5fb7ae8dff687722f4358325ade297eb09740f2e731a800e07650dab90ffab662438643f70420ac063437 SHA512 23e503f823c7cccf723f6a728c33ee32412cc30a09d5f51d07a762502a09adcfe458882547c2688b81fadf4edc9ebfbaa72ed0a8fec6e289bef81de12fc8e5ce
82 +DIST thunderbird-91.12.0-uk.xpi 798481 BLAKE2B e8b8168225a4cfc0e147afbe2a87d3132ea631fd84489496fcba741229f7cb7f00604872a2ce16b30acdc6b00561f0c3d67786abb74a00d72732d5b146d3dce4 SHA512 32e342f2cb3a98941b5d354628d6709c94725b9f0e898e650a12b249986e033625fc42995b6773f1015bf8fee1afedbd289045d18d173dc61762b1fa9f1cb16c
83 +DIST thunderbird-91.12.0-uz.xpi 595924 BLAKE2B 9c5311c2c098f60a6c2bbab31a93e3ff200604ec7b17274dd312da7a79604bd8dc4409db7fef28b62ad11d701880b9b0ce59c01f487703ee5597cdbe001fb47d SHA512 14f1763ac46b0684904d86363dcf65e0e8312fb6b6b5f7a3d9d0607f08ddbd1122967b8b5b4eff1a3f70d9dc89c1b68564cd943be998e7f5ea9516d195acfd58
84 +DIST thunderbird-91.12.0-vi.xpi 725526 BLAKE2B ee8a25cb9eba7d589c6320397e9552e6a57fb84dd2815126dc55dfbe602306d47f4bf7b234baf72544371c05deb689b15a5033c26873848e6e7d0316e10cb2c1 SHA512 5b6d5b3f47851a1f6e8fc2368c0da7e6b5b2237b01c3085116a46b0f9f3d6c53977abae03035e7fb2281d6840664a2db48d91d8f4806d2cfd8df9b03272a27f4
85 +DIST thunderbird-91.12.0-zh-CN.xpi 730901 BLAKE2B 9d183dcfbcd2bc8cfd200c5b9e580ed6c8f79f9185d6e6d2960fe384d5d1cd5a4d1313c5eb3d461c54c68df08140a4057e6423af2c2183167c5af7c96b1d2e72 SHA512 3b6b6a428a492069bac13c8cffc42eac316af2ef7c138a517269f11857393546dff3e3dd242f2ee9730db18630f623086aa58577dad43349844a6f542f260ab2
86 +DIST thunderbird-91.12.0-zh-TW.xpi 731943 BLAKE2B 441081aafebc9bff1ad0a6c8c33cba392854f41b30be59bc614a57ec316d5c0ccae774d3b0c238df3be61c1c072507e09a4cad612259f13145153f33bfd14ffd SHA512 b93fb3cd53646394ace88650ae2384b8b4160e7b60975b068d750e0add4474e926e9f47112432d940b90e90180bfe308c999bc93d06ff56f5d1bdbe8c5320d31
87 +DIST thunderbird-91.12.0.source.tar.xz 404609860 BLAKE2B 960958211bd4661cd36e55aff024ebe800aca867e7a9a5b54de694c4477473360d2422373accc325ca2cf7a3bdc720be427bf281beba2e9ab052fcf2a62ecf67 SHA512 1c0200a84ccc4124127d472713d72c4ff7ece8d61ad120d5c45c732a3ab4f86a2edfea23a8bf26e4739d24956654aec30e7bc59a28af17fbbf10f3d67466649a
88
89 diff --git a/mail-client/thunderbird/thunderbird-91.12.0.ebuild b/mail-client/thunderbird/thunderbird-91.12.0.ebuild
90 new file mode 100644
91 index 000000000000..6a8a806a97f7
92 --- /dev/null
93 +++ b/mail-client/thunderbird/thunderbird-91.12.0.ebuild
94 @@ -0,0 +1,1131 @@
95 +# Copyright 1999-2022 Gentoo Authors
96 +# Distributed under the terms of the GNU General Public License v2
97 +
98 +EAPI="8"
99 +
100 +FIREFOX_PATCHSET="firefox-91esr-patches-10j.tar.xz"
101 +
102 +LLVM_MAX_SLOT=14
103 +
104 +PYTHON_COMPAT=( python3_{8..10} )
105 +PYTHON_REQ_USE="ncurses,sqlite,ssl"
106 +
107 +WANT_AUTOCONF="2.1"
108 +
109 +VIRTUALX_REQUIRED="pgo"
110 +
111 +MOZ_ESR=
112 +
113 +MOZ_PV=${PV}
114 +MOZ_PV_SUFFIX=
115 +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
116 + MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
117 +
118 + # Convert the ebuild version to the upstream Mozilla version
119 + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
120 + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
121 + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
122 +fi
123 +
124 +if [[ -n ${MOZ_ESR} ]] ; then
125 + # ESR releases have slightly different version numbers
126 + MOZ_PV="${MOZ_PV}esr"
127 +fi
128 +
129 +MOZ_PN="${PN%-bin}"
130 +MOZ_P="${MOZ_PN}-${MOZ_PV}"
131 +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
132 +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
133 +
134 +inherit autotools check-reqs desktop flag-o-matic gnome2-utils \
135 + llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \
136 + virtualx xdg
137 +
138 +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
139 +
140 +if [[ ${PV} == *_rc* ]] ; then
141 + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
142 +fi
143 +
144 +PATCH_URIS=(
145 + https://dev.gentoo.org/~{juippis,polynomial-c,whissi}/mozilla/patchsets/${FIREFOX_PATCHSET}
146 +)
147 +
148 +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
149 + ${PATCH_URIS[@]}"
150 +
151 +DESCRIPTION="Thunderbird Mail Client"
152 +HOMEPAGE="https://www.thunderbird.net/"
153 +
154 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
155 +
156 +SLOT="0"
157 +LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
158 +
159 +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
160 +IUSE+=" jack lto +openh264 pgo pulseaudio sndio selinux"
161 +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png +system-webp"
162 +IUSE+=" wayland wifi"
163 +
164 +REQUIRED_USE="debug? ( !system-av1 )
165 + pgo? ( lto )
166 + wifi? ( dbus )"
167 +
168 +BDEPEND="${PYTHON_DEPS}
169 + app-arch/unzip
170 + app-arch/zip
171 + >=dev-util/cbindgen-0.24.0
172 + >=net-libs/nodejs-10.23.1
173 + virtual/pkgconfig
174 + >=virtual/rust-1.51.0
175 + || (
176 + (
177 + sys-devel/clang:14
178 + sys-devel/llvm:14
179 + clang? (
180 + =sys-devel/lld-14*
181 + pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] )
182 + )
183 + )
184 + (
185 + sys-devel/clang:13
186 + sys-devel/llvm:13
187 + clang? (
188 + =sys-devel/lld-13*
189 + pgo? ( =sys-libs/compiler-rt-sanitizers-13*[profile] )
190 + )
191 + )
192 + )
193 + amd64? ( >=dev-lang/nasm-2.13 )
194 + x86? ( >=dev-lang/nasm-2.13 )"
195 +
196 +COMMON_DEPEND="
197 + >=dev-libs/nss-3.68
198 + >=dev-libs/nspr-4.32
199 + dev-libs/atk
200 + dev-libs/expat
201 + >=x11-libs/cairo-1.10[X]
202 + >=x11-libs/gtk+-3.4.0:3[X]
203 + x11-libs/gdk-pixbuf
204 + >=x11-libs/pango-1.22.0
205 + >=media-libs/mesa-10.2:*
206 + media-libs/fontconfig
207 + >=media-libs/freetype-2.4.10
208 + kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) )
209 + virtual/freedesktop-icon-theme
210 + >=x11-libs/pixman-0.19.2
211 + >=dev-libs/glib-2.26:2
212 + >=sys-libs/zlib-1.2.3
213 + >=dev-libs/libffi-3.0.10:=
214 + media-video/ffmpeg
215 + x11-libs/libX11
216 + x11-libs/libxcb:=
217 + x11-libs/libXcomposite
218 + x11-libs/libXdamage
219 + x11-libs/libXext
220 + x11-libs/libXfixes
221 + x11-libs/libXrender
222 + x11-libs/libXt
223 + dbus? (
224 + sys-apps/dbus
225 + dev-libs/dbus-glib
226 + )
227 + system-av1? (
228 + >=media-libs/dav1d-0.8.1:=
229 + >=media-libs/libaom-1.0.0:=
230 + )
231 + system-harfbuzz? (
232 + >=media-libs/harfbuzz-2.8.1:0=
233 + >=media-gfx/graphite2-1.3.13
234 + )
235 + system-icu? ( >=dev-libs/icu-69.1:= )
236 + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
237 + system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] )
238 + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
239 + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
240 + system-webp? ( >=media-libs/libwebp-1.1.0:0= )
241 + wifi? (
242 + kernel_linux? (
243 + sys-apps/dbus
244 + dev-libs/dbus-glib
245 + net-misc/networkmanager
246 + )
247 + )
248 + jack? ( virtual/jack )
249 + selinux? ( sec-policy/selinux-mozilla )
250 + sndio? ( media-sound/sndio )"
251 +
252 +RDEPEND="${COMMON_DEPEND}
253 + jack? ( virtual/jack )
254 + openh264? ( media-libs/openh264:*[plugin] )
255 + pulseaudio? (
256 + || (
257 + media-sound/pulseaudio
258 + >=media-sound/apulse-0.1.12-r4
259 + )
260 + )
261 + selinux? ( sec-policy/selinux-mozilla )
262 + !<x11-plugins/enigmail-2.2"
263 +
264 +DEPEND="${COMMON_DEPEND}
265 + x11-libs/libICE
266 + x11-libs/libSM
267 + pulseaudio? (
268 + || (
269 + media-sound/pulseaudio
270 + >=media-sound/apulse-0.1.12-r4[sdk]
271 + )
272 + )
273 + wayland? ( >=x11-libs/gtk+-3.11:3[wayland] )
274 + amd64? ( virtual/opengl )
275 + x86? ( virtual/opengl )"
276 +
277 +S="${WORKDIR}/${PN}-${PV%_*}"
278 +
279 +llvm_check_deps() {
280 + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
281 + einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
282 + return 1
283 + fi
284 +
285 + if use clang ; then
286 + if ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then
287 + einfo "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
288 + return 1
289 + fi
290 +
291 + if use pgo ; then
292 + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
293 + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
294 + return 1
295 + fi
296 + fi
297 + fi
298 +
299 + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
300 +}
301 +
302 +MOZ_LANGS=(
303 + af ar ast be bg br ca cak cs cy da de dsb
304 + el en-CA en-GB en-US es-AR es-ES et eu
305 + fi fr fy-NL ga-IE gd gl he hr hsb hu
306 + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
307 + pa-IN pl pt-BR pt-PT rm ro ru
308 + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
309 +)
310 +
311 +mozilla_set_globals() {
312 + # https://bugs.gentoo.org/587334
313 + local MOZ_TOO_REGIONALIZED_FOR_L10N=(
314 + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
315 + )
316 +
317 + local lang xflag
318 + for lang in "${MOZ_LANGS[@]}" ; do
319 + # en and en_US are handled internally
320 + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
321 + continue
322 + fi
323 +
324 + # strip region subtag if $lang is in the list
325 + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
326 + xflag=${lang%%-*}
327 + else
328 + xflag=${lang}
329 + fi
330 +
331 + SRC_URI+=" l10n_${xflag/[_@]/-}? ("
332 + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi"
333 + SRC_URI+=" )"
334 + IUSE+=" l10n_${xflag/[_@]/-}"
335 + done
336 +}
337 +mozilla_set_globals
338 +
339 +moz_clear_vendor_checksums() {
340 + debug-print-function ${FUNCNAME} "$@"
341 +
342 + if [[ ${#} -ne 1 ]] ; then
343 + die "${FUNCNAME} requires exact one argument"
344 + fi
345 +
346 + einfo "Clearing cargo checksums for ${1} ..."
347 +
348 + sed -i \
349 + -e 's/\("files":{\)[^}]*/\1/' \
350 + "${S}"/third_party/rust/${1}/.cargo-checksum.json \
351 + || die
352 +}
353 +
354 +moz_install_xpi() {
355 + debug-print-function ${FUNCNAME} "$@"
356 +
357 + if [[ ${#} -lt 2 ]] ; then
358 + die "${FUNCNAME} requires at least two arguments"
359 + fi
360 +
361 + local DESTDIR=${1}
362 + shift
363 +
364 + insinto "${DESTDIR}"
365 +
366 + local emid xpi_file xpi_tmp_dir
367 + for xpi_file in "${@}" ; do
368 + emid=
369 + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
370 +
371 + # Unpack XPI
372 + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
373 +
374 + # Determine extension ID
375 + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
376 + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
377 + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
378 + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
379 + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
380 + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
381 + else
382 + die "failed to determine extension id"
383 + fi
384 +
385 + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
386 + newins "${xpi_file}" "${emid}.xpi"
387 + done
388 +}
389 +
390 +mozconfig_add_options_ac() {
391 + debug-print-function ${FUNCNAME} "$@"
392 +
393 + if [[ ${#} -lt 2 ]] ; then
394 + die "${FUNCNAME} requires at least two arguments"
395 + fi
396 +
397 + local reason=${1}
398 + shift
399 +
400 + local option
401 + for option in ${@} ; do
402 + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
403 + done
404 +}
405 +
406 +mozconfig_add_options_mk() {
407 + debug-print-function ${FUNCNAME} "$@"
408 +
409 + if [[ ${#} -lt 2 ]] ; then
410 + die "${FUNCNAME} requires at least two arguments"
411 + fi
412 +
413 + local reason=${1}
414 + shift
415 +
416 + local option
417 + for option in ${@} ; do
418 + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
419 + done
420 +}
421 +
422 +mozconfig_use_enable() {
423 + debug-print-function ${FUNCNAME} "$@"
424 +
425 + if [[ ${#} -lt 1 ]] ; then
426 + die "${FUNCNAME} requires at least one arguments"
427 + fi
428 +
429 + local flag=$(use_enable "${@}")
430 + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
431 +}
432 +
433 +mozconfig_use_with() {
434 + debug-print-function ${FUNCNAME} "$@"
435 +
436 + if [[ ${#} -lt 1 ]] ; then
437 + die "${FUNCNAME} requires at least one arguments"
438 + fi
439 +
440 + local flag=$(use_with "${@}")
441 + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
442 +}
443 +
444 +pkg_pretend() {
445 + if [[ ${MERGE_TYPE} != binary ]] ; then
446 + if use pgo ; then
447 + if ! has usersandbox $FEATURES ; then
448 + die "You must enable usersandbox as X server can not run as root!"
449 + fi
450 + fi
451 +
452 + # Ensure we have enough disk space to compile
453 + if use pgo || use lto || use debug ; then
454 + CHECKREQS_DISK_BUILD="13500M"
455 + else
456 + CHECKREQS_DISK_BUILD="6400M"
457 + fi
458 +
459 + check-reqs_pkg_pretend
460 + fi
461 +}
462 +
463 +pkg_setup() {
464 + if [[ ${MERGE_TYPE} != binary ]] ; then
465 + if use pgo ; then
466 + if ! has userpriv ${FEATURES} ; then
467 + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!"
468 + fi
469 + fi
470 +
471 + # Ensure we have enough disk space to compile
472 + if use pgo || use lto || use debug ; then
473 + CHECKREQS_DISK_BUILD="13500M"
474 + else
475 + CHECKREQS_DISK_BUILD="6400M"
476 + fi
477 +
478 + check-reqs_pkg_setup
479 +
480 + llvm_pkg_setup
481 +
482 + if use clang && use lto ; then
483 + local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }')
484 + [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}")
485 + [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!"
486 +
487 + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }')
488 + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
489 + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!"
490 +
491 + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then
492 + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
493 + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:"
494 + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version"
495 + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version"
496 + eerror " - Build ${CATEGORY}/${PN} without USE=lto"
497 + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole "
498 + eerror " llvm/clang/lld/rust chain depending on your @world updates)"
499 + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
500 + fi
501 + fi
502 +
503 + if ! use clang && [[ $(gcc-major-version) -eq 11 ]] \
504 + && ! has_version -b ">sys-devel/gcc-11.1.0:11" ; then
505 + # bug 792705
506 + eerror "Using GCC 11 to compile firefox is currently known to be broken (see bug #792705)."
507 + die "Set USE=clang or select <gcc-11 to build ${CATEGORY}/${P}."
508 + fi
509 +
510 + python-any-r1_pkg_setup
511 +
512 + # Avoid PGO profiling problems due to enviroment leakage
513 + # These should *always* be cleaned up anyway
514 + unset \
515 + DBUS_SESSION_BUS_ADDRESS \
516 + DISPLAY \
517 + ORBIT_SOCKETDIR \
518 + SESSION_MANAGER \
519 + XAUTHORITY \
520 + XDG_CACHE_HOME \
521 + XDG_SESSION_COOKIE
522 +
523 + # Build system is using /proc/self/oom_score_adj, bug #604394
524 + addpredict /proc/self/oom_score_adj
525 +
526 + if use pgo ; then
527 + # Allow access to GPU during PGO run
528 + local ati_cards mesa_cards nvidia_cards render_cards
529 + shopt -s nullglob
530 +
531 + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
532 + if [[ -n "${ati_cards}" ]] ; then
533 + addpredict "${ati_cards}"
534 + fi
535 +
536 + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
537 + if [[ -n "${mesa_cards}" ]] ; then
538 + addpredict "${mesa_cards}"
539 + fi
540 +
541 + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
542 + if [[ -n "${nvidia_cards}" ]] ; then
543 + addpredict "${nvidia_cards}"
544 + fi
545 +
546 + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
547 + if [[ -n "${render_cards}" ]] ; then
548 + addpredict "${render_cards}"
549 + fi
550 +
551 + shopt -u nullglob
552 + fi
553 +
554 + if ! mountpoint -q /dev/shm ; then
555 + # If /dev/shm is not available, configure is known to fail with
556 + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
557 + ewarn "/dev/shm is not mounted -- expect build failures!"
558 + fi
559 +
560 + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
561 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
562 + # get your own set of keys.
563 + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
564 + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
565 + fi
566 +
567 + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
568 + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
569 + fi
570 +
571 + # Mozilla API keys (see https://location.services.mozilla.com/api)
572 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
573 + # get your own set of keys.
574 + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
575 + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
576 + fi
577 +
578 + # Ensure we use C locale when building, bug #746215
579 + export LC_ALL=C
580 + fi
581 +}
582 +
583 +src_unpack() {
584 + local _lp_dir="${WORKDIR}/language_packs"
585 + local _src_file
586 +
587 + if [[ ! -d "${_lp_dir}" ]] ; then
588 + mkdir "${_lp_dir}" || die
589 + fi
590 +
591 + for _src_file in ${A} ; do
592 + if [[ ${_src_file} == *.xpi ]]; then
593 + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
594 + else
595 + unpack ${_src_file}
596 + fi
597 + done
598 +}
599 +
600 +src_prepare() {
601 + if use lto; then
602 + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
603 + fi
604 +
605 + if use system-av1 && has_version "<media-libs/dav1d-1.0.0"; then
606 + rm -v "${WORKDIR}"/firefox-patches/0033-bgo-835788-dav1d-1.0.0-support.patch || die
607 + elog "<media-libs/dav1d-1.0.0 detected, removing 1.0.0 compat patch."
608 + elif ! use system-av1; then
609 + rm -v "${WORKDIR}"/firefox-patches/0033-bgo-835788-dav1d-1.0.0-support.patch || die
610 + elog "-system-av1 USE flag detected, removing 1.0.0 compat patch."
611 + fi
612 +
613 + eapply "${WORKDIR}/firefox-patches"
614 +
615 + # Allow user to apply any additional patches without modifing ebuild
616 + eapply_user
617 +
618 + # Make cargo respect MAKEOPTS
619 + export CARGO_BUILD_JOBS="$(makeopts_jobs)"
620 +
621 + # Make LTO respect MAKEOPTS
622 + sed -i \
623 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
624 + "${S}"/build/moz.configure/lto-pgo.configure \
625 + || die "sed failed to set num_cores"
626 +
627 + # Make ICU respect MAKEOPTS
628 + sed -i \
629 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
630 + "${S}"/intl/icu_sources_data.py \
631 + || die "sed failed to set num_cores"
632 +
633 + # sed-in toolchain prefix
634 + sed -i \
635 + -e "s/objdump/${CHOST}-objdump/" \
636 + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \
637 + || die "sed failed to set toolchain prefix"
638 +
639 + sed -i \
640 + -e 's/ccache_stats = None/return None/' \
641 + "${S}"/python/mozbuild/mozbuild/controller/building.py \
642 + || die "sed failed to disable ccache stats call"
643 +
644 + einfo "Removing pre-built binaries ..."
645 + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
646 +
647 + # Clearing checksums where we have applied patches
648 + moz_clear_vendor_checksums target-lexicon-0.9.0
649 +
650 + # Create build dir
651 + BUILD_DIR="${WORKDIR}/${PN}_build"
652 + mkdir -p "${BUILD_DIR}" || die
653 +
654 + # Write API keys to disk
655 + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
656 + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die
657 + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
658 +
659 + xdg_environment_reset
660 +}
661 +
662 +src_configure() {
663 + # Show flags set at the beginning
664 + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
665 + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
666 + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
667 + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
668 + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
669 +
670 + local have_switched_compiler=
671 + if use clang && ! tc-is-clang ; then
672 + # Force clang
673 + einfo "Enforcing the use of clang due to USE=clang ..."
674 + have_switched_compiler=yes
675 + AR=llvm-ar
676 + CC=${CHOST}-clang
677 + CXX=${CHOST}-clang++
678 + NM=llvm-nm
679 + RANLIB=llvm-ranlib
680 + elif ! use clang && ! tc-is-gcc ; then
681 + # Force gcc
682 + have_switched_compiler=yes
683 + einfo "Enforcing the use of gcc due to USE=-clang ..."
684 + AR=gcc-ar
685 + CC=${CHOST}-gcc
686 + CXX=${CHOST}-g++
687 + NM=gcc-nm
688 + RANLIB=gcc-ranlib
689 + fi
690 +
691 + if [[ -n "${have_switched_compiler}" ]] ; then
692 + # Because we switched active compiler we have to ensure
693 + # that no unsupported flags are set
694 + strip-unsupported-flags
695 + fi
696 +
697 + # Ensure we use correct toolchain
698 + export HOST_CC="$(tc-getBUILD_CC)"
699 + export HOST_CXX="$(tc-getBUILD_CXX)"
700 + tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
701 +
702 + # Pass the correct toolchain paths through cbindgen
703 + if tc-is-cross-compiler ; then
704 + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}"
705 + fi
706 +
707 + # Set MOZILLA_FIVE_HOME
708 + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
709 +
710 + # python/mach/mach/mixin/process.py fails to detect SHELL
711 + export SHELL="${EPREFIX}/bin/bash"
712 +
713 + # Set state path
714 + export MOZBUILD_STATE_PATH="${BUILD_DIR}"
715 +
716 + # Set MOZCONFIG
717 + export MOZCONFIG="${S}/.mozconfig"
718 +
719 + # Initialize MOZCONFIG
720 + mozconfig_add_options_ac '' --enable-application=comm/mail
721 +
722 + # Set Gentoo defaults
723 + export MOZILLA_OFFICIAL=1
724 +
725 + mozconfig_add_options_ac 'Gentoo default' \
726 + --allow-addon-sideload \
727 + --disable-cargo-incremental \
728 + --disable-crashreporter \
729 + --disable-install-strip \
730 + --disable-strip \
731 + --disable-updater \
732 + --enable-js-shell \
733 + --enable-official-branding \
734 + --enable-release \
735 + --enable-system-ffi \
736 + --enable-system-pixman \
737 + --host="${CBUILD:-${CHOST}}" \
738 + --libdir="${EPREFIX}/usr/$(get_libdir)" \
739 + --prefix="${EPREFIX}/usr" \
740 + --target="${CHOST}" \
741 + --without-ccache \
742 + --with-intl-api \
743 + --with-libclang-path="$(llvm-config --libdir)" \
744 + --with-system-nspr \
745 + --with-system-nss \
746 + --with-system-zlib \
747 + --with-toolchain-prefix="${CHOST}-" \
748 + --with-unsigned-addon-scopes=app,system \
749 + --x-includes="${ESYSROOT}/usr/include" \
750 + --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
751 +
752 + # Set update channel
753 + local update_channel=release
754 + [[ -n ${MOZ_ESR} ]] && update_channel=esr
755 + mozconfig_add_options_ac '' --update-channel=${update_channel}
756 +
757 + if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
758 + mozconfig_add_options_ac '' --enable-rust-simd
759 + fi
760 +
761 + if [[ -s "${S}/api-google.key" ]] ; then
762 + local key_origin="Gentoo default"
763 + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
764 + key_origin="User value"
765 + fi
766 +
767 + mozconfig_add_options_ac "${key_origin}" \
768 + --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
769 + else
770 + einfo "Building without Google API key ..."
771 + fi
772 +
773 + if [[ -s "${S}/api-location.key" ]] ; then
774 + local key_origin="Gentoo default"
775 + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
776 + key_origin="User value"
777 + fi
778 +
779 + mozconfig_add_options_ac "${key_origin}" \
780 + --with-google-location-service-api-keyfile="${S}/api-location.key"
781 + else
782 + einfo "Building without Location API key ..."
783 + fi
784 +
785 + if [[ -s "${S}/api-mozilla.key" ]] ; then
786 + local key_origin="Gentoo default"
787 + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
788 + key_origin="User value"
789 + fi
790 +
791 + mozconfig_add_options_ac "${key_origin}" \
792 + --with-mozilla-api-keyfile="${S}/api-mozilla.key"
793 + else
794 + einfo "Building without Mozilla API key ..."
795 + fi
796 +
797 + mozconfig_use_with system-av1
798 + mozconfig_use_with system-harfbuzz
799 + mozconfig_use_with system-harfbuzz system-graphite2
800 + mozconfig_use_with system-icu
801 + mozconfig_use_with system-jpeg
802 + mozconfig_use_with system-libevent system-libevent "${ESYSROOT}/usr"
803 + mozconfig_use_with system-libvpx
804 + mozconfig_use_with system-png
805 + mozconfig_use_with system-webp
806 +
807 + mozconfig_use_enable dbus
808 +
809 + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
810 +
811 + if use hardened ; then
812 + mozconfig_add_options_ac "+hardened" --enable-hardening
813 + append-ldflags "-Wl,-z,relro -Wl,-z,now"
814 + fi
815 +
816 + mozconfig_use_enable jack
817 +
818 + mozconfig_use_enable pulseaudio
819 + # force the deprecated alsa sound code if pulseaudio is disabled
820 + if use kernel_linux && ! use pulseaudio ; then
821 + mozconfig_add_options_ac '-pulseaudio' --enable-alsa
822 + fi
823 +
824 + mozconfig_use_enable sndio
825 +
826 + mozconfig_use_enable wifi necko-wifi
827 +
828 + if use wayland ; then
829 + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland
830 + else
831 + mozconfig_add_options_ac '' --enable-default-toolkit=cairo-gtk3
832 + fi
833 +
834 + if use lto ; then
835 + if use clang ; then
836 + # Upstream only supports lld when using clang
837 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
838 +
839 + mozconfig_add_options_ac '+lto' --enable-lto=cross
840 + else
841 + # ld.gold is known to fail:
842 + # /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld.gold: internal error in set_xindex, at /var/tmp/portage/sys-devel/binutils-2.37_p1-r1/work/binutils-2.37/gold/object.h:1050
843 +
844 + # ThinLTO is currently broken, see bmo#1644409
845 + mozconfig_add_options_ac '+lto' --enable-lto=full
846 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
847 + fi
848 +
849 + if use pgo ; then
850 + mozconfig_add_options_ac '+pgo' MOZ_PGO=1
851 +
852 + if use clang ; then
853 + # Used in build/pgo/profileserver.py
854 + export LLVM_PROFDATA="llvm-profdata"
855 + fi
856 + fi
857 + else
858 + # Avoid auto-magic on linker
859 + if use clang ; then
860 + # This is upstream's default
861 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
862 + else
863 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
864 + fi
865 + fi
866 +
867 + # LTO flag was handled via configure
868 + filter-flags '-flto*'
869 +
870 + mozconfig_use_enable debug
871 + if use debug ; then
872 + mozconfig_add_options_ac '+debug' --disable-optimize
873 + else
874 + if is-flag '-g*' ; then
875 + if use clang ; then
876 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
877 + else
878 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
879 + fi
880 + else
881 + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
882 + fi
883 +
884 + if is-flag '-O0' ; then
885 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
886 + elif is-flag '-O4' ; then
887 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
888 + elif is-flag '-O3' ; then
889 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
890 + elif is-flag '-O1' ; then
891 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
892 + elif is-flag '-Os' ; then
893 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
894 + else
895 + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
896 + fi
897 + fi
898 +
899 + # Debug flag was handled via configure
900 + filter-flags '-g*'
901 +
902 + # Optimization flag was handled via configure
903 + filter-flags '-O*'
904 +
905 + # Modifications to better support ARM, bug #553364
906 + if use cpu_flags_arm_neon ; then
907 + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
908 +
909 + if ! tc-is-clang ; then
910 + # thumb options aren't supported when using clang, bug 666966
911 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \
912 + --with-thumb=yes \
913 + --with-thumb-interwork=no
914 + fi
915 + fi
916 +
917 + if [[ ${CHOST} == armv*h* ]] ; then
918 + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
919 +
920 + if ! use system-libvpx ; then
921 + sed -i \
922 + -e "s|softfp|hard|" \
923 + "${S}"/media/libvpx/moz.build \
924 + || die
925 + fi
926 + fi
927 +
928 + if use clang ; then
929 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
930 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
931 + # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64')
932 + local disable_elf_hack=
933 + if use amd64 ; then
934 + disable_elf_hack=yes
935 + elif use x86 ; then
936 + disable_elf_hack=yes
937 + elif use arm ; then
938 + disable_elf_hack=yes
939 + fi
940 +
941 + if [[ -n ${disable_elf_hack} ]] ; then
942 + mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack
943 + fi
944 + elif tc-is-gcc ; then
945 + if ver_test $(gcc-fullversion) -ge 10 ; then
946 + einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..."
947 + append-cxxflags -fno-tree-loop-vectorize
948 + fi
949 + fi
950 +
951 + # Additional ARCH support
952 + case "${ARCH}" in
953 + arm)
954 + # Reduce the memory requirements for linking
955 + if use clang ; then
956 + # Nothing to do
957 + :;
958 + elif tc-ld-is-gold || use lto ; then
959 + append-ldflags -Wl,--no-keep-memory
960 + else
961 + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
962 + fi
963 + ;;
964 + esac
965 +
966 + if ! use elibc_glibc ; then
967 + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
968 + fi
969 +
970 + # Allow elfhack to work in combination with unstripped binaries
971 + # when they would normally be larger than 2GiB.
972 + append-ldflags "-Wl,--compress-debug-sections=zlib"
973 +
974 + # Make revdep-rebuild.sh happy; Also required for musl
975 + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
976 +
977 + # Pass $MAKEOPTS to build system
978 + export MOZ_MAKE_FLAGS="${MAKEOPTS}"
979 +
980 + # Use system's Python environment
981 + export MACH_USE_SYSTEM_PYTHON=1
982 +
983 + # Disable notification when build system has finished
984 + export MOZ_NOSPAM=1
985 +
986 + # Portage sets XARGS environment variable to "xargs -r" by default which
987 + # breaks build system's check_prog() function which doesn't support arguments
988 + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
989 +
990 + # Set build dir
991 + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
992 +
993 + # Show flags we will use
994 + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
995 + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
996 + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
997 + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
998 + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
999 +
1000 + # Handle EXTRA_CONF and show summary
1001 + local ac opt hash reason
1002 +
1003 + # Apply EXTRA_ECONF entries to $MOZCONFIG
1004 + if [[ -n ${EXTRA_ECONF} ]] ; then
1005 + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
1006 + for opt in "${ac[@]}"; do
1007 + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
1008 + done
1009 + fi
1010 +
1011 + echo
1012 + echo "=========================================================="
1013 + echo "Building ${PF} with the following configuration"
1014 + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
1015 + [[ -z ${hash} || ${hash} == \# ]] \
1016 + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
1017 + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
1018 + done
1019 + echo "=========================================================="
1020 + echo
1021 +
1022 + ./mach configure || die
1023 +}
1024 +
1025 +src_compile() {
1026 + local virtx_cmd=
1027 +
1028 + if use pgo ; then
1029 + virtx_cmd=virtx
1030 +
1031 + # Reset and cleanup environment variables used by GNOME/XDG
1032 + gnome2_environment_reset
1033 +
1034 + addpredict /root
1035 + fi
1036 +
1037 + local -x GDK_BACKEND=x11
1038 +
1039 + ${virtx_cmd} ./mach build --verbose \
1040 + || die
1041 +}
1042 +
1043 +src_install() {
1044 + # xpcshell is getting called during install
1045 + pax-mark m \
1046 + "${BUILD_DIR}"/dist/bin/xpcshell \
1047 + "${BUILD_DIR}"/dist/bin/${PN} \
1048 + "${BUILD_DIR}"/dist/bin/plugin-container
1049 +
1050 + DESTDIR="${D}" ./mach install || die
1051 +
1052 + # Upstream cannot ship symlink but we can (bmo#658850)
1053 + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
1054 + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
1055 +
1056 + # Don't install llvm-symbolizer from sys-devel/llvm package
1057 + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
1058 + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
1059 + fi
1060 +
1061 + # Install policy (currently only used to disable application updates)
1062 + insinto "${MOZILLA_FIVE_HOME}/distribution"
1063 + newins "${FILESDIR}"/distribution.ini distribution.ini
1064 + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
1065 +
1066 + # Install system-wide preferences
1067 + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
1068 + insinto "${PREFS_DIR}"
1069 + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
1070 +
1071 + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
1072 +
1073 + # Set dictionary path to use system hunspell
1074 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
1075 + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
1076 + EOF
1077 +
1078 + # Force hwaccel prefs if USE=hwaccel is enabled
1079 + if use hwaccel ; then
1080 + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
1081 + >>"${GENTOO_PREFS}" \
1082 + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
1083 + fi
1084 +
1085 + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
1086 + if use system-harfbuzz ; then
1087 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
1088 + sticky_pref("gfx.font_rendering.graphite.enabled", true);
1089 + EOF
1090 + fi
1091 +
1092 + # Install language packs
1093 + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
1094 + if [[ -n "${langpacks}" ]] ; then
1095 + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
1096 + fi
1097 +
1098 + # Install icons
1099 + local icon_srcdir="${S}/comm/mail/branding/thunderbird"
1100 + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
1101 +
1102 + insinto /usr/share/icons/hicolor/symbolic/apps
1103 + newins "${icon_symbolic_file}" ${PN}-symbolic.svg
1104 +
1105 + local icon size
1106 + for icon in "${icon_srcdir}"/default*.png ; do
1107 + size=${icon%.png}
1108 + size=${size##*/default}
1109 +
1110 + if [[ ${size} -eq 48 ]] ; then
1111 + newicon "${icon}" ${PN}.png
1112 + fi
1113 +
1114 + newicon -s ${size} "${icon}" ${PN}.png
1115 + done
1116 +
1117 + # Install menu
1118 + local app_name="Mozilla ${MOZ_PN^}"
1119 + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
1120 + local desktop_filename="${PN}.desktop"
1121 + local exec_command="${PN}"
1122 + local icon="${PN}"
1123 + local use_wayland="false"
1124 +
1125 + if use wayland ; then
1126 + use_wayland="true"
1127 + fi
1128 +
1129 + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
1130 +
1131 + sed -i \
1132 + -e "s:@NAME@:${app_name}:" \
1133 + -e "s:@EXEC@:${exec_command}:" \
1134 + -e "s:@ICON@:${icon}:" \
1135 + "${WORKDIR}/${PN}.desktop-template" \
1136 + || die
1137 +
1138 + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
1139 +
1140 + rm "${WORKDIR}/${PN}.desktop-template" || die
1141 +
1142 + # Install wrapper script
1143 + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
1144 + newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
1145 +
1146 + # Update wrapper
1147 + sed -i \
1148 + -e "s:@PREFIX@:${EPREFIX}/usr:" \
1149 + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
1150 + -e "s:@APULSELIB_DIR@:${apulselib}:" \
1151 + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
1152 + "${ED}/usr/bin/${PN}" \
1153 + || die
1154 +}
1155 +
1156 +pkg_preinst() {
1157 + xdg_pkg_preinst
1158 +
1159 + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
1160 + # does not need to be forced into the LD_LIBRARY_PATH
1161 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1162 + einfo "APULSE found; Generating library symlinks for sound support ..."
1163 + local lib
1164 + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
1165 + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
1166 + # A quickpkg rolled by hand will grab symlinks as part of the package,
1167 + # so we need to avoid creating them if they already exist.
1168 + if [[ ! -L ${lib##*/} ]] ; then
1169 + ln -s "${lib}" ${lib##*/} || die
1170 + fi
1171 + done
1172 + popd &>/dev/null || die
1173 + fi
1174 +}
1175 +
1176 +pkg_postinst() {
1177 + xdg_pkg_postinst
1178 +
1179 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1180 + elog "Apulse was detected at merge time on this system and so it will always be"
1181 + elog "used for sound. If you wish to use pulseaudio instead please unmerge"
1182 + elog "media-sound/apulse."
1183 + elog
1184 + fi
1185 +
1186 + local show_doh_information
1187 + local show_shortcut_information
1188 +
1189 + if [[ -z "${REPLACING_VERSIONS}" ]] ; then
1190 + # New install; Tell user that DoH is disabled by default
1191 + show_doh_information=yes
1192 + show_shortcut_information=no
1193 + else
1194 + local replacing_version
1195 + for replacing_version in ${REPLACING_VERSIONS} ; do
1196 + if ver_test "${replacing_version}" -lt 91.0 ; then
1197 + # Tell user that we no longer install a shortcut
1198 + # per supported display protocol
1199 + show_shortcut_information=yes
1200 + fi
1201 + done
1202 + fi
1203 +
1204 + if [[ -n "${show_doh_information}" ]] ; then
1205 + elog
1206 + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
1207 + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
1208 + elog "DNS traffic to Cloudflare by default is not a good idea and applications"
1209 + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
1210 + elog "(\"Off by choice\") by default."
1211 + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
1212 + fi
1213 +
1214 + if [[ -n "${show_shortcut_information}" ]] ; then
1215 + elog
1216 + elog "Since ${PN}-91.0 we no longer install multiple shortcuts for"
1217 + elog "each supported display protocol. Instead we will only install"
1218 + elog "one generic Mozilla ${PN^} shortcut."
1219 + elog "If you still want to be able to select between running Mozilla ${PN^}"
1220 + elog "on X11 or Wayland, you have to re-create these shortcuts on your own."
1221 + fi
1222 +
1223 + optfeature_header "Optional runtime features:"
1224 + optfeature "encrypted chat support" net-libs/libotr
1225 +}