commit:     be6d0720db17762769a6b99da463d3bbe5d4a3e1
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 20 09:00:17 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Mar 20 09:00:43 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be6d0720

mail-client/thunderbird: add 115.9.0

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

 mail-client/thunderbird/Manifest                   |   65 +
 mail-client/thunderbird/thunderbird-115.9.0.ebuild | 1353 ++++++++++++++++++++
 2 files changed, 1418 insertions(+)

diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index e6cb5487c986..8da4725e51f0 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -64,3 +64,68 @@ DIST thunderbird-115.8.1-vi.xpi 764703 BLAKE2B 
ff6df6c8dbc01553d20e81dcf8a11569e
 DIST thunderbird-115.8.1-zh-CN.xpi 761850 BLAKE2B 
2358dd820ff4818a71530fa54bc70696437c671882014d425915291ec028968de9842a180190887f6ad7eeea79f7afde0c33b1d339add55e818ea1b0cf0b0fae
 SHA512 
d1bf4e8212ed5b70559554d0286d62dbf625fcd21b840f73c27bf5ea86f66bf94cd50b822517bdde9eb30a4aaac7657d9c61bece935fcbe84c1feee8e007321b
 DIST thunderbird-115.8.1-zh-TW.xpi 766759 BLAKE2B 
fa4e3deed43b9c0a032151c4830a21e152b671b57c366b1c9fb348af7fa25decfec5ff53ec1d0233b7975058f84044bd462e6b5e02024681b187eb879033e2b8
 SHA512 
aa1b6aedcdede4ce8cced59f583a0327c96f7e92428412d0c40d2f8d50d843b435fe950775951c8b7109cbb39bf64c17e63b0935b0fac1f6e20380ac3b034596
 DIST thunderbird-115.8.1.source.tar.xz 541062996 BLAKE2B 
eb3bcadc1e35079ebc58c952c3534907d85073ee452fac4fa34c975081c1428e9a91b46ef61d1bd2cdcc776c257cc1f7b132149d6f6f9e207329721519fb9909
 SHA512 
4d28f865f482a0d4c91f26ef26709a00f78955699b4ca191f960bcdb8d2c0c95c2a8e8782129d5660e192c605cba021fac553b13868861086a608f0c50aa5da7
+DIST thunderbird-115.9.0-af.xpi 549702 BLAKE2B 
9f94dd3e4989589cc205508d370c256c3c75c2071e0a701271afad6a93cc582785f209b41bb4dea11bfdb2ee390952b55e2b0e2d2262cf60ebe04e3b827ddb2d
 SHA512 
39342e9dcd988abc03600bc6a52d9e5d42f7007069b48eb901fa1e12c124374cdc18535d8e6f8b0a74a6729dbc56497a73f923f8f188da6df51206ab6b9f4783
+DIST thunderbird-115.9.0-ar.xpi 666362 BLAKE2B 
0874f7eb9f313b5b0ff3f002efec12a39186f5d6d6d5fe98835f5c9c149f97efc82c4d51d3f59c96855e81d625a90f2616e3a88757ffd3b2342dfc6e5670aea1
 SHA512 
09d52a96edf92084029c60fc134b6b6240cfc8e7bc962b05fe8c8d55e3fb67ede84c6151b67704b3c95504e2bb9b0326a4b77e356977f68f02acfc5b6d7a8f38
+DIST thunderbird-115.9.0-ast.xpi 568310 BLAKE2B 
662ce2e70c1ca0eb444d9fd4849b5052e8aff603beb5949ecff6a22f6051f9451e52cf7e494286cc247763f631605ddb577a879715b4687caa7e408f4227a240
 SHA512 
acf20bad025d74d158e0a0b4fa16a6afacea89401a4a7ddcbc09247a275d85d6628955c7fc3b5f14e11f5f2f878901c706b0f0143e33d88bbcfef3953370c0a3
+DIST thunderbird-115.9.0-be.xpi 717163 BLAKE2B 
5c7d35d6606300fb9088289df0f0e21ff99b2341564b2ed77523385ce65f97023fa799490d0b18823ed24028efc63f32ec566f3eda8aaa5981d69192081f3f98
 SHA512 
a9925e2e47c488b578d9f871b6174a43ff463b3f485dad9a7efced335d805a83d91cff679ea1bb9565bac193b824c24e488a66e4a146f539896afac64d3ec00a
+DIST thunderbird-115.9.0-bg.xpi 778863 BLAKE2B 
bdd4fef2f064c5eb49e2add0a1f6cadb3aca14f0eb200522cd9f1d9db90b4c5b8c748b1bd941023b7f08a16ece61c440ca57efdf1ee563cbe05d479af5785e83
 SHA512 
3c667a0fd9a192c80478c848b9825aa7fe700350d020ad47193b2175da1f75bae184b31fab87a1df2566d3e188baa4262241a43104f7bfd5ff66832e1988228c
+DIST thunderbird-115.9.0-br.xpi 642272 BLAKE2B 
5e7106846cfb395ad1186d49036d7517461b1043e9910e77a962e4ed4cc3f9990badb46dd35ec6424cf0a3e08f2aea03b3fa47e984ca0081c61ecbcf215363a7
 SHA512 
16295a98c0f87e53e900988e2e8e7adc8d8f7916d5dd38e323aacd759089316857d54913cdb00b197f15ff13f923fbafdf0ede9ca4c2420509abd8fd3cf6af6d
+DIST thunderbird-115.9.0-ca.xpi 685488 BLAKE2B 
3fdee255177fac7f33ef3f2bfe625e50e89f69442ce7910780f30f8f378cac2c52313713c07956aa14c7061717312c43a24c7d4afc846502bbdc88b9b8cbd303
 SHA512 
8b77b51fc6ca52c9344d0477e0017ee8e341bd658b0001a72ec0cccf55f2d78c6a70c4448049a2e0b5e4e7e526f705ddbcf1fc11921c383f52d2d060e66ee203
+DIST thunderbird-115.9.0-cak.xpi 667767 BLAKE2B 
06ee5d0fad0cc917b87042f3705f5f094b12fd8e85254bf98c506431b166ecd4d6f7a3289380b8a222efeb366cc316bae07647003bcfa690b2e7a5cf345d006b
 SHA512 
5b79d7b5fe03ac41c0088b44e10aa40b0b73c96e86cb01a14439b54d5a09b679df4c7bc5fa26538504704df1ea722c93ca249bd8536529c2d2134a4ebb515637
+DIST thunderbird-115.9.0-cs.xpi 759532 BLAKE2B 
df4bdcc283fbcef3b5a8053ac4caeec67e915fcaf00325a3c37b700c61a91887f95285dd305881711b2db63f59a6cc72654bdf90fa5d09373c7812a37fefe0a2
 SHA512 
d62ff0650435d5f5f71d958ddb73f113e567420e41b979b97e089cfa4baaa4b5f3bd5cf38f64f2185e3d66f83a6f905d6cb2ce56411d0e320cc79c21d6a69104
+DIST thunderbird-115.9.0-cy.xpi 725347 BLAKE2B 
4b56f9d464634f9595611f9278016b60b068624e40dd558635dd3ddf19d5a2e9217c4e7af099df5f2b0ceabe381e362336f32c455911275c7d68495d066af047
 SHA512 
050c5adaab15c38559e626a698d8109a6b4d36e25c9ee7637971d79211fc2583bfde725cc186b0568bbccab5dceb3d91336d9d4e178250139e21e86b2c8a57e9
+DIST thunderbird-115.9.0-da.xpi 710493 BLAKE2B 
f1210820236a7dc11cf2f5361676e5f9193d40abccc652bcef5deafb0061b058d879e46b5a9143c1ed6916c6b1c6fab2d0b9f5ab9cee358bf53aa29cb9b03052
 SHA512 
36ec39712a9ed9cca4d6e66245edc7da7d6ca0cf752d322da1a2d56e2f420a2bc405c12adfa2f0fce8e37cb2db3298d95d1b7e9bacc893722517af09797b826a
+DIST thunderbird-115.9.0-de.xpi 741445 BLAKE2B 
b6f9e344b7813d7677e29a8ef5f5d151e13d5a7ff4db8f29d7837303fea84e4ce56acb05298af11be953467a5a487d8feeebac6afde7d914ee62630b748a4d49
 SHA512 
36dd31e1c81b6a8c1bead95f89696d9d5385b0e8a8e7c15d9c6ba00116422435cb9841b09e1a6d0d5143b35dc66df2fbcc993cde68970abeb4fa702df49255a7
+DIST thunderbird-115.9.0-dsb.xpi 759678 BLAKE2B 
eb61beacd457a16a75feb7d1b55377461c14a858f0dedb3c51c616cebd722dacc1cf28082db3f1972b90639066daea3d0ba4c7653d32d2a52bfbe33a57c3b549
 SHA512 
32c921bd3515cb39c05d32bc5c74b13adde30a2b755d1e08322ce93455882794e248fa2e318fa8fddb5eb8155863e98df98e4eb0782319b9d99aa19de9335212
+DIST thunderbird-115.9.0-el.xpi 862802 BLAKE2B 
b3c5cf59c4b88cae4f87161678288da055107b53cc4823f61e08559e76710b6b70872713bd934a0b367726822dceb0bf8b09f332586981a0fae069cef553d1c3
 SHA512 
a3332226d5a1c6448877b5fce7c381e9b40151ac68d449719e52850e0e0793e91cb8847ff7740e860a50abf2694de1f2b14d7d66391402c034043bd8b7c8aa6c
+DIST thunderbird-115.9.0-en-CA.xpi 671008 BLAKE2B 
b7dbc18a8e5a041733e422952f32bb5926d18f649b22fbfb639f5e34044822fa52407da0b15759380e69a55edd9bce9a472708e921773357c9d7847eddf3a954
 SHA512 
2eb2352468da0a61c0db91896697f221227e66050a45090c451f93aea2b6154f2d20ea46ef50455d3824c7b5da493b2e8d5983b377b9f6de1bd1a01d0d10a50d
+DIST thunderbird-115.9.0-en-GB.xpi 681891 BLAKE2B 
22d7e90df398c5c77deeb0d8e464f4cbe0588202b89117b14140c5bc9a7d34cc8a1fbf8dd1e6356cc918cc672445a21762ae08002c5238233b395286ac408e26
 SHA512 
fe0536a3fff8dba411ea6b0718f973a9951db5ce9b36b13c440ae7322b5c78a3b6ec7fcda1b28103a9e3046a693db8639c331c15204cd2a9b7298ba9ed803996
+DIST thunderbird-115.9.0-es-AR.xpi 735670 BLAKE2B 
806b029b7a466bb31ac146efb37a071709b04890588289659763c19c8d9ec81c499409ee9bc846c98889ba579e920bad64e9d243567db7759855ee131a4bda5d
 SHA512 
f90d38e1a8e2f1a1e5e823c019bbe5626299a748044645daec997623ea8e57ce4b7fe759b88819708ce31822c498cf6c913295acd6b9b75c1e895e754f0c8a34
+DIST thunderbird-115.9.0-es-ES.xpi 697504 BLAKE2B 
6d8cc0e853c3a24e4e4510c66fa2592c289b544e5c425cfac3d88351826d50097a176e4ab7d824d1557c12321c9b1ef215dd72c09caa03e0a45ea5e98acbc217
 SHA512 
e9394dfebc48b68da332cc085b23ffafbf006d0fb642f5174ab07efd305f6bbdca942bb8fc52b21ab40c24322c8f36772740ac507ed8a005076b622e1d5bb2f6
+DIST thunderbird-115.9.0-es-MX.xpi 719671 BLAKE2B 
ea8791a7ac6cb6e19c161f1517a517d9669cddda579fc2df95c381d64370f166186adb701b3e904b10d56a8c297de890df6902b45e39ca177e910500713ce783
 SHA512 
ad9b305b27e1cc115422c0ada0cc89d8b92f36e3d161678198a5e11e07382e593d9502cf555a069844494c56d307a0b15f2857ef3395af251932c18cfc0e6b4f
+DIST thunderbird-115.9.0-et.xpi 679913 BLAKE2B 
d40fa6055dab1828dccda2a8379553e4d6b37c3b2a4f57274786238e9805e4094295aea5e91d2fd04cd007259929d022e31bd944acafbb77041997f53f288227
 SHA512 
40d9ffa06a6d233aa02523918c3c771f60ac2f0b3d6bcc07f62fcd3fa345f29697765b2dd3d82037545d59c44be9ad0bb48bcd7272f488a4bec3ec38ca88ba45
+DIST thunderbird-115.9.0-eu.xpi 708425 BLAKE2B 
c2576cc125842cfa25d42ab99d73e3672386815320d1777bbc007b5e8e6f23254609846d7804610cc5fee653566de6f6e79c69a7a9cc47714a0d3e51acb0d456
 SHA512 
3fc6b3c30eabf81f78550567163c8a63075c8584ae8292dfa7b1cf6028545ed340d09105f5a3d95057d3821feace71d0c9177b559e333f41ac31336f5583c4e0
+DIST thunderbird-115.9.0-fi.xpi 713342 BLAKE2B 
4ffdf52452e2913e01d20faa3c37027379a5ac5112a59bb8ecd9b5fdb939dac21f9548688829a4e382b96357056c3c20fd4f01400438ac579295978a8d707e1f
 SHA512 
2005a61b24edef1335bdbf819e99585da1292ad201300340ef57ab988750effe3795b3312c5c211e36f15793378dd578186ccd47f7614fd51250d1336e39b514
+DIST thunderbird-115.9.0-fr.xpi 746568 BLAKE2B 
db09e78f9cdbec2315fd063688e7c570318f376d17658894974eed9188591b25c8a7be339111b50a16ab6c54cdb6573640c1e38e01e9d48807e1d061bf45a469
 SHA512 
3e005cf0d4890d3a9a6918eb23ccb6e59d1777465e36130df8bf0b8e8beb164fb28b8f3c574a743b1501e6a4a626992787e7d1da0b1145c4a5719a3ba9a5e53d
+DIST thunderbird-115.9.0-fy-NL.xpi 729276 BLAKE2B 
1c52069cafaf43388ca4171f43d4fc648f789c8d0317a231216b92eb4a4225a377e8bd29b35f75ecf36c1358a4ac2340919f3fcbe15d8cdf383996f855bc1b2c
 SHA512 
25641b6b830bb278a7fb30b211e50f2af952a58f2ea29e1ae0cf6b15671afb80af17dddf0d35eb1217e00050e12dcedb2dd033f9cd53554db0d66161a0ae6c7c
+DIST thunderbird-115.9.0-ga-IE.xpi 609797 BLAKE2B 
0db87d448a65653dcc6d98a9e99ddfaf51ae533e00be57011848c05adb7011b24a4fa2165bd3e9ce7b6d202dffcb5ba7dd78530c4e4326af8c5580940573a696
 SHA512 
3238b906e6105ee6d924c3a158cc79f3a2d32f167afe89c0e15dfde39bdadb8e682311c029985e104b1b7e1edab277eec0e05f9a4a25dbe6046d14819c68db61
+DIST thunderbird-115.9.0-gd.xpi 712352 BLAKE2B 
2c0d977172f6792eb8776559d841bbd6f3d0038b44eed90fb77586ec9b49ab7d71fcdcd04ed069ab622f29ffd9d2d2c4d1e31a5704a9f6319f556d2bf0bebf20
 SHA512 
c40da13a40c91357d11c00b19549045ed7124e84bafc0284eddacb3cd997f331dc15c04ab46128a3ea293c0d821685005ee0c789f44a9fca82b8bc3607a887c3
+DIST thunderbird-115.9.0-gl.xpi 719543 BLAKE2B 
a69f53b10e91a0741d873984e834265907c6f35705cd770c107b44f434b6482b57a08c824e3c64c6c4bbbc8be872390ae86b11bfdcb0ffc38d9f0dd421ea8a29
 SHA512 
e3c3aecbe6060fc6d280b420f69612cc5019e484a486f4c74b7f8791c6f379f1ad9a7dee5fa6deded0a62b5847395ef90dd3df0acf84dbccd77a95eebb42a5b7
+DIST thunderbird-115.9.0-he.xpi 686341 BLAKE2B 
b6f2fac826516278969d0f29bc9323766d4267f7dc3e1ad11c93412f82bb15d48bd23762bbf22c4f42120aac773aba80c0a81a800de3c52fd72444fb5edf86f6
 SHA512 
e051af792b421a75102a2a3287ee553cefe8b8754472135f542060887d9a9db2b62bce4cf722f832ecbe7b1161a14830d37e00dc05e17bec218a7415be23abd3
+DIST thunderbird-115.9.0-hr.xpi 687075 BLAKE2B 
b271196b8b5939c0fb1c7ae3f64f894e6bd8fc799a4acc79582da8ecc2c496ff64c127186688cbe8c6477ef5e18fd99675ceb4d4f4619570d575898287f2bef7
 SHA512 
14d2e05da32d8a2237740c5bbfe5215726c45057f0a96f26cb0e72f1cb47961a5e0d8a202f74b55be98738cdc2a71f2c03f3f525f4da6499dff489c3c7a209de
+DIST thunderbird-115.9.0-hsb.xpi 756720 BLAKE2B 
4e08fb7f87c28657d81ae242e24ab27275c059e92c2fea55426be99cc7482204856cd019fe29c87f6dac0fa3e5401bc300c969574bf127f290f2fe19f65fd904
 SHA512 
8330cc6e5a42c7ebaf647b59e4ab1198c889ac5ef2b6281963c3937da34e5b15c74f82785436eb6384eed7dae94858b07e0961c4fc5ea332c8270f1964f4395d
+DIST thunderbird-115.9.0-hu.xpi 758282 BLAKE2B 
b34667c9858a42e8c4c9ef7496e49081775fbc2bc489ef5a088453f55b9a5e96c73d190a8a9087e8961a55f8660f10f69067b52f3b62d43d310103e8bab66e2d
 SHA512 
79ac1e3d99f98c7c983a4ff101bfe6001295cff190b43c68c9e94fb3e9d22437cfe4b56e9a288d50ef7b935b4757c72f2951a97efd1f24de59ab401c07706db9
+DIST thunderbird-115.9.0-id.xpi 651340 BLAKE2B 
c176933b1dd00339d471eec595da1fd7bb43b7147af9fdce6024ee6d94e858e3c6652dec4ceb79a496574ba36607c511731e61cc9a2c0103825430af03aec805
 SHA512 
ca3f6fe1d2ef8ef56dbe239599572d46235edc3b5fcbc1221499724a010bde549572d35f7bb98279830ee0ea98e19af7e3b522415e60f38444a758b5f43788c3
+DIST thunderbird-115.9.0-is.xpi 719338 BLAKE2B 
c8270a503bd48d7135ad470a6a7d8d4162bbb3f5f1dc0d7506a467b2d7d4e2fee848ca7f42ca07a92df03a232464f9d27eca65ace4de758cbc0fbffd954dd652
 SHA512 
305638c04c89db461d2bac150a180e0f7ba80e47560c3322dd2296a071793001574108340d628b7fbd633a7366383243af4c6504a75819111f2b9665614b51a8
+DIST thunderbird-115.9.0-it.xpi 668017 BLAKE2B 
fbad719a53798ca48b91bc31f0f6d0c0db42552850fa566564cc4c06222088e5cbc9f47bf3f024eab3b437f265f0e235a3c46ca797934a40d0af59fdffe4097c
 SHA512 
b6bd93c2711137668bc4046ed94dcc120a2564a390381cb98fb2a62aa4a8ec30b320e0d617c5e291c7f66324380201174d369a39d9689d84d191aa03d306f4cf
+DIST thunderbird-115.9.0-ja.xpi 795399 BLAKE2B 
b226a37bb2bdb998e1cd9545850277f89138603563f4335bc6fee873df0e5a5a11cf7eb291ac3253afe2877c0571f8144b139f8b4e8b89319dea3a405af42580
 SHA512 
845ae73f5c204a872150376e80b25c50c7b5bfbde1bb91c0b2ea13f3bf9fe1785582a1588fb3c8cd8086a35ae38e31bb73abe3342655c07b0f20a654bbfdd4ff
+DIST thunderbird-115.9.0-ka.xpi 783166 BLAKE2B 
a2312340605a1c5f494e797a9d402639d9627839624e46271176df904c1c935fb42d3f055d26c31d14e0ce59ec7086e4005a75b31b892052df7ef4fa11154454
 SHA512 
4c210f96522fb6cc9cb68de46f40eeda5584c35d5103706da805980303561cc09000e08d0b71c990902d27d247d9a5f7ab75c1391113906ff196637278d96e3f
+DIST thunderbird-115.9.0-kab.xpi 711123 BLAKE2B 
eaca301e27dc264d93dd56e34e1ff729188cc123c1f443b531a3aec1ea957a58d855f9da2e9968a478f7ad3d550e3f709902a886bca0d7cf9b50ed02de7c30f5
 SHA512 
46245284f05d2bcaeb12a1695272d2d93212393e791a72874b0e712970dd9dfbeb5c88dbd63a05296eefc402ddf85e97a5a61121b0d676030948d30ef23cfa35
+DIST thunderbird-115.9.0-kk.xpi 832551 BLAKE2B 
df57e93926ac432ad38b824a8c27f8e2c8bfed120446bc64df58f579c36597656c48c5ddee123a5bec71bb95705b375ae0ccd5bfbdfcf09eb444598f6fd4fd1d
 SHA512 
00bf226ea9bcb07321cd5e813e7652cdd8dd34021a19592b9bdbf8ed4432142549159d5a747815966bcefac98efcb9e68dd860c3a7971c84ce051abacb8942ce
+DIST thunderbird-115.9.0-ko.xpi 737245 BLAKE2B 
2ba8801e9e241e44becd8f5d1d4f67ff347170dc87c19f1e720e73435e4b6d93454e46ac5eeeb56760568088df5fa72517f3949c2e69f07a4ecc6e6a22a8e011
 SHA512 
bd5e486711ffa16fd6c1f30baf00ad37a7aa083817fa98625637169b15e1ec9607f00199b96ad715c7fddf761a5bec596efe526884fe7c6e127faad3f9a347ee
+DIST thunderbird-115.9.0-lt.xpi 688629 BLAKE2B 
9beac9923c386123e02138acdef3092d52567489af0b47e99481b7c75015e5926300e6e87440f83abfd8634383eee5121debbe356605b5e95eb6f8a3490e5993
 SHA512 
fc42899383233bb6e5fd67812eeb27355e8bf9c92c6fe188ee4a82ff5dd9a3cf11f1b30dfaf672e8cac302655159eaa2854a0498102f67039c783d989b6fc25c
+DIST thunderbird-115.9.0-lv.xpi 613041 BLAKE2B 
cc26f00d288351e151284a99f8003a507b8f0354386cfee1567affee96fc663db784b07d251b5a77e456721cc76c1c008bb1f3eef1eafce98319183a832b25ca
 SHA512 
10636b59df6fb0084cd3bdc4e16fa8be09ed3e0177b6aeebfa8711252c5cba695fafd1f94615d5922aaec6cc3e42455f1c0fb5e2b9385b56f1c13dfb2d9b7df3
+DIST thunderbird-115.9.0-ms.xpi 573629 BLAKE2B 
c6fcf1b4583ecda7b2e297eab35071f1c145737a7abdab823de1348d7f928ac0cec0638eb335221033b573b199cb26c0fe142aa563525e80ba58e4e8d4d3be8a
 SHA512 
b4adcab74b80d66e651c850425976aab8a1a57d2eea7d566399ce17c8e5d7e3623320b42f78057d6b776edf953f6775cdc5f1d2b459e79d7d1b64adc98d21d8c
+DIST thunderbird-115.9.0-nb-NO.xpi 674707 BLAKE2B 
a31128d31c5a164831854046dcd44f8d58c5c2a6da0dce9cd8fd2300071b89795ab3061cab29fd46cecd014a96518d3ad74d3a9baf8497e7733cc6ab261e27cf
 SHA512 
005d3d886d4d0cb27cea0289209b4a377428b81ffd6c1cb6a0c52d4e24e4734dde75ab7f7da1f2e3433dded7513597d25d8b5a040ffa84849119719380a494fd
+DIST thunderbird-115.9.0-nl.xpi 720588 BLAKE2B 
92595ab5b24ca90696d1969cb03e975800e528b19ad33cef779a395cf3f10975ccf07e5cce9def6b3f718666cdebca74a2a005b88993ae4b235d1066ed2ccec8
 SHA512 
7a422cff33be79acd76219bfa7e5d66043e5970f4a75608c04b9ede4099450520398a78c21ce76eeb84f438ef1469f470732adc0e3177fe22cd4a9e5a16321fe
+DIST thunderbird-115.9.0-nn-NO.xpi 690679 BLAKE2B 
50ffd90c24716d5eebb8d4d884c31d6b9e147fdb5271a6a71e17d5eee9662657f71cce746b95fa026183bbb2f13d5296867e4e34f4d629d7fe6f85b1bc6f4522
 SHA512 
b482f0428d827eb97b72641059de7fcf04fe390cb176523a721bc95116a694db9e0efad3a4d4a651627b88d7e20114e471adf211404ee0ad53d921f5ba67c4bd
+DIST thunderbird-115.9.0-pa-IN.xpi 678306 BLAKE2B 
d57052e455ae02ea63e4aa8dfff807ff300bf2fa15a317c904da9fd11e76440e20c0152120c4f58f9b3b8dc7cd4a33cf2369a29ff414724b3dcb8695e46fbe78
 SHA512 
a1bd756c02c6aeed7e8f85907fc2ddbbe719169bb6371171c204d3642bf7fc44b87a1d8ced2572f719850ef01bcf8130a40a47d5a18b3876e87989b1218e76ee
+DIST thunderbird-115.9.0-pl.xpi 739284 BLAKE2B 
e89c24022f8f1685c0721af7667d1ad446d1e62f3c416eed182f265b0e45a5c9d3d21f7b47e7c83b64ca1a61655ecc52453b175c5cfec9a91894d884da767299
 SHA512 
46186cb606e1fd2a987d07177bb52fe256ad74710d4e7284806c13bdec0b4d1531e5b1473c3ffd5de91ea2ffdc90d22fc3aacf90836a798f110e0440c71ed7e3
+DIST thunderbird-115.9.0-pt-BR.xpi 728572 BLAKE2B 
44cd5da9482e17be6827cc60421b8123e1746f64ded8986beeae44f017c81daf9cb8cfedc0f3009453b5079307e5abdaf16922838e12bb68ae9db28900ae3929
 SHA512 
0c9dc5918c60da8074d9f2c681fbb313994660b7173251901059c293414223e6fc5c8701294726c5b580fb133569b3b666d37a38ea39da9706603349c7f56e7d
+DIST thunderbird-115.9.0-pt-PT.xpi 704333 BLAKE2B 
2c2155471af3f45554e43641729454e09d9f91bf7f806c9711c1d909d2c4501d3b4dd2b169cac3bd5e64261bb5f13cb89cb472dbe1f9db0875cc7258928a238d
 SHA512 
5fcff6a7b24df59a625bd5315ff24406c8301a518b99359b04976529cb38fd8a2c96bccaff10d2faf60adf3aaaa5cfaf6637ac631f65cf03b82e44c057bc5476
+DIST thunderbird-115.9.0-rm.xpi 724358 BLAKE2B 
39685c91e8f9f94153c0cbe2ee76f3b9fb84262f257c1522fa42515a931190e30d5ad25af213e9e726716b4faf1be454903a0c54f3f20fab066892a494c84b0b
 SHA512 
2718e178be24ae6bf23a1d84ae19f2e8c92bc555cebec47a4bc0d879fa31f21ce0d71cf68b7f4dd40f01ff2fa2f87f402b7a78269653583b797a51a151987b20
+DIST thunderbird-115.9.0-ro.xpi 659828 BLAKE2B 
599ad5fe44640372d306500ac4cbdeb14e7fdd558072bc22ce62e41672ae30ed441c2c6b1ac9a79692579788a85243289b6d050bd784f8662e6615887d038458
 SHA512 
666184767135c571c6709e114e4d9d4300b2e067ca3f4b6ec83bf0e77b23815e0fe107e1fcef379911c72e2a5aba965b8f9deb11eed1c255d08d6588aa5ade8f
+DIST thunderbird-115.9.0-ru.xpi 846505 BLAKE2B 
41feeca8771c390982439a288d7a292edd0378bf5086efc525e30ec2c7c813647d84d85fa641f1aefb3238211629567fd963935087306aa596fd600285086b4a
 SHA512 
f38e5511a8d023687ffeb4dd0e99984977340e20be8feec3cea5faac18abbf990a2d4d068f99f9081279468650039f071237fd4e59de7f9dd3191f9bb5da889e
+DIST thunderbird-115.9.0-sk.xpi 758458 BLAKE2B 
e011275bd41e5e2d120b92e377883ecb2d539b6e949346836939df445c0228fc7a7aa189a6d620b58d3269128e77464254c618db51101b26c49c886e80e1e704
 SHA512 
1b827328ce77154d369cbe820e5ace0dac320ddac94240ea029ca0bdeaf79699cb4e645087e8a599e5b83b07fcef96c90f8ed7610609924b4dc225571b4e8ae9
+DIST thunderbird-115.9.0-sl.xpi 721614 BLAKE2B 
6294190f57a7ff76056cd3921a86b2e9048f3e18be86979cf7ef366a4eec6e721952cf19f284c215749ce8a92d86ceaef8a9f692740f82c3cfe0be3af07d6b06
 SHA512 
5b281cf07151f4146845410c223f9e8663d5576108537882a263efe794922f437069e0c03b6ab339e65b4a72dfe087bfd731797c7665231f7951fcc417a2da32
+DIST thunderbird-115.9.0-sq.xpi 742869 BLAKE2B 
736404339062dafaec9869983b21aeddcfb5593b10587da481b691efa1780c9134cc47cb17045bc3f62b2dd0f85e9c7c7cef5a6be08d5632be50c463395962fb
 SHA512 
656708c091a7c039b69844416a14c776f873b71910314c1956b94dc52674534d3db294ac67287a6c27e2f6b4955ca36429e201920b2c9db1ff0ed8467680d67f
+DIST thunderbird-115.9.0-sr.xpi 755182 BLAKE2B 
4e55a465e2bbcaa3bc388b576a45813a1354596c4d81bf06fb0a82cda87a5df6554f1f08a9efbf9990e481d5492f627ca6f6e906a49e30f366eef85228c772c1
 SHA512 
10964ffaa844cf76e6ce88e89de5404cf203efc3389f6137e41f0524ee54eee72947c9f96eff79c1390f887edc733954134d06f69275ded6da1f6e471be278fb
+DIST thunderbird-115.9.0-sv-SE.xpi 724749 BLAKE2B 
2cfb0e9dca38e4700d4605b87bb517f61f2da539eadf3f22cac0c6e6e35fbe0e173a4d19600e5f1f86a21b33ad0e5926607df2d2196569634d43d3c1cea9170f
 SHA512 
2009eb49fede1ee13a77e9c835ba533d392a8f91215473f2f73a3e2f39d290dc66c2b74f4a7687ad5281ec50027219acfa0665f8e26a6ebd5fc88aa43709f13f
+DIST thunderbird-115.9.0-th.xpi 788243 BLAKE2B 
5c09ee750e8908c5f669ce6ad1fc51070e38025b474e6643f90719567f8dfea875ead804cf8e35e7b0b5f02c5b5f2901c0ad910645524442dd36a712644c3b34
 SHA512 
8ae05c2d8439566dabfb6e9961a403ef27b6f29deae4a5df0db772791d8797a8fcc08f3ad8b195468da866e763c9f0acb6af4d70cf2035db5d816e0b80c4e085
+DIST thunderbird-115.9.0-tr.xpi 736596 BLAKE2B 
2bdf41a63713f0e7c285116717d1449df22e1778d05cdebf60ee13bd824f35c437bee5d630e6e447c57a31e8b5995030f70f18ff67d4ad4a0e357dbcafe296ed
 SHA512 
53ebdadffd8a01a73f5ba9723645ac0d6a6f727f1ebf91c73a94087f74d1d7cadf3444793610be9c13a0e5135d346a22ff585dee8f325844e0f2b693e9ae5f26
+DIST thunderbird-115.9.0-uk.xpi 839052 BLAKE2B 
20e958f2ead7541919d545d69495bbfac40f4e0969615c4e1f9d3198c8c91f98072e4b8ed5de026751487df6668c1ee1e8581bf249a2620ce4f6b9d81fd24e77
 SHA512 
f003fe09f6390cd1d4ef7e6dfaa1fc1f047dfc1ebd39791c4247a88cd3786710bad58458135a9e0076a4ba2b36cc6f15278489940c424e4b1d7c9c3ae0d4ece1
+DIST thunderbird-115.9.0-uz.xpi 587157 BLAKE2B 
9a42e3d67c12906a0b44ded1daa7e03da6953d6db8a5073ed6535d81524c55d8938ea8955ce7dbd64a55e083e72fd3a73ccedd39a17710789b1c91d991e972d9
 SHA512 
7f831a17b45cecf5e36b61d3e63cde8d25901c3287927ebd126c4e058576a372a3cdb574b9c334f7320308bf7b4c0c9de69a8e56e40969ba7cd71fb8c0d230fe
+DIST thunderbird-115.9.0-vi.xpi 764700 BLAKE2B 
099eb82588cfe4277e34868736008f386bb8c913a399756555fd9e0cdae61186057ec54d3505ad8e9ff33de93fcd639852b4e80ac642f5c5af4eba58c3a04a72
 SHA512 
2a54f295db3f6890976ab90e399789d8f29d6466f77e31ffb05972f20d45f2723d9b7b346734637edef097cad426bb010b40877f641c13b6b40c2b0fa21dfdf2
+DIST thunderbird-115.9.0-zh-CN.xpi 761848 BLAKE2B 
a47b71e6826a4e22076352a1dddda91b7ea1c93b910da09fbe379c60d363bf03967c041f59a257c8efd103f2f788126ecb96c965dc9b0d793b44eac89b588743
 SHA512 
9f8559e09d2fea0ee62d20cd6f0f41b31867f505d704d00395c341f3dd9cc404e9c103845e717e45fd50e1baabd0009dd37583a891edccf8129018dbe1db293e
+DIST thunderbird-115.9.0-zh-TW.xpi 766758 BLAKE2B 
c1247c43eaf286a9f4a60853d9606d611f302dad984f676cd5ec5f3ecc6f757737455253cbd217323ccc7e3c1b66c43b6a5b509e6ba4e291498b6d92ae6837a5
 SHA512 
a2bdd7260a52c1e3be0bec043d4d62ba2a2831f327c431da7121df987600348e97ab3cc239de5612cca1783b163d2973554db29d91a9352d31c53509374571de
+DIST thunderbird-115.9.0.source.tar.xz 535516012 BLAKE2B 
435d7b0236092a1a29bb490a41ccdaa97247ae96152cfab35a6ad5d8d9c15c9b816c581a487867b897d92b03f2353224f2e99bd1fa84bfd22ac28978c28a4cf7
 SHA512 
8ff0bed6e6d7f337ebae09011a10b59343ae7a8355ed1da2d72ec0d4218010adfae78e42565e5b784df26cef4702f313dc9616ac5ca5530fb772d77bdf7f2ea4

diff --git a/mail-client/thunderbird/thunderbird-115.9.0.ebuild 
b/mail-client/thunderbird/thunderbird-115.9.0.ebuild
new file mode 100644
index 000000000000..1b865bde1892
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-115.9.0.ebuild
@@ -0,0 +1,1353 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-115esr-patches-09.tar.xz"
+
+LLVM_MAX_SLOT=17
+
+PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+MOZ_ESR=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+       MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+       # Convert the ebuild version to the upstream Mozilla version
+       MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+       MOZ_PV="${MOZ_PV/_beta/b}"  # Handle beta for SRC_URI
+       MOZ_PV="${MOZ_PV%%_rc*}"    # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+       # ESR releases have slightly different version numbers
+       MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info \
+       llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs 
\
+       virtualx xdg
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}";
+
+if [[ ${PV} == *_rc* ]] ; then
+       
MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}";
+fi
+
+PATCH_URIS=(
+       https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> 
${MOZ_P_DISTFILES}.source.tar.xz
+       ${PATCH_URIS[@]}"
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/";
+
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+
+IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
+IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent 
+system-libvpx system-png system-python-libs +system-webp"
+IUSE+=" wayland wifi +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+       debug? ( !system-av1 )
+       pgo? ( lto )
+       wifi? ( dbus )"
+
+TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2
+       selinux? ( sec-policy/selinux-thunderbird )
+       !system-librnp? ( dev-libs/jsoncpp )
+       system-librnp? ( dev-util/librnp )"
+BDEPEND="${PYTHON_DEPS}
+       || (
+               (
+                       sys-devel/clang:17
+                       sys-devel/llvm:17
+                       clang? (
+                               sys-devel/lld:17
+                               virtual/rust:0/llvm-17
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-17*[profile] )
+                       )
+               )
+               (
+                       sys-devel/clang:16
+                       sys-devel/llvm:16
+                       clang? (
+                               sys-devel/lld:16
+                               virtual/rust:0/llvm-16
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-16*[profile] )
+                       )
+               )
+               (
+                       sys-devel/clang:15
+                       sys-devel/llvm:15
+                       clang? (
+                               sys-devel/lld:15
+                               virtual/rust:0/llvm-15
+                               pgo? ( 
=sys-libs/compiler-rt-sanitizers-15*[profile] )
+                       )
+               )
+       )
+       app-alternatives/awk
+       app-arch/unzip
+       app-arch/zip
+       >=dev-util/cbindgen-0.24.3
+       net-libs/nodejs
+       virtual/pkgconfig
+       !clang? ( >=virtual/rust-1.65 )
+       !elibc_glibc? (
+               || (
+                       dev-lang/rust
+                       <dev-lang/rust-bin-1.73
+               )
+       )
+       amd64? ( >=dev-lang/nasm-2.14 )
+       x86? ( >=dev-lang/nasm-2.14 )
+       pgo? (
+               X? (
+                       sys-devel/gettext
+                       x11-base/xorg-server[xvfb]
+                       x11-apps/xhost
+               )
+               wayland? (
+                       >=gui-libs/wlroots-0.15.1-r1[tinywl]
+                       x11-misc/xkeyboard-config
+               )
+       )"
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+       >=app-accessibility/at-spi2-core-2.46.0:2
+       dev-libs/expat
+       dev-libs/glib:2
+       dev-libs/libffi:=
+       >=dev-libs/nss-3.90
+       >=dev-libs/nspr-4.35
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/freetype
+       media-libs/mesa
+       media-video/ffmpeg
+       sys-libs/zlib
+       virtual/freedesktop-icon-theme
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf
+       x11-libs/pango
+       x11-libs/pixman
+       dbus? (
+               dev-libs/dbus-glib
+               sys-apps/dbus
+       )
+       jack? ( virtual/jack )
+       pulseaudio? (
+               || (
+                       media-libs/libpulse
+                       >=media-sound/apulse-0.1.12-r4[sdk]
+               )
+       )
+       libproxy? ( net-libs/libproxy )
+       selinux? ( sec-policy/selinux-mozilla )
+       sndio? ( >=media-sound/sndio-1.8.0-r1 )
+       system-av1? (
+               >=media-libs/dav1d-1.0.0:=
+               >=media-libs/libaom-1.0.0:=
+       )
+       system-harfbuzz? (
+               >=media-gfx/graphite2-1.3.13
+               >=media-libs/harfbuzz-2.8.1:0=
+       )
+       system-icu? ( >=dev-libs/icu-74.1:= )
+       system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
+       system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] )
+       system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+       system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
+       system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+       wayland? (
+               >=media-libs/libepoxy-1.5.10-r1
+               x11-libs/gtk+:3[wayland]
+               x11-libs/libxkbcommon[wayland]
+       )
+       wifi? (
+               kernel_linux? (
+                       dev-libs/dbus-glib
+                       net-misc/networkmanager
+                       sys-apps/dbus
+               )
+       )
+       X? (
+               virtual/opengl
+               x11-libs/cairo[X]
+               x11-libs/gtk+:3[X]
+               x11-libs/libX11
+               x11-libs/libXcomposite
+               x11-libs/libXdamage
+               x11-libs/libXext
+               x11-libs/libXfixes
+               x11-libs/libxkbcommon[X]
+               x11-libs/libXrandr
+               x11-libs/libXtst
+               x11-libs/libxcb:=
+       )"
+RDEPEND="${COMMON_DEPEND}
+       jack? ( virtual/jack )
+       openh264? ( media-libs/openh264:*[plugin] )"
+DEPEND="${COMMON_DEPEND}
+       X? (
+               x11-base/xorg-proto
+               x11-libs/libICE
+               x11-libs/libSM
+       )"
+
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+llvm_check_deps() {
+       if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
+               einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM 
slot ${LLVM_SLOT} ..." >&2
+               return 1
+       fi
+
+       if use clang && ! tc-ld-is-mold ; then
+               if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then
+                       einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot 
use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               fi
+
+               if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then
+                       einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! 
Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+                       return 1
+               fi
+
+               if use pgo ; then
+                       if ! has_version -b 
"=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+                               einfo 
"=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing! Cannot use 
LLVM slot ${LLVM_SLOT} ..." >&2
+                               return 1
+                       fi
+               fi
+       fi
+
+       einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+       af ar ast be bg br ca cak cs cy da de dsb
+       el en-CA en-GB en-US es-AR es-ES es-MX et eu
+       fi fr fy-NL ga-IE gd gl he hr hsb hu
+       id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+       pa-IN pl pt-BR pt-PT rm ro ru
+       sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+       # https://bugs.gentoo.org/587334
+       local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+               fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+       )
+
+       local lang xflag
+       for lang in "${MOZ_LANGS[@]}" ; do
+               # en and en_US are handled internally
+               if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+                       continue
+               fi
+
+               # strip region subtag if $lang is in the list
+               if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+                       xflag=${lang%%-*}
+               else
+                       xflag=${lang}
+               fi
+
+               SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+               SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> 
${MOZ_P_DISTFILES}-${lang}.xpi"
+               SRC_URI+=" )"
+               IUSE+=" l10n_${xflag/[_@]/-}"
+       done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -ne 1 ]] ; then
+               die "${FUNCNAME} requires exact one argument"
+       fi
+
+       einfo "Clearing cargo checksums for ${1} ..."
+
+       sed -i \
+               -e 's/\("files":{\)[^}]*/\1/' \
+               "${S}"/third_party/rust/${1}/.cargo-checksum.json \
+               || die
+}
+
+moz_install_xpi() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local DESTDIR=${1}
+       shift
+
+       insinto "${DESTDIR}"
+
+       local emid xpi_file xpi_tmp_dir
+       for xpi_file in "${@}" ; do
+               emid=
+               xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+               # Unpack XPI
+               unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+               # Determine extension ID
+               if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+                       emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; 
s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+                       [[ -z "${emid}" ]] && die "failed to determine 
extension id from install.rdf"
+               elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+                       emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' 
"${xpi_tmp_dir}/manifest.json")
+                       [[ -z "${emid}" ]] && die "failed to determine 
extension id from manifest.json"
+               else
+                       die "failed to determine extension id"
+               fi
+
+               einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+               newins "${xpi_file}" "${emid}.xpi"
+       done
+}
+
+mozconfig_add_options_ac() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local reason=${1}
+       shift
+
+       local option
+       for option in ${@} ; do
+               echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+       done
+}
+
+mozconfig_add_options_mk() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 2 ]] ; then
+               die "${FUNCNAME} requires at least two arguments"
+       fi
+
+       local reason=${1}
+       shift
+
+       local option
+       for option in ${@} ; do
+               echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+       done
+}
+
+mozconfig_use_enable() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 1 ]] ; then
+               die "${FUNCNAME} requires at least one arguments"
+       fi
+
+       local flag=$(use_enable "${@}")
+       mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" 
"${flag}"
+}
+
+mozconfig_use_with() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       if [[ ${#} -lt 1 ]] ; then
+               die "${FUNCNAME} requires at least one arguments"
+       fi
+
+       local flag=$(use_with "${@}")
+       mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" 
"${flag}"
+}
+
+# This is a straight copypaste from toolchain-funcs.eclass's 'tc-ld-is-lld', 
and is temporarily
+# placed here until toolchain-funcs.eclass gets an official support for mold 
linker.
+# Please see:
+# https://github.com/gentoo/gentoo/pull/28366 ||
+# https://github.com/gentoo/gentoo/pull/28355
+tc-ld-is-mold() {
+       local out
+
+       # Ensure ld output is in English.
+       local -x LC_ALL=C
+
+       # First check the linker directly.
+       out=$($(tc-getLD "$@") --version 2>&1)
+       if [[ ${out} == *"mold"* ]] ; then
+               return 0
+       fi
+
+       # Then see if they're selecting mold via compiler flags.
+       # Note: We're assuming they're using LDFLAGS to hold the
+       # options and not CFLAGS/CXXFLAGS.
+       local base="${T}/test-tc-linker"
+       cat <<-EOF > "${base}.c"
+       int main() { return 0; }
+       EOF
+       out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version 
"${base}.c" -o "${base}" 2>&1)
+       rm -f "${base}"*
+       if [[ ${out} == *"mold"* ]] ; then
+               return 0
+       fi
+
+       # No mold here!
+       return 1
+}
+
+virtwl() {
+       debug-print-function ${FUNCNAME} "$@"
+
+       [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+       [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to 
be set; try xdg_environment_reset"
+       tinywl -h >/dev/null || die 'tinywl -h failed'
+
+       # TODO: don't run addpredict in utility function. WLR_RENDERER=pixman 
doesn't work
+       addpredict /dev/dri
+       local VIRTWL VIRTWL_PID
+       coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo 
$WAYLAND_DISPLAY; read _; kill $PPID'; }
+       local -x WAYLAND_DISPLAY
+       read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+       debug-print "${FUNCNAME}: $@"
+       "$@"
+       local r=$?
+
+       [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+       exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+       return $r
+}
+
+pkg_pretend() {
+       if [[ ${MERGE_TYPE} != binary ]] ; then
+               if use pgo ; then
+                       if ! has usersandbox $FEATURES ; then
+                               die "You must enable usersandbox as X server 
can not run as root!"
+                       fi
+               fi
+
+               # Ensure we have enough disk space to compile
+               if use pgo || use lto || use debug ; then
+                       CHECKREQS_DISK_BUILD="13500M"
+               else
+                       CHECKREQS_DISK_BUILD="6600M"
+               fi
+
+               check-reqs_pkg_pretend
+       fi
+}
+
+pkg_setup() {
+       if [[ ${MERGE_TYPE} != binary ]] ; then
+               if use pgo ; then
+                       if ! has userpriv ${FEATURES} ; then
+                               eerror "Building ${PN} with USE=pgo and 
FEATURES=-userpriv is not supported!"
+                       fi
+               fi
+
+               # Ensure we have enough disk space to compile
+               if use pgo || use lto || use debug ; then
+                       CHECKREQS_DISK_BUILD="13500M"
+               else
+                       CHECKREQS_DISK_BUILD="6400M"
+               fi
+
+               check-reqs_pkg_setup
+
+               llvm_pkg_setup
+
+               if use clang && use lto && tc-ld-is-lld ; then
+                       local version_lld=$(ld.lld --version 2>/dev/null | awk 
'{ print $2 }')
+                       [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 
"${version_lld}")
+                       [[ -z ${version_lld} ]] && die "Failed to read ld.lld 
version!"
+
+                       local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep 
-F -- 'LLVM version:' | awk '{ print $3 }')
+                       [[ -n ${version_llvm_rust} ]] && 
version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
+                       [[ -z ${version_llvm_rust} ]] && die "Failed to read 
used LLVM version from rustc!"
+
+                       if ver_test "${version_lld}" -ne "${version_llvm_rust}" 
; then
+                               eerror "Rust is using LLVM version 
${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
+                               eerror "You will be unable to link 
${CATEGORY}/${PN}. To proceed you have the following options:"
+                               eerror "  - Manually switch rust version using 
'eselect rust' to match used LLVM version"
+                               eerror "  - Switch to 
dev-lang/rust[system-llvm] which will guarantee matching version"
+                               eerror "  - Build ${CATEGORY}/${PN} without 
USE=lto"
+                               eerror "  - Rebuild lld with llvm that was used 
to build rust (may need to rebuild the whole "
+                               eerror "    llvm/clang/lld/rust chain depending 
on your @world updates)"
+                               die "LLVM version used by Rust 
(${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
+                       fi
+               fi
+
+               python-any-r1_pkg_setup
+
+               # Avoid PGO profiling problems due to enviroment leakage
+               # These should *always* be cleaned up anyway
+               unset \
+                       DBUS_SESSION_BUS_ADDRESS \
+                       DISPLAY \
+                       ORBIT_SOCKETDIR \
+                       SESSION_MANAGER \
+                       XAUTHORITY \
+                       XDG_CACHE_HOME \
+                       XDG_SESSION_COOKIE
+
+               # Build system is using /proc/self/oom_score_adj, bug #604394
+               addpredict /proc/self/oom_score_adj
+
+               if use pgo ; then
+                       # Update 105.0: "/proc/self/oom_score_adj" isn't enough 
anymore with pgo, but not sure
+                       # whether that's due to better OOM handling by Firefox 
(bmo#1771712), or portage
+                       # (PORTAGE_SCHEDULING_POLICY) update...
+                       addpredict /proc
+
+                       # May need a wider addpredict when using wayland+pgo.
+                       addpredict /dev/dri
+
+                       # Allow access to GPU during PGO run
+                       local ati_cards mesa_cards nvidia_cards render_cards
+                       shopt -s nullglob
+
+                       ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+                       if [[ -n "${ati_cards}" ]] ; then
+                               addpredict "${ati_cards}"
+                       fi
+
+                       mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+                       if [[ -n "${mesa_cards}" ]] ; then
+                               addpredict "${mesa_cards}"
+                       fi
+
+                       nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
+                       if [[ -n "${nvidia_cards}" ]] ; then
+                               addpredict "${nvidia_cards}"
+                       fi
+
+                       render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ 
/:/g')
+                       if [[ -n "${render_cards}" ]] ; then
+                               addpredict "${render_cards}"
+                       fi
+
+                       shopt -u nullglob
+               fi
+
+               if ! mountpoint -q /dev/shm ; then
+                       # If /dev/shm is not available, configure is known to 
fail with
+                       # a traceback report referencing 
/usr/lib/pythonN.N/multiprocessing/synchronize.py
+                       ewarn "/dev/shm is not mounted -- expect build 
failures!"
+               fi
+
+               # Google API keys (see 
http://www.chromium.org/developers/how-tos/api-keys)
+               # Note: These are for Gentoo Linux use ONLY. For your own 
distribution, please
+               # get your own set of keys.
+               if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+                       
MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+               fi
+
+               if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+                       
MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+               fi
+
+               # Mozilla API keys (see 
https://location.services.mozilla.com/api)
+               # Note: These are for Gentoo Linux use ONLY. For your own 
distribution, please
+               # get your own set of keys.
+               if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+                       
MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+               fi
+
+               # Ensure we use C locale when building, bug #746215
+               export LC_ALL=C
+       fi
+}
+
+src_unpack() {
+       local _lp_dir="${WORKDIR}/language_packs"
+       local _src_file
+
+       if [[ ! -d "${_lp_dir}" ]] ; then
+               mkdir "${_lp_dir}" || die
+       fi
+
+       for _src_file in ${A} ; do
+               if [[ ${_src_file} == *.xpi ]]; then
+                       cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die 
"Failed to copy '${_src_file}' to '${_lp_dir}'!"
+               else
+                       unpack ${_src_file}
+               fi
+       done
+}
+
+src_prepare() {
+       if use lto; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+       fi
+
+       if ! use ppc64; then
+               rm -v "${WORKDIR}"/firefox-patches/*ppc64*.patch || die
+       fi
+
+       if use x86 && use elibc_glibc ; then
+               rm -v 
"${WORKDIR}"/firefox-patches/*-musl-non-lfs64-api-on-audio_thread_priority-crate.patch
 || die
+       fi
+
+       # Workaround for bgo#917599
+       if has_version ">=dev-libs/icu-74.1" && use system-icu ; then
+               eapply 
"${WORKDIR}"/firefox-patches/0029-bmo-1862601-system-icu-74.patch
+       fi
+       rm -v "${WORKDIR}"/firefox-patches/0029-bmo-1862601-system-icu-74.patch 
|| die
+
+       # 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"
+
+       # 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"
+               else
+                       die "Unknown musl chost, please post your rustc -vV 
along with emerge --info on Gentoo's bug #915651"
+               fi
+       fi
+
+       # 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
+
+       # Clear cargo checksums from crates we have patched
+       # moz_clear_vendor_checksums crate
+       moz_clear_vendor_checksums audio_thread_priority
+
+       # Create build dir
+       BUILD_DIR="${WORKDIR}/${PN}_build"
+       mkdir -p "${BUILD_DIR}" || die
+
+       # Write API keys to disk
+       echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+       echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || 
die
+       echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+       xdg_environment_reset
+}
+
+src_configure() {
+       # Show flags set at the beginning
+       einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+       einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+       einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+       einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+       einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+       local have_switched_compiler=
+       if use clang; then
+               # Force clang
+               einfo "Enforcing the use of clang due to USE=clang ..."
+
+               local version_clang=$(clang --version 2>/dev/null | grep -F -- 
'clang version' | awk '{ print $3 }')
+               [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 
"${version_clang}")
+               [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+               if tc-is-gcc; then
+                       have_switched_compiler=yes
+               fi
+               AR=llvm-ar
+               CC=${CHOST}-clang-${version_clang}
+               CXX=${CHOST}-clang++-${version_clang}
+               NM=llvm-nm
+               RANLIB=llvm-ranlib
+       elif ! use clang && ! tc-is-gcc ; then
+               # Force gcc
+               have_switched_compiler=yes
+               einfo "Enforcing the use of gcc due to USE=-clang ..."
+               AR=gcc-ar
+               CC=${CHOST}-gcc
+               CXX=${CHOST}-g++
+               NM=gcc-nm
+               RANLIB=gcc-ranlib
+       fi
+
+       if [[ -n "${have_switched_compiler}" ]] ; then
+               # Because we switched active compiler we have to ensure
+               # that no unsupported flags are set
+               strip-unsupported-flags
+       fi
+
+       # Ensure we use correct toolchain,
+       # AS is used in a non-standard way by upstream, #bmo1654031
+       export HOST_CC="$(tc-getBUILD_CC)"
+       export HOST_CXX="$(tc-getBUILD_CXX)"
+       export AS="$(tc-getCC) -c"
+       tc-export CC CXX LD AR AS NM OBJDUMP RANLIB PKG_CONFIG
+
+       # Pass the correct toolchain paths through cbindgen
+       if tc-is-cross-compiler ; then
+               export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} 
--target=${CHOST} ${BINDGEN_CFLAGS-}"
+       fi
+
+       # Set MOZILLA_FIVE_HOME
+       export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+       # python/mach/mach/mixin/process.py fails to detect SHELL
+       export SHELL="${EPREFIX}/bin/bash"
+
+       # Set state path
+       export MOZBUILD_STATE_PATH="${BUILD_DIR}"
+
+       # Set MOZCONFIG
+       export MOZCONFIG="${S}/.mozconfig"
+
+       # Initialize MOZCONFIG
+       mozconfig_add_options_ac '' --enable-application=comm/mail
+       mozconfig_add_options_ac '' --enable-project=comm/mail
+
+       # Set Gentoo defaults
+       mozconfig_add_options_ac 'Gentoo default' \
+               --allow-addon-sideload \
+               --disable-cargo-incremental \
+               --disable-crashreporter \
+               --disable-gpsd \
+               --disable-install-strip \
+               --disable-parental-controls \
+               --disable-strip \
+               --disable-tests \
+               --disable-updater \
+               --disable-wmf \
+               --enable-js-shell \
+               --enable-legacy-profile-creation \
+               --enable-negotiateauth \
+               --enable-new-pass-manager \
+               --enable-official-branding \
+               --enable-release \
+               --enable-system-ffi \
+               --enable-system-pixman \
+               --enable-system-policies \
+               --host="${CBUILD:-${CHOST}}" \
+               --libdir="${EPREFIX}/usr/$(get_libdir)" \
+               --prefix="${EPREFIX}/usr" \
+               --target="${CHOST}" \
+               --without-ccache \
+               --without-wasm-sandboxed-libraries \
+               --with-intl-api \
+               --with-libclang-path="$(llvm-config --libdir)" \
+               --with-system-nspr \
+               --with-system-nss \
+               --with-system-zlib \
+               --with-toolchain-prefix="${CHOST}-" \
+               --with-unsigned-addon-scopes=app,system \
+               --x-includes="${ESYSROOT}/usr/include" \
+               --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
+
+       # Set update channel
+       local update_channel=release
+       [[ -n ${MOZ_ESR} ]] && update_channel=esr
+       mozconfig_add_options_ac '' --update-channel=${update_channel}
+
+       if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
+               mozconfig_add_options_ac '' --enable-rust-simd
+       fi
+
+       # For future keywording: This is currently (97.0) only supported on:
+       # amd64, arm, arm64 & x86.
+       # Might want to flip the logic around if Firefox is to support more 
arches.
+       # bug 833001, bug 903411#c8
+       if use ppc64 || use riscv; then
+               mozconfig_add_options_ac '' --disable-sandbox
+       else
+               mozconfig_add_options_ac '' --enable-sandbox
+       fi
+
+       # Enable JIT on riscv64 explicitly
+       # Can be removed once upstream enable it by default in the future.
+       use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' 
--enable-jit
+
+       if [[ -s "${S}/api-google.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 
}') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+       else
+               einfo "Building without Google API key ..."
+       fi
+
+       if [[ -s "${S}/api-location.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 
}') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       
--with-google-location-service-api-keyfile="${S}/api-location.key"
+       else
+               einfo "Building without Location API key ..."
+       fi
+
+       if [[ -s "${S}/api-mozilla.key" ]] ; then
+               local key_origin="Gentoo default"
+               if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 
}') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+                       key_origin="User value"
+               fi
+
+               mozconfig_add_options_ac "${key_origin}" \
+                       --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+       else
+               einfo "Building without Mozilla API key ..."
+       fi
+
+       mozconfig_use_with system-av1
+       mozconfig_use_with system-harfbuzz
+       mozconfig_use_with system-harfbuzz system-graphite2
+       mozconfig_use_with system-icu
+       mozconfig_use_with system-jpeg
+       mozconfig_use_with system-libevent
+       mozconfig_use_with system-libvpx
+       mozconfig_use_with system-png
+       mozconfig_use_with system-webp
+
+       if use system-librnp; then
+               mozconfig_add_options_ac "+system-librnp" 
--enable-compile-environment
+               mozconfig_use_with system-librnp
+       else
+               # This controls the backend of the bundled librnp. Choices are 
"botan" and "openssl".
+               # RNP Upstream recommends to use botan. In Gentoo it's 
preferred to use system-librnp.
+               mozconfig_add_options_ac "+bundled librnp backend = botan" 
--with-librnp-backend="botan"
+       fi
+
+       mozconfig_use_enable dbus
+       mozconfig_use_enable libproxy
+
+       use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+       if use hardened ; then
+               mozconfig_add_options_ac "+hardened" --enable-hardening
+               append-ldflags "-Wl,-z,relro -Wl,-z,now"
+       fi
+
+       local myaudiobackends=""
+       use jack && myaudiobackends+="jack,"
+       use sndio && myaudiobackends+="sndio,"
+       use pulseaudio && myaudiobackends+="pulseaudio,"
+       ! use pulseaudio && myaudiobackends+="alsa,"
+
+       mozconfig_add_options_ac '--enable-audio-backends' 
--enable-audio-backends="${myaudiobackends::-1}"
+
+       mozconfig_use_enable wifi necko-wifi
+
+       if use X && use wayland ; then
+               mozconfig_add_options_ac '+x11+wayland' 
--enable-default-toolkit=cairo-gtk3-x11-wayland
+       elif ! use X && use wayland ; then
+               mozconfig_add_options_ac '+wayland' 
--enable-default-toolkit=cairo-gtk3-wayland-only
+       else
+               mozconfig_add_options_ac '+x11' 
--enable-default-toolkit=cairo-gtk3
+       fi
+
+       if use lto ; then
+               if use clang ; then
+                       # Upstream only supports lld or mold when using clang.
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang and USE=lto" --enable-linker=lld
+                       fi
+
+                       mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+               else
+                       # ThinLTO is currently broken, see bmo#1644409.
+                       # mold does not support gcc+lto combination.
+                       mozconfig_add_options_ac '+lto' --enable-lto=full
+                       mozconfig_add_options_ac "linker is set to bfd" 
--enable-linker=bfd
+               fi
+
+               if use pgo ; then
+                       mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+                       if use clang ; then
+                               # Used in build/pgo/profileserver.py
+                               export LLVM_PROFDATA="llvm-profdata"
+                       fi
+               fi
+       else
+               # Avoid auto-magic on linker
+               if use clang ; then
+                       # lld is upstream's default
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "forcing ld=lld due to 
USE=clang" --enable-linker=lld
+                       fi
+
+               else
+                       if tc-ld-is-mold ; then
+                               mozconfig_add_options_ac "using ld=mold due to 
system selection" --enable-linker=mold
+                       else
+                               mozconfig_add_options_ac "linker is set to bfd 
due to USE=-clang" --enable-linker=bfd
+                       fi
+               fi
+       fi
+
+       # LTO flag was handled via configure
+       filter-lto
+
+       mozconfig_use_enable debug
+       if use debug ; then
+               mozconfig_add_options_ac '+debug' --disable-optimize
+               mozconfig_add_options_ac '+debug' --enable-real-time-tracing
+       else
+               mozconfig_add_options_ac 'Gentoo defaults' 
--disable-real-time-tracing
+
+               if is-flag '-g*' ; then
+                       if use clang ; then
+                               mozconfig_add_options_ac 'from CFLAGS' 
--enable-debug-symbols=$(get-flag '-g*')
+                       else
+                               mozconfig_add_options_ac 'from CFLAGS' 
--enable-debug-symbols
+                       fi
+               else
+                       mozconfig_add_options_ac 'Gentoo default' 
--disable-debug-symbols
+               fi
+
+               if is-flag '-O0' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O0
+               elif is-flag '-O4' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O4
+               elif is-flag '-O3' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O3
+               elif is-flag '-O1' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-O1
+               elif is-flag '-Os' ; then
+                       mozconfig_add_options_ac "from CFLAGS" 
--enable-optimize=-Os
+               else
+                       mozconfig_add_options_ac "Gentoo default" 
--enable-optimize=-O2
+               fi
+       fi
+
+       # Debug flag was handled via configure
+       filter-flags '-g*'
+
+       # Optimization flag was handled via configure
+       filter-flags '-O*'
+
+       # Modifications to better support ARM, bug #553364
+       if use cpu_flags_arm_neon ; then
+               mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
+
+               if ! tc-is-clang ; then
+                       # thumb options aren't supported when using clang, bug 
666966
+                       mozconfig_add_options_ac '+cpu_flags_arm_neon' \
+                               --with-thumb=yes \
+                               --with-thumb-interwork=no
+               fi
+       fi
+
+       if [[ ${CHOST} == armv*h* ]] ; then
+               mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
+
+               if ! use system-libvpx ; then
+                       sed -i \
+                               -e "s|softfp|hard|" \
+                               "${S}"/media/libvpx/moz.build \
+                               || die
+               fi
+       fi
+
+       if use clang ; then
+               # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
+               # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
+               # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 
'x86', 'x86_64')
+               local disable_elf_hack=
+               if use amd64 ; then
+                       disable_elf_hack=yes
+               elif use x86 ; then
+                       disable_elf_hack=yes
+               elif use arm ; then
+                       disable_elf_hack=yes
+               fi
+
+               if [[ -n ${disable_elf_hack} ]] ; then
+                       mozconfig_add_options_ac 'elf-hack is broken when using 
Clang' --disable-elf-hack
+               fi
+       fi
+
+       if use elibc_musl && use arm64 ; then
+               mozconfig_add_options_ac 'elf-hack is broken when using 
musl/arm64' --disable-elf-hack
+       fi
+
+       # Additional ARCH support
+       case "${ARCH}" in
+               arm)
+                       # Reduce the memory requirements for linking
+                       if use clang ; then
+                               # Nothing to do
+                               :;
+                       elif use lto ; then
+                               append-ldflags -Wl,--no-keep-memory
+                       else
+                               append-ldflags -Wl,--no-keep-memory 
-Wl,--reduce-memory-overheads
+                       fi
+                       ;;
+       esac
+
+       if ! use elibc_glibc; then
+               mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+       fi
+
+       # Allow elfhack to work in combination with unstripped binaries
+       # when they would normally be larger than 2GiB.
+       append-ldflags "-Wl,--compress-debug-sections=zlib"
+
+       # Make revdep-rebuild.sh happy; Also required for musl
+       append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
+
+       # Pass $MAKEOPTS to build system
+       export MOZ_MAKE_FLAGS="${MAKEOPTS}"
+
+       # Use system's Python environment
+       export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+       if use system-python-libs; then
+               export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system"
+       else
+               export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+       fi
+
+       # Disable notification when build system has finished
+       export MOZ_NOSPAM=1
+
+       # Portage sets XARGS environment variable to "xargs -r" by default which
+       # breaks build system's check_prog() function which doesn't support 
arguments
+       mozconfig_add_options_ac 'Gentoo default' 
"XARGS=${EPREFIX}/usr/bin/xargs"
+
+       # Set build dir
+       mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
+
+       # Show flags we will use
+       einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+       einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
+       einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+       einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
+       einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+       # Handle EXTRA_CONF and show summary
+       local ac opt hash reason
+
+       # Apply EXTRA_ECONF entries to $MOZCONFIG
+       if [[ -n ${EXTRA_ECONF} ]] ; then
+               IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
+               for opt in "${ac[@]}"; do
+                       mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
+               done
+       fi
+
+       echo
+       echo "=========================================================="
+       echo "Building ${PF} with the following configuration"
+       grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
+               [[ -z ${hash} || ${hash} == \# ]] \
+                       || die "error reading mozconfig: ${ac} ${opt} ${hash} 
${reason}"
+               printf "    %-30s  %s\n" "${opt}" "${reason:-mozilla.org 
default}"
+       done
+       echo "=========================================================="
+       echo
+
+       ./mach configure || die
+}
+
+src_compile() {
+       local virtx_cmd=
+
+       if tc-ld-is-mold && use lto; then
+               # increase ulimit with mold+lto, bugs #892641, #907485
+               if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+                       ewarn "Unable to modify ulimits - building with 
mold+lto might fail due to low ulimit -n resources."
+                       ewarn "Please see bugs #892641 & #907485."
+               else
+                       ulimit -n 16384
+               fi
+       fi
+
+       if use pgo; then
+               # Reset and cleanup environment variables used by GNOME/XDG
+               gnome2_environment_reset
+
+               addpredict /root
+
+               if ! use X; then
+                       virtx_cmd=virtwl
+               else
+                       virtx_cmd=virtx
+               fi
+       fi
+
+       if ! use X; then
+               local -x GDK_BACKEND=wayland
+       else
+               local -x GDK_BACKEND=x11
+       fi
+
+       ${virtx_cmd} ./mach build --verbose || die
+}
+
+src_install() {
+       # xpcshell is getting called during install
+       pax-mark m \
+               "${BUILD_DIR}"/dist/bin/xpcshell \
+               "${BUILD_DIR}"/dist/bin/${PN} \
+               "${BUILD_DIR}"/dist/bin/plugin-container
+
+       DESTDIR="${D}" ./mach install || die
+
+       # Upstream cannot ship symlink but we can (bmo#658850)
+       rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+       dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+       # Don't install llvm-symbolizer from sys-devel/llvm package
+       if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+               rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+       fi
+
+       # Install policy (currently only used to disable application updates)
+       insinto "${MOZILLA_FIVE_HOME}/distribution"
+       newins "${FILESDIR}"/distribution.ini distribution.ini
+       newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+       # Install system-wide preferences
+       local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+       insinto "${PREFS_DIR}"
+       newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
+
+       local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+       # Set dictionary path to use system hunspell
+       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
spellchecker.dictionary_path pref"
+       pref("spellchecker.dictionary_path",       
"${EPREFIX}/usr/share/myspell");
+       EOF
+
+       # Force hwaccel prefs if USE=hwaccel is enabled
+       if use hwaccel ; then
+               cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
+               >>"${GENTOO_PREFS}" \
+               || die "failed to add prefs to force hardware-accelerated 
rendering to all-gentoo.js"
+
+               if use wayland; then
+                       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
hwaccel wayland prefs"
+                       pref("gfx.x11-egl.force-enabled",          false);
+                       EOF
+               else
+                       cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
hwaccel x11 prefs"
+                       pref("gfx.x11-egl.force-enabled",          true);
+                       EOF
+               fi
+       fi
+
+       # Force the graphite pref if USE=system-harfbuzz is enabled, since the 
pref cannot disable it
+       if use system-harfbuzz ; then
+               cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set 
gfx.font_rendering.graphite.enabled pref"
+               sticky_pref("gfx.font_rendering.graphite.enabled", true);
+               EOF
+       fi
+
+       # Install language packs
+       local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name 
'*.xpi') )
+       if [[ -n "${langpacks}" ]] ; then
+               moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" 
"${langpacks[@]}"
+       fi
+
+       # Install icons
+       local icon_srcdir="${S}/comm/mail/branding/thunderbird"
+       local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
+
+       insinto /usr/share/icons/hicolor/symbolic/apps
+       newins "${icon_symbolic_file}" ${PN}-symbolic.svg
+
+       local icon size
+       for icon in "${icon_srcdir}"/default*.png ; do
+               size=${icon%.png}
+               size=${size##*/default}
+
+               if [[ ${size} -eq 48 ]] ; then
+                       newicon "${icon}" ${PN}.png
+               fi
+
+               newicon -s ${size} "${icon}" ${PN}.png
+       done
+
+       # Install menu
+       local app_name="Mozilla ${MOZ_PN^}"
+       local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
+       local desktop_filename="${PN}.desktop"
+       local exec_command="${PN}"
+       local icon="${PN}"
+       local use_wayland="false"
+
+       if use wayland ; then
+               use_wayland="true"
+       fi
+
+       cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
+
+       sed -i \
+               -e "s:@NAME@:${app_name}:" \
+               -e "s:@EXEC@:${exec_command}:" \
+               -e "s:@ICON@:${icon}:" \
+               "${WORKDIR}/${PN}.desktop-template" \
+               || die
+
+       newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
+
+       rm "${WORKDIR}/${PN}.desktop-template" || die
+
+       # Install wrapper script
+       [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
+       newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
+
+       # Update wrapper
+       sed -i \
+               -e "s:@PREFIX@:${EPREFIX}/usr:" \
+               -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
+               -e "s:@APULSELIB_DIR@:${apulselib}:" \
+               -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
+               "${ED}/usr/bin/${PN}" \
+               || die
+}
+
+pkg_preinst() {
+       xdg_pkg_preinst
+
+       # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
+       # does not need to be forced into the LD_LIBRARY_PATH
+       if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+               einfo "APULSE found; Generating library symlinks for sound 
support ..."
+               local lib
+               pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
+               for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
+                       # A quickpkg rolled by hand will grab symlinks as part 
of the package,
+                       # so we need to avoid creating them if they already 
exist.
+                       if [[ ! -L ${lib##*/} ]] ; then
+                               ln -s "${lib}" ${lib##*/} || die
+                       fi
+               done
+               popd &>/dev/null || die
+       fi
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+               elog "Apulse was detected at merge time on this system and so 
it will always be"
+               elog "used for sound.  If you wish to use pulseaudio instead 
please unmerge"
+               elog "media-sound/apulse."
+               elog
+       fi
+
+       local show_doh_information
+       local show_shortcut_information
+
+       if [[ -z "${REPLACING_VERSIONS}" ]] ; then
+               # New install; Tell user that DoH is disabled by default
+               show_doh_information=yes
+               show_shortcut_information=no
+       else
+               local replacing_version
+               for replacing_version in ${REPLACING_VERSIONS} ; do
+                       if ver_test "${replacing_version}" -lt 91.0 ; then
+                               # Tell user that we no longer install a shortcut
+                               # per supported display protocol
+                               show_shortcut_information=yes
+                       fi
+               done
+       fi
+
+       if [[ -n "${show_doh_information}" ]] ; then
+               elog
+               elog "Note regarding Trusted Recursive Resolver aka 
DNS-over-HTTPS (DoH):"
+               elog "Due to privacy concerns (encrypting DNS might be a good 
thing, sending all"
+               elog "DNS traffic to Cloudflare by default is not a good idea 
and applications"
+               elog "should respect OS configured settings), 
\"network.trr.mode\" was set to 5"
+               elog "(\"Off by choice\") by default."
+               elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
+       fi
+
+       if [[ -n "${show_shortcut_information}" ]] ; then
+               elog
+               elog "Since ${PN}-91.0 we no longer install multiple shortcuts 
for"
+               elog "each supported display protocol.  Instead we will only 
install"
+               elog "one generic Mozilla ${PN^} shortcut."
+               elog "If you still want to be able to select between running 
Mozilla ${PN^}"
+               elog "on X11 or Wayland, you have to re-create these shortcuts 
on your own."
+       fi
+
+       # bug 835078
+       if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then
+               ewarn "You have nouveau drivers installed in your system and 
'hwaccel' "
+               ewarn "enabled for Firefox. Nouveau / your GPU might not 
support the "
+               ewarn "required EGL, so either disable 'hwaccel' or try the 
workaround "
+               ewarn "explained in https://bugs.gentoo.org/835078#c5 if 
Firefox crashes."
+       fi
+
+       optfeature_header "Optional programs for extra features:"
+       optfeature "desktop notifications" x11-libs/libnotify
+       optfeature "encrypted chat support" net-libs/libotr
+       optfeature "fallback mouse cursor theme e.g. on WMs" 
gnome-base/gsettings-desktop-schemas
+}

Reply via email to