summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2023-03-30 08:44:59 +0300
committerJoonas Niilola <juippis@gentoo.org>2023-03-30 08:44:59 +0300
commit0c6ed99e9eb9f93c7c38e52e683b3c5c99fab2ff (patch)
treef03bffdb6d3ab09f52a636840c51e3814e10c3fa /mail-client
parentsys-apps/s6-linux-init: Stabilize 1.1.0.0 amd64, #903281 (diff)
downloadgentoo-0c6ed99e9eb9f93c7c38e52e683b3c5c99fab2ff.tar.gz
gentoo-0c6ed99e9eb9f93c7c38e52e683b3c5c99fab2ff.tar.bz2
gentoo-0c6ed99e9eb9f93c7c38e52e683b3c5c99fab2ff.zip
mail-client/thunderbird: add 102.9.1
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/thunderbird/Manifest65
-rw-r--r--mail-client/thunderbird/thunderbird-102.9.1.ebuild1178
2 files changed, 1243 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index e0c16e285f92..750585217fb2 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -64,3 +64,68 @@ DIST thunderbird-102.9.0-vi.xpi 745663 BLAKE2B dae24dc639d4b566750dd3db205a5fb6a
DIST thunderbird-102.9.0-zh-CN.xpi 739887 BLAKE2B 885a7acf5ea5bfcab826755bb1f604850a79ed3f185578413c0a0081be0be29790f14687328994756411efd0f3ae104d4f2d495cdb58550670e59d4520f08ba4 SHA512 997880258871dceb5018c8fecc8a61b20a051d322ca1791ed014ca1e573bcc653e7eced939968db01fa00befa82ff3bc50fe8e81f871331290d63043aba91a57
DIST thunderbird-102.9.0-zh-TW.xpi 748346 BLAKE2B 1f9850366f292ca4ccc613efd071146d772661a26d2ce571dcfb99e7dbad66f39b1d0d2d4833fb8eb40fd4f4efaa633d2b0d8c0e177aa7750b3d2c867cf8a167 SHA512 dd902d37b4e695fb1eb8e1e39c95bd9cee94cf66814c418cafbb48965b6d0d9e9600d0afce309ed36f3bfde32c5a225dba480613ca66468d2370303de68c4ca4
DIST thunderbird-102.9.0.source.tar.xz 503081436 BLAKE2B 538ec2705bd73f0673864a72e4e8c854d3450c79e40577e00ea8091c7c03f20a33b25ae475b270543963773c544d3819cd889e6bafc816ab0e78bd0b4fb6fd55 SHA512 0de88cef22e7b239804e27705b577dd34a86487512bb2af29804b358d056628c14034a34cbbdded75612bda984fac2c04d116cca8040b9212a7fb0206c07c440
+DIST thunderbird-102.9.1-af.xpi 556847 BLAKE2B 1730b20ceab478e74c7778ebdf874d5696a2be0245a44c66a7797f1cfff7fc1ce2c85d0b8397841c399906f095a00cc68f934d6f13bfc94db357d824f98f69c3 SHA512 7b304ac6ebaf660623a80b2a26961d757750f4bfd0496791dfed847a759c0f4567cb9d07211cdd6a749c64203cfb4978ff39d773322fa5480db79d2cb7c9b30c
+DIST thunderbird-102.9.1-ar.xpi 666810 BLAKE2B d70d79469959c1aafe09a17afb14baee6bb009fed70c570b176243c7d0f97adede9d54cffcf532c58a8c7d0ddbfa53019ee6eb62b2bda31730727861c9995214 SHA512 f715452c476f80d72fadaa553d45abfd49e30f80728353a1a668144d907a1b2ce2dbebc857d7ead9258371e9b524ca1c7c060b3450b600fa9d078c47bcbf6a38
+DIST thunderbird-102.9.1-ast.xpi 572265 BLAKE2B 5e4d4c7a76323f2f60ed67d41069ea36ed196c8d52b085c5e20d8150d7f62cb291f464eb45dbdcd4bb8e4ae2ab5b49ac4b5feea095ce96b0a44e7a584a1cc60c SHA512 20753d8414fe613d522b13cdf0d0d84c5582cd16374eb3b4918873aa5e16c385c77d2ba2c35145422cfa51dbdf9e449a5d700bd1c43de2b6da6f491400491da3
+DIST thunderbird-102.9.1-be.xpi 701890 BLAKE2B 10fc831cb7e69463f06bd699f7c8dd8449b56f277d547887bfc265841eff693669a8245d592c4bba77d3d213f3b502e4430f97cf5d530d141522161d659eb498 SHA512 a8f92dc4a02264cce9debbf40b0af69b84179f53f9c92249d2f7049f25a2a8274481a981f581e40dc78b3a2dfdebebc866815eeba676b6e00699b9137e21ca53
+DIST thunderbird-102.9.1-bg.xpi 693376 BLAKE2B 3be40b1548188917eaaf194d6ae0794d1c058cf02f6570f2115a2a2526fb3d47fafff537e909f9036ab39c4ed1b8f3dd8c0c25cc22c19e6c745834bdb902bb70 SHA512 fffc163dde41f9b13191f95399dc8c9dd84b3095a6062b5c0201a34e9c571bfa2971db3173fd0a023bd24987391585416a4a0a7db653442ee859f857ccfb7dd6
+DIST thunderbird-102.9.1-br.xpi 626470 BLAKE2B e333f93f694b60f9764b71d6433d69033b203e0108144c7a55a06d946965fc5a3b04e0e967a3affb44415670b385c812e533c145dd9e6a8d8d8e6de194333b6e SHA512 882fe372a911468e57306c91e2679ae2f8c3be80eb48558469e22cb21f1cf64d78f54386c66019bb879cabb475cd7323445a92688ec7dc3f0b92e21314a0cd07
+DIST thunderbird-102.9.1-ca.xpi 651366 BLAKE2B 885999d13e138e9ad51440af460356e90baf0efeb43c707cc61eb66de4cddf4c783e6c6277dd52e24bce64676d594230a850e219d3e1b5695cda051fde6c3ebc SHA512 5e45266077619625bc4d58269b42caa586d83cdfada6b93d745083e1deaf84a0125779e065f384d36c8ce59805bc03aa925a0fbc036213ef491c1225f4c11533
+DIST thunderbird-102.9.1-cak.xpi 651756 BLAKE2B 31c04eb23e9c8a1e0859b5f7cd99fa3ed755b78a4f82067d4aff8cc1ec85220b2e26773cb3039500339d03b5a40af4bf1b634f228289662d359369cabdc23e52 SHA512 ea72c1faa56e59a28f6dc79693cb06fd4b87fa07c1d86f2593a38265d02d308cf159a267da672e94a0208d2a93d88542fbcb02d7daaf14c6ac28c387186805db
+DIST thunderbird-102.9.1-cs.xpi 728623 BLAKE2B 5abeee702410b303369295ac85b477171826ea2544a13e82050468b02040745ec83f07bc77fe557c1d381c2323305e7b7fd398113f6881058770af173541b935 SHA512 b72ae65319275465628f26c0f16b2f435ba06e42df34fc9c456102b584a6699f3553208bab81051288379b3913923607d59ef74fbad9a3ca13b3005b6e54fbb9
+DIST thunderbird-102.9.1-cy.xpi 705576 BLAKE2B 8714b51ff51ac13ccedece3c11c6365f1c18522f53975ff86e50c3e3514ff62a794774457be83c32872c5febb0849344ba66d64b2217871593d06cfcba7b81d1 SHA512 f5cdd1a2cb1ac580204f1563807a43134489183c37dc16505b20a9d64d36ee5b2567c95c9699346d466eac28b9ba398717cc4e61ad366f6c9976aaf206849f89
+DIST thunderbird-102.9.1-da.xpi 685254 BLAKE2B 3f612a1f7d31373f7b797daa04a7b800babdfcc4a3799b2da0e825392159416eae567a1f299b6ff177ab3d51876e26407737c12a0193b508342f048bbcf27589 SHA512 556b97134efa62e94be58364a7a402708604726598b1463169410daceb2cd8b019d155eec922e31554edd53ba0562c14cc4cb50e726a29865ed7d33537f8601e
+DIST thunderbird-102.9.1-de.xpi 717943 BLAKE2B 5ee96680f09f610e96d4781b10c393e610752382a62d84df15cf457a29a0c3b6ae3c599219827ce0658d7f1140caaf3a78d79d7b05b73bbad3dcdde456e495c3 SHA512 3de342550d52231245a2efe7c52acedb10679a1e79612432964808e050f6c5c72403ba24a71bbcad10a5868be244fb1e00888ae7f2647715fbcc224e2565e5d1
+DIST thunderbird-102.9.1-dsb.xpi 737086 BLAKE2B e7f76060c4f6bcc9546d14029c9fc5cd61a5651edfeac59d0d1ef611e5ad1d2f80f59c74595f160a4fb2471a445173be315491dd744c74103efcac8b9f227d25 SHA512 103e0a73be5918b79acf3e4bff5ce4aaa96260e343fca70e94337bb9e54f1311b29d21045030f32f9165f6b86a62d84117ceab0e8ea26ff893cd67a357733b95
+DIST thunderbird-102.9.1-el.xpi 840812 BLAKE2B b21ee334b505fd27ed0c09d021c772f32f03029d945573026686f8d6b8e079d3cab9b6dcfadce1c107e9888421637e4a0c70f89da94b6c1fa8d2e81f2cc20772 SHA512 882f7a254653a51345233b9005966f52b3d0daa95bb9a092bce753ac416cd2888be92d33a57d5ddaba2df8582c1588461c604b0850076916b6117fe0a3221014
+DIST thunderbird-102.9.1-en-CA.xpi 659092 BLAKE2B 5e760944b83290c828bae538ba7fd79687b7871a1984c4b78c48b5ef03597d94acedf6eb6b2750c2210c2f4a807056f0e8ef20893b2ed1315b68c04eaa112c47 SHA512 abd408e2c1c31dff311804b5511c6102eb690332f38a13d55215083019876a318cca148344ebadcf1e75d9b7da46346030a0442ed22aa59112f5c227bf6a9d32
+DIST thunderbird-102.9.1-en-GB.xpi 665006 BLAKE2B f9947a2ec90b86ddfc2b67b1578df774a353d7907bf0bee81227620ad80d55e0d5f30c38c771af2fd587c6533a085ca62c3e491ffc2b5636ec7a21c654a5c89b SHA512 d4b10e6cac395d60471866ec9f355bbf058e95b8d0498f53733e9ff51630ceef21e2c6e8902a1564ae838bc743a32e06bff1ac187febb8e9e932b06c9d5adcfd
+DIST thunderbird-102.9.1-es-AR.xpi 717274 BLAKE2B 96f1d182357763593b04f37f27a7ebd2e241add65737a2a231d9acf2ee3e563c6963779cf4633c68dff4dca861344ff9b8aa249710b2fa8b30cee65f63447db9 SHA512 eefa1153d723d8c80380339d9a6feb3cd0b171ae5a185b9df369d176eacf66486f53601b5aecf185c39e281999bf70c7ca62916bfb92d395a892a2a12ded9fb9
+DIST thunderbird-102.9.1-es-ES.xpi 677481 BLAKE2B 37bf82ec4fdaaa082381d4454aa673cd33d3962d842d23434f70fc2ea2429238b11de8cec90be654671663ee1c50c8833ca869fa6b79de1549fdd6705c90bfdb SHA512 8b0a2481eac2ac49904425dfa7a9b07466e5f856303d0a2c25d65f8036d3504d1d0cc54e4534dee64acd0f25ca5b04af2e3372770c5570591067c6beaa6a518d
+DIST thunderbird-102.9.1-es-MX.xpi 719709 BLAKE2B 84f19d0406289ceabdb84328e3396b5b39f4f5e2f08e1c00888c936a35fcf7727718ad0a126d25625625491c79f3bd462a0afdb784d58afbee8212eb2582d19d SHA512 c9e5dbe3b29fe3ffcfe2df8148c71d2119a902369ca858dd20598fec8935d4a5e2b58a917e74a09ecc98417bd2735676898dc811e3a68e0232d6dec101281413
+DIST thunderbird-102.9.1-et.xpi 676676 BLAKE2B eb01052eb3150c6157fb5e38bee2d656b4250d6afdf81bd6e6c54ae32c31a6bccafe02bc481389d1ef346d451b3600455b42a7bebd07b31962e8e3daad0639a0 SHA512 0229d7ebd5d27fd7fbddf670ce23d9410b5729553393366df478039d40168b3f3b9074dcc3c03ef3103cdebba0e6777f0933a241596567d8dbd689308e9f64ea
+DIST thunderbird-102.9.1-eu.xpi 701827 BLAKE2B 8b65b38547bbc214bbd9cc9cea2d31aad7d3dbbb705da27fdedf4da40d965da18ec1beeeb50b89e33a05f13cd56546dc3b74179301ded71c0fd8b8d3c79e5e4d SHA512 500c1fa133bedb70bf16694d820c1565422cc9e2acebe94af084a4312fd1dc81acc1bbd671266d5d0246f4cbaa694eba51c34afb73ac45d446567585822a5fea
+DIST thunderbird-102.9.1-fi.xpi 693484 BLAKE2B 6e644b48abe953a1260f51b88dac3d499f7ac3ef7835f2a2ce79d239c0c307d0be45d2316736d85c69fc783cae4567675fd3d1abf50497a877d2189eb5299d78 SHA512 0276688b9a85dc3aa72131c1938533605a2745479502d330c84561fcc91873a16a9646b5f618c0c59f932357aa1a894d52480cc2958e4fc7ee9a96e25afd5842
+DIST thunderbird-102.9.1-fr.xpi 730315 BLAKE2B cc527805089236b085fb24f58e9f456891bc15b5205b0c00e544b141c35c119419d561f3f85b412f181f5fb7b017a34dd793f28435d2e0db80e4c2714c10b299 SHA512 878319e9fef5f8df3f8163ee528cb348647c6dc96f05f59297d4d7ca0b1fb022a8950519caa141cdec0f0147176701b702813941e3f5144ee517e1af2447edb8
+DIST thunderbird-102.9.1-fy-NL.xpi 711990 BLAKE2B 65a2fe546664f5c51a475a7f90615b69a959147b9771ea671d34fbfd8b6a07dbf5ccb8e7bdfea647f83f48b8faf835e072ab67ee9b1225667ccf07b8878286d2 SHA512 78539ca78321e84eade07a03f33b0c186ea054b4f75982a8d3b9a65deb9b36cecd6a9530712bf55380f6e7aa9de2bf44e47937db614488512f92d1eadb6bd639
+DIST thunderbird-102.9.1-ga-IE.xpi 614536 BLAKE2B 18300552edfd2fa5f514a5eb67413968dbda3b0a59d090c99b9d27cdaaea64ba208cb8066f37442a180bdb26fce23b71d678b8ab1306e88e378b1e0f11bdc596 SHA512 784a0870ed5f3c1b13264ce6fda33a3ba976fef39a0b4be782b9dba15f25593f9b456c549ec474ff786209b785649bc68e8fa3ad41f19a41e84455cd57ab2c9f
+DIST thunderbird-102.9.1-gd.xpi 643574 BLAKE2B 6400bd705077d60834abecd3da3416e0c5d05e2c9b100bed0fb93cd7b5b926d7a53b3c9bf56a6e843cfef086d33378837c2c53f419cfcd4322d7586f7fa8fa09 SHA512 28149f313451c4ef65f82d37bbde336f3fbc6dc550127de661b2834781fce794c672f04aef72df6082ec185af7022300bd897929c5bc97e9e10c0e9cfe05e55a
+DIST thunderbird-102.9.1-gl.xpi 673000 BLAKE2B 1c5a2b537c83b7cbbd28b42966de390f7292860a8d8a99174ac5672e2f27c387a88384a9803f4a9cd2e8a182bc8668e595ed7fe8c4487e64a0a036e46e67fe8d SHA512 3c8f8c4d4c99356d599f3c70531713edc09ceda73e6839742db2a8a7623f319c984ee356b656a0fe2db014c37e108803fe3565937b679404fa4b3d412ac8e054
+DIST thunderbird-102.9.1-he.xpi 676370 BLAKE2B b01752cb73f0302c057c43e523549d0b9e5c61dea8a2bde6cbeb3cc623188e9016edc3b14706497216a8edf55a7dd4a33beb66e6b952323ff6627ade36d5ce73 SHA512 954f8c28037851aa21640b537ad2548ef9f5f9b573ec9ba00c6195bd116fd43fd7cdeffb95fff6d3041fe189fc24347dbfb1480eab41fb1cbdf8b8917d2ed9fe
+DIST thunderbird-102.9.1-hr.xpi 677719 BLAKE2B aa5cdece17125f3bdbeb3e526cf5be09a6c7dcfb7dfbb7d2248fc1023d1a937f16ccd7488ffcb2ca330e720eb4b929bf02af42ff44c0d4c08118d0cf602f0588 SHA512 875930527c2118bb088241cbb79d4e32f5f5dce0c2e43975ab2b9b75c60d5c49f852d5d873fcfd8be35b30d175fe4836f71f8ad7aad527cc6052b4265858fcbe
+DIST thunderbird-102.9.1-hsb.xpi 736541 BLAKE2B 84597e3bc71222a68f3de1c31684bd8a4e80743b8ac1049f9ed9302e2dc7aa1a59316cdfeb0a95bfd157c6aec8b6ee19b39d38f592323b2080eccc6e2bc86836 SHA512 b115527235396c82fd7b70e12470e62c133f4668f3b4c19dcc03db2544aa15958e0b1346be3becddc1a4ff17db984af2b439ce69196e23a6cb1e75c09dded215
+DIST thunderbird-102.9.1-hu.xpi 741200 BLAKE2B ddb95ef662d1b939fc2a85ddf5ce7e56cd77b54007293d31f590a1a55b53e14872364ef1a67d89f646921cf9f9f8b88ef4e49e7b809bc709759d2b6e7f69ed77 SHA512 bca5dc6afac1e07ce5b5da3f1583552f05f0920a31c0c678dee49125b5256186f92328068d6f61db3c33bfce5a78be016abf464e32fe84d081929e00b0d48b9f
+DIST thunderbird-102.9.1-id.xpi 653191 BLAKE2B 0b39b5b482ddbc01e4be80df62f40f47631a8c764e1449093c517ee7f88a9c08098740f7444fdb0ec55e164e926dceb7f0a133d94d16c2120687e63bb5d1a692 SHA512 9bacbbddf693175ffa555c90a367cedcd8ea0e56b8acfa3921dfcd5793a53695e78e39385a00dcd96e95eb3211c52c055eaa76eb8dac305116f8d41e46c9c199
+DIST thunderbird-102.9.1-is.xpi 706391 BLAKE2B c544042a70102ee36dd697520559a6d07bcfc4a91cc32d0f076e8b2416069d150fadf7dee0239ed137ba157a5539d8ac97007f8c7dc64bb7e5893bfe817d4442 SHA512 a6bea30ca4493543c15915c6100b0b73697e0ee9336cda914fc0407fc38519e89a7be60a94ab3776a3cb615a0a593519d4fbf57f6b783004d184b85161b219ce
+DIST thunderbird-102.9.1-it.xpi 639986 BLAKE2B 7ddbe58e2031c6f53642360f2a06a477371fac124a06174481b6e45a7491fdcd4d77fca223e0bddfadd417834373856b776509b92e174b161c75d7a3be57bea3 SHA512 65e23a945aac3147a7816c9eefacf656448cdad0e1bc72d7eba16e8071f5d791ba276faa18b7793895a3a30751243e5f20e8c8eab4a3b14dac3578570c1c4d3c
+DIST thunderbird-102.9.1-ja.xpi 781906 BLAKE2B b3de0288b02d78aa759728356846468114aa329cafceb3e8df31e570c63ee87bf48f23b96be5ff6efc3c6e3037b3336c7e1a009ecf8b20394469c511a6d6f05a SHA512 972f58e5cdf7cead42e441833f7ef74d5e688b8620e5323ac6d513cd1d1b55cc491785ce7878356e15ab7cb7cf7e1015a9e9a9fe4cff45fdf183b40e419098d2
+DIST thunderbird-102.9.1-ka.xpi 769802 BLAKE2B d5fc023abe9b70d53833f71c376de2a2c34591e7ed94a35adba7ac370731a97d94d607df9114db50023b3fa117120b28c199994a2002a573fd2c1bfec6d2f8f7 SHA512 293aa93579baaa1ccd9481080396ef1377833bd3fddf297207a31e52d4f195f8456099cfd58618540ce313d4a66fe7ac7794f4d7fa9c430e6561bd7f4294277a
+DIST thunderbird-102.9.1-kab.xpi 702702 BLAKE2B 3c490b4656fe11e142b84934b6010eb929351ba814d9289db85c751240cb6bbf541a742e9760061c845763422f766c97ae03d09ae4cb9610407e124d51f25d8a SHA512 ae905de1d7f963370fcc42dd10b15bcb40f903f44e5a481514068be0d0aaed84bf2178bf6b4bf648c5c00f5e3ab7003bd1c364c9cba59666cb5fedbff540e0bd
+DIST thunderbird-102.9.1-kk.xpi 810967 BLAKE2B a503d8e277a5121d7c738566dc055b755fff749ed750972f44269a11b06e8c31a2c04198282c36e923d9e61d19e2922a6db0918d063208c21dfeb8e0d0db125d SHA512 f0e27c2e8dce359d17ccfe7b8f0aa43fc96cf543a3b8c9fb91c79839b52b85d210d83c553e720e250f090c407fac7df6f83208dfa5118b5e4f67eed3376548a5
+DIST thunderbird-102.9.1-ko.xpi 716820 BLAKE2B 22ba74205a07c472f2245eec7c792987b8eff5788f2c416eb4d8469fba2f95bc0970648759cb42d40e34801fed269543453b1cf76a82882ab863baaa9eae9b40 SHA512 3e2cd0997e095dffd2365fde8f331baa14d86ee7e75357ef5c0103cf5ca704c48a062aebd3cd990c1e8c068e686249100cd1437170ecdd247a11855a05d74804
+DIST thunderbird-102.9.1-lt.xpi 690854 BLAKE2B 752d735b104aaa365b8a96a31dea08e2e9d0ccb3381f9fb90dc02a27560e67be4ef8f309b6c5c7efb12e084cf9aa40ebf0de32fdfe71d613409cbc7bd90759a5 SHA512 8cb24e5241796026ac3cc8555808ca684701ac18a8997f8ecf41303935055a023bc85ef792297c99bc1c49dd43d6fa89966fe70c5025d42a1af835aabe22fc03
+DIST thunderbird-102.9.1-lv.xpi 617743 BLAKE2B 2974c8f0cbb424c9eba58717e7efec70d516944f7cae978405a7f9c09132de57ea94bdbdb82ffaf3f9c1fae91636c92c5d341bb4b03923e9086163383f3035f6 SHA512 926975bb048ab6e324a9fd3a8ca015debc4f40ec9fb9b7bd6cfed21fdb446aaffbaf7db5abf06eeb1721482c1a4db18ff3870fbabb57c0400d12953b43751b14
+DIST thunderbird-102.9.1-ms.xpi 577757 BLAKE2B 38b59e5e1e8e0538c85288da7c8693d22685d8cf7378a44830fbde2b9f6ce66576f5fe21faff0471aa799e696d4070c2a204edc4a096fdf2aa9600a24369e6d7 SHA512 a77659a97cffa43da0d97789bb293c1c24b9b8e043b1b795c2e69e39c92cf69c944770e1e66d530df13966b33bee553b1e1f542325d53310d9c59623165ce947
+DIST thunderbird-102.9.1-nb-NO.xpi 662680 BLAKE2B ff68c816dd194f40c333c06a85d339715bfcd1cafb2dc572c4c924551a7b4cfe4edea27e27241adb88735f525ee4260e265e296d8c07e38e882d4fd46ff38e32 SHA512 3a9d6e8569886870319750ed7ff6eb05f8932aa227510f3576c8e52c17b8ee094776fe05dfc79e983d894a51ff9087986bef59e7837e87cf3a9da384d643f6ab
+DIST thunderbird-102.9.1-nl.xpi 703274 BLAKE2B 691b2208c61e62c92bee625e70172d14a8a409853930a33a03cf2645ef25e1beeb14efbae0c8c22dad23d2b5191d0b7c184efee3608de8053027ad3d95090e83 SHA512 49c6f517aac3f4a870800d4db4bff747e5ef25b8aaee11a809b73f3fa3b467f16df597513e4b42db2a1d4cf63e766f8f2a57c3ff1b98a7875cfd246020ea52cf
+DIST thunderbird-102.9.1-nn-NO.xpi 672831 BLAKE2B 9dc6d9a583f791f03fb20c1aaa2474389436e9f9e7abb09f9ea93ef8a00a466d6f8047a1fc5eea2bc5c2488088d040aca51478a7d73df5f4873d51e1c1e230a2 SHA512 e2d49777c24734bf5e784904a5bbe2340cf3935ca3fe8b8dc59550a1bc16dc169e22d4fc5990e79be8c257db8e8c2865524e7324b2eaadd47e99475eff8abd0e
+DIST thunderbird-102.9.1-pa-IN.xpi 668031 BLAKE2B 3b38274e1b7859a51862e469c26605ff5bb843dd7d5fad7a3d7a0f25bbf249b183aa571b5f4f76569bdd633c2730c388eb5814ef717f56be2e8dca8db5ff4a1e SHA512 5b2056d1f454061bd3502cb730861f78a7592832f00f85f834415a9b540f7a65f81c1c72fd5f4edc2a51f3dee0fda21c8038c26c4a7dd48b0ca0b8410b9a75c3
+DIST thunderbird-102.9.1-pl.xpi 716230 BLAKE2B 3e9c7e6c874bf5bc17c1ceb4a2efa5a9cb90959b545e1865867ccc1472cceb9e6d2a89392e1cff47cb9dfbe149d7a41e8b7afe2675c3d3384c8c281f26d8f0b9 SHA512 0a0545250551d5951f20c69b96180e7970c2cffee1b577a522c9e8e1554ebfb416152662afd13f9da24f43007213da31785f805f186f9f1c3c6fcddd67c330dd
+DIST thunderbird-102.9.1-pt-BR.xpi 711150 BLAKE2B 2f4b136169b5457708d4e8b41116698e6ec30eb5747c23956eda376e313a58adac5889cb728462ecba02d8f2e925748099985f2a34dd9234fb1d769f5409a1c1 SHA512 dcee7d17d408717623c1042b90b27c995eb91966b12f54de2759e45ea1728174cd5ef41f438f9c4ba65f635f1c6e026bc333bdd7c5bc06212c488df707001687
+DIST thunderbird-102.9.1-pt-PT.xpi 686909 BLAKE2B d2827dd239d824c47bffba9ad12e42d3d5eeda498397c9eba6301d81c422ac7a93c95f47cf2433461e144b16f7f4fa8e40bf755413ce6ef78373b33c9d1b3b0c SHA512 737372d1876aff607c079ec15e91427d978e540a254cb1076397e9a8c4d28767d0222fb0e449262397cb45e56d05ad0c9bafce7d23e937d0267195324ad49614
+DIST thunderbird-102.9.1-rm.xpi 701682 BLAKE2B cc044041472b6b0ae1a31bf7871e0f43fceedc34d913715dc8adc330d613d6a55d79e9e5503796af5a2807c76bd7b8d86ee0a5a5f3420dc154a02ee3dc06f16a SHA512 e24eb9cb9b9cc4e63e9f99e7d34ea015cdcbd2fd93ba59cb201ffacbf9b20d4bf1c9d06dfe5dcb03893986bbc2a18e0c247295e4fa421ec15b82c51c50869eb0
+DIST thunderbird-102.9.1-ro.xpi 661281 BLAKE2B c33cb53e21db62414bc7388fdaeeb85ad65f436b50d54dda447cc8aa89a8c4f03f0b7bdc01a99564d441830cb66631974ae605bcdccf32d3e5251fe2dc1b5a67 SHA512 e3eb3c21b976253cd21b50e0728b65000e2435624c155afecce300406882df1b93b8c3bbe2da0239c98b1acbd9a4dfe593c1bd1f9beb570984fbec1e92ed39d8
+DIST thunderbird-102.9.1-ru.xpi 827219 BLAKE2B 749ab7142372899ec02663f8daab7810b314702bb47cdef5f0b55d0f48204cfe68edab4d2c6f13e34eea1bacc87e84a2ebe85cd056dae6cd205fd11763661deb SHA512 6fea866ccbcec77bdc84e293bc455623361f9a1bf8aa25a4b833d6c4c83d0e27ab26968c98216fb7c830d02f270485846b4035f67163318049167198d9b82cbc
+DIST thunderbird-102.9.1-sk.xpi 740980 BLAKE2B 927cea47f878c69ef27aa57974e0ea28e5782930074168e55880e82692b464ecee2f4111c3adf226bf29e1d037f42ef1253d8f8dd8caed8bf274a5a01f1e47c6 SHA512 0085c0b259f7671ddbfc529cac4c9e3e27b09084221deca4aafcf500b0bc73b774b21c83474deebe08b542599d977314f8f015327c2646ae292730c2d4ad2c0b
+DIST thunderbird-102.9.1-sl.xpi 704060 BLAKE2B bc5d1e8337c28b17e82c719dc195b7c1eab5fe382851dd8b2de17d88fd62fdcc7ce00a366ad0774d00349b8c5655ea5fbba8773f38d4e8b7fa6889c9e72f9d5b SHA512 8088b9536ffb333d3fa9b70249e984b5345068c1daa3c49139f493ee11f3624c0e9f416927f749843b946e93eb9ebe382cad5ae00b47094ae0af47b93ca2d9b8
+DIST thunderbird-102.9.1-sq.xpi 726035 BLAKE2B 9d50c3efb8fbfc3e698776374134a1ec67ae0a3eddb948881fc2d1a560fb7ee31b71abc5a158395d247b299a8a4692cd8ac2ddf175b9be542641e43ca06296a7 SHA512 2f149aa369e4ba52f6ede11810049deb895d0b507e789406068c290094a24a313b06fe50548c7acb135674decec1d75d8f63b5b74c082ec5408371d6501f5c28
+DIST thunderbird-102.9.1-sr.xpi 720556 BLAKE2B 08ae7d196a9ff1bfed1bd0bcfcf408a6e1b6a0f465b28b2142f7f9e74c7f250b21fa8f14b5074e933e709b863928be9eb39141bc75f7d34258cf73d8250fbf56 SHA512 24154f6536f9196692ce17cba062adb7f1f46d00378f1ac28e2d72fa3e64a120ce139bf55eece1bb28c448351a77b5841188cf2600bbc66b0fb3e27bc8df54ff
+DIST thunderbird-102.9.1-sv-SE.xpi 706952 BLAKE2B 15022666ff26c4ac01cba3497cc5743e43a414626aae6dfa86da756fecb1bb60386ff0fa980036fa80abfe3170055f0f04451b75281fba6c9405264cf4ce3fba SHA512 599718d0e3dc44df3b0a0d8541d784ac7146d5057fa52a616fc73be83f08447b82f6ff9241a686e129f9e178e2b81cb004cd2ea00d5b8b646bf03455c58225bb
+DIST thunderbird-102.9.1-th.xpi 758235 BLAKE2B 31029f538d3113240c39b4f23fbcd42cbfee0049c8999ef354f38dcfaa54d76fd65b32c2fa1e040432d6a206f018dddd4390d9dcd8ef96175d91728b34ea337c SHA512 d4269b6ac010d90c3457ebb5652aaf46d208bb135e1dd91198fb52e0ddc0fd76630dbae8e9dabb7387550fc43f6908e7f013d80c02e6b68f113554e089462049
+DIST thunderbird-102.9.1-tr.xpi 720175 BLAKE2B f0fb3fd04c6976a292480272117ce5d06956593f86877bf7f4912a17a86e4277fc476f5351a336f83a5e8d64ffdb658299d62bc8aba94747007a89110bc8ebef SHA512 44e9ed5cd54c0d207d2670e6e6753253c996e6e6752e708ed5513b9628ba5950d49fdcac686f2261d8fa32ad848995b2546acba1599d58c9866aa2b1f1b5a6bf
+DIST thunderbird-102.9.1-uk.xpi 818663 BLAKE2B a52dd588993d5f5ed0b3a6b89b8958fe1a3a2f713ff852f1427bb5b16afc922a17be98fdcd85a37cc8d5647d280cc7fbaf5582fa5e04a10ec0dc0845a50abc49 SHA512 df7db03a9dd48318780f5cb60e37405898f5d0edffa0c96040924e4440a30ae14e4aaa2cb2a80139373a4228f8159420ac02ed146a8329a4fb9249d170c1a46a
+DIST thunderbird-102.9.1-uz.xpi 593012 BLAKE2B 49f0db519654f466fdb2f45fcd16495919c93ae55743e512e0243f1dfa099c077dc8c0616ee2ead10d4fdef471f3c2bdee48c959ba7e24c51edc1c0f05355b12 SHA512 05758070482f3f467ff1f3415ea8e85c2cfbf0455dbd1bb503bc61d679a27d4ab4e133e5be1e72078b9dfe791c7d60c38e61fc12774a7c99d12d0eb37401e18e
+DIST thunderbird-102.9.1-vi.xpi 745663 BLAKE2B 362a9cb76087b5058d13bd01b656252d852c7af32e2287062348175d8358f448a7aaba45c9c0b5c1b945c31b81557b969bffea1f63d0ded16b0fc597a921612e SHA512 18b55ed318096aaccfc64b6b6d31668c4bcd8ed2dff353833b7f124649652e81b2125f74ecc1cbef36ae580f040dccc45f43b6e997aaef48137b4487c47d87e4
+DIST thunderbird-102.9.1-zh-CN.xpi 739886 BLAKE2B 80b2851545b7b81fc1e80e978b8fc3ef4596da70820903851174eb8925c4572df6242a946c6f7a9a694078d8d7c0bf1c1ad94993c853f695a2040d01e70f8cc8 SHA512 292a0810d8ba90017c5a2370197c883e77bed74270f3079fa8dddb8db2884b67581a2eb74dabeea9b375bf7d46e1f6233d21cd4b5a1c0124d8c1379ba430d309
+DIST thunderbird-102.9.1-zh-TW.xpi 748346 BLAKE2B d55821dfb8c5b8321bc1dbbb0d609c63018f10cd6813c5e3827a03c9087fb32d07cef53f45abb651c8af8e593ed0061308c963378d72dd840e97446e68cc1c03 SHA512 d751cb5e9c9a9e103b5c79a16d295b44f66cea2753aaf1bdfe21f635d7a692d10f5573c5ee40980c6ae2625a6d1f35311fd62f6ae64389761fdfc8654e40b4ed
+DIST thunderbird-102.9.1.source.tar.xz 503181696 BLAKE2B b2f437489284105dce072b6a3816b3fad52fd4a5d4d7fd65284473896ef6f7134102fa71b77b62f2dc25c3135cc5c287471ab87add160d7437996904c76f4c87 SHA512 0a4aa344387d19ab6e8e70a08f27ea0e47e74f90e8cf47545870b7ef30b08babfae9be229b13bee31b6797c45683859ba54ecbc0d1e31c40f780851ae0c0a84b
diff --git a/mail-client/thunderbird/thunderbird-102.9.1.ebuild b/mail-client/thunderbird/thunderbird-102.9.1.ebuild
new file mode 100644
index 000000000000..f4d12a7ec864
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-102.9.1.ebuild
@@ -0,0 +1,1178 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-102esr-patches-09jtb.tar.xz"
+
+LLVM_MAX_SLOT=15
+
+PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="pgo"
+
+MOZ_ESR=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+ MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+ # Convert the ebuild version to the upstream Mozilla version
+ MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+ MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
+ MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ # ESR releases have slightly different version numbers
+ MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit autotools check-reqs desktop flag-o-matic gnome2-utils \
+ llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \
+ virtualx xdg
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
+
+if [[ ${PV} == *_rc* ]] ; then
+ MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
+fi
+
+PATCH_URIS=(
+ https://dev.gentoo.org/~{juippis,whissi,slashbeast}/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"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="debug? ( !system-av1 )
+ pgo? ( lto )
+ wayland? ( dbus )
+ wifi? ( dbus )"
+
+# Thunderbird-only dependencies.
+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:15
+ sys-devel/llvm:15
+ clang? (
+ sys-devel/lld:15
+ virtual/rust:0/llvm-15
+ pgo? ( =sys-libs/compiler-rt-sanitizers-15*[profile] )
+ )
+ )
+ (
+ sys-devel/clang:14
+ sys-devel/llvm:14
+ clang? (
+ sys-devel/lld:14
+ virtual/rust:0/llvm-14
+ pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] )
+ )
+ )
+ )
+ !clang? ( virtual/rust )
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.24.3
+ net-libs/nodejs
+ virtual/pkgconfig
+ amd64? ( >=dev-lang/nasm-2.14 )
+ x86? ( >=dev-lang/nasm-2.14 )"
+
+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.79.2
+ >=dev-libs/nspr-4.34
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ sys-libs/zlib
+ virtual/freedesktop-icon-theme
+ virtual/opengl
+ x11-libs/cairo[X]
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ x11-libs/libXtst
+ x11-libs/libxcb:=
+ x11-libs/libxkbcommon[X]
+ x11-libs/pango
+ x11-libs/pixman
+ dbus? (
+ dev-libs/dbus-glib
+ sys-apps/dbus
+ )
+ jack? ( virtual/jack )
+ libproxy? ( net-libs/libproxy )
+ pulseaudio? (
+ || (
+ media-libs/libpulse
+ >=media-sound/apulse-0.1.12-r4[sdk]
+ )
+ )
+ 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-71.1:= )
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
+ system-libevent? ( >=dev-libs/libevent-2.0:0=[threads(+)] )
+ system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+ system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
+ system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+ wayland? (
+ x11-libs/gtk+:3[wayland]
+ x11-libs/libdrm
+ x11-libs/libxkbcommon[wayland]
+ )
+ wifi? (
+ kernel_linux? (
+ dev-libs/dbus-glib
+ net-misc/networkmanager
+ sys-apps/dbus
+ )
+ )"
+
+RDEPEND="${COMMON_DEPEND}
+ jack? ( virtual/jack )
+ openh264? ( media-libs/openh264:*[plugin] )"
+
+DEPEND="${COMMON_DEPEND}
+ 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 ; 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}"
+}
+
+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 ; 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
+ # 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
+
+ eapply "${WORKDIR}/firefox-patches"
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_user
+
+ # Make cargo respect MAKEOPTS
+ export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+ # Make LTO respect MAKEOPTS
+ sed -i \
+ -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/build/moz.configure/lto-pgo.configure \
+ || die "sed failed to set num_cores"
+
+ # Make ICU respect MAKEOPTS
+ sed -i \
+ -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/intl/icu_sources_data.py \
+ || die "sed failed to set num_cores"
+
+ # sed-in toolchain prefix
+ sed -i \
+ -e "s/objdump/${CHOST}-objdump/" \
+ "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \
+ || die "sed failed to set toolchain prefix"
+
+ sed -i \
+ -e 's/ccache_stats = None/return None/' \
+ "${S}"/python/mozbuild/mozbuild/controller/building.py \
+ || die "sed failed to disable ccache stats call"
+
+ einfo "Removing pre-built binaries ..."
+ find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
+
+ # Clearing crate checksums where we have applied patches
+ moz_clear_vendor_checksums bindgen
+
+ # 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 ..."
+ if tc-is-gcc; then
+ have_switched_compiler=yes
+ fi
+ AR=llvm-ar
+ CC=${CHOST}-clang
+ CXX=${CHOST}-clang++
+ NM=llvm-nm
+ RANLIB=llvm-ranlib
+ elif ! use clang && ! tc-is-gcc ; then
+ # Force gcc
+ have_switched_compiler=yes
+ einfo "Enforcing the use of gcc due to USE=-clang ..."
+ AR=gcc-ar
+ CC=${CHOST}-gcc
+ CXX=${CHOST}-g++
+ NM=gcc-nm
+ RANLIB=gcc-ranlib
+ fi
+
+ if [[ -n "${have_switched_compiler}" ]] ; then
+ # Because we switched active compiler we have to ensure
+ # that no unsupported flags are set
+ strip-unsupported-flags
+ fi
+
+ # Ensure we use correct toolchain
+ export HOST_CC="$(tc-getBUILD_CC)"
+ export HOST_CXX="$(tc-getBUILD_CXX)"
+ 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
+
+ # Set Gentoo defaults
+ export MOZILLA_OFFICIAL=1
+
+ 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-updater \
+ --enable-js-shell \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-release \
+ --enable-system-ffi \
+ --enable-system-pixman \
+ --host="${CBUILD:-${CHOST}}" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --prefix="${EPREFIX}/usr" \
+ --target="${CHOST}" \
+ --without-ccache \
+ --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.
+ if use ppc64; then
+ mozconfig_add_options_ac '' --disable-sandbox
+ else
+ mozconfig_add_options_ac '' --enable-sandbox
+ fi
+
+ if [[ -s "${S}/api-google.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+ else
+ einfo "Building without Google API key ..."
+ fi
+
+ if [[ -s "${S}/api-location.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-google-location-service-api-keyfile="${S}/api-location.key"
+ else
+ einfo "Building without Location API key ..."
+ fi
+
+ if [[ -s "${S}/api-mozilla.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+ else
+ einfo "Building without Mozilla API key ..."
+ fi
+
+ mozconfig_use_with system-av1
+ mozconfig_use_with system-harfbuzz
+ mozconfig_use_with system-harfbuzz system-graphite2
+ mozconfig_use_with system-icu
+ mozconfig_use_with system-jpeg
+ mozconfig_use_with system-libevent
+ 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 wayland ; then
+ mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland
+ else
+ mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3
+ fi
+
+ if use lto ; then
+ if use clang ; then
+ # Upstream only supports lld when using clang
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
+
+ mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+ else
+ # ThinLTO is currently broken, see bmo#1644409
+ mozconfig_add_options_ac '+lto' --enable-lto=full
+ mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
+ fi
+
+ if use pgo ; then
+ mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+ if use clang ; then
+ # Used in build/pgo/profileserver.py
+ export LLVM_PROFDATA="llvm-profdata"
+ fi
+ fi
+ else
+ # Avoid auto-magic on linker
+ if use clang ; then
+ # This is upstream's default
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
+ else
+ mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
+ fi
+ fi
+
+ # LTO flag was handled via configure
+ filter-flags '-flto*'
+
+ mozconfig_use_enable debug
+ if use debug ; then
+ mozconfig_add_options_ac '+debug' --disable-optimize
+ else
+ if is-flag '-g*' ; then
+ if use clang ; then
+ mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
+ else
+ mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
+ fi
+ else
+ mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
+ fi
+
+ if is-flag '-O0' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
+ elif is-flag '-O4' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
+ elif is-flag '-O3' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
+ elif is-flag '-O1' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
+ elif is-flag '-Os' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
+ else
+ mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
+ fi
+ fi
+
+ # Debug flag was handled via configure
+ filter-flags '-g*'
+
+ # Optimization flag was handled via configure
+ filter-flags '-O*'
+
+ # Modifications to better support ARM, bug #553364
+ if use cpu_flags_arm_neon ; then
+ mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
+
+ if ! tc-is-clang ; then
+ # thumb options aren't supported when using clang, bug 666966
+ mozconfig_add_options_ac '+cpu_flags_arm_neon' \
+ --with-thumb=yes \
+ --with-thumb-interwork=no
+ fi
+ fi
+
+ if [[ ${CHOST} == armv*h* ]] ; then
+ mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
+
+ if ! use system-libvpx ; then
+ sed -i \
+ -e "s|softfp|hard|" \
+ "${S}"/media/libvpx/moz.build \
+ || die
+ fi
+ fi
+
+ if use clang ; then
+ # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
+ # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
+ # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64')
+ local disable_elf_hack=
+ if use amd64 ; then
+ disable_elf_hack=yes
+ elif use x86 ; then
+ disable_elf_hack=yes
+ elif use arm ; then
+ disable_elf_hack=yes
+ fi
+
+ if [[ -n ${disable_elf_hack} ]] ; then
+ mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack
+ fi
+ elif tc-is-gcc ; then
+ if ver_test $(gcc-fullversion) -ge 10 ; then
+ einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..."
+ append-cxxflags -fno-tree-loop-vectorize
+ fi
+ fi
+
+ # Additional ARCH support
+ case "${ARCH}" in
+ arm)
+ # Reduce the memory requirements for linking
+ if use clang ; then
+ # Nothing to do
+ :;
+ elif 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 use pgo ; then
+ virtx_cmd=virtx
+
+ # Reset and cleanup environment variables used by GNOME/XDG
+ gnome2_environment_reset
+
+ addpredict /root
+ fi
+
+ local -x GDK_BACKEND=x11
+
+ ${virtx_cmd} ./mach build --verbose \
+ || die
+}
+
+src_install() {
+ # xpcshell is getting called during install
+ pax-mark m \
+ "${BUILD_DIR}"/dist/bin/xpcshell \
+ "${BUILD_DIR}"/dist/bin/${PN} \
+ "${BUILD_DIR}"/dist/bin/plugin-container
+
+ DESTDIR="${D}" ./mach install || die
+
+ # Upstream cannot ship symlink but we can (bmo#658850)
+ rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+ dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+ # Don't install llvm-symbolizer from sys-devel/llvm package
+ if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+ rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+ fi
+
+ # Install policy (currently only used to disable application updates)
+ insinto "${MOZILLA_FIVE_HOME}/distribution"
+ newins "${FILESDIR}"/distribution.ini distribution.ini
+ newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+ # Install system-wide preferences
+ local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+ insinto "${PREFS_DIR}"
+ newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
+
+ local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+ # Set dictionary path to use system hunspell
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
+ pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
+ EOF
+
+ # Force hwaccel prefs if USE=hwaccel is enabled
+ if use hwaccel ; then
+ cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
+ >>"${GENTOO_PREFS}" \
+ || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
+
+ 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
+}