diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-08-11 17:50:41 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-08-11 18:05:15 +0200 |
commit | 1bed91a8ee4f62e5b913e4561bb0cfdbd0b42fba (patch) | |
tree | 8d5e62b806c25bdc8dedd8614c756a623a47e6d1 /mail-client | |
parent | media-fonts/terminus-font: fix double prefix (diff) | |
download | gentoo-1bed91a8ee4f62e5b913e4561bb0cfdbd0b42fba.tar.gz gentoo-1bed91a8ee4f62e5b913e4561bb0cfdbd0b42fba.tar.bz2 gentoo-1bed91a8ee4f62e5b913e4561bb0cfdbd0b42fba.zip |
mail-client/thunderbird: bump to v78.13.0
Package-Manager: Portage-3.0.21, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r-- | mail-client/thunderbird/Manifest | 66 | ||||
-rw-r--r-- | mail-client/thunderbird/thunderbird-78.13.0.ebuild | 1108 |
2 files changed, 1174 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest index ffd82f5c01db..d7997d841d7e 100644 --- a/mail-client/thunderbird/Manifest +++ b/mail-client/thunderbird/Manifest @@ -1,4 +1,5 @@ DIST firefox-78esr-patches-15.tar.xz 65604 BLAKE2B 86e421e555ffd5f7f201d0f1a1c446c649739c67cdf8dca536efa115e09d9c357ce1551b7270c77e8bfe7dd53e0f3e6386496283879cf5e0c59b3c864951ebb3 SHA512 b229e895f083a0404cda1da0d8ae937429d5975ac52ab20e8b15611d9c737381a1076ebfa8c8a127dacac0e12a2a905ffd579facde2d80c6facc911e5739e34b +DIST firefox-78esr-patches-16.tar.xz 55964 BLAKE2B 79d3a465c69656bb55ee7c1e9060606464b6404435b92f534db275521ac2343e045feae1fff6166fde9e2599a82cd982b0b2395271b1033f0f784e745e2c6965 SHA512 3aa971c726646cbf37a14a0dba6c4ac966b88db655cd8b730c5572543bfbf682991ee7c139889541e4f6936c13f27233dc1837fbdb9ee340b33ebb2cec59b01f DIST thunderbird-78.12.0-af.xpi 548341 BLAKE2B 5dedd311ca5b467353cf5da0dd7b671eaafef8f7828abe1aa917003b38174fb6bfd6fa5efd6509ed14604477bb2e80a6691aa83ba2aed060295e51330f5d50df SHA512 ad216562bb63440c0728177f73d853994d2b395a13fcf9f7f20ddc81226b9747c407368e843d42aa60c09d1d8489aded879c4080022463346fe5b489ea1a8d3b DIST thunderbird-78.12.0-ar.xpi 648606 BLAKE2B dc040d99fbc37da4533c6a9a62204233544f2310b685d353ee10277410c83b37acde3aab8193475a470fe955eafb776c05ef833d7c83a111180b11f400113f6d SHA512 cee52db711b68ac973bf07678c35d6d3a130704e3206f811a1331d165c5c421f61030b589b95f412955525ae3cd9a0381a241692870db4ef6d557df9c289cad0 DIST thunderbird-78.12.0-ast.xpi 561255 BLAKE2B 28be146998718180da9ef397f7a7ddeb7799d1906b142ab1868e2e6048d1d38a4b5a583d2f51b86d7f688e06e6c3c45593882b580ad75a4bc0637f2fe88dacd6 SHA512 794103871e796a14fa7f6d1eda7058f1d3939692ee2604c79b4af744735fafb934289e0d95abf6e62eb82e8e8836b8ed7a74253b99b2d0bc68f0a4224a31e1ef @@ -64,3 +65,68 @@ DIST thunderbird-78.12.0-vi.xpi 674606 BLAKE2B b325878404c5de61418ada8c67495bbed DIST thunderbird-78.12.0-zh-CN.xpi 687173 BLAKE2B 214cf530f6a3fb1023d3dc7bdcb7e9012351f5bc46d175af09aecb3ee6c05baef347432ed9556caf6b54ee04e61a63932a2ca3f131fef0198cddf97b566ae38d SHA512 ac826167da668b544a8606db35d5d243250137ad9badc57ce75ab8e3a5712378742c1b9aa44795e9abb9a61fa5f8176d14a8737129a6642dedcf556f1745406d DIST thunderbird-78.12.0-zh-TW.xpi 687621 BLAKE2B 8234a8ed471e8d5b9825afe0f11a03b74ebe17183513f56dc0e1c15d6fd6cf01da1607d844410b8c12b111ffa1a5e76572e30a6f6ea9165c88a873f7c6d1a668 SHA512 4b9cff48fd28cf1e081689e81b5dba4b03bf6f2e89557c1d386ec27172806d34c4d4630cd5322eb27e053124f4b141612f9ffb5863174ac64dddd63fb5bfa03d DIST thunderbird-78.12.0.source.tar.xz 355933664 BLAKE2B 466899baf4db28f7d41363ed3b3bdc93b25ec8a87cfb2a8e489ac5572f769a4b19cf3886f3a76a3c9cbce112e47a0fab711ad59505bbc01cd38daad896ae1c58 SHA512 8a9275f6a454b16215e9440d8b68926e56221dbb416f77ea0cd0a42853bdd26f35514e792564879c387271bd43d8ee966577f133f8ae7781f43e8bec9ab78696 +DIST thunderbird-78.13.0-af.xpi 548343 BLAKE2B 06beb7e934e29e09145fce1b30c249d79f6e9f40c8fc309b5033aeae664dcb9dde107f42ae5ac0d2d3e46487be30a22b3541ca87e03f37699bd8d352254e565e SHA512 30f699ccd68cd577b691439a3769ecb6eadda84352cac52d27364527a61d77f9584ce225ab871bf0ca76ece6e65fe939021b09c4adaee8e09f8635d326cb4d96 +DIST thunderbird-78.13.0-ar.xpi 648617 BLAKE2B 78542fdc6c1c5f803fff4881cb87911560b8be5e350cb5232b573860af76f689a8e60aea674054bf614ac95d8ca75b8b994b25b7b11689d8f82449f0b124569d SHA512 678c1162243aec8e33a0fe09325f2856dcf2ba447e91a5283aa766c65285e95e7dc66e609a6b5bba9129cac393f09fa7083fb7c39b2d7604216155d9f03c2e56 +DIST thunderbird-78.13.0-ast.xpi 561258 BLAKE2B 88ce63137775dc96a410e86323305ee0719d1dde716dc6a74e1314b9502d3d25a0ce92b9bb8194a37ecb06445b063024e3f540e547dd56b660fb732f91505b96 SHA512 84f42514f68228cff173a0fed9b7a54859a716b8bc53ea657241fa9e28f16161230c14c4b32e0c5208386ff47716244837130f2785f7eba3e1845a87b5904dc1 +DIST thunderbird-78.13.0-be.xpi 666675 BLAKE2B 28b63749dd43650adb1f14af82ad4ba5cbc1f6611e63e39f5bf61e71ccf13c425e85547e5544ed2e6f91f744c97e7a8ce7e5f291c78ec40bd0d8537063210e8f SHA512 c060daceabf1801271ec777e1f1b7b380741e8eac55d0ab2060eb38dc4de040a79c99716164ac7476af977609a30a0d9921aaa9e5f7ace80c57a0d5a056f0f52 +DIST thunderbird-78.13.0-bg.xpi 672416 BLAKE2B 38ff74b4b70f2a7f9539389c24979224b683db644099c3c441a7766bc6dac80f0e6a61e7b6a95d9c75c66e6eaf4ca724fa52266d7512794b81b8c3573b947130 SHA512 bb2eaf0a35075d070b75b752bbd363ad3e723324eb94d2c6ee6615ed190177235a3d207c48041c1ee932cd0577116d5ae8432504324b25ce2f53b3a5bba21d83 +DIST thunderbird-78.13.0-br.xpi 604533 BLAKE2B 61f2e18d2a57b12954b18e0351498406734dbcf8652c6185d57e91d286c5c0524ed8bbc33fc75ad1d2faea302be0f88cb18de827a6053ef56551bc26cba70154 SHA512 d98d5a5f8958d60371835ff7d5674f45e14e7a5793596660eda73a18c28c73e715e240718dd8d88b1c1d23c18021e86fae0965dbfc6d294a629b6305ac05891e +DIST thunderbird-78.13.0-ca.xpi 620448 BLAKE2B 12dd4c0d774930b02f1edc37a032d843dc62542883ff007af9d62015b4408b5e5df76b845d8a9d1105f8d1e56f7d5e868693431be38f780a05b1e03301dd2034 SHA512 c23f3092af1a04fbe5e1246b0f3ceb67f7f05c8e790ec304d46d0e27d62bfbfd0949e63165a2c93b40088a9e2bc647ad581804696bdb294d2f8106812f18f640 +DIST thunderbird-78.13.0-cak.xpi 635655 BLAKE2B 30808d4682db8a7c39553d2f68547041b22618a66e6480e4fd681e8ef6fb5c0dc24f8a6c5c9b638859df7eb3754cdc0d241d48eb072014a1e58df9e5a25e13a7 SHA512 ffc35075701a057a399bdf4e8b2bb6bfb7dbfeafce9581fe3a5eb5a79ae10c5bd0fbd98616f1a07f160c5d40fdb5624173cbd07d43a2e99eb3d8d9ff0aaea9f1 +DIST thunderbird-78.13.0-cs.xpi 635347 BLAKE2B 7116cadf1b7817d9606705e2220cf842e8d5297006d1d7b763f480f73c489d2fb46c267414081df5efe1721cbd5e1c995fc9a1bcf77ebb842c18391d1cf1d4b4 SHA512 4832783b92a99b63f0df2081a81d3d216faef00e93117cbc4e0c83a4beaa91e2094ab8ba39d089a55847044b9bee7633dc4df2afcf2ab25cf1a31fc157117bc6 +DIST thunderbird-78.13.0-cy.xpi 646250 BLAKE2B 97e044c784d0e935a9a2c6da6cbb65f40ed90eb3667e56ab6a4f5843955737d7f16c72093b3c32ab2b2848ccd65dac8772c4006daf434b7b106f36a7e8a6fc1d SHA512 eb78878ef39c8fff546e95d2e9db6cb3d8d560556bf89370ed64f729570a3148f407c0a7fffb61a881332fc8ad41c56d79f0e7c9ba1b0b0d1c6bb724e675bd83 +DIST thunderbird-78.13.0-da.xpi 620991 BLAKE2B db4343ebad627e6a181f15aa448f9cd4b402c8fcfed23a4e25796844ba5516e8aea738780b35e80794827435db3f77ac0ddfb56ffceeb62a56968f751ad17ce3 SHA512 4d47b59f2ed2a95b23bd38b0345cdcfe2a1ac4ebeff10a78bf104a7d21f4e9cedc228f34c6a0996ab3836135d38fd2a9d20c286810e3c94507a7ec1d11f7a2d5 +DIST thunderbird-78.13.0-de.xpi 665198 BLAKE2B c3a621f7303dd2ee48922cb139c7021e0bada14ff9008776b21b9bea1f3c0f458c1dca7725347105e929d664d4b0c10594f4348fa044c585ce6c9ced4307b5be SHA512 591e357eb78df67bee1c1fd483b1a029e895212603058b3bfe8724c527277b0f09e3618eead6da4e39d2c5cae26ca5b4fdf8823e573a6ffb4ed8e94517ad929f +DIST thunderbird-78.13.0-dsb.xpi 666771 BLAKE2B e37cbd228fc06ba9dbd7c3fb144336463249c95bedc0c9b9a7dd2e96f82667fca06e7d67b9d3802057e655941eb46a5715d951a492f1dc3ed7cf73905ba42432 SHA512 eddc80a7cdb8e5e6f2a3e625c6e3eed8f7547a557ca54742b23d392d871d6d2dad183521e3b9fd550712b8705aa69781f92bd6027334ed94a201bc7ed03b4b74 +DIST thunderbird-78.13.0-el.xpi 774455 BLAKE2B 6e84ac3591a24baa6ee9305582848fbcf3dac18a31ad536854c62b2fab18854e8b49523f1f452f87fe50a5a02856e47642cb3d8e8bd279a9f85b09c48a7ddac7 SHA512 cc3020ca79e9c252c59fecd1f509ad306a9e5a6b81230287c48b2eb2c94beab635a4114010baf99f248d850a80ce27b22fa0042b6b4aef2950168587e02ef257 +DIST thunderbird-78.13.0-en-CA.xpi 611777 BLAKE2B 0791142ed3e7d39b6c48d907b5dda9b334f9202ed7272c1da88a70fae784284f42427459d16c59ed13b86f199784c2d70e5c8c120996d55951e6e38c67cbe73d SHA512 38d0d50292502e344dd8674c695029d0b0e350bb99b49d6683a07ba47e1a4a657f0c52ddfd50e7740b5d9c039933c219cff8c5453fb28e7d0ebb375cbdddb5e4 +DIST thunderbird-78.13.0-en-GB.xpi 611186 BLAKE2B bddd03033fde64d08a2b7b9fef9be3a771733d8ae6c6c5135b597afe120dc7891e44c5fa79b89d76315eabdb96bfcf02c2516144b81d1bcb1e41a2cb2d71760c SHA512 7ac4585b3ee74904b9caf3486dc4a7a3e27e3543c388445e54c5761c208dc96ecf4cfcf2cce6b0dda820b9c18db8dbc79b6899d5e93c6cd6c1b4e287552a319d +DIST thunderbird-78.13.0-es-AR.xpi 657793 BLAKE2B 148ee5f46d21fa8ee4b3239e666c6ed018a88cb339cfb2b881696bef68b07e02c579dde70a1127092547299a7917e16f1e37ebd8fc6fdc37239317073fc77425 SHA512 af1b1654af730a14858257a98290bfe352136ccc95520af4cd32165b055ca6ded30b5efc137685edc7e5f9dddcbb89ab50facf1cbc422811f445f92c2a98f8ee +DIST thunderbird-78.13.0-es-ES.xpi 569802 BLAKE2B e0edc3c52ef3edef875b5d26526614c929b51ebc1fcebbafca8d0f2cc063875ecf3074b3ce75d8c2a57509250708b4d04b693774546f89c02f36a2c87b3812c3 SHA512 89a6d96fcccfa1bcd83db5c7945da302c0251c7391c211b8257b8965769aba5b0751fb443a1fdbb29b587ab6671b48a3424db05fccd778269c987b53448070cb +DIST thunderbird-78.13.0-et.xpi 597734 BLAKE2B a4d5be1ad49213279ee1f0f9689e7391f43361bba7869049e1ffb701bacbf40ef6a0806347c362845f27fd01132e8f57569c9130d0c4c40dee6571cf47ed6df3 SHA512 fa4ab13f138587263db93a4eda5076c4159a536088303ef98265bc6e48db2b7bdcb1a39b2904ad8f91ca591beba9229241be796879cff24a23b161f701b0a771 +DIST thunderbird-78.13.0-eu.xpi 632967 BLAKE2B d033fd9f87d3fb9bc263a3520be5cdcb6a84e2ffba83c6bc6bc083e4a29c0a3c3dcadc53311e3a37d9c31b8d9f43e57c6c6425f5643939a1d22f8af236abfd8c SHA512 72bf07ea702c533778847461952cd9c321cd4636c289e34fadb5655d30b55f2f364cdb2d044233bd2834fb423214b8a6c830301b5f563f30375bd52603f01db5 +DIST thunderbird-78.13.0-fa.xpi 639751 BLAKE2B 3cab8076adf757ea416afbead3b6640d74890b04e53314156a7677e3d01355037951f74114b7bae3b683067396af82ed016ae1d0248564de7279a7ffd6ccde95 SHA512 8cb51291e3759feafd4cb415e95a72151072a6b2e96663bcf051336c7e85c176ae44dbb69068b504887465e6e5370a32779201c28a17f5d3ce7594cb124a359d +DIST thunderbird-78.13.0-fi.xpi 642446 BLAKE2B 7e29e7252d81c4eff8492ed690a4ec103685def0775bfa1ae231b32efc234464dfe183f74e3d04af6a7447daf162a03002a68aa069dabd71959f0b0d9c832226 SHA512 9240387fbe92409c3ff951866047ec323efb831e5da40fd60b231a252b205b907fd2eb0f2899f8d4fdad68d7cd618cded9972888bda67a27ef1c12ad0944a9c4 +DIST thunderbird-78.13.0-fr.xpi 669483 BLAKE2B 1e366675fedb6b1e912c1434027adb27cdeb4b1b44aaf3999cba04c2ed267744223293fe2a5b59767e253f6457b858f3ef04008ab025c045f9f5e8d4889458fe SHA512 7e31faa3028a4bfe72ba457f47917e314218468d8f38a66886300295e6aac8ee911e875884e1d1ad1f7b8c4b4bd63615c5915fe22e3c08eaefb8f8e6798b6845 +DIST thunderbird-78.13.0-fy-NL.xpi 653085 BLAKE2B 34344076aa80bea7d0c14fc1c38e1467ea276fc286eff3e6e44062da63728da43a4181e2cb7bde8043feac5ab5f7c43ff6cd5a46d123c135cda6345ce97bf5d1 SHA512 4928f532b24cb429d4daf2125fefecf90f3d7b6e32c93cd4b3db90c33e341891bf32da64901844d3888d1613ef2352b3bf286756a0782b1d8ae3e37afb62e58f +DIST thunderbird-78.13.0-ga-IE.xpi 600709 BLAKE2B 265a10c9d4c11a5667e3aed527d8353764d50b0cd33e73f11a8d4c0ca356508eeb3de6f6759492fbb265f6b0e5eed317729ab98e631babb439670b649bc63a73 SHA512 836ad1541b4af13db65dcf663207a4b05129434306742af0e2ac6fe6e214f761b0f861957cdb2d7c12090d07d773fd008a910b3fdf2d62306e5b3798808ebdcd +DIST thunderbird-78.13.0-gd.xpi 609387 BLAKE2B d7bf4e263d296b8349d25c79aa2ce542baed077bb6048f61a15d1e4071e26abfab23080d3ce4fb9994d600bdf6463fa23a87bc40742c28c0ef082952d3f7931b SHA512 4dc5739f44049281f3ba73ef4a107f4dd377cce6fd6e2ff8f34cbd4d49a17cac32f3d867eff989e6dc3354331b8295f81e945bd92aea585043b9a6cecf25a32a +DIST thunderbird-78.13.0-gl.xpi 615716 BLAKE2B 5341ea0b7adb4364f4ad7f1a80f3804976fabd19e9e47c9ee82d9a6682b59d4c3f67080ee45ed937cfe492c4cab11a5716815c1a0bc83f152c4cb78372e74fe1 SHA512 c195a95b07af36be93bb0382cf2904e80744d0a70f5405cff526cb6ee8cfc7dd32a5f24662964a32a0cf56a2c87abe6492d1c1eafc7484fc5f0de2292f6cf245 +DIST thunderbird-78.13.0-he.xpi 640492 BLAKE2B 7e41766f28b2e6ce259bcc223118e4ea03e73ec3938fe1505c56b9642bbb33b997b010a33994dd1f8911c66c4d5233e8f687f23ccc6e98d642931f474470ebcb SHA512 ac69f8727b5586998e4a172e4c4dfc3246efd616ff41725532f72c9a06db6c58b566cbf60bee1f80a35a92e393195bf95e79c1820e9d19a44a15a7160d94ede5 +DIST thunderbird-78.13.0-hr.xpi 629021 BLAKE2B abf8d5961b2226c6bfc0e143ab0af86653f613d401f9d4525519360725e75aa3408aa934a2533d2ad42d7b729e8af3c21c97f07b22991fb4154556466ea50589 SHA512 506c9261d5b8bc73da2d3db60e7c8490672036ecd4a54e2a5e4fe059846c8c6e15708fb6b2f9a1514592fc1b68dcafe3ed5663a055d0d65b92e9bdf91678ec27 +DIST thunderbird-78.13.0-hsb.xpi 668603 BLAKE2B 44e81e5775ae9ccb77dc25c5ea1f16c083be62efbedcd11dfda67de655dc9aff64c4bbc82833dbf9968fb202d11921608c474f499ca422b112a6f39d35bc1adf SHA512 04d77a7c395b263663e715f421ef60b37a3d4215db31053efc841b573b9c0f630fb482d0b19829fcb83d679ecb4f4e4b38542247b76065f884f9058ecce549e1 +DIST thunderbird-78.13.0-hu.xpi 679834 BLAKE2B 73b65a94ef0b260a7176d0b63d066b3bd4e399a4aa62fa8d1639489b2158f4d4f2395c6fc7db89fe65a81a16f0854d33a0bc197deb19f3d2d886da16d4d37a91 SHA512 4cfa926f8330507c87a46dc2203b04b5e75987a3c86128bbac6e5a862ee3efdbba5678dbc134bb69069e3334663fd727153271251a59ebc64addbbba9accd9a7 +DIST thunderbird-78.13.0-hy-AM.xpi 713327 BLAKE2B dad57fc486b4821c921b2ceef47b3491835d97cd01208439acb3b4cfcdfe057c9fc6779ad109311fca5fcca84f22e842de7e9d99384a7ce2ab77baa4827c96ae SHA512 477c117eb3a711c7c13bea74df9471254938fcb605f2d74f0e14b8edd5508b1ad35a8d27a366f4b7fc925902a898361410694636adc9603a35dca220dbc541ca +DIST thunderbird-78.13.0-id.xpi 620680 BLAKE2B fba405f404b1305ce2f70c604c41242f4946f4613f2c976b12e0ac03ebc6743d60e8b19ff8ad43cda3b919b66e8c71e36a8c60c05efef0e80898fee0f4d975fc SHA512 cebed09f69962f0e1d487767c7a186ff714a10bb6ab9778fbfab6119af17079ba0b3aab988f05b7c7cbed6ad338f4c4fcc74fcfa103ad1f844059263371d9f32 +DIST thunderbird-78.13.0-is.xpi 581640 BLAKE2B dc1391b20174f75e5fb6360ed91570fc7288ac808a882081b42826e364b8dae26733b072e2c8beb5c73c38cae1f933841e4691469302d8a4e18e7259c0763d3d SHA512 151bfcbfbee399e55a17a1eda9333f7f2851e541abae8a1c3301c3646123c7bf6bcd9a7276c1f47d3200a47bb5eceff6cbd0ca439d42ad9eefb7c9793f77e3b2 +DIST thunderbird-78.13.0-it.xpi 572968 BLAKE2B 7d8e908de226ccef0adebf90701c97348c9b6bd084477623919c7c918bb4035ccb08e8964647846f0aa14ff024629ba41ae3b18392aa5a687283e1f91f849a64 SHA512 544649532f46ec981c49ba33d036b4552c5e421c2767fe6bbdcfeb0d847af2edc63732478797c4f9837f82c752f57df01d8750292fb362ede7d189b54f88453c +DIST thunderbird-78.13.0-ja.xpi 722457 BLAKE2B cc7fa4afdbcd5c6bf1cd0cc6acb61c4995de405ffeb1976e757c93958d60c24f9b9803295d29b3c1fbb8ec0544350e1b31e343be9b010409984b6c59250dc806 SHA512 e77f843729a7a26de4362338da1de7843946833d2f266535e001df2c0eb04e4e0679abd3c092771913ef43212aa4615b0f195069775e4121821599a84cd64b96 +DIST thunderbird-78.13.0-ka.xpi 717015 BLAKE2B 5f453c4b7894fed10b33f85425f96410de570d2762d8fdf77f5f388647b1b0f739850ac70b0a9c710586403697707e3be9746fe98a7099f96c16bc6d35b7c2cf SHA512 094db835f95e328a5d9c6893cca5760aa55e8ffff6b694b0223dac0360e0f01cc9fe3c210c0914d2ce100628198305a7623029bdc5138410c0426887fb6bb5fd +DIST thunderbird-78.13.0-kab.xpi 651923 BLAKE2B d7113299d389076a8c096478183f85bb27b49b38cec87f16f3c4166df06647d45cf5cff63cb04c5ec1e55d1c8099e7c2f954d54407f3fa368c17cddb36a0a797 SHA512 f96fc8a3434b7ecd6c2059a332ffbbe7b4a3b0a62a060cab1042f2169aae5d82cf9ef1d128704c35ba29933e561606d20ff6072a99e849f1ea6d2de1ce7fd3df +DIST thunderbird-78.13.0-kk.xpi 720467 BLAKE2B 84e71c27fec60818f7cc3cacadfd71b35e4e91cfadf580935da27e4f1c1b04d09e059058a3af6a45fe14e7803bca533618e32d1287825000298beea2c24462e4 SHA512 97a18b88670e9cca85b513fa0f2655a3a3123d1ab107892558baeeda10c30db91b00ed06a66b4f190687a645eb50269d02759f76c1e969e87043a2986ab25229 +DIST thunderbird-78.13.0-ko.xpi 688207 BLAKE2B 46cdeafa4c840032e83210500ffb3ca1ad5e4c21b1aae69ec7b3a749fc5d33b650c79bc7c516c5b868efd88dac244d745bfddf0acfd4e1872c2306be89e7ac83 SHA512 e1a3a1af7d65380b317d011a25dda38dd8f3072b7b48aae150aca4fe1becac0c15fac54170e00da7ab70a7ab63f805edb63440ed07c85cc3b0c9d6a8c079b077 +DIST thunderbird-78.13.0-lt.xpi 660295 BLAKE2B caf39bcaf81caa7b7dc7116621366f67a93b0fd1c3c56f5afe4f08a9789e21b401327d4c17a03366d821ed5f2470dc6e28c009c67c95eebb07ddb7556b28ac8a SHA512 4233e0241bb4dcfced48e85a1fe97c8393d04ac3f4e62acf991fbaa5df622642ee7d228ca27116ec1be7e4a1583c90d854aac15ce43e7495d393bd21d3e1edb6 +DIST thunderbird-78.13.0-ms.xpi 572178 BLAKE2B 42e7754eb149f38db35f6a08bcc0f875f3f0fceaa0479288b38473a37cb44f81f52e8363d92921ec2b94449eddec13d521a45a5990754512c363329876c1fa74 SHA512 4286724cffc9cb8a8680b8c8374e36e0cb8bf6e9e7aa1d852a15ad4e124175dc703c4e5bf21e26b14e96fa079237558eb8df24ebd87cef4ebedd2e211e7944b1 +DIST thunderbird-78.13.0-nb-NO.xpi 637240 BLAKE2B bb5def106900f71a458dbdafe683f572a3a0baf0e966ff4b7498aa943d9781863880a374a0f037c70fed0b1c75f9cc5a3a007de2615aa41243d235c752d5ec11 SHA512 4f28c4dc3db49ec6201aa37701c432555280f0213127dc0f9a2add86e9be0364b7bbb5380e7b6a8871a9193c61824eca0c2fc78428c7f43bc506ac206b304df3 +DIST thunderbird-78.13.0-nl.xpi 644360 BLAKE2B b9eb0086d4893d65517e2e1eea965cb35981a126e4303b683f158536db82c1fe79a630a7ca733ef2d717fa8329bd1f1f8e5efe10164a0d76405400cdea9010e7 SHA512 7f8411415a847397519f80c9c23db36194ce2afcfd0ef4f9ca323a15ef8f8494cca1c18bd63fe7e0ab3f5c47e0cad79eec77ed4883af948d93e4545444cade74 +DIST thunderbird-78.13.0-nn-NO.xpi 640686 BLAKE2B cc4d13e8f6a4ffcbfcf8b2aadabfbdba9a3727077221348fc0db00ad5d47dc36a4054217030d01f9dfce245a2db47157fe5c0ae8f14f1435e64488f73a40efa3 SHA512 0794a4bded60b9c5d052c95125398d3386dd5ec2c224250866513c10e286e338e6d477b6d26f0cf237944941891998003d163cce900a7f35af196c2530322156 +DIST thunderbird-78.13.0-pa-IN.xpi 633212 BLAKE2B bd726b9761853c12f63631a37f31f07294bb6f7f28cdd1a675f34017a175a995c5d1d990d04cef962ddcedd7075feefbbf744c86e99c610007c8a3a36b740617 SHA512 5c527bc28fb15a905f05c2737aadd61dac7b5a7bd9dda03aeee56f3fa46d8a141fa88900ae70bf4a35ebfb0f7995cde317e5bfe7ce0561a1c5ddff8762a86d7b +DIST thunderbird-78.13.0-pl.xpi 637128 BLAKE2B a02cf137ce5edb1d1826937787dfce4de16bbf3157c78816ce0434e4fe60a0f41c0bddac062445cb0d55a4f4fa37b936032cdfa05dd2bd40d06605af8431d447 SHA512 cde03f478bd6e5dfe86d2bbaae88bdd27a226db973ce88772d1b390c7790c6a050eb0a4e5b4871c38a50731f73140ecb4309664af093ecb9495997471d70d3cc +DIST thunderbird-78.13.0-pt-BR.xpi 649423 BLAKE2B da4004bc85e8c45c7403a38fc22cf18eae8e23be52426a747b2396d733e774ef0f83e5c310201529e6c87419d227c6dda36c5206fdf00abdcc5bcf43403adf2f SHA512 04f289454f0c12403613f4ccf228b08fc2e853aeaec2d9df3c376ae72c3c7c1ef9d2635b1888b42be4cacb50890ec8a384c616f8137c1304de9dcbfddf9a96b0 +DIST thunderbird-78.13.0-pt-PT.xpi 655485 BLAKE2B e4b4adcc4c87001a86892018c1fb70b53228308ab4990f85005055a0d07fbbcaf217c85ca8579f9f7c34ffdf298c69e4248d8c77143a9964623aa659626734be SHA512 ac28ae98a3e7cb9e5083f2588d8fed3346899e490c5078a7c98cf46a3ce969bb0f99fe0fec551d8e3783a2b145dc9518ce918b810c733a90c0f3bc78d05d28e1 +DIST thunderbird-78.13.0-rm.xpi 646545 BLAKE2B 74b4f4301fd0202f45d3757631d61e6d0dad28a27f7e68341d15e767c93a57ce08bbe9f0bdd45028ae65aba0b91a8535d759bb6cfd132d3929946c52608f191b SHA512 531db84707ee47d42112b645b6afb91d8e882e2bc6c8ee12d54fa35e229e9c45132e2a3bf57c2bf247913f7843afa23748207628c528ac452dfea237cabd4d06 +DIST thunderbird-78.13.0-ro.xpi 662638 BLAKE2B 2fd89649504090b7d1bf867c140c9e9ad7283ddd268f44c843633304fc41d82c2118e7b27c77f40a16969518667288a7cf9e4b2e989b0607921d05458d97ed6d SHA512 084ae4c7318f5623e9de8405caa0f699ddd52f1a17e62bb6d1e81c7c9a8f9e35a200a398377f1695f508b884bbd15ad4a9b3e067643d7aa3f53252d9eb42443b +DIST thunderbird-78.13.0-ru.xpi 756188 BLAKE2B ff585809ffc3c9a3acb425817540fd63b3b29a8842dd158f650d3305d1ab0c387798fc160b2515a3b420d877ddbfa25fefe04e8eddf6e5ae75c1b19fa47c27ea SHA512 4b297e738bfc6d249b476285b1aa86db4b125827f46ca3a6f52edf7ad24aaab03024b5ec734b0acaac9da2ed9c8d0315e9cb12e78025ee1626f551d77877a111 +DIST thunderbird-78.13.0-si.xpi 651101 BLAKE2B 60f566c03e38aaf533c32b3ab2010a7976d2407e45cf3e2049d8f80b1f891d4c99ce1ea19937f867538988f79548b968fa9262091c3c3f352e153f2ad5e052b0 SHA512 e23613b27add7e7d40defccb1a3428c018695f517863e18b00d25207e145c294b7125866dac9bd9447ea2e94e165594effbe711edd14418a379447ded41652af +DIST thunderbird-78.13.0-sk.xpi 643231 BLAKE2B 9cd48a4b3016fcf5e9045a29df5a2ba8f50ea906428cf2c11e53d04cdd8a0b5e1a7c3079d3592bbbbfd5fc27650808769a7d9178c3362d03e344e1c4b9c2a329 SHA512 5724c02a4ff161a7dd90ced33e8f4ec56635102a09bdace8a04e71beda2be065c3fc4e11f5825851120213cc37c62ff02c1461a6bc29933d2100ce6adcebbead +DIST thunderbird-78.13.0-sl.xpi 632397 BLAKE2B 9eb4b65634e536d79b790bcf7389339a5b372501c25bc78b54a1a6c42f7f0b3301aa37b05c169c394baf5c5adcb5b8773935768b331abe7ed0e680d2f09c9c79 SHA512 e8e1ace4d1d4df4bb045ce5fa164eab26ed092c03528cc9f668013e1a6150d202c7a982ac70c1365e481b31d7a8ceb97f477d01a31833f487b743ac91c0901c7 +DIST thunderbird-78.13.0-sq.xpi 657820 BLAKE2B 3e58456377f3ce4bde7e6ba0ba9437ad42111c9d7e6611242a7cd861de8677c0b33f15cc1bdb5beccdf3ebdf87f51abc4abab72f03df6ae96a436d35ffd89dca SHA512 b442e9fe81520a48c37e347741db5b21e83c4077caf04e25532cf4084d293bbb44565ab48c5379505f065ce251531c995fbcd08cb770d47db259a4d34f3d1aac +DIST thunderbird-78.13.0-sr.xpi 683112 BLAKE2B 8b9fc57d02da6dbc16b3f11ecce44a9d1e7e90838ab605600bfae1722ef41972b2e92de5c2d01d03a22131287f59a8d00e6c683524d035715674af86c44da5b7 SHA512 1b360470b523f0d8408be81e8f10ac6a30169df3962b4f52a8290f3c254b1f8acf9fce5dfaf13c923ea442fef8c30b7b247f8a8b060de897c9d2723b4917a3dc +DIST thunderbird-78.13.0-sv-SE.xpi 648866 BLAKE2B 036f4a4c84ed3b2e312d825ab424ce856b537708e43933fbfbab8954a2cb75d4f46542aaae8d268547f9c37f17340829bd0d1a2daa81a22c4e200b46ae012723 SHA512 8c6d4d7f6e4e129723bc02477526270d40e51b5c32488b31fee9975b781da1df906911ff02936f74a9e569f93bf62954074bf449e361219f0ccc409a4eb177b8 +DIST thunderbird-78.13.0-th.xpi 712031 BLAKE2B e58675b1097ef0f42796902fb16112b9b1011a70c230617673c9265df05b151f5b050d80d21e082d9696bd8ab4b03c3fe4ee0a5e2d3a28fe0cd8c31423cd02ff SHA512 58f6d260126dc743b4b8d1ba4883f4b56a20a7c9b0560ab2cfe34e377bfd7853c381fb522c70a2bb73b74599b39d3f7a658c939d4c0bd906917b831702cce7a0 +DIST thunderbird-78.13.0-tr.xpi 649070 BLAKE2B d84b2b5150ccf0ea0f5d56b06b9458acf035c38561e15b72d4518af4c34f41c44720afba39877e215ce675301fa23d778c9d34c21828f850ed6190994e91149a SHA512 5ecb007400422d70385ce5b13e0751b3bfc904e4da54e155d5e9dc3165ccc50640a812ff91306e0e4e54759097a2abdfd7f6aa8ff3cdb6dcb7bae9a56aa5a92e +DIST thunderbird-78.13.0-uz.xpi 586591 BLAKE2B d98e902205b6173dd73e9365dc15e206355c15a8ff31ec822ef9fa7a9558eb7d677e447cad3ddf35239c10aa12b127eee73503611890f5e037f25efe86945f5e SHA512 8d74d5ebba80eacb4a0090554e2dfca7fbbe2142abad59306af1f14d1e86b857b96dee6ba419132e6ba316959e880923ec3562a735c53865b3a017c811cefead +DIST thunderbird-78.13.0-vi.xpi 674616 BLAKE2B 52d05bcd5e3a76a9c039cb73374c8f21ac521fb62dbaaf070ac07060cf5fedfa1a1e5978f7325ee8ac7c8238bb0e1f800ea06515c4cf61e28c4620b0d261a95a SHA512 8374b23093d1e13634428a6dd1517720bb6fe7756d90d4010b6116b1334f928c6a3a0899af4a993025cab46ca2b88569384dd0af573b5a84cad1402480dab824 +DIST thunderbird-78.13.0-zh-CN.xpi 687181 BLAKE2B f80dce96eafbc4d2174c250090ca9f644340664f08fa02260b762053d20d391658e33c3414423e5dbd379426296d65fd3f5b243908be04e83fa8c6568f989789 SHA512 067fbe8bec14e682985dfb64f2bbb6ff9d5bb9a13d333df173aace02345356bf4c981a5d0886ba750c3696920231c0ef75b01a4d938f98884ab8de0f3af8312c +DIST thunderbird-78.13.0-zh-TW.xpi 687613 BLAKE2B df58049dbd71dd7456fd23d743aa3ca8b162076bf33e953ca3872e2fc1d1f023adfb2c4fd2aaefebadaf81e450a712c83a86333b6d2987bb3341ecb31ea9bd74 SHA512 86ee904bc972273970594e1d531287cd4dcb6a3fa9513a6258366d40483e8aed1e1bed427e129caee75d1518570c05a9022e1344d3739eabc890e4ce704020d9 +DIST thunderbird-78.13.0.source.tar.xz 354497644 BLAKE2B 4e0df4ca77ccb095c6f47ef4a5b13f1c46bb59a657fc8dfe2898b80458e1632ac6b94ce2754e2e36620d62f62b63dea2cd30fa44557d62e3375f78758a024269 SHA512 daee9ea9e57bdfce231a35029807f279a06f8790d71efc8998c78eb42d99a93cf98623170947df99202da038f949ba9111a7ff7adbd43c161794deb6791370a0 diff --git a/mail-client/thunderbird/thunderbird-78.13.0.ebuild b/mail-client/thunderbird/thunderbird-78.13.0.ebuild new file mode 100644 index 000000000000..99369d0f1815 --- /dev/null +++ b/mail-client/thunderbird/thunderbird-78.13.0.ebuild @@ -0,0 +1,1108 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +FIREFOX_PATCHSET="firefox-78esr-patches-16.tar.xz" + +LLVM_MAX_SLOT=12 + +PYTHON_COMPAT=( python3_{7..9} ) +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 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/~{axs,polynomial-c,whissi}/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.mozilla.org/thunderbird" + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +SLOT="0/$(ver_cut 1)" +LICENSE="MPL-2.0 GPL-2 LGPL-2.1" +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free + hardened hwaccel jack lto +openh264 pgo pulseaudio selinux + +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent + +system-libvpx +system-webp wayland wifi" + +REQUIRED_USE="wifi? ( dbus )" + +BDEPEND="${PYTHON_DEPS} + app-arch/unzip + app-arch/zip + >=dev-util/cbindgen-0.14.3 + >=net-libs/nodejs-10.21.0 + virtual/pkgconfig + >=virtual/rust-1.41.0 + || ( + ( + sys-devel/clang:12 + sys-devel/llvm:12 + clang? ( + =sys-devel/lld-12* + pgo? ( =sys-libs/compiler-rt-sanitizers-12*[profile] ) + ) + ) + ( + sys-devel/clang:11 + sys-devel/llvm:11 + clang? ( + =sys-devel/lld-11* + pgo? ( =sys-libs/compiler-rt-sanitizers-11*[profile] ) + ) + ) + ( + sys-devel/clang:10 + sys-devel/llvm:10 + clang? ( + =sys-devel/lld-10* + pgo? ( =sys-libs/compiler-rt-sanitizers-10*[profile] ) + ) + ) + ) + lto? ( + !clang? ( sys-devel/binutils[gold] ) + ) + amd64? ( >=dev-lang/yasm-1.1 ) + x86? ( >=dev-lang/yasm-1.1 ) + !system-av1? ( + amd64? ( >=dev-lang/nasm-2.13 ) + x86? ( >=dev-lang/nasm-2.13 ) + )" + +CDEPEND=" + >=dev-libs/nss-3.53.1 + >=dev-libs/nspr-4.25 + dev-libs/atk + dev-libs/expat + >=x11-libs/cairo-1.10[X] + >=x11-libs/gtk+-2.18:2 + >=x11-libs/gtk+-3.4.0:3[X] + x11-libs/gdk-pixbuf + >=x11-libs/pango-1.22.0 + >=media-libs/libpng-1.6.35:0=[apng] + >=media-libs/mesa-10.2:* + media-libs/fontconfig + >=media-libs/freetype-2.4.10 + kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) ) + virtual/freedesktop-icon-theme + >=x11-libs/pixman-0.19.2 + >=dev-libs/glib-2.26:2 + >=sys-libs/zlib-1.2.3 + >=dev-libs/libffi-3.0.10:= + media-video/ffmpeg + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrender + x11-libs/libXt + dbus? ( + sys-apps/dbus + dev-libs/dbus-glib + ) + system-av1? ( + >=media-libs/dav1d-0.3.0:= + >=media-libs/libaom-1.0.0:= + ) + system-harfbuzz? ( + >=media-libs/harfbuzz-2.6.8:0= + >=media-gfx/graphite2-1.3.13 + ) + system-icu? ( >=dev-libs/icu-67.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-webp? ( >=media-libs/libwebp-1.1.0:0= ) + wifi? ( + kernel_linux? ( + sys-apps/dbus + dev-libs/dbus-glib + net-misc/networkmanager + ) + ) + jack? ( virtual/jack ) + selinux? ( sec-policy/selinux-mozilla )" + +RDEPEND="${CDEPEND} + jack? ( virtual/jack ) + openh264? ( media-libs/openh264:*[plugin] ) + pulseaudio? ( + || ( + media-sound/pulseaudio + >=media-sound/apulse-0.1.12-r4 + ) + ) + selinux? ( sec-policy/selinux-mozilla ) + !<x11-plugins/enigmail-2.2" + +DEPEND="${CDEPEND} + pulseaudio? ( + || ( + media-sound/pulseaudio + >=media-sound/apulse-0.1.12-r4[sdk] + ) + ) + wayland? ( >=x11-libs/gtk+-3.11:3[wayland] ) + amd64? ( virtual/opengl ) + x86? ( virtual/opengl )" + +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 use pgo ; then + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* 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 et eu fa fi fr fy-NL ga-IE gd gl he hr hsb hu hy-AM + id is it ja ka kab kk ko lt ms nb-NO nl nn-NO pa-IN pl pt-BR + pt-PT rm ro ru si sk sl sq sr sv-SE th tr 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="6400M" + 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!" + + # temp fix for https://bugs.gentoo.org/768543 + # we can assume that rust 1.{49,50}.0 always uses llvm 11 + local version_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'release:' | awk '{ print $2 }') + [[ -n ${version_rust} ]] && version_rust=$(ver_cut 1-2 "${version_rust}") + [[ -z ${version_rust} ]] && die "Failed to read version from rustc!" + + if ver_test "${version_rust}" -ge "1.49" && ver_test "${version_rust}" -le "1.50" ; then + local version_llvm_rust="11" + else + 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!" + fi + + 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" + 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 ! 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() { + use lto && rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch + eapply "${WORKDIR}/firefox-patches" + + # Allow user to apply any additional patches without modifing ebuild + eapply_user + + # 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 checksums where we have applied patches + moz_clear_vendor_checksums target-lexicon-0.9.0 + + # 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_src_prepare +} + +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 && ! tc-is-clang ; then + # Force clang + einfo "Enforcing the use of clang due to USE=clang ..." + have_switched_compiler=yes + 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)" + tc-export CC CXX LD AR 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 MOZCONFIG + export MOZCONFIG="${S}/.mozconfig" + + # Initialize MOZCONFIG + mozconfig_add_options_ac '' --enable-application=comm/mail + mozconfig_add_options_ac '' --enable-calendar + + # Set Gentoo defaults + export MOZILLA_OFFICIAL=1 + + mozconfig_add_options_ac 'Gentoo default' \ + --allow-addon-sideload \ + --disable-cargo-incremental \ + --disable-crashreporter \ + --disable-install-strip \ + --disable-strip \ + --disable-updater \ + --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 \ + --with-intl-api \ + --with-libclang-path="$(llvm-config --libdir)" \ + --with-system-nspr \ + --with-system-nss \ + --with-system-png \ + --with-system-zlib \ + --with-toolchain-prefix="${CHOST}-" \ + --with-unsigned-addon-scopes=app,system \ + --x-includes="${SYSROOT}${EPREFIX}/usr/include" \ + --x-libraries="${SYSROOT}${EPREFIX}/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 + + 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 system-libevent "${SYSROOT}${EPREFIX}/usr" + mozconfig_use_with system-libvpx + mozconfig_use_with system-webp + + mozconfig_use_enable dbus + + 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 + + mozconfig_use_enable jack + + mozconfig_use_enable pulseaudio + # force the deprecated alsa sound code if pulseaudio is disabled + if use kernel_linux && ! use pulseaudio ; then + mozconfig_add_options_ac '-pulseaudio' --enable-alsa + fi + + mozconfig_use_enable wifi necko-wifi + + if use wayland ; then + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland + else + mozconfig_add_options_ac '' --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 + # Linking only works when using ld.gold when LTO is enabled + mozconfig_add_options_ac "forcing ld=gold due to USE=lto" --enable-linker=gold + + # ThinLTO is currently broken, see bmo#1644409 + mozconfig_add_options_ac '+lto' --enable-lto=full + 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 + elif tc-ld-is-gold ; then + mozconfig_add_options_ac "linker is set to gold" --enable-linker=gold + else + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd + fi + fi + + # LTO flag was handled via configure + filter-flags '-flto*' + + 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 tc-ld-is-gold || 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 MACH_USE_SYSTEM_PYTHON=1 + + # Disable notification when build system has finished + export MOZ_NOSPAM=1 + + # Build system requires xargs but is unable to find it + mozconfig_add_options_mk '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" + 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 menus + local wrapper_wayland="${PN}-wayland.sh" + local wrapper_x11="${PN}-x11.sh" + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop" + local display_protocols="auto X11" + local icon="${PN}" + local name="Mozilla ${MOZ_PN^}" + local use_wayland="false" + + if use wayland ; then + display_protocols+=" Wayland" + use_wayland="true" + fi + + local app_name desktop_filename display_protocol exec_command + for display_protocol in ${display_protocols} ; do + app_name="${name} on ${display_protocol}" + desktop_filename="${PN}-${display_protocol,,}.desktop" + + case ${display_protocol} in + Wayland) + exec_command="${PN}-wayland --name ${PN}-wayland" + newbin "${FILESDIR}/${wrapper_wayland}" ${PN}-wayland + ;; + X11) + if ! use wayland ; then + # Exit loop here because there's no choice so + # we don't need wrapper/.desktop file for X11. + continue + fi + + exec_command="${PN}-x11 --name ${PN}-x11" + newbin "${FILESDIR}/${wrapper_x11}" ${PN}-x11 + ;; + *) + app_name="${name}" + desktop_filename="${PN}.desktop" + exec_command="${PN}" + ;; + esac + + 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 + done + + # Install generic wrapper script + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}" + newbin "${FILESDIR}/${PN}.sh" ${PN} + + # Update wrapper + local wrapper + for wrapper in \ + "${ED}/usr/bin/${PN}" \ + "${ED}/usr/bin/${PN}-x11" \ + "${ED}/usr/bin/${PN}-wayland" \ + ; do + [[ ! -f "${wrapper}" ]] && continue + + 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}:" \ + "${wrapper}" \ + || die + done +} + +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 + + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + # New install; Tell user that DoH is disabled by default + show_doh_information=yes + 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 +} |