diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-08 12:38:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-08 12:38:45 +0100 |
commit | 14866757225815b9374acfc8453518951e0f910d (patch) | |
tree | 3fc69d84de25c5d40515dc05fdf5c5934ed69955 /mail-client/thunderbird | |
parent | b8c7370a682e4e29cda623222d17a790c01c3642 (diff) |
gentoo auto-resync : 08:08:2024 - 12:38:45
Diffstat (limited to 'mail-client/thunderbird')
-rw-r--r-- | mail-client/thunderbird/Manifest | 68 | ||||
-rw-r--r-- | mail-client/thunderbird/files/gentoo-default-prefs-r1.js | 5 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-128.1.0.ebuild | 1226 |
3 files changed, 1299 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index dbb567bd9647..d07949fce628 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -1,10 +1,12 @@ AUX disable-auto-update.policy.json 53 BLAKE2B f8df63721191d84d8f1ceec263f63c44fd5dadeae0939baf9a4a6b1852516722b2a3d94b8d403cc7b6c6b525d5236f357ab65a72d716aab1f5bef47800b5a18c SHA512 5ed67bde39175d4d10d50ba5b12063961e725e94948eadb354c0588b30d3f97d2178b66c1af466a6e7bd208ab694227a1391c4141f88d3da1a1178454eba5308 AUX distribution.ini 182 BLAKE2B c8329157d3b2de0f8f3cf779618273f23a6c1d5ba7a79c6013331f730c1e3a2191febd3d8475329bcc805f8f10259129934bf0a47a1e526b954548eff4c739ef SHA512 c19cbc8e9e0f823b65c1b9f4ab6d1d804b3d2b997992f54253e7aa3913e27c38c09dc0b965a5d646ddd87f56a8daf6c90aa931ca99df38054891c36c492bef47 +AUX gentoo-default-prefs-r1.js 286 BLAKE2B 998daefe113dbf395493751bf8cfaecb06513ed040aaf8e791b0c9bc8f2fa8b2bc7c896f68f1d9ea174ae7490114e4164beb459f21551d1b90ca27d29657cf08 SHA512 bb6dc333fdbdeada2a7684560be6e96c1e857d372ec0bdbef2c8ed8837e6ba99efc7894281755c71e935669423023f2f29205eefba3e941e213923fe3cc5c3ff AUX gentoo-default-prefs.js 362 BLAKE2B d3f08c4ac1ae1941e2a805175dd0621756a7aa44f2dc0daf90762a0307c56eb1777e0acd572c6e131e5494c6586c4af2154e0980d25c0f4d4ab3cf4df1747892 SHA512 924313eb0e23b3609b27e3984cc39545122fdecf69d6382d11f18e92962d7a2018a1846404329f21b5880b7baed9491c7506fec998081413fc7c2c4c6c4e6bd1 AUX gentoo-hwaccel-prefs.js 162 BLAKE2B c5f2dfb727081e2d538c262f12c0cfdda31cbda58c77f4024d820e1d1915203d1fb8ad2671f88ff0eb2b019bbf44079a8b1114e240b74f815680e5c28eccc295 SHA512 f1847f11e7059a83f09c3c7494aadcb04512cdf2ccf6616ebe3ec02fc46de66fd35cf83d81e08013c0e594b73e4dffcb67a32288b6949ce137669715583fd0a4 AUX icon/thunderbird-r2.desktop 882 BLAKE2B eb9c2e381b67319d9cd53f26e9b406f55de86b716b28a3df6470594a612e07acda4c7dcdb48b6d55930972592f7f01afbbf14f09ccc4b20265d3c18554a01a2c SHA512 689c9fa5c37a1e6ee80a3dfaebec2a185d91508537c35ce2fb35d13d89b16ae0cf3c640c3115a52c0e4b7a7624aee6a8f8c52679a0073c94dea25cc779ce624b AUX thunderbird-r1.sh 2896 BLAKE2B 140047417b24e959fe6388c4913457f8e3e786158b7394abf7442b0d2e83de21238e58983845a23b855e1aab60c9289e1a12af430eac9a8b2d9929da97de2852 SHA512 f9b989152a8a3ac274033722c77ec19374085654ad6c85ea4db6f8af8f4b2066d6d9f82b610be2db341c8ac867547f54f806ca6571258ed98dd9e2527d21b357 DIST firefox-115esr-patches-11.tar.xz 49440 BLAKE2B 804f5b7434fdf671361f8efbfa3e63cb8b14fcdea39a444ee04cbb4ff7d7deaea74ede239843c350a857eeacf59a69145e234070baa3b05b6d3e1b5c8835f23c SHA512 5e2c88374f14611a1aee4fa191ceb2e66c1d440c98d6ca9d17747290f01f1a713b71c71cebc37313c089524aa6155bfce08c8931a24b71b28de54913cfccd73c +DIST firefox-128esr-patches-01.tar.xz 19380 BLAKE2B cb3ed0eeaa1ddc1df936815c594eb3b7beab20b3560b52a63436b74a191a0e6e8c05c4d65084ae00dcb30ffde1907ad8194211717a50fe55e8e23ab306d8ce9c SHA512 17c723e120f3057de276863d367d25111578cbc5a333718f230ac3bccac178361ebd795f67b522aca199e17b8ed298d070020884ce6b5b4a0b89a60370166570 DIST thunderbird-115.13.0-af.xpi 550968 BLAKE2B 447b0c44a688a4c4336d7641393876bdc91a73e4ca67d9cac35c25b9c832edc5e81025dee2daee1a77762401b2b432e6944674ccc3df44226b449858f815bf3e SHA512 ba365e1c3f8ce852774f6a81b563bf3727dad8c96de39e5f834510f6795baaa07da3f062f77855e2f07beb719e5bb2c59e39f5f0dcf76d9772b5694e0db71f5f DIST thunderbird-115.13.0-ar.xpi 673662 BLAKE2B 5b6339cbe9267e99495faff82555410c677da70754d6b16790042f2846ff03cf202e213b9e18ef9e0014218003a636cd65ab230715d719b9959551f6e1f7fe52 SHA512 7e38e46bdaa5c3074e24ddb67de08529ed91100b54046052e6d73e087981463bb399e3207e6618c426651d635f95b6b5b2664cc2581c4fa360989bc87fac5d13 DIST thunderbird-115.13.0-ast.xpi 569918 BLAKE2B e6c31f6487815a49eb5c97aa25eac5c193d046de260011dad0fb13aaf93c0a7566c17a28ae624b99e9d742b433db469702ad7c2eee88d1e5a3766f36b1efbbb2 SHA512 7bff6a66f08c66edaaa287edaf7aa5ff34cd77dd3b9a980e7954cd23793104f3b54fc664f24c10212ed27bac9507b1ad7931efc2569d9384b9202baffa8338e1 @@ -135,6 +137,72 @@ DIST thunderbird-115.14.0-vi.xpi 774809 BLAKE2B fc16ca251941ed6e89b5cbbf8c5fea61 DIST thunderbird-115.14.0-zh-CN.xpi 775075 BLAKE2B 08be1a16a498404b503c7ea084c585a2c4f99c755b233a8cd3f8c384ce6b4c7768f0f6b03ab77e4688d2241c07f413decaca6b7a38f8113161e2c1303876a5ec SHA512 eb4e1894f408b7d90982a447183c3dbd702c654950c772c3adf6ac90be23655e6d6426210542de70682ba70797c247e6271bc7867fe2a8dc04ba8a63ab0e94c0 DIST thunderbird-115.14.0-zh-TW.xpi 778882 BLAKE2B 1c17c1d70f42ad4a38497846fdb6296816f5f5bd782aed05ef090b2913170a796e1a54184ac566c3c278ab821dfc9379337f39a1c31f4f98e80833bcbea99189 SHA512 661acf4f1eeb803eabb4c5b8f9cfbbb6bd71eb456860fe23debf0de889d204aba490d545334098c8fd302de29b6adb5f1a75c4bd96e3fbd13f3dceec358a15ad DIST thunderbird-115.14.0.source.tar.xz 533296972 BLAKE2B b286062857df12cee6b5aa42f26de7509cd89558a8173cb9e1ffebda2c9bd6ef808bf5034ee2149809e6c427d9c3fdc7f2d37030b0c71aa00d5b8f5381166d14 SHA512 b12e1302d6be94dd88bee6dd069d3fec944bfce95e1afc1d72c14cc188d952fd5a85f0e70575317250701ac89498d876f3384b022957689fabcef61ad7d78c29 +DIST thunderbird-128.1.0-af.xpi 530022 BLAKE2B 741b3613ff2d6478d241bc4a2498827f4ab3915ef8378ac60a360aedb90b761ce14142ea3e2126d56275c97d47744325d8b2085b40dcb174bb320d791b7c1b22 SHA512 80cf8a2a84d4334100af3c010497a3b3f6a1ecee0646193f1534dad84de96c6aa331a18172ecc4da7428b4c4881d0a46169ce8893b90845e680bb9eb5fd0e476 +DIST thunderbird-128.1.0-ar.xpi 679531 BLAKE2B 545379463b938a57ba4de7f08f3df356e0e7b74621542d74fc40a2da84d127fe00785561f7fec446a434bc29ec3ecb04965cde58eba684f52bc3d4f189f34139 SHA512 89bbb69670c0db83053c7bdbc6ef8590c01805b487f8cb40d5139e2973aacce9e8277d20a779ba372dd29453f7717bd7cc27640873d56961b9d3321d1ad7970c +DIST thunderbird-128.1.0-ast.xpi 560727 BLAKE2B 75de626cbe945a7e1d86aa1a5ba7ede2009f9c437ce46d605b159a6e84e84d600215f537c94e28e825b82ae237d55fbe3afa1e60316859a4ee55e572adbf69d6 SHA512 db71edb6381fafb026dd28dc48ee3e9ace6f714bc1063ac75a283bf42b545e61547ce8f52f6427d656a3533b6d250122ae3ae21e856f96a61fa1539d0fc3d0b8 +DIST thunderbird-128.1.0-be.xpi 753111 BLAKE2B 88b2bc8ade7a1d8d574a74aa01878d9d68d87fdfe2d6e7731385d2fefc8069216241d64b5a2f428cb35b0c4663009a189de75c1db3a64c61a1a21bbdcde23c3e SHA512 de601393fe9dd025f90dfd1c68322de980d1f58faceeb62045d5c0827cb54762e0c57cd23c5ad93fd8ee28e27af45207d4aa62634d8649552dbf695a667c6ea4 +DIST thunderbird-128.1.0-bg.xpi 801171 BLAKE2B 9b3effa6fa89ff74254d0aba69dc4693cd547e6996f9f6aecfd04d674fcc052b75452b705e80489287ca6e77b92c51f209e7f75465b284dbf95fa745add97ea9 SHA512 88a1f22031c0316fa232dca37f34eeac7b7dce3303242d162dc84cc4c7058effedcdbbaca734b1ab24f6c9063633f3a22f8d91f6760be2b989b029590665e7c9 +DIST thunderbird-128.1.0-br.xpi 652151 BLAKE2B 789ebfc62fd67a381b1f6976297aeef3ebb8630f131e2051966196b6e1ea62741759f7296ade922b955b0f721658f789f8f006de905c6ba33289504e4748a063 SHA512 a9353b859352afab77672f6a8bf86039b0a1bd359ba96af9a8b326fd68bc8cfc48f49c72ef194abbd38c7cfd958c1f74baec3e599ff197c66b0342c55db11e2f +DIST thunderbird-128.1.0-ca.xpi 705576 BLAKE2B cc72e3947fc56f629e9f5984583bd1e736b7bca43ef0771f27e9819051d99a06b04afd485fb7694cc37e677408283096a8a0295be96fd499c7f0430e3cd602f9 SHA512 ef097962863c30a170dd7ec02d0a18cca00486b4a1b6714ab980d5b94db58433eda69264c7f49f0dab374ba37f0c74df7ee906063f56bf6e019d2576e3f38573 +DIST thunderbird-128.1.0-cak.xpi 671376 BLAKE2B b41e5eee2d63b109f9331a387fc22fbb9419d274aa0285d8e2224d6bcd7e3ed8c38bd540f98bc7c5558ac64eb666808f14ed2f3a516b87c4fb50d2a2ec1536a8 SHA512 b8fbca65e72463cd7cbebf1f47da68f05cb9e569095411d53dfec3796a41fd69931fca0c4f11493bac8b3a32da038d70a1dc2cebb8f4fa887da827921d0703d1 +DIST thunderbird-128.1.0-cs.xpi 782522 BLAKE2B 239f950bbd3066386f342b77ee901687449484fa7531aba93e362bbd2f20ff40720e01bfdc0275e84def2a601cac189b2d9f0f0e0f407c4a83b64525d210148c SHA512 f140695d1bdc41d603a9956882f145090d010fb5095f564ae3230adff459078a7af5188f22b1aebcd825d3915aca82427758943d780ab836234c6e34f1c8df54 +DIST thunderbird-128.1.0-cy.xpi 745833 BLAKE2B 55ac15a092b5f0c164e3a05095f5d15eed031e8d80f41fad095afcbbd9d64305f635e2b76d7e00ff0459c77f73fa470b4a6991836790d97daf37c012560c9294 SHA512 58ebe45f66707a103bde71e5f68924d6996171792cacf509eb5ed7df75348bd2a67c91851dd114255f4a7acee987193c2ad4630d70f71d72c52c1b77f4d05000 +DIST thunderbird-128.1.0-da.xpi 732247 BLAKE2B efdbd51962ed398e4ce42ebe86930e7879954db017c90be1069e38b8912198fee01281cca3d5d3a6030c7596ee94ad84732656d2f93a203ff7ea911a7b130259 SHA512 663b9de656b8a5cd932c4606f1ecfc8e9a6f4c60ee9b800cfebeb13f3cdf5449c43e1a5ae6d414707a030cf9459ee3bb1c3058e972696d62ed6d5c454c183c76 +DIST thunderbird-128.1.0-de.xpi 762888 BLAKE2B 647b7354b84a3993528fabe11d1f4176fa3aaa8291c4db2dea99835fcbfba0913a762c4f1d4dfeb69257a53aae904130b153d73b6e7bed6376bdb4c27687e7a1 SHA512 1969c34613ef05aa971091228b520bd88bf88eca384837e70fd72da0da303fff9d7c80cf9d045d70586c55c14a7d99346f7ad1ef91b69410ce39cf091e4b6375 +DIST thunderbird-128.1.0-dsb.xpi 780506 BLAKE2B 0dd77da83926596cbf89cf04077bdf995e9d4248dd9ba98c0c855fa212b71f8e3c2edf3bc60bc1c4cbbec128f7db147cfbf8fb377f57e3991e53a0b481323df4 SHA512 bb6db78cdaf66fef0532c9c9fa7a1fc8c34e7e19a8ff1e1942db1831f93c1f863faa05ec113289f27fe12ab7b98d3c46ebb1c91b64ccedca714803e0867d62bf +DIST thunderbird-128.1.0-el.xpi 886608 BLAKE2B ed2df796edb70163eeb857d26b4ed09ec7d44313ad1c14b81e829343584b090f0cae50f83036c7501790595b72f2a24489f631ad621c9918f9484286fd08bb66 SHA512 651b25c8f908b8520fd130eeb9d48d9880238651d6f0cacc253cbc250714fa38b5ecbc1705dcdca37263a47b541f18f6afc9bf3956f93e1f4156a875e949b839 +DIST thunderbird-128.1.0-en-CA.xpi 699938 BLAKE2B 019b3400e29b99ad4d5848500e39581d821f1ebaa72bc2d340836fd72e905cf98386ec2d4d246b065030129ff5b133532702100e28b9c0b3fd17ad2aa855939a SHA512 1211b880e145c6dd69420ef2567be1718fb8c552b0d089d85f0211ff90d42668b496126d995d10968555ade4b12bdd37a3ef16b2cc05f4cb6d12e824bf33ac08 +DIST thunderbird-128.1.0-en-GB.xpi 700682 BLAKE2B 96d0edba40137df8ab178971094929716f65db41da784c169ffb767a2b3d9bd4ec2276f4daaca5ed2fff66af682befdce1c999caaa320fea339f3979f3805a06 SHA512 0f082ae1190fb1895a62ddd76b61bb51c23115cf502524e53369708a2266887b38cd4cf5e26a9d8e56408b2e1d3137f8400da96657c7bc75d3876c68c8c8e7d6 +DIST thunderbird-128.1.0-es-AR.xpi 756125 BLAKE2B c7d47ef5f296615993f4909cec468b890bcd4728a158cb808e4a34f1de469b89f5eda0ab2226494b2a21f9d388b22a9bb5528e59a07f01bc18999449f39d923d SHA512 38068599297aabf59ee3e66974c0110ac041e9eb7489cbc77bbc49e2270116e4517e462385f84af565a88a8061a951c111e70df37b87f60997dc4e4db2cb8b48 +DIST thunderbird-128.1.0-es-ES.xpi 723184 BLAKE2B 16102bd98d4c844891dcc5413515ce2213b4e84904e7782a410ad5f659a3811adc846cf6c83b3a0609da0c84f650246b6bd13ce71bc3fe54f9fa89c1b9299242 SHA512 c934b372074834f6e431349b6caa475d9d0bbd965cc2bca0b61f9515eeed4b061a4e03bdff9d2a022d0a544f5e7420e240f940581ba2b5d71a60415c2dacda2e +DIST thunderbird-128.1.0-es-MX.xpi 734908 BLAKE2B 8d14d27cb899177aa7686097082f272200ba0752d8d647d95d0522de1a13afcb664771595a6e7c717c7e4095fcd0db9cd9e7f3f54f75ed89e0da8cb82ac02347 SHA512 408ff492308efd61c45d1795927121afb55a3ce67952fa085712e0431f7907dba2c5ae9650252ebc7cb03665622a5629465a5412e00de55376c4b19ee8afe9c3 +DIST thunderbird-128.1.0-et.xpi 695961 BLAKE2B 9b7b37dab2d68ece3f37e2b02df025baaea3a5b50b4d12e95c1e6e78d4266bbf8df9b3b68b126774283d96ac5096271e3ad3cce73349602a713846fff7174548 SHA512 f5b6b548700060e1d15f4c82dd0ca7d1d0a49570ce2e151ed2b58e5983075b22151fd0a8343c18f386af34832b0ae773c1391a2078e8226ee4a086ba4685f3f8 +DIST thunderbird-128.1.0-eu.xpi 726476 BLAKE2B 2b902b56287e89d84ffd0d9fd1a6e63b2907efb1d3601a02e1a017ca604601a10617264d7e3ad91c70fa9bbf1f47ffd8a08bef9fbbc942e713c59dad8ce4d8a6 SHA512 79c3dc77cde882d5016a3823516f9834016da4710e4c51757dde40eab2c2d284a78e6f1c5bfba1c61e7506471fbbc42834ccedf4c0fc50e5cd3df22e0fc6f304 +DIST thunderbird-128.1.0-fi.xpi 731185 BLAKE2B 7ff004ad0ecd9e42aca3e1c3281332d385f206360f3e1b5f5ed46e535c84c7924ebbd3450370421b24358026cc645419d46d72829ecee499b9f14d1c1a7f34c4 SHA512 931fea98c00934167e4cac512f7f7673768c9d27aca8a759a9fb2bc17984ccdca9549b889ea567fcd09a806b4e607581c734fe7a3926f87d01b5f60da63b76f4 +DIST thunderbird-128.1.0-fr.xpi 768595 BLAKE2B 1acad47d0a7f4d774413549fcb2ea4b1d136b66b04832ae72634cc65a090ce7f3b46d27d2b4bd788f3ee82bf4b8e14d0d1b69f5939f082cc48711dec3ccd11ea SHA512 640823d3af3a9f5ff9b511f7bd0d4b932608fa7adb7cdc2123585a88f2b97bf6910d1c92e212985b9d95a59e2f146cf6027680eb46ff6ad7ec772f9c4788825e +DIST thunderbird-128.1.0-fy-NL.xpi 750667 BLAKE2B ffc6d83cdd6478797e8e2ac5014b6e1ed2092547ab50fa7fd1892babfc4e13943a876d7a5c29d38e5f102d81805ca4a2cb436b20e005c45ce1621b7967e621c8 SHA512 763220818b743754aa3133fe767445c157851781bba8c64f76a8e4f4010862c205db9a7ce0e270ff4173b9c2085139c866bc4ddab593ec4a0ff79794946aad0b +DIST thunderbird-128.1.0-ga-IE.xpi 614867 BLAKE2B 49eacb60fa3357ceab9175a404259d075bafc4e879b6019e0f25be042af547075376d67ef164b9af6bebd5c594d71b47a81900d0a5f887ad31e51c90860c319d SHA512 1ccf7ca908214e68b3a0af21103e693736132a1d6d47ea2e1f91f4a85ff464a40586d4421169c8e8029b8f4ac2950639fa59da57a97e774f79af4095a2a43537 +DIST thunderbird-128.1.0-gd.xpi 727476 BLAKE2B 218e29cbe07a10820bb96a279201a039b4d7add4f74b32868901c422cc5b9b0aca5cd0c3ae38ce5db3b23ed90ebb356a1f4acc8438e43c46ba43e63e0c995df9 SHA512 694d160559e1dbc2748d80ff4178d9bc85a2be213f7e8f735d5e9b055ed4d5303c345ea83094ece31d9791badba02b7cd66ce5b96d6bbb918504680eb40c4ed6 +DIST thunderbird-128.1.0-gl.xpi 736247 BLAKE2B 666685a452fe7f333006d14d3338ef5cc92bb02b571e5d835838683f21effbbd9ade4f8de4457da87613609e69677ffc0de3a5a6b9838c82a847db35e965a01c SHA512 0ada5653c2a3597fcb85af960eff1e5b03eda8b5c139d6859868bb7b0145f4690e5fe315015310a9ddd2ace4d7fa5b8812b60cdeb01b7cfff360127c3e134662 +DIST thunderbird-128.1.0-he.xpi 698228 BLAKE2B 1b50328e818c415c656a83968a0f80e54d31953eb019c4342c58f53af8a0a121c0a601409751e8f072378df55ed3d31706431523624ebe99a849d9ff4b5e9a21 SHA512 19b234ebfedaa5f777c376aa497e543ff7efb8be828f3a669775e0ac8fa97e111de2783685efe7084b83a1a927ad6491fe84838d9d7cded209739e7e82cc1bf3 +DIST thunderbird-128.1.0-hr.xpi 700181 BLAKE2B d5890ef09a657a52daad8e906dccb989f89dd339cc9c2cb8fa563e14dbdfe1e8a1a52ab33e56cf1d10a1e05abda3521d988ef4eac24a28bf81b0bd2915b2027a SHA512 23848ef1c8f6858ccf5c9a626688a1dd182926309922bdf7525ea64f6851deb941897c9f922758318e8b142e277802bdbe256d0328825bdeec8b0a382c58754b +DIST thunderbird-128.1.0-hsb.xpi 778026 BLAKE2B 5c227fd77f5cdd8052ebfd860be6aa9bb921f77a931d5fc7e3a95d8804a2e65ab5bcccf4a057eb65696dfc2762b0d07687cafdc8567bf615e47589a666eaf31a SHA512 7e94917addc059e475a8e9d8bd9ee5b21e51691cf174d2983a8423c1a536d238152075221b4b151c9e7cd013d24a454c077bb71956a431865c2fb47a09d191c1 +DIST thunderbird-128.1.0-hu.xpi 779499 BLAKE2B dae1c2e5fe4a3b458a06f9f83b73ee93197ddf40d762657bdf4e825d44df76ffdd5490982dd9aeb21e0e05e1ce4ea7f9eb8a2e49a058177310e1811cd445d9b4 SHA512 0cdec779a18fd00d756f08966d28b8d248c3b11bf609c465519a2945ff57bb090d4e375d415e66971c74be6bb0ef1cb6d2ee95fb9953135da411ba639dbadbd5 +DIST thunderbird-128.1.0-id.xpi 665685 BLAKE2B d1bbb000a660e2b631c4df4a0e3f6acc093a37ffbd478c5bc8f2958a760b4676f2b9f080af8ed1304afe6165e46e3d4a44103bdb39507d3cc70bcc79a1a98015 SHA512 5c71cfa4cf251cc6119aa6cdb73e8fa44150e4bb0d92019e0d7a7574ca1d7b1590f9537658c02db37db39879475790693cae39f30e213266db4fa230cc83564b +DIST thunderbird-128.1.0-is.xpi 742829 BLAKE2B 32b1d6d366e68900e79a96e411f07484179c8f372c337ed686b10e03f16ac38e115b5779b284dfc870ba5083476188a9a1667440f6beb4d2c50b83c47a556129 SHA512 f11e92712276dd60a89b925333d5f7c67436bfd484caf7ad0d7d686550dc3029f1ed54e78b8b3c10f16fe7e373c6fcbab33c568e28ae90c6642fc0f69a1d72b0 +DIST thunderbird-128.1.0-it.xpi 687789 BLAKE2B c0c2af40fcefa52bba67a72250e8e6a5458bda21132d1d8173578a5da90cf2b406c027e6fb81a407a7b6a5d0302d22008a0d5b35c426fd42853c1b713d2847a9 SHA512 7fb281de4bc7758ae2e23cd9e4dfe4b4d2c7bdbde9af8300260e66af7bae01ca08e175de707601d50faf5ec0ae1e8e86c70820346a69f7cd758b139a93aebf9d +DIST thunderbird-128.1.0-ja.xpi 818059 BLAKE2B dbf2a499d6f72fc856a352cf7501f8b5bc86c1c81d5a7fd078f00eb33e0ef52e352673dd09165912a3fb1105fe0ef603e61c58018bc043c860544fb703de2cfc SHA512 29b94518eaf999128353a7300d91a93e47bd2fa1205d4f2284fe6d5bdb31464ca02abc154945c2be94129b73cae6961e1836ad566397bdc361b17970c1a7e151 +DIST thunderbird-128.1.0-ka.xpi 795720 BLAKE2B 97d00c3840046404b123bce0c83a1a610a13c306453fd9b271a1c9daeaed5538a75ffa914a4184de4e98ef111ec27e01525b428433711ab84396232e60dc1eac SHA512 61f13f9ac01b413f6188a3e6ddb16e9a1ed3e54cd9a469aa03611bf5062415c47652072c29c5553e18d0cc32c6efd935b4480089ad2fd0e4b44a71215f073064 +DIST thunderbird-128.1.0-kab.xpi 731531 BLAKE2B 0e366862f2e0e32952b655a736b3c3049102ab01fe7e2132131a4852af3a36f68797aca2c802db831caf23beafbc8071b45fa51f2c6f63283b21607d19d01237 SHA512 3012446290bca68eb9f66b2cf0bc14bdabe6ac7dde5c8e24938996813063f141831f24f053d22b30cd93e0aab2d13ebc6d400ad8d4aa1f4ee78c03ffb2067cce +DIST thunderbird-128.1.0-kk.xpi 854777 BLAKE2B 53804b73786a7af6981c78107c7910c9819fb4446bbd6ac7c7804c72f8d40f5b8786d6fe3f7b9483d8d127ac8458054c3d521557eab89da5bcd9ba824c60038a SHA512 d6ada776f7fbed2a31e3bd7cde6be0ccc8b174812ae9cd9fb9dffedc3f918dfcc49447384ff5e84fce8503f7069e66f05cefba9cd3f7f73334849d7318563608 +DIST thunderbird-128.1.0-ko.xpi 753028 BLAKE2B b3d938e06da60374d8c27068259a7ae1dabaedbf82f2491450c6aeebfbc16553f424669ffc9963bfb51717ef62428b5d00e8d4e91cd6252333e19b56f58e8f13 SHA512 1bb6c218a9cc35d0520a14523e74bbb1ca97d318826e655110d44b74be15fccf94016a4549401e8cdd3bb33daf9ebe9dfc313ab13d71e28c3baef511244140fb +DIST thunderbird-128.1.0-lt.xpi 700593 BLAKE2B e1da4886611face5e07837328aeb47898c4d579d07278fc161fe9c1c7c9c5027d8e6f062262f5dac7cc359ca51fc8f7fd5f871bf1d4c14b2bc09a8a6c8a9d827 SHA512 cea2b8762514d45517dae62c7a08c5e5a04ed4389c41181294942751a082ae307200d9973c5e04e92c4aa2d203da13df17bc75333ba63994f25fc9cd3f0d3602 +DIST thunderbird-128.1.0-lv.xpi 621076 BLAKE2B 8086c6a47c6b7d637c6763fde202e954e618bab8674e2cd39048e87ff2b1a97980af12fa87406adb32052b0e4bb284ab6693f5193dab01831056540c6c11964b SHA512 4872321fdaf659df69f7f5eded5e19744e9a30e3862282e421a65f2ac028c2fb1ea6588d8f7495176553e59f28b6199f2d0b52ad58076c76d732de5ffe3dc65f +DIST thunderbird-128.1.0-ms.xpi 580756 BLAKE2B 21005051c69b20b89885b8229ca6ad35fb141a913455c4531bfcdee07775831b2b6f03c77ad9ba46ec1c13cd815556b7ee88ba863e249377078f47432dd18af7 SHA512 4f2d4be2a2322d887c6bc0e5aa0ec93f53be584911a9500fee0be370fee3d27d38154418a150c0862c06b31a29cce53659a607100fed61b6c40e837c29e84757 +DIST thunderbird-128.1.0-nb-NO.xpi 702089 BLAKE2B b059b699c82f204c9d1ae64da8f64e994175cdf71ffce1d0c3c0df7fc60e57b3a27a540ebb5f8d79302df77bd90cb790bf260f360a721ce4f87cce4d16edac2e SHA512 843e8e80219937453e02770b49d719c541e85b96d41c8006bace0835b32d641030eea9f164091059712f5f34c9cfff39fb7e22a4cef2604c83c056b33bba71dc +DIST thunderbird-128.1.0-nl.xpi 741945 BLAKE2B dd6fd487d889b5cf8de5e71bfcfac2f96618b7a31f40fc9339a803ea5f77a47092c3589a03182220aa520b22b962952d8ed18ec041a58e4e13a0ae25636e7e09 SHA512 122438cc88862b51a09b12b6a06498ba55c62c6e42732bcd9d7a091d47394f5b51640ae0bf624a61c1a16cee0bdcb30cd73b209ba9d0e9248b29b1e606127914 +DIST thunderbird-128.1.0-nn-NO.xpi 721389 BLAKE2B b8fe95b284ff3cf3144638d6ae321485ece49d3d9f1a9e2997431ba78da06302055d63848be12a91e357cc7e93fb20873c955b85d9ac4830291246451097e840 SHA512 22992ab7d7cb8475bd19c979dd7ae783517178430d6640e6908971dfa58d3865aa4bbcedf4771f598088f38106bc7fd07dd90c9e804fa8764d1d72a66c309fd4 +DIST thunderbird-128.1.0-pa-IN.xpi 681221 BLAKE2B ca892e4e3bb05b9fa715b674c45247078737d5e0c26086ac3277dab9ca16d5627eeb8ef97c5e8e9df7809019b9c45fc8fb4e0550283695c9bb658cd6f3b408f7 SHA512 90f71eb7593aa118b332dcd6ccc7fe429656d7b4d99934151e1780a80b1e091e5bb8590e9d27ed402d40afa8230fd86f18b6c968d456bb4a1c2f7331555fbdc1 +DIST thunderbird-128.1.0-pl.xpi 760886 BLAKE2B 65f07d12c5c02b0aa6755f10aa094b2ef469dc22206e438923b362904f2b9f11d7ae80c8c543dbb1b0dcd20753d6a20827bdfb39bc3140c9b89f1f8e07e7be0c SHA512 2217f1184de0df3dc8a45cd29166afdb48c63ea9ce7a7d32b5e82051c165fa3e56fedacb2fffcc2bac180ba8d918eafa5470bbf7bc8f6135047b5c038c90fa12 +DIST thunderbird-128.1.0-pt-BR.xpi 749077 BLAKE2B 20305205b57dc8c9e11dacfe45efdd28337588467c9b9ce6c744fd23361db6bfad6d9201745c89290d54e7d360f98ae5e7b724ede296795fc6638217e7595215 SHA512 8cb8b95f11aa01abd83d15d282c8f1c380d56c58b78c42eeff6f95dd005eacdeb6882823022533b61d3a24f41bbb4f7c8ba89d12e9626da5a6af7f37baaf134b +DIST thunderbird-128.1.0-pt-PT.xpi 744905 BLAKE2B 92554593128a9854943d0f71e9e21ba9c20b025af226db4c52de6d6047d55e1dc3393e7bf480e15f611c876ec630e34d29af11d0a6f196fdd5cc28721add0d2d SHA512 74709c3a1db8c1bf9ae1c856d82e96a56652ea7e0b0efa5cdd9d614e229947e71c71552f85c59040dc7b4bd147be9ee92cf5199d75b2ba855033951cc06aeec6 +DIST thunderbird-128.1.0-rm.xpi 746019 BLAKE2B 30ef13abbcd6a03e24e46f668457dbe88db572e5717ee8bb0a21dbf64beb8e4fcea74f7440a880d6a117117ab69894d8e11c14d9653cbd3f3b913a7bfe7ca3f4 SHA512 af0bbb84a7a64285cfb92b75d922135ccb05fc6ec31baa8009cf114c1bcdae1ba2262ce8686906003f8eefb30df452a15dd7bcc129a4ffc903a5d494b961f3fc +DIST thunderbird-128.1.0-ro.xpi 669415 BLAKE2B e2661774cf4897573d15ae9278ae309a5dc2a15a45b2ae95064173cfa257846beacb9c2729ede9bb72b937dd3ef8244ab9ba24b8eee61dd4901737e5eca2006f SHA512 c177f4144d18be994bac066eaac21c3a3922dd35bd9f9e53028717d537e53e80fe86b753cb80e570415118fc47cbb8bc67e0688720994a6075f88f1a91ef1f68 +DIST thunderbird-128.1.0-ru.xpi 869727 BLAKE2B 5ebdb26c6fd70dd9f3caa5eb4e79b6999f656f61d37ffc8bcf695c7bdc6b91a97859741d2cae5737249b355b3105a6288563b02d6eee7e1f8bebfac8b6a8ace0 SHA512 cc58326e95a5f8f631aa208a8776674db4b10858d7013fbfe71923896228f191f7024d349fdd4b95c8da1e1b30fa7d526eba1cf8dad6c7775939918e1068ec3a +DIST thunderbird-128.1.0-sk.xpi 781707 BLAKE2B 7656c087652f0973d350e2a819c7636888b0284ccdcf6ceff445a280e27819adac98f58f24b3c89c322d58af355b4409269fccd10e3e642e6e6ae4f88cc0600c SHA512 477be6f98276673a9080333641e694ed7f2db2a31aafcac4602c956320983f18684442174e5d38cecdddf9932e191e944a560bdf640aa00d4a5eca69f0f5523c +DIST thunderbird-128.1.0-sl.xpi 742773 BLAKE2B 9cc95282384dfccfdd29e11c0d8daab8e8bbf6c5cda5cf203bd935a73cc057e654e62f5f0685b12a2ba5b6b3f9841f10a046130d5065045d04f81c427ba5e0d4 SHA512 88f08d50b2f0b5017224c5095baefab3ae53a7fb43aa8342467d6181831dbc6fb5954e2381b5ad77f95d4277697ee52d6870257740ce8a8862184df863054bd2 +DIST thunderbird-128.1.0-sq.xpi 765336 BLAKE2B c94623e026f5b3a9502cb58e331794c55905e127df1d8644eca558daa52846b7c9d2c44c66e823a49c172617d67142bdb44315c6e2f0b17132f7ebd97e17bc45 SHA512 ad175048442c9cc247e77b26b42086fc53aedca896c75eb100a68cd91726efa793a99d656c00a62e7018c077e8873c5aa9110326fdf9694a1e3be592be955386 +DIST thunderbird-128.1.0-sr.xpi 770680 BLAKE2B a79ae5298d0fff9cad921a6663972a17f6c14b5b1123faa70bfa79e1895bf66623f21677438a381203ee5ec0477b6028fe455565e414bd9adddab12dfaca167c SHA512 eea635139bff898ecb66fc1b6b21980da372c14c4b91c00623305d85b20dfc3c9e7bb71569e2ffb32f274fc1b690fc4de549df3a9039bdf816d3061301f99763 +DIST thunderbird-128.1.0-sv-SE.xpi 745369 BLAKE2B 4bb35909a2fc1b651ecfed309171e4bd73b29a75d28783ba75862ca397ba4f634bd7ca206632d081a26888dd12840f8bf4d1cd3d10cd83ea557c72ec2f2c1bc1 SHA512 16bff9bf69419b30071765e4a6b6a666e854d2042410a290bb3cf69e32c2d88293cc7330757b0ba2a6ba4f6553e0e7196bda9fecb2e3a4473c9c5f81d3078076 +DIST thunderbird-128.1.0-th.xpi 810985 BLAKE2B dbe0a6801df6d406327377f493f04ea8c62a135db98b71681d3edde1c01431b0b3848b1fd03db8de5a55d3619d9b02b0ed1748cda2e85d0d109f1eac2d643a98 SHA512 61cc4b9823cf7da275d2d1b2d8cdf013f85b2a507f22c94c395abec1f052f2483da449ae3b9cd3b1bdc1312f17d58c88204f6d0fbfa56121a279aa8b48675a16 +DIST thunderbird-128.1.0-tr.xpi 755927 BLAKE2B 29ddd5bd5979e79531612fe3704afa2f5443d22cd8bf79e0c125fac1316f53f1b46c61de99b6aa792059bfaf8313a04af72ce96905e46dc0d56ace6aeea704b3 SHA512 b205d12a9bba26eef874fc1dcb50411da93ce80e6afaab1ff5b26998218ae2c2224b7524757b87551633fcd73d07692efc5aa8bcfac65cee0575bc3a0d9e0d11 +DIST thunderbird-128.1.0-uk.xpi 855730 BLAKE2B ad8c4cc442b6a733a0cadcb1eefa52a36fa7b393a9a7daafa44563bba1aba5912c33c140f7899578d3cf7bcd10b6af1482953952ece3c84e74335a8c625b1adb SHA512 b1ed242e48cf50b9cc902508eaee367e6192fe7347ecbffb0740ea8482433cf67f77eb8ef3c7f50e079f0aafec0c0f60d118b71e18e69ed6416ce643b5c46ad1 +DIST thunderbird-128.1.0-uz.xpi 591808 BLAKE2B eec16355be449ee03382f1d0aceb13ae4eced62c1c26a4cdda38ff92fcdae537064b8b8bf56f84cca415bacefc64ce370cf2fc2ed64d7c420d6c2d65f6c09579 SHA512 f91c09250fbe29e6eb5271da72c6affbbcc1c0680616a5a6b4e175ab247157908307c6d85f200ae8afcea0bb2495d16f950045a393b668516d41c6ae32671125 +DIST thunderbird-128.1.0-vi.xpi 784659 BLAKE2B a5452b16ff2c77537db81fc43b06969706ea5bbc0dc9ef2815923936d86e36f69ebfffad039c44e8fd1ab1ee29fb7e088f08193a634af8a53c7e3efda54cd3f5 SHA512 25c8fc8b8428d49e1e5e97231c00e4c1a864a8883c6f96f74b74e07d09a8448b90289767a2968fe58636db30e92af8e8f874ff431b97562261f0a855d3e3cd3a +DIST thunderbird-128.1.0-zh-CN.xpi 784195 BLAKE2B 8431470bf86b0ae14013c46fcf52335a1f18240a8c27d52f2d3b2532d6cde2d75ebefc1b25f8dce4cde0ee95d6d92229c57b6dd82551fcc31f5a557f4e3c48ca SHA512 fcc3247cd35392d05a2bb7c6274152a5724e8a96180c652c5978182f24ae19b63e99db9285687fdbaaf609bf03f2eb014891f218bdf6bc4721e4be86b6602af8 +DIST thunderbird-128.1.0-zh-TW.xpi 787478 BLAKE2B 808f24ea4c0be1ea3d66b1cc10c887b201563a2a0e011529d4ae4b2da63ed3d43a7c27016a989fab67ac819ad685c6c4089988946afa821ab85850d9843be49e SHA512 fac29119ac494ef69432a79328c507ab3e64a7e94efe504e5d9db24c01d6701616c90eaad2f446e1099f954a465f91eb408b82e7972bf7e99c4fba74d3612352 +DIST thunderbird-128.1.0esr.source.tar.xz 677372864 BLAKE2B 43afab70674010ebc0839eacb513d031cb36b7c2dd7bdbe3d1096b9b16ab82e36c6d45b638e37b7fa6b6c88b1ab737110512ee17aa0df2f5c827d11ee47d2fcb SHA512 cda64afee45ae20a627116f9475cc4421262db40a7efa09eeafcb6e96f8fad97e8c96e2ecf04466ac4bce99fcebe0c3ce9953fa3fc4f5a92ab6f60e122f58c9a EBUILD thunderbird-115.13.0-r1.ebuild 39759 BLAKE2B 2202e005a194835a37953b4969300ff2a90c81271d8294b3433a6b82b137d8d270d4b7c5da32cb67e52624e7159cec73e9d0ebf88725d0fd54f3a9c4fb2d873a SHA512 2d1e797fdaeaa5ca1570d9fb1cd8219a9ca4cee8e577df5ff80f836106a5aea6a3a43f3cea5431e91ff68dd45cba20895b81017065d9e39b665bcb6d1ce59a51 EBUILD thunderbird-115.14.0.ebuild 39761 BLAKE2B 2b4b00523e6b1a061d9f96350661a5c4c4257de2402f740e48f2453754d7755a074c1f9d6419383f5949f909f11f5e172b9f3eaea794ce1bc56e7fbf81179c49 SHA512 1ceae799a349b322fa2b24cef54d323a045d96618595a5f30c806dbef6a59df84b6af9a6babc824b36e40185792eb6b9032a040cd3728d8373cdda547b0b0167 +EBUILD thunderbird-128.1.0.ebuild 36692 BLAKE2B 7ae1cfd8609d1546ce746a5719b8e95aa048f6122c37b1de15e8321286e3a64210aa9a19f9693dc7e914d2a04de5054748dc3e8a71b9e9756b46dbb5e525bacf SHA512 b58f1a6e9aaa8da1689db4302c2d440f7fd2db3605b8062296a36dd0f9e0dea99c2c506160b52d1394778b2a21ecb4da4b057cf810830234e571de81d596567e MISC metadata.xml 2387 BLAKE2B 3602296d8cca60f79ea66089332dbce63b9da3625e476659e0a663966e65bc060e67b263c8fdcdbf8fa5545adf7b8f958cc36f9011459c715ee31bb494e7ce5e SHA512 e51ee84ed715cba36beb240db27265ac37b8df684c0e98f3b81ccf7785c1f465f1bbe3729c1c01717445e787129b449c009815f62a7455ea3fc4db8d1d9e82c3 diff --git a/mail-client/thunderbird/files/gentoo-default-prefs-r1.js b/mail-client/thunderbird/files/gentoo-default-prefs-r1.js new file mode 100644 index 000000000000..4b7eea46ffb9 --- /dev/null +++ b/mail-client/thunderbird/files/gentoo-default-prefs-r1.js @@ -0,0 +1,5 @@ +pref("general.smoothScroll", true); +pref("general.autoScroll", false); +pref("general.useragent.locale", "chrome://global/locale/intl.properties"); +pref("mail.shell.checkDefaultClient", false); +pref("intl.locale.requested", ""); diff --git a/mail-client/thunderbird/thunderbird-128.1.0.ebuild b/mail-client/thunderbird/thunderbird-128.1.0.ebuild new file mode 100644 index 000000000000..419019d51610 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-128.1.0.ebuild @@ -0,0 +1,1226 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-128esr-patches-01.tar.xz" + +LLVM_COMPAT=( 17 18 ) + +PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +MOZ_ESR= + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit autotools check-reqs desktop flag-o-matic gnome2-utils linux-info llvm-r1 multiprocessing \ + optfeature pax-utils python-any-r1 toolchain-funcs virtualx xdg + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}esr" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}esr-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}esr.source.tar.xz -> ${MOZ_P_DISTFILES}esr.source.tar.xz + ${PATCH_URIS[@]}" + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +SLOT="0" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" + +IUSE="+clang dbus debug eme-free hardened hwaccel jack libproxy lto +openh264 pgo pulseaudio sndio" +IUSE+=" selinux +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent" +IUSE+=" +system-libvpx system-png +system-webp wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 ) + pgo? ( lto ) + wayland? ( dbus ) + wifi? ( dbus )" + +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 ' + sys-devel/clang:${LLVM_SLOT} + sys-devel/llvm:${LLVM_SLOT} + clang? ( + sys-devel/lld:${LLVM_SLOT} + virtual/rust:0/llvm-${LLVM_SLOT} + pgo? ( sys-libs/compiler-rt-sanitizers:${LLVM_SLOT}[profile] ) + ) + ') + app-alternatives/awk + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.26.0 + net-libs/nodejs + virtual/pkgconfig + !clang? ( >=virtual/rust-1.76 ) + !elibc_glibc? ( dev-lang/rust ) + 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.101 + >=dev-libs/nspr-4.35 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/mesa + media-video/ffmpeg + sys-libs/zlib + virtual/freedesktop-icon-theme + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/pango + x11-libs/pixman + dbus? ( sys-apps/dbus ) + jack? ( virtual/jack ) + pulseaudio? ( + || ( + media-libs/libpulse + >=media-sound/apulse-0.1.12-r4[sdk] + ) + ) + libproxy? ( net-libs/libproxy ) + selinux? ( sec-policy/selinux-mozilla ) + sndio? ( >=media-sound/sndio-1.8.0-r1 ) + system-av1? ( + >=media-libs/dav1d-1.0.0:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-gfx/graphite2-1.3.13 + >=media-libs/harfbuzz-2.8.1:0= + ) + system-icu? ( >=dev-libs/icu-74.1:= ) + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1:= ) + system-libevent? ( >=dev-libs/libevent-2.1.12:0=[threads(+)] ) + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] ) + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] ) + system-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wayland? ( + >=media-libs/libepoxy-1.5.10-r1 + x11-libs/gtk+:3[wayland] + ) + wifi? ( + kernel_linux? ( + net-misc/networkmanager + sys-apps/dbus + ) + ) + X? ( + virtual/opengl + x11-libs/cairo[X] + x11-libs/gtk+:3[X] + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libxcb:= + )" +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack ) + openh264? ( media-libs/openh264:*[plugin] )" +DEPEND="${COMMON_DEPEND} + X? ( + x11-base/xorg-proto + x11-libs/libICE + x11-libs/libSM + )" + +S="${WORKDIR}/${PN}-${PV%_*}" + +llvm_check_deps() { + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then + einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use clang && ! tc-ld-is-mold ; then + if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then + einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then + einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use pgo ; then + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!" >&2 + einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES es-MX et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json \ + || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +# This is a straight copypaste from toolchain-funcs.eclass's 'tc-ld-is-lld', and is temporarily +# placed here until toolchain-funcs.eclass gets an official support for mold linker. +# Please see: +# https://github.com/gentoo/gentoo/pull/28366 || +# https://github.com/gentoo/gentoo/pull/28355 +tc-ld-is-mold() { + local out + + # Ensure ld output is in English. + local -x LC_ALL=C + + # First check the linker directly. + out=$($(tc-getLD "$@") --version 2>&1) + if [[ ${out} == *"mold"* ]] ; then + return 0 + fi + + # Then see if they're selecting mold via compiler flags. + # Note: We're assuming they're using LDFLAGS to hold the + # options and not CFLAGS/CXXFLAGS. + local base="${T}/test-tc-linker" + cat <<-EOF > "${base}.c" + int main() { return 0; } + EOF + out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version "${base}.c" -o "${base}" 2>&1) + rm -f "${base}"* + if [[ ${out} == *"mold"* ]] ; then + return 0 + fi + + # No mold here! + return 1 +} + +virtwl() { + debug-print-function ${FUNCNAME} "$@" + + [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument" + [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset" + tinywl -h >/dev/null || die 'tinywl -h failed' + + local VIRTWL VIRTWL_PID + coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; } + local -x WAYLAND_DISPLAY + read WAYLAND_DISPLAY <&${VIRTWL[0]} + + debug-print "${FUNCNAME}: $@" + "$@" + local r=$? + + [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly" + exec {VIRTWL[0]}<&- {VIRTWL[1]}>&- + return $r +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6600M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6400M" + fi + + check-reqs_pkg_setup + + llvm-r1_pkg_setup + + if use clang && use lto && tc-ld-is-lld ; then + local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }') + [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}") + [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!" + + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }') + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}") + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!" + + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}." + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:" + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version" + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version" + eerror " - Build ${CATEGORY}/${PN} without USE=lto" + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole " + eerror " llvm/clang/lld/rust chain depending on your @world updates)" + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!" + fi + fi + + python-any-r1_pkg_setup + + # Avoid PGO profiling problems due to enviroment leakage + # These should *always* be cleaned up anyway + unset \ + DBUS_SESSION_BUS_ADDRESS \ + DISPLAY \ + ORBIT_SOCKETDIR \ + SESSION_MANAGER \ + XAUTHORITY \ + XDG_CACHE_HOME \ + XDG_SESSION_COOKIE + + # Build system is using /proc/self/oom_score_adj, bug #604394 + addpredict /proc/self/oom_score_adj + + if use pgo ; then + # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure + # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage + # (PORTAGE_SCHEDULING_POLICY) update... + addpredict /proc + + # 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 +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if use lto; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + # Workaround for bgo#917599 + if has_version ">=dev-libs/icu-74.1" && use system-icu ; then + eapply "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch + fi + rm -v "${WORKDIR}"/firefox-patches/*-bmo-1862601-system-icu-74.patch || die + + # Workaround for bgo#915651 on musl + if use elibc_glibc ; then + rm -v "${WORKDIR}"/firefox-patches/*bgo-748849-RUST_TARGET_override.patch || die + fi + + eapply "${WORKDIR}/firefox-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + + # Workaround for bgo#915651 + if ! use elibc_glibc ; then + if use amd64 ; then + export RUST_TARGET="x86_64-unknown-linux-musl" + elif use x86 ; then + export RUST_TARGET="i686-unknown-linux-musl" + else + die "Unknown musl chost, please post your rustc -vV along with emerge --info on Gentoo's bug #915651" + fi + fi + + # Make LTO respect MAKEOPTS + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure || die "Failed sedding multiprocessing.cpu_count" + + # Make ICU respect MAKEOPTS + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/intl/icu_sources_data.py || die "Failed sedding multiprocessing.cpu_count" + + # Respect MAKEOPTS all around (maybe some find+sed is better) + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/python/mozbuild/mozbuild/base.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/libwebrtc/build/toolchain/get_cpu_count.py || die "Failed sedding multiprocessing.cpu_count" + + sed -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/third_party/libwebrtc/build/toolchain/get_concurrent_links.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 -i -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/python/mozbuild/mozbuild/code_analysis/mach_commands.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-gpsd \ + --disable-install-strip \ + --disable-legacy-profile-creation \ + --disable-parental-controls \ + --disable-strip \ + --disable-tests \ + --disable-updater \ + --disable-valgrind \ + --disable-wmf \ + --enable-js-shell \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-release \ + --enable-system-ffi \ + --enable-system-pixman \ + --enable-system-policies \ + --enable-thunderbird-rust \ + --host="${CBUILD:-${CHOST}}" \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --prefix="${EPREFIX}/usr" \ + --target="${CHOST}" \ + --without-ccache \ + --without-wasm-sandboxed-libraries \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-nspr \ + --with-system-nss \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system \ + --x-includes="${ESYSROOT}/usr/include" \ + --x-libraries="${ESYSROOT}/usr/$(get_libdir)" + + # Set update channel + local update_channel=release + [[ -n ${MOZ_ESR} ]] && update_channel=esr + mozconfig_add_options_ac '' --update-channel=${update_channel} + + if ! use x86 ; then + mozconfig_add_options_ac '' --enable-rust-simd + fi + + # For future keywording: This is currently (97.0) only supported on: + # amd64, arm, arm64 & x86. + # Might want to flip the logic around if Firefox is to support more arches. + # bug 833001, bug 903411#c8 + if use ppc64 || use riscv; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + fi + + # Enable JIT on riscv64 explicitly + # Can be removed once upstream enable it by default in the future. + use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' --enable-jit + + if [[ -s "${S}/api-google.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-safebrowsing-api-keyfile="${S}/api-google.key" + else + einfo "Building without Google API key ..." + fi + + if [[ -s "${S}/api-location.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-google-location-service-api-keyfile="${S}/api-location.key" + else + einfo "Building without Location API key ..." + fi + + if [[ -s "${S}/api-mozilla.key" ]] ; then + local key_origin="Gentoo default" + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then + key_origin="User value" + fi + + mozconfig_add_options_ac "${key_origin}" \ + --with-mozilla-api-keyfile="${S}/api-mozilla.key" + else + einfo "Building without Mozilla API key ..." + fi + + mozconfig_use_with system-av1 + mozconfig_use_with system-harfbuzz + mozconfig_use_with system-harfbuzz system-graphite2 + mozconfig_use_with system-icu + mozconfig_use_with system-jpeg + mozconfig_use_with system-libevent + mozconfig_use_with system-libvpx + mozconfig_use_with system-png + mozconfig_use_with system-webp + + if use system-librnp; then + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment + mozconfig_use_with system-librnp + else + # This controls the backend of the bundled librnp. Choices are "botan" and "openssl". + # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp. + mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan" + fi + + mozconfig_use_enable dbus + mozconfig_use_enable libproxy + + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme + + if use hardened ; then + mozconfig_add_options_ac "+hardened" --enable-hardening + append-ldflags "-Wl,-z,relro -Wl,-z,now" + + # 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 + + # LTO is handled via configure + filter-lto + + if use lto ; 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 + + if use pgo ; then + mozconfig_add_options_ac '+pgo' MOZ_PGO=1 + + if use clang ; then + # Used in build/pgo/profileserver.py + export LLVM_PROFDATA="llvm-profdata" + fi + fi + else + # Avoid auto-magic on linker + if use clang ; then + # lld is upstream's default + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld + fi + + else + if tc-ld-is-mold ; then + mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold + else + mozconfig_add_options_ac "linker is set to bfd due to USE=-clang" --enable-linker=bfd + fi + fi + fi + + 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 ppc64 || use riscv ; then + # '--disable-elf-hack' is not recognized on 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" + + # Allow elfhack to work in combination with unstripped binaries + # when they would normally be larger than 2GiB. + append-ldflags "-Wl,--compress-debug-sections=zlib" + + # Make revdep-rebuild.sh happy; Also required for musl + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags + + # Pass $MAKEOPTS to build system + export MOZ_MAKE_FLAGS="${MAKEOPTS}" + + # Use system's Python environment + export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach + + 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 tc-ld-is-mold && use lto; then + # increase ulimit with mold+lto, bugs #892641, #907485 + if ! ulimit -n 16384 1>/dev/null 2>&1 ; then + ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources." + ewarn "Please see bugs #892641 & #907485." + else + ulimit -n 16384 + fi + fi + + if use pgo; then + # Reset and cleanup environment variables used by GNOME/XDG + gnome2_environment_reset + + addpredict /root + + if ! use X; then + virtx_cmd=virtwl + else + virtx_cmd=virtx + fi + fi + + if ! use X; then + local -x GDK_BACKEND=wayland + else + local -x GDK_BACKEND=x11 + fi + + ${virtx_cmd} ./mach build --verbose || die +} + +src_install() { + # xpcshell is getting called during install + pax-mark m \ + "${BUILD_DIR}"/dist/bin/xpcshell \ + "${BUILD_DIR}"/dist/bin/${PN} \ + "${BUILD_DIR}"/dist/bin/plugin-container + + DESTDIR="${D}" ./mach install || die + + # Upstream cannot ship symlink but we can (bmo#658850) + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin + + # Don't install llvm-symbolizer from sys-devel/llvm package + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die + fi + + # Install policy (currently only used to disable application updates) + insinto "${MOZILLA_FIVE_HOME}/distribution" + newins "${FILESDIR}"/distribution.ini distribution.ini + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json + + # Install system-wide preferences + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref" + insinto "${PREFS_DIR}" + newins "${FILESDIR}"/gentoo-default-prefs-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 desktop_filename="${PN}.desktop" + local exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + if use wayland ; then + use_wayland="true" + fi + + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die + + sed -i \ + -e "s:@NAME@:${app_name}:" \ + -e "s:@EXEC@:${exec_command}:" \ + -e "s:@ICON@:${icon}:" \ + "${WORKDIR}/${PN}.desktop-template" \ + || die + + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}" + + rm "${WORKDIR}/${PN}.desktop-template" || die + + # Install wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}-r1.sh" ${PN} + + # Update wrapper + sed -i \ + -e "s:@PREFIX@:${EPREFIX}/usr:" \ + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \ + -e "s:@APULSELIB_DIR@:${apulselib}:" \ + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" \ + || die +} + +pkg_preinst() { + xdg_pkg_preinst + + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse + # does not need to be forced into the LD_LIBRARY_PATH + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + einfo "APULSE found; Generating library symlinks for sound support ..." + local lib + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do + # A quickpkg rolled by hand will grab symlinks as part of the package, + # so we need to avoid creating them if they already exist. + if [[ ! -L ${lib##*/} ]] ; then + ln -s "${lib}" ${lib##*/} || die + fi + done + popd &>/dev/null || die + fi +} + +pkg_postinst() { + xdg_pkg_postinst + + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + elog "Apulse was detected at merge time on this system and so it will always be" + elog "used for sound. If you wish to use pulseaudio instead please unmerge" + elog "media-sound/apulse." + elog + fi + + 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 +} |