aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2022-01-26 03:46:51 +0100
committerThomas Deutschmann <whissi@gentoo.org>2022-01-26 03:46:51 +0100
commitf89f0de35bb5d90b63e0c2a3306f587a97a55920 (patch)
tree6e16efe204d45de1bc89de91870efc2262437b1e
parentwww-client/firefox: bump to v96.0.2 (diff)
downloadmozilla-f89f0de35bb5d90b63e0c2a3306f587a97a55920.tar.gz
mozilla-f89f0de35bb5d90b63e0c2a3306f587a97a55920.tar.bz2
mozilla-f89f0de35bb5d90b63e0c2a3306f587a97a55920.zip
mail-client/thunderbird: bump to v91.5.1
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r--mail-client/thunderbird/Manifest64
-rw-r--r--mail-client/thunderbird/thunderbird-91.5.1.ebuild1130
2 files changed, 1194 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 5a31df04..e6f6ec4e 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -191,3 +191,67 @@ DIST thunderbird-91.5.0-vi.xpi 706363 BLAKE2B 0f82ec5c419472ce0af3177d6cfb10f3ef
DIST thunderbird-91.5.0-zh-CN.xpi 714610 BLAKE2B ee021e530c5fc109ccf6fc006fac56cff382df48548087085113d3358705ba329f1870c37ceac1c0c627614432d00a4efad49800afee9f3deea5ea91743f8e87 SHA512 30670fd9ded9c5fc8cb42555742b9f72b28bb3ab79fcd13e570a57df931cbb8160236387acecf90cc00c77f248e2b713aa5cf3bafaeffcada7b874ef44a9a9af
DIST thunderbird-91.5.0-zh-TW.xpi 715959 BLAKE2B 291c6fec067909ef19c7134ad1b7d10107ba382f8187f3ff2701a1acc7073d224ba8bc6de889ec66efd3228d60faf5e43b5b5c1d514bf3a02d41be6974a704ea SHA512 bdd0a4d3c2139d951075237503d104e7ed371f6e3aab6ef670304d500394917bc278b2ce46bdd69b4c9e77f975c0985094c529cd2e4dd067d440c243f594f301
DIST thunderbird-91.5.0.source.tar.xz 405937856 BLAKE2B f8bde92181e87608902595001fbf93b583836c5500358230a132e43c98c1bce0533c8fb81746970157049d84cb916d44e6573a4f39dddc4c4c76ee32d3ccef7f SHA512 e1cafbd99e67e8fef346e936890a22aeadded4aa8be604607535ae933251bc1b2a3b56c2b62045b3d37ecb09999adb746157df188d1a32dfe75685f3af959b7d
+DIST thunderbird-91.5.1-af.xpi 561892 BLAKE2B fd0c8fe426216622f95085d18182b7e853ab5612fef4c15bb83815f5c4a9a71a4841f2698147ac69c0d18cf0845641f94220a20ef782a303f46614de18c4e5b4 SHA512 9982c851d4cb0e9ca391649f09d8521aba716e8e75b600b81e0810111ff0e0cfac08cf27e96c1f3a3cc096a8baf21c08bd63e4ff2f3a53338168ac35ad534c1d
+DIST thunderbird-91.5.1-ar.xpi 665243 BLAKE2B f8edc4fb9a3bbfcfcf4e03d585f2eab5544ffb4837e9707fcaf1a212f77502f54fd9241ab5abddbf352fae78fc44e0066bb78af5c876ab4848105e65f057dee1 SHA512 8b5595201dd5ab76de158d7b7c2685f2e50a6398a6fae41125ce572ed71e4ce83c00d595c18288cafc883d188373f3bfeb66ba970a60da7d4f82beabf5e8bcc8
+DIST thunderbird-91.5.1-ast.xpi 580510 BLAKE2B f451bab9ca1d8181b9ba7214cc11f29ce76dc3bbdfff5855d33be79aa04606a49984a5ffb48b1833b2de16e875b51c50a7f870bd9b4635a04815bbfd3e3d9f10 SHA512 0b3e588e03fce7d7dcdd0d83bb647d95216e7fbbbcffce2e1d94be5a4ac1c139bfc970a4140e020700b1827152ca4d7f46542c61295f362dfcaf90f3049e4ada
+DIST thunderbird-91.5.1-be.xpi 694743 BLAKE2B 29efec9803cfaa9a0fadf74a1a8c8292db0122ada30ef75777947b4c777f6d4dde19b1ec3cd9a0fed6fd79245c8b4d0db7b8a929a8a167f240cf928645bc5d4d SHA512 98bfe7a71fdb175cd0679aba829dec1f216ae3427a1097ad97f1a806866930c84c7c0fb63958d4d07f4edd0409536090b7ec0b8bc8590c5ad31361fa36136525
+DIST thunderbird-91.5.1-bg.xpi 690967 BLAKE2B 897bc04ac0967a884456796c18155d76cee369583d49b812b7d2809919968252f745e5b6aeff6c4b4600c90b697ec41ff6c647dbcb73ffdeb25d5dd3d6649dc5 SHA512 56d2467f23173b5bf39ed97e0ce1cc994c6bd387c0ea60d6554e20fd23448c33787a213aef07c1595f852d15f6127525f2a992dce9fc130643c15e7a04f81b1d
+DIST thunderbird-91.5.1-br.xpi 620586 BLAKE2B f156a41bc7a94707c9e73d80fd55039239e488f4f9abb714d6d097934ed55a78cf80ddbeb67b1062fb9ad10c3184c9ec666c0b56b1a1cb6d659edb3856acd005 SHA512 9259b5fdfa22f2e0761e11335443274df23367dc6b7cc49c2122a50e09182781e171581688d03abdcd2799629d778c94bcdda1ca513aa8fd710a6f412fa6a4eb
+DIST thunderbird-91.5.1-ca.xpi 645022 BLAKE2B aa906e6bad6f5a6114c7ac44b606d0b8aab9764c8df235bedee8bff15c897a8f7c356e7075549844a95b59de669f1118c323d8bea0a13bdfe9e8f26a1e46c256 SHA512 81802a5bf93e7e6ec32d4e5ef1fc6365c9e47136292a068d69527c0010c338d1e27905317e4d3884384f39cf40c51fefd49d5d23247346f543262376be7bfd96
+DIST thunderbird-91.5.1-cak.xpi 652064 BLAKE2B 6b9603b49c187e27f7a8557ec3ba4c90a8ce43f40ab612a2692830df134bebdc415b0e257b21f51aeb253895fc05d1ccb649fd8b317e2e36992dac5139951b7a SHA512 93a29d8bb16100ac80a974da0e4b4a9d078e1d0ee69029b2e9c125ce2e86d7857f30ef5c2c5d7c1acbc8ad8974f69535cd265752efe68faa64d21232a503b80f
+DIST thunderbird-91.5.1-cs.xpi 706862 BLAKE2B 5e1f6c34bcb8aaadba5886b26fabf04bc254670e7dd9731a98ea4913077b778127351a403ef31b886ee03b8c694802e0f899d6a65f5fae1d586145f8ff096f55 SHA512 96effaf4ef9f3e5119522387854fe73123e3308a0ff6d26fb189593576b77b64e41ad6c8579c7f1da1cf553db9e46ef172e1b11a3cfb981ea5977d91d06589f4
+DIST thunderbird-91.5.1-cy.xpi 683929 BLAKE2B 4fcaf01798ca28a5e2d9213ca7de093c375b330201f572de4597c4f897a9094f0576efba4d1524c5630d4224fbfefa420e17e2672dc8c265406e7f57fdba2059 SHA512 e0af2c2944c7f5069705655f673126b5d1ccca1572d8f3bf19116a5cd44acc54e0904c7e7d60511bd8fd9d42b522770d079b49bcdbeb26e0d9d400ec429251a2
+DIST thunderbird-91.5.1-da.xpi 663956 BLAKE2B beda6aac9f54935248c4226a69bba1122e69369e938acd1dc7478f6b850619b7311e2f3632460d4f33e500609fed26adfb8853bc6639dbbd14720f29ce38ae85 SHA512 3941045f01dfb32409f487b2785ff09dbbcb40b1e80eacbc797292e03d7525a9be0004b0a9226c477eb1e8c7961d73d6d4fc2ee01b81463dfd50a5d77bbcd52c
+DIST thunderbird-91.5.1-de.xpi 694808 BLAKE2B 4431d1273883c7fa5ea64712e200bb82acdc44bbe09dbb9f9881cb15b3f645493c8630a4f798aba6e2d36cdd74846873e358e931ff8835affa62e8d6edf2bd6e SHA512 763043396c905daec9bfff9c50189ab9dfff421c546f78f1e1854ab5ab06643a35183ee4976d024ad313dff5b843457c5160cb3b67a616c26a2121fcb8e1bce0
+DIST thunderbird-91.5.1-dsb.xpi 719348 BLAKE2B 8d4b16ec390180d3772a006f6bd899c3ba3a474a1b27393283f10159e85a3b672e7a03e5c55f74f8ad3a389c31af4ddfa20a0cec4bb8afdda090fc106fe0af4f SHA512 d2caafd395d3774d414a61b10e7f7eb31917c1d71fee6a08163aaf77a3f99270bba6667126d413c160f01104b11683a22f9fde424c1dfd1e697fb5a2bc863c22
+DIST thunderbird-91.5.1-el.xpi 814592 BLAKE2B 1e2bd05ce5c69fa7ae5444a84c08bc190d32014c1b78d27817003e78b05f13b4b26e837ddc951cb4df48778581e3eab6f92bd8c98de417c4c6fc475a03eb8da8 SHA512 4246f1d714fa73729f592b83943449229536b8d3551624dd59b2d96b9a24c54cf8ccb5a847a5dea3a9d7bf86f02b43b70d4211f3ab91c9592be1b45311501708
+DIST thunderbird-91.5.1-en-CA.xpi 640882 BLAKE2B 746d870d02c011d0b6bb6e57879854c66f64d63897bc694b036dcc32392502076479b3cddcd56e0a6d90e9cfac50aab6d36e8198e864cf2b7dfa8df4a7bcd119 SHA512 aa6090c73e5dc42534fc5b3a4bbf8dbb0029fcab3286d71f927ae7604d1f16633e06cd5b1dbd8031be5c28256e978cc6c93c7edd5cbf1f6c7eacc75427fcd55c
+DIST thunderbird-91.5.1-en-GB.xpi 646447 BLAKE2B dbb2f4a9555ca7c9367d932894760fe5bc38301d2c80509da2bbaf4683435d99ae507e0c2dce7ab9a91cde20f9f66a5f80873192743d898c1be1d3234d365477 SHA512 90e436ac5f44cb5ae853b96667e084db4f832fe29692d9e19156e9fb8713a9d23b0a91170a73f02c2834629672f4a4894805c8750c129f679a7bd19b9d79fe1d
+DIST thunderbird-91.5.1-es-AR.xpi 696013 BLAKE2B 947e2460b365319d762d6d8ef4ecd36de8e38adbd3ca52033eb7433ba7df007a90b53f86b3836bb2456c61c3b95aa40fcd9c8752d518656082b21b5b67026071 SHA512 d12effa8ed8fefcc5dea13e060c86141c7adecd0b4b4aa0fd70cba993506c2869e9ec231bd2ca414d5109be18b8772b37d344b4d8027208ed95ae8035f58c73d
+DIST thunderbird-91.5.1-es-ES.xpi 592151 BLAKE2B ea4469d1b25c872b997f78ac37e391de084f32f074b68b185c99b312bd06943414193b1334f5e27d696953db1eca397c4140b2b09395547d62e329f17580a6b1 SHA512 30c1f7822dd2465dadc209a1e6a9e125d0b7056506cf66f1a59f0314a0c4efe6db3dda0359521804c8b390e0f17a3215b7d383d2a9d22cd15270ec0ca43ff30a
+DIST thunderbird-91.5.1-et.xpi 649366 BLAKE2B e826b61c477fae5813a145b04bea4becdc9279acf6360c549735eb40db1aaf1b157a7b66ebef1eea1e256033f05e3ac8ec267b71873e878a57bdd649099ad181 SHA512 debbff1190502371de6cce3a23960c9da75727a62996530037db863c1c670c7e04c20aff59d6c60c8354ef33b24b2c48bf7c1152674ff3bd22d7e7fffdc5bfce
+DIST thunderbird-91.5.1-eu.xpi 673427 BLAKE2B de374523ef210408b7311d386412d9837c72de808c461718c3e044ddd8892fcc7cac17eb29d783ef085527e22a82157002d501a6b60048f9697c35e286e88de2 SHA512 039a8adbcfbdc7ae9642669ed35d6245f82d3566e0ad4cb724e1b7f901226013c296cbac8c2ec62b4130ba8b6978487ede5101ce7b62c9d4316a4d0999a4fb6e
+DIST thunderbird-91.5.1-fi.xpi 674033 BLAKE2B cc9eced36e8c66cff2314084054576e77a0fef131c87125c3705024e113a2e0c9ecc7231c22a026d4777583a1263aef446457caea43940cc4b905806049f9263 SHA512 fb51ed496fd37a94fcd38c22278820102f52e85780df2019640ef6d63fd755e56fcaeecc04e5404089faf820cb4468e7262ca065e89b84c0ecb4ba0c2f74352a
+DIST thunderbird-91.5.1-fr.xpi 708187 BLAKE2B dc6067c61a12e869f4ec9269d1ed50664614aa4305a4029f38d1bf3ffaf192db3aa15a3a81a8e8b1825a0ed2199629edac8640028f2330317a5891685c68d0ba SHA512 8737828e5988aa138ea70463621a0205d24a9e73e2b3695897989ce9e0a52735cceecc8ecfbf7bf8557f065d980dddf39e296cfe90cdbb54ce3815a0dea8d19a
+DIST thunderbird-91.5.1-fy-NL.xpi 689192 BLAKE2B 9b9b0c04efaa5f7ac4ded3bdc84da79ec8df23c010e50c25d6477cd28c6559cef76a4c1e8ce3b6c29e344bbaa72f2503c1b90a9a1e2ab67fe3fe181643583f4f SHA512 f2056431954641e9fa155446022f5e69f8934bd56b635fbf1bd122831d71d805cd9526ee3b329ebb5f0d84acad34945538aa762965d2462ab0656112935185aa
+DIST thunderbird-91.5.1-ga-IE.xpi 613120 BLAKE2B 5bf3cf480e5564f026f289ddb5d0299e04bc3c05adb6952108e0a51b6c6a624b0b10f6c400f5d47eb064996e7e21c84945f49901c7f0ba6c4a61950db881113e SHA512 a464f16de4e1e94ca67efbd3f92529a3cb27e61770a5d07996d3caf346b4f8dae13437621db4e72bce3cf393275b880ed4348f6685fcd65ca99b0959a6e75aff
+DIST thunderbird-91.5.1-gd.xpi 640645 BLAKE2B 0a0706a85179be24d2ba18d1c0a1aee89498f64c17fbe7922e0d7ac5e1df972e112310c247aece444cc29e389870a67cae97cadbe0a144fbe34a3e4a776aad90 SHA512 6b64e2012bb683763ab674b4213661d1aa92a5e8aa438b3a843e1cb43a54eb1e1b473928c337685d63700f2f9c90d9a49f1545c7c05f860c9fae694475929bb8
+DIST thunderbird-91.5.1-gl.xpi 677614 BLAKE2B 9fd195725c4a0c5846a2fbf610400d061987aab1864536272007639376429c54d48ec32a2102d7c395e1a6e4b29ef1e8abc50035d4d53f88e68c4702b6843c9d SHA512 7f27c28207d7c6309082ace513cb0b71599913ae9c6423f47cf90d0dcdcd91deff1abfde5ce25460e47e2ac9996b7d498a7ae7da5193a21448a2fd122bd94844
+DIST thunderbird-91.5.1-he.xpi 671908 BLAKE2B 54e32facb7d789fb1102cb6cbd3e66ead8a8ecc3bdd54e9688657402a6274c87693599952b3b705dbbfbb0880f7b384eac96cbff32e264ebf26ad7e67ced0000 SHA512 3f80eda941fd21a3909939fa26f2d1dfa941b2349ccf9ec1c0de2c1dca8ad9f3a4d98086b0806051edf76a007f93e37408276af72c608e8ade520dc9fd266317
+DIST thunderbird-91.5.1-hr.xpi 646309 BLAKE2B 48d4f60843caf754b44a56cb70c2e5b3aedbc0027fefc614f2d7a9f5f26e07d70256100494a66ec2615035e33429018786ec571650e88ac2278a4770828a8d64 SHA512 6405f99a2b23bd91d664a345a036dd1ea1db63c923058264b46dc0bd6f5dd98f3f26eaa82bcc89cb329aa61b7c7e4e2e82d219197992be1a50abbd5b2fe6d36c
+DIST thunderbird-91.5.1-hsb.xpi 716149 BLAKE2B dd9aac8ac65fa010268770eb14b07b4314ccaf1a2ffbf7123074e4cad2e7e9e9f02e2524efd841868d545f1d7a200d136ca5283decf2ac129f88ae65481ab529 SHA512 6d8eaaec0c2fb92f5623050ef085afc0028a5c7b13ddea9261a252399f20fd9a77cd42a09d8506e5137602cfbcefa4efda540eb02aa9fa1b0148791a1fca4241
+DIST thunderbird-91.5.1-hu.xpi 718772 BLAKE2B 0286aaae59ff053369887c96c634ab7cb5423360ed07f03180b6ec4fe6a8cb4abc823692ebecb9513d4d44a68ab5abe85548c11f4fb9dd22fe37027385e9e059 SHA512 65cd87ae3a9cf61aad5da4a75417d7030ad9d2a369470744af56c45665353df4c8a106d045e7e0e0dbbd4d456e194dfdcfbe1fa085ac2b1cc3fd43fd33eb90b8
+DIST thunderbird-91.5.1-id.xpi 644511 BLAKE2B 0c27b8dd8c9683cd0cf7690545b8cf90bdb5268f8c4a82805c3b05baa271ea2db5d013a4654d540cc1783a2840833cad6633e561772a673b0f125d9c6b1b01e7 SHA512 ff3b5e02356e42278e8c7a34a1de7e6fffde471aa33c002155720d2a7cd9d2cb8986444f63b4c0892f6ab27ab1aa284d7278257cab66a0eb973e7cccd2c102aa
+DIST thunderbird-91.5.1-is.xpi 678579 BLAKE2B f26d3317c583d21482bab2ad55db490bfdc2a4044b8d89b809acf61c8f11666e1a4bc4009b7dc67339aa64733454090fd41b99ed314b4c9cb3d4865b5f4bb6ab SHA512 be6da88faafd4ec0740927aab09c49dcd791cf9371790d0d1e456253460e0c615dd53d629c6f32a3e0b504bf2f1de0743a87abdc1282937786138b74472d9a99
+DIST thunderbird-91.5.1-it.xpi 609977 BLAKE2B 4bdb91958a01996f92a668122b1c64b38f8b7a9efd34911ae38a6da66b4eb21ef073f2baa8ce544116a8f36989be177986d1bb1ebcfdfb204ef80d2b16119ded SHA512 f7fafd14f2d8521eb3b9becfd2f17f8fd3327da385f9b1d064b4ffeb88b2d2242bfebfe49d0335e1b6fb0aa343eb45b36a4b20f3acc5abd1caf56a1779587f6d
+DIST thunderbird-91.5.1-ja.xpi 754199 BLAKE2B 7429822b6bfd3c18b48e975f6207dc84d2da994d896ba88c4f7f6b9f6679c987fef077f06e20e146b88b484919d1d9de5fe3c970f62c717d0810e47aadfe63b2 SHA512 d1ed2c3d336a15fa54dc7f6bc94604ee7034b12a2481928d1e4a3367a8c1fc16ed4255a72a6244c782da87a5f38c423bdba9c135779607efc3b8e67597d2e980
+DIST thunderbird-91.5.1-ka.xpi 755747 BLAKE2B b49f001f7f840b138bb238ca47e6ef14438baceaf59cffdccbb4dc0a37a04221228745ba08102c3e1e7b5b54f6b4cefd92f83f3e51d0aa0ce82fbb70b48f213a SHA512 240ddd17b39dca80c4a60080f7983a24cd71b483bc2daf1cd0d9cf0334bf19914cd64d0143c9d6a1045236ac70441346582759918ea5cb993b55fbbd3a17e9e8
+DIST thunderbird-91.5.1-kab.xpi 677011 BLAKE2B a54c3d69a9753f909afa1eb5c1a39071f81f58eca062c3a554dd624b083bf643751d000f9b44ee6789c0c5172f3d5c7dba76472ca7419554e337d393258ef53d SHA512 afce67edd7cd1fce53ec2c00268484686737f21ae676ce47f831f0839471be7365531086df99fd57b391751cdd8e70cf15abd020d13ae5111acfcca1e99c2d33
+DIST thunderbird-91.5.1-kk.xpi 745028 BLAKE2B b0987bdded09534ca9312ec4037a8555250a5a04316bb26138e18e5ee2bbd7ab59b85ed58fea156c24700a578c017239b99ce44885eefdd455c9820be45d0f08 SHA512 971e57cded5b4e2a8146d0df91fded8c5e843ed589523a94f7e878e6e7916b2986ec22d3e4cc3756f0cbb7a25e30985720059bc089d392242e6ab7f93f0e0063
+DIST thunderbird-91.5.1-ko.xpi 703523 BLAKE2B f7a824e4e84c8514d603b5fa6136f5bff3fbd1d8d25e47aa08d027d0f6daa6b6fa48e64524f7fd3b4717c3c2b851c3d3c4610e1aee1861bed5b92449afb4fb13 SHA512 1eeea2986a72863e140635f1ed5a3862f3a241f7c05ff981986f9300aa39b79a85b08e77196ce4565650c0907504d7301bd0dad49bb7e8f3bbb9c8388167058a
+DIST thunderbird-91.5.1-lt.xpi 695676 BLAKE2B b933a07c1acfef40552ce22023552dc360494658217f5cb94424c978f5c27633a48f9fb8cb487a5eeac28cdcc0dc7e7adadb3608bb83e1188a2b0d7031fc54c9 SHA512 d94b906cb1e2608c33b8f1b7035e467ff847a2b078417c3e4fe3ecd26bbc05b2ae982471662a6500590b7f7f05dcf8bad4de037f64d871a23663c8e81bee6249
+DIST thunderbird-91.5.1-lv.xpi 618452 BLAKE2B c36291427dde7904aec067d8186539c61c02a2f38360718628add25f6318be49d1b35b51adb37d3c68b6866b6d91a764f0bb11df7d3eb796d9da727a4d43c9ce SHA512 6b60dc956344cee4a5b77a262e7e9cce2a78a872cb1ef48aeca7132fc35ee93ce7677fe0b587fc119465677b4a37ef1de6d2426d9bed3244c143af5307154e34
+DIST thunderbird-91.5.1-ms.xpi 578077 BLAKE2B 1bd937e1f634601e286fc064025c23724882e2bde0ddaeeb3579e6a9f8a06b9da4b266dbcb7c8b5cf3c9c6d5d4c5337c7f670978a37c4586588b095cbe332702 SHA512 52dac0d033207430037f256a0cbab36078303605d99301dcfbf036fa2550ab3bdd6c400cab694a73f8295708d5f492f64a7ac8f5ef32bbd5072bbf4e4152aced
+DIST thunderbird-91.5.1-nb-NO.xpi 652516 BLAKE2B 8c1658dc754f497e0b83d92360c55915aac11cb4d574415da4d26d3db7eab9e89d0608473845ee16e42cf90cd4fa5dcc465fa14fc6bcfe201475fd963bbb9182 SHA512 4d87d342a03534df9baaa0100b6c5d45e4df54003f1f6465278fdae168f04295ec0c2011e8cb7c7c195958e0de707cbd88d5caf2eaf756345b9f28d024f7675c
+DIST thunderbird-91.5.1-nl.xpi 682119 BLAKE2B 151e694a8fbb1a3bce5e0e40bd8bd97ed8d2ba5f61af366bc550f2b296cc61bc6826fdd1f2364c5fcc034f8252d18bee2ca36530e840deeb1f4586b60ad765ae SHA512 b7a5c6e1b76664075e321f00dd050d5988543804acfc537812e889e778a22429b00b8fa5d7a54336fff4a1af1a3af8e26a3e897ac31d3a23493eeea0118bbd0e
+DIST thunderbird-91.5.1-nn-NO.xpi 656076 BLAKE2B 3237bb4c3728833ee525ae3ab5e16c87392bb83a50ec85272ff36b7c24ab421c8aec8a14a3cdcfbe6d89218c97975024f78e20332bbf7adb8f1ae3be5c352fff SHA512 c7eb3da6a58875d59f832ec6eb782020b217a821b1ae8a62fc5629f2a8ba7f717fb152d7ade3b41554ea463f684260bebd1b7c7885881a7053b05b00a11e0be9
+DIST thunderbird-91.5.1-pa-IN.xpi 652272 BLAKE2B fc067c0e0875a07cff2d01d06f3493a5f4fded49b12a58a9e6ad8db315330622a5028be7bf3ba5e34e94c783c753f192d0f45688363721d943ee72fbada19ef8 SHA512 4bd798464966401b1385f77d0181f4bf9f510629d2633c2d25b8861b13526b876b826858dd03fe21795672e33748d2f9d9273caf5412e16d709de1b97c97324a
+DIST thunderbird-91.5.1-pl.xpi 692824 BLAKE2B e4903bcfd2f211b1a601fcb8837a94447f3f30decd4ed2041a1b82bb44c252697fd1789ae61da48b54a9fc8b564242a67a218c7d720a4a18a323c8e2da08555c SHA512 b4f33e07b448f07790f1d577e4f18f06626aa5fe614043df5ef082110caf9648f80e349d2b18f6d774a8311cd4a79c9cbf56da7d0089074e2daee90ab7493286
+DIST thunderbird-91.5.1-pt-BR.xpi 689676 BLAKE2B 22721008ef801e739787cd6ad17f3f877191ffdcce735ebf19991736da45a59096dd0b53d7dc1ac3f34c4412c9cb644cf542d82fef02552610e182452ec7f378 SHA512 8c671f8815994044e68b61f6f4a3509ac84a1d37e2b1027ebf4ff64350cf2e611345cc01397a751916b168e1b900f40512a5ee7dddac2ca9da9d98e69342d619
+DIST thunderbird-91.5.1-pt-PT.xpi 673203 BLAKE2B 66a94386bfb9f5662d305e9c1a3857cb5b3bac3511b59a54660183326f1e46c76d92c67dc573f6d6c54112cd6fd2dc646c688abd05ecf7777a2373bb16b8e026 SHA512 d49b9b90cf2573b75f3d6547a4f42b87c8f636abc6cd7a961c3a89606ddcbd3c48fc6529f872575cc7b0f21f8a67da5ddef0c0c043e4638567e789ac7908ce30
+DIST thunderbird-91.5.1-rm.xpi 684945 BLAKE2B 6bc24cf5fad0bf9bf90ecebc11cdd2d36c7f90177bf8d178e34ddcda6edf05d5239330adf502e38db771bd87529bd9084dbafcd6af9956154dfed724a9ed95bc SHA512 30055cfdb7aee40ce58d2e01160973702c76149622eeebf2bacad650883dfbac3a11110554d93e352c372009d8bd575f86e9da217a1b2710276ba41c74aa93f4
+DIST thunderbird-91.5.1-ro.xpi 661275 BLAKE2B b57c561ce8bcbdc9fa98a0f1f95604e847bc77545c41ff501362fd11b033431fc80f0512bf48b26862f8dc32362d0a9ff968cd5aaf6acfcfc273b78948ab882b SHA512 791fa9818c2e5638b4ef1274d02fdfc92fe9c857e5734311a37e8965bff730812f9b4a33e7c5e60e7d69a70e4a6723dd4068a8ff79535e0f4c15fc58e2b11c2b
+DIST thunderbird-91.5.1-ru.xpi 791767 BLAKE2B 53a91e8974fd7543edda012d24eff4935c1d5caa9b05ce47a85269314c02042a32ea40f5b0ab2b1dd9f8e1606a75dc30622e94b0e98871d5e188d74571aa5954 SHA512 e2c426c52eaaf3451899f27f5bca22c270cb784d89d77ce1ba17331b2d74e2e73d783f51f8d43263f43a9394c5db8d60bfc0fb0961e014731ab12962cef94868
+DIST thunderbird-91.5.1-sk.xpi 718683 BLAKE2B 71310dd8ccc253c389ce0a6cd1fb0740165c7562768273145299bd834ddc3da26dbc5d8be7c45a0ea097847fa426ecb46f51ab9e5902e62d0eecc4b7fba8cffb SHA512 92468119d7a332b4a37f4251739a8a3ffe03560d3e1b07ac1dd7a56af41597336c6fe1ecac3e7b342b36e1e7b2e932ec55b8920d1866f9e3751382a509dbfe33
+DIST thunderbird-91.5.1-sl.xpi 677317 BLAKE2B e16be941f4c980fc651df371dd38ce1e327ef720ddf2d641ccc57ad656212f68e2d8c1c355da9ba1a605a93b5fc941b537d2720733326c36a0492f85cfa39d87 SHA512 8d8ccf9a2ea43441da9ea85c208ff851d7875a55cbd582e698c63e717eefa31b715808a496696fe6b8961376d4d22b949ea71467ea1b0aba9cd56f333fb923e5
+DIST thunderbird-91.5.1-sq.xpi 700481 BLAKE2B 8e426e144f4d52c283600143f717f2b8c358720047790dbc0e1e28bff104f8800131901374a700960f95564e73a830047eb096785028f455cf8c001f4144419d SHA512 ccf2e2dcb3156a3f82169c04e14921a43ed439152bdc93294c4d4111abe9ad4642bad66edba5d94a0906d1911b7f7b05748f1c4e0668293d0c97202152ace40e
+DIST thunderbird-91.5.1-sr.xpi 708977 BLAKE2B a221b38dc78cae4ea5093aa093aa082c3c289d338c0d2f15bc1502a44c5346926c01f6cde8629e2e729b3b70230e1fe9df567e71d3be56b63b35ddfc4526cd44 SHA512 903272121bc619d2b852c4cd98c1452363ca894fb7bdd28b02545e15cb34dd8a99ace7940c536f2c97295bd2c7f73f078308e820aec96d52e801418fadd3c311
+DIST thunderbird-91.5.1-sv-SE.xpi 686482 BLAKE2B 8aeb5d1bd626fe23a9a5fd3d4d377dba65f835ae23970be541d626f1821a8a6c8f9b738b0efeaf5289bbac97cfa7f4b7d66fef7842a8228b27331e1509943b9a SHA512 cf748b921715911068a2f193a3a39f47cd7479f3991c3dca4ace694dc37ddc0983062b127c03acb7e3f78b626c752267ed862de8a598d42624fa79ddac17d7c0
+DIST thunderbird-91.5.1-th.xpi 746638 BLAKE2B ae393d1d136c081b776db1240b6f3f9c2bee7a9d383b7e042bcd63610a7a89212b3c4a763d35fc63bad0c415706bb45124894149259aefbedc09624400f258d8 SHA512 e4db66c8216caa3ce4c265d8e599d7a1c9087559016d42b307484f922e4fc01092acae8f8a322e8beadde6f346eb07d39f3e7d0e9a67539b139a3beea6844ac2
+DIST thunderbird-91.5.1-tr.xpi 695166 BLAKE2B 59cfd2a8bac37f71b5ee2411ee1a503034eed507b87b2fc2b54e89d89456d7b38c1a9d1435c21148a598b42faa05a76959de3c434650a7398369588334c0174d SHA512 0d2e6a40f79ae7f7cea8e353e898f09b5ecb73f4f35800e76e43fb234fe3396cd7acc5a9962cf02392a38593d0acfe9653bf30b36d7eca006375b80b0a67ecba
+DIST thunderbird-91.5.1-uk.xpi 793448 BLAKE2B 795083d8ee4e62bf75ae66251d5ecf2b1a9e5d2c0e2afd7e7acf9901e9b9b6850c9f1a28f729d3aa82eb439e8663641768f407aa4811f904cd587018abbccc64 SHA512 949e84ca1a6a10fb7a8946a03fe0cea913033153d2e98cb3028fe5ec8b066fda60086f3893d5663f1bcdac2308140ab4f2b5cd7bf9a514b071355283ca824c9d
+DIST thunderbird-91.5.1-uz.xpi 591029 BLAKE2B 74cf922545b94039f87519cc3ee97204a5ba19468e3c85ad5d3724e394510a5f457fad60b91be61850f32644d73d6e005e261ec53e355cddfcc8a7ae75a26236 SHA512 b7f5f6ceaba14198838c56197f18d474e6d9383f1bda9f517025e55ac6e9b88c2a55f5861a200041b74447151f40f961451102a1e565f5788ebd0d2efef1b92e
+DIST thunderbird-91.5.1-vi.xpi 720551 BLAKE2B 9e2c0947497588c76f4a45d268495bfd85587affb35c736933948336d28f0c91045e33b22b66cb4d36d3d1219148f706069d35b453fa89f116525cc1d4628ea3 SHA512 ff5ebf68dab9657311fd7dd59f4a76381c25f56d57e6228795fcc86c4531e44617d1e7925dbb829fa73d04c33aa98bfa1a4ad716908c7fa2d5cdf755ba1a57ea
+DIST thunderbird-91.5.1-zh-CN.xpi 726135 BLAKE2B 3b86bc5b198b7da510162cbb2a4f8c5c76f1b565b94d7be7e592a302459e91fe1f08f8dd5628c29b3b660d736cf35b597c409fd25722f344cadd9fd413db0701 SHA512 9097f8b300e25b91395c44ac8dcb2cf4bfd37ca043da1f6d46d1cceda3bd53f6efb3ecf6f8573960d34deb7180db0e6f392e72fcf72155b098aca8639d8262bf
+DIST thunderbird-91.5.1-zh-TW.xpi 727308 BLAKE2B 2534f30bce59b6cd39c7d723ccadfbdfe64cf557d2f75fc58b582be4afbd1931f29ac1fd1c153b849747b6b5e2f4b5e8c80d62f60e6fbc662ddee2feeec9c8ca SHA512 1e317fdd6bc23a6c5dc1c61257016fb9721a7976b7292b9423e61c17c3da3912dcec3dd166d17a1901c7173903d1d6e60ebc7c5b390d320a973177703da8c96c
+DIST thunderbird-91.5.1.source.tar.xz 405332676 BLAKE2B 01dd02ba571b9f8aab9f935a4364ea18803ac0b4b5ceba3062ae6e537d86e503df8d295ac739b21fb5a16bc831ab7da407d5d28fc1fcb40c9591bec30c830de0 SHA512 5939e09b143e440efa906d95cda06826bd3a73b2edde5eed86229b8a0e4d1434519059f37d319d26978d7eea9b3906c5e1c1543a2bc2465625d5ab5438855717
diff --git a/mail-client/thunderbird/thunderbird-91.5.1.ebuild b/mail-client/thunderbird/thunderbird-91.5.1.ebuild
new file mode 100644
index 00000000..833c6021
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-91.5.1.ebuild
@@ -0,0 +1,1130 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+FIREFOX_PATCHSET="firefox-91esr-patches-03.tar.xz"
+
+LLVM_MAX_SLOT=13
+
+PYTHON_COMPAT=( python3_{7..10} )
+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/~{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.thunderbird.net/"
+
+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"
+IUSE+=" jack lto +openh264 pgo pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx +system-webp"
+IUSE+=" wayland wifi"
+
+REQUIRED_USE="debug? ( !system-av1 )
+ pgo? ( lto )
+ wifi? ( dbus )"
+
+BDEPEND="${PYTHON_DEPS}
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.19.0
+ >=net-libs/nodejs-10.23.1
+ virtual/pkgconfig
+ >=virtual/rust-1.51.0
+ || (
+ (
+ sys-devel/clang:13
+ sys-devel/llvm:13
+ clang? (
+ =sys-devel/lld-13*
+ pgo? ( =sys-libs/compiler-rt-sanitizers-13*[profile] )
+ )
+ )
+ (
+ 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] )
+ )
+ )
+ )
+ amd64? ( >=dev-lang/nasm-2.13 )
+ x86? ( >=dev-lang/nasm-2.13 )"
+
+CDEPEND="
+ >=dev-libs/nss-3.68
+ >=dev-libs/nspr-4.32
+ dev-libs/atk
+ dev-libs/expat
+ >=x11-libs/cairo-1.10[X]
+ >=x11-libs/gtk+-3.4.0:3[X]
+ x11-libs/gdk-pixbuf
+ >=x11-libs/pango-1.22.0
+ >=media-libs/mesa-10.2:*
+ media-libs/fontconfig
+ >=media-libs/freetype-2.4.10
+ >=media-libs/libpng-1.6.35:0=[apng(+)]
+ 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/libxcb
+ 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.8.1:=
+ >=media-libs/libaom-1.0.0:=
+ )
+ system-harfbuzz? (
+ >=media-libs/harfbuzz-2.8.1:0=
+ >=media-gfx/graphite2-1.3.13
+ )
+ system-icu? ( >=dev-libs/icu-69.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 )
+ sndio? ( media-sound/sndio )"
+
+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}
+ x11-libs/libICE
+ x11-libs/libSM
+ 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
+ fi fr fy-NL ga-IE gd gl he hr hsb hu
+ id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+ pa-IN pl pt-BR pt-PT rm ro ru
+ sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+ # https://bugs.gentoo.org/587334
+ local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+ fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+ )
+
+ local lang xflag
+ for lang in "${MOZ_LANGS[@]}" ; do
+ # en and en_US are handled internally
+ if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+ continue
+ fi
+
+ # strip region subtag if $lang is in the list
+ if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+ xflag=${lang%%-*}
+ else
+ xflag=${lang}
+ fi
+
+ SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+ SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi"
+ SRC_URI+=" )"
+ IUSE+=" l10n_${xflag/[_@]/-}"
+ done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -ne 1 ]] ; then
+ die "${FUNCNAME} requires exact one argument"
+ fi
+
+ einfo "Clearing cargo checksums for ${1} ..."
+
+ sed -i \
+ -e 's/\("files":{\)[^}]*/\1/' \
+ "${S}"/third_party/rust/${1}/.cargo-checksum.json \
+ || die
+}
+
+moz_install_xpi() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local DESTDIR=${1}
+ shift
+
+ insinto "${DESTDIR}"
+
+ local emid xpi_file xpi_tmp_dir
+ for xpi_file in "${@}" ; do
+ emid=
+ xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+ # Unpack XPI
+ unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+ # Determine extension ID
+ if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+ emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+ [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
+ elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+ emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
+ [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
+ else
+ die "failed to determine extension id"
+ fi
+
+ einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+ newins "${xpi_file}" "${emid}.xpi"
+ done
+}
+
+mozconfig_add_options_ac() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_add_options_mk() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_use_enable() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_enable "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
+}
+
+mozconfig_use_with() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_with "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
+}
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ if use pgo ; then
+ if ! has usersandbox $FEATURES ; then
+ die "You must enable usersandbox as X server can not run as root!"
+ fi
+ fi
+
+ # Ensure we have enough disk space to compile
+ if use pgo || use lto || use debug ; then
+ CHECKREQS_DISK_BUILD="13500M"
+ else
+ CHECKREQS_DISK_BUILD="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
+
+ if ! use clang && [[ $(gcc-major-version) -eq 11 ]] \
+ && ! has_version -b ">sys-devel/gcc-11.1.0:11" ; then
+ # bug 792705
+ eerror "Using GCC 11 to compile firefox is currently known to be broken (see bug #792705)."
+ die "Set USE=clang or select <gcc-11 to build ${CATEGORY}/${P}."
+ fi
+
+ python-any-r1_pkg_setup
+
+ # Avoid PGO profiling problems due to enviroment leakage
+ # These should *always* be cleaned up anyway
+ unset \
+ DBUS_SESSION_BUS_ADDRESS \
+ DISPLAY \
+ ORBIT_SOCKETDIR \
+ SESSION_MANAGER \
+ XAUTHORITY \
+ XDG_CACHE_HOME \
+ XDG_SESSION_COOKIE
+
+ # Build system is using /proc/self/oom_score_adj, bug #604394
+ addpredict /proc/self/oom_score_adj
+
+ if use pgo ; then
+ # Allow access to GPU during PGO run
+ local ati_cards mesa_cards nvidia_cards render_cards
+ shopt -s nullglob
+
+ ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+ if [[ -n "${ati_cards}" ]] ; then
+ addpredict "${ati_cards}"
+ fi
+
+ mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+ if [[ -n "${mesa_cards}" ]] ; then
+ addpredict "${mesa_cards}"
+ fi
+
+ nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
+ if [[ -n "${nvidia_cards}" ]] ; then
+ addpredict "${nvidia_cards}"
+ fi
+
+ render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
+ if [[ -n "${render_cards}" ]] ; then
+ addpredict "${render_cards}"
+ fi
+
+ shopt -u nullglob
+ fi
+
+ if ! mountpoint -q /dev/shm ; then
+ # If /dev/shm is not available, configure is known to fail with
+ # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
+ ewarn "/dev/shm is not mounted -- expect build failures!"
+ fi
+
+ # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+ MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+ fi
+
+ if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+ MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+ fi
+
+ # Mozilla API keys (see https://location.services.mozilla.com/api)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+ MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+ fi
+
+ # Ensure we use C locale when building, bug #746215
+ export LC_ALL=C
+ fi
+}
+
+src_unpack() {
+ local _lp_dir="${WORKDIR}/language_packs"
+ local _src_file
+
+ if [[ ! -d "${_lp_dir}" ]] ; then
+ mkdir "${_lp_dir}" || die
+ fi
+
+ for _src_file in ${A} ; do
+ if [[ ${_src_file} == *.xpi ]]; then
+ cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
+ else
+ unpack ${_src_file}
+ fi
+ done
+}
+
+src_prepare() {
+ 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 state path
+ export MOZBUILD_STATE_PATH="${BUILD_DIR}"
+
+ # Set MOZCONFIG
+ export MOZCONFIG="${S}/.mozconfig"
+
+ # Initialize MOZCONFIG
+ mozconfig_add_options_ac '' --enable-application=comm/mail
+
+ # Set Gentoo defaults
+ export MOZILLA_OFFICIAL=1
+
+ mozconfig_add_options_ac 'Gentoo default' \
+ --allow-addon-sideload \
+ --disable-cargo-incremental \
+ --disable-crashreporter \
+ --disable-install-strip \
+ --disable-strip \
+ --disable-updater \
+ --enable-js-shell \
+ --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 sndio
+
+ 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
+ # ld.gold is known to fail:
+ # /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld.gold: internal error in set_xindex, at /var/tmp/portage/sys-devel/binutils-2.37_p1-r1/work/binutils-2.37/gold/object.h:1050
+
+ # ThinLTO is currently broken, see bmo#1644409
+ mozconfig_add_options_ac '+lto' --enable-lto=full
+ mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
+ fi
+
+ if use pgo ; then
+ mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+ if use clang ; then
+ # Used in build/pgo/profileserver.py
+ export LLVM_PROFDATA="llvm-profdata"
+ fi
+ fi
+ else
+ # Avoid auto-magic on linker
+ if use clang ; then
+ # This is upstream's default
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
+ else
+ mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
+ fi
+ fi
+
+ # LTO flag was handled via configure
+ filter-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
+
+ # Portage sets XARGS environment variable to "xargs -r" by default which
+ # breaks build system's check_prog() function which doesn't support arguments
+ mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
+
+ # Set build dir
+ mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
+
+ # Show flags we will use
+ einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ # Handle EXTRA_CONF and show summary
+ local ac opt hash reason
+
+ # Apply EXTRA_ECONF entries to $MOZCONFIG
+ if [[ -n ${EXTRA_ECONF} ]] ; then
+ IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
+ for opt in "${ac[@]}"; do
+ mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
+ done
+ fi
+
+ echo
+ echo "=========================================================="
+ echo "Building ${PF} with the following configuration"
+ grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
+ [[ -z ${hash} || ${hash} == \# ]] \
+ || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
+ printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
+ done
+ echo "=========================================================="
+ echo
+
+ ./mach configure || die
+}
+
+src_compile() {
+ local virtx_cmd=
+
+ if use pgo ; then
+ virtx_cmd=virtx
+
+ # Reset and cleanup environment variables used by GNOME/XDG
+ gnome2_environment_reset
+
+ addpredict /root
+ fi
+
+ local -x GDK_BACKEND=x11
+
+ ${virtx_cmd} ./mach build --verbose \
+ || die
+}
+
+src_install() {
+ # xpcshell is getting called during install
+ pax-mark m \
+ "${BUILD_DIR}"/dist/bin/xpcshell \
+ "${BUILD_DIR}"/dist/bin/${PN} \
+ "${BUILD_DIR}"/dist/bin/plugin-container
+
+ DESTDIR="${D}" ./mach install || die
+
+ # Upstream cannot ship symlink but we can (bmo#658850)
+ rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+ dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+ # Don't install llvm-symbolizer from sys-devel/llvm package
+ if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+ rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+ fi
+
+ # Install policy (currently only used to disable application updates)
+ insinto "${MOZILLA_FIVE_HOME}/distribution"
+ newins "${FILESDIR}"/distribution.ini distribution.ini
+ newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+ # Install system-wide preferences
+ local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+ insinto "${PREFS_DIR}"
+ newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
+
+ local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+ # Set dictionary path to use system hunspell
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
+ pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
+ EOF
+
+ # Force hwaccel prefs if USE=hwaccel is enabled
+ if use hwaccel ; then
+ cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
+ >>"${GENTOO_PREFS}" \
+ || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
+ fi
+
+ # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
+ if use system-harfbuzz ; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
+ sticky_pref("gfx.font_rendering.graphite.enabled", true);
+ EOF
+ fi
+
+ # Install language packs
+ local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
+ if [[ -n "${langpacks}" ]] ; then
+ moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
+ fi
+
+ # Install icons
+ local icon_srcdir="${S}/comm/mail/branding/thunderbird"
+ local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
+
+ insinto /usr/share/icons/hicolor/symbolic/apps
+ newins "${icon_symbolic_file}" ${PN}-symbolic.svg
+
+ local icon size
+ for icon in "${icon_srcdir}"/default*.png ; do
+ size=${icon%.png}
+ size=${size##*/default}
+
+ if [[ ${size} -eq 48 ]] ; then
+ newicon "${icon}" ${PN}.png
+ fi
+
+ newicon -s ${size} "${icon}" ${PN}.png
+ done
+
+ # Install menu
+ local app_name="Mozilla ${MOZ_PN^}"
+ local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
+ local desktop_filename="${PN}.desktop"
+ local exec_command="${PN}"
+ local icon="${PN}"
+ local use_wayland="false"
+
+ if use wayland ; then
+ use_wayland="true"
+ fi
+
+ cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
+
+ sed -i \
+ -e "s:@NAME@:${app_name}:" \
+ -e "s:@EXEC@:${exec_command}:" \
+ -e "s:@ICON@:${icon}:" \
+ "${WORKDIR}/${PN}.desktop-template" \
+ || die
+
+ newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
+
+ rm "${WORKDIR}/${PN}.desktop-template" || die
+
+ # Install wrapper script
+ [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
+ newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
+
+ # Update wrapper
+ sed -i \
+ -e "s:@PREFIX@:${EPREFIX}/usr:" \
+ -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
+ -e "s:@APULSELIB_DIR@:${apulselib}:" \
+ -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
+ "${ED}/usr/bin/${PN}" \
+ || die
+}
+
+pkg_preinst() {
+ xdg_pkg_preinst
+
+ # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
+ # does not need to be forced into the LD_LIBRARY_PATH
+ if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+ einfo "APULSE found; Generating library symlinks for sound support ..."
+ local lib
+ pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
+ for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
+ # A quickpkg rolled by hand will grab symlinks as part of the package,
+ # so we need to avoid creating them if they already exist.
+ if [[ ! -L ${lib##*/} ]] ; then
+ ln -s "${lib}" ${lib##*/} || die
+ fi
+ done
+ popd &>/dev/null || die
+ fi
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+ elog "Apulse was detected at merge time on this system and so it will always be"
+ elog "used for sound. If you wish to use pulseaudio instead please unmerge"
+ elog "media-sound/apulse."
+ elog
+ fi
+
+ local show_doh_information
+ local show_shortcut_information
+
+ if [[ -z "${REPLACING_VERSIONS}" ]] ; then
+ # New install; Tell user that DoH is disabled by default
+ show_doh_information=yes
+ show_shortcut_information=no
+ else
+ local replacing_version
+ for replacing_version in ${REPLACING_VERSIONS} ; do
+ if ver_test "${replacing_version}" -lt 91.0 ; then
+ # Tell user that we no longer install a shortcut
+ # per supported display protocol
+ show_shortcut_information=yes
+ fi
+ done
+ fi
+
+ if [[ -n "${show_doh_information}" ]] ; then
+ elog
+ elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
+ elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
+ elog "DNS traffic to Cloudflare by default is not a good idea and applications"
+ elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
+ elog "(\"Off by choice\") by default."
+ elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
+ fi
+
+ if [[ -n "${show_shortcut_information}" ]] ; then
+ elog
+ elog "Since ${PN}-91.0 we no longer install multiple shortcuts for"
+ elog "each supported display protocol. Instead we will only install"
+ elog "one generic Mozilla ${PN^} shortcut."
+ elog "If you still want to be able to select between running Mozilla ${PN^}"
+ elog "on X11 or Wayland, you have to re-create these shortcuts on your own."
+ fi
+}