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