commit:     9215cb26fd0a5f92f91e9c2c12f625fb96a571f5
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  5 10:52:43 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat Apr  5 10:52:43 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9215cb26

mail-client/thunderbird: add 137.0.1

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 mail-client/thunderbird/Manifest                   |   65 ++
 mail-client/thunderbird/thunderbird-137.0.1.ebuild | 1157 ++++++++++++++++++++
 2 files changed, 1222 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index f6f962b60533..c923d846611b 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -392,4 +392,69 @@ DIST thunderbird-137.0-uz.xpi 355103 BLAKE2B 
38164ebd891ecac22cbde85faf40e658e8f
 DIST thunderbird-137.0-vi.xpi 513516 BLAKE2B 
152ef6e896cc8be7c711f0afe9ebbbdd17a4d9b4c67867936e3641f76b1599037718772a3df64eb5c8e16c0a22f89bafaac7231a9e85c40002a15fb3caadf2d6
 SHA512 
b9c51cbd3ab8afe2c6c680e615eabd8fea72552275d955c4a265cd8dc8a98820b9d97400b7b4757cd8218529899b1af63af0d56f23c613249d2f8a5d5364da35
 DIST thunderbird-137.0-zh-CN.xpi 502841 BLAKE2B 
a05ec32fd94400657c9f13559d027797f0d3a5170ab53fadd344eb2470d205a30f6f444f36409573e560fcce7fb1201eba22e6c1a6b3a64323387311fb191779
 SHA512 
a00accdc0eeaa09664b5dc563769fcf3f84211d346996f0156c7e7cc3ca4f6e280377d33179c3689d4bef105671da96aa665fedda14b3e55a75adf41331e9a4c
 DIST thunderbird-137.0-zh-TW.xpi 505942 BLAKE2B 
52063bed767b683e064569109a27d0d7fcf47eb52c3c55927ab6acfdb9ab0b17395277f86cec7e71292dd2a5381c1ec43e5469f90f9befa78eb21bbf4a96b77a
 SHA512 
62fe6bd0b47ac2636056416e4e5c455103209c09e673c9aca3f3406c2aea155b6a7cb2a528e5690fd817f5107580bf71dfa3f7ccb754c2a3fe9beab417630b1b
+DIST thunderbird-137.0.1-af.xpi 315723 BLAKE2B 
476d0cd1ed6e15500c3ceef61910313fe2aa9066459f41df45484372e92638c871d3316d4679509e117e6d318e6948bc55361a40d8ae613c60a3d1debff3049b
 SHA512 
861497204e4843037ab1d2dd00570a76a4f9c3a7fd381a45b74c911e18f0026cdf510556d263e36d133ca5375ebcb1a0c7a871e3efc1497166b6310c2337c1b6
+DIST thunderbird-137.0.1-ar.xpi 432365 BLAKE2B 
69c825af9cfc5eaf2a221f21f70ccd8c1907efbc44738ca7f5f09c5893e52e64bde5365ce9e63ee8038f654733f81444a8053b901741de74cb1462e3d3fa42df
 SHA512 
73f8436375b9cc749c58bc53b5040468412ab3105711e6caa1af01a8c100574e3b0cf50571f19bbeacfedcc3cb932e4f77197a5718cef95ed4f438ec4ad779c7
+DIST thunderbird-137.0.1-ast.xpi 341313 BLAKE2B 
27a0042e6064b0fa83271469e5b3c1e059541606f27e639d036a11b700a24c3e7b52c6eaa23939639c1013a95117bdb2507d7b5c16f613ccde2d0bc8f1c561f2
 SHA512 
93fe47a583061a22ac61adb6ac727f1cf92002321e89a8211ca328fb3c3e8138840b3a4cb683b85aed488d21faf69d3e522018bf87d77c06dd145dcb578ade91
+DIST thunderbird-137.0.1-be.xpi 515739 BLAKE2B 
5c3b6f5b6d1be00da5654348cb987520b96e6269a91eb43012fcae2f1782ef0a516733b574e3db5f407642cec914e0e54486eb472b439a284efee04e8f1315d5
 SHA512 
bd8f34cf6ed7feff1e0db758e817c1e1e48236dd3a717d77591fcdac2875e95f9c52689dd33d30886ce0ce9ef35e18a6a05c3f11d200e6aca824309d952bd935
+DIST thunderbird-137.0.1-bg.xpi 533478 BLAKE2B 
fa4a34368dd5a12222ca198ffafeeb0945c25eb080c89b17aff6c366d21809fe5f6fcd9586d7a262fb7f6fd34e0cb26ef80f6231264ba3655d8e443e99fa88b7
 SHA512 
24aee5e6a1197b468f1bd5380ce00082a7498255edf605530e6c32d84fda8676e3177346385da796c420f95b7029bf459847b4e76df8241d62b0bf57253082ff
+DIST thunderbird-137.0.1-br.xpi 402088 BLAKE2B 
455e96c94c64540682cd5afddb91eee0599bbb394cd5611bdb6a5eedb39749a6ecfbe203d078360b339b4a1d5e1f35d158263865b24a971bdcf6d836eae0d7ee
 SHA512 
0978ac458e66fc8d93dae7ae5079c218802299988af0c61f48f320d3b102ff0881745dae0bf463f93573017bade6928af9b5a02d1612e4f231920754d5df2388
+DIST thunderbird-137.0.1-ca.xpi 440385 BLAKE2B 
5c4518144440f1dd3ce08c78a64492a162ca9c9353416daa4e5c2a38a71760882b73a70e2cc6d2830efc66f9edfb1db18b8f23dac8f5c025ce829de1024f6942
 SHA512 
a906e08bf66df5f5c513f10a3368974eccbc7c153b2143e7427a9f91dbe691d5b87912fe898365522e61897670192774fc4a0796c6404f3dd04e080a949ae2d2
+DIST thunderbird-137.0.1-cak.xpi 417975 BLAKE2B 
3ca2c8bf472d6102d3c001b4e196effa28949667d3c810345ab8fd01391a6c9f220c7678e4b70553d8b4a0de7b06c41165d84ba5c17284037f12d0204c371013
 SHA512 
70f2ba88402871115101da6d3f223f72a6df22b9af1ec059caae2b4820b1606c19b8e337b5f8c1f500d858a560110c554cf7568e5b71ea60bed4dae8409892d5
+DIST thunderbird-137.0.1-cs.xpi 513946 BLAKE2B 
30b58748ee64445a4dd92f57ea68bfe4a20d95308c167f45540a69e6824a97001fe9935255ec988a6626a4a64d71c74d0be90aec990efce27ab76dcfd8bf571b
 SHA512 
3f17d53a87efcf0c5e5efec3a6ec8c4f7d0204c11614486cdaf4a388e4d626efe9fba421b16f2b8984c18644616324d8f8043689ca99215b3712a94b9256781c
+DIST thunderbird-137.0.1-cy.xpi 482483 BLAKE2B 
e8a4d31989a54d64d4ce6e880bfb34e8b12ca23646db495977e0bf1a7ebf4ff661148ee22b7bb25ace70eb7f9002365bbe02b003eb6daef1ca30fe27ff79e741
 SHA512 
6c369554464c4b5ae3da2a2e0ef9fe08a71b384a7110930b3f92b3245012923583c421c2f9930f0feaeb634a5b1169766b9a8fad32c2601df4e0e870854e86cb
+DIST thunderbird-137.0.1-da.xpi 470168 BLAKE2B 
0ab8e905fcf7aa7ba6af8a8d4ce5bd3659664aeab6d97b8b4f630afc353330819a49d29a375427dee8d51f264dafdf8b16648809244e465fa6359f0d8b8ae8f4
 SHA512 
afc111265cc684a347bfe844a5cdafb77943874d544c4fa57efca1d9d818727a2e8850d49632ab1f635766764301a23ee91b98b17edf0a5c84cfd621d9a351f5
+DIST thunderbird-137.0.1-de.xpi 499758 BLAKE2B 
1943303e19cca27201f7beedd791be29a64aab1b71883f21c44a3996741697cc77e4689d7483ecb2362c21f6c6527e0d4b96e036f41e213450c5a617a4478de2
 SHA512 
1f6626086df9058ec463f52b98ba01b4bfb3a3c0e93a8808f22a2f1e35aedab27b23c102b49e713838a87bc1c7431fea02dd1ff3b82aa3085cb3369def7b925d
+DIST thunderbird-137.0.1-dsb.xpi 512441 BLAKE2B 
df5bab5ee983544b4a3b355f5d69c5be9e8c55cf0918adc760dad4a049f80d54e18b4655af9c5e4878060ab06a36c2e6d95dae36b9269b85be73c0bc252cf773
 SHA512 
49ae520ef9bb9e8ac5b9ffbb1eb4ccf9f8974cbb1dd131722cff297760ae482d4100dfd4921cd05cb32aaf9b07c8cddce306d47ac0acf612f63eba0f7eedde0f
+DIST thunderbird-137.0.1-el.xpi 602630 BLAKE2B 
2ae8701af91bd2723e104bb9d292eab71b741dfc85a149410eb76ec338dea28f4f553eaab89eb01abf544623acfe6162a6eeaaebf8ebb5f3aee059e8d627aef5
 SHA512 
59220f1cbf4899d811f1b373f077aa520f6fd3c59288b0bd21ed8a4fb404847fd8e02eb4c9e5caa55c4c1fcdf4ded1ac4ab7fde2c88c76c45b6ce3e5e9f9ca3e
+DIST thunderbird-137.0.1-en-CA.xpi 447813 BLAKE2B 
f397a23828dc27b396eab8e5bb399790f415740035a03560225c96fa96926a9455f3297943e32fb62dca9d0448cc63647061a10c9a5227ee98c2ce931e1377c8
 SHA512 
9c573463596e1e4d5106ffe151048db7b4ec6af491666caeb8d35f1dce9312a13b38bd97bad61439cd65e2401999b2e7451a4ede88b0372c78f1805a17270c06
+DIST thunderbird-137.0.1-en-GB.xpi 447641 BLAKE2B 
b55862004c23713e3291b0657e45e620e64c2e5ad6d1a95b7b2d7be5a07f0d999e301a1b798c0a14808fd8a6c98e136148c7579afc4ce54f53b6dc2f52073c1f
 SHA512 
2664e5b8171923af7bbe361eac2b90e92b2223e6bc9a75a6734aad56ccd2ead33cd60ce37f92a511b2ac965a3c072e7f07e28ac5e71b3633f4fe12287ad400cc
+DIST thunderbird-137.0.1-es-AR.xpi 490342 BLAKE2B 
3f80a551de1a24c1ecbbf5ed818f714138a9db121d49428f7d2d41abe7b35da80d98433c2b6283ffcd6fe1c2fc3c82b34f8ce7965b087297fd50eb69a71595e8
 SHA512 
3cfa906d87c69a3f4b10ed812f99dcb14c26bbf73ef5050eab4044bea3ece85d6d698f1054662dabcf91637154ce755338baa51b573e143ec4b3a3f7f705dcd2
+DIST thunderbird-137.0.1-es-ES.xpi 491033 BLAKE2B 
7b6df01d22ef4fd284bfafcb2499d497135a1788230a38765b9cd3e385c0a93cb64ebee85b611c3fde0e71a05d924351428d96db6b1871871b98807bc97e3c3d
 SHA512 
933ae296a1a92323832102a113ae3a1edbd586c07474c26713d83575f0e9697f7cbe075d54e3b8a79301b8b1e96df7c49feaa541fbda4942c791f9fa4589e127
+DIST thunderbird-137.0.1-es-MX.xpi 488165 BLAKE2B 
5a7e1abc363a88f46afea005122540d18b02d485e2c05854e6ff6572e9e5c2736ff61bcc86c182f6901af7f56bd9376da7e2aa2c920fa854bc30885cc621c190
 SHA512 
85dfaff593896269226d5c31e84cc5812847af0e64f2508a8eac6388bdda564584903b762ef3a28cb430c7cad676e45914f8b4ad4c1e816f19175b5016b46b1e
+DIST thunderbird-137.0.1-et.xpi 434777 BLAKE2B 
5b829b760827595bf1a784d7632d753eaf500cf1c5e486fe70d036d185de0a837a23bb97397b7d007afbf3c4de5d681fe147a179da79bff64f29e0b4c0de0b3b
 SHA512 
9fb74dda291744d7517727bec07ab1724919e502283d2d7b39b7236838ebfc334d7b3b368de30d23a66ee4c67fc82b30fd2beed34b3b73aee2d9bd7beef9214e
+DIST thunderbird-137.0.1-eu.xpi 467844 BLAKE2B 
d854d8848dffef27ca4bb68012c625b639221d86ac54a2b39ca29f9fa0ad77d9307d377e40d50d62a71a79828b45ef5b742756791787697fa14481f6d6440c0e
 SHA512 
318f95a9f6269c38835684bd49efa1c13af9fdc3828044977b0925cb3b2db9582f2233b8101da39893fd6af68db087b222612981b4ed1d8b9ac473163bea4ecb
+DIST thunderbird-137.0.1-fi.xpi 469703 BLAKE2B 
e52b91c53d563cbd46ce1aece375c4fff4724a0d54b2650ca050a9f63a8aa474c4ec4a612371edb22c97606c85c046cec90be00277c562fb0294ca73286bb1a9
 SHA512 
2dec3a2a6e82db1e4a2a614e647f734bc5814adda80f80030feec775e4da175e7faa9c01fb4180226e9435b8d8d20c85a9e6f29f9ce2f21f4135ed514f839651
+DIST thunderbird-137.0.1-fr.xpi 503012 BLAKE2B 
6cc14d19835357e5211dfd7f93b4516dceaf9b7c87f287871474de0447279f456fe3a1407722641894bc9b8154f2906e22e194fc6cf9634ca49a9ed33c880dca
 SHA512 
368bf5a10dc44b3b2fd94b4bdd2810c889f9cebe78cd6e6aace7a29eff7db09c7d887d05e776aefeed71dd99e96b0b383078d500bfbb14d0c3b52b5ebcb2675d
+DIST thunderbird-137.0.1-fy-NL.xpi 485650 BLAKE2B 
7bd7176d5fca5c6945e4b3633f3960c59542766b9c553bbdee991cb84d27bd7e61297ba4f541bc9aededfc2225892f5f5636c726db62c4b2a2985bf65f7095a7
 SHA512 
4b43e5d5b14d761920e74c090445aa939c4f2764562f3d6604ca76ac7ef0c20ce7c42c44a6c8d53756f266f01266fa793d4cf044840f141e973ae846a5eee7e5
+DIST thunderbird-137.0.1-ga-IE.xpi 376435 BLAKE2B 
4c9d3a3544680ecc466340a53ae3f086c198287df49ce15f6faf9d492825e65fff7cf0cac645398048b19e5620a1c8d9d3510caa8c722d9e5042546c118f001b
 SHA512 
4f2a9bab23fe1ced656ec3ecf1df631cc8114526eabf778662fe59da0cfc5c4a3fd585b0db5cd850d3d5c287a0f0c25b09922d453ce3f090a2ab28a082a49ad7
+DIST thunderbird-137.0.1-gd.xpi 461999 BLAKE2B 
3b198d6ff3c44f74097262356024012c0d02a343c4873bd848b1c4046c362ae0b20ed528d4dea453ae86f2e7d41eae016a70d4a3374fda350d93736f0d77e6bd
 SHA512 
2aeb296b9e5dba3e4213b53998ddf60d2ed02603d6844ee928d8d36625c4d1a92e307f5f72456bc0ca30ee9ff7a7c41dc18ae8ca72de8aaeacab680656b9a7ec
+DIST thunderbird-137.0.1-gl.xpi 470668 BLAKE2B 
59596a081b9f995905f2e8b6cd16c0f30d46201da9aba0b8099b4728a77ea0c03bfe5d755698cc32faf9b50e73d57223ff1e0475410cba2c204984fc74e19e71
 SHA512 
a524ff23251c8f79ecb464d2a8e0bc8f230646a2421e3ca3fbf60d15507315707efef483441d677a9b0108f0d7269513da517ac9f6ee4e8598de6376d864c744
+DIST thunderbird-137.0.1-he.xpi 437297 BLAKE2B 
b8c10c63a117e9701ac0dbdbf261e0b779b7065960aabf13879d1b50067f95ec4a6dc18b90904bf60615e23afb2b741515984c128ca3c4069bea83290100c60f
 SHA512 
eecda97790a13042727754397e516b55a559e56640508bf349201bc054fd262319a94af4a873584eace18bedd180b130ada6ad7e0ca3c309c09787c349d8c523
+DIST thunderbird-137.0.1-hr.xpi 457490 BLAKE2B 
fcaa41a55234e585eee05a1ad9a382a5222d707d66339bdf525470d7998f6836b48267d9b0d5c2437d3599ed72cd2bf0abf6b66a7ba12e912a06cd3a8c094445
 SHA512 
50c1e0672b3a4ebcc5670aa3a7e37ab357fac7eafa8808267de03944c7619f80291d7773d571afb75e1038ccad55019a12898f5b895b276028788b8fff64ed7f
+DIST thunderbird-137.0.1-hsb.xpi 509504 BLAKE2B 
31177509b45be4b634de25d679df1b637afb15fd3cf7a7fc8441a6f9d93c0b5486bafc6d3a48e646b7a4a050ed9afe86198926e45ef8d7399af7fe80d12820d6
 SHA512 
ab289a940bbeaee287bacaaeb5a9a0341444dcf56655c4f5b630d6b439a53a9246c115c49034df2b9b08ce4f165dbd6d3259229e569ec2dddea3694ad3dc8544
+DIST thunderbird-137.0.1-hu.xpi 512395 BLAKE2B 
926313d2af7fd5e3f56327fcb323d60b2336ace947338ffc4d5e46bdd217b198ac4a5c898df285e8900a929b9826b4b84d7d162c0ddd482d5e30ffa8dd08b727
 SHA512 
3ef2fecb8f50aa21ef724e2b9355e17a5d9b2c02b105d0cf5dc76273d53b4786a0f670ea056f99d76cd6c000c51c072ca8b903d648c5152f6a389254d8f00451
+DIST thunderbird-137.0.1-id.xpi 462801 BLAKE2B 
f74fa29614dcf350b5ff7f783e4d4d8b7ea2d06f896678c25aa38c5e2f14b31b7f4d963412de0b96baad81addec271e471932bafdf23114e414e09c3c1acd049
 SHA512 
d5e67d719457bf28232d238f9576f06a268d0f59fbcd1ea467bb8aba0b05e93e3f18c32f9d19d349e411ef51982fe5b1535f272d8db6826a7697a33d0415f885
+DIST thunderbird-137.0.1-is.xpi 479075 BLAKE2B 
c86eac37f735d09efc3e5c3d227ef50b0318852a431a67d337b2b60c92807729802c797bf036866d8a307ce949f339c4f563d7617bf5321122185e14bfc08169
 SHA512 
b42add50db6585e0acfdccf8cb556c000db0dc0a9146718f393718670563603d4b3b67dee545a9f12a59aea0eeed30441e93fe40f8dff4b768ffe849cf57e2eb
+DIST thunderbird-137.0.1-it.xpi 483523 BLAKE2B 
fe48838fd41729f3fcd455d00bd64f9adcd1bdb437589a21350c33ce1b5942d30d40cf351cfd82c8f480a96e1929b76a813bd9ba0eb4d8eedcbc06d03627e048
 SHA512 
9caf54646a769ad0e7e652e13fe01698496263026a7df87364d5ea5ac4d9feef79298ec5432b04c84243780bd31e0ceee9e578d9fd4f71b49672cd1713bb06c6
+DIST thunderbird-137.0.1-ja.xpi 533790 BLAKE2B 
0c393682bcb52836cbde21983e2879df14a6114eec7b183990e322434841bdb8244a78984eac6b2733e7281d7bcdaed3233d8e9e0c0c68de9d8ef588d0b3cece
 SHA512 
31011c3ffbc1cc628a4552af19ba20d66db4831bec6702afca96a55ce02a949f13f6c7764b6312c69925c8128cc70d636f98185784cfcd70d8672f716b568fce
+DIST thunderbird-137.0.1-ka.xpi 535439 BLAKE2B 
542c3c2232536dd33a15d520de4c05d5bca1af983db70313f7eec927c2372777b202eb4b76a19256a39bba824d23b74a56e902de13bb35bef204e2978e24a68d
 SHA512 
6a46ca07e2f961e0a04efbb64a2af2b15f02b383613e019ec6c160a1b472d1be7d170dcf38cd8cb26d444adb59b10afaeb1220ab9f85723af3191b7e7cae8e9e
+DIST thunderbird-137.0.1-kab.xpi 462931 BLAKE2B 
6c954edfd39eab7cfec61421cc7083fe3f44e0e697037fe47bf672f7561048d7554abdff3488b29a4946eefa0eabe88eb05303563ec97f7a1d3f7434fcb068d6
 SHA512 
834609b2405f277106cf148c99e38fe765aa90b9ef91ed7fd0b9806d6376839bf22583d43e0e456a5a379c8abfba84c002e1c4c9504da405e075998f5ff48f67
+DIST thunderbird-137.0.1-kk.xpi 568513 BLAKE2B 
cce0e5205ccdff6bb4523a2dfd463aab3daae13511f65317ef76db0ccfd71765409264985614eb1b51eccb23da56200bfb65b2d12acd602d1fc3d6ed3f5b36d0
 SHA512 
a211703180bd32d86cd8e2d40bc9aef2e61da07fc7898ff20d6500fea6d43b9c475da318b0dd16ef7657ec290c70af16dc30af90415ac1394909ac432795ddab
+DIST thunderbird-137.0.1-ko.xpi 508488 BLAKE2B 
0c0a69d044ed3722c92c66f05a43ba2a3cba6bc7403949a812a391ca3ac4a175c9d56b29cb2ab949c86bd82682e75e33b9d5df56a3ba9aa033e1003b3eee72b8
 SHA512 
a3f4fcae97ac4aac5ee7949ad3e53b2d6bb7a184cb4145eb1f7506a89f04616adefcb91127fdfd901cb2b18e13c5f545869ad363b74fbae3f3a565b3944132c0
+DIST thunderbird-137.0.1-lt.xpi 441808 BLAKE2B 
bfedc79662a7514f9deb11e7d68ac7cdb2ac77b575a470d2b73b973e4a190d1dcc4ba3fb89c220d82251b8c229785805d246860fb81e0a85f48e6fd46369304b
 SHA512 
fccac218984ed33c476c8fd302dd2fd07c359f571cd62c27a4fb9b8dd06a9dfb4be1a0757dea24e6a8fec4a5fafaf084e58ceba29e9cb0d00e63c7571c603984
+DIST thunderbird-137.0.1-lv.xpi 391444 BLAKE2B 
77e4a6645013ae95d9e2c07fad672ee175dd008b7af622a475de9c2afd75fa63d1d08778408e058659f598d97d8a09ac363c26837e9ba4ad8543f44b6cec19c5
 SHA512 
e1bdb95a31e2a1dc42c3b71efd28d0cae206a721cf810ae632c467bb89059f1d73061790a027700d006b8af0b4b3df89f30f655b7b59ff7f2424ba99de7049f5
+DIST thunderbird-137.0.1-ms.xpi 351561 BLAKE2B 
c0a39394b8e923b4f5cf0d77c495bef808acbd6f4e7961b9392f1129f242e5def53b14a1b62b50ace706c522b928f217878dde20d6a55a9dd22b49771aa1394f
 SHA512 
0c3ffb0e3fb803f5498cd7429d70576351095bc99fe4a91ffc5e81436e06aaa431648e0ee64f311a91cdcafdf5053b0c5980e8213a96cca5fb1b8e7428fe3415
+DIST thunderbird-137.0.1-nb-NO.xpi 442816 BLAKE2B 
f5c579fd2136d7e2f914576a2a5f037abd32436533c5a4175f74fb917d7012959e8235f79ae8fe6df32d5692c2616b0bb1ba23afa77762db1e1b990f6ba825cb
 SHA512 
4962ea0120841e2291193aec1f70b63d727eec2573f4a97a6af605c2f8e04f619d574950f85515fbd336c148b02ff151c523f171e0546e3870740a933bfe1eaa
+DIST thunderbird-137.0.1-nl.xpi 477155 BLAKE2B 
076bdc673ee4978b7f6223b37be544cb0550b4f430130f00848de1a02bf643acd6ce1a8067da3d130b2079df2d476f5e41a1ff02fc1610f9294305cac1dbe58e
 SHA512 
ec750793314a80addd40bc62fa45ff13713f0f0b78366f741d792fcbdf832acdee979a8f1e52884cd1d338cc93fdaa386ac8ae45dce84c1b651c3401565cc2b4
+DIST thunderbird-137.0.1-nn-NO.xpi 463504 BLAKE2B 
1cd650791cb7318cd3c83231c901f19f5441e6722a48a96b0b5c0c349458d5968924dfb49ab719a843f4c6233dbe12dadd0d4a8f5f7642dacf6f28da20e7bde8
 SHA512 
2fc2095668fb5f86ffb79080b5b67559fd77e7a7d520d6d534c8c242987b1f2374cda85402c45c197216f53893048dabf88233c84e1b1a3fad1d1ec65de79c23
+DIST thunderbird-137.0.1-pa-IN.xpi 432301 BLAKE2B 
c52f8c5713c7861002828946128d62ed5b8feaf6447ac82e0d9b83daec4ea6164af24629117e0c40930b91dece39e4ad24021ddaecb1910b2edca6675a8c1d97
 SHA512 
ffa4edf990e66699e63b61b5315f36559a31029c0068667f5abaf53807a265584269d172955a34e5d701ea275feaf3641a3c6cf98ffcd569a9509486b39157d6
+DIST thunderbird-137.0.1-pl.xpi 510249 BLAKE2B 
c4ac2bf4b2a411df8f490e637b769d7cd9e24f5cad8b959736743e86dc0ebc28ab0225527fd57deadf38e62f1b4e3e85687e86294970d3a390678ac2960e5dd7
 SHA512 
59a67eff3a7dd8c0362f7757275cd51e525f23eeb7ed56d18a5c8ff037fced1ba3f595bec7c5922a4d0010ff5b2eefb939a8551b949e05207ac82f180d351432
+DIST thunderbird-137.0.1-pt-BR.xpi 484405 BLAKE2B 
444040d5832280c3b056b085e255a822e47753dfd586a1604e377c50418a46dcbd6b10c299923a8c028d06a0f14b3fd394a984d1b806ae08c705cd807b7c15ea
 SHA512 
f709aeef21aa3c9a334b7afc55217b649775dc07277232fe45a69013d56d163d593a804fec2ad0031c3a7cdc06238fa95ee08285976bdc9125df69263d35d799
+DIST thunderbird-137.0.1-pt-PT.xpi 479443 BLAKE2B 
76e97111d70b2c434d0bbe219e65a96919158f81bfffaf34996a111e72b0221fb7ffec535d0669a811390a6ddb6c9a4b5c836d52c2a0d905ab929f02725b62b5
 SHA512 
1739ba356fc3722de90ce05ce007b1776c7968d94a7f818934c67f7666b50fa702773f0a20122073cccbae4ba65ea59492d8458d6ff67140e30463b6f916ed92
+DIST thunderbird-137.0.1-rm.xpi 484056 BLAKE2B 
eb872972d7ccacd2e4f08bd946661f660e8acfbda6fb2560cd3c42ddc7f4a5194ade7dc32b6c6a4b1647666c6bb61e2cb708a8293c50c6a55500d010bcbc907e
 SHA512 
4f38d828512b320eda109f8a53caa353725fe91e806ba0086a1ff82b70b23579854e0f6670b70038146c5a1876472ecd5c481b4786b5e4b1b7f9e989a0e6d19a
+DIST thunderbird-137.0.1-ro.xpi 417320 BLAKE2B 
06d26f7494cbe1742fa5f8af667e62c3f74c065c0715ca8fded77e06074a43989416cd671eb9053d12d080e3eaceb734a21e60e126fb0ac57e70023a39a261f8
 SHA512 
78046b598b90e0fb9f4739ad7f58e6249b61fcab46db13d8c738fa469596ee0aa64e48221cd9cb0699828ed0914c62ba0aa9bac6a95c104d74859a308534561c
+DIST thunderbird-137.0.1-ru.xpi 586707 BLAKE2B 
3e49537442909c09e851176809936fdbc9f06a4d2d5f7fad70aff9667ced50dcb17868c87b52c6e1c3684676386164dbc28176ed811e9517542ba2ec7c528c67
 SHA512 
b6e7ed66aef5fe905be2831cfa0a592d7602fae966b66e03b2cd5c28c162d73276824b4096897620158d1a32840958b8264117bb4892abd394ac18fcbcf429ff
+DIST thunderbird-137.0.1-sk.xpi 513731 BLAKE2B 
1e6a860bb4b890b6ac78bd411f7eda3ecf442aae715fc373e6c34bc841231ed00261ed7308c269997b2560f8815344174e03705ef7cc4f865f0375ac21ce6e11
 SHA512 
eec39754c52ce636cf8d62f16e5500ff022d334e641cd96d324cbcd6561e9c117f753caeb0fc5e291506e095fee44c4e21a2d16a4c7d8b3dd08d161f6abb06bd
+DIST thunderbird-137.0.1-sl.xpi 480180 BLAKE2B 
455a8a7f957245d118dc3feeb9c708778a803656e16634d3437033d728e789b2aabec70cdbc8d18aa50d727a27c279e20002de331683d96ad42c3348c8ac77bf
 SHA512 
f2496d2007bbbd2c1aac43958013d194c38a8678ab46fdd05f436e18f97791592c5975f46597382b40f072ba20d87749c7bf536b03ce0d84d191df08aaef67d5
+DIST thunderbird-137.0.1-sq.xpi 500761 BLAKE2B 
b5fcab3b29ae7d20407a0f71ee9498831c0e5e4a3acc3084b162caadae1fd5dd96688aaa9de36a23b10487a398c637024cc3b1a8741ce72c6f937ad90cd2ff82
 SHA512 
45a3350fce1ea50218933dbf924dfc8d6fb97bed7a129e1f2ab87f0b430d9a11d18543859b0a69cfaffe522b68c23fc5255acbd3f5d9b94d849869570727ff68
+DIST thunderbird-137.0.1-sr.xpi 495815 BLAKE2B 
b3e9313347eb2a1e6866011c7c5a255b3dbe78885e5b4b5aff552d300e920f8518becdb377e8ef4108123a2a1760d0d2e16428745a21eff523d5034a36f3193a
 SHA512 
786eb8cb5d3973eeeba7b1c5ef31d7d7481f7b9493610c6b562a64b76de2c82d918337c7476ad1c4200a201c9f0d4b711d250c96a3154dab8c521b77e00e7227
+DIST thunderbird-137.0.1-sv-SE.xpi 479637 BLAKE2B 
7551c6019fe9ba9c8916a3eeb4334527e17df8bd077ed7b382f2eb8a918bde273447bc9aef4f1f3756defea05297a52f5d879d910e1ef2be42d97770ff8f7a34
 SHA512 
ad07cacae0573df51875cce35d682c699c08beffb3d21295b9be96ca94a08eacc09bc797569ebaa1726bcd15e04bce67d82001fb47ee9f0f3e484a2f7787f69b
+DIST thunderbird-137.0.1-th.xpi 561478 BLAKE2B 
27f789de730dde5442db330c1c7298cab239c74d34121f64f650e5b2236c11c8c2df35113414ba5ac0f2b96d49e5594efdce77d4f91986efdca3bb2810becf9f
 SHA512 
aac22dada4354c40da2bbabc77a2caf914a869b8119e7c1159f92cced4f113cddc8d73b137b73f053c4d667f266fc89a8f476ab53b006a7a056385f19f95dfc9
+DIST thunderbird-137.0.1-tr.xpi 489630 BLAKE2B 
1246b909dfecc9c8738eb6b9b49ab489d87ac67211cb3275c9053091a8f1de9cc3014f5b0197696674acd6055b2427707ef1e25bf262437473e646a192236b75
 SHA512 
e8b2a2a0570aa5d4891381db59a08469b8cb6b75ad637e9424d5debe18dd463b48b33af7c741f64509cc9610e9e0835b321d20bcb437ac0e61a973644f732a07
+DIST thunderbird-137.0.1-uk.xpi 576371 BLAKE2B 
a3e0f8de688a4f59f874df718ee8e781429bb061f42ce3f2d63bdb09acb9a42fb2e1ef812218f850662c167814f3a9bace6613b17963ba72bc9126aafc54b746
 SHA512 
d54d3877ecad218c5090267f835b056078a3062af6e0eabf76ea0a3283d46d89fb37639f0b8b64e4cda7bae18ac3171fbacddbb6dd6c9999fd6d5d3614e61cd1
+DIST thunderbird-137.0.1-uz.xpi 355105 BLAKE2B 
a78a895c1d2e5a515ced93e1031af992e095075028fb12371ee1dc3d26e8f73a8185833875e6fbb89172a9aba2bc1e012618adcc37ca118e93a32e202345f567
 SHA512 
8fdec36f36dd607a4c7a0ef0fd0788b40b6644a8e1b1ff0403181a90ff1416ba131db1af647a1ee2385abbfa9d5fc26c37369e332e5b25bcc6669689c917f132
+DIST thunderbird-137.0.1-vi.xpi 513518 BLAKE2B 
4229e1d22e7cceae1b15174c24f84c247663a72ee5d11f19dbc2ca3f716d043a3c0025c31b16f9ba527dc4b04af6f478ad06566ae60edcbef4779154ce45e947
 SHA512 
8ace7a623a233aef952417c5c95b89b273b54e327b8ffde5878b1d32390b47d01b7b80b82ba860563cda4820008411e330959ee6c8e58c33212e1c4e2603e423
+DIST thunderbird-137.0.1-zh-CN.xpi 502842 BLAKE2B 
bbdfbebe177689a670660380aaae16337bbf03686c18f51d0294684b0f07a3d8933bf81db846e8eed0e52d684bd1efc52491606a72d3868f3e157cc2c1ef4fd8
 SHA512 
6531455a7d25c4ac4df5a5a5ee0d8ba9fc357fa73a945f71ad6c721655f793ca2c8b670d6e85abacb6a7a878d74ed6ed07bf22e95f17b1d91ec2336037814db5
+DIST thunderbird-137.0.1-zh-TW.xpi 505943 BLAKE2B 
cabba64d78a7346cbdda94ce85a75981674f9db02faa2a52e2e16ffdfa45ae38a6be015234f235974a0056860d2e6e30b5e11db4ef6fe048253ab7010db75e4e
 SHA512 
810a99588730ce5be8bfa6e45dc68287e88da64cc32f0dca9f5048a72e072d10df2842b87aafe5fa97ea4502df1fbeaa09d5207ab4c698dc5dc3e09075094f4c
+DIST thunderbird-137.0.1.source.tar.xz 711713228 BLAKE2B 
67acf3349319e78ce25c3aba79df6da68cd73a159cd7507bad40bff3e3ce2a1ce630aaf073f841cb7e6804536d5bb8a33b271633fabe5a526974e479c5fd0ce8
 SHA512 
387f04aff9380c7261c574e7ef2e4972d63ebfb2768e25aa41a5ee2f3a755780a84099532cf4c1b5635db3412ab543e9b17b0a0476ec06c547b2dc678f19795f
 DIST thunderbird-137.0.source.tar.xz 713976656 BLAKE2B 
d92df1605ee0c7381008656155156964bb1ad60b7b44a6362f5f6f2819972db9be2d27a5e039f8d60e81efffc521cff7a31d0ddf943977a061ebddbd3a2a3a29
 SHA512 
252c3adef18c14e52388b11a2646df7caa7e85d1697336ebe9aeb94ad5a37f8dc48d1e61066e94fed6ddea0b27705a7a76a3215456acde5066191db72323ab88

diff --git a/mail-client/thunderbird/thunderbird-137.0.1.ebuild 
b/mail-client/thunderbird/thunderbird-137.0.1.ebuild
new file mode 100644
index 000000000000..4b115b4f9fce
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-137.0.1.ebuild
@@ -0,0 +1,1157 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-137-patches-01.tar.xz"
+FIREFOX_LOONG_PATCHSET="firefox-137-loong-patches-01.tar.xz"
+
+LLVM_COMPAT=( 19 )
+
+PYTHON_COMPAT=( python3_{10..13} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+RUST_MIN_VER="1.82.0"
+RUST_NEEDS_LLVM=1
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+# Thunderbird will have separate release and esr channels, matching Firefox's 
rapid and esr.
+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 eapi9-ver flag-o-matic gnome2-utils 
linux-info llvm-r1 \
+       multiprocessing optfeature pax-utils python-any-r1 rust toolchain-funcs 
virtualx xdg
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/";
+
+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[@]}
+       loong? (
+               
https://dev.gentoo.org/~xen0n/distfiles/www-client/${MOZ_PN}/${FIREFOX_LOONG_PATCHSET}
+       )"
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+if [[ -n ${MOZ_ESR} ]] ; then
+       SLOT="0/esr"
+else
+       SLOT="0/stable"
+fi
+
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~x86"
+
+IUSE="+clang debug eme-free hardened hwaccel jack libproxy pgo pulseaudio 
sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent 
+system-libvpx"
+IUSE+=" system-png +system-webp wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )"
+
+TB_ONLY_DEPEND="selinux? ( sec-policy/selinux-thunderbird )
+       !system-librnp? ( dev-libs/jsoncpp )
+       system-librnp? ( >=dev-util/librnp-0.17.1 )"
+BDEPEND="${PYTHON_DEPS}
+       $(llvm_gen_dep '
+               llvm-core/clang:${LLVM_SLOT}
+               llvm-core/llvm:${LLVM_SLOT}
+               clang? (
+                       llvm-core/lld:${LLVM_SLOT}
+                       pgo? ( 
llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
+               )
+       ')
+       app-alternatives/awk
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.26.0
+       net-libs/nodejs
+       virtual/pkgconfig
+       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
+               )
+               !X? (
+                       || (
+                               gui-wm/tinywl
+                               <gui-libs/wlroots-0.17.3[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.109
+       >=dev-libs/nspr-4.35
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/freetype
+       media-libs/mesa
+       media-video/ffmpeg
+       sys-apps/dbus
+       sys-libs/zlib
+       virtual/freedesktop-icon-theme
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf:2
+       x11-libs/pango
+       x11-libs/pixman
+       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-76.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.45:0=[apng] )
+       system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+       wayland? (
+               >=media-libs/libepoxy-1.5.10-r1
+               x11-libs/gtk+:3[wayland]
+       )
+       wifi? (
+               kernel_linux? (
+                       || (
+                               net-misc/networkmanager
+                               net-misc/connman[networkmanager]
+                       )
+               )
+       )
+       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/libXrandr
+               x11-libs/libxcb:=
+       )"
+RDEPEND="${COMMON_DEPEND}
+       jack? ( virtual/jack )"
+DEPEND="${COMMON_DEPEND}
+       X? (
+               x11-base/xorg-proto
+               x11-libs/libICE
+               x11-libs/libSM
+       )"
+
+llvm_check_deps() {
+       if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then
+               einfo "llvm-core/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 "llvm-core/lld:${LLVM_SLOT}" ; then
+                       einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot 
use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               fi
+       fi
+
+       if use pgo ; then
+               if ! has_version -b 
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+                       einfo 
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2
+                       einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               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}"
+}
+
+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'
+
+       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
+               # Ensure we have enough disk space to compile
+               if use pgo || use debug ; then
+                       CHECKREQS_DISK_BUILD="14300M"
+               elif tc-is-lto ; then
+                       CHECKREQS_DISK_BUILD="10600M"
+               else
+                       CHECKREQS_DISK_BUILD="7400M"
+               fi
+
+               check-reqs_pkg_pretend
+       fi
+}
+
+pkg_setup() {
+
+       # Get LTO from environment; export after this phase for use in 
src_configure (etc)
+       use_lto=no
+
+       if [[ ${MERGE_TYPE} != binary ]] ; then
+
+               if tc-is-lto; then
+                       use_lto=yes
+                       # LTO is handled via configure
+                       filter-lto
+               fi
+
+               if use pgo ; then
+                       if ! has userpriv ${FEATURES} ; then
+                               eerror "Building ${PN} with USE=pgo and 
FEATURES=-userpriv is not supported!"
+                       fi
+               fi
+
+               if [[ ${use_lto} = yes ]] ; then
+                       # -Werror=lto-type-mismatch -Werror=odr are going to 
fail with GCC,
+                       # bmo#1516758, bgo#942288
+                       filter-flags -Werror=lto-type-mismatch -Werror=odr
+               fi
+
+               if use pgo || use debug ; then
+                       CHECKREQS_DISK_BUILD="14300M"
+               elif [[ ${use_lto} == "yes" ]] ; then
+                       CHECKREQS_DISK_BUILD="10600M"
+               else
+                       CHECKREQS_DISK_BUILD="7400M"
+               fi
+
+               check-reqs_pkg_setup
+               llvm-r1_pkg_setup
+               rust_pkg_setup
+               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
+
+                       # Clear tons of conditions, since PGO is 
hardware-dependant.
+                       addpredict /dev
+               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
+
+       export use_lto
+}
+
+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} == "yes" ]]; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+       fi
+
+       # Workaround for bgo#915651 on musl
+       if use elibc_glibc ; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+       fi
+
+       eapply "${WORKDIR}/firefox-patches"
+       use loong && eapply "${WORKDIR}/firefox-loong-patches"
+
+       # Allow user to apply any additional patches without modifing ebuild
+       eapply_user
+
+       # Make cargo respect MAKEOPTS
+       export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+       # Workaround for bgo#915651
+       if ! use elibc_glibc ; then
+               if use amd64 ; then
+                       export RUST_TARGET="x86_64-unknown-linux-musl"
+               elif use x86 ; then
+                       export RUST_TARGET="i686-unknown-linux-musl"
+               elif use arm64 ; then
+                       export RUST_TARGET="aarch64-unknown-linux-musl"
+               elif use loong; then
+                       # Only the LP64D ABI of LoongArch64 is actively 
supported among
+                       # the wider Linux ecosystem, so the assumption is safe.
+                       export RUST_TARGET="loongarch64-unknown-linux-musl"
+               elif use ppc64 ; then
+                       export RUST_TARGET="powerpc64le-unknown-linux-musl"
+               elif use riscv ; then
+                       # We can pretty safely rule out any 32-bit riscvs, but 
64-bit riscvs also have tons of
+                       # different ABIs available. 
riscv64gc-unknown-linux-musl seems to be the best working
+                       # guess right now though.
+                       elog "riscv detected, forcing a riscv64 target for now."
+                       export RUST_TARGET="riscv64gc-unknown-linux-musl"
+               else
+                       die "Unknown musl chost, please post a new bug with 
your rustc -vV along with emerge --info"
+               fi
+       fi
+
+       # Make LTO respect MAKEOPTS
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/build/moz.configure/lto-pgo.configure || die "Failed 
sedding multiprocessing.cpu_count"
+
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/third_party/chromium/build/toolchain/get_cpu_count.py || 
die "Failed sedding multiprocessing.cpu_count"
+
+       sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+               "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed 
sedding multiprocessing.cpu_count"
+
+       # 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
+
+       # Clear checksums from cargo crates we've manually patched.
+       # moz_clear_vendor_checksums xyz
+
+       # 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"
+
+       # Configuration tests expect llvm-readelf output, bug 913130
+       READELF="llvm-readelf"
+
+       tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF 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-disk-remnant-avoidance \
+               --disable-geckodriver \
+               --disable-install-strip \
+               --disable-legacy-profile-creation \
+               --disable-parental-controls \
+               --disable-strip \
+               --disable-tests \
+               --disable-updater \
+               --disable-valgrind \
+               --disable-wmf \
+               --enable-dbus \
+               --enable-js-shell \
+               --enable-negotiateauth \
+               --enable-new-pass-manager \
+               --enable-official-branding \
+               --enable-release \
+               --enable-thunderbird-rust \
+               --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-ffi \
+               --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 '' --enable-update-channel=${update_channel}
+
+       # Whitelist to allow unkeyworded arches to build with 
"--disable-rust-simd" by default.
+       if use amd64 || use arm64 || use loong ; 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 loong || use ppc64 || use riscv; then
+               mozconfig_add_options_ac '' --disable-sandbox
+       else
+               mozconfig_add_options_ac '' --enable-sandbox
+       fi
+
+       # riscv-related options, bgo#947337, bgo#947338
+       if use riscv ; then
+               mozconfig_add_options_ac 'Disable JIT for RISC-V 64' 
--disable-jit
+               mozconfig_add_options_ac 'Disable webrtc for RISC-V' 
--disable-webrtc
+       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
+       use system-av1 && append-ldflags "-laom"
+       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 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"
+
+               # Increase the FORTIFY_SOURCE value, #910071.
+               sed -i -e '/-D_FORTIFY_SOURCE=/s:2:3:' 
"${S}"/build/moz.configure/toolchain.configure || die
+       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-x11-only
+       fi
+
+       if [[ ${use_lto} == "yes" ]] ; then
+               if use clang ; then
+                       # Upstream only supports lld or mold when using clang.
+                       if tc-ld-is-mold ; then
+                               # mold expects the -flto line from *FLAGS 
configuration, bgo#923119
+                               append-ldflags "-flto=thin"
+                               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
+
+       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
+
+       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
+
+       mozconfig_use_enable debug
+       if use debug ; then
+               mozconfig_add_options_ac '+debug' --disable-optimize
+               mozconfig_add_options_ac '+debug' --enable-jemalloc
+               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*'
+
+       # elf-hack
+       # Filter "-z,pack-relative-relocs" and let the build system handle it 
instead.
+       if use amd64 || use x86 ; then
+               filter-flags "-z,pack-relative-relocs"
+
+               if tc-ld-is-mold ; then
+                       # relr-elf-hack is currently broken with mold, 
bgo#916259
+                       mozconfig_add_options_ac 'disable elf-hack with mold 
linker' --disable-elf-hack
+               else
+                       mozconfig_add_options_ac 'relr elf-hack' 
--enable-elf-hack=relr
+               fi
+       elif use loong || use ppc64 || use riscv ; then
+               # '--disable-elf-hack' is not recognized on loong/ppc64/riscv,
+               # see bgo #917049, #930046
+               :;
+       else
+               mozconfig_add_options_ac 'disable elf-hack on non-supported 
arches' --disable-elf-hack
+       fi
+
+       if ! use elibc_glibc; then
+               mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+       fi
+
+       # System-av1 fix
+       use system-av1 && append-ldflags "-Wl,--undefined-version"
+
+       # 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
+
+       export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+
+       # 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_lto} == "yes" ]] && tc-ld-is-mold ; 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 llvm-core/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-r1.js gentoo-prefs.js
+
+       local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+       # 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
+
+       # 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 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 exec_command="${PN}"
+       local icon="${PN}"
+       local use_wayland="false"
+
+       if [[ -n ${MOZ_ESR} ]] ; then
+               local desktop_filename="${PN}-esr.desktop"
+       else
+               local desktop_filename="${PN}.desktop"
+       fi
+
+       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:@DEFAULT_WAYLAND@:${use_wayland}:" \
+               "${ED}/usr/bin/${PN}" || die
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       if ver_replacing -lt 136.0 ; then
+               elog "In this version of Thunderbird, upstream introduced an 
in-app notification"
+               elog "system. Setting pref 'mail.inappnotifications.enabled' to 
false and nullifying"
+               elog "'mail.inappnotifications.url' may help you avoid these 
messages, if you don't"
+               elog "wish to receive them."
+       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
+}

Reply via email to