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: Thu, 08 Sep 2022 09:02:43
Message-Id: 1662627757.eb9d40ef5492dc164a48b295ff87d34a8695f595.juippis@gentoo
1 commit: eb9d40ef5492dc164a48b295ff87d34a8695f595
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 8 09:02:15 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 8 09:02:37 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb9d40ef
7
8 mail-client/thunderbird: add 102.2.2
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 mail-client/thunderbird/Manifest | 65 ++
13 mail-client/thunderbird/thunderbird-102.2.2.ebuild | 1169 ++++++++++++++++++++
14 2 files changed, 1234 insertions(+)
15
16 diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
17 index da39ace333ce..273dd738ed8d 100644
18 --- a/mail-client/thunderbird/Manifest
19 +++ b/mail-client/thunderbird/Manifest
20 @@ -65,6 +65,71 @@ DIST thunderbird-102.2.1-vi.xpi 721452 BLAKE2B d7a225305a51d837a019d6679d0f6c6ba
21 DIST thunderbird-102.2.1-zh-CN.xpi 718569 BLAKE2B 83d586f5ac233d8fc7b58e90fe43d006a5342ac5ea916ff90e733465b93dcaac1102b22ba509cb13bbf20bdf85cb6a273252862baaf386de7d43c81412ed56c9 SHA512 0c9d1b26cd3f127aa2d308375088f623d1d84b2bef5b6ea949aa28690d0567089a793e1aadf6baf1595845c9836c4589bb3b096543121947eabf735a7a576ff5
22 DIST thunderbird-102.2.1-zh-TW.xpi 723809 BLAKE2B ecf4e2a43b96ac2c4b1962522ee5d7dbbba04899dba8965ca19cc6227be7c22d1268889e7fc180155c52ca5eb8eca55adadae9d708b6a87427e003f7bdeb9ce0 SHA512 3be070c1acf7606b4fa124a4285454f0e3d5d2c4db4c1da22092bcbbeaa8e0f8a256a86568ef2582bd735fd4c44196dfd6fb7514aa27528afa2d309af043e554
23 DIST thunderbird-102.2.1.source.tar.xz 501438680 BLAKE2B 4d37c3fba8fc4e09fbc53c5153de1fa18dda621428c38079be827f015f6afc1a6241e3cb4f5d65fcac2128f1dc4ea336c185aeca35e67f4a9acaf529808dba93 SHA512 7b69cfffb5de56690cbbd97f6b627733072dee498a15adfece990f9019df8df948762ce8eb2ca2d91ef12ff56262fb1905476d8a477aed70bc71cd2f9f986ea4
24 +DIST thunderbird-102.2.2-af.xpi 551019 BLAKE2B 1d531ec1cc1d1ec8131a851611d07833b2085fee672b8ef2fbd3afd31dd2a529e021e3774e93c9a269a401348bc7bbc1ea3240aab64cf43c737f415f7c6a518c SHA512 859e1b5ef3f3a25eb1a18f16d9b29177bc16cf3b87cabed70f29412d836e05426e9997baba52c2b92238e15297a6e2a8b0ebb4ab00a0d8938e2c96cdeee34007
25 +DIST thunderbird-102.2.2-ar.xpi 655343 BLAKE2B c4b58bd6ad024b1d4f59973507c321cfb6d9d5be63ae9dc606a68cd19ec3af36648f8c57b3562f43b6b015aa4d998e58916366863a3bea6e8f1331fc111e5ae2 SHA512 52962d371852ca8a2af452ba8d27b9f963d1cac4ba2c7675990cdc51c4f0666c8a5985c94a58d56e1cfede5d95409bdbea0d5d0e7ef20d400057ee610cd3ea1f
26 +DIST thunderbird-102.2.2-ast.xpi 571773 BLAKE2B ef01cf049ea05985d98b273871039ae9bae917bef48a799993a75418e15b7fc412bc110ba4b77177d4d52c32cffd69206635c749b25d90bef8ecf8b652f70bec SHA512 f0baf717491cf326b732f9af819373ef1b8fdf286b20f10b28d0e50528f38d030ac30fd72b8805f2cb32214e2f9226e6fb1f5dac953bac85700dbf917d2ff6f1
27 +DIST thunderbird-102.2.2-be.xpi 686439 BLAKE2B 7e3ae9abd3d54bccf34a27140f2cc37d15236b02bf4da959ad46133f4d2ac2413cc8c9de0c54541c545befc7e24f84850dbfe29af211ddfd60696b871f5f28c9 SHA512 2e443c4d989dc8a4cb276f56cd767726dca0d42d74760f44e08e3dec6b38b9487dbae9f75cf64bb3e89eb65df6c41f5f83b786598de557ce1275b448ea36376a
28 +DIST thunderbird-102.2.2-bg.xpi 683356 BLAKE2B 82bf2d17deb8461f90f1140e31085e382c4d4998ff67cdba2d381e9099e25168fb765db9001971d883b796da47dd09fefc1009b017d90241c9a0738a7145cd3b SHA512 77361c7ec9791ffbc0a5471340454ecef8e4c51afd715ae1f78ecf16bf45f3ebd81e212cf125b92dff44cc1cd745153a354e96a9ff88305df9b56bc8bb452cac
29 +DIST thunderbird-102.2.2-br.xpi 613887 BLAKE2B 32e269a9452297b63023463d5ba6a132e0bfe4add0e89234c340a62f841a6d61dd69e42171589164f1359d88f9f5a9390614c58f4712778c9570e19bd8204378 SHA512 bb799d0c40d8a72be96da6fe3f403d03c3a89893e8535dc0891db528998072c0b31fec68741b5850482fc3f53235aa15f7b98343022d6aaedf7140c48837d688
30 +DIST thunderbird-102.2.2-ca.xpi 637360 BLAKE2B cd0b2fbe5af4721f1b8f23a2f06a20d41090d7fa5335fcca60760a28b2cc8542d7cb9daf483dc3b444de2cda4be3f28cf0154b5dfcb37f9200aecdaef63a7ac4 SHA512 15cc28c3450d457e4f877b46177d659f37b407c839b86f6d1ef67706d5d803dd0a4e866e4747a7260dc4bf48a7534b97460dc4ecafc268f4ccb8ee9ea50ed89d
31 +DIST thunderbird-102.2.2-cak.xpi 643587 BLAKE2B b72bd8ec5eb2ef8baec22117b0ebd1ab600eb521586dcfc92a130d500fe2c6686c617e5ce3feb1b1e943203b7a06d46354ca63674ae5dd1bafd0fbabfce98f77 SHA512 185099e834b389c438fe6a70fb646a7c7f0d9109222bec8f960df0b681e84df28e29e37fd7a11fc6ae2328b6f042f5273aeb0b78dc58280997d99a0a0fdeca85
32 +DIST thunderbird-102.2.2-cs.xpi 708029 BLAKE2B 8ce398c8ff7da9d3b083053a5f9513cc9fd3f3d172e1c547708067a425abd0d65b68f2c29cf6770c03e0735818f3ad4dcdad1bdf4fda12a04752bb54fa2ac41b SHA512 2c51eafaaab345799fabdbf0c926d15cfd0f6916d82016e1fc9632b3544d698bd44284eb2998d92b2ef3a26a5d592a18f038b061c6353e3bd9540400a8ef0708
33 +DIST thunderbird-102.2.2-cy.xpi 684010 BLAKE2B c14308c2a440e631b7811be182887da311548fe253b30f9ab79449181b27f9c6351a59164933551ba2e5b0f463f411ff8edbd5a154d1c38b869169248a797681 SHA512 63422801eba13b6dbd7cb7465d3cf7a58ad035f401a63639e14b2766e2b2b2256f4b10193e29e4e4e0159f293e0bc09bad502a79c753c9bace76279351e3f1cc
34 +DIST thunderbird-102.2.2-da.xpi 670190 BLAKE2B 5c4e95230bdb7c388e6763d6af1b0184d729ea970e24c9e386707d9f4c9da0d8b1da7c183e1be06e1249a81ab0c248060b21129627f98687bd2a30dbf6bf2e96 SHA512 a89e8683cb84e233f78b38bcb0105e216c7399dff6fc55bbd1294e5169fc424b72167f509d36ea728d042cc5818267de0ab8e0aad4b27e701f25cb100dcf045a
35 +DIST thunderbird-102.2.2-de.xpi 704110 BLAKE2B 312a62232fc010856025ae7f067980c3e5500843b5c3c1a066a2d16d1c4ec9420d2d8ca72b6b600c3c1d55f3a9d1e802aa48bc40c6fa1c8320b26148c366e2cf SHA512 b5a9cf4c78284a02eaaed15c094ebc7b67f460a086b4ba2af4f37db8507cb10934282c2dacf02098ddc18636cd3360627d027e19a664717871217be24822e2f4
36 +DIST thunderbird-102.2.2-dsb.xpi 717400 BLAKE2B 11817d12bd3c899896ce8849d65ba536de76a34773a7b8136ba0ab3418b7042119c6cf6535bfe96801aa7930233e470a0f8e2bfe22fba2e756429955c724465b SHA512 0ba6e645c43a2184f8093058de1f0c64de71bc6635405d415ed5f69dbe821bb348374a729f8233a2dcd9a57e6675115ed7b6060f743ee9ea07770a4e565d8025
37 +DIST thunderbird-102.2.2-el.xpi 814989 BLAKE2B d16c705b82141450d0582fd9ccbb66eeebc5d975609e6fad9ae7d77f6a152619df0236138ea37f9df681a1a1748140144574eec713c05a5305da11d10433437d SHA512 2ea56353550414823d1d3c94c94ceb6e4fa419ad03681e18b66bb7d7429f7258bacd2a53ae778601900186ab32b776ed42a6e354add893fc23e8bd2d3e29f6e4
38 +DIST thunderbird-102.2.2-en-CA.xpi 643665 BLAKE2B 322dd91e1f05b4d7a1b25ffde54c23c817ea1826b4539a0803ffc585aa9770cdc9dcc121d97b742a9c815e46b75746b8ab3e0fa4a09ca138370a82d634fb0145 SHA512 3c4c7a38ab271b4fb0e196c6e156fa13902252683a3e112107f89ed2a12b8430372e0400e87336a762b1c385fef1b8e16296df4f075c5e167617634346bd72ee
39 +DIST thunderbird-102.2.2-en-GB.xpi 645536 BLAKE2B 362c01e48ba68749dc55ef3a944d3254292dc63202360624965484997c03a88686b3a24a314ee749b26619bb180a14878fc779d400bbb307b360553e2936b372 SHA512 f80910605533843e5684da98c2c92afaed8983ccb25020af5cacf73a40f3cbad68a01aec81f01b58d6c230a82694a9097066ed071c2877e8adbcdf779f3f7f29
40 +DIST thunderbird-102.2.2-es-AR.xpi 695179 BLAKE2B 8b5ccdb1f08bf4055c4f556d97dd2b68fa7de973a1bd2d0d793c3a29a10e63d78586d0b0d23ef2666b28541bd4542ff79c48ca836879e79108b0e2d2cd4adf74 SHA512 f8b482d2352afe7d2a476ce41d557b4a5dc76bd5cb79fb9f0b833032c9372414eacc244e45197659e675ac8e3e64ff03010e07b754800ac2e5a18c6d8b2a3555
41 +DIST thunderbird-102.2.2-es-ES.xpi 650070 BLAKE2B 33eb10395ae5783b62819945a9105c1fa57511f9a001825b5d6d43c96010c725ee327cfbbc0c2224be0b45d08b3f3ed5bbf64a7d910643de8ae2ddef83743d0a SHA512 29cecb9eb4025ac874692ffe8c493c3848613f236bdda7212beb1a83ed38ad86c748be46bf63406a1627adc20dbc3ab03e2a5dc76c3265271040f0caec9eb06d
42 +DIST thunderbird-102.2.2-es-MX.xpi 697885 BLAKE2B 24c2befaf884ecd43bd0c7d54d7ad08b18c41f3631a842e7013e83e690c0c4680883763ce7b3475ca3a756ef4f0fbef63cb2a593157e2a3653e1d3771a3b2d9f SHA512 6f910ba1e2a23da12ff92dba3e5b35f8998f41d84d206ade1b1a1153efce4a6240b70af804ac3895fdcd5a45c8674746dccd6e5f6912e55170a45f0f5e83b4f3
43 +DIST thunderbird-102.2.2-et.xpi 667399 BLAKE2B ff5cd8e9630cb7d76df244ca979e7644123e2a89565a052930ce96e65c5a5bbd47154c9b58afb8aa2de73b7db48eb52d0bc1ef67780bc13a1b99184509114ebc SHA512 227f5d661d93b716ff3d3a3a88df368098f007e1d3abd8575712a6a8964d0d4c828ffb3f7d0cd8bf122024e7f76647830d4d843cf49bd392a829fb9fbbac90b6
44 +DIST thunderbird-102.2.2-eu.xpi 679390 BLAKE2B ed342cabe838369f877e785c560c9e90bb368b1a76d78adf69fecf5ceb3e161cb2c813c119234693aa4c4d497c14441ea0e93186d712ec3a33e0865063746a5e SHA512 cf5ebca53b78f52cdab68b8f01abe62915b868d64d9ecac3e6eeb6caef1e1a3128abb7d078cab5693f62b235594cab89b441d452e837266b1d21908a448d5c38
45 +DIST thunderbird-102.2.2-fi.xpi 669905 BLAKE2B ed4bfa065211802266ce17ea566ded22a5cd1e2f2407ada61807a6db5527cf62333d9ca4d22f2d827daa0081b6ccbee4c562b01ec415fc92e81effd13e9aa1ed SHA512 b48346a5620878c30aa6800acaef43b9b6b0cb345305ed071524df7848260c2216d56aebc257e7bd1ab18a88f223f71bdc24613b7f149b42772579134e4de5f9
46 +DIST thunderbird-102.2.2-fr.xpi 706739 BLAKE2B 0802c58bef02229a2edb7efd0db1741bfdd62eb6a97765484baefae64c9992f6951acaa625e452e5dbe8eb48867a906185455049e40fd313eee1b7849f4c5642 SHA512 33c64d813be6c284a53d720c4d8c89eef953a07a81b7254b390e7bc1e6c1de039ebd997e7b257a5e62bc1051e165561d30d514805f799475ee90588dd3fa6eff
47 +DIST thunderbird-102.2.2-fy-NL.xpi 690269 BLAKE2B 278a09e9e69bc95b4526a346084673b0d98d2b44561e826374a0aa6d516bbba10310a613d8f652c43a83cfad549004de8b0db045865fa09cac663033b39f7f97 SHA512 0e296381f5e2ccc3e4318b7f6f245094e66985aceeec755fa9eda3b927d517e7508911d66e5b47930b0496bdf032782019602c82383265c259585fcefa1e369a
48 +DIST thunderbird-102.2.2-ga-IE.xpi 607248 BLAKE2B 701981a13badbc0365d0299d39e3a9af22b05b056ac97bff48cc3d58a6732440002603921181f7d631c86c8d34c966533d07a758f280d95e9f4273134cca898a SHA512 270dbf27be672781478f3e01af71d4f588917fcbea404deb835ed5b56c67a76fe995d32274593b0d42b6ac4fa9cbfc64076e8634ea7f6f0ad664db49e2515c0a
49 +DIST thunderbird-102.2.2-gd.xpi 632123 BLAKE2B aa9c3d4d725bd2f79a8c11e74004edeba5f8f301ad8831737202d752a712e8c12a69884478b9b89e4f645085fb920cb2a0c284b163213f3f7014cbe8a5e742b6 SHA512 e097b40d9faeae18f53b85fc001a9dfb2cbcb7d06ecc405d4d76882ef1fa8348ad70bbd29546ac2c768cf0d2cbf1780bbeb3b357cc963cacc83e5d53455b3f89
50 +DIST thunderbird-102.2.2-gl.xpi 665001 BLAKE2B 41b4f320f2becbbbff5e5cf44fabec75bfb596bb818fab02f0a70a7efe82c942f8c104622ad76b1e698758da709538b2864d7bf71b65342c56ea5dba1958bbff SHA512 8c4c19b62af1e9a7bae13ede48fb88ed92f3469ea29c6beb73366c87ed06d462e708e97dc4ece421a94bc62ba6a56142156391702dcc16383f7369c1a92c5cd7
51 +DIST thunderbird-102.2.2-he.xpi 663365 BLAKE2B eb95586c0f253ff3026136ccc9bdbdd07200d5fac950a698e5f0db8d87179bbdfc12cd0782d85f875995573709fe9b480cdea361ae6bcce21b15e8359a322972 SHA512 ad31eaf38bc65f5f1c82210f86b93d54c902ad8e751e6f419d57345911da91c13ee1cdb8f8cf0e7d3c3b5427aba7f9dfd3d9b5f8df7640bafb6a9bc5269dc1a5
52 +DIST thunderbird-102.2.2-hr.xpi 662452 BLAKE2B e50270b5ada2e1c935846873b48f49a8b1dbafa6a4836ad12e230583ee9faa075f449320ff991a75fec428de61fbb808e95565cb3f6435933d1ed71a05a66f64 SHA512 e92341dafcf9ad7fee43eced957314e4f9d85599adaccb0377d9ada79706163ff1d081d90c21826e5e103a38c4e6ad70eddf9897ee31293fb8f1474c0ca110dd
53 +DIST thunderbird-102.2.2-hsb.xpi 715209 BLAKE2B 5ed7670ec4d65d0e8549fbf439edd3d6f05e09363c9f6b315fd5c2eb04a7276e7129419b29b8c820d6cd6d5083575ed194deda2e0a17afb1381d1d0688ae7f2f SHA512 1b70f3eaf11bb9235f770e7345e2cc48a8cc2d30f3bdb235bd3c5c8256782bfe2709475010f9c075d3a5211f2c3ce4a6b120847ccf5b507ee7af45a0fbccd12a
54 +DIST thunderbird-102.2.2-hu.xpi 717426 BLAKE2B 952d0a07cee5346a3847f3ab4fb2573529cf45463fb0b3349c3cd4e05ee081cfde753d5341a66a37b065bdc570425b54c48439c711112d5c119d2f26d5b1a5dc SHA512 ea2209ea7b46199d10f635c04b0419f25ef5ff6a9776b294c25d267d8010d01de9510af3ee4f3ee4a533a57686635b12a943e96f943076d7ff04b819f7613fc1
55 +DIST thunderbird-102.2.2-id.xpi 641542 BLAKE2B c7542797fb7fd4a755ce602a5b35835d1a4558b3fd845a811f19d6b143ed4c2b96dddaa76dae93d8a2015ee0bab3b6704e0f4539f6eb4e8d7d0c9e87fcef0a23 SHA512 0f3a2579a972adc57d0e0c2e501cd62b6d34db1811ce6df0e52adc0d5c9d386a9bb4fa66dab0969ea593fdca1a98371c6463c7bdce43b7f4668ae66f3af1b1bf
56 +DIST thunderbird-102.2.2-is.xpi 682148 BLAKE2B bfbf15dd02a801d12d42af9e7c7107dc3d802314c537ec5e6e22d4f219b1a7d21058d376ff69f006e915a6a54a739ac5b737d906d79beea1ba45d022b4bff2dd SHA512 ffa8b6088fa2d4bd1d836b5eb475ea01edc5305185b6158f50f4affedaa953c80e6e55f4bc207a32fac616ea4c3310defc208ac48abf6563bf33309d0dcb900f
57 +DIST thunderbird-102.2.2-it.xpi 599312 BLAKE2B 6af84ee88742ddd1ff535d042f7c154f62237a1f008abdb8e6246907b9c15dc4f4fa07f3998fedf581ed0ad01d2d70febb9ba7901c4680e4628bcd74b3184569 SHA512 77ead8ff8eb603c37dbaf9c519fd63f8e5e8ed144b8d81025858e83066ce49064c1be66dfe93e3352ac2b48bebcea47d9789a3ed40722b90cd7afd17d63533a1
58 +DIST thunderbird-102.2.2-ja.xpi 735624 BLAKE2B 4960bd1ae6449612f12673b42c06d5b966ddf5d1f8b038773ec0f3e6e9172de180a92d4e24fbb3759bde5d817c39277cb99f10344d8718d8082aa207ff7a905d SHA512 470d0c4f6e5e3a1eff4744df9c145f402a6c82085bf0a2e31a3ba0faff8cdd81e94479d59f31a057dca9d70fb1eaa962e67a5af5b2001c0cab9cef5bd7133ca8
59 +DIST thunderbird-102.2.2-ka.xpi 750626 BLAKE2B 99d2116d9a1353a0f2c136898e7d8e0deab78a01013c750375b441b6c08d179a537235c0bfb78771517c29c3921220294b55e85fbd2d0f40fe61c8c92d2248fb SHA512 f8fbafb4779259b134f63ac564bb6e00dd205e098f63933ce1073a3bf8c814cbadb5ba1c423092e7c20f710fb49dfef55c127dd922700d24d077528f4a9bcccc
60 +DIST thunderbird-102.2.2-kab.xpi 689693 BLAKE2B 1a4a04e28978cefe0259bfb7908a51b40c0c61b4b3a6dae0dc43d347dd592dfbf7aa08f9e8e1798390c20fe5849ff91d9a868fecaf20d6f133934c03af30704d SHA512 1ec7018205c16e230f90a6fc389a4d23032ca83af50f371af2d9009dc64c4c41393636ab55838188fe1197de77bb84e5d66357757e3dd56f82d276ca370c335f
61 +DIST thunderbird-102.2.2-kk.xpi 732212 BLAKE2B 9904232535a03c5ea3cf2a9a967fe52924e79f0146071873a6f13cdd7c51458340db55fa04bedd3c392da3feaf150e8fd67b547e1182de3865e0142756e5b31a SHA512 d9587c9eb5b40959d301b94bc572af56bbd8944510fa5ef897ef6019c73ce2f3746f6a06e290b43d148434827e5eae64845d93f580884c789baed636c4824f7b
62 +DIST thunderbird-102.2.2-ko.xpi 694690 BLAKE2B 20e4aa58243d70150224ac0e639f444a7a632934d83c3e76587ae38fab4ecfb49140faeb12c10633e7243fdd70f712a4dab1a81e781ead9ea3a5ab0c1b549591 SHA512 83130a82e034c0288391a6c90fdbc25d36ea2ea2d3e0ba0c823646828740b9ffc84013f05f8a17b54aeb434af57f99f3fcf89fc5467d878e395df96a8a7385c5
63 +DIST thunderbird-102.2.2-lt.xpi 682839 BLAKE2B 36aeaf13a1513d0f638a2cbcc61135cd9e482c0abd3b901b41f3db939d1dde168a2354e2ec6fb20450f0bb0419956ba7b0e6a0b38e6a6c2fefbfc1006f948054 SHA512 8d5b84d6bbd3ec6b8f6916b325b18596bfb4053d9441e291069192084edc25452107e76eccc803486f59e2e0bec221b0bd8651a36c388adc3385e18143e96fc2
64 +DIST thunderbird-102.2.2-lv.xpi 610373 BLAKE2B 1e25b3583e88f5621dc782ec0aceb93e61a286f10acccd9b1a22977d8a66879c4554d23ad8557aa4ad06c0ade420fe9b0cb0eb470f8b0c681fe99ba5955b10dc SHA512 c31f6f8579360b41163d1d38b44a83bed5a113633902216463a4e2b45237911fbe7bde2029debbde680c1034208df6f5bdb3800e2e9e2df13ec06fa4ae887728
65 +DIST thunderbird-102.2.2-ms.xpi 571202 BLAKE2B eee5c54da9a6e7d048c0d0c541a2e6ea1b62cb2c18994c07f7cf9d22ec2e84a130878d715b621119139a97a82cdaabf8208d2718c0fe9a02db5053dadb9cf7d5 SHA512 b469ee9b4dfc1e7c57f2c335e384110a876e158f3d5941eb29e7877449d6c64f7a5080e3a3c3742d09310af06f34a8ccca7bc34e72b4e6e2a6b75a18bc5bf4b0
66 +DIST thunderbird-102.2.2-nb-NO.xpi 649304 BLAKE2B 6a5b50faf242ae87b85175f675f7d7896dea3a84fed1828cfaafebe4eabb6b91b755c3bc1d7267dd107c51517e9467d922376691abd13c277574b000cedcf0e0 SHA512 a72b411707e5b71cdc606de623fc4042c20e4e32321459eb2880b6c6379c282eafe22ebccee26bee79d6f53bde8b01f1a8e41fa54acf479c3767d3384083ea02
67 +DIST thunderbird-102.2.2-nl.xpi 681881 BLAKE2B cf88ff09254db058c9d0c2f6a47f92ff368ad842e59b85d8eeb77b4b981cfb3532561edfd84fd06e450dcc739e77bcab002df89a722c81a4b0068cb24126e2d5 SHA512 cadde077541a46256d8b64879ca29f7975ad06f07c12812d4d983f9f27f869f4f40bb8c8c7f18c56b95610e23e998a787b3b05a17318f9c9520a54cc4f06f299
68 +DIST thunderbird-102.2.2-nn-NO.xpi 656314 BLAKE2B 1d3c9e88a9cee5e94434e1b58b438e8cfedab9f9fa1cab8a5d563aecf96f895acaf391ccebf749f6410f0379bc883a95146262dd9a5c10293a1572db5d539614 SHA512 312f9b7e8538dc26261ba9b0086fc966a77309fae62350f643961bebf5040b0a5d2794dccd12848dc237505c0ba7467fc6cb7011cd2f4c64755ffc74cbc258c4
69 +DIST thunderbird-102.2.2-pa-IN.xpi 645953 BLAKE2B af0a53e6f05fb4d1e0a1edeac4fe91c8ca3a866094d9042f270ebef72d62a22aa3b1f8bffaaca1d7224a5009fef81f16e086b817c42fe6f79949a448d11ee15f SHA512 d53d004517581177198d32836b0cff2f839b3a5cfa945ed0b7aa0030506ddcfe0f473153d72ab677e219212c068932e905139f6488cab64fa20c1e13f0d9c89c
70 +DIST thunderbird-102.2.2-pl.xpi 693052 BLAKE2B 5ab1fef7888807be2b6b785d53fe4a006da71ec436c0ad6c1da912a300975f7156b7cb4b446ffa0a25b190d351b17629f068d08ead761c17207651eec843dbfc SHA512 154bc52388d8145856f6f336e7b522a93101884eb110deba23b9469ffdb14e251df42fe144be27be3c0ef2d4656d04346a3530df96f4a4b85ef563b7d2dddc70
71 +DIST thunderbird-102.2.2-pt-BR.xpi 689716 BLAKE2B f84d73b04011fef91151e696486375ee550cd7ba035e129e23f6e76ca07290fe1481cab3bde1e5f2eb8b451023c2525c601d29f82891bd4f2ebb79bacd23059b SHA512 8aebce012dd7049a1d1bfb6532eb36cca5f5416c2a6df98840e8efa0d1e0a653bcf31406cf0bd3c43e5095c851564894860c3e939b0c5dda9bc1f1dc7ff3040a
72 +DIST thunderbird-102.2.2-pt-PT.xpi 666852 BLAKE2B f8f2b382dc0f5ed92f24bf6aea26695141b94b5b999c99ac0899851659906cb7f20b6146176cfda6edb3fe04358c2140c02030429c89ef872dcb975aa9b6bc1d SHA512 083b72bbaca165d88a380df267b69cf35afd8389a3e9df82e9989a31335e19dffef0811c63558cb1f5e62377cdcebaa4089ce814777d38dfabe344b7a6e2bce8
73 +DIST thunderbird-102.2.2-rm.xpi 681991 BLAKE2B b443646b06cb81abd4266466741238d04531d0d82efa99c7f6b3a01e4987a7b1d40aaefadc30ef232640eb8a4389e0fc2aa3cbee0f9cc81017df0fdf2cc017cd SHA512 4a39a81b980a25ba610d61dd5a06fc09fa709fcd79b6303f8237cc58c5c77b659ee6ffe7062c84326b9e8a2be78a11aa770cf1b99b65b34af1d40506f480ada5
74 +DIST thunderbird-102.2.2-ro.xpi 652512 BLAKE2B 075c5d692e347964772c45ca048b183d1723334d74ab2c63726363e0f9f01db85ace909c37f77669e9a68e978ca2f807d515efdc33fe8575c6cdd5bb8f743798 SHA512 358a128d632e58c7f115b7e9f84a6d4ea009abcef5c90ca77eb1096ab696aa71f08d413540777ec707e6978fae6fbd2f9f23fba4a3d0f7a0ed3b2c5a8ff0c9e4
75 +DIST thunderbird-102.2.2-ru.xpi 799077 BLAKE2B dacc593ad9c7274405b86a6b59d09afdb8a2a96dff58a17e1177a9354e8794fb8930070616b63f250183c63156c2832a8365e034b1b78a7539f6d0054fcb90ec SHA512 2f0440116fb72c87af9d448dc2e99cacd50ddaf61769f80f5650e92dd117e2d48359250436dc943e76086e0a00b45c8557298786567182521fcdebe0dc28a6d9
76 +DIST thunderbird-102.2.2-sk.xpi 718203 BLAKE2B 679f45222a61b99c6e794fc502b794150cd01e890f308a66d10967f4b1c1e0cea629143670ac2bd006a7e9e0af363c937611231cce13c5fbdbe99b42e8d68110 SHA512 321a6d86662b08bfc2ac711c901c9b4dd53be06d60dc51f845377380e118feec46717ae5c826cfa5243828668f64c8e5741ec9bab233441319356dba83291c0d
77 +DIST thunderbird-102.2.2-sl.xpi 681765 BLAKE2B ff279a85600312e162487cec1fd1f8310d53d4222e72542588d5dba1de9531562d59d0ae534a31f67f643454b827842cea27fe8771d020f9fc12518120c8657d SHA512 4cba33f9cbf104b158a934a9ee8f9493b3d55f9c81f75b419d5bb2bd86409a751a94220d66b488c0c2361ec03d20f606fd7b4f9bef7a54354edd7274a8adb363
78 +DIST thunderbird-102.2.2-sq.xpi 691694 BLAKE2B 26749ce2f595265fe80950d53ed2048a294028d003bcb93fda700a56e880967e29b81d746ad02a5acfd32ce77437bed8ca8a174b4b84b62a34051f32588e4916 SHA512 08571acad5a19bd8e9190825669622cd73b1bb7db50bbe60639c8825ff086f1a4ba0133874aa5e2b2ff90e705650d3f2222cfd76496792df13bcf57d43163c31
79 +DIST thunderbird-102.2.2-sr.xpi 701538 BLAKE2B 9216366b0b9aba36426444b4cebd8b306703bfb9acaf893e1f8880c3e3d0ed61eff8e7bcdc83e77c721aa482d39ee9ebe69b627df5f6dc40e50e3d8e961b5730 SHA512 bf6230f10051872d83539ffefaf4f6f0ab8a4c68e9e9b01b86d723638e1e9322c02046c751f1daa74fc0497d1f7b19e106475693dcf73873ad944d46f3343acb
80 +DIST thunderbird-102.2.2-sv-SE.xpi 685591 BLAKE2B c16b56fa7635b5097b051de9c1115ebe881299251d9b65dff4aa59564c2bfa04c318749b1953f3d43161968810d671a1bca71f2745e39b082e19caeaaddff105 SHA512 395ca455cff9987974b6915dc48d4dd2ab82461ea061ba482946d115ce068ef08369ea84d21a8afc61baee20ad513b71a96f62cab69353beffb4b04f38a0a8eb
81 +DIST thunderbird-102.2.2-th.xpi 736310 BLAKE2B 73780f77d3fe10f7cdb103b425be764610719cf3b823e76d240d7d9f42e116582b43308fd079d37caf93070408edfe47d799176be1af457d5ad1f3f77d49d27a SHA512 982d2f8543dacfb5748e3026b3da80ab80b8833c1baf22d6f0fb86cd98eeca94aaa728177348c16d60d4ebbfcbd83ab45bcbbf756f9bc52f5e536d32e6734232
82 +DIST thunderbird-102.2.2-tr.xpi 693690 BLAKE2B 9a1f4270524ced9d2a7323a2363d2caf864f500901cc9053cbd748b030391544a911cef79087c47a8d48f3f7178055c3753da25526d3b58ea2ab9c89117ca52d SHA512 22d952ab7d28fe81c9a12a50992f41fdf52efb711ccab1d7e883ed3eebd8307d30d93380413c9dd5b7c9296cc8aa53905a96ef1b2fa130a7aea3ed39470cd8ed
83 +DIST thunderbird-102.2.2-uk.xpi 792340 BLAKE2B f44ee129b155d23a918f05d508d89e2117aa1f9d8ad7745277b5453770005d23a98f3af7f0faf9795dcaf4baf4d60dc33bd0397c4553bcdc6ec4b0d87c80253c SHA512 cdf50971d33b9fabf8173dae4d6b96e8010464fdd0b202d682c51c77b63b67e2d4dfedaf12821bb6daa35eddac4d3bda6051e944487b814ee82a4e86bc8338d6
84 +DIST thunderbird-102.2.2-uz.xpi 587622 BLAKE2B 7e7f3692f42efe9f51626cf369518bddb3b40e4e8f59af26bc0c1471ac4837c80af568b0585c7dffd4767793e693a0aa93e4c86b049b24d6283f2d236bec99bb SHA512 f611b57ab9b0b766fc94cf2e471ea93ba2bdb0a66e25de7cedeacf9ff1c4d55cf68a4eb7c19cee46e7e8525378a1e608c694f8194e31e011167cff0b32a37ee2
85 +DIST thunderbird-102.2.2-vi.xpi 723630 BLAKE2B c80f2f3e2b875a7466536a080945f07972fc3a46afb4d9d1f6fde61505c35a0bab663576353f4aca7ad1b101b6764205fcf49bcec934cf8a8c6825b80984d15b SHA512 b7ddf3d8cb7f94b7ec75f1f7b2dccfcfbaf2ea0758f63611c7bb3c0b269c4db1d9817c3728d4b0e4bef95cf1df566c00aa7db214c061af970260463e255a2003
86 +DIST thunderbird-102.2.2-zh-CN.xpi 721837 BLAKE2B 2199036d4567fff975db0480d0648567453e49a47a840c3884728a89600f4dbbd8f6f5ade31d1252af56a63028095390bd6fe0628934963e3380dcfcec598510 SHA512 5ee58a8c9cf8fb0c46f22115224b723b8fc73ae79905c68a8c9c26c282a778cee4d2b930f626eb9a7326c7082c4bbb94c48fe41d38205ff2946462e82d5752e9
87 +DIST thunderbird-102.2.2-zh-TW.xpi 726300 BLAKE2B 572a2504f82b2be81263c043125a27a526faa8228065ac853bb4018f4941819fd7b39fc2348c31d76219d16d90b9875f64c6d1abb792e319a7e054c933fce21b SHA512 bb839a7ac91905f79259492b5a252e5eeba7316c6cd67f514e8da872ae8afc3ebe4ea76eedf9db684c11f8d0b891320d6482258c53c2d491dfa5563aaa416124
88 +DIST thunderbird-102.2.2.source.tar.xz 504122840 BLAKE2B 1925eaadeb11627bf7bae156f881330cfa3f111b373ace732139606f72141a90df17890e1d9b2507e53603a85d47c11b8fcfa3a2bffec155415553c683a0ee8f SHA512 fe72ddb81d35d4a85b25a6d955a0b0f705aeda2dca0f572efca7ce94041c4ddcead6c690bda8d4bded4c43e12a15669f9608db6debec38d8b5157a914e280db5
89 DIST thunderbird-91.13.0-af.xpi 561879 BLAKE2B 69a959c61b28e7ee9733db245ffc91ebefa3396c1561b933b1dbfe1135ff88b3c5199be2d29e43e404e63f0016fa05838c7612823727fd061ad8f0407a762d2e SHA512 bd52e0f660db3046c8641038451e439c79f3961df342b69365faa9b8f2fb5d8e165a8b9249989524cd4e0bdc5867c872ff6ddbe5aad1c88bc0a869d4cf16e9c9
90 DIST thunderbird-91.13.0-ar.xpi 665731 BLAKE2B 3302223e35bef747a8c04a2cb25c1bdc6482674fff85bd4c6b278ff9be0a1f72615d075e13c185dce6296331bdde42bd487d9fda1f47f8fcad8806dfb9882009 SHA512 b510f1277a4a558f9e2552bccfa6f988c62b47366665c934bb173cb58480104b026f487e1b1d778cd25990a14b2a4b39b6f78852c3d0b220bf31e8f021ece2a0
91 DIST thunderbird-91.13.0-ast.xpi 580513 BLAKE2B 811bde79b93aad145f92dd7df9a998622b5d097c13edd6195c67f83bfdd8526dacdd29f35c2a33652997659b68ea2d745714b8b521236e6f6ec91ab324ddf994 SHA512 2f229377f089e383badebc251f40d6fd7171f3c6e4dfaa3eb2cc205cea0de6495f42efd940c6db8976c8c60997229c61b876f428b8a71ca2fc43590ba43c4cf2
92
93 diff --git a/mail-client/thunderbird/thunderbird-102.2.2.ebuild b/mail-client/thunderbird/thunderbird-102.2.2.ebuild
94 new file mode 100644
95 index 000000000000..5b45a09b43e3
96 --- /dev/null
97 +++ b/mail-client/thunderbird/thunderbird-102.2.2.ebuild
98 @@ -0,0 +1,1169 @@
99 +# Copyright 1999-2022 Gentoo Authors
100 +# Distributed under the terms of the GNU General Public License v2
101 +
102 +EAPI=8
103 +
104 +FIREFOX_PATCHSET="firefox-102esr-patches-02j.tar.xz"
105 +
106 +LLVM_MAX_SLOT=14
107 +
108 +PYTHON_COMPAT=( python3_{8..11} )
109 +PYTHON_REQ_USE="ncurses,sqlite,ssl"
110 +
111 +WANT_AUTOCONF="2.1"
112 +
113 +VIRTUALX_REQUIRED="pgo"
114 +
115 +MOZ_ESR=
116 +
117 +MOZ_PV=${PV}
118 +MOZ_PV_SUFFIX=
119 +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
120 + MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
121 +
122 + # Convert the ebuild version to the upstream Mozilla version
123 + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
124 + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
125 + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
126 +fi
127 +
128 +if [[ -n ${MOZ_ESR} ]] ; then
129 + # ESR releases have slightly different version numbers
130 + MOZ_PV="${MOZ_PV}esr"
131 +fi
132 +
133 +MOZ_PN="${PN%-bin}"
134 +MOZ_P="${MOZ_PN}-${MOZ_PV}"
135 +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
136 +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
137 +
138 +inherit autotools check-reqs desktop flag-o-matic gnome2-utils \
139 + llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \
140 + virtualx xdg
141 +
142 +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
143 +
144 +if [[ ${PV} == *_rc* ]] ; then
145 + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
146 +fi
147 +
148 +PATCH_URIS=(
149 + https://dev.gentoo.org/~{juippis,whissi,slashbeast}/mozilla/patchsets/${FIREFOX_PATCHSET}
150 +)
151 +
152 +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
153 + ${PATCH_URIS[@]}"
154 +
155 +DESCRIPTION="Thunderbird Mail Client"
156 +HOMEPAGE="https://www.thunderbird.net/"
157 +
158 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
159 +
160 +SLOT="0"
161 +LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
162 +
163 +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
164 +IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux"
165 +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp"
166 +IUSE+=" wayland wifi"
167 +
168 +# Thunderbird-only USE flags.
169 +IUSE+=" +system-librnp"
170 +
171 +REQUIRED_USE="debug? ( !system-av1 )
172 + pgo? ( lto )
173 + wifi? ( dbus )"
174 +
175 +# Thunderbird-only dependencies.
176 +TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2
177 + selinux? ( sec-policy/selinux-thunderbird )
178 + !system-librnp? ( dev-libs/jsoncpp )
179 + system-librnp? ( dev-util/librnp )"
180 +BDEPEND="${PYTHON_DEPS}
181 + app-arch/unzip
182 + app-arch/zip
183 + >=dev-util/cbindgen-0.24.3
184 + net-libs/nodejs
185 + virtual/pkgconfig
186 + virtual/rust
187 + || (
188 + (
189 + sys-devel/clang:14
190 + sys-devel/llvm:14
191 + clang? (
192 + =sys-devel/lld-14*
193 + pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] )
194 + )
195 + )
196 + (
197 + sys-devel/clang:13
198 + sys-devel/llvm:13
199 + clang? (
200 + =sys-devel/lld-13*
201 + pgo? ( =sys-libs/compiler-rt-sanitizers-13*[profile] )
202 + )
203 + )
204 + )
205 + amd64? ( >=dev-lang/nasm-2.14 )
206 + x86? ( >=dev-lang/nasm-2.14 )"
207 +
208 +COMMON_DEPEND="${TB_ONLY_DEPEND}
209 + dev-libs/atk
210 + dev-libs/expat
211 + dev-libs/glib:2
212 + dev-libs/libffi:=
213 + >=dev-libs/nss-3.79
214 + >=dev-libs/nspr-4.34
215 + media-libs/alsa-lib
216 + media-libs/fontconfig
217 + media-libs/freetype
218 + media-libs/mesa
219 + media-video/ffmpeg
220 + sys-libs/zlib
221 + virtual/freedesktop-icon-theme
222 + virtual/opengl
223 + x11-libs/cairo[X]
224 + x11-libs/gdk-pixbuf
225 + x11-libs/gtk+:3[X]
226 + x11-libs/libX11
227 + x11-libs/libXcomposite
228 + x11-libs/libXdamage
229 + x11-libs/libXext
230 + x11-libs/libXfixes
231 + x11-libs/libXrandr
232 + x11-libs/libXtst
233 + x11-libs/libxcb:=
234 + x11-libs/libxkbcommon[X]
235 + x11-libs/pango
236 + x11-libs/pixman
237 + dbus? (
238 + dev-libs/dbus-glib
239 + sys-apps/dbus
240 + )
241 + jack? ( virtual/jack )
242 + libproxy? ( net-libs/libproxy )
243 + sndio? ( >=media-sound/sndio-1.8.0-r1 )
244 + system-av1? (
245 + >=media-libs/dav1d-1.0.0:=
246 + >=media-libs/libaom-1.0.0:=
247 + )
248 + system-harfbuzz? (
249 + >=media-gfx/graphite2-1.3.13
250 + >=media-libs/harfbuzz-2.8.1:0=
251 + )
252 + system-icu? ( >=dev-libs/icu-71.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-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
257 + system-webp? ( >=media-libs/libwebp-1.1.0:0= )
258 + wayland? (
259 + x11-libs/gtk+:3[wayland]
260 + x11-libs/libdrm
261 + x11-libs/libxkbcommon[wayland]
262 + )
263 + wifi? (
264 + kernel_linux? (
265 + dev-libs/dbus-glib
266 + net-misc/networkmanager
267 + sys-apps/dbus
268 + )
269 + )"
270 +
271 +RDEPEND="${COMMON_DEPEND}
272 + jack? ( virtual/jack )
273 + openh264? ( media-libs/openh264:*[plugin] )
274 + pulseaudio? (
275 + || (
276 + media-sound/pulseaudio
277 + >=media-sound/apulse-0.1.12-r4
278 + )
279 + )"
280 +
281 +DEPEND="${COMMON_DEPEND}
282 + x11-libs/libICE
283 + x11-libs/libSM
284 + pulseaudio? (
285 + || (
286 + media-sound/pulseaudio
287 + >=media-sound/apulse-0.1.12-r4[sdk]
288 + )
289 + )"
290 +
291 +S="${WORKDIR}/${PN}-${PV%_*}"
292 +
293 +llvm_check_deps() {
294 + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
295 + einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
296 + return 1
297 + fi
298 +
299 + if use clang ; then
300 + if ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then
301 + einfo "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
302 + return 1
303 + fi
304 +
305 + if use pgo ; then
306 + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
307 + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
308 + return 1
309 + fi
310 + fi
311 + fi
312 +
313 + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
314 +}
315 +
316 +MOZ_LANGS=(
317 + af ar ast be bg br ca cak cs cy da de dsb
318 + el en-CA en-GB en-US es-AR es-ES es-MX et eu
319 + fi fr fy-NL ga-IE gd gl he hr hsb hu
320 + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
321 + pa-IN pl pt-BR pt-PT rm ro ru
322 + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
323 +)
324 +
325 +mozilla_set_globals() {
326 + # https://bugs.gentoo.org/587334
327 + local MOZ_TOO_REGIONALIZED_FOR_L10N=(
328 + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
329 + )
330 +
331 + local lang xflag
332 + for lang in "${MOZ_LANGS[@]}" ; do
333 + # en and en_US are handled internally
334 + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
335 + continue
336 + fi
337 +
338 + # strip region subtag if $lang is in the list
339 + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
340 + xflag=${lang%%-*}
341 + else
342 + xflag=${lang}
343 + fi
344 +
345 + SRC_URI+=" l10n_${xflag/[_@]/-}? ("
346 + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi"
347 + SRC_URI+=" )"
348 + IUSE+=" l10n_${xflag/[_@]/-}"
349 + done
350 +}
351 +mozilla_set_globals
352 +
353 +moz_clear_vendor_checksums() {
354 + debug-print-function ${FUNCNAME} "$@"
355 +
356 + if [[ ${#} -ne 1 ]] ; then
357 + die "${FUNCNAME} requires exact one argument"
358 + fi
359 +
360 + einfo "Clearing cargo checksums for ${1} ..."
361 +
362 + sed -i \
363 + -e 's/\("files":{\)[^}]*/\1/' \
364 + "${S}"/third_party/rust/${1}/.cargo-checksum.json \
365 + || die
366 +}
367 +
368 +moz_install_xpi() {
369 + debug-print-function ${FUNCNAME} "$@"
370 +
371 + if [[ ${#} -lt 2 ]] ; then
372 + die "${FUNCNAME} requires at least two arguments"
373 + fi
374 +
375 + local DESTDIR=${1}
376 + shift
377 +
378 + insinto "${DESTDIR}"
379 +
380 + local emid xpi_file xpi_tmp_dir
381 + for xpi_file in "${@}" ; do
382 + emid=
383 + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
384 +
385 + # Unpack XPI
386 + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
387 +
388 + # Determine extension ID
389 + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
390 + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
391 + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
392 + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
393 + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
394 + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
395 + else
396 + die "failed to determine extension id"
397 + fi
398 +
399 + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
400 + newins "${xpi_file}" "${emid}.xpi"
401 + done
402 +}
403 +
404 +mozconfig_add_options_ac() {
405 + debug-print-function ${FUNCNAME} "$@"
406 +
407 + if [[ ${#} -lt 2 ]] ; then
408 + die "${FUNCNAME} requires at least two arguments"
409 + fi
410 +
411 + local reason=${1}
412 + shift
413 +
414 + local option
415 + for option in ${@} ; do
416 + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
417 + done
418 +}
419 +
420 +mozconfig_add_options_mk() {
421 + debug-print-function ${FUNCNAME} "$@"
422 +
423 + if [[ ${#} -lt 2 ]] ; then
424 + die "${FUNCNAME} requires at least two arguments"
425 + fi
426 +
427 + local reason=${1}
428 + shift
429 +
430 + local option
431 + for option in ${@} ; do
432 + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
433 + done
434 +}
435 +
436 +mozconfig_use_enable() {
437 + debug-print-function ${FUNCNAME} "$@"
438 +
439 + if [[ ${#} -lt 1 ]] ; then
440 + die "${FUNCNAME} requires at least one arguments"
441 + fi
442 +
443 + local flag=$(use_enable "${@}")
444 + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
445 +}
446 +
447 +mozconfig_use_with() {
448 + debug-print-function ${FUNCNAME} "$@"
449 +
450 + if [[ ${#} -lt 1 ]] ; then
451 + die "${FUNCNAME} requires at least one arguments"
452 + fi
453 +
454 + local flag=$(use_with "${@}")
455 + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
456 +}
457 +
458 +pkg_pretend() {
459 + if [[ ${MERGE_TYPE} != binary ]] ; then
460 + if use pgo ; then
461 + if ! has usersandbox $FEATURES ; then
462 + die "You must enable usersandbox as X server can not run as root!"
463 + fi
464 + fi
465 +
466 + # Ensure we have enough disk space to compile
467 + if use pgo || use lto || use debug ; then
468 + CHECKREQS_DISK_BUILD="13500M"
469 + else
470 + CHECKREQS_DISK_BUILD="6600M"
471 + fi
472 +
473 + check-reqs_pkg_pretend
474 + fi
475 +}
476 +
477 +pkg_setup() {
478 + if [[ ${MERGE_TYPE} != binary ]] ; then
479 + if use pgo ; then
480 + if ! has userpriv ${FEATURES} ; then
481 + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!"
482 + fi
483 + fi
484 +
485 + # Ensure we have enough disk space to compile
486 + if use pgo || use lto || use debug ; then
487 + CHECKREQS_DISK_BUILD="13500M"
488 + else
489 + CHECKREQS_DISK_BUILD="6400M"
490 + fi
491 +
492 + check-reqs_pkg_setup
493 +
494 + llvm_pkg_setup
495 +
496 + if use clang && use lto ; then
497 + local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }')
498 + [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}")
499 + [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!"
500 +
501 + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }')
502 + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
503 + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!"
504 +
505 + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then
506 + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
507 + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:"
508 + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version"
509 + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version"
510 + eerror " - Build ${CATEGORY}/${PN} without USE=lto"
511 + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole "
512 + eerror " llvm/clang/lld/rust chain depending on your @world updates)"
513 + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
514 + fi
515 + fi
516 +
517 + python-any-r1_pkg_setup
518 +
519 + # Avoid PGO profiling problems due to enviroment leakage
520 + # These should *always* be cleaned up anyway
521 + unset \
522 + DBUS_SESSION_BUS_ADDRESS \
523 + DISPLAY \
524 + ORBIT_SOCKETDIR \
525 + SESSION_MANAGER \
526 + XAUTHORITY \
527 + XDG_CACHE_HOME \
528 + XDG_SESSION_COOKIE
529 +
530 + # Build system is using /proc/self/oom_score_adj, bug #604394
531 + addpredict /proc/self/oom_score_adj
532 +
533 + if use pgo ; then
534 + # Allow access to GPU during PGO run
535 + local ati_cards mesa_cards nvidia_cards render_cards
536 + shopt -s nullglob
537 +
538 + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
539 + if [[ -n "${ati_cards}" ]] ; then
540 + addpredict "${ati_cards}"
541 + fi
542 +
543 + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
544 + if [[ -n "${mesa_cards}" ]] ; then
545 + addpredict "${mesa_cards}"
546 + fi
547 +
548 + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
549 + if [[ -n "${nvidia_cards}" ]] ; then
550 + addpredict "${nvidia_cards}"
551 + fi
552 +
553 + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
554 + if [[ -n "${render_cards}" ]] ; then
555 + addpredict "${render_cards}"
556 + fi
557 +
558 + shopt -u nullglob
559 + fi
560 +
561 + if ! mountpoint -q /dev/shm ; then
562 + # If /dev/shm is not available, configure is known to fail with
563 + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
564 + ewarn "/dev/shm is not mounted -- expect build failures!"
565 + fi
566 +
567 + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
568 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
569 + # get your own set of keys.
570 + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
571 + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
572 + fi
573 +
574 + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
575 + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
576 + fi
577 +
578 + # Mozilla API keys (see https://location.services.mozilla.com/api)
579 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
580 + # get your own set of keys.
581 + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
582 + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
583 + fi
584 +
585 + # Ensure we use C locale when building, bug #746215
586 + export LC_ALL=C
587 + fi
588 +}
589 +
590 +src_unpack() {
591 + local _lp_dir="${WORKDIR}/language_packs"
592 + local _src_file
593 +
594 + if [[ ! -d "${_lp_dir}" ]] ; then
595 + mkdir "${_lp_dir}" || die
596 + fi
597 +
598 + for _src_file in ${A} ; do
599 + if [[ ${_src_file} == *.xpi ]]; then
600 + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
601 + else
602 + unpack ${_src_file}
603 + fi
604 + done
605 +}
606 +
607 +src_prepare() {
608 + if use lto; then
609 + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
610 + fi
611 +
612 + eapply "${WORKDIR}/firefox-patches"
613 +
614 + # Allow user to apply any additional patches without modifing ebuild
615 + eapply_user
616 +
617 + # Make cargo respect MAKEOPTS
618 + export CARGO_BUILD_JOBS="$(makeopts_jobs)"
619 +
620 + # Make LTO respect MAKEOPTS
621 + sed -i \
622 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
623 + "${S}"/build/moz.configure/lto-pgo.configure \
624 + || die "sed failed to set num_cores"
625 +
626 + # Make ICU respect MAKEOPTS
627 + sed -i \
628 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
629 + "${S}"/intl/icu_sources_data.py \
630 + || die "sed failed to set num_cores"
631 +
632 + # sed-in toolchain prefix
633 + sed -i \
634 + -e "s/objdump/${CHOST}-objdump/" \
635 + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \
636 + || die "sed failed to set toolchain prefix"
637 +
638 + sed -i \
639 + -e 's/ccache_stats = None/return None/' \
640 + "${S}"/python/mozbuild/mozbuild/controller/building.py \
641 + || die "sed failed to disable ccache stats call"
642 +
643 + einfo "Removing pre-built binaries ..."
644 + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
645 +
646 + # Clearing checksums where we have applied patches
647 + moz_clear_vendor_checksums audioipc
648 + moz_clear_vendor_checksums audioipc-client
649 + moz_clear_vendor_checksums audioipc-server
650 +
651 + # Create build dir
652 + BUILD_DIR="${WORKDIR}/${PN}_build"
653 + mkdir -p "${BUILD_DIR}" || die
654 +
655 + # Write API keys to disk
656 + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
657 + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die
658 + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
659 +
660 + xdg_environment_reset
661 +}
662 +
663 +src_configure() {
664 + # Show flags set at the beginning
665 + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
666 + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
667 + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
668 + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
669 + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
670 +
671 + local have_switched_compiler=
672 + if use clang && ! tc-is-clang ; then
673 + # Force clang
674 + einfo "Enforcing the use of clang due to USE=clang ..."
675 + have_switched_compiler=yes
676 + AR=llvm-ar
677 + AS=llvm-as
678 + CC=${CHOST}-clang
679 + CXX=${CHOST}-clang++
680 + NM=llvm-nm
681 + RANLIB=llvm-ranlib
682 + elif ! use clang && ! tc-is-gcc ; then
683 + # Force gcc
684 + have_switched_compiler=yes
685 + einfo "Enforcing the use of gcc due to USE=-clang ..."
686 + AR=gcc-ar
687 + CC=${CHOST}-gcc
688 + CXX=${CHOST}-g++
689 + NM=gcc-nm
690 + RANLIB=gcc-ranlib
691 + fi
692 +
693 + if [[ -n "${have_switched_compiler}" ]] ; then
694 + # Because we switched active compiler we have to ensure
695 + # that no unsupported flags are set
696 + strip-unsupported-flags
697 + fi
698 +
699 + # Ensure we use correct toolchain
700 + export HOST_CC="$(tc-getBUILD_CC)"
701 + export HOST_CXX="$(tc-getBUILD_CXX)"
702 + tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
703 +
704 + # Pass the correct toolchain paths through cbindgen
705 + if tc-is-cross-compiler ; then
706 + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}"
707 + fi
708 +
709 + # Set MOZILLA_FIVE_HOME
710 + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
711 +
712 + # python/mach/mach/mixin/process.py fails to detect SHELL
713 + export SHELL="${EPREFIX}/bin/bash"
714 +
715 + # Set state path
716 + export MOZBUILD_STATE_PATH="${BUILD_DIR}"
717 +
718 + # Set MOZCONFIG
719 + export MOZCONFIG="${S}/.mozconfig"
720 +
721 + # Initialize MOZCONFIG
722 + mozconfig_add_options_ac '' --enable-application=comm/mail
723 +
724 + # Set Gentoo defaults
725 + export MOZILLA_OFFICIAL=1
726 +
727 + mozconfig_add_options_ac 'Gentoo default' \
728 + --allow-addon-sideload \
729 + --disable-cargo-incremental \
730 + --disable-crashreporter \
731 + --disable-gpsd \
732 + --disable-install-strip \
733 + --disable-parental-controls \
734 + --disable-strip \
735 + --disable-updater \
736 + --enable-js-shell \
737 + --enable-negotiateauth \
738 + --enable-new-pass-manager \
739 + --enable-official-branding \
740 + --enable-release \
741 + --enable-system-ffi \
742 + --enable-system-pixman \
743 + --host="${CBUILD:-${CHOST}}" \
744 + --libdir="${EPREFIX}/usr/$(get_libdir)" \
745 + --prefix="${EPREFIX}/usr" \
746 + --target="${CHOST}" \
747 + --without-ccache \
748 + --without-wasm-sandboxed-libraries \
749 + --with-intl-api \
750 + --with-libclang-path="$(llvm-config --libdir)" \
751 + --with-system-nspr \
752 + --with-system-nss \
753 + --with-system-zlib \
754 + --with-toolchain-prefix="${CHOST}-" \
755 + --with-unsigned-addon-scopes=app,system \
756 + --x-includes="${ESYSROOT}/usr/include" \
757 + --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
758 +
759 + # Set update channel
760 + local update_channel=release
761 + [[ -n ${MOZ_ESR} ]] && update_channel=esr
762 + mozconfig_add_options_ac '' --update-channel=${update_channel}
763 +
764 + if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
765 + mozconfig_add_options_ac '' --enable-rust-simd
766 + fi
767 +
768 + # For future keywording: This is currently (97.0) only supported on:
769 + # amd64, arm, arm64 & x86.
770 + # Might want to flip the logic around if Firefox is to support more arches.
771 + if use ppc64; then
772 + mozconfig_add_options_ac '' --disable-sandbox
773 + else
774 + mozconfig_add_options_ac '' --enable-sandbox
775 + fi
776 +
777 + if [[ -s "${S}/api-google.key" ]] ; then
778 + local key_origin="Gentoo default"
779 + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
780 + key_origin="User value"
781 + fi
782 +
783 + mozconfig_add_options_ac "${key_origin}" \
784 + --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
785 + else
786 + einfo "Building without Google API key ..."
787 + fi
788 +
789 + if [[ -s "${S}/api-location.key" ]] ; then
790 + local key_origin="Gentoo default"
791 + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
792 + key_origin="User value"
793 + fi
794 +
795 + mozconfig_add_options_ac "${key_origin}" \
796 + --with-google-location-service-api-keyfile="${S}/api-location.key"
797 + else
798 + einfo "Building without Location API key ..."
799 + fi
800 +
801 + if [[ -s "${S}/api-mozilla.key" ]] ; then
802 + local key_origin="Gentoo default"
803 + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
804 + key_origin="User value"
805 + fi
806 +
807 + mozconfig_add_options_ac "${key_origin}" \
808 + --with-mozilla-api-keyfile="${S}/api-mozilla.key"
809 + else
810 + einfo "Building without Mozilla API key ..."
811 + fi
812 +
813 + mozconfig_use_with system-av1
814 + mozconfig_use_with system-harfbuzz
815 + mozconfig_use_with system-harfbuzz system-graphite2
816 + mozconfig_use_with system-icu
817 + mozconfig_use_with system-jpeg
818 + mozconfig_use_with system-libevent
819 + mozconfig_use_with system-libvpx
820 + mozconfig_use_with system-png
821 + mozconfig_use_with system-webp
822 +
823 + if use system-librnp; then
824 + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment
825 + mozconfig_use_with system-librnp
826 + fi
827 +
828 + mozconfig_use_enable dbus
829 + mozconfig_use_enable libproxy
830 +
831 + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
832 +
833 + if use hardened ; then
834 + mozconfig_add_options_ac "+hardened" --enable-hardening
835 + append-ldflags "-Wl,-z,relro -Wl,-z,now"
836 + fi
837 +
838 + local myaudiobackends=""
839 + use jack && myaudiobackends+="jack,"
840 + use sndio && myaudiobackends+="sndio,"
841 + use pulseaudio && myaudiobackends+="pulseaudio,"
842 + ! use pulseaudio && myaudiobackends+="alsa,"
843 +
844 + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}"
845 +
846 + mozconfig_use_enable wifi necko-wifi
847 +
848 + if use wayland ; then
849 + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland
850 + else
851 + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3
852 + fi
853 +
854 + if use lto ; then
855 + if use clang ; then
856 + # Upstream only supports lld when using clang
857 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
858 +
859 + mozconfig_add_options_ac '+lto' --enable-lto=cross
860 +
861 + else
862 + # ThinLTO is currently broken, see bmo#1644409
863 + mozconfig_add_options_ac '+lto' --enable-lto=full
864 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
865 + fi
866 +
867 + if use pgo ; then
868 + mozconfig_add_options_ac '+pgo' MOZ_PGO=1
869 +
870 + if use clang ; then
871 + # Used in build/pgo/profileserver.py
872 + export LLVM_PROFDATA="llvm-profdata"
873 + fi
874 + fi
875 + else
876 + # Avoid auto-magic on linker
877 + if use clang ; then
878 + # This is upstream's default
879 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
880 + else
881 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
882 + fi
883 + fi
884 +
885 + # LTO flag was handled via configure
886 + filter-flags '-flto*'
887 +
888 + mozconfig_use_enable debug
889 + if use debug ; then
890 + mozconfig_add_options_ac '+debug' --disable-optimize
891 + else
892 + if is-flag '-g*' ; then
893 + if use clang ; then
894 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
895 + else
896 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
897 + fi
898 + else
899 + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
900 + fi
901 +
902 + if is-flag '-O0' ; then
903 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
904 + elif is-flag '-O4' ; then
905 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
906 + elif is-flag '-O3' ; then
907 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
908 + elif is-flag '-O1' ; then
909 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
910 + elif is-flag '-Os' ; then
911 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
912 + else
913 + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
914 + fi
915 + fi
916 +
917 + # Debug flag was handled via configure
918 + filter-flags '-g*'
919 +
920 + # Optimization flag was handled via configure
921 + filter-flags '-O*'
922 +
923 + # Modifications to better support ARM, bug #553364
924 + if use cpu_flags_arm_neon ; then
925 + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
926 +
927 + if ! tc-is-clang ; then
928 + # thumb options aren't supported when using clang, bug 666966
929 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \
930 + --with-thumb=yes \
931 + --with-thumb-interwork=no
932 + fi
933 + fi
934 +
935 + if [[ ${CHOST} == armv*h* ]] ; then
936 + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
937 +
938 + if ! use system-libvpx ; then
939 + sed -i \
940 + -e "s|softfp|hard|" \
941 + "${S}"/media/libvpx/moz.build \
942 + || die
943 + fi
944 + fi
945 +
946 + if use clang ; then
947 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
948 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
949 + # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64')
950 + local disable_elf_hack=
951 + if use amd64 ; then
952 + disable_elf_hack=yes
953 + elif use x86 ; then
954 + disable_elf_hack=yes
955 + elif use arm ; then
956 + disable_elf_hack=yes
957 + fi
958 +
959 + if [[ -n ${disable_elf_hack} ]] ; then
960 + mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack
961 + fi
962 + elif tc-is-gcc ; then
963 + if ver_test $(gcc-fullversion) -ge 10 ; then
964 + einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..."
965 + append-cxxflags -fno-tree-loop-vectorize
966 + fi
967 + fi
968 +
969 + # Additional ARCH support
970 + case "${ARCH}" in
971 + arm)
972 + # Reduce the memory requirements for linking
973 + if use clang ; then
974 + # Nothing to do
975 + :;
976 + elif use lto ; then
977 + append-ldflags -Wl,--no-keep-memory
978 + else
979 + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
980 + fi
981 + ;;
982 + esac
983 +
984 + if ! use elibc_glibc ; then
985 + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
986 + fi
987 +
988 + # Allow elfhack to work in combination with unstripped binaries
989 + # when they would normally be larger than 2GiB.
990 + append-ldflags "-Wl,--compress-debug-sections=zlib"
991 +
992 + # Make revdep-rebuild.sh happy; Also required for musl
993 + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
994 +
995 + # Pass $MAKEOPTS to build system
996 + export MOZ_MAKE_FLAGS="${MAKEOPTS}"
997 +
998 + # Use system's Python environment
999 + PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
1000 +
1001 + if use system-python-libs; then
1002 + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system"
1003 + else
1004 + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
1005 + fi
1006 +
1007 + # Disable notification when build system has finished
1008 + export MOZ_NOSPAM=1
1009 +
1010 + # Portage sets XARGS environment variable to "xargs -r" by default which
1011 + # breaks build system's check_prog() function which doesn't support arguments
1012 + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
1013 +
1014 + # Set build dir
1015 + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
1016 +
1017 + # Show flags we will use
1018 + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
1019 + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
1020 + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
1021 + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
1022 + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
1023 +
1024 + # Handle EXTRA_CONF and show summary
1025 + local ac opt hash reason
1026 +
1027 + # Apply EXTRA_ECONF entries to $MOZCONFIG
1028 + if [[ -n ${EXTRA_ECONF} ]] ; then
1029 + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
1030 + for opt in "${ac[@]}"; do
1031 + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
1032 + done
1033 + fi
1034 +
1035 + echo
1036 + echo "=========================================================="
1037 + echo "Building ${PF} with the following configuration"
1038 + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
1039 + [[ -z ${hash} || ${hash} == \# ]] \
1040 + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
1041 + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
1042 + done
1043 + echo "=========================================================="
1044 + echo
1045 +
1046 + ./mach configure || die
1047 +}
1048 +
1049 +src_compile() {
1050 + local virtx_cmd=
1051 +
1052 + if use pgo ; then
1053 + virtx_cmd=virtx
1054 +
1055 + # Reset and cleanup environment variables used by GNOME/XDG
1056 + gnome2_environment_reset
1057 +
1058 + addpredict /root
1059 + fi
1060 +
1061 + local -x GDK_BACKEND=x11
1062 +
1063 + ${virtx_cmd} ./mach build --verbose \
1064 + || die
1065 +}
1066 +
1067 +src_install() {
1068 + # xpcshell is getting called during install
1069 + pax-mark m \
1070 + "${BUILD_DIR}"/dist/bin/xpcshell \
1071 + "${BUILD_DIR}"/dist/bin/${PN} \
1072 + "${BUILD_DIR}"/dist/bin/plugin-container
1073 +
1074 + DESTDIR="${D}" ./mach install || die
1075 +
1076 + # Upstream cannot ship symlink but we can (bmo#658850)
1077 + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
1078 + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
1079 +
1080 + # Don't install llvm-symbolizer from sys-devel/llvm package
1081 + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
1082 + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
1083 + fi
1084 +
1085 + # Install policy (currently only used to disable application updates)
1086 + insinto "${MOZILLA_FIVE_HOME}/distribution"
1087 + newins "${FILESDIR}"/distribution.ini distribution.ini
1088 + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
1089 +
1090 + # Install system-wide preferences
1091 + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
1092 + insinto "${PREFS_DIR}"
1093 + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
1094 +
1095 + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
1096 +
1097 + # Set dictionary path to use system hunspell
1098 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
1099 + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
1100 + EOF
1101 +
1102 + # Force hwaccel prefs if USE=hwaccel is enabled
1103 + if use hwaccel ; then
1104 + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
1105 + >>"${GENTOO_PREFS}" \
1106 + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
1107 +
1108 + if use wayland; then
1109 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs"
1110 + pref("gfx.x11-egl.force-enabled", false);
1111 + EOF
1112 + else
1113 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs"
1114 + pref("gfx.x11-egl.force-enabled", true);
1115 + EOF
1116 + fi
1117 + fi
1118 +
1119 + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
1120 + if use system-harfbuzz ; then
1121 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
1122 + sticky_pref("gfx.font_rendering.graphite.enabled", true);
1123 + EOF
1124 + fi
1125 +
1126 + # Install language packs
1127 + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
1128 + if [[ -n "${langpacks}" ]] ; then
1129 + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
1130 + fi
1131 +
1132 + # Install icons
1133 + local icon_srcdir="${S}/comm/mail/branding/thunderbird"
1134 + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
1135 +
1136 + insinto /usr/share/icons/hicolor/symbolic/apps
1137 + newins "${icon_symbolic_file}" ${PN}-symbolic.svg
1138 +
1139 + local icon size
1140 + for icon in "${icon_srcdir}"/default*.png ; do
1141 + size=${icon%.png}
1142 + size=${size##*/default}
1143 +
1144 + if [[ ${size} -eq 48 ]] ; then
1145 + newicon "${icon}" ${PN}.png
1146 + fi
1147 +
1148 + newicon -s ${size} "${icon}" ${PN}.png
1149 + done
1150 +
1151 + # Install menu
1152 + local app_name="Mozilla ${MOZ_PN^}"
1153 + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
1154 + local desktop_filename="${PN}.desktop"
1155 + local exec_command="${PN}"
1156 + local icon="${PN}"
1157 + local use_wayland="false"
1158 +
1159 + if use wayland ; then
1160 + use_wayland="true"
1161 + fi
1162 +
1163 + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
1164 +
1165 + sed -i \
1166 + -e "s:@NAME@:${app_name}:" \
1167 + -e "s:@EXEC@:${exec_command}:" \
1168 + -e "s:@ICON@:${icon}:" \
1169 + "${WORKDIR}/${PN}.desktop-template" \
1170 + || die
1171 +
1172 + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
1173 +
1174 + rm "${WORKDIR}/${PN}.desktop-template" || die
1175 +
1176 + # Install wrapper script
1177 + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
1178 + newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
1179 +
1180 + # Update wrapper
1181 + sed -i \
1182 + -e "s:@PREFIX@:${EPREFIX}/usr:" \
1183 + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
1184 + -e "s:@APULSELIB_DIR@:${apulselib}:" \
1185 + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
1186 + "${ED}/usr/bin/${PN}" \
1187 + || die
1188 +}
1189 +
1190 +pkg_preinst() {
1191 + xdg_pkg_preinst
1192 +
1193 + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
1194 + # does not need to be forced into the LD_LIBRARY_PATH
1195 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1196 + einfo "APULSE found; Generating library symlinks for sound support ..."
1197 + local lib
1198 + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
1199 + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
1200 + # A quickpkg rolled by hand will grab symlinks as part of the package,
1201 + # so we need to avoid creating them if they already exist.
1202 + if [[ ! -L ${lib##*/} ]] ; then
1203 + ln -s "${lib}" ${lib##*/} || die
1204 + fi
1205 + done
1206 + popd &>/dev/null || die
1207 + fi
1208 +}
1209 +
1210 +pkg_postinst() {
1211 + xdg_pkg_postinst
1212 +
1213 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1214 + elog "Apulse was detected at merge time on this system and so it will always be"
1215 + elog "used for sound. If you wish to use pulseaudio instead please unmerge"
1216 + elog "media-sound/apulse."
1217 + elog
1218 + fi
1219 +
1220 + local show_doh_information
1221 + local show_shortcut_information
1222 +
1223 + if [[ -z "${REPLACING_VERSIONS}" ]] ; then
1224 + # New install; Tell user that DoH is disabled by default
1225 + show_doh_information=yes
1226 + show_shortcut_information=no
1227 + else
1228 + local replacing_version
1229 + for replacing_version in ${REPLACING_VERSIONS} ; do
1230 + if ver_test "${replacing_version}" -lt 91.0 ; then
1231 + # Tell user that we no longer install a shortcut
1232 + # per supported display protocol
1233 + show_shortcut_information=yes
1234 + fi
1235 + done
1236 + fi
1237 +
1238 + if [[ -n "${show_doh_information}" ]] ; then
1239 + elog
1240 + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
1241 + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
1242 + elog "DNS traffic to Cloudflare by default is not a good idea and applications"
1243 + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
1244 + elog "(\"Off by choice\") by default."
1245 + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
1246 + fi
1247 +
1248 + if [[ -n "${show_shortcut_information}" ]] ; then
1249 + elog
1250 + elog "Since ${PN}-91.0 we no longer install multiple shortcuts for"
1251 + elog "each supported display protocol. Instead we will only install"
1252 + elog "one generic Mozilla ${PN^} shortcut."
1253 + elog "If you still want to be able to select between running Mozilla ${PN^}"
1254 + elog "on X11 or Wayland, you have to re-create these shortcuts on your own."
1255 + fi
1256 +
1257 + # bug 835078
1258 + if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then
1259 + ewarn "You have nouveau drivers installed in your system and 'hwaccel' "
1260 + ewarn "enabled for Firefox. Nouveau / your GPU might not support the "
1261 + ewarn "required EGL, so either disable 'hwaccel' or try the workaround "
1262 + ewarn "explained in https://bugs.gentoo.org/835078#c5 if Firefox crashes."
1263 + fi
1264 +
1265 + optfeature_header "Optional runtime features:"
1266 + optfeature "encrypted chat support" net-libs/libotr
1267 +}