commit: 748531851c452cbfa3bbe80c13a249a382238efa
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 10 08:12:02 2025 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Jul 10 08:12:02 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74853185
mail-client/thunderbird: add 140.0.1
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
mail-client/thunderbird/Manifest | 65 ++
mail-client/thunderbird/thunderbird-140.0.1.ebuild | 1162 ++++++++++++++++++++
2 files changed, 1227 insertions(+)
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 85f05b05b72f..a7999816ea4f 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -326,4 +326,69 @@ DIST thunderbird-140.0-uz.xpi 355293 BLAKE2B
2d7c9aedb7a8e1f2f341ea089d153baba41
DIST thunderbird-140.0-vi.xpi 518716 BLAKE2B
29c8266d2cc0af0efc9e237b9e810d7c47a92512489ec02fdc286cf2d49bae026e75fef76f66ccff5557d6e7ecd22a0ecec20e02deb20799edeb14938d6e0faf
SHA512
004e4bb79f59554f05c3ee7a0f0e910f3195788157a2e733837d6f43eb997506ee8e313e9a522f9d3e2128b22ea1f07e570a0193bee099bea050bb77b06caf01
DIST thunderbird-140.0-zh-CN.xpi 507847 BLAKE2B
e16fd36a6caaec6e0d110162f59ad21615d8606e7bd4b9c8a70b2874b99cf33ff250af556d6b36e3bad372863e0c1a7f4f98073f8d4040310c170cac89dd53af
SHA512
ad7c9aaf4713f7325f12959c4f769107f7c78bed70378bdad4998ba5fd6837c35362e3bdac671869a8d1ca7e226a746bddb4c7315450a190883de97dd38f64c1
DIST thunderbird-140.0-zh-TW.xpi 511141 BLAKE2B
0872b929112cd9a7786285d458450e4c842971a1cf6fff0d9a8dbd3f5de8a2793ab803a83407bcbef5ecd57b85f6111065f8768a4467037e247306f4598b92b5
SHA512
8bb1f3ab7eff31eefe349172617fc75f190c949937d953267fd52f84a71b1e0375ebc509aa98cc3617266b83248d6096f1cb9645ed2437dc546489a5e3933014
+DIST thunderbird-140.0.1-af.xpi 316232 BLAKE2B
efbef465d1df2c3e40ffa2d6341e5593334af4998db98be41c83fd23e6bb43a0a9fc4745f133d777d198ca10502d225cd13dd8c4fecd32e9835e382a131d529c
SHA512
0e475ef68f9162abec3dba86f7745d256e080c5136c8f77d852c313afbc04a18812c81607e1866ccaf7f9e0779e9afd16a74361525f55b6bd8b3d6d5f2f7e675
+DIST thunderbird-140.0.1-ar.xpi 434821 BLAKE2B
7f79c1ed14d5916403d1641888f68e6c64f4bf21e7e5773c3f635ae06de8331b4c24696e8fcb538aab28cda23b049f2b13d1811c7d80a1a1dab05324e9d44181
SHA512
49dd59dfa890e3a78f4d4a046448528108daa260ecdb1639f8496c16728179e6019bb099b1c28790ce772803078c2b0cf307ac7d0051e9ce3844a06b23a0662b
+DIST thunderbird-140.0.1-ast.xpi 340612 BLAKE2B
08f6032d0a0f1f88254ea16ce25185238aa12747f6bb1377777ad9ac8b2858b097c15ad7c3ae112f20a8eb30ecdd930d5d65e56e20f46ec661d62717ef50904a
SHA512
71c1e5352b415a090c1149897ab3e8220cec2fcd2c459b7671dc6d9a1ab3a34b2a7b734249be3b7156f20a942bfb98b78b6383c9bbeec47aa89aed848865cdb9
+DIST thunderbird-140.0.1-be.xpi 520620 BLAKE2B
a67c3e37641729933f29b1933bf97f8458f82707ef9b039b339466a65d7ab4af8f4dd926ea3eb44f01fe3845b78d8fb8c7626bd083305cad204c622f6f39e7e3
SHA512
897de8a4c84030b2bb0426c5cb3d2d43aaa18b6b36be2e1ff8e1496fb29e706429f8022954f0e372b6537e8888b5b8892c286d7445c190a068709c0ccf18bf5f
+DIST thunderbird-140.0.1-bg.xpi 533982 BLAKE2B
f11dcad78b7d2ad072626e7e238fc4c71c921ef9d2690b4e8c85483dd8f53349b3a907c7ce4f75589f0b1d93d905279bba2b39292dbe7414b2abea95f13a671e
SHA512
73ddd288d32ac646e455079b9160d512a7906f42650e7264ac18da72373a13388874a57b7c8964a5c13289b5c0291c7d908e25ffd2cee0595541a3030d509335
+DIST thunderbird-140.0.1-br.xpi 402535 BLAKE2B
1e84a40040fb59c923d10b1b657cab69658b7ff9f97b125a28873dde83f2f87c69368dda5c6367773c9b802aeb94c8671d8773d08a0484d959d7dfd728f1dd2c
SHA512
1445b0336d40f330363991d901615ddf61f4918e17c5b1feca257d101c54f060ceea39e0419de3f6e6d0c5d95467c23eba9a17bdf58beebdd8b818055efc153d
+DIST thunderbird-140.0.1-ca.xpi 440337 BLAKE2B
c1e731f3c55c644a0dd1487809fd72dc7759fbc8e526f51c1afb8b1e613a0c45a9cbf1cf8e18198a1fa87c16347dc3b8b828f68e9da26b58bc00d5e216ee5e9f
SHA512
44272fb44e8e65480a41388ab55d3fc1d1d5a3bb006301514daca1cee3668c1f590542ed43d304cc1177d963c7f46b2619a69e864ebbd2abd1ead6f1b8bdfa54
+DIST thunderbird-140.0.1-cak.xpi 418050 BLAKE2B
ffe2dda943cb771d056b7252b320928cb51c54f0c4e4f1ee6049747f7025a0bc707464f05ffa43551efb39f474af09695d58f507715d86e81b0b53d89c3a7e46
SHA512
e50e424a1f2295ce5ba7e7dbc58beba7bebbee32b1a6d0b8ee3e24995f3af13701700a38b0d40d3992a3773add145abd4c1f5d21857b0092dd4b047edb4c172d
+DIST thunderbird-140.0.1-cs.xpi 519341 BLAKE2B
5aa7914a7e1ab1c4dfd261023d76b92b8ebe5f349eaa7dbb107650f3f2bc70b7633080fdd23cb2263a74a89c1754a39c2437b426eb36bac3bb5c357f19398190
SHA512
342a633ecec23d589257fcdccf1593506a055e3a579c1ed560f099133cb63abf2ddcbe16a4d87716b855a553fc6e9a3ab02003a77b8481af5a51193afa898020
+DIST thunderbird-140.0.1-cy.xpi 487609 BLAKE2B
697d309a9941c18abb8a13e69f738de5a8fd42db879e4a95abde27d465a93b7b7596a68761d60d363ac57d1b093b2cd31d00a07688086d100e155055e48940cf
SHA512
d4b32d6420dc0149528d12a2732cec463778a4eb6d9df84f0c5a321bcc54064bb5772d19b0e3618eb0e932237e669e88e88170aab6b3bed8e1eee3470184aec1
+DIST thunderbird-140.0.1-da.xpi 476630 BLAKE2B
2691aec4bc0ef9f3f95ffcd8d2e2021513af8ec46d50449f438b1908f6b3d065e56c8582985c5d51a119cc0ae2bd111db430fccdc44b2c8ceed2d84fca916685
SHA512
619018908e0da40a46ccfff7c8bba377b9c30c6c8afd002762722581c5c0ed0b235c4bd338da5d8de4deacaf58e4ac432583a54d6eb755539bad97fb07ca13ef
+DIST thunderbird-140.0.1-de.xpi 505017 BLAKE2B
7632a38a61419d9c1805fef0da6b5de5cc574b2ff857648404f4b4df7ae032c5293fa9bf7c4472ea86b1773652904dc4684c43285e1845f2de93cd63635ce2b9
SHA512
a40dc44d26e21fcba20e7825174c11c272fb77ee5623764135f3218c115d173d4eb719e5fb0a99ee99bf33f49cc9c0623eeb0b3f5cbdee4d97d65484cafb3f13
+DIST thunderbird-140.0.1-dsb.xpi 517882 BLAKE2B
807a809eb27db236de441869db104a619cc15a71cb01e45357378974e58fedf2b56161a460a4e4e97a7e9edb6aa61554010664112aa9ae0add67c6d384a4b239
SHA512
a1d42dd0c53500ddc871ec7385cb926529e51babcc3b222184cd1435e93bf6869b28e6e6ed1ef02786fa53b7006f789720ab65cc6caa63dc1a1ad995cadecee1
+DIST thunderbird-140.0.1-el.xpi 609178 BLAKE2B
426e989499f7d4d04ee7cbe0f58fca9aa61fa5780d91fe4e5976e631455dd979a6d5233d89d22a52294c2399d25af66a37220a58164f0037de93970ebd0b3de7
SHA512
a2c6a96713472ccd693d7090a0fc8fb724d6c804e501bbd0c7050d4cf2269f59f8983ccdca7fe0d68adf0c5aa05d51aa82ed667007bbbd02b67e708a1932c9dd
+DIST thunderbird-140.0.1-en-CA.xpi 449536 BLAKE2B
cb0890aef4ac0d9d5f873443d60d3f2e3c33c19c32a3626b8c13cc3a70c6cffeaf6bf999ffd9c53a9e8835a93265729635e141bb099673956845ed6eeffbf652
SHA512
cdbf607e21ca5406a8651aa1f93692ed5166796418e5aefdd4f659517b9ddde05f071c9d4a6a8cbadcbd1fdfb26187e1e99af024cac7ef45bc6ca946f6714584
+DIST thunderbird-140.0.1-en-GB.xpi 452038 BLAKE2B
b6d7534f56199105b992ddcf8a99c632b6e836083140b6e37b6bb373e0165f4ff1c15b54aae7d8d8c69a96653719de3539d1895727ad8353a920e37f64b638c3
SHA512
6c8e442bb5525d3847348be888436f7f65448b6eb5ab357a2a70206ebf1666067081c88a2cca76ed7e0e57b470d232a1f49709b742841ddfa479f658695fa992
+DIST thunderbird-140.0.1-es-AR.xpi 495265 BLAKE2B
3092652d59e9eecd24ca055e1322b6665686d1c3ad357df343a4f8c70043c18855454ca10291984d79adcfc69a1fbf9840ac306be869f8a240fa7240ef443a17
SHA512
90e1f65aaa675bf04df5fd28b0a3547439fb5c8e166d030e64aa29d9de8255985ab2e36fade164fbaa52ecc28412347931e86146a94bb32ae79e660bb693334d
+DIST thunderbird-140.0.1-es-ES.xpi 497243 BLAKE2B
9537af92633b31e84c9837813ba6d2fe22de39e0c540c88da40a0ec545c0b6a2e3c5ac5a03a6c43440ad68c99f0d8d83229865783067af55c7bfa907ef35f156
SHA512
0f59986727bd2e0a293c6094f4c063bad19a6578863302bd4e2546c9a97d362127c3bea4980ae98c0a543f1752d62f560ee7f9cd91e6c5f330046cec7a034f05
+DIST thunderbird-140.0.1-es-MX.xpi 488217 BLAKE2B
eca52280793c39e68f4681858a88e2579fd1bb926e1fac8789177077555dfbf5c2f1a1c8784f9197b306b58c254b2d8fd4aa3f793f65407aee1880c02ccba441
SHA512
cb8bcf8b0b0ea316be6804782bba3c78c61f03e8c545489dabf61457a9d7f735f0c7e8721d0d3ca6a00b0eb8f45d0f7bc4761c852905e54656692bf7ad950823
+DIST thunderbird-140.0.1-et.xpi 443624 BLAKE2B
da0d44b9167d1e3835c4f77726ddb306d31879a8c6c48ea6f16491f75e66a37d556e0630fce0d082b76e744f74ce9ace179abf43cb8296ea4e46476af7f73564
SHA512
6144100e00fa3955ec19dcefc807c29d9a0634a3e89cedb00f83b84729a5431c2857a02b377dce49dd66bae74d4b705ea53fd86b5a1626bf0aa9a9d18b86b952
+DIST thunderbird-140.0.1-eu.xpi 471256 BLAKE2B
f019ee7b36f3a7c43812351108295ffdc2938ba62275d463cbb4bf9caad224d70a3aaff15b77ba4cd2144f825efa14c1c8d0ad5ca90cbf9a32545775a02ccef3
SHA512
252b81d4794f4c7a825327a2f41d17651eb429b2161b7ac05d0760b2f94b420abc76c4352170e3372621518f9f87e9ec346fa511345d65bbb8cc51225f75acbb
+DIST thunderbird-140.0.1-fi.xpi 473771 BLAKE2B
ea8bed0c2a167a2763e23d4a0c6ea2530faebab763679cd0d452312e5d23a5f82526695a9d5a8e33b52154964f82ef100c44aa4af8fb3618e5b593c16dff814c
SHA512
199b856f97293296a59118dbdc694439a986be69d508b06f28719a1bc338b5cafce7b6dab706ba09b7f857fa9732963138ccc2a6b068cf27b3879b91bf208c45
+DIST thunderbird-140.0.1-fr.xpi 508204 BLAKE2B
8508044737f90102f59a49624810791322c188f595fdbc147ae4d88135c5e8029e65a483c80f6572dab29e0de3840727627c4387365e358686e12ab7ff8c4c7d
SHA512
2e13a0e43c95cf2c5c3986efa555304f0982abae4f580b27f72e37d5d6b098dce5b7ece97bccf37c2718e590764d5e3858b7b603db8326c422147ca090337b2e
+DIST thunderbird-140.0.1-fy-NL.xpi 490631 BLAKE2B
1b1a330e881c66b81c999743293f4dadd9e929635cc0e6501df4dfc6000c3243039750e5d02dfb66025facdcdb4ce2a4d30f81a6a7a5cbba07ee45bb8f0cc0b4
SHA512
31ac943c22fb8579fc6914d15fce7017d278efa9b8b0fded227e75452aad6b004307ccc4071ae3521611d72e87225b940ee3e4878b58284f1e6ed2377fb1a4ed
+DIST thunderbird-140.0.1-ga-IE.xpi 376762 BLAKE2B
e42fe10632a4ba83e26653c6fd6f54aaa8731cea0d46f19c5279e234388731b428a9414bf55933068463467c9e9e86a31abffa4fc8ab93d911ddb216463bf62f
SHA512
dc99aac93ec85579a3f3b54b5dd23b4d6dc367d342167491104c1645496087ba6ef2120bf437a541700e4c398c46ac45af48cb70cc9b5635879fffea38325fbc
+DIST thunderbird-140.0.1-gd.xpi 461985 BLAKE2B
bdb7386090bd5197a70265f5134be84e599c6813a0f135a540bbe2e7f03ac649f77cb813a0990834dd7771314ca400809c883ece291ae3bb052bec9018b52e88
SHA512
9581f4f505829990428da96d74caa28f36dd21d66ff1a2130ce3235ba6242988bed3beb1b2b75fd987d7d4f1bc82be5e7189f99d31487498e69b8069e7f979e1
+DIST thunderbird-140.0.1-gl.xpi 470945 BLAKE2B
2af954f9548d93fa646e107e6094f4a92425e68e2d50f1dd531b2765baab1aaa109969cbd6946c20f7bff62bd1818d7d84d9dd2e285aebe723d4411bd98a8ac8
SHA512
fca7854462f5a84c298f322c1f52c4d8867fbf458510069ff8a1611ceb715184490f7829cf1432bf907362e799aec909486acbe915f4ddd5e4499cff2544645f
+DIST thunderbird-140.0.1-he.xpi 441375 BLAKE2B
fcd11ae52b66be8ff48ea2a8be8dd01234b937515147bf1cc90b787f48af6c2a6a948f78c5f924342bd4eb8c56ffadd29aa4a4b53d09bc038193da3d0b96d824
SHA512
195e0bd234512906e72fff6d411dbcfd096e296bef3c02b33dc51d41b1a178973ef99f46b283549db55cb5d0c275e4ec52dcb761923a8411aff78f149a8eeb49
+DIST thunderbird-140.0.1-hr.xpi 460828 BLAKE2B
5a784b6710ddda8b59adcf104e62480a77ae674aeb6c37d27ce3758881846cab731199cc6608b1dc9c141c96e599fdb2e668e8535fd9711a4d18eab2307299a8
SHA512
aee47b8a39f5c3ff1e115b8937a44f068799ae4cecb5e36cbc65762edd2ea062acc0e4622ec10b9439a12705908229d6cafea4f8f25a63e8ba4319dda0f981a5
+DIST thunderbird-140.0.1-hsb.xpi 514907 BLAKE2B
055ee0cd5d9bc3749b04a96ce15724581dca59ae5c0591c346a99545245f92afd4cad66755a7f87d4eb2fa35fcea674216e5ebc3523e16abac6dfcf11d60a1be
SHA512
73582e9a35225c7f59749019c0be463573983c613478178aadb1512d36a0b95746983d72d5e137cdb685e916fd2f5f0ececf8fcd7fdc41bc0cf3c2b2575f3561
+DIST thunderbird-140.0.1-hu.xpi 517517 BLAKE2B
f7b26ab7efb23363ce0f665727e66ba89960e92fbd0201ce279257d174f4cf98513c9af095ad7d1f0155ca02e6877d013fb99b3fcf46cb7b7988451e60bcfe4e
SHA512
259b2f8b278f06f8344dc22e2ea24dfc11d28974c5ef3428789b5bb2a3ac221427cb0ba12d3eab705139fd40783b91b021baa151688b2771610d78e9d51aea0b
+DIST thunderbird-140.0.1-id.xpi 463521 BLAKE2B
c95c22bebfd0726fca90ee0f92e7fa9db9e860b1ee1ef1ed61f3543321c15c29bb7a8dad4055357e216b0fcf4bf485ab22526f6d0d2d5ea9c9b364780e1dd5f2
SHA512
7e42b41279a59dd69ea21677297e0cd391b9d57cb6c4899b90f164ec902b4481678af360bbc8555462babdaba58025bc881b10de11747d3f26af144da10bba17
+DIST thunderbird-140.0.1-is.xpi 481559 BLAKE2B
a1e28cf8512ae5038297794a6e4890a5d9cdd6ffc0bcc4ed78b17870bd0cdb99fffc60cbd68c48fc399b853290548842862912bd61834c3a02943605560ea28e
SHA512
ac06b36b3c71b0a236ba73bf295e620efeed58adedd2bf75895e1cbacc25af49585ea74251e5a23be21475c680c0aacdd65c263f5dbb582e78f4d230eef6242f
+DIST thunderbird-140.0.1-it.xpi 488495 BLAKE2B
de277caafdf60429303009ffca82cf9d35113e9de9f0b32dc2a68badf6311f66250761f8ff7d4df4aadcee8df0e7f9b892cb059a730d90c20da251624b02aa17
SHA512
9b0f745e8a730961161afa748699c10de15ba31a58943277981c75b4ca25e75000662e9488ae1deb952485dc0f8e3f3580e50d6abe6b846803ac0938d375fec5
+DIST thunderbird-140.0.1-ja.xpi 539323 BLAKE2B
c17a250d7e35b62c14351fc07d1847910bacf3bf15ba9c478c7bf3edd39105579659bc17cd049963a629582055bb99d6b40c8bef89ebc1772f9fb06861a4c1dd
SHA512
0709abb12bf7e5a388c917e65ffb8bff532d7c2920f0f181e5a23535cab10755950658a0eca116e744e4143086c88d4f0e4f53929006670d721ab8671412ffe5
+DIST thunderbird-140.0.1-ka.xpi 554687 BLAKE2B
c8eb849504068aa5b903d976e2e5d5668e6efdd8f906b6ef8e890c0acb619c72e48e0d46f4b616d67ab5acc3a1c14e8d7768f071b7117e8d58829e5673cd89e2
SHA512
8558888bdb7c9c5efcc7800702097f3bc16c12c9f0e837325976aaffc520fe93f2fb2c560822c3603525813163ed56a8919061716e5e65db4f3761452640043f
+DIST thunderbird-140.0.1-kab.xpi 468635 BLAKE2B
48b7dbfed5af1c34d3b277a95b829d112d8d7d5522ded8bca5836e0d137c5e76103fba2074f862be5cf9ef57b751d35ee36f38b01c646dcb6b8b14b158502c0f
SHA512
785db9b01523ece7c05b46925cbd7c526db869c53098ec0bd00c142145174500efe917d06de409b3a8043af9005fc86e9af3526411eda9354c7623c1a8bcaa2f
+DIST thunderbird-140.0.1-kk.xpi 572522 BLAKE2B
04ba6b11aef4462ae6a5f1009070765e39eea08ec631081f891b41e5c3ac67b534ac69bede7a1d8e202bc00d3d972d684857223fa98170eff919a5c293da6410
SHA512
19d3492aa155f743cf771d0fa10e73a99cb522ccfb2f20a4d512795de10305af5a9f1151185bc7e9e1a65ee7e3849946dba89446b2981e3fd8225115a2a60b9f
+DIST thunderbird-140.0.1-ko.xpi 514483 BLAKE2B
20b31adc57103af6ee8fd22129449f39141074dcdcbd8252e61d3b2dc8c8b061316052f99417bc1406d7e98506b55c57f85d0eee4ab8a73f7456fdd960a34759
SHA512
279f76238942329d9d479cc5a41601a4682528fa72671e9ba557b74e8b35780f498e8eaf526b731bd0013a8e7e26b6d2124ab489b7d4f1b4c9cabe42e5625d2c
+DIST thunderbird-140.0.1-lt.xpi 441888 BLAKE2B
a4979dc716624ad761d7046bcf5aac44b25e27ca589c164b07ceceb0935d4295b31775f7441945bb8d58d84cc6e4b3e7ab4a9a4074b76e296d0c0fdd135585ec
SHA512
6c0a13f6aa73525a80e751661c15e9c126ec88f6cd10e277c23bba61db68cabb73acb5bde856e7ab77b302b1e5d6eece6b7386ccdbd14a89767bd164742c52f0
+DIST thunderbird-140.0.1-lv.xpi 391816 BLAKE2B
c38d7cd6dbcef7bda4704af27a04c40ab8f97b1870941f40eb8a63b11e28ec43490876d2da13ef35b0ade6470f63d79f1557b56de8cb6cf60e53a96f3ab6e712
SHA512
26f858fa0c5cebfe9270d779041f32da516b1c5ac3335cb73b7a4df815a07ec9a06d0e5f6127d19450726d95a75a95a38283389a4cefde57337ed693ff4aa274
+DIST thunderbird-140.0.1-ms.xpi 352189 BLAKE2B
350168d2d91f9cacbd2d96c4c2d18b278cbe055eb9f2c4724d9a219239a72b19563b442a6d9b20c10eee32690395eb1e190ce9429e23a02d15e07319123fa726
SHA512
72457086fad9ff02878a6b332ac58183f2b910172e16558811f8840d9b4acbd9cfd49c7ad7e8b69092cf2cf8349a111d4bf275b38f84d298510088113029c075
+DIST thunderbird-140.0.1-nb-NO.xpi 463862 BLAKE2B
056755833f909fcc0dfc07d61940df2fed422e1b7206ff8b5409769fcf5b93f5529d6a83839d98c8f628b38fb169d1b41056c03742101bd95eb9fd2e13c61c4f
SHA512
4cd7fdc50e5e3a6ae14b1b6b0ae901be85f55076851d727bee8fe984b041d5ca5fa594d9fe8e4b4e4f985fadb280e11695233712cf7332edcbbce1a77c5f16f1
+DIST thunderbird-140.0.1-nl.xpi 482101 BLAKE2B
bc4b07b0a52abfec6fa430aeba995c0bdd2086f23c98c7fef2acaf7cf2663ce5f43d7e3cfc5d6760674e2ea2857065a3c66778efc13579cae3615a5ef9db23d5
SHA512
9cb3d84eaccd904c1f0870ba6818f7c6354d5df22533e88ebdcfdad528a956f7bca6b5491aaa7d04fb40226581648752dd4e2399061f79eda66b33a3e2ff774e
+DIST thunderbird-140.0.1-nn-NO.xpi 465735 BLAKE2B
0ddbcce3f256d744a7009b6bebf286f76c2de1459979c848a01df67b7c9c3608adfd0175b3be3da1214405a3f3257d05b5733209efde69cc056e3a68a587fa2a
SHA512
75227b2f9b6cb6b87ce040fec904d222008847de6b0e0a8f437cafc033c816ce097aa70b68f43c3608d74adeef5de097243c23e7dcd59008a2e3fb90e2ea0ba0
+DIST thunderbird-140.0.1-pa-IN.xpi 433539 BLAKE2B
cdde06b84a113b37ec1f3bf98436e5d8ffc308956a8444540f7fb1127f672be35a880cf4311533a3113201109756cb8d9093d47787627e61da095e72c72c8d24
SHA512
5304a236ab41330b5cd5d17291d903620933dd01210da4e3267eb59d359084326007b65ed2e553b19e9543e1e8bdbfac22c63c09cf7161144f7b65de1ec2c270
+DIST thunderbird-140.0.1-pl.xpi 515001 BLAKE2B
705ca457ac7fd183d2f4ea9df41c5314574c6cd260b4ae8e4a7fd2678d8379576304bd8ea69774f82b0e72e7ea296226886693bdc0dc333a5de83d1291d7bede
SHA512
00c11c2930a3bece8a5273a767071be319c8dcad2fff5838249a245e9879858cbb28bfbfe751110b3ff91cf8ace17bd23cef5889f2de1f264822d687086df295
+DIST thunderbird-140.0.1-pt-BR.xpi 490123 BLAKE2B
d142a90ff5fb9b378b8b27100ecbfcce5409a6163d6582e29db6badc9ea0982ac76f4305c81627c2682a0553467f274ca9b7b9336c833b39deaba5063ac910f5
SHA512
435c180f0e3e80481d0b7fcbf91b3872327450416cf5eb454e90e7e702c0a86520bcfe6c1ba4feedd9b365ef900b8acf8a2dce5aef52b4f096fc31a5b0001ccc
+DIST thunderbird-140.0.1-pt-PT.xpi 486362 BLAKE2B
ede044b88b07d1d8a8533170c444b0561661848d1d88f406f1f15f0f96854b69f692eee04e4291c1ecc4243f4c4eed9a30695f508cd3a0e0bf2a6eff6362ee32
SHA512
83c38af4a0435817ccea98ca92c3ceae6b0043a690ad67c656d687456830bf772a0b01f24e399c3b11acad12ecb5f108c789161193bd5a7cf4fb2ce63f827902
+DIST thunderbird-140.0.1-rm.xpi 487170 BLAKE2B
75c678e9f8c18ea1133201ddb61d3e223ff8013593de5648c49b1068f2cc3715e249e84b582ec2adb437ff0a5c8cad078b067b5be7b1ca6cde7f9ff2a5a5fe32
SHA512
72d89f375ca259cec20bc0db9638132f0fe5820bf337dc3de6551b95f7e4ea4bae24d942b76bf76f611fcf5a357b0fa99adcec8849770e874a5b12417b617138
+DIST thunderbird-140.0.1-ro.xpi 417295 BLAKE2B
84767ecdf47a27ed1f4911358b74dcfe56cae3fd1634e89efa1eee8f21f0d1d9446d317ac701d65effeb8bd3fa4b0126fc866da60bf1e2f98b6e82aaa2d7ded2
SHA512
ac0421cf41ff3af5d60763b00d20ac57157303914ddb6920068cc0fd9ff7344a92407dd6ee04f4a5b5e915525b763a9ba34764939bc504954bb09d49d8e217d9
+DIST thunderbird-140.0.1-ru.xpi 593140 BLAKE2B
6678687dd3f3d045d023477bb283853eef831559acc2ac583d15c7d5fcc6994ba2c99b2a95fd921993a401d1394d751b0c40dc2497bd4a4cf0a04d9a6a9f7f0d
SHA512
854b55b326027ac9d99fa94b6ec59d97a78fb8d0b684279db71910c633265cbae586844fc661526e334a5461d99a084c4434170f67c953a92c8ab1e2e8a21538
+DIST thunderbird-140.0.1-sk.xpi 519208 BLAKE2B
81e44f3b89d4b12867cc37885373e51cff910d6205464f94f79e49ef7371a1a25d6345a4b57c9f48b8765d09a9e97a121a507a3bb347cb227a31b4f747c9fd7e
SHA512
c0216bde2fba56c8f35c19bc419b2265782911c47e78a863483cf4ede27a0d377088d794f4a06b8fd0cf2076c5be587b891f844c007f1edd9baef782ef0dcfe9
+DIST thunderbird-140.0.1-sl.xpi 485771 BLAKE2B
87a89bc57ed1a422ff97703a84985a83d08ea5b2813dc7811531c70e192cd71fa13bff39d2e9980a999f450dee9cb2b911e83422163c742ecda9558b85411e15
SHA512
39157bce898e4541c9ff5e83e2dd1114e97187bab0178609710ac0630a94274cc7f7543fa5741590fc34ab721239bce83b3ab49d3605d1e68b88afe2992eb2c5
+DIST thunderbird-140.0.1-sq.xpi 504100 BLAKE2B
7093a97597f1808a1c4865b57f1a483eee8073d44ec8187dafabf3f3e1c2a9c6062b6549f6fc8e586ebc9ddd7d61860569551480d0645dd19a54e0ead3bf418c
SHA512
9834c072b0a7e854a383af91380e2758eb03fb479d384f3fe3c51edd095d7c141b322a881f9155c63438a88b27411360809ce828d7c0530236d9ac365ccd2099
+DIST thunderbird-140.0.1-sr.xpi 495664 BLAKE2B
a17b45a747c97a2f2415ffadccd2b06998dbb2f669a47f4132082f06cdb941260dc1fd441834c7df4588875e02022540da8b8e0fd5477b6c134cd4cac54a90b7
SHA512
627a7dbb0d821951121339c06350d0052729845adac65726d381cefc2e8b68cace7d813d7833186f1e90e8531082d8bd2b4b75cbcd5740b1d5e799439968aca9
+DIST thunderbird-140.0.1-sv-SE.xpi 484389 BLAKE2B
ad81fd2ed95e07166762037eb498c171b8ed5fbf0887276417ecd13ab893caa7b67479eece78293954f2155f5e8b4a3b3344a9a380c9d3cb75e07736ed6fd5aa
SHA512
e9d608458bbf59222cb6d0fa396054e52441ab3d204445abafbd77729329922de338750525ae89ba3bf0705e1ca5c93dde565d1baaad607362e02a8ee2de5dab
+DIST thunderbird-140.0.1-th.xpi 566814 BLAKE2B
16c77037b37c7720e6c007bb30e7687d85766f90359fd06116b3eda0e1fd394d97bb8e0ea39f65675c1281d2a9c0bd79b19f91aeb379ed294ff2845c674d8a55
SHA512
1debf00a6d9f9f30cc79ab165acd53cd93219f771fddaa5b83901aa9ba4b321af0256acec428c2c7c618d7e916b97c6c5bb53e2656703db713e7e30ad0d980d0
+DIST thunderbird-140.0.1-tr.xpi 494838 BLAKE2B
95c88ecc744e5d650c994cab9f011582b91d69a8da7a168fc0f1196ce33f079c0cfb8657f5b6edefd6159d447f2afcfebeda2a5e55fecf73f2acb610cea3abcd
SHA512
af1418723dfee3099d7193d98c6b1d11a9595fbbe0bc18ac5ecbe798d22eaab9713818314b7f770824940263b1591ea7fa7bcbdb1eccbff3f0b3cba3e22eb52f
+DIST thunderbird-140.0.1-uk.xpi 581210 BLAKE2B
3a8ee897eec136ad589c4c2abde4bf734f40261a2bfb7676a92275f38c57af54edb2925095db3ec108935601e071fdeff6ec830621517fc11f8068e41118e0a5
SHA512
f241ead8ed5eca47517d3091c5184ac90e5bc982b17619114520c32a6a27c60a35527bb5e522dcf628e93ecc3a13a009f33981056e1e9837c6006c239e60fc66
+DIST thunderbird-140.0.1-uz.xpi 355292 BLAKE2B
ccf69951e4b8123edbba9afd00fb10a4280e333f6c2b9bfa559c4e9d984893f1c8afb8ad52041a3aff3a693f03928f5ae667c459400e2d7d67c2f34b7dc2ce6d
SHA512
79b9ea2a9f58e18a09da6f97edb931358b0740c7e0ebdefe999da4dc2829778f25d29b9720e97b58053f1e200a17dc8fa03d08282213603a3bc59c8eb7a4fa02
+DIST thunderbird-140.0.1-vi.xpi 518716 BLAKE2B
2bb9980111a17b65079297da253be4f242c1179455b8e9b3d3bd3307ac57de01737355c7b25fd1f04726eec2cf8d23fea291f4ca2374eec57de66e008f2c6180
SHA512
1d6a0517ef1d9df0e46d05377b71ee493fd1aebc9663d24d9e321a040a6392cc3a3acde509a7e7b792fe5ee8e934aba8f5cfbf1e70ac7677de15562aa8922b53
+DIST thunderbird-140.0.1-zh-CN.xpi 507848 BLAKE2B
4e29fad7bd7decb4e1c63d071b2f731a4a976a813d7c79b8cb6c4a8180ebb0d3660ff7aa74f0150596504c358f5b2d250e69a4fef224f40b73ae689d62954a16
SHA512
52bb8d454c38e37bfd35294715df3ac417ff22921c4dc5c07f35ad6c7e43583c12dbac0f1d3c68c8a06605f339355be5112b107a27eaeea93dddfddaaf6391a6
+DIST thunderbird-140.0.1-zh-TW.xpi 511140 BLAKE2B
d213c5df245979d9401a80f3c9890439be250efaa1b16b4c620ae201740c341663ae851e37d9fd372d727a8f753145a33ab20845f52082f9142a2332eb26c949
SHA512
399c118445769321f8282b2b597ffe021747e4b67dd11caa70241c7c325a862920d03ca3c8a61995f3f27595059cd2e3f09ab8a5d56138319c83f0b4b533d334
+DIST thunderbird-140.0.1.source.tar.xz 760372872 BLAKE2B
d96baa60b3e350bf205c838cb7ae825543a61694bb0337b653a0934fdfcb4386e4a3ad63a2d2effd6affd8dc04f6c194235193b14f6127b6f3e71f714cfb3503
SHA512
fbef1d0228c49fc9c11425b6be03bb7e44e6abc6f2027ee23317270ca2c6b0a935bb41b38667acf014bd9e1166cbe62754f1e919e04f2355dc4c833e015c78b8
DIST thunderbird-140.0.source.tar.xz 755175976 BLAKE2B
58c2bc3c5468e830c534134b9b4649ee4a3e7ab81e70052cf4ff902d518ad94a3293db3b6d9fdfd58e69133cb58febc424c7b97fcf9fcfc1413e58290acd29aa
SHA512
2e9a5fb44b21eba3e3295205142bfad666a65f9eea43118388968320597a940cf3c5675fbcf458fbbaa9e1bb85fe8a663feda6461b7e23f7103c5bb7a1103bd4
diff --git a/mail-client/thunderbird/thunderbird-140.0.1.ebuild
b/mail-client/thunderbird/thunderbird-140.0.1.ebuild
new file mode 100644
index 000000000000..9018be1b5076
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-140.0.1.ebuild
@@ -0,0 +1,1162 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-139-patches-03.tar.xz"
+FIREFOX_LOONG_PATCHSET="firefox-139-loong-patches-01.tar.xz"
+
+LLVM_COMPAT=( 19 20 )
+
+PYTHON_COMPAT=( python3_{11..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 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-pipewire 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.27.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.112
+ >=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/libdrm
+ 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-pipewire? ( media-video/pipewire:= )
+ 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
+
+ # Enable jpeg-xl only in Firefox.
+ rm -v "${WORKDIR}"/firefox-patches/*bgo-928126-enable-jxl.patch || die
+
+ 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-packed-relative-relocs \
+ --enable-release \
+ --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-gbm \
+ --with-system-libdrm \
+ --with-system-nspr \
+ --with-system-nss \
+ --with-system-pixman \
+ --with-system-zlib \
+ --with-toolchain-prefix="${CHOST}-" \
+ --with-unsigned-addon-scopes=app,system
+
+ # 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
+ 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-pipewire
+ 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
+}