diff options
author | Joonas Niilola <juippis@gentoo.org> | 2022-06-29 10:39:42 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-06-29 10:40:08 +0300 |
commit | f611b9dfb607574c279f2fe5a709e362f407e228 (patch) | |
tree | dc189f43014bf62494d95d312c049bffd7c36e45 /mail-client | |
parent | sys-devel/mold: fix prepare phase when glibc has no static-pie (diff) | |
download | gentoo-f611b9dfb607574c279f2fe5a709e362f407e228.tar.gz gentoo-f611b9dfb607574c279f2fe5a709e362f407e228.tar.bz2 gentoo-f611b9dfb607574c279f2fe5a709e362f407e228.zip |
mail-client/thunderbird: add 91.11.0
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/thunderbird/Manifest | 65 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-91.11.0.ebuild | 1139 |
2 files changed, 1204 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 5db352576adc..300aa46d0730 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -1,4 +1,5 @@ DIST firefox-91esr-patches-09j.tar.xz 19508 BLAKE2B e9890c37cc2f86414e2167dda830387f6bfc06ef1f95347c46ae97b04da0515aa66bb8733e7312efa04205a08895623e8b95c58bcd543564e8eff5ba77a91612 SHA512 75d9420a7a5724420766c220c92650c8e16966d0f0c9ddf98e23a3b0c11dee255dddefd762d247f555c2e200b6796cb196c8eba4ee6f5c3567b2ba0c42865d34 +DIST firefox-91esr-patches-10j.tar.xz 18320 BLAKE2B ec882411eed19bafab8676e3d79f4ae43947bb97c44571c1497bb93a44fcfec99de06ebacbdf8c4944dcecdf949e4f684908d7ce4226cdcec60241e62e75810e SHA512 670a14d852bb74b9074c3fef9310650f71ce1c56314109c49aea02a7a69acc836af60a8beab11da53e21b10a8e6da341fcfa18b68a1dfd33b26978dd63758e9c DIST thunderbird-91.10.0-af.xpi 561895 BLAKE2B c794ce6b0e504f9d85ca954fa0d93cfd886e614ce6187f98555482297ebdc75132b3067f0e940fb4d2664a30aa71a74ff8d4bebb116df3706d48c290f213520b SHA512 465c30a199e6d9f85f3c2b2306d91cc07822dc57752e750c527aefbc5e8da13c91e1df03dbe37d72c377fa99c6472c682a9b7b94550b3b8088d7b49e9e82585c DIST thunderbird-91.10.0-ar.xpi 665731 BLAKE2B b450a3563929686946ce5c74f49f9976ca69e5995a13af19893f7ec25cb64236207f805e4c99b02387d4eda32c46ad1fdeebfb59f835954a9c9a55a7db1a0b79 SHA512 f039df005d4bf66ba38491ac9986d6543cc6c8c5d7d1d2eb30f286b8652e0948406b7a1fa85422ed1dc059e3ba99dcf7dca0f8d54a92a0e7b6fe00d2964b8414 DIST thunderbird-91.10.0-ast.xpi 580512 BLAKE2B 57e31d67fc6c59c148cc8556df40a5d6173867fa6e7d8f1824be682cdc0d618b67c1365b87caea43adfb93994f1693bcdf070473453b068a59c055ec1c3607d4 SHA512 e92b2ea2ed9e4617cb1915f7baf32abc930fd571b8039c657f01b3cb4139bdb147f2e7718eadb8a7601cc1968c2daff4471624476b0b95ebca403ca75c846a39 @@ -63,3 +64,67 @@ DIST thunderbird-91.10.0-vi.xpi 725528 BLAKE2B 884e4f8d480f78badb209ed579e6eb302 DIST thunderbird-91.10.0-zh-CN.xpi 730903 BLAKE2B 01a23c174e38fbd70c4812df869e1c4a4a617621281d691049e07aaabc1780a92472a5b3672f4f0a68faf6b86e77cacaf94b463561219d6e0cf9573e2eb04f10 SHA512 9aeea9dd0d6954b665a2149ccc7f2d92d64b3ae62c04e845ae87a015d03e7395827a62d83bebd087865051e1a9cfe56d209adcb86852636fb437bf87a4213d6d DIST thunderbird-91.10.0-zh-TW.xpi 731944 BLAKE2B 188f54a3870bfbba928447201d4543ffe1bcd9b3ca0d7343434b0a1d34c1834b3be8554bedcc7c37d740af919ea9d309a8e0a1aa383fb5c88d5f624cc205b5dc SHA512 2b55044ca105c79b6c5644445aa48a4cf00bd1ce7f4982033ed93edca098253736d2009277f732b404e30d59a6183202f65abb4286d402685ea3d6fd1eff6eb4 DIST thunderbird-91.10.0.source.tar.xz 413952892 BLAKE2B b1b76a2ab0249e79f7b18cb572b1fff95422aee3df012104b8f588de0e30f528ae937da16210fd75878239125a406cdbbf878e3de23de75c3cf7818a13d65d24 SHA512 335d47e93d5fce4ff6e1ec0305cdaa86031f28289cc06f30ab3782bae484ad10ac4b9aa70911787627744277715edffd8ec8c3a2008f00b8b90ea02b0d79fcc8 +DIST thunderbird-91.11.0-af.xpi 561895 BLAKE2B 0f6a75b7ba17d99804f1384f1093412bc01c583907fc178b5adc6dc354382b87896f2e716e6f2ffe94337ef1bfd9823431ad6801b8209d0fafc5fa50c721f568 SHA512 af33a27ef12b50e179e929e05bd277484663e30daf156a73414ec811489b68052f671bfd57b79f7d9013706648408a223b2bb0791979caa76773db2ed2b0c670 +DIST thunderbird-91.11.0-ar.xpi 665731 BLAKE2B 9fa5d556e0fb83d2350543ad412e37dfa900a296ead57bb667efea550be5f7f58ddcaea30bd559f6bc1903cdf16cd35b551b8a96ee2d3f42b3123094aeb9c311 SHA512 1f6f1fa13ccd6f38dd33a311a5340bf9b02f8a443ab809e314e4801d5402b63c17f0248bb2dbd653ea30286f92ae71c37de5d9fddf5c1a563aca0c1b442b96c2 +DIST thunderbird-91.11.0-ast.xpi 580512 BLAKE2B 21005bd53c65fcafc4c0bdb1c3befb91f297543de2788cc4713ae07e844a04b3c1d1308174ddf0e032e71be2d1e992177b5159fc4acefeec09cc2b00a0350658 SHA512 a83833dc921104ef6524f4d3dd5a50eda34795a4653ca58a1073ee24fab967417a42aa976f740b2ece4247ace636ad6f18bbe704712085bd6c925ff6f71f45b8 +DIST thunderbird-91.11.0-be.xpi 695198 BLAKE2B 36b485d8489b83678c60f34c8641daeb4b81f7d60d33c73b1c25e525efcce07a74fa7f53015695611355e529b87e98a154ff01f5ff53b88434d4eb72e1f77e35 SHA512 a823e7d332fbd8261484656f07529e64f9b12d36bccc619c0f0a781770c5cb5b1bee9a5d21a74cb89b8b0fb3639df9c710ead3704d5cb22c3909c91b562ab7a0 +DIST thunderbird-91.11.0-bg.xpi 690997 BLAKE2B b9165363b05609fa549728018a7591bab9760a6972bb2d7d79af32f708303779caa4ab534495f2ea8e91d0d69717b2fe5c5a2912d0ae2318200ed204f06b1f7c SHA512 e2fb15784c7301edc44cca4717d96b27e6f005bef67989c4d505b51e947787d136c807590606bdc5e7e6e365ab4ac17046584cbe2b49e3b5868177871d6bbedc +DIST thunderbird-91.11.0-br.xpi 620589 BLAKE2B 1e3eb292c6ff2fc8f708833026dc155952da0516a32d1582db90c4f11809af562944c37a5f801e2ef719fb9b7eb4dce2883f8d82c86f1455c8d461c2ee4cd6bb SHA512 0c58251fd11fc5e0f17d8ec8ade4af26744df8488e8768dc98e001b1f882b0e0a20a30f686d5b20f21c255b41898da477533a4a7fd50de3ad90adfa8828a0273 +DIST thunderbird-91.11.0-ca.xpi 645976 BLAKE2B cbb72f8d4e8cef4ebbe83014b7be3741b437e8d295c3ca59d22ca914124bdeaab4ea6165dc053b7850b895a4bc4bc35147b13775ffe2b7acaf28294022747835 SHA512 7b414bdac6e0b2ed4631e298f5a16183d73107acca69b866e510939a0b5cfa040780e4a98ad915c7ed9c5ca594e1741a60ba8dad65c0d50e55f7de0356dc5f7d +DIST thunderbird-91.11.0-cak.xpi 652066 BLAKE2B c3dbe59e0eda0b2b5eac5ca05eeb31385e2495f23d03f10193f55a2096e5b6b3ddd3d56b6b03bdd80a0dc221665727f68484002f8c9ac777bc1252be94fa63db SHA512 51cb056a4989f8b9d64b8ce3e12a2d2d9ee20302ee78c43b6105840c8fe0e354eca6d9d37e21d526d72e6ebb07d123afda6c860db6891113943e5f53a7584d24 +DIST thunderbird-91.11.0-cs.xpi 711939 BLAKE2B 627537fc4b6919ca1cb42a295994190c6c9ed7ad5417f6590254ff94dce312f803208bb2bc52f06e15a79ee37254616a156e387a9e78e50d4f25ed77bef31e41 SHA512 1d4313e571b652a658889c6d2ff3e62c28a6fe28bced5e174722fa014cabd10a5058422818b8d3bdec91cee4ed92b2edc5fa7bd8650ccad93610cef3c4d405f8 +DIST thunderbird-91.11.0-cy.xpi 688889 BLAKE2B 5a06be40f190570ae8a1b43eb968bfc6bb8850b0f18b6f5e7a215db45f8a7258379d488fa89fc84a2661ffb9ef004bdcd17b010bb3b3b8e2c39d5651e8102696 SHA512 8506191fcc089b76a34cdd2b9a24d6fd7e86e1952d112a2676ba2cfae1645ae70069ea3586621163351f171e8450b7a63379ac8afa37b586fc1d6f76ffc74a61 +DIST thunderbird-91.11.0-da.xpi 674445 BLAKE2B a6a58920a1018cb3859707478e7a1d5ee3a67a3c675331fbd1862f39d0d0dbb15cca9bad8a1ce9def53909a6c1cdb65f6ebec007d9f75db08140d0e66e804ff2 SHA512 9cf6a8886eb89af6301651884e5ac772c844a29a2f05b45f216d6311a3ba278a46dbe692463ea939fcdae366be589820adfb90556370fd32c1755b1f4e749c4e +DIST thunderbird-91.11.0-de.xpi 697527 BLAKE2B 131ec5d229c597e0e65447ce74e8f5f5fd65ebf47cb7c61b438d17ba60727f40e78a53c40f002a8f3bb76e7127600e01c705c90c9b676715ef0e123e8b65a4e2 SHA512 554c3987157144e9dd7b8adb1c95d58358cf922f4eed43bef9455fe72f50ae0b0ad24877eef85c5824cca28bb79377a5f07bbaa9f44852f07039c93875bf3887 +DIST thunderbird-91.11.0-dsb.xpi 724000 BLAKE2B 4cb3256f63e516c438d7b33a1495a8a851b536ea225941394cce404abbe3fe99c812d045b09c10f0f08a06d45991a50aeb1426e38a2dd0557d8945b07bc46af8 SHA512 39c3c9a4fffb1e2df037b4af9bc8a6b90df513d15bb213894db56dcad5bc30f16413e68d8df3ab6cbd082bde3b3adbb7c4dc8720e2e67510ce7a48c22ecaa49c +DIST thunderbird-91.11.0-el.xpi 821181 BLAKE2B 9fa7cf0450d2d3b89af356dea56e3aa64d132a8ff5bb28cc85e5bf12b27aa2f894980dded02613b816f39db5456aa856fbce6710a95f5da8a1ec290701bf62ea SHA512 b73cf9b79e94b674abfd482e0a812ccdb825326d10288a3beb0b60e6792b002b72b1dd972f990a92b5053bb262b7e1a3463f905370f06b698204aa3e88f224c0 +DIST thunderbird-91.11.0-en-CA.xpi 647814 BLAKE2B c6c50cc05d2be625395f3b4c987bae185ea49405be9f11e1f6f2e5a207d305678358b9efbaa953e4cef712db69686c3d80341e1354363cfd8910d3e538b81fd6 SHA512 c8201e45cc831786ecabcf35a22a99d93038db70a27dfced6016ff3d4a3900fbf358ef415528fc5fccffa66af3767d63eb1333feda6d50bc9dd3771925416773 +DIST thunderbird-91.11.0-en-GB.xpi 650554 BLAKE2B 8496e1c43b8f8e01444401111dc9495d7fbd5aef10de1ab77de883485bff4a6317e81fb98ca95e83eaaa1bc01336d59c84f284e8bc240df96f6589c55a190038 SHA512 2d28cff3635ca025fe4f1b0cd0f50637999758ff2c01450b548139dc2444ea778e6d88a37fd95e574d8dd4152355efdc48ba56c1df4216d6accfd1cd41ffb31a +DIST thunderbird-91.11.0-es-AR.xpi 700497 BLAKE2B 83f9e2493fd640b867f150b17d46c4af5ef47cf1f0c097bd48ded7acae801f2857b5ee8bcc3a6445aa066dd9bc8ae6daf931a4d7aa6be6b148753c481070b686 SHA512 3e998c1266002a06213c0e1f62a7f1bcc1e1e854066ae4e5ec9503f54d9e37bba8484557ce6bce0a244c0325b6b74dade5746c1d19e8b78c132b941d1935445e +DIST thunderbird-91.11.0-es-ES.xpi 630921 BLAKE2B 81c6b25a821eb5140498fa2c1afbad5dae5156a6c5b677fd7033927dbbd503bb8f113e951b885125e8a9174bc68aa8221ab15fde592f0e7a288b77bb1ea763d4 SHA512 432d4a2f09df685be31d0376e84d22b4e1cd818d3e35bbc3570aaaf03000c9b964efff9f4497b1579bbd5cee147cb0c8174dc604372d884eec4120698b219748 +DIST thunderbird-91.11.0-et.xpi 672171 BLAKE2B eeb249a1ac1e97fada64f0d8a114cd4085bd1de62a4b22c529beb0e4049533bd65c83d01c416bde9d04e7fad679866d444c7009e55ad52a486cd49a739f697c7 SHA512 e65475fef665e9975eb4bf8422577286acd7173b07649a4b8348109e538184263a91988d431f34d1a703f44c1e8988662539926a4219c99834a5f4f5f052e225 +DIST thunderbird-91.11.0-eu.xpi 678263 BLAKE2B f93b0aa9387430f399a438b60809d7044798c18fdde7a61deeae7c610c9ae295b083a359b7116d15ece7fd9d42a24e2f982a8c39578c056cf332909fd96467f4 SHA512 e46dad4424788d1629281c9b16e26789980904f13d0a9b4ff06e5801ef3ba4b6c290f9b9ac687f85a082a1f81be8f8133e1e4aa6b5336e821a3aa30ad352528a +DIST thunderbird-91.11.0-fi.xpi 676630 BLAKE2B 0a9136e1932f121c625662ced950bab2d54df04e90f81b26b9c5fffbb5303695604a89c1743fb502d5bf294f285cae47a3d03ef2ef3145562fef15cc430da75a SHA512 8913529a417a6cf6d44c1d2f864c3c2c50294ba6fa73b9c942530839951ba3117237e193ae559e3eeb5d19925dbcf0ff1f60df84eca9487c9d5c99a6ba33ef9a +DIST thunderbird-91.11.0-fr.xpi 711454 BLAKE2B 46b521666bcc98aa701e5ce77bd5c105b95d191e759fb1dfe59c8fc3000744771306dd036ab727a1749c4e610f76af3b46ad13191c90c7054b923b36ab569dc5 SHA512 95d38919ebebcf42c9149b26dfb05c047055b2232ded5e3d055ba4048041127c931aeaf6a90d0d40c8d6026477a375bafbc84de283df5eb1d2a268dba03c760f +DIST thunderbird-91.11.0-fy-NL.xpi 691881 BLAKE2B 338b186b4c73813dfe11a3ebb42c53f78b021a289d366b6f7df711984b656701fdf757e57787b15a2f047b9064f7502340a0ade2dc913d02ea120c924bc241a0 SHA512 437c259465471a5dda778bab3416d0620ef98314a94de994d67d944c58a1959852e88b3db01cc55e9e92fa1b4c4e66f912f46191df266f0e66a59e84b8998bec +DIST thunderbird-91.11.0-ga-IE.xpi 613124 BLAKE2B 7dcc4590c29abe2c0ac5daefad6743b19fed87aafa4a621423e45eb605e30b735c3e46ba08b03b1699ad4cacfb675140c77ffc840e2351bc6d8ce407074eea05 SHA512 3344eaea97c004a5cab95bc8896580de7ae06a99239e1211c5a1bd4d712a9655323088d812990d4f6eb08d26fad2257bd7ca57ec526fef8a964ff4ef9148699c +DIST thunderbird-91.11.0-gd.xpi 640649 BLAKE2B bb8da0d001b324e2c579fe4c7f63eabee25ae7bbbcd7199e547aeceab9cd8996a258999fb185cbd085a79ea3fde5483bbdc290c0657820bd6122b0e5775548a0 SHA512 bd89df065d526c2b15246c19582bcad98ff194f219551dbc0f4bf7d6014964fa264b23097c69885f7ecaefa765ddbebafa58ece920e9c4d42e43544e71856d0e +DIST thunderbird-91.11.0-gl.xpi 677789 BLAKE2B 825784ac9ce0e3586e02ae892ceaf2a4235649cf4bf72b0473d2c5a79c51fa43da6de89af26e880a328291e6fac68a0e30596632499a72ff492486a6df24c64c SHA512 5449b1fe8217615c66d5e4f189ccaa3ef3163a46f51ffab464e38f6f998e2aed2b82b8aa425df455acb0c768688aef7cc0c41254aef275db45a98c208058faba +DIST thunderbird-91.11.0-he.xpi 673191 BLAKE2B 39ccd93d108b003255995ec59869cc1d13c10e3562aeaf8110c399eb6065236c5194c0d2dc3df38ee36b602a4fd2cefbaf32b40e811a7d42025ce9f197dffffc SHA512 158b95d8312b11da954e6f2cd34bd5a1aa1de68477b5b3842efa8b225cb4e0a497353e543c967b3d53fb2e8d8cd5ff082dbcaeb423658e7fabf316b3cee4123b +DIST thunderbird-91.11.0-hr.xpi 653581 BLAKE2B 1ac0b1fd98eb4ceaef82dd15250a3669537fe6968332bae8f041b5a7425d63a84674964c6c274fafc3c33fd370b38af10b698dffd462e1f9650c741f6e297409 SHA512 c0e91643726e9d92566a4459dfaa78158be898d1378fb755892aabf4db87635a61c6686bf2917924388a00e5b67605e8fab3a63c895e6ff6babf729374701f29 +DIST thunderbird-91.11.0-hsb.xpi 720812 BLAKE2B 155e3062330a9fedc46696b40a6fed7c7e95b8088ae17d8a0991dc20a04ef1c9892a4c2a8678ac1384a2a22cb64e321529e92063ec318e134de1c535eb1c6667 SHA512 d07e2c98cbd9e1c9e4213c877852bc96e46da966e2facb9c6e5680b226466a835aab39279a0faa441b1166945bdcff8a19d79d40310b94ea587b37377b12e3e2 +DIST thunderbird-91.11.0-hu.xpi 723399 BLAKE2B 9fa6efeb69eaf938eb72c610f71264662dfd41aec49925173db9a593f9c3dbda858bc08de2a69b1ee40f5f998a40f0af21b3df8c7712bec77300b153ec7dfa58 SHA512 ff4f013787285c0b6aa4880c4de576cdd94e9271fefd86bcba0a3e540ff3dbf2ca30727129df711c31afbbfcc05bfc7f765d50989fc7225772614a29ac11d032 +DIST thunderbird-91.11.0-id.xpi 648250 BLAKE2B dd3036592c0416149f2eb4daf8c49c2d87d094f5998f95f17f89535005f856a08fec6c8903e962417498b0cc01cfb23dea53d749c14c769ad1ad4ac3157822c6 SHA512 153a07745f034a36316a6353ab09587e826838340330d553bdec833865aa9004f9181f617ebfb946c10eb7588b6e1567f363c9fab2778b2203b084b7b91ea897 +DIST thunderbird-91.11.0-is.xpi 682263 BLAKE2B 6f1bbbfeb7426cb44636413b920940c742df206b5a3e95ddaa227311f20a162cb445e5e26cb2d2fe14158e95c18fa3ccfbb0388f3238800253954c0e113d737c SHA512 2b8058f4af3951c5f142eb164409852fc9d942d2aa35b5fabc096cc87df5680c7fdc1d6a18e017d36448a57e5f709ef9bfdd5d610799e786f77b08c85c9266da +DIST thunderbird-91.11.0-it.xpi 613334 BLAKE2B 86829852b57ecc04b7be553c95c6dbbbf85e8d80b10522c112076d439fa91cbbb0a7ba1a205a008d28570cb05d52f8b04f342265fb985348d5fa30e35d0eadf7 SHA512 f5576d0538b6dd1ede37d3f620e2ab55f6075227a70e3fd0f4a58358146b0c50a045ba7d1c4ba74bae21bcec570ac565e06c2dde6742643d3194ea471f437ae1 +DIST thunderbird-91.11.0-ja.xpi 756467 BLAKE2B dcd7298a738fc470bdfcf96209af178eb187e77fa86bead6c3fbeabdf5ed338bd7ec3cb1d15c64ba65487ac20337922655bd0281a6c4951201d26973afe2e159 SHA512 263f6bbda4fda346f965ae7381c06ba103ac440bd9c92aef811b61cefda32698225495b7519814d8a18a8d0eff5fecd4a03ad05ef29c9269eb8a3fc76817a93e +DIST thunderbird-91.11.0-ka.xpi 762629 BLAKE2B 3fc3d74f26cf1b85399417df1a643d24bd11ef409a835eb020ed27208874ca342f1a0db1d3e0e7f20eb59932c6d6e11e6af2d845cd6161bf3d359460c9c2fff7 SHA512 6d894c4532abed2ee2a432464e98f3fc137a2a79f2183262af63a7a530f2dd2f9127d66c90b458b6e62ef81a586c826d748a02a97a022b01b389cf3b066ae1fb +DIST thunderbird-91.11.0-kab.xpi 677087 BLAKE2B 5cfc6d90b544677e8528ad2972efd44b7e9620e022bb8759d8635e5541d3f67dfc71ca4bdbd4e294dd7b2e8a5c63463ff9da3b65ad3a341c9f3155dd5965c238 SHA512 20797684be4c80cebe0c6087a060ece8f888f74bc48589433316b29c606f4167c1a90af72ea49e8b1397785d84d718dfabbdf9388bed4a77318c1c08dbc1bb4b +DIST thunderbird-91.11.0-kk.xpi 745524 BLAKE2B 41563d794fcfe78b704f054eb42ada54e729e8122a123394f1572294e4d407f92c4ae70a842586d76f36082a841c548e31ee59aca7720b88050849c05cf7a351 SHA512 f415c344f72336a57518ada976c6fcd2aa00f9dd3748a9d57384deb4fe471c38fede14299b9d9e96be3444b797c52b196636cd1d8639ceb753dac62081a0a7f4 +DIST thunderbird-91.11.0-ko.xpi 704768 BLAKE2B 68a9875b362390e5aa9b1bdf768d455435dcacbd6406423dfddbf3be71cd8146e6859092ec5023ffa2f8c8ae2c7c7f6038c9c2f508a038aa077ccbd2c1841684 SHA512 62b092d0eee68b5cc74eaa3d9684cdc18f3f1338112bd05f7f2b2a3c00c00766f558c21ed962b84a526c411886ef633489940c2e6ec08ef57bf86d8e4ec8e9fb +DIST thunderbird-91.11.0-lt.xpi 696045 BLAKE2B 0f825104849eb5af6a0719b0c1c6ad1b279a920e069f6f43cfbaf7eafbf90e9ed3fabf38b569299f48d7ec918105d67fa5a23bcd2cf692cd7401ef10eec18624 SHA512 df249078972a86b7643ad69804ce0e98b1a3cfb9ec72d972b0095377f86ad00779c04c800fd6d08132e6a56f26d6ac470bb97d5ff572d60b65cf63e58482a52d +DIST thunderbird-91.11.0-lv.xpi 618524 BLAKE2B f7266a6ed339d33e96f53283070f7561ac5f66f00df23684c5404379cb5f070601dc4d6a42eb9642e9f069e8f3c54c7a0e4f189a0ed0f12a40eb8fdbe57d1460 SHA512 f2aaf92eaa5b92b05ad28946860e460206a477603dd0ef56f692d7c2f8296b608dd7fe0216fb9b96d794d2f35f6b8099239463ab65b9905e7db46c8a81f8c6c6 +DIST thunderbird-91.11.0-ms.xpi 578080 BLAKE2B 2106c29fa9c45bc706032e6cb2f232b15615e1e629e1c80a1cc21f12902804abd98763d7f8a3a7bbf2af755cd0ddd578b157d7a0e0ee9cc963361c3d6bc5084d SHA512 e4dc3c5906d66f739dab58511000a7a3284dd2e15951d05ce226c37b4abb23dc1a17f41531651a7c95ad3ebc89e84b8f7868d06d846a254cbd0a4999783ae396 +DIST thunderbird-91.11.0-nb-NO.xpi 653327 BLAKE2B 04ff3ef0611eccacbc28bef0555698dd4cbf6b5bd243d65b2abf4409cdb3762ae0fdf025cc37fe67c38a0450c375a020e7ea729072afdd2aa5ed6958dbccb10f SHA512 5b201cf730725577b3494fb8370896489360503bb812b7f8e6894491566cb586f0980ca2d2c4b2bdf2ad0b66b3086845b318b6c69038fb7f7c76d719a6af2044 +DIST thunderbird-91.11.0-nl.xpi 685343 BLAKE2B 5fc89bd9624cbac67f2cc1422f37259548626f7654a1a3f3109ad76b788d52d81b26e4b840aad6a2ad53805a8bc4c7f4db4c86092017090b235fce3c364968db SHA512 6b21195e6dd826a2ff17926ecf6f21d238a44d9ff420e3f0b4047fbffcba2af757fdd3fe7d3b1d85a3666b8f2f96647664418d62d74513a435782b7655083df9 +DIST thunderbird-91.11.0-nn-NO.xpi 658571 BLAKE2B 65bff16cc183f092f71c8cef7aaf01a5ff40d7cbbbb7cc591271cfd1ca955c36f412f0289eca485ef2b86f891abadd602a43007aaded4988b433a6e403d2e8be SHA512 7770be3cb0e2c36ee1609673d844346450ccea19e6966239541d942c3aec5113cfd22663b4a1df4072ca1be3abbb4b0258f6bb2e4edd700525e051926c6607a5 +DIST thunderbird-91.11.0-pa-IN.xpi 652335 BLAKE2B 033ef3e33a22ceb55727b5f67597d1faad36506d693d70e924ef39b66798cba38a2561f124fc7ea0c7bd50bcb54ea8627b74cb10608859850d0b69364978def0 SHA512 5054423562e84617f472d263cd0ea172896fc3a6e82f48d78ed763a4baf17d65d5cd2ab01559e4bd1369c764d7d8ba1a2d9b87a633e0f06a783e9627a0074361 +DIST thunderbird-91.11.0-pl.xpi 694113 BLAKE2B 327d89fa8614a9e131f631513061e2c58c4b2f208f2b369c9028b23e3d02c8f97b44670b2fcdf8f5547f6bf632a3f5a996188324bc7822da896ea64abc116e9a SHA512 1d7e79193b420fc6440a17e712ca6d2dc75c1f4b39f462f8ef200e8c92767134b14e576716b55cb51dbbeb9a658a47de993151b1db8694c01a7c1efe1d4da478 +DIST thunderbird-91.11.0-pt-BR.xpi 694133 BLAKE2B 52cac3621175ef1e2e6741c351c9285bc4a71ca99ef756c18225e92e468b39695e60201fe3776cd2eea2f4dabd63b19df8585427653f307d695704d093185598 SHA512 09c63285cf7b1d65fb0eeb349c13c337d207d34b27cae4f5b01157350f8db95e939cd05452af6b69b9b0ca261b409787e4ad01075b664f0d2d046cc07ab055f7 +DIST thunderbird-91.11.0-pt-PT.xpi 674674 BLAKE2B 5ae5606fae2485a1a3e81c8ba5e649ab2847ed28d5642d2055f1e9214dd37fa51487e6436e66195ba7579b0f9fd1bede601baab5f154dc05181c511e8127b6fa SHA512 f1cf204ae376ae61a0b63cbb52d79edb2a82f23db8269ff7f96492926c65f483611227368f0071c74911f83478f917912c8e305e3992cbf3de1969ca4309974b +DIST thunderbird-91.11.0-rm.xpi 687613 BLAKE2B c31058af323e30290279ed5d2c421b4f6e79c69f9aa19333b84fd0283341c39031477fc6f5ffe22692af9b4368b2a34241d51eefd9b2f33df453ef5f43d930e8 SHA512 9ab0b5d758a0c07ab574079c6e14aa084149d445c650a9097466793c32bf89e1612b2fa2c1caf90c3152c769c3d92c6a68d784e0104daf36cefc18bd1988b726 +DIST thunderbird-91.11.0-ro.xpi 661345 BLAKE2B 011a1304bc14918967b23de9a3cd4792984fee90c9b81e0ec9dc88c02520a80c2a65ee20895b7d5b6ad79099eba25eb10249b26d8ad1c73bff78fe66688387b5 SHA512 032c0f66ed57b90535f009393f571e80a77f24f0d1ecc7767ef52a7326faf773c6bc61f48f91414589728cee2f665b350a95c20b8ac2f14d2e3d27968c4845dd +DIST thunderbird-91.11.0-ru.xpi 793375 BLAKE2B a31ebafb3f0cf02949139c75795f191adb65c23591e27e5b0c4c5d3dabe782bda885c036347b3feb9f9ee4305876b0c1a046504f2919f04fe013620ae35cdd6d SHA512 ca3cf959d3cdd24551688328566a7702dad16cff49a39f60c7d5cec9391385b935af4dfbf979c11ad3eee492be05c3ad781b0090f47b700c6df7c1b1697a4137 +DIST thunderbird-91.11.0-sk.xpi 721092 BLAKE2B 11dc776ecae45e44db2ae45aaf4d6b1488b4fdfe31044f2c1b657ad33bd09e781831f9ddafae25f8c389c1d468f005bee29314ff16ce814b27b57ea713cb08b4 SHA512 4a20a49ee0a3a9d6b4b8a859879cef517668233e43091d1504e7c719a569ee58bf17b44d377a5a42b1176db71ce6e815fa62675e50e4e371e9b407e060bafb3f +DIST thunderbird-91.11.0-sl.xpi 682544 BLAKE2B e553c1212e12056c1886e4ac7a8af2299f3aeef138dd38a9324514e39a0f214b32c70754139007d2137446190a9366a825577b1333a2516acbcd5b0c154b928d SHA512 b383131a40f4062de1730dc81705f070a4bdc468288c331dee0fbb9972b7e66205e8b4cbf73266344ccaf011cc72115045f847491d7552a7140a79e93a5b91ca +DIST thunderbird-91.11.0-sq.xpi 703626 BLAKE2B a7a8ce12c80b1c7eaf10379b6fcd7e128b6cf8cc6cce546c6e9cfa2867057f381797bad3b9f6e84c3de12536c9754aa634736ef70ba82ff19431285c698651eb SHA512 2d50c238d8ca30ed87006b82d65a0f837257efafda864b16d98db0ee3e807144f8d350f08e40ec167a4c1082f497ecf94eca532bdffaf7e7b0f4b70bde345ad5 +DIST thunderbird-91.11.0-sr.xpi 710565 BLAKE2B 158639b2968158b2a6cc9384bdd0405f1b8adfc36992c6f7c2589b4b77058f1b37cd3ec70017a85bf332b68271c73dfffd76700e90472968a4696e3f308a3587 SHA512 dc684266a676a09be1ef5f2880b9bdd344d936203dc79fe240e6165812076d8f5016783c908204b0db057cecc5cc4ef4a1af263ebe8814db524138bfecb7e0cd +DIST thunderbird-91.11.0-sv-SE.xpi 690968 BLAKE2B bd576e685718992f01178c1d68cc857ab0713e23d24fb0d916fd51e794eefe855613350c3930a0ed95f454c743aa2113911c712fb89212ade950d3783135e290 SHA512 a99728ba878ab244cd4d8501dff33c276774233c2effbeba50b0152754eb3aa1d00139fe1e17610a87eb6672ab767687a23e3911a45b719b430f4fa18f3f21fd +DIST thunderbird-91.11.0-th.xpi 748754 BLAKE2B 1d4aca33d5f8330794aab1b7627be1f6d425a8f86f8c13b40095c33f30f7eeb18a9bd8acec43202cbe957368c0b0e06b54908263658757cc7be6cd91bb606955 SHA512 9561ef36a6dc129cc979f91474f200acdd408fde72a64a3bb9276d9076770554154105acf1bb5ff5c9f9f7fcb5d958f451977feee88ab5b09b9fc535d9faeb24 +DIST thunderbird-91.11.0-tr.xpi 699653 BLAKE2B 0866b2a7556a07bd2d1bdafc99d294205598635d1e2f84e839150e02171ab291d72b46bc49ce91e136779bf48b23caf8b33dc215453239f182725787f0dde51f SHA512 84a1424df46ba4fb50d5e831a3bfc6fc28c99b288c1d107eb8ec64736f709303e81a66ea6de2da51d074f4f4c63f0d6c654bc9166a6e2613e229f950efb477d7 +DIST thunderbird-91.11.0-uk.xpi 798482 BLAKE2B 8bfd31c3e8661a2db3221f60828bf5e22f4843483aa6175dbdeee487a8b1c114a79b1f658533f250e6dbbe29b21721ef9f283c5c5abddebfb544602a2a40e454 SHA512 199e41b818462551535fa901229f35968c1b4948e6b8688367dba372524b326a69d1e2212d47bd11384641923fcefcbc5d9f409f5f3e72c623b2c6fa7042549e +DIST thunderbird-91.11.0-uz.xpi 595921 BLAKE2B f0ce0bee50bfdaf9d9e8bc6bbc2dd83a1a8974b50465481d1771159601b173626734eb0e5f5254fd5e4f55df60aa6d897c8e8cffbd5acca6601d9445993be175 SHA512 86899670cba0b9928fb56b7dc07101787a6de7c752e1def5f0cf0a8e474b3690fc648150088224557ed8141b09d98eb641a4162491061c1173a442ba03eb6322 +DIST thunderbird-91.11.0-vi.xpi 725527 BLAKE2B 104190b96e95b5ced672b4eb25411ef3f9023d67f308e7d61401eae2ee7c35e1e84226d7bd09c9d0a309e1fe5a66eba14b0660c1ea4c697acea3533094cfbebc SHA512 f91a977753d141b350f25c82226d09e86682b28a338ce405c2c68d6e4f489a9d56a5d8c015bfbadd87c7921f779b152ebca98fed7154b604635efb25d9c0f8ce +DIST thunderbird-91.11.0-zh-CN.xpi 730900 BLAKE2B 72873985e276a600dcadb35ddc5548a3c21f3975bac03edf52629b7073d23baa7465f531109d7859ec312775ecc411a6a0a49a381adbf5e93528a4674761490e SHA512 41de80bc7367bf9e07b1eaf66bae1267b0085d5e1994f116f8536dfe826b9708f4d5b8b0ad54d5bbc00aac72f22461129223e8281a9e6f7c020f8582fcd9d27e +DIST thunderbird-91.11.0-zh-TW.xpi 731944 BLAKE2B bdd33ee5058c0e16cd9701876ae68f095b54e4059cec630cb7b2a15428416714fa7dd0852fe15139d8f4c9cd628db8d6dbc4d20e22fc0ff4e476c4dda20fdceb SHA512 6450e341d72472846fd23aa65eb0a931c797f9c28fb5524b8fe4c1c3f4ab12921a57c750fe4877c98e893c2ed729d2ed32691ffab5dea4624acf6fab91f3d01e +DIST thunderbird-91.11.0.source.tar.xz 408098564 BLAKE2B 01a0703438f51bfb8da1949b005df1a8bbb07d39b3d5e3d0ae92566ee84d13a111ffeccf8869faf58eef7161d6ffa91aa5d95e95ca6e7b2d7016fae709d010cb SHA512 26b9242259b71eb14ddadffb34a59d07d515bbbc0cb806eed965a73b001ee81b3b1128d06cfdf3e50d5da4ef97be21d11193be34a582d3c9f27f27d2f97d90d2 diff --git a/mail-client/thunderbird/thunderbird-91.11.0.ebuild b/mail-client/thunderbird/thunderbird-91.11.0.ebuild new file mode 100644 index 000000000000..2658c7c65528 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-91.11.0.ebuild @@ -0,0 +1,1139 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +FIREFOX_PATCHSET="firefox-91esr-patches-10j.tar.xz" + +LLVM_MAX_SLOT=14 + +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="pgo" + +MOZ_ESR= + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit autotools check-reqs desktop flag-o-matic gnome2-utils \ + llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \ + virtualx xdg + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~{juippis,polynomial-c,whissi}/mozilla/patchsets/${FIREFOX_PATCHSET} +) + +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz + ${PATCH_URIS[@]}" + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +SLOT="0" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" + +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel" +IUSE+=" jack lto +openh264 pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png +system-webp" +IUSE+=" wayland wifi" + +REQUIRED_USE="debug? ( !system-av1 ) + pgo? ( lto ) + wifi? ( dbus )" + +BDEPEND="${PYTHON_DEPS} + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.24.0 + >=net-libs/nodejs-10.23.1 + virtual/pkgconfig + >=virtual/rust-1.51.0 + || ( + ( + sys-devel/clang:14 + sys-devel/llvm:14 + clang? ( + =sys-devel/lld-14* + pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] ) + ) + ) + ( + sys-devel/clang:13 + sys-devel/llvm:13 + clang? ( + =sys-devel/lld-13* + pgo? ( =sys-libs/compiler-rt-sanitizers-13*[profile] ) + ) + ) + ( + sys-devel/clang:12 + sys-devel/llvm:12 + clang? ( + =sys-devel/lld-12* + pgo? ( =sys-libs/compiler-rt-sanitizers-12*[profile] ) + ) + ) + ) + amd64? ( >=dev-lang/nasm-2.13 ) + x86? ( >=dev-lang/nasm-2.13 )" + +COMMON_DEPEND=" + >=dev-libs/nss-3.68 + >=dev-libs/nspr-4.32 + dev-libs/atk + dev-libs/expat + >=x11-libs/cairo-1.10[X] + >=x11-libs/gtk+-3.4.0:3[X] + x11-libs/gdk-pixbuf + >=x11-libs/pango-1.22.0 + >=media-libs/mesa-10.2:* + media-libs/fontconfig + >=media-libs/freetype-2.4.10 + kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) ) + virtual/freedesktop-icon-theme + >=x11-libs/pixman-0.19.2 + >=dev-libs/glib-2.26:2 + >=sys-libs/zlib-1.2.3 + >=dev-libs/libffi-3.0.10:= + media-video/ffmpeg + x11-libs/libX11 + x11-libs/libxcb:= + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrender + x11-libs/libXt + dbus? ( + sys-apps/dbus + dev-libs/dbus-glib + ) + system-av1? ( + >=media-libs/dav1d-0.8.1:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-libs/harfbuzz-2.8.1:0= + >=media-gfx/graphite2-1.3.13 + ) + system-icu? ( >=dev-libs/icu-69.1:= ) + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) + system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] ) + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] ) + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] ) + system-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wifi? ( + kernel_linux? ( + sys-apps/dbus + dev-libs/dbus-glib + net-misc/networkmanager + ) + ) + jack? ( virtual/jack ) + selinux? ( sec-policy/selinux-mozilla ) + sndio? ( media-sound/sndio )" + +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack ) + openh264? ( media-libs/openh264:*[plugin] ) + pulseaudio? ( + || ( + media-sound/pulseaudio + >=media-sound/apulse-0.1.12-r4 + ) + ) + selinux? ( sec-policy/selinux-mozilla ) + !<x11-plugins/enigmail-2.2" + +DEPEND="${COMMON_DEPEND} + x11-libs/libICE + x11-libs/libSM + pulseaudio? ( + || ( + media-sound/pulseaudio + >=media-sound/apulse-0.1.12-r4[sdk] + ) + ) + wayland? ( >=x11-libs/gtk+-3.11:3[wayland] ) + amd64? ( virtual/opengl ) + x86? ( virtual/opengl )" + +S="${WORKDIR}/${PN}-${PV%_*}" + +llvm_check_deps() { + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then + einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use clang ; then + if ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then + einfo "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use pgo ; then + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json \ + || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6400M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6400M" + fi + + check-reqs_pkg_setup + + llvm_pkg_setup + + if use clang && use lto ; then + local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }') + [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}") + [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!" + + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }') + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}") + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!" + + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}." + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:" + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version" + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version" + eerror " - Build ${CATEGORY}/${PN} without USE=lto" + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole " + eerror " llvm/clang/lld/rust chain depending on your @world updates)" + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!" + fi + fi + + if ! use clang && [[ $(gcc-major-version) -eq 11 ]] \ + && ! has_version -b ">sys-devel/gcc-11.1.0:11" ; then + # bug 792705 + eerror "Using GCC 11 to compile firefox is currently known to be broken (see bug #792705)." + die "Set USE=clang or select <gcc-11 to build ${CATEGORY}/${P}." + fi + + python-any-r1_pkg_setup + + # Avoid PGO profiling problems due to enviroment leakage + # These should *always* be cleaned up anyway + unset \ + DBUS_SESSION_BUS_ADDRESS \ + DISPLAY \ + ORBIT_SOCKETDIR \ + SESSION_MANAGER \ + XAUTHORITY \ + XDG_CACHE_HOME \ + XDG_SESSION_COOKIE + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if use pgo ; then + # Allow access to GPU during PGO run + local ati_cards mesa_cards nvidia_cards render_cards + shopt -s nullglob + + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g') + if [[ -n "${ati_cards}" ]] ; then + addpredict "${ati_cards}" + fi + + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g') + if [[ -n "${mesa_cards}" ]] ; then + addpredict "${mesa_cards}" + fi + + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g') + if [[ -n "${nvidia_cards}" ]] ; then + addpredict "${nvidia_cards}" + fi + + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g') + if [[ -n "${render_cards}" ]] ; then + addpredict "${render_cards}" + fi + + shopt -u nullglob + fi + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc" + fi + + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ" + fi + + # Mozilla API keys (see https://location.services.mozilla.com/api) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if use lto; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + if use system-av1 && has_version "<media-libs/dav1d-1.0.0"; then + rm -v "${WORKDIR}"/firefox-patches/0033-bgo-835788-dav1d-1.0.0-support.patch || die + elog "<media-libs/dav1d-1.0.0 detected, removing 1.0.0 compat patch." + elif ! use system-av1; then + rm -v "${WORKDIR}"/firefox-patches/0033-bgo-835788-dav1d-1.0.0-support.patch || die + elog "-system-av1 USE flag detected, removing 1.0.0 compat patch." + fi + + eapply "${WORKDIR}/firefox-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + + # Make LTO respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure \ + || die "sed failed to set num_cores" + + # Make ICU respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/intl/icu_sources_data.py \ + || die "sed failed to set num_cores" + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \ + || die "sed failed to set toolchain prefix" + + sed -i \ + -e 's/ccache_stats = None/return None/' \ + "${S}"/python/mozbuild/mozbuild/controller/building.py \ + || die "sed failed to disable ccache stats call" + + einfo "Removing pre-built binaries ..." + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Clearing checksums where we have applied patches + moz_clear_vendor_checksums target-lexicon-0.9.0 + + # Create build dir + BUILD_DIR="${WORKDIR}/${PN}_build" + mkdir -p "${BUILD_DIR}" || die + + # Write API keys to disk + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die + + xdg_environment_reset +} + +src_configure() { + # Show flags set at the beginning + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + local have_switched_compiler= + if use clang && ! tc-is-clang ; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + have_switched_compiler=yes + AR=llvm-ar + CC=${CHOST}-clang + CXX=${CHOST}-clang++ + NM=llvm-nm + RANLIB=llvm-ranlib + elif ! use clang && ! tc-is-gcc ; then + # Force gcc + have_switched_compiler=yes + einfo "Enforcing the use of gcc due to USE=-clang ..." + AR=gcc-ar + CC=${CHOST}-gcc + CXX=${CHOST}-g++ + NM=gcc-nm + RANLIB=gcc-ranlib + fi + + if [[ -n "${have_switched_compiler}" ]] ; then + # Because we switched active compiler we have to ensure + # that no unsupported flags are set + strip-unsupported-flags + fi + + # Ensure we use correct toolchain + export HOST_CC="$(tc-getBUILD_CC)" + export HOST_CXX="$(tc-getBUILD_CXX)" + tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG + + # Pass the correct toolchain paths through cbindgen + if tc-is-cross-compiler ; then + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}" + fi + + # Set MOZILLA_FIVE_HOME + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # python/mach/mach/mixin/process.py fails to detect SHELL + export SHELL="${EPREFIX}/bin/bash" + + # Set state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + + # Set Gentoo defaults + export MOZILLA_OFFICIAL=1 + + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-install-strip \ + --disable-strip \ + --disable-updater \ + --enable-js-shell \ + --enable-official-branding \ + --enable-release \ + --enable-system-ffi \ + --enable-system-pixman \ + --host="${CBUILD:-${CHOST}}" \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --prefix="${EPREFIX}/usr" \ + --target="${CHOST}" \ + --without-ccache \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-nspr \ + --with-system-nss \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system \ + --x-includes="${ESYSROOT}/usr/include" \ + --x-libraries="${ESYSROOT}/usr/$(get_libdir)" + + # Set update channel + local update_channel=release + [[ -n ${MOZ_ESR} ]] && update_channel=esr + mozconfig_add_options_ac '' --update-channel=${update_channel} + + if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then + mozconfig_add_options_ac '' --enable-rust-simd + fi + + if [[ -s "${S}/api-google.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-safebrowsing-api-keyfile="${S}/api-google.key" + else + einfo "Building without Google API key ..." + fi + + if [[ -s "${S}/api-location.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-location-service-api-keyfile="${S}/api-location.key" + else + einfo "Building without Location API key ..." + fi + + if [[ -s "${S}/api-mozilla.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-mozilla-api-keyfile="${S}/api-mozilla.key" + else + einfo "Building without Mozilla API key ..." + fi + + mozconfig_use_with system-av1 + mozconfig_use_with system-harfbuzz + mozconfig_use_with system-harfbuzz system-graphite2 + mozconfig_use_with system-icu + mozconfig_use_with system-jpeg + mozconfig_use_with system-libevent system-libevent "${ESYSROOT}/usr" + mozconfig_use_with system-libvpx + mozconfig_use_with system-png + mozconfig_use_with system-webp + + mozconfig_use_enable dbus + + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme + + if use hardened ; then + mozconfig_add_options_ac "+hardened" --enable-hardening + append-ldflags "-Wl,-z,relro -Wl,-z,now" + fi + + mozconfig_use_enable jack + + mozconfig_use_enable pulseaudio + # force the deprecated alsa sound code if pulseaudio is disabled + if use kernel_linux && ! use pulseaudio ; then + mozconfig_add_options_ac '-pulseaudio' --enable-alsa + fi + + mozconfig_use_enable sndio + + mozconfig_use_enable wifi necko-wifi + + if use wayland ; then + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland + else + mozconfig_add_options_ac '' --enable-default-toolkit=cairo-gtk3 + fi + + if use lto ; then + if use clang ; then + # Upstream only supports lld when using clang + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld + + mozconfig_add_options_ac '+lto' --enable-lto=cross + else + # ld.gold is known to fail: + # /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 + + # ThinLTO is currently broken, see bmo#1644409 + mozconfig_add_options_ac '+lto' --enable-lto=full + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + + if use pgo ; then + mozconfig_add_options_ac '+pgo' MOZ_PGO=1 + + if use clang ; then + # Used in build/pgo/profileserver.py + export LLVM_PROFDATA="llvm-profdata" + fi + fi + else + # Avoid auto-magic on linker + if use clang ; then + # This is upstream's default + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld + else + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + fi + + # LTO flag was handled via configure + filter-flags '-flto*' + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + else + if is-flag '-g*' ; then + if use clang ; then + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*') + else + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols + fi + else + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols + fi + + if is-flag '-O0' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0 + elif is-flag '-O4' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4 + elif is-flag '-O3' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3 + elif is-flag '-O1' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1 + elif is-flag '-Os' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os + else + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2 + fi + fi + + # Debug flag was handled via configure + filter-flags '-g*' + + # Optimization flag was handled via configure + filter-flags '-O*' + + # Modifications to better support ARM, bug #553364 + if use cpu_flags_arm_neon ; then + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon + + if ! tc-is-clang ; then + # thumb options aren't supported when using clang, bug 666966 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \ + --with-thumb=yes \ + --with-thumb-interwork=no + fi + fi + + if [[ ${CHOST} == armv*h* ]] ; then + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard + + if ! use system-libvpx ; then + sed -i \ + -e "s|softfp|hard|" \ + "${S}"/media/libvpx/moz.build \ + || die + fi + fi + + if use clang ; then + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822 + # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64') + local disable_elf_hack= + if use amd64 ; then + disable_elf_hack=yes + elif use x86 ; then + disable_elf_hack=yes + elif use arm ; then + disable_elf_hack=yes + fi + + if [[ -n ${disable_elf_hack} ]] ; then + mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack + fi + elif tc-is-gcc ; then + if ver_test $(gcc-fullversion) -ge 10 ; then + einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..." + append-cxxflags -fno-tree-loop-vectorize + fi + fi + + # Additional ARCH support + case "${ARCH}" in + arm) + # Reduce the memory requirements for linking + if use clang ; then + # Nothing to do + :; + elif tc-ld-is-gold || use lto ; then + append-ldflags -Wl,--no-keep-memory + else + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads + fi + ;; + esac + + if ! use elibc_glibc ; then + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc + fi + + # Allow elfhack to work in combination with unstripped binaries + # when they would normally be larger than 2GiB. + append-ldflags "-Wl,--compress-debug-sections=zlib" + + # Make revdep-rebuild.sh happy; Also required for musl + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags + + # Pass $MAKEOPTS to build system + export MOZ_MAKE_FLAGS="${MAKEOPTS}" + + # Use system's Python environment + export MACH_USE_SYSTEM_PYTHON=1 + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Portage sets XARGS environment variable to "xargs -r" by default which + # breaks build system's check_prog() function which doesn't support arguments + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs" + + # Set build dir + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}" + + # Show flags we will use + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + # Handle EXTRA_CONF and show summary + local ac opt hash reason + + # Apply EXTRA_ECONF entries to $MOZCONFIG + if [[ -n ${EXTRA_ECONF} ]] ; then + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!} + for opt in "${ac[@]}"; do + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--} + done + fi + + echo + echo "==========================================================" + echo "Building ${PF} with the following configuration" + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do + [[ -z ${hash} || ${hash} == \# ]] \ + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}" + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}" + done + echo "==========================================================" + echo + + ./mach configure || die +} + +src_compile() { + local virtx_cmd= + + if use pgo ; then + virtx_cmd=virtx + + # Reset and cleanup environment variables used by GNOME/XDG + gnome2_environment_reset + + addpredict /root + fi + + local -x GDK_BACKEND=x11 + + ${virtx_cmd} ./mach build --verbose \ + || die +} + +src_install() { + # xpcshell is getting called during install + pax-mark m \ + "${BUILD_DIR}"/dist/bin/xpcshell \ + "${BUILD_DIR}"/dist/bin/${PN} \ + "${BUILD_DIR}"/dist/bin/plugin-container + + DESTDIR="${D}" ./mach install || die + + # Upstream cannot ship symlink but we can (bmo#658850) + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin + + # Don't install llvm-symbolizer from sys-devel/llvm package + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die + fi + + # Install policy (currently only used to disable application updates) + insinto "${MOZILLA_FIVE_HOME}/distribution" + newins "${FILESDIR}"/distribution.ini distribution.ini + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json + + # Install system-wide preferences + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref" + insinto "${PREFS_DIR}" + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js + + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js" + + # Set dictionary path to use system hunspell + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref" + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell"); + EOF + + # Force hwaccel prefs if USE=hwaccel is enabled + if use hwaccel ; then + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \ + >>"${GENTOO_PREFS}" \ + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js" + fi + + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it + if use system-harfbuzz ; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref" + sticky_pref("gfx.font_rendering.graphite.enabled", true); + EOF + fi + + # Install language packs + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') ) + if [[ -n "${langpacks}" ]] ; then + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}" + fi + + # Install icons + local icon_srcdir="${S}/comm/mail/branding/thunderbird" + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg" + + insinto /usr/share/icons/hicolor/symbolic/apps + newins "${icon_symbolic_file}" ${PN}-symbolic.svg + + local icon size + for icon in "${icon_srcdir}"/default*.png ; do + size=${icon%.png} + size=${size##*/default} + + if [[ ${size} -eq 48 ]] ; then + newicon "${icon}" ${PN}.png + fi + + newicon -s ${size} "${icon}" ${PN}.png + done + + # Install menu + local app_name="Mozilla ${MOZ_PN^}" + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop" + local desktop_filename="${PN}.desktop" + local exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + if use wayland ; then + use_wayland="true" + fi + + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die + + sed -i \ + -e "s:@NAME@:${app_name}:" \ + -e "s:@EXEC@:${exec_command}:" \ + -e "s:@ICON@:${icon}:" \ + "${WORKDIR}/${PN}.desktop-template" \ + || die + + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}" + + rm "${WORKDIR}/${PN}.desktop-template" || die + + # Install wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}-r1.sh" ${PN} + + # Update wrapper + sed -i \ + -e "s:@PREFIX@:${EPREFIX}/usr:" \ + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \ + -e "s:@APULSELIB_DIR@:${apulselib}:" \ + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" \ + || die +} + +pkg_preinst() { + xdg_pkg_preinst + + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse + # does not need to be forced into the LD_LIBRARY_PATH + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + einfo "APULSE found; Generating library symlinks for sound support ..." + local lib + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do + # A quickpkg rolled by hand will grab symlinks as part of the package, + # so we need to avoid creating them if they already exist. + if [[ ! -L ${lib##*/} ]] ; then + ln -s "${lib}" ${lib##*/} || die + fi + done + popd &>/dev/null || die + fi +} + +pkg_postinst() { + xdg_pkg_postinst + + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + elog "Apulse was detected at merge time on this system and so it will always be" + elog "used for sound. If you wish to use pulseaudio instead please unmerge" + elog "media-sound/apulse." + elog + fi + + local show_doh_information + local show_shortcut_information + + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + # New install; Tell user that DoH is disabled by default + show_doh_information=yes + show_shortcut_information=no + else + local replacing_version + for replacing_version in ${REPLACING_VERSIONS} ; do + if ver_test "${replacing_version}" -lt 91.0 ; then + # Tell user that we no longer install a shortcut + # per supported display protocol + show_shortcut_information=yes + fi + done + fi + + if [[ -n "${show_doh_information}" ]] ; then + elog + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):" + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all" + elog "DNS traffic to Cloudflare by default is not a good idea and applications" + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5" + elog "(\"Off by choice\") by default." + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences." + fi + + if [[ -n "${show_shortcut_information}" ]] ; then + elog + elog "Since ${PN}-91.0 we no longer install multiple shortcuts for" + elog "each supported display protocol. Instead we will only install" + elog "one generic Mozilla ${PN^} shortcut." + elog "If you still want to be able to select between running Mozilla ${PN^}" + elog "on X11 or Wayland, you have to re-create these shortcuts on your own." + fi + + optfeature_header "Optional runtime features:" + optfeature "encrypted chat support" net-libs/libotr +} |