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: Wed, 29 Jun 2022 07:40:14
Message-Id: 1656488408.f611b9dfb607574c279f2fe5a709e362f407e228.juippis@gentoo
1 commit: f611b9dfb607574c279f2fe5a709e362f407e228
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 29 07:39:42 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 29 07:40:08 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f611b9df
7
8 mail-client/thunderbird: add 91.11.0
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 mail-client/thunderbird/Manifest | 65 ++
13 mail-client/thunderbird/thunderbird-91.11.0.ebuild | 1139 ++++++++++++++++++++
14 2 files changed, 1204 insertions(+)
15
16 diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
17 index 5db352576adc..300aa46d0730 100644
18 --- a/mail-client/thunderbird/Manifest
19 +++ b/mail-client/thunderbird/Manifest
20 @@ -1,4 +1,5 @@
21 DIST firefox-91esr-patches-09j.tar.xz 19508 BLAKE2B e9890c37cc2f86414e2167dda830387f6bfc06ef1f95347c46ae97b04da0515aa66bb8733e7312efa04205a08895623e8b95c58bcd543564e8eff5ba77a91612 SHA512 75d9420a7a5724420766c220c92650c8e16966d0f0c9ddf98e23a3b0c11dee255dddefd762d247f555c2e200b6796cb196c8eba4ee6f5c3567b2ba0c42865d34
22 +DIST firefox-91esr-patches-10j.tar.xz 18320 BLAKE2B ec882411eed19bafab8676e3d79f4ae43947bb97c44571c1497bb93a44fcfec99de06ebacbdf8c4944dcecdf949e4f684908d7ce4226cdcec60241e62e75810e SHA512 670a14d852bb74b9074c3fef9310650f71ce1c56314109c49aea02a7a69acc836af60a8beab11da53e21b10a8e6da341fcfa18b68a1dfd33b26978dd63758e9c
23 DIST thunderbird-91.10.0-af.xpi 561895 BLAKE2B c794ce6b0e504f9d85ca954fa0d93cfd886e614ce6187f98555482297ebdc75132b3067f0e940fb4d2664a30aa71a74ff8d4bebb116df3706d48c290f213520b SHA512 465c30a199e6d9f85f3c2b2306d91cc07822dc57752e750c527aefbc5e8da13c91e1df03dbe37d72c377fa99c6472c682a9b7b94550b3b8088d7b49e9e82585c
24 DIST thunderbird-91.10.0-ar.xpi 665731 BLAKE2B b450a3563929686946ce5c74f49f9976ca69e5995a13af19893f7ec25cb64236207f805e4c99b02387d4eda32c46ad1fdeebfb59f835954a9c9a55a7db1a0b79 SHA512 f039df005d4bf66ba38491ac9986d6543cc6c8c5d7d1d2eb30f286b8652e0948406b7a1fa85422ed1dc059e3ba99dcf7dca0f8d54a92a0e7b6fe00d2964b8414
25 DIST thunderbird-91.10.0-ast.xpi 580512 BLAKE2B 57e31d67fc6c59c148cc8556df40a5d6173867fa6e7d8f1824be682cdc0d618b67c1365b87caea43adfb93994f1693bcdf070473453b068a59c055ec1c3607d4 SHA512 e92b2ea2ed9e4617cb1915f7baf32abc930fd571b8039c657f01b3cb4139bdb147f2e7718eadb8a7601cc1968c2daff4471624476b0b95ebca403ca75c846a39
26 @@ -63,3 +64,67 @@ DIST thunderbird-91.10.0-vi.xpi 725528 BLAKE2B 884e4f8d480f78badb209ed579e6eb302
27 DIST thunderbird-91.10.0-zh-CN.xpi 730903 BLAKE2B 01a23c174e38fbd70c4812df869e1c4a4a617621281d691049e07aaabc1780a92472a5b3672f4f0a68faf6b86e77cacaf94b463561219d6e0cf9573e2eb04f10 SHA512 9aeea9dd0d6954b665a2149ccc7f2d92d64b3ae62c04e845ae87a015d03e7395827a62d83bebd087865051e1a9cfe56d209adcb86852636fb437bf87a4213d6d
28 DIST thunderbird-91.10.0-zh-TW.xpi 731944 BLAKE2B 188f54a3870bfbba928447201d4543ffe1bcd9b3ca0d7343434b0a1d34c1834b3be8554bedcc7c37d740af919ea9d309a8e0a1aa383fb5c88d5f624cc205b5dc SHA512 2b55044ca105c79b6c5644445aa48a4cf00bd1ce7f4982033ed93edca098253736d2009277f732b404e30d59a6183202f65abb4286d402685ea3d6fd1eff6eb4
29 DIST thunderbird-91.10.0.source.tar.xz 413952892 BLAKE2B b1b76a2ab0249e79f7b18cb572b1fff95422aee3df012104b8f588de0e30f528ae937da16210fd75878239125a406cdbbf878e3de23de75c3cf7818a13d65d24 SHA512 335d47e93d5fce4ff6e1ec0305cdaa86031f28289cc06f30ab3782bae484ad10ac4b9aa70911787627744277715edffd8ec8c3a2008f00b8b90ea02b0d79fcc8
30 +DIST thunderbird-91.11.0-af.xpi 561895 BLAKE2B 0f6a75b7ba17d99804f1384f1093412bc01c583907fc178b5adc6dc354382b87896f2e716e6f2ffe94337ef1bfd9823431ad6801b8209d0fafc5fa50c721f568 SHA512 af33a27ef12b50e179e929e05bd277484663e30daf156a73414ec811489b68052f671bfd57b79f7d9013706648408a223b2bb0791979caa76773db2ed2b0c670
31 +DIST thunderbird-91.11.0-ar.xpi 665731 BLAKE2B 9fa5d556e0fb83d2350543ad412e37dfa900a296ead57bb667efea550be5f7f58ddcaea30bd559f6bc1903cdf16cd35b551b8a96ee2d3f42b3123094aeb9c311 SHA512 1f6f1fa13ccd6f38dd33a311a5340bf9b02f8a443ab809e314e4801d5402b63c17f0248bb2dbd653ea30286f92ae71c37de5d9fddf5c1a563aca0c1b442b96c2
32 +DIST thunderbird-91.11.0-ast.xpi 580512 BLAKE2B 21005bd53c65fcafc4c0bdb1c3befb91f297543de2788cc4713ae07e844a04b3c1d1308174ddf0e032e71be2d1e992177b5159fc4acefeec09cc2b00a0350658 SHA512 a83833dc921104ef6524f4d3dd5a50eda34795a4653ca58a1073ee24fab967417a42aa976f740b2ece4247ace636ad6f18bbe704712085bd6c925ff6f71f45b8
33 +DIST thunderbird-91.11.0-be.xpi 695198 BLAKE2B 36b485d8489b83678c60f34c8641daeb4b81f7d60d33c73b1c25e525efcce07a74fa7f53015695611355e529b87e98a154ff01f5ff53b88434d4eb72e1f77e35 SHA512 a823e7d332fbd8261484656f07529e64f9b12d36bccc619c0f0a781770c5cb5b1bee9a5d21a74cb89b8b0fb3639df9c710ead3704d5cb22c3909c91b562ab7a0
34 +DIST thunderbird-91.11.0-bg.xpi 690997 BLAKE2B b9165363b05609fa549728018a7591bab9760a6972bb2d7d79af32f708303779caa4ab534495f2ea8e91d0d69717b2fe5c5a2912d0ae2318200ed204f06b1f7c SHA512 e2fb15784c7301edc44cca4717d96b27e6f005bef67989c4d505b51e947787d136c807590606bdc5e7e6e365ab4ac17046584cbe2b49e3b5868177871d6bbedc
35 +DIST thunderbird-91.11.0-br.xpi 620589 BLAKE2B 1e3eb292c6ff2fc8f708833026dc155952da0516a32d1582db90c4f11809af562944c37a5f801e2ef719fb9b7eb4dce2883f8d82c86f1455c8d461c2ee4cd6bb SHA512 0c58251fd11fc5e0f17d8ec8ade4af26744df8488e8768dc98e001b1f882b0e0a20a30f686d5b20f21c255b41898da477533a4a7fd50de3ad90adfa8828a0273
36 +DIST thunderbird-91.11.0-ca.xpi 645976 BLAKE2B cbb72f8d4e8cef4ebbe83014b7be3741b437e8d295c3ca59d22ca914124bdeaab4ea6165dc053b7850b895a4bc4bc35147b13775ffe2b7acaf28294022747835 SHA512 7b414bdac6e0b2ed4631e298f5a16183d73107acca69b866e510939a0b5cfa040780e4a98ad915c7ed9c5ca594e1741a60ba8dad65c0d50e55f7de0356dc5f7d
37 +DIST thunderbird-91.11.0-cak.xpi 652066 BLAKE2B c3dbe59e0eda0b2b5eac5ca05eeb31385e2495f23d03f10193f55a2096e5b6b3ddd3d56b6b03bdd80a0dc221665727f68484002f8c9ac777bc1252be94fa63db SHA512 51cb056a4989f8b9d64b8ce3e12a2d2d9ee20302ee78c43b6105840c8fe0e354eca6d9d37e21d526d72e6ebb07d123afda6c860db6891113943e5f53a7584d24
38 +DIST thunderbird-91.11.0-cs.xpi 711939 BLAKE2B 627537fc4b6919ca1cb42a295994190c6c9ed7ad5417f6590254ff94dce312f803208bb2bc52f06e15a79ee37254616a156e387a9e78e50d4f25ed77bef31e41 SHA512 1d4313e571b652a658889c6d2ff3e62c28a6fe28bced5e174722fa014cabd10a5058422818b8d3bdec91cee4ed92b2edc5fa7bd8650ccad93610cef3c4d405f8
39 +DIST thunderbird-91.11.0-cy.xpi 688889 BLAKE2B 5a06be40f190570ae8a1b43eb968bfc6bb8850b0f18b6f5e7a215db45f8a7258379d488fa89fc84a2661ffb9ef004bdcd17b010bb3b3b8e2c39d5651e8102696 SHA512 8506191fcc089b76a34cdd2b9a24d6fd7e86e1952d112a2676ba2cfae1645ae70069ea3586621163351f171e8450b7a63379ac8afa37b586fc1d6f76ffc74a61
40 +DIST thunderbird-91.11.0-da.xpi 674445 BLAKE2B a6a58920a1018cb3859707478e7a1d5ee3a67a3c675331fbd1862f39d0d0dbb15cca9bad8a1ce9def53909a6c1cdb65f6ebec007d9f75db08140d0e66e804ff2 SHA512 9cf6a8886eb89af6301651884e5ac772c844a29a2f05b45f216d6311a3ba278a46dbe692463ea939fcdae366be589820adfb90556370fd32c1755b1f4e749c4e
41 +DIST thunderbird-91.11.0-de.xpi 697527 BLAKE2B 131ec5d229c597e0e65447ce74e8f5f5fd65ebf47cb7c61b438d17ba60727f40e78a53c40f002a8f3bb76e7127600e01c705c90c9b676715ef0e123e8b65a4e2 SHA512 554c3987157144e9dd7b8adb1c95d58358cf922f4eed43bef9455fe72f50ae0b0ad24877eef85c5824cca28bb79377a5f07bbaa9f44852f07039c93875bf3887
42 +DIST thunderbird-91.11.0-dsb.xpi 724000 BLAKE2B 4cb3256f63e516c438d7b33a1495a8a851b536ea225941394cce404abbe3fe99c812d045b09c10f0f08a06d45991a50aeb1426e38a2dd0557d8945b07bc46af8 SHA512 39c3c9a4fffb1e2df037b4af9bc8a6b90df513d15bb213894db56dcad5bc30f16413e68d8df3ab6cbd082bde3b3adbb7c4dc8720e2e67510ce7a48c22ecaa49c
43 +DIST thunderbird-91.11.0-el.xpi 821181 BLAKE2B 9fa7cf0450d2d3b89af356dea56e3aa64d132a8ff5bb28cc85e5bf12b27aa2f894980dded02613b816f39db5456aa856fbce6710a95f5da8a1ec290701bf62ea SHA512 b73cf9b79e94b674abfd482e0a812ccdb825326d10288a3beb0b60e6792b002b72b1dd972f990a92b5053bb262b7e1a3463f905370f06b698204aa3e88f224c0
44 +DIST thunderbird-91.11.0-en-CA.xpi 647814 BLAKE2B c6c50cc05d2be625395f3b4c987bae185ea49405be9f11e1f6f2e5a207d305678358b9efbaa953e4cef712db69686c3d80341e1354363cfd8910d3e538b81fd6 SHA512 c8201e45cc831786ecabcf35a22a99d93038db70a27dfced6016ff3d4a3900fbf358ef415528fc5fccffa66af3767d63eb1333feda6d50bc9dd3771925416773
45 +DIST thunderbird-91.11.0-en-GB.xpi 650554 BLAKE2B 8496e1c43b8f8e01444401111dc9495d7fbd5aef10de1ab77de883485bff4a6317e81fb98ca95e83eaaa1bc01336d59c84f284e8bc240df96f6589c55a190038 SHA512 2d28cff3635ca025fe4f1b0cd0f50637999758ff2c01450b548139dc2444ea778e6d88a37fd95e574d8dd4152355efdc48ba56c1df4216d6accfd1cd41ffb31a
46 +DIST thunderbird-91.11.0-es-AR.xpi 700497 BLAKE2B 83f9e2493fd640b867f150b17d46c4af5ef47cf1f0c097bd48ded7acae801f2857b5ee8bcc3a6445aa066dd9bc8ae6daf931a4d7aa6be6b148753c481070b686 SHA512 3e998c1266002a06213c0e1f62a7f1bcc1e1e854066ae4e5ec9503f54d9e37bba8484557ce6bce0a244c0325b6b74dade5746c1d19e8b78c132b941d1935445e
47 +DIST thunderbird-91.11.0-es-ES.xpi 630921 BLAKE2B 81c6b25a821eb5140498fa2c1afbad5dae5156a6c5b677fd7033927dbbd503bb8f113e951b885125e8a9174bc68aa8221ab15fde592f0e7a288b77bb1ea763d4 SHA512 432d4a2f09df685be31d0376e84d22b4e1cd818d3e35bbc3570aaaf03000c9b964efff9f4497b1579bbd5cee147cb0c8174dc604372d884eec4120698b219748
48 +DIST thunderbird-91.11.0-et.xpi 672171 BLAKE2B eeb249a1ac1e97fada64f0d8a114cd4085bd1de62a4b22c529beb0e4049533bd65c83d01c416bde9d04e7fad679866d444c7009e55ad52a486cd49a739f697c7 SHA512 e65475fef665e9975eb4bf8422577286acd7173b07649a4b8348109e538184263a91988d431f34d1a703f44c1e8988662539926a4219c99834a5f4f5f052e225
49 +DIST thunderbird-91.11.0-eu.xpi 678263 BLAKE2B f93b0aa9387430f399a438b60809d7044798c18fdde7a61deeae7c610c9ae295b083a359b7116d15ece7fd9d42a24e2f982a8c39578c056cf332909fd96467f4 SHA512 e46dad4424788d1629281c9b16e26789980904f13d0a9b4ff06e5801ef3ba4b6c290f9b9ac687f85a082a1f81be8f8133e1e4aa6b5336e821a3aa30ad352528a
50 +DIST thunderbird-91.11.0-fi.xpi 676630 BLAKE2B 0a9136e1932f121c625662ced950bab2d54df04e90f81b26b9c5fffbb5303695604a89c1743fb502d5bf294f285cae47a3d03ef2ef3145562fef15cc430da75a SHA512 8913529a417a6cf6d44c1d2f864c3c2c50294ba6fa73b9c942530839951ba3117237e193ae559e3eeb5d19925dbcf0ff1f60df84eca9487c9d5c99a6ba33ef9a
51 +DIST thunderbird-91.11.0-fr.xpi 711454 BLAKE2B 46b521666bcc98aa701e5ce77bd5c105b95d191e759fb1dfe59c8fc3000744771306dd036ab727a1749c4e610f76af3b46ad13191c90c7054b923b36ab569dc5 SHA512 95d38919ebebcf42c9149b26dfb05c047055b2232ded5e3d055ba4048041127c931aeaf6a90d0d40c8d6026477a375bafbc84de283df5eb1d2a268dba03c760f
52 +DIST thunderbird-91.11.0-fy-NL.xpi 691881 BLAKE2B 338b186b4c73813dfe11a3ebb42c53f78b021a289d366b6f7df711984b656701fdf757e57787b15a2f047b9064f7502340a0ade2dc913d02ea120c924bc241a0 SHA512 437c259465471a5dda778bab3416d0620ef98314a94de994d67d944c58a1959852e88b3db01cc55e9e92fa1b4c4e66f912f46191df266f0e66a59e84b8998bec
53 +DIST thunderbird-91.11.0-ga-IE.xpi 613124 BLAKE2B 7dcc4590c29abe2c0ac5daefad6743b19fed87aafa4a621423e45eb605e30b735c3e46ba08b03b1699ad4cacfb675140c77ffc840e2351bc6d8ce407074eea05 SHA512 3344eaea97c004a5cab95bc8896580de7ae06a99239e1211c5a1bd4d712a9655323088d812990d4f6eb08d26fad2257bd7ca57ec526fef8a964ff4ef9148699c
54 +DIST thunderbird-91.11.0-gd.xpi 640649 BLAKE2B bb8da0d001b324e2c579fe4c7f63eabee25ae7bbbcd7199e547aeceab9cd8996a258999fb185cbd085a79ea3fde5483bbdc290c0657820bd6122b0e5775548a0 SHA512 bd89df065d526c2b15246c19582bcad98ff194f219551dbc0f4bf7d6014964fa264b23097c69885f7ecaefa765ddbebafa58ece920e9c4d42e43544e71856d0e
55 +DIST thunderbird-91.11.0-gl.xpi 677789 BLAKE2B 825784ac9ce0e3586e02ae892ceaf2a4235649cf4bf72b0473d2c5a79c51fa43da6de89af26e880a328291e6fac68a0e30596632499a72ff492486a6df24c64c SHA512 5449b1fe8217615c66d5e4f189ccaa3ef3163a46f51ffab464e38f6f998e2aed2b82b8aa425df455acb0c768688aef7cc0c41254aef275db45a98c208058faba
56 +DIST thunderbird-91.11.0-he.xpi 673191 BLAKE2B 39ccd93d108b003255995ec59869cc1d13c10e3562aeaf8110c399eb6065236c5194c0d2dc3df38ee36b602a4fd2cefbaf32b40e811a7d42025ce9f197dffffc SHA512 158b95d8312b11da954e6f2cd34bd5a1aa1de68477b5b3842efa8b225cb4e0a497353e543c967b3d53fb2e8d8cd5ff082dbcaeb423658e7fabf316b3cee4123b
57 +DIST thunderbird-91.11.0-hr.xpi 653581 BLAKE2B 1ac0b1fd98eb4ceaef82dd15250a3669537fe6968332bae8f041b5a7425d63a84674964c6c274fafc3c33fd370b38af10b698dffd462e1f9650c741f6e297409 SHA512 c0e91643726e9d92566a4459dfaa78158be898d1378fb755892aabf4db87635a61c6686bf2917924388a00e5b67605e8fab3a63c895e6ff6babf729374701f29
58 +DIST thunderbird-91.11.0-hsb.xpi 720812 BLAKE2B 155e3062330a9fedc46696b40a6fed7c7e95b8088ae17d8a0991dc20a04ef1c9892a4c2a8678ac1384a2a22cb64e321529e92063ec318e134de1c535eb1c6667 SHA512 d07e2c98cbd9e1c9e4213c877852bc96e46da966e2facb9c6e5680b226466a835aab39279a0faa441b1166945bdcff8a19d79d40310b94ea587b37377b12e3e2
59 +DIST thunderbird-91.11.0-hu.xpi 723399 BLAKE2B 9fa6efeb69eaf938eb72c610f71264662dfd41aec49925173db9a593f9c3dbda858bc08de2a69b1ee40f5f998a40f0af21b3df8c7712bec77300b153ec7dfa58 SHA512 ff4f013787285c0b6aa4880c4de576cdd94e9271fefd86bcba0a3e540ff3dbf2ca30727129df711c31afbbfcc05bfc7f765d50989fc7225772614a29ac11d032
60 +DIST thunderbird-91.11.0-id.xpi 648250 BLAKE2B dd3036592c0416149f2eb4daf8c49c2d87d094f5998f95f17f89535005f856a08fec6c8903e962417498b0cc01cfb23dea53d749c14c769ad1ad4ac3157822c6 SHA512 153a07745f034a36316a6353ab09587e826838340330d553bdec833865aa9004f9181f617ebfb946c10eb7588b6e1567f363c9fab2778b2203b084b7b91ea897
61 +DIST thunderbird-91.11.0-is.xpi 682263 BLAKE2B 6f1bbbfeb7426cb44636413b920940c742df206b5a3e95ddaa227311f20a162cb445e5e26cb2d2fe14158e95c18fa3ccfbb0388f3238800253954c0e113d737c SHA512 2b8058f4af3951c5f142eb164409852fc9d942d2aa35b5fabc096cc87df5680c7fdc1d6a18e017d36448a57e5f709ef9bfdd5d610799e786f77b08c85c9266da
62 +DIST thunderbird-91.11.0-it.xpi 613334 BLAKE2B 86829852b57ecc04b7be553c95c6dbbbf85e8d80b10522c112076d439fa91cbbb0a7ba1a205a008d28570cb05d52f8b04f342265fb985348d5fa30e35d0eadf7 SHA512 f5576d0538b6dd1ede37d3f620e2ab55f6075227a70e3fd0f4a58358146b0c50a045ba7d1c4ba74bae21bcec570ac565e06c2dde6742643d3194ea471f437ae1
63 +DIST thunderbird-91.11.0-ja.xpi 756467 BLAKE2B dcd7298a738fc470bdfcf96209af178eb187e77fa86bead6c3fbeabdf5ed338bd7ec3cb1d15c64ba65487ac20337922655bd0281a6c4951201d26973afe2e159 SHA512 263f6bbda4fda346f965ae7381c06ba103ac440bd9c92aef811b61cefda32698225495b7519814d8a18a8d0eff5fecd4a03ad05ef29c9269eb8a3fc76817a93e
64 +DIST thunderbird-91.11.0-ka.xpi 762629 BLAKE2B 3fc3d74f26cf1b85399417df1a643d24bd11ef409a835eb020ed27208874ca342f1a0db1d3e0e7f20eb59932c6d6e11e6af2d845cd6161bf3d359460c9c2fff7 SHA512 6d894c4532abed2ee2a432464e98f3fc137a2a79f2183262af63a7a530f2dd2f9127d66c90b458b6e62ef81a586c826d748a02a97a022b01b389cf3b066ae1fb
65 +DIST thunderbird-91.11.0-kab.xpi 677087 BLAKE2B 5cfc6d90b544677e8528ad2972efd44b7e9620e022bb8759d8635e5541d3f67dfc71ca4bdbd4e294dd7b2e8a5c63463ff9da3b65ad3a341c9f3155dd5965c238 SHA512 20797684be4c80cebe0c6087a060ece8f888f74bc48589433316b29c606f4167c1a90af72ea49e8b1397785d84d718dfabbdf9388bed4a77318c1c08dbc1bb4b
66 +DIST thunderbird-91.11.0-kk.xpi 745524 BLAKE2B 41563d794fcfe78b704f054eb42ada54e729e8122a123394f1572294e4d407f92c4ae70a842586d76f36082a841c548e31ee59aca7720b88050849c05cf7a351 SHA512 f415c344f72336a57518ada976c6fcd2aa00f9dd3748a9d57384deb4fe471c38fede14299b9d9e96be3444b797c52b196636cd1d8639ceb753dac62081a0a7f4
67 +DIST thunderbird-91.11.0-ko.xpi 704768 BLAKE2B 68a9875b362390e5aa9b1bdf768d455435dcacbd6406423dfddbf3be71cd8146e6859092ec5023ffa2f8c8ae2c7c7f6038c9c2f508a038aa077ccbd2c1841684 SHA512 62b092d0eee68b5cc74eaa3d9684cdc18f3f1338112bd05f7f2b2a3c00c00766f558c21ed962b84a526c411886ef633489940c2e6ec08ef57bf86d8e4ec8e9fb
68 +DIST thunderbird-91.11.0-lt.xpi 696045 BLAKE2B 0f825104849eb5af6a0719b0c1c6ad1b279a920e069f6f43cfbaf7eafbf90e9ed3fabf38b569299f48d7ec918105d67fa5a23bcd2cf692cd7401ef10eec18624 SHA512 df249078972a86b7643ad69804ce0e98b1a3cfb9ec72d972b0095377f86ad00779c04c800fd6d08132e6a56f26d6ac470bb97d5ff572d60b65cf63e58482a52d
69 +DIST thunderbird-91.11.0-lv.xpi 618524 BLAKE2B f7266a6ed339d33e96f53283070f7561ac5f66f00df23684c5404379cb5f070601dc4d6a42eb9642e9f069e8f3c54c7a0e4f189a0ed0f12a40eb8fdbe57d1460 SHA512 f2aaf92eaa5b92b05ad28946860e460206a477603dd0ef56f692d7c2f8296b608dd7fe0216fb9b96d794d2f35f6b8099239463ab65b9905e7db46c8a81f8c6c6
70 +DIST thunderbird-91.11.0-ms.xpi 578080 BLAKE2B 2106c29fa9c45bc706032e6cb2f232b15615e1e629e1c80a1cc21f12902804abd98763d7f8a3a7bbf2af755cd0ddd578b157d7a0e0ee9cc963361c3d6bc5084d SHA512 e4dc3c5906d66f739dab58511000a7a3284dd2e15951d05ce226c37b4abb23dc1a17f41531651a7c95ad3ebc89e84b8f7868d06d846a254cbd0a4999783ae396
71 +DIST thunderbird-91.11.0-nb-NO.xpi 653327 BLAKE2B 04ff3ef0611eccacbc28bef0555698dd4cbf6b5bd243d65b2abf4409cdb3762ae0fdf025cc37fe67c38a0450c375a020e7ea729072afdd2aa5ed6958dbccb10f SHA512 5b201cf730725577b3494fb8370896489360503bb812b7f8e6894491566cb586f0980ca2d2c4b2bdf2ad0b66b3086845b318b6c69038fb7f7c76d719a6af2044
72 +DIST thunderbird-91.11.0-nl.xpi 685343 BLAKE2B 5fc89bd9624cbac67f2cc1422f37259548626f7654a1a3f3109ad76b788d52d81b26e4b840aad6a2ad53805a8bc4c7f4db4c86092017090b235fce3c364968db SHA512 6b21195e6dd826a2ff17926ecf6f21d238a44d9ff420e3f0b4047fbffcba2af757fdd3fe7d3b1d85a3666b8f2f96647664418d62d74513a435782b7655083df9
73 +DIST thunderbird-91.11.0-nn-NO.xpi 658571 BLAKE2B 65bff16cc183f092f71c8cef7aaf01a5ff40d7cbbbb7cc591271cfd1ca955c36f412f0289eca485ef2b86f891abadd602a43007aaded4988b433a6e403d2e8be SHA512 7770be3cb0e2c36ee1609673d844346450ccea19e6966239541d942c3aec5113cfd22663b4a1df4072ca1be3abbb4b0258f6bb2e4edd700525e051926c6607a5
74 +DIST thunderbird-91.11.0-pa-IN.xpi 652335 BLAKE2B 033ef3e33a22ceb55727b5f67597d1faad36506d693d70e924ef39b66798cba38a2561f124fc7ea0c7bd50bcb54ea8627b74cb10608859850d0b69364978def0 SHA512 5054423562e84617f472d263cd0ea172896fc3a6e82f48d78ed763a4baf17d65d5cd2ab01559e4bd1369c764d7d8ba1a2d9b87a633e0f06a783e9627a0074361
75 +DIST thunderbird-91.11.0-pl.xpi 694113 BLAKE2B 327d89fa8614a9e131f631513061e2c58c4b2f208f2b369c9028b23e3d02c8f97b44670b2fcdf8f5547f6bf632a3f5a996188324bc7822da896ea64abc116e9a SHA512 1d7e79193b420fc6440a17e712ca6d2dc75c1f4b39f462f8ef200e8c92767134b14e576716b55cb51dbbeb9a658a47de993151b1db8694c01a7c1efe1d4da478
76 +DIST thunderbird-91.11.0-pt-BR.xpi 694133 BLAKE2B 52cac3621175ef1e2e6741c351c9285bc4a71ca99ef756c18225e92e468b39695e60201fe3776cd2eea2f4dabd63b19df8585427653f307d695704d093185598 SHA512 09c63285cf7b1d65fb0eeb349c13c337d207d34b27cae4f5b01157350f8db95e939cd05452af6b69b9b0ca261b409787e4ad01075b664f0d2d046cc07ab055f7
77 +DIST thunderbird-91.11.0-pt-PT.xpi 674674 BLAKE2B 5ae5606fae2485a1a3e81c8ba5e649ab2847ed28d5642d2055f1e9214dd37fa51487e6436e66195ba7579b0f9fd1bede601baab5f154dc05181c511e8127b6fa SHA512 f1cf204ae376ae61a0b63cbb52d79edb2a82f23db8269ff7f96492926c65f483611227368f0071c74911f83478f917912c8e305e3992cbf3de1969ca4309974b
78 +DIST thunderbird-91.11.0-rm.xpi 687613 BLAKE2B c31058af323e30290279ed5d2c421b4f6e79c69f9aa19333b84fd0283341c39031477fc6f5ffe22692af9b4368b2a34241d51eefd9b2f33df453ef5f43d930e8 SHA512 9ab0b5d758a0c07ab574079c6e14aa084149d445c650a9097466793c32bf89e1612b2fa2c1caf90c3152c769c3d92c6a68d784e0104daf36cefc18bd1988b726
79 +DIST thunderbird-91.11.0-ro.xpi 661345 BLAKE2B 011a1304bc14918967b23de9a3cd4792984fee90c9b81e0ec9dc88c02520a80c2a65ee20895b7d5b6ad79099eba25eb10249b26d8ad1c73bff78fe66688387b5 SHA512 032c0f66ed57b90535f009393f571e80a77f24f0d1ecc7767ef52a7326faf773c6bc61f48f91414589728cee2f665b350a95c20b8ac2f14d2e3d27968c4845dd
80 +DIST thunderbird-91.11.0-ru.xpi 793375 BLAKE2B a31ebafb3f0cf02949139c75795f191adb65c23591e27e5b0c4c5d3dabe782bda885c036347b3feb9f9ee4305876b0c1a046504f2919f04fe013620ae35cdd6d SHA512 ca3cf959d3cdd24551688328566a7702dad16cff49a39f60c7d5cec9391385b935af4dfbf979c11ad3eee492be05c3ad781b0090f47b700c6df7c1b1697a4137
81 +DIST thunderbird-91.11.0-sk.xpi 721092 BLAKE2B 11dc776ecae45e44db2ae45aaf4d6b1488b4fdfe31044f2c1b657ad33bd09e781831f9ddafae25f8c389c1d468f005bee29314ff16ce814b27b57ea713cb08b4 SHA512 4a20a49ee0a3a9d6b4b8a859879cef517668233e43091d1504e7c719a569ee58bf17b44d377a5a42b1176db71ce6e815fa62675e50e4e371e9b407e060bafb3f
82 +DIST thunderbird-91.11.0-sl.xpi 682544 BLAKE2B e553c1212e12056c1886e4ac7a8af2299f3aeef138dd38a9324514e39a0f214b32c70754139007d2137446190a9366a825577b1333a2516acbcd5b0c154b928d SHA512 b383131a40f4062de1730dc81705f070a4bdc468288c331dee0fbb9972b7e66205e8b4cbf73266344ccaf011cc72115045f847491d7552a7140a79e93a5b91ca
83 +DIST thunderbird-91.11.0-sq.xpi 703626 BLAKE2B a7a8ce12c80b1c7eaf10379b6fcd7e128b6cf8cc6cce546c6e9cfa2867057f381797bad3b9f6e84c3de12536c9754aa634736ef70ba82ff19431285c698651eb SHA512 2d50c238d8ca30ed87006b82d65a0f837257efafda864b16d98db0ee3e807144f8d350f08e40ec167a4c1082f497ecf94eca532bdffaf7e7b0f4b70bde345ad5
84 +DIST thunderbird-91.11.0-sr.xpi 710565 BLAKE2B 158639b2968158b2a6cc9384bdd0405f1b8adfc36992c6f7c2589b4b77058f1b37cd3ec70017a85bf332b68271c73dfffd76700e90472968a4696e3f308a3587 SHA512 dc684266a676a09be1ef5f2880b9bdd344d936203dc79fe240e6165812076d8f5016783c908204b0db057cecc5cc4ef4a1af263ebe8814db524138bfecb7e0cd
85 +DIST thunderbird-91.11.0-sv-SE.xpi 690968 BLAKE2B bd576e685718992f01178c1d68cc857ab0713e23d24fb0d916fd51e794eefe855613350c3930a0ed95f454c743aa2113911c712fb89212ade950d3783135e290 SHA512 a99728ba878ab244cd4d8501dff33c276774233c2effbeba50b0152754eb3aa1d00139fe1e17610a87eb6672ab767687a23e3911a45b719b430f4fa18f3f21fd
86 +DIST thunderbird-91.11.0-th.xpi 748754 BLAKE2B 1d4aca33d5f8330794aab1b7627be1f6d425a8f86f8c13b40095c33f30f7eeb18a9bd8acec43202cbe957368c0b0e06b54908263658757cc7be6cd91bb606955 SHA512 9561ef36a6dc129cc979f91474f200acdd408fde72a64a3bb9276d9076770554154105acf1bb5ff5c9f9f7fcb5d958f451977feee88ab5b09b9fc535d9faeb24
87 +DIST thunderbird-91.11.0-tr.xpi 699653 BLAKE2B 0866b2a7556a07bd2d1bdafc99d294205598635d1e2f84e839150e02171ab291d72b46bc49ce91e136779bf48b23caf8b33dc215453239f182725787f0dde51f SHA512 84a1424df46ba4fb50d5e831a3bfc6fc28c99b288c1d107eb8ec64736f709303e81a66ea6de2da51d074f4f4c63f0d6c654bc9166a6e2613e229f950efb477d7
88 +DIST thunderbird-91.11.0-uk.xpi 798482 BLAKE2B 8bfd31c3e8661a2db3221f60828bf5e22f4843483aa6175dbdeee487a8b1c114a79b1f658533f250e6dbbe29b21721ef9f283c5c5abddebfb544602a2a40e454 SHA512 199e41b818462551535fa901229f35968c1b4948e6b8688367dba372524b326a69d1e2212d47bd11384641923fcefcbc5d9f409f5f3e72c623b2c6fa7042549e
89 +DIST thunderbird-91.11.0-uz.xpi 595921 BLAKE2B f0ce0bee50bfdaf9d9e8bc6bbc2dd83a1a8974b50465481d1771159601b173626734eb0e5f5254fd5e4f55df60aa6d897c8e8cffbd5acca6601d9445993be175 SHA512 86899670cba0b9928fb56b7dc07101787a6de7c752e1def5f0cf0a8e474b3690fc648150088224557ed8141b09d98eb641a4162491061c1173a442ba03eb6322
90 +DIST thunderbird-91.11.0-vi.xpi 725527 BLAKE2B 104190b96e95b5ced672b4eb25411ef3f9023d67f308e7d61401eae2ee7c35e1e84226d7bd09c9d0a309e1fe5a66eba14b0660c1ea4c697acea3533094cfbebc SHA512 f91a977753d141b350f25c82226d09e86682b28a338ce405c2c68d6e4f489a9d56a5d8c015bfbadd87c7921f779b152ebca98fed7154b604635efb25d9c0f8ce
91 +DIST thunderbird-91.11.0-zh-CN.xpi 730900 BLAKE2B 72873985e276a600dcadb35ddc5548a3c21f3975bac03edf52629b7073d23baa7465f531109d7859ec312775ecc411a6a0a49a381adbf5e93528a4674761490e SHA512 41de80bc7367bf9e07b1eaf66bae1267b0085d5e1994f116f8536dfe826b9708f4d5b8b0ad54d5bbc00aac72f22461129223e8281a9e6f7c020f8582fcd9d27e
92 +DIST thunderbird-91.11.0-zh-TW.xpi 731944 BLAKE2B bdd33ee5058c0e16cd9701876ae68f095b54e4059cec630cb7b2a15428416714fa7dd0852fe15139d8f4c9cd628db8d6dbc4d20e22fc0ff4e476c4dda20fdceb SHA512 6450e341d72472846fd23aa65eb0a931c797f9c28fb5524b8fe4c1c3f4ab12921a57c750fe4877c98e893c2ed729d2ed32691ffab5dea4624acf6fab91f3d01e
93 +DIST thunderbird-91.11.0.source.tar.xz 408098564 BLAKE2B 01a0703438f51bfb8da1949b005df1a8bbb07d39b3d5e3d0ae92566ee84d13a111ffeccf8869faf58eef7161d6ffa91aa5d95e95ca6e7b2d7016fae709d010cb SHA512 26b9242259b71eb14ddadffb34a59d07d515bbbc0cb806eed965a73b001ee81b3b1128d06cfdf3e50d5da4ef97be21d11193be34a582d3c9f27f27d2f97d90d2
94
95 diff --git a/mail-client/thunderbird/thunderbird-91.11.0.ebuild b/mail-client/thunderbird/thunderbird-91.11.0.ebuild
96 new file mode 100644
97 index 000000000000..2658c7c65528
98 --- /dev/null
99 +++ b/mail-client/thunderbird/thunderbird-91.11.0.ebuild
100 @@ -0,0 +1,1139 @@
101 +# Copyright 1999-2022 Gentoo Authors
102 +# Distributed under the terms of the GNU General Public License v2
103 +
104 +EAPI="8"
105 +
106 +FIREFOX_PATCHSET="firefox-91esr-patches-10j.tar.xz"
107 +
108 +LLVM_MAX_SLOT=14
109 +
110 +PYTHON_COMPAT=( python3_{8..10} )
111 +PYTHON_REQ_USE="ncurses,sqlite,ssl"
112 +
113 +WANT_AUTOCONF="2.1"
114 +
115 +VIRTUALX_REQUIRED="pgo"
116 +
117 +MOZ_ESR=
118 +
119 +MOZ_PV=${PV}
120 +MOZ_PV_SUFFIX=
121 +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
122 + MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
123 +
124 + # Convert the ebuild version to the upstream Mozilla version
125 + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
126 + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
127 + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
128 +fi
129 +
130 +if [[ -n ${MOZ_ESR} ]] ; then
131 + # ESR releases have slightly different version numbers
132 + MOZ_PV="${MOZ_PV}esr"
133 +fi
134 +
135 +MOZ_PN="${PN%-bin}"
136 +MOZ_P="${MOZ_PN}-${MOZ_PV}"
137 +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
138 +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
139 +
140 +inherit autotools check-reqs desktop flag-o-matic gnome2-utils \
141 + llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \
142 + virtualx xdg
143 +
144 +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
145 +
146 +if [[ ${PV} == *_rc* ]] ; then
147 + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
148 +fi
149 +
150 +PATCH_URIS=(
151 + https://dev.gentoo.org/~{juippis,polynomial-c,whissi}/mozilla/patchsets/${FIREFOX_PATCHSET}
152 +)
153 +
154 +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
155 + ${PATCH_URIS[@]}"
156 +
157 +DESCRIPTION="Thunderbird Mail Client"
158 +HOMEPAGE="https://www.thunderbird.net/"
159 +
160 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
161 +
162 +SLOT="0"
163 +LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
164 +
165 +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
166 +IUSE+=" jack lto +openh264 pgo pulseaudio sndio selinux"
167 +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png +system-webp"
168 +IUSE+=" wayland wifi"
169 +
170 +REQUIRED_USE="debug? ( !system-av1 )
171 + pgo? ( lto )
172 + wifi? ( dbus )"
173 +
174 +BDEPEND="${PYTHON_DEPS}
175 + app-arch/unzip
176 + app-arch/zip
177 + >=dev-util/cbindgen-0.24.0
178 + >=net-libs/nodejs-10.23.1
179 + virtual/pkgconfig
180 + >=virtual/rust-1.51.0
181 + || (
182 + (
183 + sys-devel/clang:14
184 + sys-devel/llvm:14
185 + clang? (
186 + =sys-devel/lld-14*
187 + pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] )
188 + )
189 + )
190 + (
191 + sys-devel/clang:13
192 + sys-devel/llvm:13
193 + clang? (
194 + =sys-devel/lld-13*
195 + pgo? ( =sys-libs/compiler-rt-sanitizers-13*[profile] )
196 + )
197 + )
198 + (
199 + sys-devel/clang:12
200 + sys-devel/llvm:12
201 + clang? (
202 + =sys-devel/lld-12*
203 + pgo? ( =sys-libs/compiler-rt-sanitizers-12*[profile] )
204 + )
205 + )
206 + )
207 + amd64? ( >=dev-lang/nasm-2.13 )
208 + x86? ( >=dev-lang/nasm-2.13 )"
209 +
210 +COMMON_DEPEND="
211 + >=dev-libs/nss-3.68
212 + >=dev-libs/nspr-4.32
213 + dev-libs/atk
214 + dev-libs/expat
215 + >=x11-libs/cairo-1.10[X]
216 + >=x11-libs/gtk+-3.4.0:3[X]
217 + x11-libs/gdk-pixbuf
218 + >=x11-libs/pango-1.22.0
219 + >=media-libs/mesa-10.2:*
220 + media-libs/fontconfig
221 + >=media-libs/freetype-2.4.10
222 + kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) )
223 + virtual/freedesktop-icon-theme
224 + >=x11-libs/pixman-0.19.2
225 + >=dev-libs/glib-2.26:2
226 + >=sys-libs/zlib-1.2.3
227 + >=dev-libs/libffi-3.0.10:=
228 + media-video/ffmpeg
229 + x11-libs/libX11
230 + x11-libs/libxcb:=
231 + x11-libs/libXcomposite
232 + x11-libs/libXdamage
233 + x11-libs/libXext
234 + x11-libs/libXfixes
235 + x11-libs/libXrender
236 + x11-libs/libXt
237 + dbus? (
238 + sys-apps/dbus
239 + dev-libs/dbus-glib
240 + )
241 + system-av1? (
242 + >=media-libs/dav1d-0.8.1:=
243 + >=media-libs/libaom-1.0.0:=
244 + )
245 + system-harfbuzz? (
246 + >=media-libs/harfbuzz-2.8.1:0=
247 + >=media-gfx/graphite2-1.3.13
248 + )
249 + system-icu? ( >=dev-libs/icu-69.1:= )
250 + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
251 + system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] )
252 + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
253 + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
254 + system-webp? ( >=media-libs/libwebp-1.1.0:0= )
255 + wifi? (
256 + kernel_linux? (
257 + sys-apps/dbus
258 + dev-libs/dbus-glib
259 + net-misc/networkmanager
260 + )
261 + )
262 + jack? ( virtual/jack )
263 + selinux? ( sec-policy/selinux-mozilla )
264 + sndio? ( media-sound/sndio )"
265 +
266 +RDEPEND="${COMMON_DEPEND}
267 + jack? ( virtual/jack )
268 + openh264? ( media-libs/openh264:*[plugin] )
269 + pulseaudio? (
270 + || (
271 + media-sound/pulseaudio
272 + >=media-sound/apulse-0.1.12-r4
273 + )
274 + )
275 + selinux? ( sec-policy/selinux-mozilla )
276 + !<x11-plugins/enigmail-2.2"
277 +
278 +DEPEND="${COMMON_DEPEND}
279 + x11-libs/libICE
280 + x11-libs/libSM
281 + pulseaudio? (
282 + || (
283 + media-sound/pulseaudio
284 + >=media-sound/apulse-0.1.12-r4[sdk]
285 + )
286 + )
287 + wayland? ( >=x11-libs/gtk+-3.11:3[wayland] )
288 + amd64? ( virtual/opengl )
289 + x86? ( virtual/opengl )"
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 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="6400M"
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 + if ! use clang && [[ $(gcc-major-version) -eq 11 ]] \
518 + && ! has_version -b ">sys-devel/gcc-11.1.0:11" ; then
519 + # bug 792705
520 + eerror "Using GCC 11 to compile firefox is currently known to be broken (see bug #792705)."
521 + die "Set USE=clang or select <gcc-11 to build ${CATEGORY}/${P}."
522 + fi
523 +
524 + python-any-r1_pkg_setup
525 +
526 + # Avoid PGO profiling problems due to enviroment leakage
527 + # These should *always* be cleaned up anyway
528 + unset \
529 + DBUS_SESSION_BUS_ADDRESS \
530 + DISPLAY \
531 + ORBIT_SOCKETDIR \
532 + SESSION_MANAGER \
533 + XAUTHORITY \
534 + XDG_CACHE_HOME \
535 + XDG_SESSION_COOKIE
536 +
537 + # Build system is using /proc/self/oom_score_adj, bug #604394
538 + addpredict /proc/self/oom_score_adj
539 +
540 + if use pgo ; then
541 + # Allow access to GPU during PGO run
542 + local ati_cards mesa_cards nvidia_cards render_cards
543 + shopt -s nullglob
544 +
545 + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
546 + if [[ -n "${ati_cards}" ]] ; then
547 + addpredict "${ati_cards}"
548 + fi
549 +
550 + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
551 + if [[ -n "${mesa_cards}" ]] ; then
552 + addpredict "${mesa_cards}"
553 + fi
554 +
555 + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
556 + if [[ -n "${nvidia_cards}" ]] ; then
557 + addpredict "${nvidia_cards}"
558 + fi
559 +
560 + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
561 + if [[ -n "${render_cards}" ]] ; then
562 + addpredict "${render_cards}"
563 + fi
564 +
565 + shopt -u nullglob
566 + fi
567 +
568 + if ! mountpoint -q /dev/shm ; then
569 + # If /dev/shm is not available, configure is known to fail with
570 + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
571 + ewarn "/dev/shm is not mounted -- expect build failures!"
572 + fi
573 +
574 + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
575 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
576 + # get your own set of keys.
577 + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
578 + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
579 + fi
580 +
581 + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
582 + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
583 + fi
584 +
585 + # Mozilla API keys (see https://location.services.mozilla.com/api)
586 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
587 + # get your own set of keys.
588 + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
589 + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
590 + fi
591 +
592 + # Ensure we use C locale when building, bug #746215
593 + export LC_ALL=C
594 + fi
595 +}
596 +
597 +src_unpack() {
598 + local _lp_dir="${WORKDIR}/language_packs"
599 + local _src_file
600 +
601 + if [[ ! -d "${_lp_dir}" ]] ; then
602 + mkdir "${_lp_dir}" || die
603 + fi
604 +
605 + for _src_file in ${A} ; do
606 + if [[ ${_src_file} == *.xpi ]]; then
607 + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
608 + else
609 + unpack ${_src_file}
610 + fi
611 + done
612 +}
613 +
614 +src_prepare() {
615 + if use lto; then
616 + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
617 + fi
618 +
619 + if use system-av1 && has_version "<media-libs/dav1d-1.0.0"; then
620 + rm -v "${WORKDIR}"/firefox-patches/0033-bgo-835788-dav1d-1.0.0-support.patch || die
621 + elog "<media-libs/dav1d-1.0.0 detected, removing 1.0.0 compat patch."
622 + elif ! use system-av1; then
623 + rm -v "${WORKDIR}"/firefox-patches/0033-bgo-835788-dav1d-1.0.0-support.patch || die
624 + elog "-system-av1 USE flag detected, removing 1.0.0 compat patch."
625 + fi
626 +
627 + eapply "${WORKDIR}/firefox-patches"
628 +
629 + # Allow user to apply any additional patches without modifing ebuild
630 + eapply_user
631 +
632 + # Make cargo respect MAKEOPTS
633 + export CARGO_BUILD_JOBS="$(makeopts_jobs)"
634 +
635 + # Make LTO respect MAKEOPTS
636 + sed -i \
637 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
638 + "${S}"/build/moz.configure/lto-pgo.configure \
639 + || die "sed failed to set num_cores"
640 +
641 + # Make ICU respect MAKEOPTS
642 + sed -i \
643 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
644 + "${S}"/intl/icu_sources_data.py \
645 + || die "sed failed to set num_cores"
646 +
647 + # sed-in toolchain prefix
648 + sed -i \
649 + -e "s/objdump/${CHOST}-objdump/" \
650 + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \
651 + || die "sed failed to set toolchain prefix"
652 +
653 + sed -i \
654 + -e 's/ccache_stats = None/return None/' \
655 + "${S}"/python/mozbuild/mozbuild/controller/building.py \
656 + || die "sed failed to disable ccache stats call"
657 +
658 + einfo "Removing pre-built binaries ..."
659 + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
660 +
661 + # Clearing checksums where we have applied patches
662 + moz_clear_vendor_checksums target-lexicon-0.9.0
663 +
664 + # Create build dir
665 + BUILD_DIR="${WORKDIR}/${PN}_build"
666 + mkdir -p "${BUILD_DIR}" || die
667 +
668 + # Write API keys to disk
669 + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
670 + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die
671 + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
672 +
673 + xdg_environment_reset
674 +}
675 +
676 +src_configure() {
677 + # Show flags set at the beginning
678 + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
679 + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
680 + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
681 + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
682 + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
683 +
684 + local have_switched_compiler=
685 + if use clang && ! tc-is-clang ; then
686 + # Force clang
687 + einfo "Enforcing the use of clang due to USE=clang ..."
688 + have_switched_compiler=yes
689 + AR=llvm-ar
690 + CC=${CHOST}-clang
691 + CXX=${CHOST}-clang++
692 + NM=llvm-nm
693 + RANLIB=llvm-ranlib
694 + elif ! use clang && ! tc-is-gcc ; then
695 + # Force gcc
696 + have_switched_compiler=yes
697 + einfo "Enforcing the use of gcc due to USE=-clang ..."
698 + AR=gcc-ar
699 + CC=${CHOST}-gcc
700 + CXX=${CHOST}-g++
701 + NM=gcc-nm
702 + RANLIB=gcc-ranlib
703 + fi
704 +
705 + if [[ -n "${have_switched_compiler}" ]] ; then
706 + # Because we switched active compiler we have to ensure
707 + # that no unsupported flags are set
708 + strip-unsupported-flags
709 + fi
710 +
711 + # Ensure we use correct toolchain
712 + export HOST_CC="$(tc-getBUILD_CC)"
713 + export HOST_CXX="$(tc-getBUILD_CXX)"
714 + tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
715 +
716 + # Pass the correct toolchain paths through cbindgen
717 + if tc-is-cross-compiler ; then
718 + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}"
719 + fi
720 +
721 + # Set MOZILLA_FIVE_HOME
722 + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
723 +
724 + # python/mach/mach/mixin/process.py fails to detect SHELL
725 + export SHELL="${EPREFIX}/bin/bash"
726 +
727 + # Set state path
728 + export MOZBUILD_STATE_PATH="${BUILD_DIR}"
729 +
730 + # Set MOZCONFIG
731 + export MOZCONFIG="${S}/.mozconfig"
732 +
733 + # Initialize MOZCONFIG
734 + mozconfig_add_options_ac '' --enable-application=comm/mail
735 +
736 + # Set Gentoo defaults
737 + export MOZILLA_OFFICIAL=1
738 +
739 + mozconfig_add_options_ac 'Gentoo default' \
740 + --allow-addon-sideload \
741 + --disable-cargo-incremental \
742 + --disable-crashreporter \
743 + --disable-install-strip \
744 + --disable-strip \
745 + --disable-updater \
746 + --enable-js-shell \
747 + --enable-official-branding \
748 + --enable-release \
749 + --enable-system-ffi \
750 + --enable-system-pixman \
751 + --host="${CBUILD:-${CHOST}}" \
752 + --libdir="${EPREFIX}/usr/$(get_libdir)" \
753 + --prefix="${EPREFIX}/usr" \
754 + --target="${CHOST}" \
755 + --without-ccache \
756 + --with-intl-api \
757 + --with-libclang-path="$(llvm-config --libdir)" \
758 + --with-system-nspr \
759 + --with-system-nss \
760 + --with-system-zlib \
761 + --with-toolchain-prefix="${CHOST}-" \
762 + --with-unsigned-addon-scopes=app,system \
763 + --x-includes="${ESYSROOT}/usr/include" \
764 + --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
765 +
766 + # Set update channel
767 + local update_channel=release
768 + [[ -n ${MOZ_ESR} ]] && update_channel=esr
769 + mozconfig_add_options_ac '' --update-channel=${update_channel}
770 +
771 + if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
772 + mozconfig_add_options_ac '' --enable-rust-simd
773 + fi
774 +
775 + if [[ -s "${S}/api-google.key" ]] ; then
776 + local key_origin="Gentoo default"
777 + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
778 + key_origin="User value"
779 + fi
780 +
781 + mozconfig_add_options_ac "${key_origin}" \
782 + --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
783 + else
784 + einfo "Building without Google API key ..."
785 + fi
786 +
787 + if [[ -s "${S}/api-location.key" ]] ; then
788 + local key_origin="Gentoo default"
789 + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
790 + key_origin="User value"
791 + fi
792 +
793 + mozconfig_add_options_ac "${key_origin}" \
794 + --with-google-location-service-api-keyfile="${S}/api-location.key"
795 + else
796 + einfo "Building without Location API key ..."
797 + fi
798 +
799 + if [[ -s "${S}/api-mozilla.key" ]] ; then
800 + local key_origin="Gentoo default"
801 + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
802 + key_origin="User value"
803 + fi
804 +
805 + mozconfig_add_options_ac "${key_origin}" \
806 + --with-mozilla-api-keyfile="${S}/api-mozilla.key"
807 + else
808 + einfo "Building without Mozilla API key ..."
809 + fi
810 +
811 + mozconfig_use_with system-av1
812 + mozconfig_use_with system-harfbuzz
813 + mozconfig_use_with system-harfbuzz system-graphite2
814 + mozconfig_use_with system-icu
815 + mozconfig_use_with system-jpeg
816 + mozconfig_use_with system-libevent system-libevent "${ESYSROOT}/usr"
817 + mozconfig_use_with system-libvpx
818 + mozconfig_use_with system-png
819 + mozconfig_use_with system-webp
820 +
821 + mozconfig_use_enable dbus
822 +
823 + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
824 +
825 + if use hardened ; then
826 + mozconfig_add_options_ac "+hardened" --enable-hardening
827 + append-ldflags "-Wl,-z,relro -Wl,-z,now"
828 + fi
829 +
830 + mozconfig_use_enable jack
831 +
832 + mozconfig_use_enable pulseaudio
833 + # force the deprecated alsa sound code if pulseaudio is disabled
834 + if use kernel_linux && ! use pulseaudio ; then
835 + mozconfig_add_options_ac '-pulseaudio' --enable-alsa
836 + fi
837 +
838 + mozconfig_use_enable sndio
839 +
840 + mozconfig_use_enable wifi necko-wifi
841 +
842 + if use wayland ; then
843 + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland
844 + else
845 + mozconfig_add_options_ac '' --enable-default-toolkit=cairo-gtk3
846 + fi
847 +
848 + if use lto ; then
849 + if use clang ; then
850 + # Upstream only supports lld when using clang
851 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
852 +
853 + mozconfig_add_options_ac '+lto' --enable-lto=cross
854 + else
855 + # ld.gold is known to fail:
856 + # /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
857 +
858 + # ThinLTO is currently broken, see bmo#1644409
859 + mozconfig_add_options_ac '+lto' --enable-lto=full
860 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
861 + fi
862 +
863 + if use pgo ; then
864 + mozconfig_add_options_ac '+pgo' MOZ_PGO=1
865 +
866 + if use clang ; then
867 + # Used in build/pgo/profileserver.py
868 + export LLVM_PROFDATA="llvm-profdata"
869 + fi
870 + fi
871 + else
872 + # Avoid auto-magic on linker
873 + if use clang ; then
874 + # This is upstream's default
875 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
876 + else
877 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
878 + fi
879 + fi
880 +
881 + # LTO flag was handled via configure
882 + filter-flags '-flto*'
883 +
884 + mozconfig_use_enable debug
885 + if use debug ; then
886 + mozconfig_add_options_ac '+debug' --disable-optimize
887 + else
888 + if is-flag '-g*' ; then
889 + if use clang ; then
890 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
891 + else
892 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
893 + fi
894 + else
895 + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
896 + fi
897 +
898 + if is-flag '-O0' ; then
899 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
900 + elif is-flag '-O4' ; then
901 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
902 + elif is-flag '-O3' ; then
903 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
904 + elif is-flag '-O1' ; then
905 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
906 + elif is-flag '-Os' ; then
907 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
908 + else
909 + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
910 + fi
911 + fi
912 +
913 + # Debug flag was handled via configure
914 + filter-flags '-g*'
915 +
916 + # Optimization flag was handled via configure
917 + filter-flags '-O*'
918 +
919 + # Modifications to better support ARM, bug #553364
920 + if use cpu_flags_arm_neon ; then
921 + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
922 +
923 + if ! tc-is-clang ; then
924 + # thumb options aren't supported when using clang, bug 666966
925 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \
926 + --with-thumb=yes \
927 + --with-thumb-interwork=no
928 + fi
929 + fi
930 +
931 + if [[ ${CHOST} == armv*h* ]] ; then
932 + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
933 +
934 + if ! use system-libvpx ; then
935 + sed -i \
936 + -e "s|softfp|hard|" \
937 + "${S}"/media/libvpx/moz.build \
938 + || die
939 + fi
940 + fi
941 +
942 + if use clang ; then
943 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
944 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
945 + # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64')
946 + local disable_elf_hack=
947 + if use amd64 ; then
948 + disable_elf_hack=yes
949 + elif use x86 ; then
950 + disable_elf_hack=yes
951 + elif use arm ; then
952 + disable_elf_hack=yes
953 + fi
954 +
955 + if [[ -n ${disable_elf_hack} ]] ; then
956 + mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack
957 + fi
958 + elif tc-is-gcc ; then
959 + if ver_test $(gcc-fullversion) -ge 10 ; then
960 + einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..."
961 + append-cxxflags -fno-tree-loop-vectorize
962 + fi
963 + fi
964 +
965 + # Additional ARCH support
966 + case "${ARCH}" in
967 + arm)
968 + # Reduce the memory requirements for linking
969 + if use clang ; then
970 + # Nothing to do
971 + :;
972 + elif tc-ld-is-gold || use lto ; then
973 + append-ldflags -Wl,--no-keep-memory
974 + else
975 + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
976 + fi
977 + ;;
978 + esac
979 +
980 + if ! use elibc_glibc ; then
981 + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
982 + fi
983 +
984 + # Allow elfhack to work in combination with unstripped binaries
985 + # when they would normally be larger than 2GiB.
986 + append-ldflags "-Wl,--compress-debug-sections=zlib"
987 +
988 + # Make revdep-rebuild.sh happy; Also required for musl
989 + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
990 +
991 + # Pass $MAKEOPTS to build system
992 + export MOZ_MAKE_FLAGS="${MAKEOPTS}"
993 +
994 + # Use system's Python environment
995 + export MACH_USE_SYSTEM_PYTHON=1
996 +
997 + # Disable notification when build system has finished
998 + export MOZ_NOSPAM=1
999 +
1000 + # Portage sets XARGS environment variable to "xargs -r" by default which
1001 + # breaks build system's check_prog() function which doesn't support arguments
1002 + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
1003 +
1004 + # Set build dir
1005 + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
1006 +
1007 + # Show flags we will use
1008 + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
1009 + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
1010 + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
1011 + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
1012 + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
1013 +
1014 + # Handle EXTRA_CONF and show summary
1015 + local ac opt hash reason
1016 +
1017 + # Apply EXTRA_ECONF entries to $MOZCONFIG
1018 + if [[ -n ${EXTRA_ECONF} ]] ; then
1019 + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
1020 + for opt in "${ac[@]}"; do
1021 + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
1022 + done
1023 + fi
1024 +
1025 + echo
1026 + echo "=========================================================="
1027 + echo "Building ${PF} with the following configuration"
1028 + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
1029 + [[ -z ${hash} || ${hash} == \# ]] \
1030 + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
1031 + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
1032 + done
1033 + echo "=========================================================="
1034 + echo
1035 +
1036 + ./mach configure || die
1037 +}
1038 +
1039 +src_compile() {
1040 + local virtx_cmd=
1041 +
1042 + if use pgo ; then
1043 + virtx_cmd=virtx
1044 +
1045 + # Reset and cleanup environment variables used by GNOME/XDG
1046 + gnome2_environment_reset
1047 +
1048 + addpredict /root
1049 + fi
1050 +
1051 + local -x GDK_BACKEND=x11
1052 +
1053 + ${virtx_cmd} ./mach build --verbose \
1054 + || die
1055 +}
1056 +
1057 +src_install() {
1058 + # xpcshell is getting called during install
1059 + pax-mark m \
1060 + "${BUILD_DIR}"/dist/bin/xpcshell \
1061 + "${BUILD_DIR}"/dist/bin/${PN} \
1062 + "${BUILD_DIR}"/dist/bin/plugin-container
1063 +
1064 + DESTDIR="${D}" ./mach install || die
1065 +
1066 + # Upstream cannot ship symlink but we can (bmo#658850)
1067 + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
1068 + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
1069 +
1070 + # Don't install llvm-symbolizer from sys-devel/llvm package
1071 + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
1072 + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
1073 + fi
1074 +
1075 + # Install policy (currently only used to disable application updates)
1076 + insinto "${MOZILLA_FIVE_HOME}/distribution"
1077 + newins "${FILESDIR}"/distribution.ini distribution.ini
1078 + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
1079 +
1080 + # Install system-wide preferences
1081 + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
1082 + insinto "${PREFS_DIR}"
1083 + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
1084 +
1085 + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
1086 +
1087 + # Set dictionary path to use system hunspell
1088 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
1089 + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
1090 + EOF
1091 +
1092 + # Force hwaccel prefs if USE=hwaccel is enabled
1093 + if use hwaccel ; then
1094 + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
1095 + >>"${GENTOO_PREFS}" \
1096 + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
1097 + fi
1098 +
1099 + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
1100 + if use system-harfbuzz ; then
1101 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
1102 + sticky_pref("gfx.font_rendering.graphite.enabled", true);
1103 + EOF
1104 + fi
1105 +
1106 + # Install language packs
1107 + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
1108 + if [[ -n "${langpacks}" ]] ; then
1109 + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
1110 + fi
1111 +
1112 + # Install icons
1113 + local icon_srcdir="${S}/comm/mail/branding/thunderbird"
1114 + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
1115 +
1116 + insinto /usr/share/icons/hicolor/symbolic/apps
1117 + newins "${icon_symbolic_file}" ${PN}-symbolic.svg
1118 +
1119 + local icon size
1120 + for icon in "${icon_srcdir}"/default*.png ; do
1121 + size=${icon%.png}
1122 + size=${size##*/default}
1123 +
1124 + if [[ ${size} -eq 48 ]] ; then
1125 + newicon "${icon}" ${PN}.png
1126 + fi
1127 +
1128 + newicon -s ${size} "${icon}" ${PN}.png
1129 + done
1130 +
1131 + # Install menu
1132 + local app_name="Mozilla ${MOZ_PN^}"
1133 + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
1134 + local desktop_filename="${PN}.desktop"
1135 + local exec_command="${PN}"
1136 + local icon="${PN}"
1137 + local use_wayland="false"
1138 +
1139 + if use wayland ; then
1140 + use_wayland="true"
1141 + fi
1142 +
1143 + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
1144 +
1145 + sed -i \
1146 + -e "s:@NAME@:${app_name}:" \
1147 + -e "s:@EXEC@:${exec_command}:" \
1148 + -e "s:@ICON@:${icon}:" \
1149 + "${WORKDIR}/${PN}.desktop-template" \
1150 + || die
1151 +
1152 + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
1153 +
1154 + rm "${WORKDIR}/${PN}.desktop-template" || die
1155 +
1156 + # Install wrapper script
1157 + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
1158 + newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
1159 +
1160 + # Update wrapper
1161 + sed -i \
1162 + -e "s:@PREFIX@:${EPREFIX}/usr:" \
1163 + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
1164 + -e "s:@APULSELIB_DIR@:${apulselib}:" \
1165 + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
1166 + "${ED}/usr/bin/${PN}" \
1167 + || die
1168 +}
1169 +
1170 +pkg_preinst() {
1171 + xdg_pkg_preinst
1172 +
1173 + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
1174 + # does not need to be forced into the LD_LIBRARY_PATH
1175 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1176 + einfo "APULSE found; Generating library symlinks for sound support ..."
1177 + local lib
1178 + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
1179 + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
1180 + # A quickpkg rolled by hand will grab symlinks as part of the package,
1181 + # so we need to avoid creating them if they already exist.
1182 + if [[ ! -L ${lib##*/} ]] ; then
1183 + ln -s "${lib}" ${lib##*/} || die
1184 + fi
1185 + done
1186 + popd &>/dev/null || die
1187 + fi
1188 +}
1189 +
1190 +pkg_postinst() {
1191 + xdg_pkg_postinst
1192 +
1193 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1194 + elog "Apulse was detected at merge time on this system and so it will always be"
1195 + elog "used for sound. If you wish to use pulseaudio instead please unmerge"
1196 + elog "media-sound/apulse."
1197 + elog
1198 + fi
1199 +
1200 + local show_doh_information
1201 + local show_shortcut_information
1202 +
1203 + if [[ -z "${REPLACING_VERSIONS}" ]] ; then
1204 + # New install; Tell user that DoH is disabled by default
1205 + show_doh_information=yes
1206 + show_shortcut_information=no
1207 + else
1208 + local replacing_version
1209 + for replacing_version in ${REPLACING_VERSIONS} ; do
1210 + if ver_test "${replacing_version}" -lt 91.0 ; then
1211 + # Tell user that we no longer install a shortcut
1212 + # per supported display protocol
1213 + show_shortcut_information=yes
1214 + fi
1215 + done
1216 + fi
1217 +
1218 + if [[ -n "${show_doh_information}" ]] ; then
1219 + elog
1220 + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
1221 + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
1222 + elog "DNS traffic to Cloudflare by default is not a good idea and applications"
1223 + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
1224 + elog "(\"Off by choice\") by default."
1225 + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
1226 + fi
1227 +
1228 + if [[ -n "${show_shortcut_information}" ]] ; then
1229 + elog
1230 + elog "Since ${PN}-91.0 we no longer install multiple shortcuts for"
1231 + elog "each supported display protocol. Instead we will only install"
1232 + elog "one generic Mozilla ${PN^} shortcut."
1233 + elog "If you still want to be able to select between running Mozilla ${PN^}"
1234 + elog "on X11 or Wayland, you have to re-create these shortcuts on your own."
1235 + fi
1236 +
1237 + optfeature_header "Optional runtime features:"
1238 + optfeature "encrypted chat support" net-libs/libotr
1239 +}