Gentoo Archives: gentoo-commits

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