summaryrefslogtreecommitdiff
path: root/mail-client
diff options
context:
space:
mode:
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/Manifest.gzbin3541 -> 3542 bytes
-rw-r--r--mail-client/thunderbird/Manifest66
-rw-r--r--mail-client/thunderbird/thunderbird-115.2.0.ebuild1313
3 files changed, 1379 insertions, 0 deletions
diff --git a/mail-client/Manifest.gz b/mail-client/Manifest.gz
index d603c629707d..4d36da0a2dee 100644
--- a/mail-client/Manifest.gz
+++ b/mail-client/Manifest.gz
Binary files differ
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index a6ce58ee248c..3cb16fbe4c70 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -136,6 +136,72 @@ DIST thunderbird-115.1.1-vi.xpi 741667 BLAKE2B b38247507e8ca7a4442476733d236b092
DIST thunderbird-115.1.1-zh-CN.xpi 739794 BLAKE2B fe3f8a2390832b14f3d3c1cbfbfbb493f64087686213361bcad4a67442948ef052371f6b76b52a75df4bcb0464c355a204a58b7b017805c6a63033905953c049 SHA512 b44c4c7027c671543a7e7340c7a96bf9cc53c1940bcf2a3bbc062dbd5dba692f6b2d53e6b3e96617695285767d3814dac15951a8caac017737c13c2cffe598bd
DIST thunderbird-115.1.1-zh-TW.xpi 743423 BLAKE2B 29c0a20980c468060fd489bd1229fe247965d4a0135a02ac6cb2216746ba42b33f9e1ede94c77651b8c2b662c052ab83763fef34c45a8515636abaca91b27f7d SHA512 66acdcacbc37e3306b2e3344b89a163c8b502b2e489a90126c5c50eeecebb3b1340764d7afeb76797ac45de7cfc59cf282f2f42a352b9f07332b7defe7c9adcd
DIST thunderbird-115.1.1.source.tar.xz 532757140 BLAKE2B e93b36f8e57fa75ddbb8c58d09aff09e5116f5ffb85bab66054e07a9ce405993da92ce2dce7c3c6f70e5e645aa4a1505404395c6aa7fd902e18b0faa8492ffec SHA512 26f69dded43bd24ffce9acb0de204bef8c10c8df3cb82b33594d035e41179cb7450cb7c10470bfc92a933c1d801fb968049ea8a17d838d16de9973f5dddff9fc
+DIST thunderbird-115.2.0-af.xpi 542155 BLAKE2B 0d59b01fe620890230c2b7ad9b4256ae18666ba95cb559ac90870bbde3f1dd69ed746493d419e7f98a8fc0e2a7b007ba3c2eea8c3d7638270893084734078b01 SHA512 e444ad83e092e0714f5100e68908256d019cbb64843d90487b3a104ddc24427fed2e4a4cdb6b51c3007534f2dd00077a1c53e9d69870db1abe49fb4d1c180f33
+DIST thunderbird-115.2.0-ar.xpi 654727 BLAKE2B c709aff1a06d128878343f7909a6ef1028e68da409b4bd96392c14783d606e57b02e5ab4eb3dc1ea943f825d22311fbc5dcc6a81c813a99d8047f5d81e213d28 SHA512 3e92e6d6c397fe5b326d434d2a6ad7630c7af7f470084bbd5948b46298a8c25b24139bfd1107ab2827ce89d87ead826be4cd3afb352504b75b109c6e121a0bf7
+DIST thunderbird-115.2.0-ast.xpi 561118 BLAKE2B 0fce35581098af8d6a616c75ce0d67249b42256dc28b82c9f443333bf7f7ef4aca276bd8448c01b21cefbd9b76c0b1f74e7c1c1c046647046dabfd9004c042e7 SHA512 65d6390dc2f0c16c6a975ebc5fc41b77d3c8a3f7e1f823baa7546edb803a7ce26e011e4c2c678667c9255c15a5c976858917e4981317c15a9f5470a548272397
+DIST thunderbird-115.2.0-be.xpi 694085 BLAKE2B f7f7fa3e512bc7b78a515d512b72c6f1b3a4b900948c92b0ecad5a7d1fb0f8bd78954fd228aacc31577e3092c03a43ed3832f1c05511b186625c984db8309588 SHA512 78fe6cdd6a5ad07fe267a7b4041feecfdc0d725e341cc2d961718fecbd5d29c2b42f3252d06832c1bc9442ce95bc8b8cc945efcd109cb925b0cf483b55c0a9fa
+DIST thunderbird-115.2.0-bg.xpi 681252 BLAKE2B 0f870349177ff2a7ae10673a0f7ab10fe0f8a693942a6689efed20b53700df16f543fbcdad6ae7f9750f8d7fcfd8a72b5e8a77ed35405cc783277ee22bdccc37 SHA512 618fbb3dcd7e915cbd3a97ec5784a81ad6e12ed3af8f1cc1320248353ead319269d28859f293ffeff57facc3eab57cf27a0905ccdbcc3e78b76ae41906046d23
+DIST thunderbird-115.2.0-br.xpi 626490 BLAKE2B 11f36833337d48ac1a6af7dbabbc6ee7c66fbb70e69902b773bf34a82d0f34ae15bb7b9b41a94e59ce8836f22c797b0d924b3155940cef92eca50a2751405f53 SHA512 1c41886ef46699be584b33987794d08a7fcd54f05ebcdde528602cb5751721e85e94696a095497b1ec5fd1852c001fb9d1416bb3312d1a6c81c43716d41343f5
+DIST thunderbird-115.2.0-ca.xpi 664393 BLAKE2B 701c298aab64e800b1e537406ecd512b8eed319d4f0b7f0fe7ef2ce054d76dade6813bc0c8ded95eaf539447803a6468e82171f6c294b32981fa3ad6d843ba19 SHA512 f271f2283c3d8c5440d20ae39ffe839864cdb8efb769741760fe1006e19f1c1739cb341054eb4863321a5f42488e5f33aee0d3fcee74cbb11d4f6a79d5983702
+DIST thunderbird-115.2.0-cak.xpi 657816 BLAKE2B 3c3aee666e87efad8d45d480cc41fe7f383d0ff880c3b53c5590d754b5969887df9954a80a609f795c565a99d5e9c505d6f22366c3a46681cc22eed641aa13b2 SHA512 f42ed005f4ac28d6683d90edaa407358f50bcf4a3f736bc7e008f427a8dc853d68796d6ffa4c2c485af5f52e6806d705f15ae7dad731ea5707802f9872205fae
+DIST thunderbird-115.2.0-cs.xpi 733927 BLAKE2B 12e6da513f87f636ed1e9fff37817c3c2017ee5cf1bc6d817f89e3e004588480e52ba2b0d566c39233dca2094c7617d69c11f621bb7319421d2c3cc23613d0f4 SHA512 d01a4f1d0b9126e279268cb9a817f0345455902ca814a5e9df8f7a13871bedeab9f1bdc06eb4788fa885a2bacf8b53693586134aa89dcce67f47c91bf88a8e9a
+DIST thunderbird-115.2.0-cy.xpi 703325 BLAKE2B 46440aada9ad2b1662f6e94110debcc7c748442edae0f8fa847f011640a5d614167c1c1f4a15059fc48842cbd9c2c545eade54c894c1774097205fba5bd446e1 SHA512 97fd9769acde269917cef7ea3c2dfdabe5efa2e88c421fe8fde84f779223d22beb97fe3e86ffb7a3bb754fe01d56e7125ee999a94806c71a1e90f94852379624
+DIST thunderbird-115.2.0-da.xpi 690779 BLAKE2B 44a28f342ff44a2b11f650a24291a0a6bc926260a01bb88f64fe748551d022902907d68c846a048acb31a7b16a008b462b1af99fab1aae0ca5337eebda274de0 SHA512 57990f7841a3a428a310ef82e1b995340bb1d7142bc0771cf3eff881384a05fd1ee314f2e08d011950fda685ccf286e4c835535ecaab4c2518303dac9901d08c
+DIST thunderbird-115.2.0-de.xpi 720271 BLAKE2B 04ebb58224dd409bdb03ed94ee707f417f51da948a97457bf2dc3c37bc7a8fd62800ab0f931f12f53b34650a6eb9299f9b3d941935cc8a4692a505e0d676ae1f SHA512 cd829ac68b03372830343f85150bcdc019a0e55a082db67fe57280fbebdff6d0193fdf5034f0bb3a79bf2ceada101480524b019f14f5420d6b8b97022aef6526
+DIST thunderbird-115.2.0-dsb.xpi 738024 BLAKE2B 9bdd26506414bdaf24acd5a6988aebfc593ccdc9fa94a2c6a703aa2587cefc30e4bde058244eee83428294eb0a3c4f99d3e59e668e9a28d84ec7c621b796f536 SHA512 0d3797d54f8be66aaa31b93fccb1c8095c3a55de86ac0c09b07fa8e358d27bb3c4a4c3c0383a070a5297c9c7d1ca9ccabdce12bc478aa3b46dae1fef6981410a
+DIST thunderbird-115.2.0-el.xpi 837361 BLAKE2B 7279fd027b9be3bf340d585930a705911360a967c981ed2133843d30a1a4016058cd656970128ee131cdbb4d50a5865605e764b72547a9e1099c947af817ee3b SHA512 3fefd7d6ea1e9252b8eec6d85267dda0188998125df1a19a37e82c9c3c1f4b63bd8e3620b4826a1395ff750017a3d4ea9de3ff96b7807faedaa21fd328062641
+DIST thunderbird-115.2.0-en-CA.xpi 648450 BLAKE2B eade99ef6f0923f929d278007048b98c99da63fad5237700f7c7e1db0045459332c023c2335980b985e01fd2154d6d22410cadfeeb4d367791dfae8bfca6cd76 SHA512 04bc6ed4e4f71e847d84d9ff57887c52eb0e71ff02b314c2bc056fb5756b4725d194b2fc27995a28efe03aa5543da908612852c04b0ca7400d11ad74b143fe55
+DIST thunderbird-115.2.0-en-GB.xpi 661515 BLAKE2B 61e4a1b73cb2ed59966c5ff0c188d090f4b51c76f5b2b5df4739c59f11dfba277dd6ed22a30270f028682317b44d6a6c9a58bf6a0c0b224204ae06aee9fadd9b SHA512 58477dd9e3df1fd3ddcdc603feb1a2f45f2dfd0d6920d2c06c22215306a88f020178d09a3b943fc2a87766e6e867bd49acc401a18b25a34b31c7c0857f4533a0
+DIST thunderbird-115.2.0-es-AR.xpi 713108 BLAKE2B 59c9179fb62e6e5a10790a2b708dc5aede8e72c2c85e04a68a2e4872eae3fb036b888eda676eae2d9939838837e3f189891942615f956193b6f43028c7a15c8e SHA512 b8336f18c7db39c22ddeb43ba3ff9561118ef76f017c0cde05b0d4c2507928cad709d2b3378bd4e7dd32f84260f92a13673358768016a75b654f5926fbec0480
+DIST thunderbird-115.2.0-es-ES.xpi 675706 BLAKE2B 0b079b07c7d0d723ca302f9d91952ae0f7dfaed1d6a116078db7910c658e9cffe5a5b018da810b94f5e61fcd83d257d2dd6e3639c84529baf4a31a98a86edfb0 SHA512 7d6e9e1c21c9be5d0dd243f64d20c144228ebaa85c694740879962c38fffd04f547aeb30c7075d7ed2c25a626b28799ee3fc9e2aa936c193a07f1ac4adbfcac6
+DIST thunderbird-115.2.0-es-MX.xpi 710141 BLAKE2B 603991ecd55c0a51bf7d88ca7501b0a5e8c8659309c133916e91ed74b591e3db3435c4e0875c27026c35b29c393872a781dc8182fdc932d89d58d7a3fac46e82 SHA512 1c288fb06377991c55ecca3efb48fcbc543182a0d44532d31095cfddad76a7b278f760635ced5950ef00125959c32425620895c58efedd4f930d52fc70173506
+DIST thunderbird-115.2.0-et.xpi 671819 BLAKE2B 8370ff571e7470792a15dea395e02ad7cb81dee5fb7422b3d87d2aba2a36da3ca27d5a37f652c64e089840b819c5c547346c341696d549a529b8f8d63fb323fa SHA512 bc84737ae19bd7611d43c6a30ab789ec91dc72124fba3d981de93398b4871de287aa8794bf28e393e26465b81af2bd0e69b1192cf27d64211428a01549eb93a6
+DIST thunderbird-115.2.0-eu.xpi 692541 BLAKE2B d1971cf8e0187774edd36c2edfa5cd75b59df04a3a13740c5c73dc866fba39d970307a6c4cdcd1ee5452a23a81e49fa736df93c5ad8ccb7eafb0697becc2323e SHA512 61e98f7fa1a610eedfbda2c2fb48f24a19c75f51beb4e1c1eae1c451c6c30e9be5d51ce99f4f8e47f78657980269ce72b1d082cd510828018ef31e9908e10bdc
+DIST thunderbird-115.2.0-fi.xpi 689879 BLAKE2B bac074e305a404a2d1c4b83eb4fd3f2ad76e090255804180878b928267ad5aae71d98edcf9bd1d51ad849d73cc5d286f527fb4c5b91f42996ab7b4e309d3a7d0 SHA512 395b623d46f9da0dd6ff5b43d73d47cbc3c457e5faead8d979441387869d2ca94838ee26d1d626e1c619463f3f2f9a8777a7a7b9387e92160749e50cb4e6c4fe
+DIST thunderbird-115.2.0-fr.xpi 725335 BLAKE2B 9b4898af8767c6693d4b01990b33283e4cf86cd6b0f3152647c535b53704f562a7913cde94a1a161c16e7971b310ae393d6072b364d23d0cbf86eebc7d2535e1 SHA512 559b619cb920af63cef6d261cd94531266ae15e7c451c9b028956267f6cf07d3c6925b0f8d671d45eb3ab83185f1263556f85be37c466af00031812d245fe225
+DIST thunderbird-115.2.0-fy-NL.xpi 707905 BLAKE2B ea1992f209e301ff12097eec17675fd015a540348a38c8f834e83f0f5a5c46d3d295ef868601e7250c256b5b924288d1f95cd0d60dfd944ed40baf03b46f34c3 SHA512 f16679f0770c59430cf8a4b2289d949df1f0823b6ce81cec4af3ede140ab0bd7333985695ef5375fb5d2d9386d8bb64196779146062607ca2e93773ff028b5f6
+DIST thunderbird-115.2.0-ga-IE.xpi 601817 BLAKE2B 207162da08635467ab607b036435fdcefbad82f9482a7c3c70a9a8250e362e333e6a5d82bad6d521f712bd1a27eef72655ac45f3ded1e52cc1983095cb0baf0c SHA512 e3d148c6e53a8796a586277482ca193c129613db6f9edbb9c7d690ea29043e1f5d505a93a3bd98c465a5a72b8cb39d0200f5e5f65d7a2789fe2a74c4adb0f5d3
+DIST thunderbird-115.2.0-gd.xpi 702993 BLAKE2B e59805eda1f8fb9409fb27e153c1c4674e85673515883c1cdecfa3dfb648be4c4c1d89ee8e38584d3daf712c62f0fa63e8ad926d14909399d4655c8896bc3b49 SHA512 b53fba0dff6de7eedfb64629a48a1dc170f62588e3d45eb8d947031b57cc99af1be8c030076394cd636ab061c6ff99917288a2f4fb08a63a2fb93b4f60c69f3d
+DIST thunderbird-115.2.0-gl.xpi 705423 BLAKE2B 78c42177598762056664b27d55e40d41465f838f7c6cb8d6d1613bd1e38fcaac77c52022c30f3feddc42faec015adf0e8e777664c0e4afda712f6d5a9b061496 SHA512 abf347bc0f2de6670a127217645efc2742cde56f80f7abf3081b042d75d479bf1d633a12988971d1b6d58cff9c1ff3dfc689717730f7fd371fcff1bc6bc35ba9
+DIST thunderbird-115.2.0-he.xpi 667477 BLAKE2B eb6fc74d080ae8d342a34c9cf68fb5b7173377066f2f16a8cddf97133c06cda47ec1486ad2204b9570764cad3ea073a96378c4a17c1d078f034df0871f6dae65 SHA512 1edfd7d9f77b0098e9a2da7799eb5b01109928860ec6559d5aea831f74451ae6fd22175cb6979af6b9745c71259530cf1bff9cc1083664b9aec52cd847a74c19
+DIST thunderbird-115.2.0-hr.xpi 674902 BLAKE2B ddd01b6881deb507f26b81b669553e6d4ad053016232fef460d57062f1c92fed812f17b0f8f51d72a36670aa4d5202924a5e34caeb04e63273f3f4bf6d17b968 SHA512 ff55138b08462e5a8cff298bc1dff5be19e60c1d1f3780105af4935c8285f0362d4163679e251d16c3eac959db61e0102bcb0c78e8d41243fa1b82006136025e
+DIST thunderbird-115.2.0-hsb.xpi 734548 BLAKE2B 06fda850080481b30f1ecabf3ce84431362eeec3324af849a1c87ab2daa1024e05ea5a4bdc4b42e8f74ee3907bbce8bb588f01850a773104cbfe4e5338b61b70 SHA512 7ed2103c6b4de1c1586acaeb042d40adf5f0444bdf518b107ba7a9b4e3c8dfc70967ae363cf30bd0c5b247b63d370e35bb56433ee18b9f9e85f93b84a27ce401
+DIST thunderbird-115.2.0-hu.xpi 737466 BLAKE2B 4786d54fdbd9ab2a3288df4c30eaf97b5365472f67514b850ff4a39bedba575ce4cd037061d47ee54413122bbf82e262c2ff59cf0c6f23011ade5b867314da53 SHA512 307cab0f9a352057831506f6d4b1b75fe35b41838ec2bbb9c949640d10c4d156bb71f53f27da764f44c83b32d6677a13022649948d8d581827574fe0f5fc581a
+DIST thunderbird-115.2.0-id.xpi 642540 BLAKE2B 71922cdbbf652b2b07f4a20323effca0a3b511fe951ac8a9a4f7f20dd664165d9964843385386d55777a94d410b97790dea7640c0bc7984dfff1c23fef6a2fc9 SHA512 672f59e73c8d6393b7db44bd3e4d3cdd907865cf9f437291bb876ae1f982152d74a73329bc7e4c5cb7c4d52618be8bde25fc3228a7c4f7b2351d9767fd63bb5b
+DIST thunderbird-115.2.0-is.xpi 702211 BLAKE2B 7cca6e1101d399406c42a68689e10db1445c6a4139a9a11986cf8f97b892ee60d51ecf373e93decda69d22686d6225e7d92ae2fbcb3c6c1f7a602aca6214352b SHA512 310214af5426bc657ae5045474397be9716519a87914233c491b0c9bd7ec867bc4dab077b0d7b468973318d0f1696af92f21e19537b58a495f550a844d8d8eb8
+DIST thunderbird-115.2.0-it.xpi 643536 BLAKE2B 5a4949a0cc5ef72d76beaa30847fa720e6735eac2ba5d73f6ae4cf6c37a541619648670e2b3d2317628bc5548a817b2da6cb4b51ed1dd5088de604aeeecf9682 SHA512 c87881eeda5cb27a08f2096e43199cf4d8325b993eb9eff2cf4622b5e9e6dee391fa8e572d75366808b0d9008aac96d7da1724c8c4a97e3fd7b08961c7fb11e3
+DIST thunderbird-115.2.0-ja.xpi 781688 BLAKE2B ce8ab375cc77b2dbc995825a3e23548c9fedfb292ebe074c0ec926644a331cb3ea255a1361bb4c1843cc4e0b34121e6cf81fca73ad1a8b48354e5671da8fcb5b SHA512 993394457df1aaa26f09e30ed0ec740a86f3da9f2a42cf3de4e30ce2beedf9c776611894cd74e9c42cf1e1e8c9a644913c982788a106f5edb058bbb156c216db
+DIST thunderbird-115.2.0-ka.xpi 764449 BLAKE2B 64bc65d8aca3ca2c16f176a5c940a24e639ae225492b76b3a2570a41d38efc428e4d53cc50557aa03550a982736a5cf27de9a026c40dc6fae3fcd53e6e8e6514 SHA512 9e6490b8e3cc8c76ef614ea9a66254619cde5aa3be06b5be8fbe342bfe4b5321150851b3f1ca220b85136c423c178b2363743bd3f860eebfb82e9e1624edb254
+DIST thunderbird-115.2.0-kab.xpi 698918 BLAKE2B 4533f08208f4b83bd0b9a204b6bcbd9f92b71fc01f772418d2d67cd252314335695aeb04359c9bb58117a5a95a425d74bfa6e4770d6ebc689982737b4610b4b6 SHA512 b426c26ddd9af6064576f95df398add62639151f1f4f5eddaced77b09d53098c3efd146c86e3e64543dada0e324e60735b5ebddcda69ad15c4d2f6bce4e597ac
+DIST thunderbird-115.2.0-kk.xpi 805073 BLAKE2B e3287e6bd7eca5e51f2e46df311499c178997c3e16bc83591a15c3322ebb7c88def12dd43504654fcee08dc6dd00f467867ce07c50400c945aa96d964d762fe2 SHA512 c53488d7b8dcb711ba5d1a49535d3941baf053853fbf7b1018b06a6dbe32947d49fd170bbd7d566cd41ed327dc57e9e6d5443948e6e99e22b97b044f8abec2c8
+DIST thunderbird-115.2.0-ko.xpi 712208 BLAKE2B 6f705423794d0fcf64f86ab204cf73151d2bab2090953935e6bef6ae477eb3505443a0f47143d4ce7119b7e618c5f1b926dd2b18419b662a6c68163e3d1a9b26 SHA512 3f964f4892c1030ff949fe6b9c01cde31d683b8f3e291b15f22008d67314ed2cd7a16b23c9e61caaa1d4d9ef9e222f3e21cd35b5013f86cb406844151d8e5c53
+DIST thunderbird-115.2.0-lt.xpi 680095 BLAKE2B 38680c54f9bd03fbeb56455ae9a9490d0a8a93c88a58309297d84bc1fdcaaf9c22bdb97ec3ac4f585a8d5461166d551d1aa796a758b429667794037e9328db34 SHA512 1f9cd51bb5d747585abf093ebf3d9d4784ac75f7d0863a205167939459eb5ef55412eadbb7b10913f5c8ad466c10f8dcaadf0de60d0f03361f25734ef8da0b43
+DIST thunderbird-115.2.0-lv.xpi 604647 BLAKE2B 3053cca2b7d6577df23577fe01cc8a55864ba85bbd9f02fe4b36305057a6c8e3d5471d81c189e9bb0e25ea946b34ae9f75d028e445cdc08ac57f42471fd0a011 SHA512 9c82211e243503856eb75ac34288f9955dcb76fdd3dd112e05aa91f02782f28fc4bce4a1fcdab7f425fdb8df0265235deb23aec2f366948c9ecd2397ef82bb63
+DIST thunderbird-115.2.0-ms.xpi 565733 BLAKE2B dfcc588e1bb74944afc91167d3840f3276971e4c4c7036b9ba1c8163e911e16cb32437c673f0cdccca161b7611dce16cdc988648ce9ea23604d772cf7828db2b SHA512 0df4d450927171c8a27ea250f2792fa5371ce89e5c8f0feec68a6f63c74fe16e9495992e37b25357f7581da82ba67efcde007a72aa92b5768e6e6d7b920bc233
+DIST thunderbird-115.2.0-nb-NO.xpi 653866 BLAKE2B 3020c037c2fe4226c3c8c1fb98607f7125eff07a82cd3d77916a0ef9335e9c96e5db21472b76413b941c48566036433bf49da792b94fbe6e293511b6ee5d7ec5 SHA512 33b586eee79ec1dfd4fd0ef42ebc1e05787090db9f28db399377c0c54a86bb9938e277b8ca2589719403dad9a640f15069b76a580aaf49e6e05642897f8458a0
+DIST thunderbird-115.2.0-nl.xpi 699498 BLAKE2B d8472f625c230ef530d1061dd9e8803124d7bcd285142d2a7acd0feccc336077ced84cd5996c315c1e895dbcddcd5e506c80da3702208753e6f335becf6886c6 SHA512 85abeb91f2d4a7daf0f86f6aba2ec1e830f882c74b37f7f03e93a81de806c446e770f19f0ac6e5552f66c524c848a07bd21abe42fcde4b3900dbe850785d30be
+DIST thunderbird-115.2.0-nn-NO.xpi 673378 BLAKE2B ee2f0ba8f9d86876e7eb15c8bc50280316631e3174a409f47e58bfdcf7e163695a6546172842a85d119807ff3550b8e4b7e673a6eda1b00999df419365bc70cb SHA512 561f3af56aea1857b4f8cb579dbf1416816776ecbed90530d7425b51719461616c98f6ab9c9585ee360e9d2a76101c2e765d9bb35291d895e35dab601b9a45f8
+DIST thunderbird-115.2.0-pa-IN.xpi 655777 BLAKE2B f2fb9a93259a33ad681d56792e2890f2087855898f3429218d6078dd7c59dd58852181588531e66d541d49c5cfca4d650006257718284118165784a7b96eb7bd SHA512 7eb038207c982a47a41ab4a0e8f082d45e90876b06e44666b1261eb09e3992489664c8de5a949ecfcf0f086a690817a422c1a4c2a426bcccc0ea9fc365665941
+DIST thunderbird-115.2.0-pl.xpi 716599 BLAKE2B 0844773be5a7d5f5f20a27abfedde33ae687bc8dc4e44d9b6e1d0e50c375cda5d8cf616608cbb08b1cfbf470f6923339a13b3dc8a2883856757015c0b7c5fcd0 SHA512 dd9429c8baaef8db58280129787184de39823ed56d426ae225aa22c6c7f25137b63a0a7aced300ce416173fa4dacc77334c61976416c020bfae7534e9086ab74
+DIST thunderbird-115.2.0-pt-BR.xpi 707264 BLAKE2B cd579d06758a66223e9cff48552d3111c5abb7fc475eccf67fcfdd3e0b5f1b11b4587cfc6dfdbb62e8c090460e596734310bf20d3003932528689d77944b8578 SHA512 39c8b49c3e586020322ed4d43aff6818fe711137f70cbf9d8bc6e489000e4446e59751ab419b7c9c34cea13a626fe1c454aadf90cf6aa5fa7cac9954bc67a22d
+DIST thunderbird-115.2.0-pt-PT.xpi 687833 BLAKE2B 56524be9e4115685b4a409a853c6bafd6efa6be7440dbe253157c2d3977b4c9572c9eee57158479e31a793590b6c8702f9ad47f460ba194617e73446f08c6513 SHA512 686ec93218ed55b8d4a857e869dec70c2ed70f9ca5f9dc6166b3387d1103bafc8e481a85e398cff17fa9440732a5306053a0f8b2af8209627cb9e9808caaf1ab
+DIST thunderbird-115.2.0-rm.xpi 704044 BLAKE2B fcf7af3a77b612053a9f13c04106d705983d59494161fedfee9c8af0d438747d803b3cd67233e27479ba1f535855eddf89728f934e8b08a78b95924b73ebbc32 SHA512 19a1bac5acd2c4c3ab86dd7425e8797277deec9982276fcc81e4cd128bbabb1c2f33fd78d74de66bb6284183248bb66129cf6ab3292e835f6379c72f850d5107
+DIST thunderbird-115.2.0-ro.xpi 651298 BLAKE2B 721da7206440628e3d60e7c4b12e924f79c02fe9a766b952272654fd5418fdf3ae823332835ea36ef4e6cb799a1dbb25c44824d28fb2f9bb22c9bdedf5d74702 SHA512 e1e011efc0985b20e5a194928091a3bc2027e12d31a9b0742bd0797c1c626a9067b9f7620edf28146fcd8ea599c4259907f18ea1d1cfec5f7c1ab1271b0c62bb
+DIST thunderbird-115.2.0-ru.xpi 820866 BLAKE2B 822beaacc617a347b6338d689b5e77a165b130aea6c1b477a4d480c85ee336d992b2fb1c409266b3d8fef0bacac63aa6edab3988e0a81dae228caa46e6a3e098 SHA512 df4c2c3d8fbc74ef1afea3897a02e2eb45297643f5a1b08a4f09762f274dfe9d3d2b1ecaae032185c5ea8ef706871b01a954cd4bf2da962c47f5786d0acc771d
+DIST thunderbird-115.2.0-sk.xpi 736658 BLAKE2B 682d621f54165f6ef106b64217518a939c02dbfd510456937fb128891f0bb81bb19fc005c9c9d80af39007bf5d7b1cc4ffae1dfdbe71ee4b8ecfc4220af61c01 SHA512 621fe50cd495c6f2665a392e1d29d03c76489566db2224926b6b36a0d313d25c110b7bc5e3c8adb4269da70af8d34d4b3c300ce2e9028338860df5f958d51372
+DIST thunderbird-115.2.0-sl.xpi 701218 BLAKE2B 50d0e334aa2d9267fc7e715a9afc45cf079eb3b048ba60cef35e1c34b330ea4f6b14e83a17763ddd56cc8112d7467760e38e44cf6632337f587b407ee626d429 SHA512 3f50c537dc5b96d8ee1177e334380b5bb4928ec1a740234ef7cca224089443e4b54c415a1a52fd6e06cd8c35b96a9242104e877db72382a6b6baad1a724b2dd6
+DIST thunderbird-115.2.0-sq.xpi 717451 BLAKE2B 090c88328c0eeee0dc8b20d8146616260a3eb3ad289977b1e20af586e501f39c3110ff1ff1a45d38bda1041a1b8b22da77c2ef68cd30d9822f91e5495c490995 SHA512 6039c26b51ccdf25234c3d403cecaac208bb3600d2337affaf063c47c40473b09f85d47a2b4728b06a6816bc349c23549f0181ef38f3bbdac2f9ddd7f37ee417
+DIST thunderbird-115.2.0-sr.xpi 740171 BLAKE2B 503199091a272426af2149f7a52c4967dbc0fe74acb96384716aa24da6855f5c63019ac8ee8d8f70b62d73c7221d40381a53267ddf50d0c2b11147e012afa78d SHA512 7c7f89d928ffe59db77de9579fd93218b24c296a0ca14115634bb797dfd1ff0d18355fddb82c8cc4b79e4f242587f735ec2d232f693769411d85fc1ae2380096
+DIST thunderbird-115.2.0-sv-SE.xpi 702347 BLAKE2B 048257725c03d5f3f63d903641328ab8a04757599f7cdfc46bded75ed3d6c74613610d9745c3229a2116de10496bbbd2a6eaebbad98e2c15804aa744eebee23a SHA512 195c2fed8a69c6e56d66369d585b21d96b0d64cfe72d94b4600ebb516cb78f2e23a17f01975c27e5010b28e47a2b934611b770a84641bcf3dc556edb7ea01900
+DIST thunderbird-115.2.0-th.xpi 761858 BLAKE2B 7462328222e60612b026332709ded262f938677c0af2f1719cf7fb46fc99441faff2937b2b63f72f34a4a4027defe572d1efe873222521d72fc9afc9d985c9e1 SHA512 4aef4c1e4b4c71b13f53a019740f86137ab617c1e713bb4df6497406e90e73126aab1a4a1a7290b10d6725bfd2e2f7cbabaf11e271832e92d1b881104e48dc04
+DIST thunderbird-115.2.0-tr.xpi 715004 BLAKE2B ce01f7e72121ac213213293165a8f54ec328b144ec99168168f75f821730023f6b3586ec27bcd1c651560eb058927dcfc9e0a0c1b6b22a3b6bbfedf9684d258a SHA512 ba62b6fcaece8b19786aaa9536723529ffa87035aa0a52bd99faa85e6055f1b84d00dff12bdcf9e95f407a05df53623871c9a7962f2c277cb30ca8b7237bb075
+DIST thunderbird-115.2.0-uk.xpi 813758 BLAKE2B 9245266946d27dcbcf8eddf2f959ae028352db23d1734cfed3f7accf4dc16e58cb5a8e80c2bb25ab73f79f7b2e58aaa81fa7213375e16efc24fcda65c5091bc2 SHA512 e1b48e8863f373703830874e0ad0c5d21b762b48033e8fe72cff6e51c0448a1f3e4d765032f0358a2701c3722ca25a8e2b173a322ee4f54c163bd4bea819d19c
+DIST thunderbird-115.2.0-uz.xpi 579986 BLAKE2B e2b440c42190227c778a0184592dca497740e709d73ff670f6e5cbffdd3dd2b3203e851c25c1c0833df6f86fd546dec88a4b3016ceb8fdeb6c95bbf788e8c845 SHA512 b06258f94e8fde43ada16c03d5e13c92aaeb4a1d058b1ec46ef18645aa7e1f17601ca2e906170fe0e4d1f8663a7363b2e255902b6ced5ce557dd8b827a0ae3e4
+DIST thunderbird-115.2.0-vi.xpi 742717 BLAKE2B 5dce733b73e50700164e62a1335076bc4d87d16c448e8ad86793496cfc4866e58b73767d4a50a30876aa1e2fe8d39c16d68f6fd1c8f7ad63722bf5d06495c029 SHA512 989d476f4b2d0e2a28683eaabf6f50e4c2455c1b01afdf73def6192bf56f4875104f54749823228c79f7b5af1ed262c80df2ef1874b22972529fc2931bba7c59
+DIST thunderbird-115.2.0-zh-CN.xpi 740788 BLAKE2B 0001b8da96b01e00164fc12ed7c5254e7e7f7700a7a45c83c70cbaceefb9bd6c43e396c9585aa5d373ca4c01693b0a25ad864a3f974916bbb59bf2f9c964e253 SHA512 d6cbfa16e2063a447a1ad6a0412193e345e00d816c3b827b61f99d9a27100d98df80bbf0c46eadc8d3efd54df6aeb9b716a82d2ab2a54c0366b15f3b18adc513
+DIST thunderbird-115.2.0-zh-TW.xpi 744413 BLAKE2B 4495213482aa7bf65473d6b2e0beddcdc712bcd020f12c5e849e503bc7506109a9cd9b609f02147acf1f4e0c8c688e7f36123422b9fa986072cd95f927a04d48 SHA512 a662177ffc71f8e9bc626bb14ad1ea9190a7d6e8378bd6b2ddbe410ae2f0426f0fb6d7be349ceb26ef0c4ae8d5f3814ce22c47f992f9e4b42ac01e94faa2b491
+DIST thunderbird-115.2.0.source.tar.xz 531890376 BLAKE2B 94842ba35a03ce969e27b6c65a9c1ac820b00a770c75ae2764b626532c06d96c85ec83f70df269f5b0e34a47c28c3825f5de2e21219c81263e0b2a1bd3d18543 SHA512 31a8b16164e3bab60b62642e1adc55b3d97fc4f20cf28207b1e599275eb5a207f60b173fd642e8c52a48e83894e2ab874cb8424c22c5c712afd7169084b0a2df
EBUILD thunderbird-102.14.0.ebuild 34355 BLAKE2B 54785ef915866d370066db41b3f8fd3126582779271df87d42df3eb8443b074f283aa72e0a2469ae433ae9fef6a5b04baec11de0445cb3c96d093862d12cddcc SHA512 a821ef4d942801187bfdbadfde0771713dcb39bb487b47998578e5700a91c90e5fbcd0f3ac0809487d18afd08139279d5e7bb99c610273c6484171153f2bd54a
EBUILD thunderbird-115.1.1.ebuild 38497 BLAKE2B c6ed280249780e49c0c7544cf47c66a928b83def8a2a0cf4a6ace5857cad17e78ed07472c992f78d9f2aebcc95c3cc5af8694ac892f6f4922e60cf0df1795b3e SHA512 c6f988d4092b8c890d2ab73f11e3ee61ed9aca3c612763f9733b35a29e5ad339978d2d46dfafe3e0935b231e0df82ec7f787513e2ed277b6edb44ad2b34118f3
+EBUILD thunderbird-115.2.0.ebuild 38445 BLAKE2B 251eb835b8faf10735b2aab271bdcd48d8361b59fcc0e6cd2cff576da8c158898e8cbb08194c83cdb24a249729600b353c3f44fc9b11cbfa6f4770e04f931311 SHA512 51d47dbd35c3fe983f9d2ed92195761a6fa844cc0a57780c8e4afd23fa8adcce5d4bbb2e2491b2caeaff7753d892e6b9a28aebd65aa2019799a1530f5124c164
MISC metadata.xml 2448 BLAKE2B 3685d528d3211fb49b23b0fb05c67269f1b4466bef7dd6f2d890803961ddc1b1c0d8bc06b2d421c17384b8a3769bac35236f6af07059c0cbf9e694edec8b1dbe SHA512 d9a8983f34c9691ed1d0174cac3c7300995b9f7b877c09271210cc3f2a27dd20d9fbee0c99c1f6c987ab9566eee71a0624d2d68f97c84665c1c500ac8f3ecfb6
diff --git a/mail-client/thunderbird/thunderbird-115.2.0.ebuild b/mail-client/thunderbird/thunderbird-115.2.0.ebuild
new file mode 100644
index 000000000000..e7a18ed43a3c
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-115.2.0.ebuild
@@ -0,0 +1,1313 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-115esr-patches-05.tar.xz"
+
+LLVM_MAX_SLOT=16
+
+PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+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 linux-info \
+ 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/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 libproxy lto +openh264 pgo pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp"
+IUSE+=" wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+ debug? ( !system-av1 )
+ pgo? ( lto )
+ wifi? ( dbus )"
+
+TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2
+ selinux? ( sec-policy/selinux-thunderbird )
+ !system-librnp? ( dev-libs/jsoncpp )
+ system-librnp? ( dev-util/librnp )"
+BDEPEND="${PYTHON_DEPS}
+ || (
+ (
+ sys-devel/clang:16
+ sys-devel/llvm:16
+ clang? (
+ sys-devel/lld:16
+ virtual/rust:0/llvm-16
+ pgo? ( =sys-libs/compiler-rt-sanitizers-16*[profile] )
+ )
+ )
+ (
+ sys-devel/clang:15
+ sys-devel/llvm:15
+ clang? (
+ sys-devel/lld:15
+ virtual/rust:0/llvm-15
+ pgo? ( =sys-libs/compiler-rt-sanitizers-15*[profile] )
+ )
+ )
+ )
+ app-alternatives/awk
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.24.3
+ net-libs/nodejs
+ virtual/pkgconfig
+ !clang? ( >=virtual/rust-1.65 )
+ amd64? ( >=dev-lang/nasm-2.14 )
+ x86? ( >=dev-lang/nasm-2.14 )
+ pgo? (
+ X? (
+ sys-devel/gettext
+ x11-base/xorg-server[xvfb]
+ x11-apps/xhost
+ )
+ wayland? (
+ >=gui-libs/wlroots-0.15.1-r1[tinywl]
+ x11-misc/xkeyboard-config
+ )
+ )"
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+ >=app-accessibility/at-spi2-core-2.46.0:2
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/libffi:=
+ >=dev-libs/nss-3.90
+ >=dev-libs/nspr-4.35
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ sys-libs/zlib
+ virtual/freedesktop-icon-theme
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf
+ x11-libs/pango
+ x11-libs/pixman
+ dbus? (
+ dev-libs/dbus-glib
+ sys-apps/dbus
+ )
+ jack? ( virtual/jack )
+ pulseaudio? (
+ || (
+ media-libs/libpulse
+ >=media-sound/apulse-0.1.12-r4[sdk]
+ )
+ )
+ libproxy? ( net-libs/libproxy )
+ selinux? ( sec-policy/selinux-mozilla )
+ sndio? ( >=media-sound/sndio-1.8.0-r1 )
+ system-av1? (
+ >=media-libs/dav1d-1.0.0:=
+ >=media-libs/libaom-1.0.0:=
+ )
+ system-harfbuzz? (
+ >=media-gfx/graphite2-1.3.13
+ >=media-libs/harfbuzz-2.8.1:0=
+ )
+ system-icu? ( >=dev-libs/icu-73.1:= )
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
+ system-libevent? ( >=dev-libs/libevent-2.1.12: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= )
+ wayland? (
+ >=media-libs/libepoxy-1.5.10-r1
+ x11-libs/gtk+:3[wayland]
+ x11-libs/libxkbcommon[wayland]
+ )
+ wifi? (
+ kernel_linux? (
+ dev-libs/dbus-glib
+ net-misc/networkmanager
+ sys-apps/dbus
+ )
+ )
+ X? (
+ virtual/opengl
+ x11-libs/cairo[X]
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libxkbcommon[X]
+ x11-libs/libXrandr
+ x11-libs/libXtst
+ x11-libs/libxcb:=
+ )"
+RDEPEND="${COMMON_DEPEND}
+ jack? ( virtual/jack )
+ openh264? ( media-libs/openh264:*[plugin] )"
+DEPEND="${COMMON_DEPEND}
+ X? (
+ x11-base/xorg-proto
+ x11-libs/libICE
+ x11-libs/libSM
+ )"
+
+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 && ! tc-ld-is-mold ; 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 ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then
+ einfo "virtual/rust:0/llvm-${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}*[profile]" ; then
+ einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] 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 es-MX 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}"
+}
+
+# This is a straight copypaste from toolchain-funcs.eclass's 'tc-ld-is-lld', and is temporarily
+# placed here until toolchain-funcs.eclass gets an official support for mold linker.
+# Please see:
+# https://github.com/gentoo/gentoo/pull/28366 ||
+# https://github.com/gentoo/gentoo/pull/28355
+tc-ld-is-mold() {
+ local out
+
+ # Ensure ld output is in English.
+ local -x LC_ALL=C
+
+ # First check the linker directly.
+ out=$($(tc-getLD "$@") --version 2>&1)
+ if [[ ${out} == *"mold"* ]] ; then
+ return 0
+ fi
+
+ # Then see if they're selecting mold via compiler flags.
+ # Note: We're assuming they're using LDFLAGS to hold the
+ # options and not CFLAGS/CXXFLAGS.
+ local base="${T}/test-tc-linker"
+ cat <<-EOF > "${base}.c"
+ int main() { return 0; }
+ EOF
+ out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version "${base}.c" -o "${base}" 2>&1)
+ rm -f "${base}"*
+ if [[ ${out} == *"mold"* ]] ; then
+ return 0
+ fi
+
+ # No mold here!
+ return 1
+}
+
+virtwl() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+ [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset"
+ tinywl -h >/dev/null || die 'tinywl -h failed'
+
+ # TODO: don't run addpredict in utility function. WLR_RENDERER=pixman doesn't work
+ addpredict /dev/dri
+ local VIRTWL VIRTWL_PID
+ coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; }
+ local -x WAYLAND_DISPLAY
+ read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+ debug-print "${FUNCNAME}: $@"
+ "$@"
+ local r=$?
+
+ [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+ exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+ return $r
+}
+
+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="6600M"
+ 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 && tc-ld-is-lld ; 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
+
+ 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
+ # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure
+ # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage
+ # (PORTAGE_SCHEDULING_POLICY) update...
+ addpredict /proc
+
+ # May need a wider addpredict when using wayland+pgo.
+ addpredict /dev/dri
+
+ # 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 ppc64; then
+ rm -v "${WORKDIR}"/firefox-patches/*ppc64*.patch || die
+ 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
+
+ # 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; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+
+ local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }')
+ [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}")
+ [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+ if tc-is-gcc; then
+ have_switched_compiler=yes
+ fi
+ AR=llvm-ar
+ CC=${CHOST}-clang-${version_clang}
+ CXX=${CHOST}-clang++-${version_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,
+ # AS is used in a non-standard way by upstream, #bmo1654031
+ export HOST_CC="$(tc-getBUILD_CC)"
+ export HOST_CXX="$(tc-getBUILD_CXX)"
+ export AS="$(tc-getCC) -c"
+ tc-export CC CXX LD AR AS 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
+ mozconfig_add_options_ac '' --enable-project=comm/mail
+
+ # Set Gentoo defaults
+ mozconfig_add_options_ac 'Gentoo default' \
+ --allow-addon-sideload \
+ --disable-cargo-incremental \
+ --disable-crashreporter \
+ --disable-gpsd \
+ --disable-install-strip \
+ --disable-parental-controls \
+ --disable-strip \
+ --disable-tests \
+ --disable-updater \
+ --disable-wmf \
+ --enable-js-shell \
+ --enable-legacy-profile-creation \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-release \
+ --enable-system-ffi \
+ --enable-system-pixman \
+ --enable-system-policies \
+ --host="${CBUILD:-${CHOST}}" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --prefix="${EPREFIX}/usr" \
+ --target="${CHOST}" \
+ --without-ccache \
+ --without-wasm-sandboxed-libraries \
+ --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
+
+ # For future keywording: This is currently (97.0) only supported on:
+ # amd64, arm, arm64 & x86.
+ # Might want to flip the logic around if Firefox is to support more arches.
+ # bug 833001, bug 903411#c8
+ if use ppc64 || use riscv; then
+ mozconfig_add_options_ac '' --disable-sandbox
+ else
+ mozconfig_add_options_ac '' --enable-sandbox
+ fi
+
+ # Enable JIT on riscv64 explicitly
+ # Can be removed once upstream enable it by default in the future.
+ use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' --enable-jit
+
+ 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
+ mozconfig_use_with system-libvpx
+ mozconfig_use_with system-png
+ mozconfig_use_with system-webp
+
+ if use system-librnp; then
+ mozconfig_add_options_ac "+system-librnp" --enable-compile-environment
+ mozconfig_use_with system-librnp
+ else
+ # This controls the backend of the bundled librnp. Choices are "botan" and "openssl".
+ # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp.
+ mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan"
+ fi
+
+ mozconfig_use_enable dbus
+ mozconfig_use_enable libproxy
+
+ 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
+
+ local myaudiobackends=""
+ use jack && myaudiobackends+="jack,"
+ use sndio && myaudiobackends+="sndio,"
+ use pulseaudio && myaudiobackends+="pulseaudio,"
+ ! use pulseaudio && myaudiobackends+="alsa,"
+
+ mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}"
+
+ mozconfig_use_enable wifi necko-wifi
+
+ if use X && use wayland ; then
+ mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland
+ elif ! use X && use wayland ; then
+ mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only
+ else
+ mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3
+ fi
+
+ if use lto ; then
+ if use clang ; then
+ # Upstream only supports lld or mold when using clang.
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
+ fi
+
+ mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+ else
+ # ThinLTO is currently broken, see bmo#1644409.
+ # mold does not support gcc+lto combination.
+ 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
+ # lld is upstream's default
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
+ fi
+
+ else
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "linker is set to bfd due to USE=-clang" --enable-linker=bfd
+ fi
+ fi
+ fi
+
+ # LTO flag was handled via configure
+ filter-lto
+
+ mozconfig_use_enable debug
+ if use debug ; then
+ mozconfig_add_options_ac '+debug' --disable-optimize
+ mozconfig_add_options_ac '+debug' --enable-real-time-tracing
+ else
+ mozconfig_add_options_ac 'Gentoo defaults' --disable-real-time-tracing
+
+ 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
+
+ if use elibc_musl && use arm64 ; then
+ mozconfig_add_options_ac 'elf-hack is broken when using musl/arm64' --disable-elf-hack
+ fi
+
+ # Additional ARCH support
+ case "${ARCH}" in
+ arm)
+ # Reduce the memory requirements for linking
+ if use clang ; then
+ # Nothing to do
+ :;
+ elif 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 PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+ if use system-python-libs; then
+ export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system"
+ else
+ export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+ fi
+
+ # 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 tc-ld-is-mold && use lto; then
+ # increase ulimit with mold+lto, bugs #892641, #907485
+ if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+ ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources."
+ ewarn "Please see bugs #892641 & #907485."
+ else
+ ulimit -n 16384
+ fi
+ fi
+
+ if use pgo; then
+ # Reset and cleanup environment variables used by GNOME/XDG
+ gnome2_environment_reset
+
+ addpredict /root
+
+ if ! use X; then
+ virtx_cmd=virtwl
+ else
+ virtx_cmd=virtx
+ fi
+ fi
+
+ if ! use X; then
+ local -x GDK_BACKEND=wayland
+ else
+ local -x GDK_BACKEND=x11
+ fi
+
+ ${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"
+
+ if use wayland; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs"
+ pref("gfx.x11-egl.force-enabled", false);
+ EOF
+ else
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs"
+ pref("gfx.x11-egl.force-enabled", true);
+ EOF
+ fi
+ 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
+
+ # bug 835078
+ if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then
+ ewarn "You have nouveau drivers installed in your system and 'hwaccel' "
+ ewarn "enabled for Firefox. Nouveau / your GPU might not support the "
+ ewarn "required EGL, so either disable 'hwaccel' or try the workaround "
+ ewarn "explained in https://bugs.gentoo.org/835078#c5 if Firefox crashes."
+ fi
+
+ optfeature_header "Optional programs for extra features:"
+ optfeature "desktop notifications" x11-libs/libnotify
+ optfeature "encrypted chat support" net-libs/libotr
+ optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas
+}