commit: 96319b51777c424fcb8c186ac4c2d853d2a6c43d
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 6 10:12:27 2025 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat Sep 6 10:12:27 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96319b51
mail-client/thunderbird: add 140.2.1
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
mail-client/thunderbird/Manifest | 65 ++
mail-client/thunderbird/thunderbird-140.2.1.ebuild | 1156 ++++++++++++++++++++
2 files changed, 1221 insertions(+)
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index bc9aaada8b16..c50fb9514f33 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -328,6 +328,71 @@ DIST thunderbird-140.2.0esr-vi.xpi 518731 BLAKE2B
6492403e061a68d45ea4c94ecc9eb6
DIST thunderbird-140.2.0esr-zh-CN.xpi 507881 BLAKE2B
2c6328fdc494e465b2a45b28faf15a4891920737db4ec1a1634ece3cb01ba8ecbbe2a47789bfa5185c2266dabf02b034145f10e518334c8cf65fa6129cb56009
SHA512
83d598bc965e8bcb32d127d020c30072bef847eac542dd1c6bb78aeb5337013ac3cf0419e373423b396f25b086af4b7a4b38f3a4a2ad6c80ed1ecdffd6073c64
DIST thunderbird-140.2.0esr-zh-TW.xpi 511182 BLAKE2B
49e76ea71ffc8c922fa9b2ca1d8d42c1377b9e871f71810bd7e2f6df98607c6542a01c408e609e6cd0cc6c1e668e02073f4886d051c63bb90fd9bb84292a0863
SHA512
d2e2d51a8bd7c33bf2e61e3e936f1857f92e35da782a8b82d35665689624b97bb111be1925edc689ac599fad2da583fa6a0e5209aa36ac435ea4c9c705c3434d
DIST thunderbird-140.2.0esr.source.tar.xz 750140948 BLAKE2B
2ee887e89ceec009fe2e778d817769c835d13339f9040b255a3007d593469e59cf48a010e02e17234abb1dc9f231fd6dc286dac719048f8297586b646ec686aa
SHA512
6a10f95b805f00a0820c822ae07bc52ac39d0a55f084c319d27f01710d8a1d809b7b224da966632ae0a22658bf14e76c8fd7cec022718316c306c43809a4997d
+DIST thunderbird-140.2.1esr-af.xpi 316235 BLAKE2B
61b73d4bf6fd3a88cc1e3dd89ead33d9ec5ff211cfe4016b01f443d003b217e13d7f8c846e50cec228337abefae59fa4746d84f8a04bef30f2db8574b528e612
SHA512
b0e979ce543c6fde691f8af219f1c5d9d9601fbacdbd99fc8d98899d75227e5da31198cadf2e1167efc9e18989797823ca021a8c3a077201863778611b8a7b51
+DIST thunderbird-140.2.1esr-ar.xpi 435612 BLAKE2B
5af9b3cf625406bb7b9bc6159c0aa8613af90236a7e862ed412ac7d4635e6930a0aefbd481a21b8b265c6f546bf4ab4b9cd4110e84b8486bce0405a4539ace43
SHA512
a743cf3929cbee665d36ed7fe11682e36427b5779501338689cc55b9c3992d4c8b98b9cb71d2208972dd1c0764470c21dce4727c9819593ca530e88d5dec37de
+DIST thunderbird-140.2.1esr-ast.xpi 340613 BLAKE2B
a54e43df1a1dfbf86d0de5e55d0cd4592e8efc662ea9292edf9910d43fdb7d36ce26eee9361fc2ee64f56f289350571cf7e6f0c3119e570cbaf717d21832155c
SHA512
6c54d3172ee183bfb4586f773ce13f7ab5662e45399fabd4f54c7fd9ff9ba451ce196d1216f6de91364960567ed662658e3dd99848a8ef972de69a87e90c6935
+DIST thunderbird-140.2.1esr-be.xpi 520592 BLAKE2B
c6700c4742e2b43a75933dff90c3740fea1bcd1181aaa46d279ff0ae2a181e050faf22bd4f0581821cf3fe3043a447fc83b4561bfc2fa5ef2613d9ebb56ab7e7
SHA512
7df9f9fae5bd0012c525885acb2ec3b6b429140ddb7c51d946536c95e9698ef7ea0e6aa49313ecc038359c82f88102a4374b1284fda744e838d3327516a538e1
+DIST thunderbird-140.2.1esr-bg.xpi 535524 BLAKE2B
43fcbc4f17eafd6f556376898f06721f0a7808a62840470f92a14f689402737d72e520da04a4ba5df8966b1ac568c9e9e08476c34e1fe78545df4c11ede85d6e
SHA512
65b5902fc75c0be4cf93e9698056e33b94f82284cda2ac0a87ee702cff65aa0f57b9ae10070413664837013f959396c08c96b831a81b70e18119e78a5784095b
+DIST thunderbird-140.2.1esr-br.xpi 402698 BLAKE2B
db544bb3f6281cf3546232575fe3403fb3a0f10ac394ed80fe9ab8ebed5d0730f6a3f3bbbcfbbd41e17c780b9e9252ca0e148d933fdcbbbe4f35b88e2700857e
SHA512
c74bd4dc17305e1339f40ab28612b282f0e799e4b049ac6181129fc41babf66a8a95258e989a5d98d87e48fcb7f8d33884d4f038f46cd6d8747895282fd7a582
+DIST thunderbird-140.2.1esr-ca.xpi 440341 BLAKE2B
d48923a5f9b9ae3dd6c28db5cae36ea0d5d5d7123c47e3eb8a6eb6d701b65e8c7158296b7abe80e4a7ab5d177e16bdd67ddfe50f21a5317508a7d1c9e7eb4acf
SHA512
9c12a006b128de415174afb04f6044ec2431a4af930dcabec048981d22674f40173314135db2bb1c688f6648c561de4805d20700bee39f47b7e116ab5d82f018
+DIST thunderbird-140.2.1esr-cak.xpi 418050 BLAKE2B
75b4a2a594fd16a4b72cc7d0a804f2caf31391fe41e82c8440ab73abb31159de52ec2b3402ce81385758c70a76b9f1c7cd821cfbe5414884487275900e39b9c5
SHA512
32598cf32baf1041c677461207fc53de729192ee2464a1dbef215e1c462a5e9a8dc8d8d60aa6f404ca6d714575d3b22c100e618943d6310e904429744fcf939a
+DIST thunderbird-140.2.1esr-cs.xpi 519530 BLAKE2B
66fbc2f3ee16f48573a13c90f47a92cd0db6e610eda119a58a8f527cc9faa2c04ecc06c885989d890231d057497fc20935fd8e4f857571f90e9443705af45f73
SHA512
9a826cbd38b87928c39c94b7159edb1a96abc67c54158be30ba26bb8682454d44c8a751fe487dfc77612bfc42ddd00c2cb09bca5f682c62b5d6d7535c0e98e81
+DIST thunderbird-140.2.1esr-cy.xpi 487641 BLAKE2B
24d6d4cf2671a188c2a50348c4b082037229786a40b12fd59397c31c123649c2da8ccdee2059ecc42402052f878fe796166f95823e70db876a6f7dbc234f28f7
SHA512
0c979f92ffd16633d3d0166014667dc93775cb1465306df138167fa566aff53d687803d07548d32baf8fd7e16abaa4bd71da56031ff95f158edadcdb73a790d3
+DIST thunderbird-140.2.1esr-da.xpi 476633 BLAKE2B
84fb30c14aa8eb652b7634cd4a2717e4ccf726435e1ffa4461a458f0acad89bc225a30b8128035404b83fede58c219e5332c74ce6c18dbedf2d07cd370f7bd86
SHA512
ac03f7dd8049f7f916fedbd316701ec0c8b8b142fe618462f299fb2c57da83cede806d66d4418686f10b1ecdf4e7a084e3c18c63b2f8ad67acf0dd4b64204c7d
+DIST thunderbird-140.2.1esr-de.xpi 505053 BLAKE2B
5af6e3e99bc3f99811898a0d30c4d3f1457ab0c220f881ca97b9d13d234dd30cb3b9884f63f6cbf92e3faa231b26225478d95789c7026dd9e3781e27524143b3
SHA512
481263f88345dddba699061a98993c23ccab030828a19deb9b80def6ec11989984d4fe1156fe053926b5809ee202ab93aa4f1daf642e7bf02cec2b844f485a99
+DIST thunderbird-140.2.1esr-dsb.xpi 517896 BLAKE2B
4789a41eed479ae17d9e92e3d6168ab9f1b199607c0ef1c9370dc66ba1d7b4cbc648e07a0916019d885ad0dac285cac8d2da2ee8b67c4589a973c5d3d6c7f013
SHA512
e7f276d29feff662186cddbc1b7797454577f1c1e7d9ad02d2d1099257369a4c53002170260d4d0795f6b12183ec52370f8b53fb4354f975b3929f8189da6b86
+DIST thunderbird-140.2.1esr-el.xpi 609056 BLAKE2B
dbd2468c9e974ba959b16b42e853d625f6dee943892bf7e300c10daaaa006bd7c9e4cbd3713a8644f72cd2cb5e68daa641094eeed40ebc3919a9ca5c80824d01
SHA512
79c1608516571a38819941a46279ec8ebb29d98d4232764d41974d2440d0a12c8eb6fda3fce512897f44060c4003a45b36379512f6047fd50133a221c7c9f3e0
+DIST thunderbird-140.2.1esr-en-CA.xpi 451437 BLAKE2B
8f9421cf317d2904134cee6e06aba8e926b454afda030851d84d1f3de112f8a9a9541fcc3b2b86cd1b1104cdc6bb1b2993ab1046db572eece7fc0921ecae0f6f
SHA512
c0d24d12ed112d01b111eeb0c7a0e4faa5772fb76918406ad0af3c705e82cddea3a96e1ebbc3827b4aca96ef97b7d0dd26faf2d2bd402dcd319677f1ea458309
+DIST thunderbird-140.2.1esr-en-GB.xpi 452061 BLAKE2B
047c300584670f34e66e8650a2d9ab642524fdcce25f870b8d9dbeb917def130ced00d137303207f49014ec48b4e3b67068bcce42ac42febade5444012b53d38
SHA512
1647cf23fd663927785d74331e6fb046403669995b6609cad2baec103a41f9ba0ae2ae630fc44f6a9136f60835fb0673ce868c126fdf1f926063163cec31dbe2
+DIST thunderbird-140.2.1esr-es-AR.xpi 495293 BLAKE2B
bfc6e25760237bdf61627082267c1415b21e67ed39c8a23b15b7441cccfabce931f4026b52e54fea27227d92432c37bd61190fe912fc8909adbef0f7803dceba
SHA512
02a5f705660d3696b8aafd8a372e972daf25e8eb51526ccc764f4b154d0f004fd297eaf516f69927c958152482755d381fa1a837d75414e21fe6bc7ac8d2689e
+DIST thunderbird-140.2.1esr-es-ES.xpi 497276 BLAKE2B
ce4a66a5988bb1a135f1fd292eb527dc57ed5fc32a4cec346724344798efe6a00af2fa89fd6351ae21e1e3d26a9d54ba1443cd9dccb980b0a565050fea9ccb0c
SHA512
4d361d02f97320bb25cb4792d750e5141704acbdf7c0b37169dba1781860476882c62cc4278e17a1246c4cce0ac774362a20b55b19b6197931077c7064f7c6a1
+DIST thunderbird-140.2.1esr-es-MX.xpi 488191 BLAKE2B
ed82647eba50be349e2bc2a80a244f5695b4ab11267ec883d732f3e27e38ceed79897225310404ef5373276dd02ad9a23bfb60b09dc42aa56a6201dda0bb2eb1
SHA512
0e42f7494c7a9f93fa0bd7a26247e9f6398014b35ed6f366a423614d97a1a58fe3ef6f1ab291ab2c25e97d01ee7aa734233d8440e1b4e9b9aaa42c4ce7469f62
+DIST thunderbird-140.2.1esr-et.xpi 443622 BLAKE2B
7ac2385f557768b29007ba61c58dd2d45109c98dc934fdff6e2e23bb22c7fd3a2beb9f6f79cec2d5924fb82c7689c4c7dc9003bdd473f4b71c38f80bdf29855f
SHA512
116f4b8194e52d34ea32f37e0dd1b2290bb5e7bdb775c7ab9b4f3c80bb8ce433a04f31cf1a818b36b4a769ede09150344f0c53a733076827702f9661832c61e5
+DIST thunderbird-140.2.1esr-eu.xpi 471890 BLAKE2B
24a7e876e95e6951a4a7ea6b144a79ee996be6b7392f48f11878885b04ae0cb62329f56b482b6773b7f9127fdb3aa5f32a82380ca36c11b83ea3d2a00e050aab
SHA512
191e12b5c899a6395954beab7dbce3c031a050c7890009510e47a1ad20f259c47dc3cdbfbe3506f990d7fad9b44762e0c6648a3eec8e990e61163bba3c3bb2bc
+DIST thunderbird-140.2.1esr-fi.xpi 473726 BLAKE2B
ca7b4ae5f04cca47dbe2d4552427ca3f34de05b6398d42b923779a897db6fd081e3f6f50b0064ff1ea4c1778d5dd4ed496d1c645b6bae08705af83135b5e2e05
SHA512
879bd3f326dcb9163802580eabe9b663d1acd35cd7732e5a5658d72f4b286e47b7049b65a844f1fed8702c787176e383ca32305723bda207c237f8e8a3444a58
+DIST thunderbird-140.2.1esr-fr.xpi 508254 BLAKE2B
b1098a799142b8fcf67cdfbf7a2dc59604cc4a4f5db66182efb81d58672880eda5ace416ffce1cd07cf532908def11a1e2eccf9bf05dd74d641841bee47b7534
SHA512
3fcc915d2060c3cde7ce59814fbf4e61f4085e38c12a8693c84b519fc9cbe50e12fe24f4a94b8ecf6f887465443f2ac67b867382b6eee8561ede75621ffd00c5
+DIST thunderbird-140.2.1esr-fy-NL.xpi 490656 BLAKE2B
05ac32c8fc96470fe3e9ec4457fbe914bd693f5d516b2e663f26c82c1edb12469e395a4072e2f422985dd284b52d6ede3ff9b8c1353c70a197b733c567fa5848
SHA512
d9fa7bf2c227cdeefd0d768a456971eae8745f52d6820e2ac1509b49ebf431e51ee9476bbed3cf8b843d9d17738ae6be260305f2db55c4716ab8da0b2b2af2ee
+DIST thunderbird-140.2.1esr-ga-IE.xpi 376764 BLAKE2B
e2ab6c3440db1ee0691185dabbbfc471dfdcdfee254e2d8ac251f77169e1358166b4101f2e94745c69d95886329f5bf3ecf0175692fa2e089ff791a836e96b08
SHA512
6fa8c02e3a6bae526588df624112a20250b6685ad659578f1efe9ae01d03d1605ba27a031b1670db219824f2817d90d2711fc6808710397a96483f0cbe263849
+DIST thunderbird-140.2.1esr-gd.xpi 461985 BLAKE2B
94599a552886a6ea9c0bb8ef3ee6f525faef081709dbe6acd8ffebe445093137324809ebd9de712296aca91875c9950c3a825b9f9672bbc4b7fe73e2de6db20c
SHA512
bed6195f1f5fc05880572d1bfd8481f41066a79757183f1f3902c304e87d7c1d5345b8f877567589fae1600fa5de7ae7c1166e7fd30f35d7c9b434814bbecd20
+DIST thunderbird-140.2.1esr-gl.xpi 486685 BLAKE2B
043643af3363221bd2e2e95ec20f91907cb9366af60bb74e6c2bc4f6af42203313ad9d3499ee0bd7c2faf57363bddedca1dcd3686918ff6d4db5264010e33483
SHA512
127cfcbd0fe9827502683dacab5ed532b438a4c7591c0f3e4edcb5283d9f16bd358a5b9eb65e635bd8179c7c0b102f35c726eb5add4f7dd9967f1f88f3aa06e6
+DIST thunderbird-140.2.1esr-he.xpi 441519 BLAKE2B
9cd8763200d1772a0e0609f37efce818578d4ddaea87f7a336df8f94b35dda7fd90e09ebe68d4115c8740a6c0ff5893906defa1c66b5ea66b5cc288c07fe8761
SHA512
bb0d3b27b730043067cc7d319e4c20a6aacb67dfb601db808d2f41ff1b01f30543773b0828d15020b92b003d103b6e94818187175f27926a73f44b3073d3b0fb
+DIST thunderbird-140.2.1esr-hr.xpi 463317 BLAKE2B
6768478f622c528655990e9d7c0884d6ac5a38a388584396eff39b7d6b963f6cb6de22cc72da7b11fc249f9bbbb108faa50072f002de3ef7ce5d6621be0d4ec7
SHA512
49e34bc696afe92000b9ccc56ca6765db39787bb03b3c3e349555418282dcba8046b6e4ab1eb37dcd6c9fa1f18935784604f238b5f94bba6b4857980e6d75b46
+DIST thunderbird-140.2.1esr-hsb.xpi 514935 BLAKE2B
10f8a0c1ec1e60f80a7cf248fa9639f0266a1fefd25e139d64589ba1f1edaeace9c2633acd099d08f7cc5e001af9e82739d3d4f5ef5d7147eefc1fa68d35a112
SHA512
f80dbd17612b03b66d31eefc802d779074ce0826c4e946ee9e3709e3acf4110796cbbd3f8886dc5a6968e952764435a7fa17d286d262d459d197f9586fb076d9
+DIST thunderbird-140.2.1esr-hu.xpi 517536 BLAKE2B
0cbdbd875f5bd36d59850ae112e661a10b4387078758974935ecf664289acf2b1873fbe325dc86d086717790abd465519460f2ff1b8e04c5e4d77a7e83c4aaac
SHA512
76fc3df6ec2390a3487fce8b9b9162bc8e7c31f15ac1a45911328ddc91882e6ebcc3b059fd7703820dbab0f5cf1eca4de736e2a12ec37e60990cb3c977693bcc
+DIST thunderbird-140.2.1esr-id.xpi 463486 BLAKE2B
e2833f4725c9eb71b88d3f6cce71b644b7990e4c8451272f8365136b12d5533148a6854669dd8f9cf35f5b43f036510d1e8fdada460656209051f3455ebfcd7d
SHA512
32a1aa1554d2ee3092e9a7545f602531322d7fe6ea886c0a5e3e418346c1d654e8bfa12ad6375b4cafee5dbf88e8c4b61ca2c96c465a7aa00998bc3eff3235f6
+DIST thunderbird-140.2.1esr-is.xpi 481530 BLAKE2B
92bc4a7cbd7f73df454a92054fcb5bbd56de42edd2c5b852eb2989f3178e02fe1fb84ac46e11952d853a3f90af8dea33cc70866480c157564037c54e3f193004
SHA512
0ca5b79def7d9a56d74b0543f4cf9d637e714379be7c4a40db32d58a236fd51b44602f9b0bd967d9eb1537f6b8b1ed36276c824266d1150483191a077b3a5b81
+DIST thunderbird-140.2.1esr-it.xpi 488515 BLAKE2B
02be46eeffd148c39acb41a01ea7124f1e0cd365b4f5f8d3fb5b32aea70b091cea27f93328461228c3f2f8817c6efd77ac3449d4e8591b44fcd6a40988ea66aa
SHA512
db1af4f3d9fa05a248299fae3d3a27e45cb8e962836bf8294c5cff8023cd8b31adfd5eef1301fcc9ae68546c8ae762aca25a5978d9983bfe326ec87c82bd5af3
+DIST thunderbird-140.2.1esr-ja.xpi 539348 BLAKE2B
a2346cff7ac0cfa2fca2033bdc03fd6425b823a5d654b7197989864549e3ade2281e51a0ee6cb94129b7f8930da7cd14d836c6ea75b6e240971be060431189b0
SHA512
602392dfe75be18637be5b76cec914df75ee64018e94fc59358fed4e23860d11fbc2817ea801721f8b54d5abc4763fcc9ef9d6a181d43e0e5f2c969b84130bac
+DIST thunderbird-140.2.1esr-ka.xpi 551138 BLAKE2B
97edfee3e561dd3b1ff752520cd7ddecda1e0f36dcbd7b1f87d2b557d801a15234f0b00a0f7ce6656b8f69b48acd0dfc7831b439a530b80da354618f74cc1e9f
SHA512
c40f542b46ff62dbe647fae721b4daa43716335e2464d0fe92c7e055573475485a990ed45b37855429e9a7849e89ffe3a81eca3bc40543d45337743d29813a70
+DIST thunderbird-140.2.1esr-kab.xpi 469071 BLAKE2B
15b0a3f1baa13f64ac545645a9709dbdecf53a1448a2c26d2bf7e29e32bfc054b67ade38edefc5d392e5b9f74da83aeed567a22519599b7682aa3f1b3645ba5e
SHA512
4bdd2d3684f66258eb240ab98961986f7ab805f97c7f87a005ac7bebc8fea578a1f1842aa28ca5080fd889530644c11afbca075001c770f19aaaac91aa966996
+DIST thunderbird-140.2.1esr-kk.xpi 573363 BLAKE2B
a824887c1392e9f12c96908c3a81ea06dcdb898920b79f8388e537ebccb0e5881d725b56505989aa16eb523e0a370002ba4756de96c53afb2d59087f0df6bf45
SHA512
65ca67ca7b6c7ecb87abac2b5c31ca1b977f95b45b212b7936f12ddbe883f13c027a901923a53e637ba83ec3d5a4950b784d0ecb56e25bd899ca06e086ccbb68
+DIST thunderbird-140.2.1esr-ko.xpi 514507 BLAKE2B
8a751d831689d5854721ef7eba78aa8a8e22af705181fc16d3a2132b90075d8461a40f1d0f0db8480811d2c93839786bee1f570009b5822cf0a9bcceb2a81722
SHA512
d862ed80b9222ee0483205c865a28e3f95bb7ff9f63da3daa08246bc5e34d79669d03abcd41bec48aa99864ec3f7fab1e5863c890f1514defed1de81b751e191
+DIST thunderbird-140.2.1esr-lt.xpi 441891 BLAKE2B
c7a66473bd06cdca1a8549440fa2f03ee003528c8aa5e9a363593beb474d3509b9b8dd30daa7aad019f1b4d24fb504c4c0b0c917eb7b14f6e7b4259d0bcfa03b
SHA512
e9d1460045ff9c98bf27490cc78417bdf88ef256f0931fe6275127c42f1823099d073c7a173fc248a1890c83c97a7fd56bf4df1862483e54b3f8ecdbfba69223
+DIST thunderbird-140.2.1esr-lv.xpi 391817 BLAKE2B
fec5b015f5e94f9c33c4219ef12c85adcbd17890d401f39528ac0ab947717dc7393d6ebbc20aee5173fe2fe85010b88a94981427017f485ecd5161ed349b5c97
SHA512
ee89269aedd3d6901bb0d4eb5c514b594c79d9cd2f5320ec74508c1f20b3d1bbe2f165d9758ab6ebbd0929b5777161533a7b729930a8002205facb26ab60c7c7
+DIST thunderbird-140.2.1esr-ms.xpi 352190 BLAKE2B
44b03d3ded4fed60e7375ce3394151db1b4437cfe86e24588df75498df2235cb4a1965c6019eb0fc32a905802a79ef48dd79b98ba95027daceb2ddaf2f60c528
SHA512
d24868f355ee8c31c63ea4dad58aef2ff10fa7c2a24e7b5135dd87a270d0ecd314d371e9fd456494a9842e0c0c5355c0ab984bd72e8116f2cf293935b3ebc030
+DIST thunderbird-140.2.1esr-nb-NO.xpi 447970 BLAKE2B
d815b5f4f3802f0ccc50642861cb9895338f72efcd1cea822725ef1327ddfebb517735330fd1b566641d4b0c61de2f5377612e8d5950e6987d99f697568c448a
SHA512
b34865269bc64fbe4192aeda6f7ccd49a83a3f13beb6d713ddcab21de6d9e4b7590b352407fe68672ff01b1e83c545eda2c9a67c5b9a51e9f632b96d69349753
+DIST thunderbird-140.2.1esr-nl.xpi 482127 BLAKE2B
5839cab9bcd49aa216be7179d2db3af3cf4e87e051993aeda4eed022abb8d4b4d533ec31ef9904b7e9b89ec6787c415e7a83e7885792c1a5ef6a21fc1e77dfb0
SHA512
fd1f76b82cd78e32ecfa8794b17f8625c3253791993727d995863eaa14473792ab2b550b34a451d9e78327cb6d6ede5d5e3a8cd5ecb7c749b934e4a9fbb02544
+DIST thunderbird-140.2.1esr-nn-NO.xpi 469409 BLAKE2B
1565677fc9263de7a390ab377013556c91ccb5ab5a4ffee5de4cbf612fb3f8d77d983bcfe3c7ece9da69e2e6daa9a8b4a3f3acca5865bb723ef8e6d392d075fa
SHA512
38574b7df87a3c4b3417aaa4c7aee6fd62faec34f8bb2480f471cb34084e4e8627190026096e0a62dc621e3179899f8498118024acd7e1f3dee2eb4c7fe195c8
+DIST thunderbird-140.2.1esr-pa-IN.xpi 434257 BLAKE2B
beaf485c6e80e41bc4ba147de736b18658d2a94c909ca49fa8159a3feb79e82c56ce887487106918b5a26089b913af18976ec93af7e43f4099ce50b7e34629ff
SHA512
cc5f412b1579410611c0aed5b3efb7a429d027edd5be9c13d7d9c225af81369383a810ca950e333d3d19032f726659a5016518ebfa43d8204830ddd73ec31093
+DIST thunderbird-140.2.1esr-pl.xpi 515036 BLAKE2B
3c271ca3b8c942a09db6f9a5e34023fff8f546987a058749b6c2c367f48f2304a2ad8a7eb937d38bd6e479c691633e81537be6124e97ab0c7b07496e827b8db7
SHA512
4aad2206a61c7fe3740ccdfc05e693f03d20410410325812b5482cd97f5201d644aec0f1042b600f530d0b033a16d64e3cff98c1a1483cf5e0acd7ebd5c05356
+DIST thunderbird-140.2.1esr-pt-BR.xpi 489966 BLAKE2B
44217ebae3e053fea8f0b44f9943c8b01836c2464a311f21e0151bde0514f46ffe39d650a86e39a998c3e594d676188cf435aacbc7995d5376b9824589f21d9f
SHA512
8ef3f1617dc52e606ba6c1a21cd00b253abbbf3297ffbdbc5da437a4d63e679ca7e4b5cc6ae4cabdfc9843f86813b1109c0e4c34b0e0ec74e97d375af3b5d594
+DIST thunderbird-140.2.1esr-pt-PT.xpi 486350 BLAKE2B
683191253d1a8e2bc1980568ae874fd9739207dd4019064c736524236fbc045596b2c550487dd8c051367afd5e1a367dce2bdff5da2d2a7d81cebb5d67e34cd9
SHA512
047ca5ba5a1b7ba541129bd1795f9f4dcb0a18e180f4be4fcb0d4565edbfe7a97b5e12fd1bd961e0d9aaa361bc76ba63621eaf0f85ca861e91a4013ed1b3644d
+DIST thunderbird-140.2.1esr-rm.xpi 487144 BLAKE2B
c9329ed8180d188fea42b63d0b6f28ac834880eeba7a3e8305b1463d794594c886681ba4fc808b2baceba4f8617086a7269218a528354ee6895827a9a09ae11b
SHA512
ce1375e5f2a10ebb6fba31ee84dd8d249ce53bdc66fb2b814ca37b109431b363f64efc749c086141ecaf005f59311d8124b526e0437b47f93f3df3403b1d1da8
+DIST thunderbird-140.2.1esr-ro.xpi 427192 BLAKE2B
5631da8fe0c2dc001c5c3c879a60813e7b6bc4ec7fab8372f530f0afce2b7eff05159205cb4443948ead5decc89d98d402fd198c1037b2e3294db0aa6bbc2c82
SHA512
391d37f6163a82f20ba320250b1ecfb7f8d5e216aafa09bfed1d54d199fef0a88f2e407a4064e606df813ed83f5fe9ec9610236d1db1c09e1facaee6f3057513
+DIST thunderbird-140.2.1esr-ru.xpi 593151 BLAKE2B
c468ee42efa538a691fcba404cc596b80de82f59b93b8a462afa1e0b5033597f8765a81b719d5dbf97c679d92bc2f3835a108410e20bcd88b908a46dd57abad8
SHA512
f443980543c3402cc650bb8480fb897cab2a50589c4e59269ffcb2158f8c61336d5d4f1de6d67448873ca60e10b5110337f05b9b0b0bc206351d0e9e1f3f840c
+DIST thunderbird-140.2.1esr-sk.xpi 519231 BLAKE2B
4e7cf4f390ee9fa4a2c7d9d65c016747eea0455d5020b9c1853daa4fdb15b62234a77b89799586ace8f7d17220a86c5e0268eb1ff8d9917d598c02343c671ecb
SHA512
9d8241589370b24c0bf80fa4282655769a79640578e13c77342c298c756b106d36a230e83111455afdb14e6d6c0fc5834973fc7334b6d625c1e0f013dd20005d
+DIST thunderbird-140.2.1esr-sl.xpi 485948 BLAKE2B
360c16d7f6e07bbee4f0dc5989cf917ed1092389e4a643e1a65b0e50e3633ebc20dad1de809b76a0230a432532aea522da4796f3f5c92c9cac741a3a4c6ed7e5
SHA512
60a9774776f5c71863b73a5d595a61705de46b99307ab7ab7ba0e7d39012432aae8e2763cf05ce10b34ce3217b1b608c0cc4adc44dc2f5582ca899d386b8772f
+DIST thunderbird-140.2.1esr-sq.xpi 504071 BLAKE2B
200307888cd5986bfdbbce1b38ea5e2ae3d01c4c4161653a44abe0bc87899c7ed414597117436500c7aca2d83f326a3932948c76b6f02bed2c32c7ffe1466ecc
SHA512
055fc85907c79e2f97bfc7eee161af7168ffe2c1bdfd734a0d70b59c0ccdf4e5f54b134501d8f4bc713e6515a7f986ac334c5369be9d40648073b30fd9cd9578
+DIST thunderbird-140.2.1esr-sr.xpi 496042 BLAKE2B
2425ecf015e51d85cba200a26b6dca442aa6feefe3ce9fd6d1b2656492860b454fecc603478b9e873fdfa6689717e59a49d88c858cc325a3d494e1f5c6a6e544
SHA512
8f279c83bbac8aadaafbb241065e9f30fb04fbff38564a43ada07b16f2e98e95dc22e030569cbce7949c8bcc1b77bf9149c80dd8e832d63bd3a44aa7295f474d
+DIST thunderbird-140.2.1esr-sv-SE.xpi 484413 BLAKE2B
494fa24b403ffbce06f39b640d1f9e18e1541d14609c7112be06aea3363267deb973792f3816f62540d819cc872e2eb0a0f7af93d24d70fc6a4967a782f87590
SHA512
c9887ad0545d3d1a3667f1769950e23f2a022b9d75492cd4290b9cdbb8c82239c22f8b949e825d52a99271e18329d8b3de4f21a2406fb06cb3947eb099a82ae3
+DIST thunderbird-140.2.1esr-th.xpi 565682 BLAKE2B
0f2ecbec241aa188b3b4f0894cc468b5a34e419cabb82555fce1633f6ad5786026a93b1e3a70af611a3685b647389d1d1396495a35f0103f9260b0a8331e324a
SHA512
bf84d8dcdbc64f44afa83a2b55df20ac0d7f875240db876c7267fbd5c1ad83f2bc45642bc557deda9fff72ed99cebe6e94ca144431aeffdb99bddae5dc3f0e55
+DIST thunderbird-140.2.1esr-tr.xpi 495428 BLAKE2B
3246f6fb23a15fa2706e6ccfed653823299d0ea364607f174870ec74873d82e9a4ad09051380cf5c742c451891c71890d6820416e68737677fca78d86a0fdae7
SHA512
3797366bc688fe66483e1351846d22bf35fa56e2c8425a77e01e38eaba5743b8a874579c240445fb3b645dd11d54bbb3803c4c2ee1425b6921751fced1615313
+DIST thunderbird-140.2.1esr-uk.xpi 582186 BLAKE2B
f8a80cd17cb94268849607058939c97952dac4495cd92dcdd19113db109dbec24b2552f97342b0f92258372a5ce0c40b1fe5d32cc2962d69f0fcae1284fdd281
SHA512
2dd5d361b963fe6ba7c369ab10f40d5c42ccd4e149b50dc3521acd63a3f831183d2d99aa2425f59e468eddcdf72b454d356701d044267c981a3ae211fbd63276
+DIST thunderbird-140.2.1esr-uz.xpi 355291 BLAKE2B
78c425492e9a85c256674b1a9460303211ea3a1f06f2fadc724d0b546dfe3a2898e90f9e8fd5c0677de7ba6d99f2739b70a89d28867eb6025bce27d748664ade
SHA512
3f75a97bc0b6941aa42ac9a6e20cf3d6c98194a7c59ccd89916ad30b91da256b49959955473898076abf2493a35dc748edd913cc0da72989aee1fd116688a162
+DIST thunderbird-140.2.1esr-vi.xpi 518730 BLAKE2B
4452a1fe7be3f7e10b90beebd0a0043e84c245233a4f7fef20ca79f9c3a3df5c4e7119c2ac37fc1a5bd44c327b7595dc5e0d7bd17ffefdbac7c63f1bbaa0ad32
SHA512
7872c07b2ff9a5b7d0535ba1c82ad1a49d30774d14f5c71e6ca3d9927642155423736b8bdd5e53bee77c6045791429b6a29ab2756965a2076a585eff2e757a3c
+DIST thunderbird-140.2.1esr-zh-CN.xpi 507880 BLAKE2B
c9e95385aae95b843963458982cd1b29c35726b95d80713ce76087c9831288099f9c04e4a8d92c7a1f7cb668cde2db9cc968076f97a47433840efb216d5c84a3
SHA512
93ac8b27e2f9b4acaf2245c10d3bfa095162f191c38e12b671590ee559df6ab33731ccdb6f3f86fd3385ed6f251947b947511065d207c230343674b954b02870
+DIST thunderbird-140.2.1esr-zh-TW.xpi 511181 BLAKE2B
0deebe043ac0e1177aba024b91738968fa0c832d6d2fa37e4bfba1fe3871a845e743445b211f4bb3cae161045166473d58dfbd59966323f0a0b3ebcefe9df5c2
SHA512
fb317228fd3a8fff88094df377006111ba2b600e83b6a11d16508df24923e5ef85ad2e91ceabf7d67716953319bf3cdb6c5d1d044843017b777635d5c103bf73
+DIST thunderbird-140.2.1esr.source.tar.xz 766037104 BLAKE2B
3bd11ae3ee382204f2c8ea72484c5da129f81820ef45c72d9fec5aba384dc4ddb31e41ce67df99f7948f61c6ecc0c542ef0206d54621c86929ac6fae0eaff6de
SHA512
fccef5b8d60cd1aace585f253f52587cb3ff9384bcca2e150d4b52c8106dcd19e4d911f0ac634c0adef2da5034169c81667a5634ee14a5f5fd7cf194f6b86576
DIST thunderbird-141.0-af.xpi 316528 BLAKE2B
cf495fff6dce79f769348a1c403e8cc754320b7cbf73b1d06318da0db8de0f0ad533a6bb4b1f6e1bc7887d68cb05048af96064aea0ced8266cdfd92035d417ce
SHA512
9bf54ff65f9f607bfb44cb94cae11cdbb14fd2ee49bd1eebf4d0a8f4777085004f5e8e00e5719c514b09817c801dd3357138a2882a79e6c19626e818d9818fed
DIST thunderbird-141.0-ar.xpi 435929 BLAKE2B
e68e34ba41dd78183e0f1fe53b5bac475acdde75369a99e2cb86e5b13128f6b60a14d148bad1864ba2bf7b1c12df246a168601fe870694eb88d6ee004aa80ffa
SHA512
088d6d7868f60a77fda04c4bc39fa63fb1cb8a93e99a232ce2d0cf2e791e08f5f8dbf383095b848fb5ccb431c33aeeb8348b27fb647becf065d901f5f4a6fa4f
DIST thunderbird-141.0-ast.xpi 340911 BLAKE2B
96066df0a7b63f30cd39c7b6e125b99f6d615a62e5353ecb51f1385cee45b20daae1d3269169fa33ed5c54c678a813454a1e35f24234960758495e1bdfda399f
SHA512
bc48e9667d3c6becb2913bcd4d8204e9b9d4f902935d09fe859bc9d245be579dfc691786c5b6c061d25910d19604b4d63fd61bb0d833f9dfa1979ef4e4413b84
diff --git a/mail-client/thunderbird/thunderbird-140.2.1.ebuild
b/mail-client/thunderbird/thunderbird-140.2.1.ebuild
new file mode 100644
index 000000000000..c80e1b806b2d
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-140.2.1.ebuild
@@ -0,0 +1,1156 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-140esr-patches-01t.tar.xz"
+FIREFOX_LOONG_PATCHSET="firefox-139-loong-patches-02.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=yes
+
+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
selinux sndio"
+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
+ 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.113
+ >=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-1.4.7-r2:= )
+ system-png? ( >=media-libs/libpng-1.6.45:0=[apng] )
+ system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+ wayland? (
+ >=media-libs/libepoxy-1.5.10-r1
+ x11-libs/gtk+:3[wayland]
+ )
+ wifi? (
+ kernel_linux? (
+ || (
+ net-misc/networkmanager
+ net-misc/connman[networkmanager]
+ )
+ )
+ )
+ X? (
+ virtual/opengl
+ x11-libs/cairo[X]
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ x11-libs/libxcb:=
+ )"
+RDEPEND="${COMMON_DEPEND}
+ jack? ( virtual/jack )"
+DEPEND="${COMMON_DEPEND}
+ X? (
+ x11-base/xorg-proto
+ x11-libs/libICE
+ x11-libs/libSM
+ )"
+
+llvm_check_deps() {
+ if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then
+ einfo "llvm-core/clang:${LLVM_SLOT} is missing! Cannot use LLVM
slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use clang && ! tc-ld-is-mold ; then
+ if ! has_version -b "llvm-core/lld:${LLVM_SLOT}" ; then
+ einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot
use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+
+ if use pgo ; then
+ if ! has_version -b
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+ einfo
"=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2
+ einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+
+ einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+ af ar ast be bg br ca cak cs cy da de dsb
+ el en-CA en-GB en-US es-AR es-ES es-MX et eu
+ fi fr fy-NL ga-IE gd gl he hr hsb hu
+ id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+ pa-IN pl pt-BR pt-PT rm ro ru
+ sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+ # https://bugs.gentoo.org/587334
+ local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+ fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+ )
+
+ local lang xflag
+ for lang in "${MOZ_LANGS[@]}" ; do
+ # en and en_US are handled internally
+ if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+ continue
+ fi
+
+ # strip region subtag if $lang is in the list
+ if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+ xflag=${lang%%-*}
+ else
+ xflag=${lang}
+ fi
+
+ SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+ SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi ->
${MOZ_P_DISTFILES}-${lang}.xpi"
+ SRC_URI+=" )"
+ IUSE+=" l10n_${xflag/[_@]/-}"
+ done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -ne 1 ]] ; then
+ die "${FUNCNAME} requires exact one argument"
+ fi
+
+ einfo "Clearing cargo checksums for ${1} ..."
+
+ sed -i \
+ -e 's/\("files":{\)[^}]*/\1/' \
+ "${S}"/third_party/rust/${1}/.cargo-checksum.json || die
+}
+
+moz_install_xpi() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local DESTDIR=${1}
+ shift
+
+ insinto "${DESTDIR}"
+
+ local emid xpi_file xpi_tmp_dir
+ for xpi_file in "${@}" ; do
+ emid=
+ xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+ # Unpack XPI
+ unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+ # Determine extension ID
+ if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+ emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d;
s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+ [[ -z "${emid}" ]] && die "failed to determine
extension id from install.rdf"
+ elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+ emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p'
"${xpi_tmp_dir}/manifest.json")
+ [[ -z "${emid}" ]] && die "failed to determine
extension id from manifest.json"
+ else
+ die "failed to determine extension id"
+ fi
+
+ einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+ newins "${xpi_file}" "${emid}.xpi"
+ done
+}
+
+mozconfig_add_options_ac() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_add_options_mk() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_use_enable() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_enable "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})"
"${flag}"
+}
+
+mozconfig_use_with() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_with "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})"
"${flag}"
+}
+
+virtwl() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+ [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to
be set; try xdg_environment_reset"
+ tinywl -h >/dev/null || die 'tinywl -h failed'
+
+ local VIRTWL VIRTWL_PID
+ coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo
$WAYLAND_DISPLAY; read _; kill $PPID'; }
+ local -x WAYLAND_DISPLAY
+ read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+ debug-print "${FUNCNAME}: $@"
+ "$@"
+ local r=$?
+
+ [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+ exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+ return $r
+}
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ # Ensure we have enough disk space to compile
+ if use pgo || use debug ; then
+ CHECKREQS_DISK_BUILD="14300M"
+ elif tc-is-lto ; then
+ CHECKREQS_DISK_BUILD="10600M"
+ else
+ CHECKREQS_DISK_BUILD="7400M"
+ fi
+
+ check-reqs_pkg_pretend
+ fi
+}
+
+pkg_setup() {
+
+ # Get LTO from environment; export after this phase for use in
src_configure (etc)
+ use_lto=no
+
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+
+ if tc-is-lto; then
+ use_lto=yes
+ # LTO is handled via configure
+ filter-lto
+ fi
+
+ if use pgo ; then
+ if ! has userpriv ${FEATURES} ; then
+ eerror "Building ${PN} with USE=pgo and
FEATURES=-userpriv is not supported!"
+ fi
+ fi
+
+ if [[ ${use_lto} = yes ]] ; then
+ # -Werror=lto-type-mismatch -Werror=odr are going to
fail with GCC,
+ # bmo#1516758, bgo#942288
+ filter-flags -Werror=lto-type-mismatch -Werror=odr
+ fi
+
+ if use pgo || use debug ; then
+ CHECKREQS_DISK_BUILD="14300M"
+ elif [[ ${use_lto} == "yes" ]] ; then
+ CHECKREQS_DISK_BUILD="10600M"
+ else
+ CHECKREQS_DISK_BUILD="7400M"
+ fi
+
+ check-reqs_pkg_setup
+ llvm-r1_pkg_setup
+ rust_pkg_setup
+ python-any-r1_pkg_setup
+
+ # Avoid PGO profiling problems due to enviroment leakage
+ # These should *always* be cleaned up anyway
+ unset \
+ DBUS_SESSION_BUS_ADDRESS \
+ DISPLAY \
+ ORBIT_SOCKETDIR \
+ SESSION_MANAGER \
+ XAUTHORITY \
+ XDG_CACHE_HOME \
+ XDG_SESSION_COOKIE
+
+ # Build system is using /proc/self/oom_score_adj, bug #604394
+ addpredict /proc/self/oom_score_adj
+
+ if use pgo ; then
+ # Update 105.0: "/proc/self/oom_score_adj" isn't enough
anymore with pgo, but not sure
+ # whether that's due to better OOM handling by Firefox
(bmo#1771712), or portage
+ # (PORTAGE_SCHEDULING_POLICY) update...
+ addpredict /proc
+
+ # Clear tons of conditions, since PGO is
hardware-dependant.
+ addpredict /dev
+ fi
+
+ if ! mountpoint -q /dev/shm ; then
+ # If /dev/shm is not available, configure is known to
fail with
+ # a traceback report referencing
/usr/lib/pythonN.N/multiprocessing/synchronize.py
+ ewarn "/dev/shm is not mounted -- expect build
failures!"
+ fi
+
+ # Google API keys (see
http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own
distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+
MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+ fi
+
+ if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+
MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+ fi
+
+ # Mozilla API keys (see
https://location.services.mozilla.com/api)
+ # Note: These are for Gentoo Linux use ONLY. For your own
distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+
MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+ fi
+
+ # Ensure we use C locale when building, bug #746215
+ export LC_ALL=C
+ fi
+
+ export use_lto
+}
+
+src_unpack() {
+ local _lp_dir="${WORKDIR}/language_packs"
+ local _src_file
+
+ if [[ ! -d "${_lp_dir}" ]] ; then
+ mkdir "${_lp_dir}" || die
+ fi
+
+ for _src_file in ${A} ; do
+ if [[ ${_src_file} == *.xpi ]]; then
+ cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die
"Failed to copy '${_src_file}' to '${_lp_dir}'!"
+ else
+ unpack ${_src_file}
+ fi
+ done
+}
+
+src_prepare() {
+ if [[ ${use_lto} == "yes" ]]; then
+ rm -v
"${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+ fi
+
+ # Workaround for bgo#915651 on musl
+ if use elibc_glibc ; then
+ rm -v
"${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die
+ fi
+
+ eapply "${WORKDIR}/firefox-patches"
+ use loong && eapply "${WORKDIR}/firefox-loong-patches"
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_user
+
+ # Make cargo respect MAKEOPTS
+ export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+ # Workaround for bgo#915651
+ if ! use elibc_glibc ; then
+ if use amd64 ; then
+ export RUST_TARGET="x86_64-unknown-linux-musl"
+ elif use x86 ; then
+ export RUST_TARGET="i686-unknown-linux-musl"
+ elif use arm64 ; then
+ export RUST_TARGET="aarch64-unknown-linux-musl"
+ elif use loong; then
+ # Only the LP64D ABI of LoongArch64 is actively
supported among
+ # the wider Linux ecosystem, so the assumption is safe.
+ export RUST_TARGET="loongarch64-unknown-linux-musl"
+ elif use ppc64 ; then
+ export RUST_TARGET="powerpc64le-unknown-linux-musl"
+ elif use riscv ; then
+ # We can pretty safely rule out any 32-bit riscvs, but
64-bit riscvs also have tons of
+ # different ABIs available.
riscv64gc-unknown-linux-musl seems to be the best working
+ # guess right now though.
+ elog "riscv detected, forcing a riscv64 target for now."
+ export RUST_TARGET="riscv64gc-unknown-linux-musl"
+ else
+ die "Unknown musl chost, please post a new bug with
your rustc -vV along with emerge --info"
+ fi
+ fi
+
+ # Make LTO respect MAKEOPTS
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/build/moz.configure/lto-pgo.configure || die "Failed
sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/chromium/build/toolchain/get_cpu_count.py ||
die "Failed sedding multiprocessing.cpu_count"
+
+ sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/third_party/python/gyp/pylib/gyp/input.py || die "Failed
sedding multiprocessing.cpu_count"
+
+ # sed-in toolchain prefix
+ sed -i \
+ -e "s/objdump/${CHOST}-objdump/" \
+ "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py
|| die "sed failed to set toolchain prefix"
+
+ sed -i \
+ -e 's/ccache_stats = None/return None/' \
+ "${S}"/python/mozbuild/mozbuild/controller/building.py || die
"sed failed to disable ccache stats call"
+
+ einfo "Removing pre-built binaries ..."
+
+ find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \)
-print -delete || die
+
+ # Clear checksums from cargo crates we've manually patched.
+ # moz_clear_vendor_checksums xyz
+
+ # Create build dir
+ BUILD_DIR="${WORKDIR}/${PN}_build"
+ mkdir -p "${BUILD_DIR}" || die
+
+ # Write API keys to disk
+ echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+ echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key ||
die
+ echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+ xdg_environment_reset
+}
+
+src_configure() {
+ # Show flags set at the beginning
+ einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ local have_switched_compiler=
+ if use clang; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+
+ local version_clang=$(clang --version 2>/dev/null | grep -F --
'clang version' | awk '{ print $3 }')
+ [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1
"${version_clang}")
+ [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+ if tc-is-gcc; then
+ have_switched_compiler=yes
+ fi
+
+ AR=llvm-ar
+ CC=${CHOST}-clang-${version_clang}
+ CXX=${CHOST}-clang++-${version_clang}
+ NM=llvm-nm
+ RANLIB=llvm-ranlib
+ elif ! use clang && ! tc-is-gcc ; then
+ # Force gcc
+ have_switched_compiler=yes
+ einfo "Enforcing the use of gcc due to USE=-clang ..."
+ AR=gcc-ar
+ CC=${CHOST}-gcc
+ CXX=${CHOST}-g++
+ NM=gcc-nm
+ RANLIB=gcc-ranlib
+ fi
+
+ if [[ -n "${have_switched_compiler}" ]] ; then
+ # Because we switched active compiler we have to ensure
+ # that no unsupported flags are set
+ strip-unsupported-flags
+ fi
+
+ # Ensure we use correct toolchain,
+ # AS is used in a non-standard way by upstream, #bmo1654031
+ export HOST_CC="$(tc-getBUILD_CC)"
+ export HOST_CXX="$(tc-getBUILD_CXX)"
+ export AS="$(tc-getCC) -c"
+
+ # Configuration tests expect llvm-readelf output, bug 913130
+ READELF="llvm-readelf"
+
+ tc-export CC CXX LD AR AS NM OBJDUMP RANLIB READELF PKG_CONFIG
+
+ # Pass the correct toolchain paths through cbindgen
+ if tc-is-cross-compiler ; then
+ export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}}
--target=${CHOST} ${BINDGEN_CFLAGS-}"
+ fi
+
+ # Set MOZILLA_FIVE_HOME
+ export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # python/mach/mach/mixin/process.py fails to detect SHELL
+ export SHELL="${EPREFIX}/bin/bash"
+
+ # Set state path
+ export MOZBUILD_STATE_PATH="${BUILD_DIR}"
+
+ # Set MOZCONFIG
+ export MOZCONFIG="${S}/.mozconfig"
+
+ # Initialize MOZCONFIG
+ mozconfig_add_options_ac '' --enable-application=comm/mail
+ mozconfig_add_options_ac '' --enable-project=comm/mail
+
+ # Set Gentoo defaults
+ mozconfig_add_options_ac 'Gentoo default' \
+ --allow-addon-sideload \
+ --disable-cargo-incremental \
+ --disable-crashreporter \
+ --disable-disk-remnant-avoidance \
+ --disable-geckodriver \
+ --disable-install-strip \
+ --disable-legacy-profile-creation \
+ --disable-parental-controls \
+ --disable-strip \
+ --disable-tests \
+ --disable-updater \
+ --disable-valgrind \
+ --disable-wmf \
+ --enable-dbus \
+ --enable-js-shell \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-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
+}