diff options
author | Joonas Niilola <juippis@gentoo.org> | 2023-07-08 19:49:49 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-07-08 19:50:17 +0300 |
commit | 4f4ec605e9d6e252c7b08053348687121ce69757 (patch) | |
tree | f332bac8e4b9da57c2c30e4a95077613e5451d16 /mail-client/thunderbird | |
parent | dev-ml/alcotest: require 0.15 subslot of core_unix (diff) | |
download | gentoo-4f4ec605e9d6e252c7b08053348687121ce69757.tar.gz gentoo-4f4ec605e9d6e252c7b08053348687121ce69757.tar.bz2 gentoo-4f4ec605e9d6e252c7b08053348687121ce69757.zip |
mail-client/thunderbird: add 102.13.0
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-client/thunderbird')
-rw-r--r-- | mail-client/thunderbird/Manifest | 65 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-102.13.0.ebuild | 1178 |
2 files changed, 1243 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 90c03ea77b5d..c9734e33587e 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -64,3 +64,68 @@ DIST thunderbird-102.12.0-vi.xpi 745662 BLAKE2B 7c3022da529e8badd780b7563e4672f1 DIST thunderbird-102.12.0-zh-CN.xpi 739886 BLAKE2B 3df5581c666cd0d11682fae5ce02ce447915b2c81b9a1c60ea95d7da227dd8532ff487485b06cfba4b6ae884d0f59da1a6cf3c04fa5b38f9576bc2270399d005 SHA512 e3d901fe873badd85f104316ec331010df4390960d45830c9acd859e0a4849d1b9089d7ceb2adf4d8366d1b4b95e68be3423ce358e1b1e9651eaec1538f319cf DIST thunderbird-102.12.0-zh-TW.xpi 748346 BLAKE2B 2950a7cf86aaad8aeeab276b82529f8aa5c003cc3b0170237745c3526fadb218dd616333b3899f3eff4e69ec2f4994dfc2fe7ecc8e03902dd6dbbb0423ef098e SHA512 34f903a976e2cf9e942202d5153ae7385612df68cb429dcc9bd75f6e2fd96c173a01742a15a49f8ff7c29b618f55198cec096a1be22fd32c5d971692efd27c89 DIST thunderbird-102.12.0.source.tar.xz 502135796 BLAKE2B 478909a5cd5c0dddbbb4e33a650d8ae4f73322f6141068d6d2aea1fa92e5805bfd518ae563e43382d0832b5467dff63316543a8e55dbd1f28b8be28921244990 SHA512 303787a8f22a204e48784d54320d5f4adaeeeedbe4c2294cd26ad75792272ffc9453be7f0ab1434214b61a2cc46982c23c4fd447c4d80d588df4a7800225ddee +DIST thunderbird-102.13.0-af.xpi 556871 BLAKE2B 35f1ee32781f79d722255e22b9cd1a7670bfc4e7655d944ca11406caca058cb178a74aa0731e2b1417ac736320096ba2a460ce0185257e8e75122ea9cffef10f SHA512 fb6891e6cff7ec6a85d4ec50b4341990bdbde7da8b32527d9849984a09bf3260b5cdff0900ed396295d5e3d1a120046e61f545b1fb1a024a3b459da18983210d +DIST thunderbird-102.13.0-ar.xpi 666810 BLAKE2B dbc9981c7729684310be6c7423ff1dba2fc672128d9b970f63a5a8bc1b3f4cfb29efccc4b7a9f9c2f6b7ac09ab54a11d7b4d570ee038a614589add31691892f3 SHA512 7d51c10e2b5965f25081b08e58283d379ecf4ff9bae01ccf2b0f80d6b0457ee80e1f9588cce2d0524d776e44766d3f7f449a0d883f3871dd2c9bbce8cfcdb994 +DIST thunderbird-102.13.0-ast.xpi 572288 BLAKE2B 001b8888b08f91d7f4c6bc246db288d297b506fe8e441ab19a846eb451c6d3b116996a1107f0c1074fd1e033c4b5f87ddaf5a09dbd3476ebc469c91552bc4b7a SHA512 d1b2e675380c8511c587229a3b8bce1cc19e24b5fcbbd8d778e537d8e5c5614dc3b8b810e781cd5ef03314bc275c3ee76b6ea83df907283781c79c4e85a58a9e +DIST thunderbird-102.13.0-be.xpi 701914 BLAKE2B 1cc71a641ee1a771c602396e3d81638621c4485f8d74b439e4d74e159a65407e51f9502606b5dc6d15100a735f7c3a8554d032a411914d334e7f2cf967f0d6de SHA512 2fe8ba257afe65b253a7e2b994ac3094cd8feb258985b0e35ed78d7d323fb907b7c9c42ba58cb1f4fac41e7a3086f64bfdd27df19bff1e564678b52c390881df +DIST thunderbird-102.13.0-bg.xpi 693377 BLAKE2B d301d5c321c717d128bcca6f67437d022a16c460820f1ab97b95c1ce8f36063ee133b25ffe4d5b157fcaf4f0a8192a834fbc43d63bc3837beb4a9a5e9ca774d6 SHA512 62b8d62d92d3371f33c7182f5d0a7ebef4fa492469156ca0a5a11dc050b0f3f75c7d836f251c1a34a33067e11a2baab5b7fcb386dc0cde7690a7f9aca851329f +DIST thunderbird-102.13.0-br.xpi 626472 BLAKE2B 23c6ec7ca24e7f8b0b6ab4da6f9f13d35480298120c276559057a1161f09f4a92bd2e9e6e6cfbba0f0834647524e86025abed503ad2ffe2335798aee6f82b3ae SHA512 87d3243fc693d1fc70c67a47b5f33bd3ce0526a1ced3adb907947dc8fb12c2e2880f3e240880f7d0c8a894c91e302d652b74f8920c26725415c64555b83768b6 +DIST thunderbird-102.13.0-ca.xpi 651367 BLAKE2B 7a3f3dd801776645c56fc5020a4eef2e4c00de10cf44f459f64bbf2c687072894943c61af4bea97eb1de1a060c6bd61f5eafb2467cb2da4bf4f0cd63a1c05d19 SHA512 cc235e482d03de1ec06f70aaff816afd7211776e3c0e84c284648ecccae25c20530f7dc98198d5ead6f12c8ecf85b895c4b8b23c463822b977ab3bc1619e6286 +DIST thunderbird-102.13.0-cak.xpi 651779 BLAKE2B 74787f6e8882279277cbcfe5e9fd6ef485f2bfff2db1b232a3a29dcebc87b3fc71eabba398c3d48b8bf8eaad5909bef496ad67810c4433d62719bbf45561b490 SHA512 a4e012834f6d616f60cf5c15ff5667a5c5a7ada0a8dd45bce048a5c7ae52ecfd4491cf24bd3bda723f144b67ad55abffb6c7eb0fdd75abaa977ba32704a85891 +DIST thunderbird-102.13.0-cs.xpi 728624 BLAKE2B 363f113f74f786ec1bed9ba77d51d0df0fccc0a0baa8eb56e4925a80386f62b8c6ee0ce59be0aa6b0e098254da37949c7b3bcaa53928f146412dbb7481545779 SHA512 5410e5ea859ba542804d8946603f69e5eb5814373d5bdbfe598a4c2067be9a6b21c4065d78b987e6bf41c26466b0a7ab0dec4114916c8ab7b80a268d4b9bb75b +DIST thunderbird-102.13.0-cy.xpi 705577 BLAKE2B 3175c4ac83a6d88bc4b62f0bb2dd7122e2aa27344f5fed404fa5c5d7c3c5c0f9cb27f4f29ff4384efb9ac7d984cfa3ea5451dbdb515a2f59f6144f64c46fb379 SHA512 0b7e832dc82ea5c29d2845035eb0ce3fd3a96e6e9340ffd9460972c6da30325437e932ef19065d15d51e269283f5d486a6e87a44f52ad14a7e83d075687a8646 +DIST thunderbird-102.13.0-da.xpi 685255 BLAKE2B b95a31839cb7c81dfb66c3fd7654b1800183965fcfd127e09517f69452b883727391b9c2941df9e9d6832b4e1759d7190b3a5617a8321b08d373812b7d0e5677 SHA512 37dcdf4dba2691c4fb15108e7bb96c94188754ab0b3ffedaaf1544885097cca51e94e9da27f878c15d48819ea756bba743a64844769f63a8aa51138c8e5169f1 +DIST thunderbird-102.13.0-de.xpi 717945 BLAKE2B c4c0fe10336d1ae0aad1153242caba81664e3e86d483fcdba5593d260d53182cbe02055dbb4317715e3fa9fee20894c530cb312bd0cbf5ec9efe56db1f6428d4 SHA512 51359e6e5fd0bb2e96b32a0b14a4e1ea2debbbc9001b147e49bbc6bc9ca7b4caa4605f981b382b53658187252c263865590fabf7cd94274f77bc46abd00544ee +DIST thunderbird-102.13.0-dsb.xpi 737085 BLAKE2B 1649f3e879ce49f31e44743d7ffe7323b009ffc56ec3a1e09fdacfbae9722893ded3a74659ca1bebf4af1babc2e676a793ae6c3f861e307e95b591e2d9c4a450 SHA512 b69e50e3bc0031778f2c866bd628998eb2f2303c5cd0a1450e694bab72a253473b5e48377de62ba8fb3d4b2cbd5948b1746e5b0863ff922381a7beb0da3bbbf3 +DIST thunderbird-102.13.0-el.xpi 840813 BLAKE2B 341ff0ed0da15960427e1fa77011490cd8bfd4245d15ecad27f08294bc203783255e30a75a3179a7f266f2e3139d0460268ffab25139f86a65de34475faf8bbc SHA512 499eb38edcc37a0c5eb5da0b0bdb157cc70e9e900d880d0206d4836e8b07f0ab2cd917604d5e45338df0143c612b23a1263c51fdde3310fe99b785f1ae62940c +DIST thunderbird-102.13.0-en-CA.xpi 659093 BLAKE2B 277adc49ab3e875c329956e48791083bbeed212d24c94224d2f582c58e8f8c092fcc2310f5b9e6e9a6435bec50feff2df8b68416fe235b8453d6fbffe79aa1cf SHA512 b7a744a4a443ac61eb4afb038c19cfa49e866cfe661bd98276f17e6b1719d00f236d594f9b50370af43c27dfaa70284d8d19526aec86f22f4c7fb9d3d03f3306 +DIST thunderbird-102.13.0-en-GB.xpi 665007 BLAKE2B 7421c7184a1ebaf50aa5a6a1c1b3399ca33c431243a2d1d7277cfe037ec9f923f0f92250a53073c611110b5b0298e9ff7b91d2d3ba4655f4d9dd583ee23da520 SHA512 7f5f94fffcf8fdb69cab63d28c7dbdac72b08434f441289abb508f9502cddc81f76140ee52ddf0e4be4d6c3bbf432ae2a5380172bf0b7b669810b0026aaf7a65 +DIST thunderbird-102.13.0-es-AR.xpi 717276 BLAKE2B ff2915d4ffd1229e4e953929d14d56ce0bb59e7ff208e20667fd438240bcb1f2197dcdd98636a7438d00a2e72ef78b5d1801d5bc5439ddf9feeeb3f2a9610da3 SHA512 c032a8e514c66d6139a7b9b6704aced41b6a5f4062fcaf82a0f341db34bde7bdb8225adb7947ae892cf168dbaf93204f3cb61d697f537bc47592f942910a6c03 +DIST thunderbird-102.13.0-es-ES.xpi 677480 BLAKE2B 65d64c347402469df5bd9108076e14344df3f42d13f5b633b261a49d45a4d451d368a4cf9a5be40c1c43bb3cab370c742de6eea6e6d2e32b8ec8efff660a9bff SHA512 7c1ead6ce92b0b36375dae3d214aed7c32376b9ad3c7a2f73b708ff3ca717cc240c1ff53eaf40c5220c834bb56689bf27619e8776f5464d28047ea54c180d481 +DIST thunderbird-102.13.0-es-MX.xpi 719709 BLAKE2B ac783cec119eb4d31179f655e2f05cc03b99ee2f603328f7b972dde4da7babf8ab817514cd9586f094badb47c74806b519a7c2532d06589989374eb408db6d9c SHA512 8b92c0f155811c2fbd0f621f88145ef533d1525853a14f4e412b18fa3146a4bdc82cc759f58b732122479888100ad868061384c50a59fc53bca5a1d1850095ad +DIST thunderbird-102.13.0-et.xpi 676675 BLAKE2B c8a828a78f88b6aa132305f255096ac24abbc1f395ec3dc18a8a7ea7dc903a4086b2588b69a83f9af0174de427ff751e5af38ac9b7b6b8b469a6455634775db7 SHA512 26981cd751a02e9a27061d385960e50bd373c059227197c6a23641e71a2a0a9a3d05cda931fc2754b2c8bb265d816ff82bd8ee43546dced921a352b35ee5cef6 +DIST thunderbird-102.13.0-eu.xpi 701828 BLAKE2B d2ec049b5ebd59f85fa50ac7f8d73ea84bf92eda7a0b35cdce80d9262ca288994e211c0e33114e8e92ad6efdda227035832a10245ff0d40db78746e1e0f2a72c SHA512 375ffe098455743d79a9d5d2d74f6bdfdb189715ddf35d53be876770ecda4fd06563cdb6341aafd5b735a8eeb06a7cbf1cbdf9034a355f740d433c336c928e91 +DIST thunderbird-102.13.0-fi.xpi 693486 BLAKE2B 735f88dbe8421c2045222e7e45ab82c2c2ead6d77901ff98141607a4350e550e1d4069f762363828cc8ba034977468cab38f4f9fa8d63cd98d609db93c0dc76b SHA512 42d057032d683da16ae0745d4817e55e78ab119b758778b2ab3711560eb1831899448b9f22af0cbdda3636f60e0a5340855c9abf4eb513d5f36fd339471d2c94 +DIST thunderbird-102.13.0-fr.xpi 730316 BLAKE2B c40256d94aaf14d0c4483d90a7654258a1672ffc76fc41abbb0529551082c6d26b4df52a472ede5e152aeb3639d14cb702011f30a346a6db077104768d6e4b09 SHA512 fa189bf073a12ba543fdb9159a389724b0301e117e5035163c2c2f577958048760e9e1b665dd17a56c06ca2dddc62704d9708bb579bb32de1ca32b98dbfa6990 +DIST thunderbird-102.13.0-fy-NL.xpi 711991 BLAKE2B 2f36f81c4f91d54a160092f512a5676db722c1a0d06b43938e58e7a21c9bc7a5ac33091a4b255d6e4fef953dbb30c038052a9ba7b79c473c775c061068cb05d8 SHA512 3e1277b754364c024ccf66e70871cb3b7a73e93346bd0b2180e38b513c273893c22f1f56f4778907defed25331c7a75aeb976153278cdbc962fe775b7a5e5159 +DIST thunderbird-102.13.0-ga-IE.xpi 614537 BLAKE2B 940fcec8b0e5a1a5a826608a094b18a1bccd11695b87d9b30ae69b26f2274c4eb480d617c97771735ca113eb18b021ac559df7f6d19187b6463817c07f45336d SHA512 219a6667ea1c6a98852fce6d663a831e1ee7b7e0ee5f4c4ccfe8e45e6214188715291da1eddc5709c34cb4e52843bfae5889a32555c67ce2066ab1d728cab249 +DIST thunderbird-102.13.0-gd.xpi 643576 BLAKE2B 4d9c81c23838f84aa07dcb5ff4cd18573f164953d1f204a43cad2a4bdc4f9016ba089f830b118b602287f2833b22f6d02cae8569b8c9c3d908045af61e25f0a6 SHA512 4459a226538fc54e02eb0fa57234533f219f3c5148961e77e054e93ebf2bfda6c41c0d4e874de3ca73a7f3f6c253acb94cb89a95b193f42daf40b9f8e3117ca2 +DIST thunderbird-102.13.0-gl.xpi 673002 BLAKE2B 86d1c1cf97854a4661f2516950c0491519453b9fa6100c8f4b68d80eb556b5cdba52a19d0ff852adf535914002757e122394d2f9e7a394b769abb46df3f62ede SHA512 17187d0eb3414ecd98909f9f7fd49de9efbfeeedbf1980d9426d29e19379afde66e2eb9b21a79b45ec6748e43d552c63bebd111192407eb9474d9efd5cc4e5c9 +DIST thunderbird-102.13.0-he.xpi 676369 BLAKE2B af732acdf919078b61206b7816e29ba989dafa462699ad6d4df467b3caa93c6a3ccccdba35ad57bf7d7042842524297cd3233f34de2da53666c0981af5a01733 SHA512 8a4dff3c908586d0c3ab13a73ecd085c68bd678fcfd4264ea097c9d6173ade6d4a1514efa2045b9d75263b0dd5b1b313bd85a41b42f45f577c272d5760273af0 +DIST thunderbird-102.13.0-hr.xpi 677719 BLAKE2B a1b2f145388ec5b036febb401033fea5292bdd6a89593e408605bbfe071c9f4ac1a69a0881b01cc4d4b85da14df0afa76a1493a7bfd8066278430a38cd4226d9 SHA512 951dc3982dc2f0007dc66ea6f8f53a83c3dd380f84124f28522deab88ad7f558c26b4e54169ee67e0e6a91fd8e3b8f14ed4dcacbda24a811b265a9e5fdc282dc +DIST thunderbird-102.13.0-hsb.xpi 736540 BLAKE2B 0d5992a45d18a51d7fff47e124969496770c6c4f58eccc847975007578d54815d5f6d2b2d898b2fa9d854068c07ae23b5ffe80d9ed6f803b274dd5c98b52ab70 SHA512 43db7766b309ec6a17ac49c6f964464a00058aa3009bc9dac3bd3843bb93e992cc77fc86e1a8372f981d4143ebef6b295709618e27afe89fd054c4f08d68c56c +DIST thunderbird-102.13.0-hu.xpi 741200 BLAKE2B f5781ba11ee11ce40ded24ed987f56a63b2522321ce3a0a70be15e971d675b06c57a3f5c1e1aadd96bb5b7d09582453da4fe19d74b069ddb2979bb56e4b25b9c SHA512 04bbed6e46777f5e6518c77f092193b0a5be65eda0ebc7cf7dfedf284d3769c24786b187255a3d0c8f9a7b8ddebf6d996af5cc888031b377008d14dc4933ffa9 +DIST thunderbird-102.13.0-id.xpi 653192 BLAKE2B 414f3c185403818ac9c91f5ed8a1a3bf2acfcd24e4012a50af175c16b8c0a3f9f02707c8dace185d71b4a768ba97f8ac30ee6dc55ea383fa410c4c37a0cdc81d SHA512 7ca1ac0dc6e31cb87ac55bfe9af3e1a43316d78cae02bc0d4db16ce7459f5f9f10e2cc406881ae70438d886b717aecfb4a9c2c992beb1507fc3e4cd0ba7ee4f5 +DIST thunderbird-102.13.0-is.xpi 706393 BLAKE2B 727927a182dd214ea32328d4a149fbe77a1d4826f4d2f16d6339b3ecd458b1793f8f5d8a6d608b0e2c9fb437f6a639af99dc977c5c46728ec91e4e95da692111 SHA512 008f18b029f68030665c80573e93ed7bf9a3c802c4aff3ad917f488927788e19f15066c2a7c65b5d4e2f172c65380b0d38860ec1c4ba7e2e8ce16cde2fa7a260 +DIST thunderbird-102.13.0-it.xpi 639984 BLAKE2B 9b4ba2a58b783822c6babd6cd51273edb58f6b98dd5e44aebf9105cff36890bdc697e4c0535ac523b667c2e62bf9b73c69552a124cf8039f4f0c2a38975aa79e SHA512 d923bac519e54633671d18998ba1345a1d281a8d89ac70b7c0381082f5b9d46a14cff13a443d4546ebce65fd05dfa15c7e2032eb8abff564941213ac0d9817e4 +DIST thunderbird-102.13.0-ja.xpi 781907 BLAKE2B 6128ec4e3cd4697ab1459992a1af22d283cb3cd2e9eb5ad2c64157f58eb8f0563a5d7e217f99538ba6ffdeac02ccd32ef7609d7a4b4cd9d6c78ad3e3f1e9ebd8 SHA512 b4d8cb9e435c0a91c13751961b06a1165971ba781208b044c9b1a41e6387ad4618cc17d6f64ccc14cc7f584aacf7813e54c5570404cca1938e03a2d17975e679 +DIST thunderbird-102.13.0-ka.xpi 769803 BLAKE2B 2c020e54893cb76db78791593d2bd877d509171cda98d40e0b74812ae34cc829ed6e4fe1575c1295df0d40a0e7b4a51dc838cd8806f8c4c344ca834f2c58fe45 SHA512 98a9c89ce34e896565c5a6a1cb10247b941f60ebe58f0f64c3ec32f7307cd2eff0ced578f0004a0780a16b243192cec18fda6c9b7811bab42db88b0c68ec1ac2 +DIST thunderbird-102.13.0-kab.xpi 702703 BLAKE2B 326a5c3c0349195e6c69a377da1b7ff2aa172b640cef284dad81cf7fa0001327158d23dd2b22188916dd5876210fe2ea03298ccdbed2f5efe4a52ce71e8b79d9 SHA512 9b2409c8b0b843fd1e2d9246f8a42b51b1e022ca9ab1901af4d8dfe30537145fa1e2a301fe1dfb381e4cec6ff52336b4a7e7bee07f25064898d37fec30d92329 +DIST thunderbird-102.13.0-kk.xpi 810967 BLAKE2B 5ae4d22e45885b55f85e1db9f5a5dfdc6ad8893b073083b5d40ab1f33c30655fa49835f8ccc13b6196c6e2ff8013b096fa7cd5d04538917638878c9645780cf2 SHA512 404e7ebea18d51b1295e17770eb2540f4c073b807e3112cc61dbbd562be911aa9356655fe71265861c12d7da7b05bbbeea7479eeae4fbaf3a1970daefe44109e +DIST thunderbird-102.13.0-ko.xpi 716819 BLAKE2B d468d847e328a999bd2921e6268ba6524129f4bdb495c0dc17590c094964b7376bdd263aa85440dd9eef2a730e56fa1d826027d154f14635198fdf25026c97b3 SHA512 af7d9843b01e890527391d2f3273457b39423a51af3644656d859b44d52488f1d17bc89a9aea1e7b585a5fa41708ef6c7ee9746cd2db914afe9bd3f0d2cfcd11 +DIST thunderbird-102.13.0-lt.xpi 690855 BLAKE2B 02558b70060acbdc77c5862217a5869982024128585ce7fa2257437e2f3f46192e8089ef82220c1481626987836aebbe3353cdd17899c689d9924b751454683f SHA512 3f2dc3bddfe66e29585528c78690f378c84e042d2a4602b763e3c0af99f2a164764ebc1c3839c7bfacfcd835d54cfbba11beb76975b509696bb7d5c052cdd135 +DIST thunderbird-102.13.0-lv.xpi 617767 BLAKE2B b19bb8d06b0e8247f0de242f2f8f32fb29b2f4c4f62415d79eddb256ee66731f425dc3ffc234f4bcebbca8138e6370064f8352cfdcfc326a54fa84a920cf825a SHA512 4094c5576baafa86886efa43c81983bfcbb99c96b0d89c530a7bbc584332a2f38c503ebd619a4df3963a052ed10a8019675e20a064042a4c8950fcb28eb5482f +DIST thunderbird-102.13.0-ms.xpi 577759 BLAKE2B 0e607dbb00af42715033b24d3ccd13c42e64a5f454169c4557aadc6a767cb4b9568f59679db8adea22cf3b7d0cbff8bbf23a901f6cb7ab6fc2a521bfc23f9dd9 SHA512 1d0a3f0a9bf64d1fbf257a4f67c6a3980cc967dbc00fc7acf263ce6f04f4706a6a9343e6502c33d9de0d6907759820647d7f0787f50784e3004296c1fe83647c +DIST thunderbird-102.13.0-nb-NO.xpi 662681 BLAKE2B b40f276c753f916b83a2b3b7f6c8cd5f01b3ecf0dc59a32eafff09024472249ac254d983741149a997ef02cf2039fd76b5af3080c990f525574b55ba45a3117b SHA512 33b8683a6f6979f6593c6bb1c96a52da3bd4a7d0f15e6c8ddd323d5ca2b63702aaf7fad95ca098a9599d7ab3a24c94c5d087ea4afe89fc21ecbaa6448d76da13 +DIST thunderbird-102.13.0-nl.xpi 703275 BLAKE2B b0fa922e2af1afa75e3a4dd2640a55f84be3e41718c3ef19b20deb22331dbbd2c9948f0f1d855cadca308323d9135ab34505090b7970c475cc0213d139cf3fda SHA512 2f2841db49ce6a1a6abccfa94511deac0192870dd833284d69c09b43a1370d03a87ab065123e4dba5b2f386b92cd1e408cc579839de7406204354468d63ca069 +DIST thunderbird-102.13.0-nn-NO.xpi 672832 BLAKE2B 27bd8d1877b7c2e6670405e1495b86e9ee5967496a5d856d20696abacb4d5bac9a58c0ce413390a6a04e4e88bcd7fc42ae0f48f0c4c9e1da6ceae908dcf72dfc SHA512 296591157e4b09788a5db6ccc26610e44e5112463b2e7671d704e927eaa5f8be514ce82367000f6f2cf5f53d4d8e4b55a4a944c386fdf50f505b645b687a6609 +DIST thunderbird-102.13.0-pa-IN.xpi 668032 BLAKE2B 78054fab20e60c4646277c7ed6d78c0e7fdcffb9b064905b31c1e9c2e4fba6c75d092bad2123229013f6738c6b2b96df5afec0127869d4d53112dba1806c8f8b SHA512 7a4aaf3f1986f02c3f772fc3886ab960f4009dda3e0549f27e215e7a8d2ab7cc73229781a0f38727092a5cb62c0ba05d9fa4edd8a88c05134ba258f6368085f9 +DIST thunderbird-102.13.0-pl.xpi 716229 BLAKE2B dd48851f066fe3371c326d84a6be484b7e3a3167361a7f50e6f6b30688d40969ab1d90ef3dccf1d470fb4d7ea76f9abefe9eb06708b1dd0ce834dc0e7dffbd64 SHA512 fdfb78d0c5798ecefa408d226bc18c94b1c62dbe85e80c763ab99da84449708b1c3d1db3ebb9c4f74a39e24a0659b70172226db4172f9cb33a33c68bd29d0963 +DIST thunderbird-102.13.0-pt-BR.xpi 711150 BLAKE2B 642beba31b79f847072a250a50672cfb2227a7ff252caae8e2ae9840bfee486dc60908f3f7bd70117980597c95cd5ed8cf8c860a18aeaf7ef6002952e1f6cdb5 SHA512 0d817b74868a46c1405eabef5df3faec1bb9d37ae3c0e09f01a67b23bc1121f8adc8e901ed18e03d2e67bb159881a7a14e5da2650201327276d7063b60f765fb +DIST thunderbird-102.13.0-pt-PT.xpi 686910 BLAKE2B ecbaf9738859669b03bf632c09317399505a2c6cfbfa0c5dabebb51df53bc52b69729cdd2118de639e1811c342db043980dc71ceaec800ea0e711d6ef187ec3c SHA512 a95881f6c9cc903818c241aa59a0d4463d0c5df85f19020a466a49ee3496eb59c139fb4b48deac72c77305cccead4289d0752bedf0e8180bf5309b9c556c80fa +DIST thunderbird-102.13.0-rm.xpi 701681 BLAKE2B 03bd15deff66306ac75f0a6cc4030d7ffa188fc7018eabe0ebd347189280926e5904c66bf2ffd2308b202adc49f18b245aaa8f235750336f0c136e4c9b77982a SHA512 8ea83e013a8197c11bab38fc7cc1521b695c39e0a409d180e4db46986e9f5b526b7dd5d66ece8ae13130516ca41c5bc784ff046c636f4c9458a94d9f63a8fc1c +DIST thunderbird-102.13.0-ro.xpi 661281 BLAKE2B 08354c44434e79d18960ad69ce5eb51713de504ae5be33b9e153005653ad0d6e8af890d9b8eaa382d2e619a3c663d844a362f88409cf8458d3a9a3803599343d SHA512 7bb5c403c7381dc9cc5084d08129e678543caebcd5c650c06a827c1e032f7f3c7e088a5ce7c24cf121397949d6896aa3740ee7459bd55f860197c8cc9b341fe7 +DIST thunderbird-102.13.0-ru.xpi 827221 BLAKE2B b85820539559982ac9a9bc1da493390a70612a10307753e0a47c7e79815ba6a45bd2eb9f6c0a213c57d6782146a996d0d5ad88f55d9a27cc5d55a717b28b2822 SHA512 875898dd3f9a379c51c2353df200a62f99deb42fe0c54940e27d4259e979a026483a799230af10c27c9af4695c3bcabdabeb076408059c42dda2e63a700a599a +DIST thunderbird-102.13.0-sk.xpi 740981 BLAKE2B 3687b2f0c9d4769f0b846e231d0a2e8ddd20d6a6273b822509d4c721218f711391ff16281fa78be6d11a824648bfd2add03a546e333b6f0d426d4e50df1f812b SHA512 b666461ee94182101f986159f1a11fa53bdb59d504e594c2486d07659e921d17c71492fd83f468b6fbae7421a0dcb90a977eefe8ed6438371e21cd51a98144fa +DIST thunderbird-102.13.0-sl.xpi 704057 BLAKE2B eafc137066f3e19022e36ce9431c2c629cbfd59edb60de7e633413eea074b64e69bb08b94a2a539410afdd87da11bc2ac2d6939ab54579a81afe881a55c71677 SHA512 694631fdf0018ee45b601d3788f5a61b258925cdb93700a159b355a8fabf088a196d7d30bb10174ae57f82e57e5f198f8aeae9634f9e844e74aad6455eadeda2 +DIST thunderbird-102.13.0-sq.xpi 726036 BLAKE2B d1ded399b05530f000498363d6b2d353ba57ff8601cfdce0323f83f3b2087da0cb7f008eaf8c5ee8554e4d1049ad4571ebcbc66724c6ba416864615bb343e931 SHA512 737107ae7b84825e9979eddccb85b13ec263c38724890e74fc5b95a18f9edb66d65b9be70e0c6c44504c84e18f1d1d2101f4ad7f40cb8bc987552e5da3c52284 +DIST thunderbird-102.13.0-sr.xpi 720557 BLAKE2B 99ed0a16d551a67f2211caf31561639cc7ceb7ec4c654489a078bed4c52901c94007e89925c0865ee55699c9cd944983f0a12ffe948f6e46a2d553763cc3ec6b SHA512 edad7259529251a99514b86b25993209a7dcebde4c0436be5a1f6a4f330f4c61e7b0e719ff1325d217880d495f5d54a8be2b960ad4d337d76dbe82dee2b61deb +DIST thunderbird-102.13.0-sv-SE.xpi 706954 BLAKE2B 644ff766ccf9dbec9c4f850000fa10ab292e8c761411cb9b82805bd7fec31f8f3d3055d6c7c9752c6cfd5f1f21ebc1547a479f2aef83aec0ec44332cb0fa8f62 SHA512 3154155d6e3a3f2dbe98f27c557452368b13a33a31a41a7e38e55b8ce5e827c3066290cfedc391f7037a715901147c5ce6d699cfbff8a28af0480cc5a94a2587 +DIST thunderbird-102.13.0-th.xpi 758235 BLAKE2B 91be214e96c65e60f488122a82703586996e2528aa54db8f34511af358b5103126acfb3f0ff3892512836467524602b20a0cecf1acf437301d9b6460e4fe23d9 SHA512 d0824cfe6993a503071a68768670f3514c0de7151d43c0d5e6c3d66842bc817186030fd7816739534718ae4b569e86dca3da6606132805fcee1f536719775627 +DIST thunderbird-102.13.0-tr.xpi 720175 BLAKE2B adb1974a7f463ce858591989f799a9cc5e7727ced9deaca319afe8125cc2ab3926e5d63984f8c9ff4838a5c930b26365c333e037957a4b4219d6cef20baf5492 SHA512 4610215cbf9a1e650e76d6edfc2e14e698201c3c0ef51fb48e59bac74fbf6ec8f660bf65ff14d046489819c2b95bd60088bf7d0746ab2195829719fadecf6944 +DIST thunderbird-102.13.0-uk.xpi 818663 BLAKE2B 7bb55727bd50ac2570279a37e8f449c0af7341eff15609a50f31693b4c7af8d31ff9773011833406a1be44b6cc25c59bc7448853d251d2375f2b5c41608712e2 SHA512 8f0a47e4d6fbe6cbc9e33610ca2db97df4b750b769de40e6f02536894a97e463cd4f5ec49b0c563bc57fa9ddff75b2835c47950dd1bf85ee3e893b1839899071 +DIST thunderbird-102.13.0-uz.xpi 593012 BLAKE2B 7c0f62b7338dfab37d6df2de55ab0f306a940a42918360e92f7fbeca3fadb28320e8e6852c3766baeda14810c15e34ea8c0caa1fcd4e78556e02c8901fbcc51a SHA512 3ccce30ce66af4db0e61f598208983aed718a0f2bfed326bd5c13e4b640d8e27b2cccb90a38ca349fa625ae4c6d1abdf1982408ff1d21e4e48c874820127c3c6 +DIST thunderbird-102.13.0-vi.xpi 745663 BLAKE2B ada366e22a8ada1fe584c1f087cb3b55e00fc68de64f0b4302e91385779850fe5622678e92f5c5a4e4cc128506ca9df01e29b3c83f8b9afa9ba4c432f140ddef SHA512 767b32fc8604f667d2ddf1f0205f636f3dba2fa9482199febb6330b5dd07be0e57b092b67ce5031d21930168d946a45ab1f98f954279448c1a9f92d69541b893 +DIST thunderbird-102.13.0-zh-CN.xpi 739887 BLAKE2B 7f4564d89192cafeccd99893bb44f74ffc316bd106b28b580c1f8f8967cbdcc9247528dd59cd9fa62a49d1ca8907766ddee5bfa7c08d8a35940da135edf2dc90 SHA512 4bf08f0c26474da4592a21438fad776562763a6207fbd8c4a13ce8c8353f85f5fdcab7878210665547972d27ad27b396678425ec19d623351af6b7b3e0f53a20 +DIST thunderbird-102.13.0-zh-TW.xpi 748347 BLAKE2B f3d419e179b2840c56079204708f9fe3b0db1d0e606b6c87c17ff987d2c3ab0459dfd7a8d0e10d1718b944b7f30174c8dce76f8f03f84e3c18220845fa5cea3f SHA512 d682ccb94b7a8cc39668e3f7c09cf62c6e2fd8ed54609f2d8ba96aa79972f250c04012e7ccdce65e6df8375f89bdc8434892513ac1fe4cc2390f632e03dedecf +DIST thunderbird-102.13.0.source.tar.xz 503365504 BLAKE2B a4da44665a4b6f4d7a49d0e0e92a99c5dcd3d0064e5fc547f7c29a9df9e3efdaca6f9048bcfdd5fe9e52f1d30a49d79e8021158a61319e29cfa2ca95e14f9e09 SHA512 1ed48220f91cc2c38f59067664c02f1f2098c843810b8f81cb8dee4fe98911d87aac352ab8639c68d0eed74297240cd9e0ce0e64a40360511be85315f2bfcfc6 diff --git a/mail-client/thunderbird/thunderbird-102.13.0.ebuild b/mail-client/thunderbird/thunderbird-102.13.0.ebuild new file mode 100644 index 000000000000..f74cebc0aacb --- /dev/null +++ b/mail-client/thunderbird/thunderbird-102.13.0.ebuild @@ -0,0 +1,1178 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-102esr-patches-10tb.tar.xz" + +LLVM_MAX_SLOT=15 + +PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="pgo" + +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 \ + llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \ + virtualx xdg + +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~{juippis,whissi,slashbeast}/mozilla/patchsets/${FIREFOX_PATCHSET} +) + +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz + ${PATCH_URIS[@]}" + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +SLOT="0" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" + +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel" +IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp" +IUSE+=" wayland wifi" + +# Thunderbird-only USE flags. +IUSE+=" +system-librnp" + +REQUIRED_USE="debug? ( !system-av1 ) + pgo? ( lto ) + wayland? ( dbus ) + wifi? ( dbus )" + +# Thunderbird-only dependencies. +TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2 + selinux? ( sec-policy/selinux-thunderbird ) + !system-librnp? ( dev-libs/jsoncpp ) + system-librnp? ( dev-util/librnp )" +BDEPEND="${PYTHON_DEPS} + || ( + ( + sys-devel/clang:15 + sys-devel/llvm:15 + clang? ( + sys-devel/lld:15 + virtual/rust:0/llvm-15 + pgo? ( =sys-libs/compiler-rt-sanitizers-15*[profile] ) + ) + ) + ( + sys-devel/clang:14 + sys-devel/llvm:14 + clang? ( + sys-devel/lld:14 + virtual/rust:0/llvm-14 + pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] ) + ) + ) + ) + !clang? ( virtual/rust ) + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.24.3 + net-libs/nodejs + virtual/pkgconfig + amd64? ( >=dev-lang/nasm-2.14 ) + x86? ( >=dev-lang/nasm-2.14 )" + +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.79.2 + >=dev-libs/nspr-4.34 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/mesa + media-video/ffmpeg + sys-libs/zlib + virtual/freedesktop-icon-theme + virtual/opengl + x11-libs/cairo[X] + x11-libs/gdk-pixbuf + 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/libXtst + x11-libs/libxcb:= + x11-libs/libxkbcommon[X] + x11-libs/pango + x11-libs/pixman + dbus? ( + dev-libs/dbus-glib + sys-apps/dbus + ) + jack? ( virtual/jack ) + libproxy? ( net-libs/libproxy ) + pulseaudio? ( + || ( + media-libs/libpulse + >=media-sound/apulse-0.1.12-r4[sdk] + ) + ) + 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-71.1:= ) + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) + system-libevent? ( >=dev-libs/libevent-2.0: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? ( + x11-libs/gtk+:3[wayland] + x11-libs/libdrm + x11-libs/libxkbcommon[wayland] + ) + wifi? ( + kernel_linux? ( + dev-libs/dbus-glib + net-misc/networkmanager + sys-apps/dbus + ) + )" + +RDEPEND="${COMMON_DEPEND} + jack? ( virtual/jack ) + openh264? ( media-libs/openh264:*[plugin] )" + +DEPEND="${COMMON_DEPEND} + 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 ; then + if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then + einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then + einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + + if use pgo ; then + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2 + return 1 + fi + fi + fi + + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2 +} + +MOZ_LANGS=( + af ar ast be bg br ca cak cs cy da de dsb + el en-CA en-GB en-US es-AR es-ES es-MX et eu + fi fr fy-NL ga-IE gd gl he hr hsb hu + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO + pa-IN pl pt-BR pt-PT rm ro ru + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW +) + +mozilla_set_globals() { + # https://bugs.gentoo.org/587334 + local MOZ_TOO_REGIONALIZED_FOR_L10N=( + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE + ) + + local lang xflag + for lang in "${MOZ_LANGS[@]}" ; do + # en and en_US are handled internally + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then + continue + fi + + # strip region subtag if $lang is in the list + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then + xflag=${lang%%-*} + else + xflag=${lang} + fi + + SRC_URI+=" l10n_${xflag/[_@]/-}? (" + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi" + SRC_URI+=" )" + IUSE+=" l10n_${xflag/[_@]/-}" + done +} +mozilla_set_globals + +moz_clear_vendor_checksums() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -ne 1 ]] ; then + die "${FUNCNAME} requires exact one argument" + fi + + einfo "Clearing cargo checksums for ${1} ..." + + sed -i \ + -e 's/\("files":{\)[^}]*/\1/' \ + "${S}"/third_party/rust/${1}/.cargo-checksum.json \ + || die +} + +moz_install_xpi() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local DESTDIR=${1} + shift + + insinto "${DESTDIR}" + + local emid xpi_file xpi_tmp_dir + for xpi_file in "${@}" ; do + emid= + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}") + + # Unpack XPI + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die + + # Determine extension ID + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf") + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf" + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json") + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json" + else + die "failed to determine extension id" + fi + + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..." + newins "${xpi_file}" "${emid}.xpi" + done +} + +mozconfig_add_options_ac() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_add_options_mk() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 2 ]] ; then + die "${FUNCNAME} requires at least two arguments" + fi + + local reason=${1} + shift + + local option + for option in ${@} ; do + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG} + done +} + +mozconfig_use_enable() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_enable "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +mozconfig_use_with() { + debug-print-function ${FUNCNAME} "$@" + + if [[ ${#} -lt 1 ]] ; then + die "${FUNCNAME} requires at least one arguments" + fi + + local flag=$(use_with "${@}") + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}" +} + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has usersandbox $FEATURES ; then + die "You must enable usersandbox as X server can not run as root!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6600M" + fi + + check-reqs_pkg_pretend + fi +} + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] ; then + if use pgo ; then + if ! has userpriv ${FEATURES} ; then + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!" + fi + fi + + # Ensure we have enough disk space to compile + if use pgo || use lto || use debug ; then + CHECKREQS_DISK_BUILD="13500M" + else + CHECKREQS_DISK_BUILD="6400M" + fi + + check-reqs_pkg_setup + + llvm_pkg_setup + + if use clang && use lto ; 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 + # Allow access to GPU during PGO run + local ati_cards mesa_cards nvidia_cards render_cards + shopt -s nullglob + + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g') + if [[ -n "${ati_cards}" ]] ; then + addpredict "${ati_cards}" + fi + + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g') + if [[ -n "${mesa_cards}" ]] ; then + addpredict "${mesa_cards}" + fi + + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g') + if [[ -n "${nvidia_cards}" ]] ; then + addpredict "${nvidia_cards}" + fi + + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g') + if [[ -n "${render_cards}" ]] ; then + addpredict "${render_cards}" + fi + + shopt -u nullglob + fi + + if ! mountpoint -q /dev/shm ; then + # If /dev/shm is not available, configure is known to fail with + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py + ewarn "/dev/shm is not mounted -- expect build failures!" + fi + + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc" + fi + + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ" + fi + + # Mozilla API keys (see https://location.services.mozilla.com/api) + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please + # get your own set of keys. + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005" + fi + + # Ensure we use C locale when building, bug #746215 + export LC_ALL=C + fi +} + +src_unpack() { + local _lp_dir="${WORKDIR}/language_packs" + local _src_file + + if [[ ! -d "${_lp_dir}" ]] ; then + mkdir "${_lp_dir}" || die + fi + + for _src_file in ${A} ; do + if [[ ${_src_file} == *.xpi ]]; then + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!" + else + unpack ${_src_file} + fi + done +} + +src_prepare() { + if use lto; then + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die + fi + + 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)" + + # Make LTO respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/build/moz.configure/lto-pgo.configure \ + || die "sed failed to set num_cores" + + # Make ICU respect MAKEOPTS + sed -i \ + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ + "${S}"/intl/icu_sources_data.py \ + || die "sed failed to set num_cores" + + # sed-in toolchain prefix + sed -i \ + -e "s/objdump/${CHOST}-objdump/" \ + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \ + || die "sed failed to set toolchain prefix" + + sed -i \ + -e 's/ccache_stats = None/return None/' \ + "${S}"/python/mozbuild/mozbuild/controller/building.py \ + || die "sed failed to disable ccache stats call" + + einfo "Removing pre-built binaries ..." + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die + + # Clearing crate checksums where we have applied patches + moz_clear_vendor_checksums bindgen + + # 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 ..." + if tc-is-gcc; then + have_switched_compiler=yes + fi + AR=llvm-ar + CC=${CHOST}-clang + CXX=${CHOST}-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 + export HOST_CC="$(tc-getBUILD_CC)" + export HOST_CXX="$(tc-getBUILD_CXX)" + export AS="$(tc-getCC) -c" + tc-export CC CXX LD AR AS NM OBJDUMP RANLIB PKG_CONFIG + + # Pass the correct toolchain paths through cbindgen + if tc-is-cross-compiler ; then + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}" + fi + + # Set MOZILLA_FIVE_HOME + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" + + # python/mach/mach/mixin/process.py fails to detect SHELL + export SHELL="${EPREFIX}/bin/bash" + + # Set state path + export MOZBUILD_STATE_PATH="${BUILD_DIR}" + + # Set MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + + # Set Gentoo defaults + export MOZILLA_OFFICIAL=1 + + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-gpsd \ + --disable-install-strip \ + --disable-parental-controls \ + --disable-strip \ + --disable-updater \ + --enable-js-shell \ + --enable-negotiateauth \ + --enable-new-pass-manager \ + --enable-official-branding \ + --enable-release \ + --enable-system-ffi \ + --enable-system-pixman \ + --host="${CBUILD:-${CHOST}}" \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + --prefix="${EPREFIX}/usr" \ + --target="${CHOST}" \ + --without-ccache \ + --without-wasm-sandboxed-libraries \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-nspr \ + --with-system-nss \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system \ + --x-includes="${ESYSROOT}/usr/include" \ + --x-libraries="${ESYSROOT}/usr/$(get_libdir)" + + # Set update channel + local update_channel=release + [[ -n ${MOZ_ESR} ]] && update_channel=esr + mozconfig_add_options_ac '' --update-channel=${update_channel} + + if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then + mozconfig_add_options_ac '' --enable-rust-simd + fi + + # For future keywording: This is currently (97.0) only supported on: + # amd64, arm, arm64 & x86. + # Might want to flip the logic around if Firefox is to support more arches. + if use ppc64; then + mozconfig_add_options_ac '' --disable-sandbox + else + mozconfig_add_options_ac '' --enable-sandbox + 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-png + mozconfig_use_with system-webp + + if use system-librnp; then + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment + mozconfig_use_with system-librnp + else + # This controls the backend of the bundled librnp. Choices are "botan" and "openssl". + # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp. + mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan" + fi + + mozconfig_use_enable dbus + mozconfig_use_enable libproxy + + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme + + if use hardened ; then + mozconfig_add_options_ac "+hardened" --enable-hardening + append-ldflags "-Wl,-z,relro -Wl,-z,now" + fi + + local myaudiobackends="" + use jack && myaudiobackends+="jack," + use sndio && myaudiobackends+="sndio," + use pulseaudio && myaudiobackends+="pulseaudio," + ! use pulseaudio && myaudiobackends+="alsa," + + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}" + + mozconfig_use_enable wifi necko-wifi + + if use wayland ; then + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland + else + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3 + fi + + if use lto ; then + if use clang ; then + # Upstream only supports lld when using clang + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld + + mozconfig_add_options_ac '+lto' --enable-lto=cross + + else + # ThinLTO is currently broken, see bmo#1644409 + 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 + # This is upstream's default + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld + else + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + fi + + # LTO flag was handled via configure + filter-lto + + mozconfig_use_enable debug + if use debug ; then + mozconfig_add_options_ac '+debug' --disable-optimize + else + if is-flag '-g*' ; then + if use clang ; then + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*') + else + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols + fi + else + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols + fi + + if is-flag '-O0' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0 + elif is-flag '-O4' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4 + elif is-flag '-O3' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3 + elif is-flag '-O1' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1 + elif is-flag '-Os' ; then + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os + else + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2 + fi + fi + + # Debug flag was handled via configure + filter-flags '-g*' + + # Optimization flag was handled via configure + filter-flags '-O*' + + # Modifications to better support ARM, bug #553364 + if use cpu_flags_arm_neon ; then + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon + + if ! tc-is-clang ; then + # thumb options aren't supported when using clang, bug 666966 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \ + --with-thumb=yes \ + --with-thumb-interwork=no + fi + fi + + if [[ ${CHOST} == armv*h* ]] ; then + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard + + if ! use system-libvpx ; then + sed -i \ + -e "s|softfp|hard|" \ + "${S}"/media/libvpx/moz.build \ + || die + fi + fi + + if use clang ; then + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822 + # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64') + local disable_elf_hack= + if use amd64 ; then + disable_elf_hack=yes + elif use x86 ; then + disable_elf_hack=yes + elif use arm ; then + disable_elf_hack=yes + fi + + if [[ -n ${disable_elf_hack} ]] ; then + mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack + fi + elif tc-is-gcc ; then + if ver_test $(gcc-fullversion) -ge 10 ; then + einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..." + append-cxxflags -fno-tree-loop-vectorize + fi + fi + + # Additional ARCH support + case "${ARCH}" in + arm) + # Reduce the memory requirements for linking + if use clang ; then + # Nothing to do + :; + elif use lto ; then + append-ldflags -Wl,--no-keep-memory + else + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads + fi + ;; + esac + + if ! use elibc_glibc ; then + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc + fi + + # Allow elfhack to work in combination with unstripped binaries + # when they would normally be larger than 2GiB. + append-ldflags "-Wl,--compress-debug-sections=zlib" + + # Make revdep-rebuild.sh happy; Also required for musl + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags + + # Pass $MAKEOPTS to build system + export MOZ_MAKE_FLAGS="${MAKEOPTS}" + + # Use system's Python environment + export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach + + if use system-python-libs; then + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system" + else + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none" + fi + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Portage sets XARGS environment variable to "xargs -r" by default which + # breaks build system's check_prog() function which doesn't support arguments + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs" + + # Set build dir + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}" + + # Show flags we will use + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}" + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}" + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}" + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}" + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}" + + # Handle EXTRA_CONF and show summary + local ac opt hash reason + + # Apply EXTRA_ECONF entries to $MOZCONFIG + if [[ -n ${EXTRA_ECONF} ]] ; then + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!} + for opt in "${ac[@]}"; do + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--} + done + fi + + echo + echo "==========================================================" + echo "Building ${PF} with the following configuration" + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do + [[ -z ${hash} || ${hash} == \# ]] \ + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}" + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}" + done + echo "==========================================================" + echo + + ./mach configure || die +} + +src_compile() { + local virtx_cmd= + + if use pgo ; then + virtx_cmd=virtx + + # Reset and cleanup environment variables used by GNOME/XDG + gnome2_environment_reset + + addpredict /root + fi + + local -x GDK_BACKEND=x11 + + ${virtx_cmd} ./mach build --verbose \ + || die +} + +src_install() { + # xpcshell is getting called during install + pax-mark m \ + "${BUILD_DIR}"/dist/bin/xpcshell \ + "${BUILD_DIR}"/dist/bin/${PN} \ + "${BUILD_DIR}"/dist/bin/plugin-container + + DESTDIR="${D}" ./mach install || die + + # Upstream cannot ship symlink but we can (bmo#658850) + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin + + # Don't install llvm-symbolizer from sys-devel/llvm package + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die + fi + + # Install policy (currently only used to disable application updates) + insinto "${MOZILLA_FIVE_HOME}/distribution" + newins "${FILESDIR}"/distribution.ini distribution.ini + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json + + # Install system-wide preferences + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref" + insinto "${PREFS_DIR}" + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js + + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js" + + # Set dictionary path to use system hunspell + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref" + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell"); + EOF + + # Force hwaccel prefs if USE=hwaccel is enabled + if use hwaccel ; then + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \ + >>"${GENTOO_PREFS}" \ + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js" + + if use wayland; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs" + pref("gfx.x11-egl.force-enabled", false); + EOF + else + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs" + pref("gfx.x11-egl.force-enabled", true); + EOF + fi + fi + + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it + if use system-harfbuzz ; then + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref" + sticky_pref("gfx.font_rendering.graphite.enabled", true); + EOF + fi + + # Install language packs + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') ) + if [[ -n "${langpacks}" ]] ; then + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}" + fi + + # Install icons + local icon_srcdir="${S}/comm/mail/branding/thunderbird" + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg" + + insinto /usr/share/icons/hicolor/symbolic/apps + newins "${icon_symbolic_file}" ${PN}-symbolic.svg + + local icon size + for icon in "${icon_srcdir}"/default*.png ; do + size=${icon%.png} + size=${size##*/default} + + if [[ ${size} -eq 48 ]] ; then + newicon "${icon}" ${PN}.png + fi + + newicon -s ${size} "${icon}" ${PN}.png + done + + # Install menu + local app_name="Mozilla ${MOZ_PN^}" + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop" + local desktop_filename="${PN}.desktop" + local exec_command="${PN}" + local icon="${PN}" + local use_wayland="false" + + if use wayland ; then + use_wayland="true" + fi + + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die + + sed -i \ + -e "s:@NAME@:${app_name}:" \ + -e "s:@EXEC@:${exec_command}:" \ + -e "s:@ICON@:${icon}:" \ + "${WORKDIR}/${PN}.desktop-template" \ + || die + + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}" + + rm "${WORKDIR}/${PN}.desktop-template" || die + + # Install wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}-r1.sh" ${PN} + + # Update wrapper + sed -i \ + -e "s:@PREFIX@:${EPREFIX}/usr:" \ + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \ + -e "s:@APULSELIB_DIR@:${apulselib}:" \ + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \ + "${ED}/usr/bin/${PN}" \ + || die +} + +pkg_preinst() { + xdg_pkg_preinst + + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse + # does not need to be forced into the LD_LIBRARY_PATH + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + einfo "APULSE found; Generating library symlinks for sound support ..." + local lib + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do + # A quickpkg rolled by hand will grab symlinks as part of the package, + # so we need to avoid creating them if they already exist. + if [[ ! -L ${lib##*/} ]] ; then + ln -s "${lib}" ${lib##*/} || die + fi + done + popd &>/dev/null || die + fi +} + +pkg_postinst() { + xdg_pkg_postinst + + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then + elog "Apulse was detected at merge time on this system and so it will always be" + elog "used for sound. If you wish to use pulseaudio instead please unmerge" + elog "media-sound/apulse." + elog + fi + + local show_doh_information + local show_shortcut_information + + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + # New install; Tell user that DoH is disabled by default + show_doh_information=yes + show_shortcut_information=no + else + local replacing_version + for replacing_version in ${REPLACING_VERSIONS} ; do + if ver_test "${replacing_version}" -lt 91.0 ; then + # Tell user that we no longer install a shortcut + # per supported display protocol + show_shortcut_information=yes + fi + done + fi + + if [[ -n "${show_doh_information}" ]] ; then + elog + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):" + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all" + elog "DNS traffic to Cloudflare by default is not a good idea and applications" + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5" + elog "(\"Off by choice\") by default." + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences." + fi + + if [[ -n "${show_shortcut_information}" ]] ; then + elog + elog "Since ${PN}-91.0 we no longer install multiple shortcuts for" + elog "each supported display protocol. Instead we will only install" + elog "one generic Mozilla ${PN^} shortcut." + elog "If you still want to be able to select between running Mozilla ${PN^}" + elog "on X11 or Wayland, you have to re-create these shortcuts on your own." + fi + + # bug 835078 + if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then + ewarn "You have nouveau drivers installed in your system and 'hwaccel' " + ewarn "enabled for Firefox. Nouveau / your GPU might not support the " + ewarn "required EGL, so either disable 'hwaccel' or try the workaround " + ewarn "explained in https://bugs.gentoo.org/835078#c5 if Firefox crashes." + fi + + optfeature_header "Optional programs for extra features:" + optfeature "desktop notifications" x11-libs/libnotify + optfeature "encrypted chat support" net-libs/libotr + optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas +} |