diff options
author | Joonas Niilola <juippis@gentoo.org> | 2024-10-11 14:12:54 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-10-11 14:12:54 +0300 |
commit | abf38aaf69785395e1ad09590c21cd667fd3c870 (patch) | |
tree | 597ff0be30f334f9e862f714ac29e2186731b868 /mail-client | |
parent | app-pda/libplist: Stabilize 2.6.0 amd64, #941272 (diff) | |
download | gentoo-abf38aaf69785395e1ad09590c21cd667fd3c870.tar.gz gentoo-abf38aaf69785395e1ad09590c21cd667fd3c870.tar.bz2 gentoo-abf38aaf69785395e1ad09590c21cd667fd3c870.zip |
mail-client/thunderbird: add 128.3.1
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/thunderbird/Manifest | 65 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-128.3.1.ebuild | 1192 |
2 files changed, 1257 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index 265abd620ddb..7c5c0e562be8 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -195,3 +195,68 @@ DIST thunderbird-128.3.0esr-vi.xpi 788486 BLAKE2B 706e0f0d1c9860f71999b51afb0465 DIST thunderbird-128.3.0esr-zh-CN.xpi 786951 BLAKE2B ce6e4cf163bc6d6ad4f1842f796d383bbd35642f8551944a753f7cd4c4735f3525260aa8caaa041c724c3480ac66fc14cec1c4e35e546e043f23b5e1b4639852 SHA512 90cc47eb849e5e838564523cb6ca2e1f47ab4bb5753f6efe8ee5896a38a4e8396881b219943aaa74e5ccba528d855f2b696dfdcf0ac4e9f21d86a82fca116109 DIST thunderbird-128.3.0esr-zh-TW.xpi 791295 BLAKE2B bbf10659067e76ebd2c7897d17f64d9dd94a1c3077af746d5250dd35c34fd6bb12e273a27da875ebc42421d3ae4e22d8f660ebf8283f2d033101860c3fbb95e3 SHA512 7239a020e70075cb6bde0d67fed701e3b285fed3054d5ebc3f910756559301470dc64a116d761a98ebd1d4ec78f512dbbc742a2cd6509f71e3650d2fa2755245 DIST thunderbird-128.3.0esr.source.tar.xz 672592576 BLAKE2B 905e7d7aaa17ffb2eef09e54f904d008216b5d577ab98d89219c3a63ae127ea931818c5ec2e65136cd03c82b8cf91d5cfdd2e05d6b79c7412259bf87a023cd05 SHA512 10d5efecca85f8fb394bd01bbe92b949365a0f643fa25d42e5d701deafaca7694687941bc5ae5ee836bc6543c6db81f4e9998f006c134513e6cbd22e94594ae0 +DIST thunderbird-128.3.1esr-af.xpi 530350 BLAKE2B 579853b1d476b123c34b6207dc2e35f994bb3638773d656f98dccf3dddb4888785b883dde93c6d22b3cf47aa6d058b9446ac2d051e2b748f0730ef9886bdad44 SHA512 94fc0d5210f0cb39fb4e7c8b97b467c6a8cb6d6fbebf813cec3c59c9b485bc343f04f47c7ce8c85debae1d75c9fed4c6bf0b79ea901014b401ecfa947627e602 +DIST thunderbird-128.3.1esr-ar.xpi 679867 BLAKE2B 0643cd7085e093ccc2a381d1a1d71782942dc900e4451805773725731964d1b9ec981f5f7c6912759e22a2955e5a9d0acca71b5b8c54e262cf3d9b5b105b76ee SHA512 51ddb27f1411b867ab83c0dc92449a223a4fc5597fa1041f7a477859cb149f128ae0d7a5d25b178bb5b15a6384145eb9a20a5b60945778d11ca6db3280508c2d +DIST thunderbird-128.3.1esr-ast.xpi 561054 BLAKE2B 932789c16556c4503ecda989c5a3bdcd052626f1cebefc11e50e22a04581f052785badef76d03b6a51bd1e73a62b92c2697604baae77fc04c2ec472c207d1dab SHA512 6c7b68f2ed1e346c294890868710b8ed60226df6f147aa78a1a5ce28b5bccd20456d85bca59d02917bf954ea4eee10d1a9b1265e1cd773c99959661f0b9ef39f +DIST thunderbird-128.3.1esr-be.xpi 766042 BLAKE2B 0a6e0e97eb36bf0e8f14f335ea666c97319be33024de4da08a944814a615e95b5384d00540759a35741356091f999baae33d119153efd5a9fd3a709fec4fc233 SHA512 6e1060ce382273be3b0a9560cc8fa70b76d1da0db8bb922122911d54f58ec49f1e1607067a2e441e1a9cdebdf5bb02916dd6fba11981a4d4e73ce14c2bbd8ba3 +DIST thunderbird-128.3.1esr-bg.xpi 809258 BLAKE2B 1364a222a1f8e00c43d0cbd86108fd2f1f7b03f6a307254a5fba12276c96e595f3d14f6b60e272e90b0d0b45739b656bbdc5b61821fa7bcf355002cff360fc10 SHA512 7e1a9a81faaed5fd49e2fe6e5edb1776a2d88d07c304ca33701a1c08c869889b46024496ab83a9da1b23aa33953841de871753d739c297d43df59194af880838 +DIST thunderbird-128.3.1esr-br.xpi 652476 BLAKE2B 16886a58e51329437a90b8d1af157a7ffa09e4c5e31502fe847a0942ef773fc9eab37da2ef21991eca3abe2c0ef14995ed820484ba3e88df04f4a6902c59e38d SHA512 d9e6d831a67c35320104c8ceaf2404bec39dd9aca0ac310d01867e05a2561fb84221f7776706cdd1c75a862f6f30088278d677ea82467972650a1275436e6d0a +DIST thunderbird-128.3.1esr-ca.xpi 709741 BLAKE2B ac284bf29416485bfeedbc7ace0591e1c44a4065def2d2bd72a0a2a750754d1ca80063e328efb7b7f9a584c85f2b190f8e80913d6ee829ccd6265198c1f8f71c SHA512 48d511bfd3b2b9df0295dc821101cdd1f92f4e2190b73db8c4dfa37ac4d450f635d057db074fda17dd20356662b67618d711e615a721af303ba9d0418a318493 +DIST thunderbird-128.3.1esr-cak.xpi 671704 BLAKE2B 97efc3dc297fc1e8414fa62122531a4a2d65158cd7c34cdbe7ae6f74dd0ad20f50596c5e97098ee57e54e9e3c339604eddda7843aa1a1a2ce01dfe8271f72185 SHA512 1391a3d002a504aba580b0f16d4b415156bfa26ba6af882e35f8db297f19aff8819fa613b5d15a27a41d16c9d5ee98aa821b99abbab45784741f673cce1a43f4 +DIST thunderbird-128.3.1esr-cs.xpi 786626 BLAKE2B 70ca2f0b565312747834b7894d86e44d5793e88ca77eae25acaac8d92da9eb4883787f22642a10b0493eb72433a44823bf872bb84dfef432d8be63858ca3a648 SHA512 4fa1f1a42f38569216f0d342505cccaf42e3e30d616b660ad01101a9087e75874434479663dadfb4e5823af1bece4a1576e5a994db01bff81c02bc21eb6eddcc +DIST thunderbird-128.3.1esr-cy.xpi 750627 BLAKE2B f448ebfbf9f49e967605f85640f544cf78e492e0e312b558e9bf59cf20e29e0e92f2835cd1a62723dbf8873953542e60cb05af5624d2291746f0eb13797b02b9 SHA512 2a63630545ce9b202e2f2cf22e99d9ade7c22d4d0de7c18d2c277b1a2b7e6a476c57070876968440c044e29c20d0e41ad1c948594d74691696de6aee266496b7 +DIST thunderbird-128.3.1esr-da.xpi 734118 BLAKE2B 2621dcacc3a770b329150dc7d5af18a9308dc0b157f5d8c8923803a5bf12893a66073c37d4fa12db4631290916ac0f372a4ce6a19097026b6cd8651d76cb6f37 SHA512 9d4f21c2d0d80432b0557bc51a5c53cde8173d656dc010a8af51f67d89225937ef0de718c25b9ecf7cf7fb680a9497dcd6373ab4deacc73c0e86057c4f72a625 +DIST thunderbird-128.3.1esr-de.xpi 767774 BLAKE2B b19978f3b230f16785b4ce45810eced4ec32c4df60e2bea752ec789fa6c76243c58be7c8029c336cc45472e6ac0e9d5e7d3ffd35db81eddcc2a0715855aa2133 SHA512 aff87c60c328fb91527dac870daf83c2a2382c99fa0b7666e2e38a75ef0b2bcf6c51337db66c5f0bc3d511c8dcd932cae6a25e8cbd34429ea797e3aaca7a6c74 +DIST thunderbird-128.3.1esr-dsb.xpi 784324 BLAKE2B fdbfda62611be6781dd3a8b91175058622530888afe3ad4b1219d435301c0d0cdb55c87985ad6f74e837ef0ed3d6b022c3d50ffa7598bc70585e3ce74c4a9acb SHA512 f19b2f6c1e7c1f8a9e47a971c1846f85faf054650c8dfbff920c4c596bb9650fe0967b7298daf4bdf1be38f2aba1dc60ec004a16b56f92de22d7435c64bdaff4 +DIST thunderbird-128.3.1esr-el.xpi 890907 BLAKE2B 88a45202ac986dde28f2f4c3d06d90b60936b439f32bc61754e69c0487e59636e6c88aa15d8156bc1b27784d68954b03f9dbacc1daa8457612924b9c2c020194 SHA512 ac6c5869e33b5c1664788b49e737798a14477619a376487d4ec97d78b330fc3ee41b15f2ffd85f4b8b99d684b12d6f5e7faac6bdc25a99a8cf0bca9a80034580 +DIST thunderbird-128.3.1esr-en-CA.xpi 703808 BLAKE2B 647b9bab9ca4d3fc35fd378ddb7fc563f7fd050df0db4ee3aadc92a3494926b1d066c5202ed5a63c554b5bad8b899be19dd40a919cc2d66f7b53f8de6c6623d2 SHA512 66afcdf6b031ccac4a7c96f11eda6db57a0c53bcc38c113da88517a7f82b3267c40880e8a1f123fa5efccf6071d487102071b4f77bc913e920470a84e87f7f48 +DIST thunderbird-128.3.1esr-en-GB.xpi 704129 BLAKE2B 33640dccf1e3e7451e43dd3ece3cf39ed1ce0182e921a4180a3f3a60777f6b73f91274d894725bc12a37d90f90c66919f047f7d82934f5855e583d83a7331efb SHA512 86d7248ae9993667e02a17db562450c46087347de97c11baf05319627b464f3a2703ad42cb6fb1c440d100ffb5edf92a5f85f71cbc5219ea3b5eea74acef4f2a +DIST thunderbird-128.3.1esr-es-AR.xpi 759813 BLAKE2B 25f5f6bd1b53d386c1a6bb64d2a3bc3deaf9dd379882035dff8775db9f39e6fba44d96d14151c5a80ea54912cd23d479019c901fe445d5c423c72d5c77376a52 SHA512 23a150e7a5d2332ef16fba319845ba93e7f2d3bdd21cfeb0e1190583ac14e059c6247fd855a849a50f5de745f2ef2a0adf13d857a0c5ec761d47bbd0a8009dfb +DIST thunderbird-128.3.1esr-es-ES.xpi 724716 BLAKE2B b2be297e469ede2a647949dc21d6776f0bfc2ed562084dacb65c12e3aaa554e00aece064491d1f4757a1f813e3e0a67131df0f3f460b0b32e7831310e708235a SHA512 734e9c959fa35c888683f31231a67307bf2d7a0c32391386ad6eed14fbe89b3fa128f471d309de5afdafb19abea17637ac81746f96e30942111197459258c183 +DIST thunderbird-128.3.1esr-es-MX.xpi 737708 BLAKE2B 947e9e82fe54b0f03c549ddaa1eebe638e68728e00831c8a9d5f82e68acdfbf583ab8d64cf747c1705373e8360229e38e475f93823b44bd6b8c9cf355ae1e3bd SHA512 8349c3c03d7fdcef005faf75f6f09732bef0b0d079cfe39ba904267f081aa45546a62668dada418568e48bacb2aaa7946b00e743067044234a13a5e62756ad32 +DIST thunderbird-128.3.1esr-et.xpi 696281 BLAKE2B 1b2d9ea970cc965e8db130fce3fb178969e847678ca224cafb1358b3e5dd0af4ca1dca0a39bfe680793203f2be22b3e8433ceac3c7a3a1a073bc4987686a2d87 SHA512 b42308e119a99c01ba655c1f57c6303ddc9ae484efeb717e07577fbdaeb0071f4c57997df878bccc0879d912e3c494ccc1ee55acf2174601b1fcd667fd5ae8db +DIST thunderbird-128.3.1esr-eu.xpi 733523 BLAKE2B e27c0c0e50ef80855ef2bd0fbc18da39b04c3693d09f2e833421b74b48bddfcd599167db6b49ed29e772c184b3d3c6e4b529e7304d7034f87ebb8bb476165818 SHA512 24fd87a84be40efad77f3b008f28824d3bf3dd4bf54693050acc645be6efe3d7bf3b9bc83ff293335967e62435127119ba5c92368eb4c8d6283b5a846c40bdb1 +DIST thunderbird-128.3.1esr-fi.xpi 735417 BLAKE2B 619ef7f20dfa571c5e66aa66b2d78160405afc83bb1fcd3bb40d43a33ecba6fb08ef09d35624eb3e68f0eaa0b088b539a4ca471e4c6ab5447e1b4d0a13d112c7 SHA512 f49b869c8809506ebec38f59845fa8812116e8dc4d2d97e65230b1d6c67b1214ff7e9eadf68ddfbd3cb8fff8588d6632d1870cd6e2fd7a86ef84e07b908a56c7 +DIST thunderbird-128.3.1esr-fr.xpi 771569 BLAKE2B 09e2e1f39b29ab865a732a2bb6b408b0fbe9d81a121698fc248e3d28c803d55f22abe0c298aa1a73c8c0ccdbba3ba7e0bc88110a2e176fa5c7f18dbd938c626e SHA512 0a67096cf314c57747bcb5d84fe868b52f8c4a4ee96a6d202decca2adf878c24c296abce34a37ee8b11a57c2fac501f2c3bcd79e13cad9a7b0895a88dba4ee2f +DIST thunderbird-128.3.1esr-fy-NL.xpi 754305 BLAKE2B 73205dfcdef7071778066db57e17771ff219cde651883aa4d3e451ab1dc1428a0bb5409eac592d0e85c671aa774d5d782bfc86a1c67547995c376330b4503519 SHA512 84956ffb9f8e120a697c8f99a19e80b26e1fe3f4e406acdd162c9a166d8b61e5361563271b83bd85bb83e4e902d77b911543c9384330e209763f4e9fd45ca176 +DIST thunderbird-128.3.1esr-ga-IE.xpi 615879 BLAKE2B 4d6efafef48f0b91aaac426ef430293cde326403592fbb502c842cd994bada0a716a4e54e5adc48bc0dd6dd0c5ee3bbc09dd3830dcf339e4689e7fe34843e13a SHA512 c8ad24864c0f68e26f19e0bc4e4912b5acc76d6ee7bdc662d6e025d9d0fd9e12dce0984901c5c1a224a4ea28b3567e8881d0e5e1e529141f71f0aed35c2e2dac +DIST thunderbird-128.3.1esr-gd.xpi 727803 BLAKE2B b75d65c8fd2bbed6f128da8795385a9cbfb612d7425f5ad4da9d2b3b0890e127ec2365f53871008cf7d401993738927827abedda5537ee3c8e5b45dac8908e3c SHA512 a8dd8c77f290fc884e4af607fe339603a8d540edd5a591949d5208c8346d4c70b47f89fb57e0961af0489525fd141ade67e8970930bda9b48e9467ce55f112e7 +DIST thunderbird-128.3.1esr-gl.xpi 741260 BLAKE2B 03355442815579d7ecee4db88f08d7e1e57a825b985acbdbc15f9b2d3a17ba43f7023ca86ec203eb2558620eaf7c2b156ebe59fc7125ee273da33a3a35c440cb SHA512 41a14cb55016fc157ac8cde8baaa0f7161657591be64e29a2b4e2e33dacc095de599f00800e6d3bebddd1d2ee844f5609b68cd1e90431dcacbc86c607624e577 +DIST thunderbird-128.3.1esr-he.xpi 700302 BLAKE2B 8d53123669121953acb1fe9e0f4612e42503d21a4aa97a88a140f26d77bfe24cbf05e1ec3dc7eaa4e1a251e55cc5693be2f29cfc58bfe61022f2aec347a66611 SHA512 2ac67ec9ab2096f2509a9fbdd05a14eb68aeb1c9c5aff2ce65cd6bffa12c2d54c4d4323f12ef3b3a515ea1acf38cb6417368cd9591f2d9ce7bf6705a715a79f6 +DIST thunderbird-128.3.1esr-hr.xpi 716556 BLAKE2B de6ce5a12c7c0935d1648d14662aea70a63f63be045d89b749636a007b1e88e81aaeaf5e886606812ea57962c9de65db5c7db291e80142c2eb9f4e5aeca3664a SHA512 40662e692263d3f2730dbdbe15ea03de8b0ebb5ac410adf9bff1310bac78a971f5ded08eb3ca68785983b1d9362528cb88869a42754050fae380e5159f959deb +DIST thunderbird-128.3.1esr-hsb.xpi 781729 BLAKE2B 24a8ba966a380c6e1f1cdecf88fdc3b61a1bc25d34f2a6a543de1809eec42d372aed2b999730eb7d04fb822da919ad84d4b117447d460d81175076c6605b1973 SHA512 0b726134b4dcce386aa37e6738b1a36ed5bad93128b8894222a284a5237cd2352bd217937080f39183d5b13d68a0c952b7e53cf53497b5bce306f60cfbfa72f4 +DIST thunderbird-128.3.1esr-hu.xpi 784761 BLAKE2B 566602241f9f642fa353440fd2996f91fa753de479b0d2ccb56ca5ce685abc46f2f3d4513af36eac114424efd3662200d3587979427d796bd4ddba99bc4e375c SHA512 d9536d8e34b08a44d7863b98c989bdece5eb4829b80f0b29f66cf60baeed0f9fa7af342841d8f71e032a128d5d56b904a7ea9457e0e8b24fdd70906a69824241 +DIST thunderbird-128.3.1esr-id.xpi 666011 BLAKE2B 2c6c9208fa2bacd812e8d9dee9c641b41f0b127cec6290bffc59edf9934a4ad894823728b384ac3b2403f00457d75d78ae8ede4d40f4586194f2c65dae768c96 SHA512 d412dcafc272ea401f531977cf09544ee2f9dd4e878e8797f0878f1b646b53894ff80d690b867219160c01663c9ca8faf7c88ce851148dd700b8e7933605c501 +DIST thunderbird-128.3.1esr-is.xpi 744890 BLAKE2B af157e409fe7a19dfc281bb98fecc5706a0838cba472ef990dfe175e83e4b1bc3021cad94cdbd959d862bb342b4acd166f019c48b1103426bb88c768670d4254 SHA512 f67cafcf3f84e8d3fc52963f13ea58511d068bbbc6a0be04f738b883d669742c5f48232e764be9ee9399686bd7bbe357e36d47da111e962d2a2f3d1ecfe9df1e +DIST thunderbird-128.3.1esr-it.xpi 691968 BLAKE2B 7dcaef3b7f7af2bd48921c37c30c54fee5f0aa5a1e03061ecd5d9b65a6e6188bf0a47566e33a5052a950c2ab35fc1c33b45fae23d9e102852d158161958fa071 SHA512 7c03bdb593ba110f23bda0c9561c61b81788a5c821cd5bd2fa97bf1f85f78688ad029dbeff4d9bafd36b9e433b6f8a1308bce01512a1f8b3cffb6c756eaa1d21 +DIST thunderbird-128.3.1esr-ja.xpi 821186 BLAKE2B 52731922865d9b3d17204c7dcc9a57598df815988dc50ec4c92e9418d8ee3bb1c9149bec6e1d94513dd9cd49c8c0333864a8de4f99fe72598ad01fce143b2089 SHA512 1a03036cb2ec2db8c61c407940064e6998755480fa9c2bf61d39c9f4fae735b0dafd2c9b935af10b478737170da18087e1b0a7820b0bc4289b044fb5c96e4b2b +DIST thunderbird-128.3.1esr-ka.xpi 796047 BLAKE2B 7140503cd09b703897fbb4f8fba8ebba5d0c6a7a35c83f59b7b398ac378d6e5c4f62a2c413ba14e58752c81228c9baa51d70d8e81d05dc2ac34b00104d22c364 SHA512 38a8c26e917f2bf4d0035653d2871da5d7e5d5c4f0f0f14836d5553683a088c267e954398134d8fa2a668167bb2bd36539fa34e132b46c417071caa9160a7188 +DIST thunderbird-128.3.1esr-kab.xpi 731858 BLAKE2B e545942fe0a09b88aebca52a8990d03013ef2ed4a896c9cfaa914732ff6647eb33a47eddb3ad5e6da503df450b6e12f1675a5b1c59337503adbd38c67c6f3392 SHA512 ba53e8f5c5ad17486473200eaab2ceea7d663d7b178b6fa0a1a9e8e7ade4faa2ff1948b4d05741dd804a5d93b0797f13ada29dd0a6d704a7226400c295448f53 +DIST thunderbird-128.3.1esr-kk.xpi 858940 BLAKE2B 6b0ca2bc19ffffee12f811e8a5e9ee8b4bd785be197af17ccf843e89cfc43bced2b4ec33de7ac32e263d8591f25e9735d0bea4fd3e0f0c1e02e8b52224e8b124 SHA512 57d069ce098dcdfc0044d375766eae416bd0ccc3d997d183cb5efdbcce412f4f6cd64454c84cd9d7b769b77a448094d749f5395735d73f02574ad27349fdf9b8 +DIST thunderbird-128.3.1esr-ko.xpi 755165 BLAKE2B f9926402ddfbeea269cc1f683fdf365d92b8a4a7b1fd902af961e1aba069f8f80b81526d4a5c7864bd8c5d2a6fec6601b2e854d8b4baa5277443928b5a74fcd3 SHA512 a5672fd652e1af511556ea9612a16bd8ddbc33e23facfc40871eec90669dd0c9754f38d1eba15c32f9ae9e23354dac19f7f166db95a715248517a3d0565be2a8 +DIST thunderbird-128.3.1esr-lt.xpi 700919 BLAKE2B f0e24b1323abfaabdcfd088043b000ceee757621e28ecc564ead98be8a2d6bfa8ccc69cfbed3e8a2821c24dc8cd4240b5bfa38c7702e90541425fc6ea8f4e152 SHA512 c272309e0fc1eaecebd20627df109e678d3de7223bb9d845d6086fc4e756a26c4569e52250b9ea026d1e609fb0d014675f6a67c27766d2c0aee33e8f8acadc44 +DIST thunderbird-128.3.1esr-lv.xpi 623625 BLAKE2B 76050cc5298b78159da0211f076bee0c196c3ccda3d7512b33bc81dd742bfb01bbd0a3fbebdc85cfb581b34fbf0600ff9ea58ee3dfcefad8a789f7585de3b3a8 SHA512 3e514bf244b588447abe00ec205b96ef901c0f71e72c1bf09e1385857645351302ae4c4c69ebd504244374d269b02e2c1bff5aacabe5d3ee11dc1b86b9a06dbe +DIST thunderbird-128.3.1esr-ms.xpi 581084 BLAKE2B 84658c1282f10e21eb8113967dc6557b05c6bf4bac08ce7b6a419720b0958bcf6aa9614d9f4f8f5524915887ffc62ebbd18de416ba7382ffd52994b73004b91b SHA512 440a179b153a316b880ccce8ac35686bd06510d793f0aa863062a1b72c269551cffa27c430c72eebd9aed04a3b356fc15fcaf81d65edd2fa62ede97e1bbac75f +DIST thunderbird-128.3.1esr-nb-NO.xpi 703765 BLAKE2B a8945923f625af3b84d4eaa377381ca65a54a89dd99dc12c037c69819ce72801507b9dfa9449cd2ec150b73bfa5fe3b7028365de57ba1070a0ed0d1c9a5a938c SHA512 5e5c72d839d05b15415941bf23ddcb78e0c9286b191e85ec479a793c897afbba7f124225c532c02aa677858984d2744c9dbe47fc98ebfa29b206f491ed59df9f +DIST thunderbird-128.3.1esr-nl.xpi 745562 BLAKE2B 8cf9975d1bdea0ef8f5c4152b4dd1921c8f78af1b7971453c56841e9d79bd87817606d94912a54ffcedfea96c83fc2e1e0a0acfd740022cabbc8208a485a26f6 SHA512 d22459abdd5570f0dc65ae97c2437eb9e14e76a29387819d7f54052f201ba94ea1c2ffcb480126f07e344daafa703eb85849a68ee6af2b5cced92c33637ecc78 +DIST thunderbird-128.3.1esr-nn-NO.xpi 725243 BLAKE2B 9c785eb13de5b096d8c84b7703d11951196ad193e81b1e96bd79549dce6c9e147864bb336e377c44240de39edaf88e565bafffbc15924c261617d80fd73c7304 SHA512 5586e31179704ea048d6eac06fd5383d27fc6795d07579c8e13b96d9e4cd06c61f80c58ef028772f05822f2b18548499e847656090d55ff09b9ed06f60fdb9de +DIST thunderbird-128.3.1esr-pa-IN.xpi 683345 BLAKE2B 06b4457a69f8a567e74ca28a40e0051b18a7bb7dfc968f4d1176c78ba77c661aaa975194915b3a288ac8b3c2201cb75cb88fe776709e77c0f058c3e211269fa5 SHA512 59636cdb78d3e56f026cd1df46afdd6ad800a2f2ef05cde186aca784856a06b0315cda9f3cb01f85437fcceffd75d1a8483a229bbbc828391fe122861d4a55ab +DIST thunderbird-128.3.1esr-pl.xpi 764580 BLAKE2B 143755a9ae2f842b5c33ab7f6c8dfbbf0c1b194e945ebe7df1efc276930e097223799286a9d1c3a3f79d87a6d68c2709bcf639dceb772c11c3e33f68ac949fad SHA512 7910af4ba77f85ca85af23fb03ceb34ad283dbd014d80161194307dc90e2f1446ed48c83aa11ee6e76b798d73172eb89443750f3c17a54a85bbf2c5cad77efc8 +DIST thunderbird-128.3.1esr-pt-BR.xpi 752926 BLAKE2B 3be1789395a0103673c8ab0aaa31b7a60f51367812f7765bab9db080e9b2f0c6598ffb6e59a315b012d6b8a67db313863f8eb66aee16076c0e5c9b1d74c91df0 SHA512 b7ad7f6e6922b1a07e9e7bffd7bae1caa13e9399a7eb66ad8baea7ec1b971059877abe93e908178c371c52efef341534d2aa08112aaab03cf1e5edb17c1e74ab +DIST thunderbird-128.3.1esr-pt-PT.xpi 747132 BLAKE2B 1bd105a591d08003aa9dc07a829d2d62beedafc3274624eddedb0426b3a0c817f4cec1f414f88d35ab30badfde9b22764f425943b786b209a7e2edd2d0abf169 SHA512 32eb8d741b94bbb31d493445fb6235d3c884c3a15af3f833882271182a89f68599b6784b60a69b5197365c40d424bac21d983f57a07ebc7d20f6f92a174db963 +DIST thunderbird-128.3.1esr-rm.xpi 747955 BLAKE2B c1d3f051265e5974a1bc0c987b9b5dd48c28ec9becac9efa457e3942af496760973251931045797eb6f395848e4e34ef5bc2c78a22799bb73d997792fa684c90 SHA512 d83f819b11035b6d8519b497c2224dffdc5b857674202608129023201b15c1fe4c0f7e8630c08899f2cd6d7d70a04c1a69b4b69ec23b70abdfd20249b545ed43 +DIST thunderbird-128.3.1esr-ro.xpi 669742 BLAKE2B 3be3ef07767ecd32711091390ad68d0c45101eee77af893f1223423fb9cf9560e06a8610bb869075f6297b78bf0c9f9aed72e3d5a1ee187bb1e2b0163b955bff SHA512 0220f7cd61e0b0ab036f62d28d3cd904ff29679836614083c9fb454116630f9d0ef61bbf2f12cfce91a1095f5537a944cf0d987d66acb8f82802f622f950d2ea +DIST thunderbird-128.3.1esr-ru.xpi 873913 BLAKE2B 77c6e96565d68b85158e301fdd976a15a62899381e53d3f529ccb03e232c3627fc6cc000aacf5bd76b655adf17647e26100e38b06b698351be1c168a6763536f SHA512 327d56d0b579d26b0c22cde24761ec98a22cb39a0b189e42b4487dcd99e70c458db41f06ec5d7fbc094cbc4fc5baccc5da184b1abfe65e95b27a36bb5a64d76c +DIST thunderbird-128.3.1esr-sk.xpi 785855 BLAKE2B 40144ddf8437c493c01b86351ad9031d39759aa771ec3feae8a9ab7e513176dfd35bc51493af4da33838db745c38b0bcf328f354b1c9140443cb509642f08636 SHA512 1e8593929128d8be4cd417b6e91f5242146462f814d5146d36788d71230eb8c0e5b926f13fc4b8686f7b3a40b74ce394a071398ca2d55f0883eeb5dc7d7b9037 +DIST thunderbird-128.3.1esr-sl.xpi 744735 BLAKE2B 29fec096f527bdbf7508ac0bbb35ea39b5205ce339419eca6b2e9cbc5335b79002f87ea8d213da1c43196aa9f7ca5b2a19427e10d8f574d960bda8928782d22f SHA512 0d2c667e165fc363328871f32e3d82b5059e478620a99487aa2b2de08028559f2ea67bfd9ee6f436e858a2d4fb28043cb0e4eca8004870a89119e2bc76f534be +DIST thunderbird-128.3.1esr-sq.xpi 767154 BLAKE2B 967d5edbb366142ae7de7c744c5f4c34f206a598a153f8e6317e95a87a559e416733ecdeb82460eb72813ce0d5e724f9c2859f05c0f57bcc25421a6c23a03940 SHA512 2c014749df0a224257ed8fb467d2b4c92391bb5db5e7512de852b0bce8adde532e85787a2cb0e2796b357f24d7a94a6664db33c1911ec0b83b9fc5d26d6eeabb +DIST thunderbird-128.3.1esr-sr.xpi 771104 BLAKE2B 99ef4720a3d1472eff377b1b67bb290bcf640df12b1ec47e365c6403bd1b3eaf7909010585a19134da13c07cf805381caa6005e3dc15579aeccffe4463863349 SHA512 c763f23147b123b973a61a00fd1404318ddc8c23d754b52fe8f071f23e048c7c7ecdf7e05abab03563549cd6c19805ec8eca5698921471c9786095c945bc7ff0 +DIST thunderbird-128.3.1esr-sv-SE.xpi 749008 BLAKE2B 18f698066dbff50933a1f6627767b55feae91cbbdca4df1632b57b5beeb6a269b0dfd2edeb61a5e53903e57422ab7cf94d04cc89ef2289734a8a09eeff541c6b SHA512 0bee1d979458d06f98fa342334c919068b7c34f565200f9b29106b922ca8740c915a46bdb97e1106101c70ffe0450e325d394b313b732fb296d3ede97901e782 +DIST thunderbird-128.3.1esr-th.xpi 814080 BLAKE2B 75f03af12d6d9c0e0ecb2a2a8e70dbad225b2f564b3ef73d88a3ab985de995e1758245fa26f497b73eeaf252b9f58c02b4136e37cb1b13d51592510c7a876dd8 SHA512 402056f29f90bc9a17b9d86c149e01753ea0dd8be1047cb76f8fbd2cbb7bed6bc47ecb1d10aaa60fe864ad168bbc8f62083e7fd251f8aeeed52d88841f2c25a8 +DIST thunderbird-128.3.1esr-tr.xpi 759750 BLAKE2B 1d079287669aab232f11c670c6205bdbe606fb2e8ddcf31ffd8c15fca418314290d7445508bd4000d0d2f77a797af6d77e90bc0d7a11acf9978be7879655f1a6 SHA512 631cdc5859dd36575bac096e6656f5bc6d381f98d593ec058b029a1372ff0efaa4dfbfd71fcde5c2c78168020616335b944ddd07d37ddf4474460417c646f97e +DIST thunderbird-128.3.1esr-uk.xpi 859762 BLAKE2B 1bf4c26de86d37deeb875f46644524ddcbf8ec6210ddafabbf30fa8bc83c6d94fb424f0bb68b136308e730cb712d5d68b17566798e82b3df4ab5a15d9c7b45cb SHA512 5f76e3fecff40c4dc6d5a8cedbefd43fd4f44400edf4286ef1b71daae9ff719c53cd4a02b76fcdcd571c315bbcdd7b5de6f5df5e176b747340298fc932a4876c +DIST thunderbird-128.3.1esr-uz.xpi 592133 BLAKE2B 15e1cfb9ca947b7d1e08ccd4766a6697268cf505993df3705cb5d1e522a44cdae7b3346f94a430c65c4564916d463ceaa27d470f13489c9be4dccba36fdbed8c SHA512 d2efce20c5a25163871d8f3ea053dfb6ca03287e8dbca2f272a2e91f806751c5df749eec5ad70a78fb60dd3f8c8f1850de3dad61a7fe3d734c5d74255270c137 +DIST thunderbird-128.3.1esr-vi.xpi 788485 BLAKE2B eb1bb3b36602f56db702d8063a1ac186cb606adfd9574f25f4bf1a60ef9d335cd2bc0f2d7486135cb1e3e41a438cac785da4a63c6ccb8b7f0de3488bb50e434f SHA512 4da9cf2ec26efeca4b574fc175431d683fca20b262ecb4784f25c9d441deaae14024847b89688a6e2cba19bef715750c0e588aeeb6ef76d558f84a648be03d73 +DIST thunderbird-128.3.1esr-zh-CN.xpi 786952 BLAKE2B 659dc16bf96349f5fea4902f2c47af6edbecd2b1f60b923d0fcbe1732c8883b5eba3349937bfa83caef3c7a000e365722135b8db2f0ed79f965eaee04323a689 SHA512 3f5f828588d56b76f14ed128baa6e681f8eb07d71898faf65a1acbe6bf5d83d04d2c4ad0b5a785c561b30d6dee338b2e72235a1411f87b1527928e0d26f7e35e +DIST thunderbird-128.3.1esr-zh-TW.xpi 791295 BLAKE2B 4c31f3758723116182f0c67308ef8e0b924c121c44a5543626c8e88fbf1b77fc332c6cb0bd262d359cf586755f6d68c672f52f8620de9cc50f846ea82aa3cf4b SHA512 d1537ba6e1e27a63d60f290795bf6d689fc56b09e34fbeae8a7327be5fbe294aa569379d40c60130c26471b5e141f4f79ca53fad36151cc286ddd990a0800ec4 +DIST thunderbird-128.3.1esr.source.tar.xz 678730388 BLAKE2B 7de505ca886c72ce4a783d56e3024165b823eac85a1cad9fbf482f30467f4a0c81b179782bae756fdf596be582a1a4adbaf85a60fbb5c274bfc03a8c264a4d9e SHA512 9fef04a0c498eb16688c141cb7d45e803ecc75ea6fc6117ff8ad1e6b049716f49b435f3e5a1baa703fa937e25483137e22256e58572eeacf317de264b961ba6a diff --git a/mail-client/thunderbird/thunderbird-128.3.1.ebuild b/mail-client/thunderbird/thunderbird-128.3.1.ebuild new file mode 100644 index 000000000000..2bfc08ccbbce --- /dev/null +++ b/mail-client/thunderbird/thunderbird-128.3.1.ebuild @@ -0,0 +1,1192 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FIREFOX_PATCHSET="firefox-128esr-patches-03.tar.xz" + +LLVM_COMPAT=( 17 18 ) + +PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_REQ_USE="ncurses,sqlite,ssl" + +WANT_AUTOCONF="2.1" + +VIRTUALX_REQUIRED="manual" + +# Thunderbird will have separate release and esr channels, matching Firefox's rapid and esr. +MOZ_ESR=yes + +MOZ_PV=${PV} +MOZ_PV_SUFFIX= +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then + MOZ_PV_SUFFIX=${BASH_REMATCH[1]} + + # Convert the ebuild version to the upstream Mozilla version + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI +fi + +if [[ -n ${MOZ_ESR} ]] ; then + # ESR releases have slightly different version numbers + MOZ_PV="${MOZ_PV}esr" +fi + +MOZ_PN="${PN%-bin}" +MOZ_P="${MOZ_PN}-${MOZ_PV}" +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}" +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}" + +inherit 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}" + +if [[ ${PV} == *_rc* ]] ; then + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}" +fi + +PATCH_URIS=( + https://dev.gentoo.org/~juippis/mozilla/patchsets/${FIREFOX_PATCHSET} +) + +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz + ${PATCH_URIS[@]}" + +DESCRIPTION="Thunderbird Mail Client" +HOMEPAGE="https://www.thunderbird.net/" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +SLOT="0" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" + +IUSE="+clang +dbus debug eme-free hardened hwaccel jack libproxy lto pgo pulseaudio sndio selinux" +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx" +IUSE+=" system-png +system-webp wayland wifi +X" + +# Thunderbird-only USE flags. +IUSE+=" +rust-extensions +system-librnp" + +REQUIRED_USE="|| ( X wayland ) + debug? ( !system-av1 ) + pgo? ( lto ) + rust-extensions? ( dbus ) + 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 + net-misc/connman[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 )" +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}" +} + +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 \ + --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_enable rust-extensions thunderbird-rust + + 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 +} |