Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/thunderbird/
Date: Thu, 01 Sep 2022 07:32:50
Message-Id: 1662017564.815daaa3ee96ab15c9234cb9f8c851dac8fa8980.juippis@gentoo
1 commit: 815daaa3ee96ab15c9234cb9f8c851dac8fa8980
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 1 07:32:07 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 07:32:44 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=815daaa3
7
8 mail-client/thunderbird: add 102.2.1
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 mail-client/thunderbird/Manifest | 65 ++
13 mail-client/thunderbird/thunderbird-102.2.1.ebuild | 1169 ++++++++++++++++++++
14 2 files changed, 1234 insertions(+)
15
16 diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
17 index f660555da5d4..6336ec88d995 100644
18 --- a/mail-client/thunderbird/Manifest
19 +++ b/mail-client/thunderbird/Manifest
20 @@ -65,6 +65,71 @@ DIST thunderbird-102.2.0-vi.xpi 719956 BLAKE2B 0fe46a18b7886280df5050532b7259aed
21 DIST thunderbird-102.2.0-zh-CN.xpi 716463 BLAKE2B 91d9022eff74adbac74cd036074134804ee0f4f82e93bb74bc183837b736a574f712ac9cf1f2af0dd939e69378272a204d7473863e972d86da739384c03031fb SHA512 3d12e086151cf7680dcf9fdb417431eff36dc9b8de7ecb876d9d726c8ed8829831d7b62021ba67e55c2952acab8a161e62a22cfadbe026b1cfbfea715c4efe58
22 DIST thunderbird-102.2.0-zh-TW.xpi 722339 BLAKE2B 0a6d8498a8209798326fcb8ec868db550a594b57cb0450268d9fa9c49ffbbc8163baea214fa4b09e3c4497d101a4758552e7a12f1f70400d6945e333e1e4988e SHA512 98243637a26161cc857ccfbabc39a58d31962b8cf695f000fda58328b106a5850ccab55b9f5b59794f5c23bd529c987ad65e3d9850095d50120a374fbfdf6b44
23 DIST thunderbird-102.2.0.source.tar.xz 500331516 BLAKE2B 1c48e2c0fa02f4c2745e5f5db7efc393efd2c2a882cf5be02751be1e0d04dd217afb6cb393ee698416081de533a7583ae7f6a9312fca8c2dd9c0ae3a777321c1 SHA512 a9ca311e3c55c8703aaecfe30f8a8040a16acc445530f7462baeaaf941f7221e60b66b0894ea0b3c0eb83ccc882706674cfa319ae93557405946ffffb1f6b5dc
24 +DIST thunderbird-102.2.1-af.xpi 550105 BLAKE2B e9bc1b0daed89d6ba0c0098a07efa028a348a83cc770aecf90583600963a9131d4131fca95ec0b20bec3bc92b15eb4c1dcbbb3339b5c64dae86472b44f911b2e SHA512 3d01ed1ed68515d8c3e4dd74f98dfd624be3dc1c825bbdc21ba387f84741960d5cb35f3e26b05bf44c4682ab02f52570ae235bb4173f41832a1734a87abf8bf2
25 +DIST thunderbird-102.2.1-ar.xpi 653972 BLAKE2B 7778728e756c61af75a32f1737f39ef56c462045d83c4c5f90e312be429325bc0f0256514e7a55e8c3afbf1609716708952ed12fa7f1120de4d76b281721728e SHA512 3dcf18dd2c3233d0698f47211cb6ab02e86a4104cf7885e048dba9e18dd9353f95477d657def270c8b54eb1f9a47c550254c1011b8eb260add12a94bcf763ab2
26 +DIST thunderbird-102.2.1-ast.xpi 570833 BLAKE2B 811d65e39bf4739a8b69c33ec2010768264f8094ca20fcc31d4b96ba319eef8a41261dd164db79e5558dbd14d8aabea0b0f5e762db3256c828b79840cb3339f6 SHA512 a256e8a63e2551dabd278b7e1d863716efa35836031af0b8beec22e4e0c8cfdc9606ffc436617f4e7d2c252742937c6df5321b6482a44e40578e1bec27b48e28
27 +DIST thunderbird-102.2.1-be.xpi 685076 BLAKE2B d5b71f3e531d01c46b9c11f43ad6673b372be9de5c700fe9f4ed93b7509bd9bbed67eadd49b1d129506bff28d9477ab0e867589a9b16c7193e5e116492e99847 SHA512 93c0e3696630db05b4621be539c2ee58282e47e22341a6d61b24e3014db02f55b0c140b2d4d527ea4ce789bd18f2a2ac9db55ebd9013e47872effc56334202ac
28 +DIST thunderbird-102.2.1-bg.xpi 681980 BLAKE2B c41bafad4c0e0e56ae4c4929a3f949dfac870db0359b19371d43046d54cb0bc9b5601fe89f05567a145da225d249c0e50e1fd91d09113a69fd93d1a657206fa9 SHA512 ca75408cb7a6fc15f757868fe518a9aff50a4a2f015ccc743e4e335b048385164071600dfa4b6f171022dad2a3b7c3528e8a5764b1f3e2474fad3d4bf2c04f31
29 +DIST thunderbird-102.2.1-br.xpi 612641 BLAKE2B 5ad584a0244f6a5349e51dfd9b7b53148c8e7d58b61eaaa5e45f53ab00549cf3fc1c6c32f05efd999afa61b542ec575eed5c5b436b8595072b8013dad397dc78 SHA512 aaf8ee6514a8b5d05fc62d5d1237328802def64dbb338559b37eaa8dd7a312a7c130020a9b29008f2b06cfd0f08099895cccf28ef663b9a21b297dd93d585664
30 +DIST thunderbird-102.2.1-ca.xpi 635815 BLAKE2B 76556396519512017cb896b191895e001f3421bf4ed5c753014a8fd5ef22fce0575ca8e91c79d55d51b5bfbc594e05f77dbad2d545938bbcba3cfad86e92553d SHA512 5a70b04712260deb62e007532b93fe4c864fa582756e0c97be02cc708e4acf56953b29cf3002ebd07713a56451ab5e0e447c27bd47cd5ce3e27a48ccb621811d
31 +DIST thunderbird-102.2.1-cak.xpi 642306 BLAKE2B 411799a35ad29924702cf288501cdf236480ff7b897dee6e474275afe5c5585278eea54185344422ed1af9ead466f033c5c8d0357c6b6cd8f85bf80992e92e40 SHA512 0e44bf866f29dfdae03f0c9ec15dd6d61febeb122440cf6081fc04fcc098e4de169ba2dd4ea678c212fd97b94c5398dbaa77b09c1770b2b1d76f05319ae403e0
32 +DIST thunderbird-102.2.1-cs.xpi 706772 BLAKE2B 0b26a59f7b459837b145d1b92a4e9465a434c5d1cb6ab397db83a9ec98bf089bfc43e8a2b5c504a2cba859de981fb65917b47708f4bb99b8e07e95bbbcea107e SHA512 6959e16e49608ea988cdecb798886a0ee1b5f378f69c8de4033b516735499fff75133f6caf5a3ad455e4c7ca84a02045163cd604ecb449cb00935ce54b4bcf3e
33 +DIST thunderbird-102.2.1-cy.xpi 682669 BLAKE2B 23d17b7ccf0b8ba40396af52debb2b027edd4e633bc9e3b86cd77386919fa39f307bd14e8c3ab05cc0a45d1c8ae7eabd5aa39c98db7e62f0aa1bc9ff57ea8839 SHA512 eecac4e0bcc97182d79813588b42d74621f0af59631e872323f945257db65776f783d7c0f5ebaa56a65543ca89a98e022cfc0b3ce312bcef78933746fcf405c1
34 +DIST thunderbird-102.2.1-da.xpi 668472 BLAKE2B 827dabf445edaf997cfced4c8f012a310d3ad83972c1dce903470302cf247490980281cda541ea816a10533d35a7e3ec5b43ea2a988b8082891ea1d1d63469a2 SHA512 77fdf0a28e2d74d8b502273381ec5d34615d8e1784e960fd5d4c381b1702d2a3be43e7627e955ff6e53d2aea247496a5058d70f1444dbe6eda1f7afbdcad4077
35 +DIST thunderbird-102.2.1-de.xpi 702890 BLAKE2B a50a707074189a75f875f1dbe3ac255ceb2dfe45cbb09001afc86cf44ec9c97170639b3e3423c93a955beb7d7dd03822bee0ca4d4e1d97d5cdca635f3ae4e939 SHA512 7f7a26c216964fa6194ac513bd7e0b698e5b1497591458ec2f8b7dda110957b23533aa2ba7dee0d4dd576bb661764e448f53a3ff704250844c8ee44d7a3d1199
36 +DIST thunderbird-102.2.1-dsb.xpi 716113 BLAKE2B fef710ded898276afff2ed5aafc2b5c17e48592b5eb111354bb1a3d443db38bbb9982cf4e851f923cb81b7e4fba61646861bf153378efcb2dd3baffc32df296a SHA512 c708c1e26aef41dd563571fe7b1aad2fdad3e0317e2bcc0271260de46f364fa338c4215055ace0a54519dd0a91eec8292e9164f13e58c682160bbda23e15c7ee
37 +DIST thunderbird-102.2.1-el.xpi 812220 BLAKE2B 95516daade088ee344efb096f40eda726740d2c9a5f86ca7ee162d4355a082e93eefd31a61f1b232990c89a4f2a33a2783d1095d08ea2c0f7b30ff93f5dd4009 SHA512 9a511c96fb789fca8c5380878ed62442551643e74f31a32f692c3216ac73aec705c5e62b69a813985090ba36ed9c04a862263b75965a6e85a2dfe11c26d23774
38 +DIST thunderbird-102.2.1-en-CA.xpi 642442 BLAKE2B d1f9755cb9717d2f050b0a9f9ab90f4e7beb3f16347c1c2031bd13148d15febc97bd0d147e08ce4328641ef7563775f2ae3925a7d531ed61fe252ae14f539cbf SHA512 1a6f4ef6dd0e4f9993293e6a0153745774eca0428ec2a8ab8f0665f6ebee9a78aea14bbfbc55cb4b87bf73eae6904ebed19fece50c62e86f788a4fc53d5d5840
39 +DIST thunderbird-102.2.1-en-GB.xpi 643348 BLAKE2B 3e573d3165c5c26fa58fe57a6e8b856ba19254f57439fbc35b439d765555bd03eb576244834970c86aa0c60e966b33444b568064e0b995970aebf49d2c2a0775 SHA512 9a6578616ce8976ab97af832890e488d3c9aaf357b4ffe53135824aff6f09268ee764d770876f5aa434b3a506b24f565bb8734c3a0aa9cdaf60065c29411d314
40 +DIST thunderbird-102.2.1-es-AR.xpi 692820 BLAKE2B a5fb6f2d770994a2559779ee1496ec3ac7ab7cee6ef82bdaf97f77ee31a10db69efdcb34f771788427576f048a36b96974271eb6a3ce23de79c2c1f8077bd0eb SHA512 4512c3d2a269d5aa5827fea8d4967738dcecf459766db3a0aa06761a219aea0681e73c5d2133d51978dec06c60e82518c089c1e75ed89823d71fffc68eaa73cf
41 +DIST thunderbird-102.2.1-es-ES.xpi 648799 BLAKE2B 2e86cabdd6f69493d9751935c70e06194519ce0e726d6679e4ebf95223835e9e08a66e0b0059d1ff0058ba6d8fda51ac620cf1ac9b7544bda1b0857a17cfeb08 SHA512 14b6c312273b53381063672f6134ef47865a08583c29f11c1e8b1be8701996855e5509d89cba9d8270b6c386e2dc15c5460eac68a78f24e4c1c85c1d6ce649df
42 +DIST thunderbird-102.2.1-es-MX.xpi 695514 BLAKE2B 6b29d56e0621b48390e6913a7083345103cad19e92e21a03dc8266b13b6a12999b4091eb6fdb1bddb43330978952e420ea36cc7ce2f7c4e2a070dbc919833f6b SHA512 6c95f8369237f2629ece753746f1061ec37d6262d3f5c7472858aed6f9e6d291cb3dc79afa51ca3fc0fe413fe052853f1747991fb829d472a9bc1bf7ff3f28ef
43 +DIST thunderbird-102.2.1-et.xpi 666174 BLAKE2B 1418a9d70a7a0855e0c67ddbd4eb3fa30364e57b80f680c6fbdfa252ff5fdac319c9916fe1b239b92e130c94f65c1891821ed49a4e1d6e8d17fb48a978beb71f SHA512 fdcb218f572443ffaa8887e1f28041a12b9b24b520bbeb6c1c2928481caba9ed9618fe89b53d05adf5cf9f6d0baee8837e12530773d3202fdc06bfe91abd1a42
44 +DIST thunderbird-102.2.1-eu.xpi 677898 BLAKE2B 3da5de50f1db75ca336448127ec25165b30baedccba645913fa43406c39e9f31b9e93f1418149c6ebdc14f7d255e5e1cacb0b22be89881e513bc0cfebf95b0b1 SHA512 d98f8b2afb0a6973362a396dc6f637497ede8ce1d6ba986dfd4daf60e456e0fc1299049b0434ac8456e33ec46e856db12486581597f171ad040351e9afc8a881
45 +DIST thunderbird-102.2.1-fi.xpi 668660 BLAKE2B 5d0017ba20e9861513947dfd984c1119a12feea37b3ccb7270f13c43e019f8a408efcbe59cb7b5e15003c550bd332e69c7b72b282038c1bf2608968cf29b2118 SHA512 720335ba39fceb95cc176499bb214c9c25b8beb52e1a86c4f50fb21c892c58bf883e5d4683306c1975bb83b9de48a1a490c29d113ded8619301dced3cfad2318
46 +DIST thunderbird-102.2.1-fr.xpi 705312 BLAKE2B afa226e5d85c387c1acce6bb099bc4a00ad53dbf553541f7459f3605380a235d3fac3ab751559b4ba2afaa7ce6d8d78f43c8ca52429d3a1fbd847dceb51a3b4c SHA512 5254bad21421cb67de203459477325b3959d57e3a5809634dcf0bf6a9be8a15445f89ef566642eb4b1b22f14bf432b6104c0e0e9c962f8c54c740644d3f02a7f
47 +DIST thunderbird-102.2.1-fy-NL.xpi 687950 BLAKE2B 4fd79f230d25880272235f41428baa2957ae96d3c704cdd748ece9bd70165dc96fb63f13d28724a22d35174fd73991a9165b220f936c684cfc27426ab7173252 SHA512 0a2e78f8a4b19612db54efe636122cfadc9be15ac1e434ba6ae15f05f01db152c56b045c93b381ecf8145db23e8d3f519ee27f629759ef3ec5f41e7f01414ff8
48 +DIST thunderbird-102.2.1-ga-IE.xpi 606319 BLAKE2B 242131fa8bce326aae8f4e32862f3fe2484c701263b5ecd3639e7a043d28433d4aa0fbabcdbc9e425b04ecb8eb14201a1dea6ad3f6cab99b79d3ef1736e0f5ed SHA512 4227d74014d6b382762ae5fa21beddd1094ca2509b3ae309525db6b77b6429ded5dd013e405c7ae4732f6f151ee650a82b6c7c41666159cbc0ce1cfde804e28e
49 +DIST thunderbird-102.2.1-gd.xpi 630866 BLAKE2B 77af416f25e53fa8efcc84c98b696bc599f683093647172f3af634397ea931a248018cb6d89169e7db7f83d4e2a7fd6057357f9633569da54884b398c5d62085 SHA512 1a71a7291d4cb7187694acf606240d584bd4b7983126b34eef8427110acf6e554a02fb9a3463f509676ae39ccbba1a9912adefabd33ebb49fe8f7fc2ba8c7b59
50 +DIST thunderbird-102.2.1-gl.xpi 663759 BLAKE2B 88e39afe4154b42a27bf023a4c9afb5d915dd4674b8e7792d5e58e7d9ca28fdd404525a6f5d37f6ecb8fdfb0e2d5affa55eff14cbbec70dbaded1075c26f9793 SHA512 1b5401f297c3e16dd82ac846b673ab7f750c097d59a54e78ff30ba1d267127c191a7e9b51df5d7de726d17ae4a0338be37c11dc9ab0fb20552ce5869084e4b66
51 +DIST thunderbird-102.2.1-he.xpi 661738 BLAKE2B c9d28bff019e1c55adf9793c7b42d0b2686520b39816d593f58b4cb309261b170a7479c515e2017c02dbd8ecc000c6ddb67e88e796b616042facd122d8731541 SHA512 d450fbe618bbea069922360e885e2a2e70864e03b7bbf02dd3d5f43d5803b062b4367de9f36fa0e841e2f97f77d0185a37d5fc3b11f1f62380a6a12e88ef988b
52 +DIST thunderbird-102.2.1-hr.xpi 661213 BLAKE2B 823a23a8202dfc27405c473de86acdfff94fcc248e99d54f523f3a1b62db003530a25845a0db023f3ac3abc6c5f2f4b7f2dd4a02848e4793e9703a1789859de8 SHA512 670c6e54fe1094aa907dcd58898d253f22c010ea1fd8e3b72e815f4502143f1cbb2c52c02579fc23963769432c62d7f8a4428fa0180eeb694bb2335e9a9195c6
53 +DIST thunderbird-102.2.1-hsb.xpi 712946 BLAKE2B ec3b08ce32e3b3d3c2c285d2fca55ba1206ef0123f1899707906c35fd3be220692d24b234f04ad3a434e3d647d1221ffe57347cda31fcadcf8ff0d0245d578f8 SHA512 50f5a1ccab590ea618ace8c3264175a26b356fb683c4809455d722f9de319ea91bb96fce20ce215b751390dd1cae63cd5b3f30381b6543002b10a520dbac3297
54 +DIST thunderbird-102.2.1-hu.xpi 715823 BLAKE2B d0c19291dff98e33697210ef5b06b8b12241243acb152de018ed975c0ec67619e8f662174d660b582c31ecee78fb5fc563cb94790269303cf4890ad6e976f5de SHA512 6b2fad69d4247d8bf10ed955b68c8788c406eefef48467cffa66906fefc203d691c13286dab1a5e128a523624cc66691c6fff5d9da986f7cccd8a3890ef0a22c
55 +DIST thunderbird-102.2.1-id.xpi 639688 BLAKE2B 2fdfea50798344bfff2fb66c5b88d6e8908627799e0cc943ba0e6991800f5fb68ca1ad3e72a4ef3125ca2b25bd03dfd1c781f55a8ed1befe77bd62add1c1820b SHA512 88db7b33ef9cd19abca5f71ae693fa92949634422b27d76f4028e8a64dec2fd4904160a6edd20fa0da699ccf88a33a132068d203dbf0cb480ec67918a00d284b
56 +DIST thunderbird-102.2.1-is.xpi 679301 BLAKE2B e90303dae3486de9ef6b6b03bb1924b9f2fbc392fc5a0c96dcb17bd01bcdc5d5a3e69ac46795ce28494152f6fd0e86a16a90a4f94dacf8dfd9858e874f532353 SHA512 87f493aed4fe67485a5242bef82a4152f7261578db07ac1aa1425ec3e06d041f9c9bbad4071676c4cd30d855fcfc33f9a6bd3c9ed5a5267dd0c7c6ada8647005
57 +DIST thunderbird-102.2.1-it.xpi 597643 BLAKE2B 4a714d65eb00dc269444a2a15ced0fb6d71ca4469c2a5c1be35886cee37687f8ab2fde643443b5d4872a096b0985eae709e2b993f6d641358c75e756b8233c92 SHA512 26871667226ad4506f42880ad4a9bf2114e530162475c70edaa372a65968875d00587e904574b8785578e0e0c9c053c8bc2f44d869c61dd3fb6caa6070aa5a51
58 +DIST thunderbird-102.2.1-ja.xpi 734595 BLAKE2B 641dd8dabb969f332a384e1c52f3ed68f4178f223288555022c8a30df020ffe4015f4515d0e35940de2f52e7715485b023997fa745909495e8cbffafe11a8966 SHA512 4a9fed720296759a853867c762b8bd28b3d0ecf5284a743af71186c2ff47652c8ef986028397b2b1c64c0a32f969d89cc33ac16a547294ddc7eccb7b2e1e25ef
59 +DIST thunderbird-102.2.1-ka.xpi 749215 BLAKE2B 4f0a78a61edf38a26f14d723f0db06a172f067fc375a71ffd264e2106033b27a6399f44707b3778305b2e2aed32ec091aa937745dbed97c53e372890ce73f44c SHA512 99b4849bea2efe7a50056d17b3043e505cd7488085ea8f13133e63e5de1cb169b51a14bc908dcce3a1a55a4cdd2e7e889a46b5ed07fbe4465474a336f7616c84
60 +DIST thunderbird-102.2.1-kab.xpi 688250 BLAKE2B 84d364501980689deb0bd069d8334a8149b589a474308e55018f55e728731a462803e90387ac753dde7ded0f50b41ec1eb96ca104e3d46729be4ce439cca2d20 SHA512 cddd2ad7a4c94361ee2cf37437591613f883515b73617bc79ef26c4d81fec47b5f879117406e78ca194c3285380f7dae1a3f006feeea9b1ae60be36200013b54
61 +DIST thunderbird-102.2.1-kk.xpi 730864 BLAKE2B 220d5df99aad395b70457f275fea01ee3e5b864072c54c9a36e2f86c151c4a3dd6d27fccc2c271d4c429ea7f0123689a803f0b522807d827da37306e1f503ba9 SHA512 6cf042fbb654e178cb8906df98ae11d33e466b0194774ecf272f45430e1142e62cc41fb079e057b42635c7ae53dd46531a08c05bd10ddde85152d751ccf139bd
62 +DIST thunderbird-102.2.1-ko.xpi 693030 BLAKE2B c905bae92bf8494612f57f8f4aa9cd73a71a66e6c9ecd790e15e8e73f646818cc5c973da8e0409b0145735a3ed8e1b6aec079dd80a7a3d5869731571a4f29bab SHA512 2ea50b6ece8d75203f009d050185867257575ac50fdccbac22bdeeeb87f0d1ec7b2150b7235c0c987a026e70a47aafcf63ced190ce98f765d43af7380be72bd8
63 +DIST thunderbird-102.2.1-lt.xpi 681567 BLAKE2B eaa9bf3d881dad8acef7fb50615f84acdf88795cdf5d6d053ac82269cf425c75e2b22f375dff8781e8b0bbb8298af0ae5ae6a78d3e7e2651345381c938689af7 SHA512 1ff9e5ca556a2c768751b7720444da077e5d5be920ead102d725335793cd40a67dab3cb40b49243345614ea02958de667e3fa1d30b91c9771803508eaaf6a8ad
64 +DIST thunderbird-102.2.1-lv.xpi 609152 BLAKE2B 6f4967d1f6c8c37c0d2954d2b1f79882c7516903fc4515341b7a4b97f4e6c18fbf45c6164ea17c450668ca28f3ce21a5112926d45c525472c905fb4d12f7a1da SHA512 d9cdc204f3b21a16096cf6748d17cdcd3823ca159760db3f8a1f96d2779eff4bfcc77ad379662977ed01042d2d704f1623730238cc513a24ae382b45e75f6dfd
65 +DIST thunderbird-102.2.1-ms.xpi 569973 BLAKE2B 769f35a8b585f7cdd8a16d037af4e99a4a459a5e65eb8c3fb343be41f32bf6326842722f96ac57c7ca863b9bcb2935fb0c18863bd58b2f9b0c75847d0565d706 SHA512 038a4ba119bf17e6c05ebe8e10de3e2f8ee2f793fa6cb5e04ed6460c4323199ded2bacfdb053c408c8d701e64779308960613eafd70c15d1f41c3b1ae22db073
66 +DIST thunderbird-102.2.1-nb-NO.xpi 647802 BLAKE2B 7dfa2304b9cfe31b93a3c11ca173d4c1c9b25a78801abc26c1123e53c03afba32fd1f394d5c7447b1628beec1ed7e4e35ec02c545c289bf819ff776731bb4913 SHA512 25a0a8a8f5db211ab48adf25c1b0b787702d2cac373f30f562f46103e1ac32dd2af2186ab95e42d5fcfcc9217e4f26e855be7aa32f7b31ec508ccd609c27057c
67 +DIST thunderbird-102.2.1-nl.xpi 679619 BLAKE2B dc6a48b8d27d4768d9d83afd979da28b02dfb7dadbc17d0a80dfcf666cf56ad511492935ff49b260d0dfd23778f33bb15c13d7195682cd43ba9d88e7e12d40ec SHA512 bcc6b146ff1b6bfd14bf4e25c0d96e2b8a607c61b95c63e933a0b12915582705399cbe2ed4c698fc98c28e5728914c7c6e830ef9955ceeb472374c6c26475597
68 +DIST thunderbird-102.2.1-nn-NO.xpi 655077 BLAKE2B 5a3d94963aaa58f278a55430767f490cf8bcb3997c4fc9b743de36839d567b59bc56b5a3a1c518ef38f360b97f73e99a8863e8e173637f710c5568aebcda167a SHA512 74ee35dbf115fb88f0f66d86f1eae8ae7830a4d1921a58653b387c7f59a57fd257726a9d499e00f032387eb3b0b24a4ea7e767e3fe6e5e37eb93a1671105bd4c
69 +DIST thunderbird-102.2.1-pa-IN.xpi 644807 BLAKE2B d8e44ba3e404d29044f33484ab6316f05e8cd9c30caca79753323e116e9b0b4a4d2d29b0f0f3220c653a8bd22f61a8215088f57c1a3a54c2ad0fa1b627493999 SHA512 263fded44773747a11772c3be8f218f8d774ca2e5b53c7e3abe7abfa0d7a1b90892893a40547790ed5f83970895ef6f3fed6c622a8c2d7038059674218d365ae
70 +DIST thunderbird-102.2.1-pl.xpi 691781 BLAKE2B f76b2ae62824f2963e779e846b57d5a3c2b22f9ac3ea338092bcb6f15ca6e5df2e6876c1616754d9d063027bec876373d6a2b7b733a3bf6dea0f44730cec1ea0 SHA512 4832bd0b2f68ce6b192b8dccb1735e7341f67df731f97834c04bcabce48a85eefc5a9b90af26acde93f0db638cce8c04e60364c56da9d913a7340f29f1adedf3
71 +DIST thunderbird-102.2.1-pt-BR.xpi 687262 BLAKE2B a0e5801d64c0efc4c8709bf06f69fde1a65e23b3f4625f88aad0aadb9920fab8e2de79c7d6967ec37d6c3c4bbf9d4e0dc4acfe89f7c29c1994b6e862c67ecdb0 SHA512 a62c865a59fdd60498cb223b8d1852e4ab20c7432ca5128d145bb2fabac83178d2e0a6e82ac3bee93435cce15c4919191291e53f4dfa0d8a19ac6732ab2a8fb9
72 +DIST thunderbird-102.2.1-pt-PT.xpi 665589 BLAKE2B 5a7a471071096c0a47929224be82d8ce8bd5af0b6aba60f91bc51cd49a25c0c453de03513d0a69fcc40100165396b8859d02ea8ad0c5dd0bd573426c014fc21e SHA512 566f2f932648e9288b9bcfb75a4d9799dfed94e18cc17c0992a8c587083d1cfbd9aa9398ca4e26f4b9a73b63f6790b8352a2c304d00958bee9cb9ac7ecbe8525
73 +DIST thunderbird-102.2.1-rm.xpi 680752 BLAKE2B 297a20b1611a737463e097860dddeb2c66b49b810c7a3dec8801a6174735935cef9fc4d24121ee7b231648b352fbd9128105a07b3afafd28c1c482b178bb05f5 SHA512 745b8f1aa2946c15aaf331dd207dbd3be5acc725feba47c5135475475db6da2ba58259b4043ce451a9c5b54b1e21bde2482005e33792248d5dee4d068bd3b7a9
74 +DIST thunderbird-102.2.1-ro.xpi 651252 BLAKE2B 20fdca39e7d2decd88f94ab374f74f3332abcdef0fbb0518d8b4107e58ce1f40fe5f139c77e2510252f315832ccf3cf0087e7adaedaa5b03614b483d4c196be5 SHA512 0e9ceac3d12d3a81becaa6fa41aec97691e8e2179417c48c3ee4ae8e8eac45827d2bdd3d1475731d0bda3aa3009d4640b9336499bd894d98c740b504871b5819
75 +DIST thunderbird-102.2.1-ru.xpi 797369 BLAKE2B 89acad260dad71d846d05da21004745992543072edbd36e0e50105e0bf6812b48724c411c88e281d339572f75f1bc7c3eee462e917bef8ac9e65360a6803c60c SHA512 62ca30f53c1682869c45793e0f4a403d26b956219f260072b6fc6eeac9c4118b988e616bfd5d5c1d3cac22ddb71f8b7db24ba7ef6fed6465871684ec32240513
76 +DIST thunderbird-102.2.1-sk.xpi 715673 BLAKE2B 7db6d3163584b8ef8cf97f073480e06b8a78972924451b583ad66fab7398b74e89443d04e1a7ee80ee75530371c54a6567ee35269ba84ced02d676a1300d8156 SHA512 2357be4eec0c7892ab6479dff2b2856643b22449650a6f3c84be0f0693060a4954479d4c723d98c18adee13fa7a2a9be32eacc5bebb20e13bcb39a812f601846
77 +DIST thunderbird-102.2.1-sl.xpi 679736 BLAKE2B 83cab4e69c99c24e1653bae9215ca4b9f3fdf4f47008025054a414a1b3b46781668cb5a52f66e6b57bc6f27e1c91e408a57debbc114f4db32e7c53101883dba6 SHA512 16638e4df392909340d6f1ea1a284035df1112cfd27dd927ee04f321fa6ffdb0f1a93f47462c1242c9b3c1caa96095a094ae8d0e36a740b704e5bc33617f34f8
78 +DIST thunderbird-102.2.1-sq.xpi 690437 BLAKE2B 7b501a37555438d6091bef95d92dbca500d232f00754b1bea3b27f004480496aad885ebd34082f97b951fb21675dc93d32c146ff2d7c75c5a2a2db1bf90d7a07 SHA512 ea416bcb450de42e033c728f1c620a6b250c037e757fd27add62f6c53f7a67e42522e19d0a889ea04c64ca51d2551d1e9e2f7a6ab3118fa23c8298fd2ff620ad
79 +DIST thunderbird-102.2.1-sr.xpi 699187 BLAKE2B 2ba6b3882afabf9806c958fc801908890b70b56677db943ff8069201b3ca9b53a97977f3d967ffe9dab2a4026fbc0f9fa8eb759dc1c6ed48991093f01876d423 SHA512 76bbc071efc26c65630f00d8f0b1964489a33c4da22ed3a32c6cb4c2a8fa54090522cfccedb9bbb9e95e61806f4d62bb67dc617f2f934236dc3d81b36b747b85
80 +DIST thunderbird-102.2.1-sv-SE.xpi 683269 BLAKE2B fecc1619b2b408c1b8f56c9ca9d1744a8e59bed5faa850f68d1c7d2efc333777bd7e42f43081bebbc280bc8266eb584e96cd5c12a119ff16172b1af9dbb9a11b SHA512 684610cc4598d09e3f9db631d0373eddf6a56a61c7adda1b2f658bfec7ce2668c101dc882dcf53a1780b153a5d79bf5f7e289d05ca08163f71bf0b8ce2006b5b
81 +DIST thunderbird-102.2.1-th.xpi 734935 BLAKE2B 373e2f7eb84ce78af057e0650603f1e0e675bee47b29807be715b10e468f1e08f9068c99f54fead1bdff214b10354804173d23e336429e0ee9ace77419ca9aea SHA512 a0de3b0c799e432fefc2c3b7962720b2e4bc759e88ab8f6a7cfdc748ca3f0b2bd4d130ad454db4bc23c60331ebae5dd881fd689bcffcbb7e302e739957b3e2de
82 +DIST thunderbird-102.2.1-tr.xpi 690951 BLAKE2B 1c017489e9b974c8573d4cf918b1337fcc4c69ac51fe80372e64a537ce150514f979714bd96b36ddf4edb74381c6f36fd22f1fe6ea163433b26dc0393a0e434f SHA512 2436f9e8d5617a8cd6e4c885020eeef2c86dec2d777fe9faab9413a11cda07ee1fe72235fa9937e2d911a38e73baedfc139309a57e2daaf2c7b10ed71d7b4009
83 +DIST thunderbird-102.2.1-uk.xpi 790045 BLAKE2B 08d71f78a7e3bd9b7e0c2d0f482b6fe3db3bde9e8749c832eaa3ef3f4507ce7ff75c52048949f398a57303788ff97bda033b825b6ad122193c83ea56002d39ab SHA512 d52ea74907380e1ad9b9ad8a9dc49b8687f59b445f74d7b649d6abf57794df5f83ca3201985a2dab9fc80478461540d1cc40e63e0fc2f4b43d1554dda90fc0d3
84 +DIST thunderbird-102.2.1-uz.xpi 586791 BLAKE2B 0f692b6937d38db766c5ab51a3223f979845f12fd53b040864b9ded4e5554c8f584ac4ecd20b00961c2197411766f351da0f90a6850e1912a466a24e5e1e10b5 SHA512 68a9d8d253c75da028a6e155d64fcef550b00cdb696602a824fbe53566c94d163b25ca6743721854b82d9d61336a27341528f1d0acdb8ea05db044006cb323c7
85 +DIST thunderbird-102.2.1-vi.xpi 721452 BLAKE2B d7a225305a51d837a019d6679d0f6c6bae08edcf18b0e44a448e1173ff17094702d381c3a844f05165c08b0b589b8666e95825480a1f16f5ce62f93a4c9575c2 SHA512 5cc7b7a3b314cde1337af6bb5ce73620a7880a790f96b2be1766439033c806f201dc0e97f74f7bfdd410ea9cf985faf5f1dee2d3a512e48d378faa673ec2b5f8
86 +DIST thunderbird-102.2.1-zh-CN.xpi 718569 BLAKE2B 83d586f5ac233d8fc7b58e90fe43d006a5342ac5ea916ff90e733465b93dcaac1102b22ba509cb13bbf20bdf85cb6a273252862baaf386de7d43c81412ed56c9 SHA512 0c9d1b26cd3f127aa2d308375088f623d1d84b2bef5b6ea949aa28690d0567089a793e1aadf6baf1595845c9836c4589bb3b096543121947eabf735a7a576ff5
87 +DIST thunderbird-102.2.1-zh-TW.xpi 723809 BLAKE2B ecf4e2a43b96ac2c4b1962522ee5d7dbbba04899dba8965ca19cc6227be7c22d1268889e7fc180155c52ca5eb8eca55adadae9d708b6a87427e003f7bdeb9ce0 SHA512 3be070c1acf7606b4fa124a4285454f0e3d5d2c4db4c1da22092bcbbeaa8e0f8a256a86568ef2582bd735fd4c44196dfd6fb7514aa27528afa2d309af043e554
88 +DIST thunderbird-102.2.1.source.tar.xz 501438680 BLAKE2B 4d37c3fba8fc4e09fbc53c5153de1fa18dda621428c38079be827f015f6afc1a6241e3cb4f5d65fcac2128f1dc4ea336c185aeca35e67f4a9acaf529808dba93 SHA512 7b69cfffb5de56690cbbd97f6b627733072dee498a15adfece990f9019df8df948762ce8eb2ca2d91ef12ff56262fb1905476d8a477aed70bc71cd2f9f986ea4
89 DIST thunderbird-91.13.0-af.xpi 561879 BLAKE2B 69a959c61b28e7ee9733db245ffc91ebefa3396c1561b933b1dbfe1135ff88b3c5199be2d29e43e404e63f0016fa05838c7612823727fd061ad8f0407a762d2e SHA512 bd52e0f660db3046c8641038451e439c79f3961df342b69365faa9b8f2fb5d8e165a8b9249989524cd4e0bdc5867c872ff6ddbe5aad1c88bc0a869d4cf16e9c9
90 DIST thunderbird-91.13.0-ar.xpi 665731 BLAKE2B 3302223e35bef747a8c04a2cb25c1bdc6482674fff85bd4c6b278ff9be0a1f72615d075e13c185dce6296331bdde42bd487d9fda1f47f8fcad8806dfb9882009 SHA512 b510f1277a4a558f9e2552bccfa6f988c62b47366665c934bb173cb58480104b026f487e1b1d778cd25990a14b2a4b39b6f78852c3d0b220bf31e8f021ece2a0
91 DIST thunderbird-91.13.0-ast.xpi 580513 BLAKE2B 811bde79b93aad145f92dd7df9a998622b5d097c13edd6195c67f83bfdd8526dacdd29f35c2a33652997659b68ea2d745714b8b521236e6f6ec91ab324ddf994 SHA512 2f229377f089e383badebc251f40d6fd7171f3c6e4dfaa3eb2cc205cea0de6495f42efd940c6db8976c8c60997229c61b876f428b8a71ca2fc43590ba43c4cf2
92
93 diff --git a/mail-client/thunderbird/thunderbird-102.2.1.ebuild b/mail-client/thunderbird/thunderbird-102.2.1.ebuild
94 new file mode 100644
95 index 000000000000..5b45a09b43e3
96 --- /dev/null
97 +++ b/mail-client/thunderbird/thunderbird-102.2.1.ebuild
98 @@ -0,0 +1,1169 @@
99 +# Copyright 1999-2022 Gentoo Authors
100 +# Distributed under the terms of the GNU General Public License v2
101 +
102 +EAPI=8
103 +
104 +FIREFOX_PATCHSET="firefox-102esr-patches-02j.tar.xz"
105 +
106 +LLVM_MAX_SLOT=14
107 +
108 +PYTHON_COMPAT=( python3_{8..11} )
109 +PYTHON_REQ_USE="ncurses,sqlite,ssl"
110 +
111 +WANT_AUTOCONF="2.1"
112 +
113 +VIRTUALX_REQUIRED="pgo"
114 +
115 +MOZ_ESR=
116 +
117 +MOZ_PV=${PV}
118 +MOZ_PV_SUFFIX=
119 +if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
120 + MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
121 +
122 + # Convert the ebuild version to the upstream Mozilla version
123 + MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
124 + MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
125 + MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
126 +fi
127 +
128 +if [[ -n ${MOZ_ESR} ]] ; then
129 + # ESR releases have slightly different version numbers
130 + MOZ_PV="${MOZ_PV}esr"
131 +fi
132 +
133 +MOZ_PN="${PN%-bin}"
134 +MOZ_P="${MOZ_PN}-${MOZ_PV}"
135 +MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
136 +MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
137 +
138 +inherit autotools check-reqs desktop flag-o-matic gnome2-utils \
139 + llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \
140 + virtualx xdg
141 +
142 +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
143 +
144 +if [[ ${PV} == *_rc* ]] ; then
145 + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
146 +fi
147 +
148 +PATCH_URIS=(
149 + https://dev.gentoo.org/~{juippis,whissi,slashbeast}/mozilla/patchsets/${FIREFOX_PATCHSET}
150 +)
151 +
152 +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
153 + ${PATCH_URIS[@]}"
154 +
155 +DESCRIPTION="Thunderbird Mail Client"
156 +HOMEPAGE="https://www.thunderbird.net/"
157 +
158 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
159 +
160 +SLOT="0"
161 +LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
162 +
163 +IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
164 +IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux"
165 +IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp"
166 +IUSE+=" wayland wifi"
167 +
168 +# Thunderbird-only USE flags.
169 +IUSE+=" +system-librnp"
170 +
171 +REQUIRED_USE="debug? ( !system-av1 )
172 + pgo? ( lto )
173 + wifi? ( dbus )"
174 +
175 +# Thunderbird-only dependencies.
176 +TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2
177 + selinux? ( sec-policy/selinux-thunderbird )
178 + !system-librnp? ( dev-libs/jsoncpp )
179 + system-librnp? ( dev-util/librnp )"
180 +BDEPEND="${PYTHON_DEPS}
181 + app-arch/unzip
182 + app-arch/zip
183 + >=dev-util/cbindgen-0.24.3
184 + net-libs/nodejs
185 + virtual/pkgconfig
186 + virtual/rust
187 + || (
188 + (
189 + sys-devel/clang:14
190 + sys-devel/llvm:14
191 + clang? (
192 + =sys-devel/lld-14*
193 + pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] )
194 + )
195 + )
196 + (
197 + sys-devel/clang:13
198 + sys-devel/llvm:13
199 + clang? (
200 + =sys-devel/lld-13*
201 + pgo? ( =sys-libs/compiler-rt-sanitizers-13*[profile] )
202 + )
203 + )
204 + )
205 + amd64? ( >=dev-lang/nasm-2.14 )
206 + x86? ( >=dev-lang/nasm-2.14 )"
207 +
208 +COMMON_DEPEND="${TB_ONLY_DEPEND}
209 + dev-libs/atk
210 + dev-libs/expat
211 + dev-libs/glib:2
212 + dev-libs/libffi:=
213 + >=dev-libs/nss-3.79
214 + >=dev-libs/nspr-4.34
215 + media-libs/alsa-lib
216 + media-libs/fontconfig
217 + media-libs/freetype
218 + media-libs/mesa
219 + media-video/ffmpeg
220 + sys-libs/zlib
221 + virtual/freedesktop-icon-theme
222 + virtual/opengl
223 + x11-libs/cairo[X]
224 + x11-libs/gdk-pixbuf
225 + x11-libs/gtk+:3[X]
226 + x11-libs/libX11
227 + x11-libs/libXcomposite
228 + x11-libs/libXdamage
229 + x11-libs/libXext
230 + x11-libs/libXfixes
231 + x11-libs/libXrandr
232 + x11-libs/libXtst
233 + x11-libs/libxcb:=
234 + x11-libs/libxkbcommon[X]
235 + x11-libs/pango
236 + x11-libs/pixman
237 + dbus? (
238 + dev-libs/dbus-glib
239 + sys-apps/dbus
240 + )
241 + jack? ( virtual/jack )
242 + libproxy? ( net-libs/libproxy )
243 + sndio? ( >=media-sound/sndio-1.8.0-r1 )
244 + system-av1? (
245 + >=media-libs/dav1d-1.0.0:=
246 + >=media-libs/libaom-1.0.0:=
247 + )
248 + system-harfbuzz? (
249 + >=media-gfx/graphite2-1.3.13
250 + >=media-libs/harfbuzz-2.8.1:0=
251 + )
252 + system-icu? ( >=dev-libs/icu-71.1:= )
253 + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
254 + system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] )
255 + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
256 + system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
257 + system-webp? ( >=media-libs/libwebp-1.1.0:0= )
258 + wayland? (
259 + x11-libs/gtk+:3[wayland]
260 + x11-libs/libdrm
261 + x11-libs/libxkbcommon[wayland]
262 + )
263 + wifi? (
264 + kernel_linux? (
265 + dev-libs/dbus-glib
266 + net-misc/networkmanager
267 + sys-apps/dbus
268 + )
269 + )"
270 +
271 +RDEPEND="${COMMON_DEPEND}
272 + jack? ( virtual/jack )
273 + openh264? ( media-libs/openh264:*[plugin] )
274 + pulseaudio? (
275 + || (
276 + media-sound/pulseaudio
277 + >=media-sound/apulse-0.1.12-r4
278 + )
279 + )"
280 +
281 +DEPEND="${COMMON_DEPEND}
282 + x11-libs/libICE
283 + x11-libs/libSM
284 + pulseaudio? (
285 + || (
286 + media-sound/pulseaudio
287 + >=media-sound/apulse-0.1.12-r4[sdk]
288 + )
289 + )"
290 +
291 +S="${WORKDIR}/${PN}-${PV%_*}"
292 +
293 +llvm_check_deps() {
294 + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
295 + einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
296 + return 1
297 + fi
298 +
299 + if use clang ; then
300 + if ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then
301 + einfo "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
302 + return 1
303 + fi
304 +
305 + if use pgo ; then
306 + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
307 + einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
308 + return 1
309 + fi
310 + fi
311 + fi
312 +
313 + einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
314 +}
315 +
316 +MOZ_LANGS=(
317 + af ar ast be bg br ca cak cs cy da de dsb
318 + el en-CA en-GB en-US es-AR es-ES es-MX et eu
319 + fi fr fy-NL ga-IE gd gl he hr hsb hu
320 + id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
321 + pa-IN pl pt-BR pt-PT rm ro ru
322 + sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
323 +)
324 +
325 +mozilla_set_globals() {
326 + # https://bugs.gentoo.org/587334
327 + local MOZ_TOO_REGIONALIZED_FOR_L10N=(
328 + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
329 + )
330 +
331 + local lang xflag
332 + for lang in "${MOZ_LANGS[@]}" ; do
333 + # en and en_US are handled internally
334 + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
335 + continue
336 + fi
337 +
338 + # strip region subtag if $lang is in the list
339 + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
340 + xflag=${lang%%-*}
341 + else
342 + xflag=${lang}
343 + fi
344 +
345 + SRC_URI+=" l10n_${xflag/[_@]/-}? ("
346 + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi"
347 + SRC_URI+=" )"
348 + IUSE+=" l10n_${xflag/[_@]/-}"
349 + done
350 +}
351 +mozilla_set_globals
352 +
353 +moz_clear_vendor_checksums() {
354 + debug-print-function ${FUNCNAME} "$@"
355 +
356 + if [[ ${#} -ne 1 ]] ; then
357 + die "${FUNCNAME} requires exact one argument"
358 + fi
359 +
360 + einfo "Clearing cargo checksums for ${1} ..."
361 +
362 + sed -i \
363 + -e 's/\("files":{\)[^}]*/\1/' \
364 + "${S}"/third_party/rust/${1}/.cargo-checksum.json \
365 + || die
366 +}
367 +
368 +moz_install_xpi() {
369 + debug-print-function ${FUNCNAME} "$@"
370 +
371 + if [[ ${#} -lt 2 ]] ; then
372 + die "${FUNCNAME} requires at least two arguments"
373 + fi
374 +
375 + local DESTDIR=${1}
376 + shift
377 +
378 + insinto "${DESTDIR}"
379 +
380 + local emid xpi_file xpi_tmp_dir
381 + for xpi_file in "${@}" ; do
382 + emid=
383 + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
384 +
385 + # Unpack XPI
386 + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
387 +
388 + # Determine extension ID
389 + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
390 + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
391 + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
392 + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
393 + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
394 + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
395 + else
396 + die "failed to determine extension id"
397 + fi
398 +
399 + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
400 + newins "${xpi_file}" "${emid}.xpi"
401 + done
402 +}
403 +
404 +mozconfig_add_options_ac() {
405 + debug-print-function ${FUNCNAME} "$@"
406 +
407 + if [[ ${#} -lt 2 ]] ; then
408 + die "${FUNCNAME} requires at least two arguments"
409 + fi
410 +
411 + local reason=${1}
412 + shift
413 +
414 + local option
415 + for option in ${@} ; do
416 + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
417 + done
418 +}
419 +
420 +mozconfig_add_options_mk() {
421 + debug-print-function ${FUNCNAME} "$@"
422 +
423 + if [[ ${#} -lt 2 ]] ; then
424 + die "${FUNCNAME} requires at least two arguments"
425 + fi
426 +
427 + local reason=${1}
428 + shift
429 +
430 + local option
431 + for option in ${@} ; do
432 + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
433 + done
434 +}
435 +
436 +mozconfig_use_enable() {
437 + debug-print-function ${FUNCNAME} "$@"
438 +
439 + if [[ ${#} -lt 1 ]] ; then
440 + die "${FUNCNAME} requires at least one arguments"
441 + fi
442 +
443 + local flag=$(use_enable "${@}")
444 + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
445 +}
446 +
447 +mozconfig_use_with() {
448 + debug-print-function ${FUNCNAME} "$@"
449 +
450 + if [[ ${#} -lt 1 ]] ; then
451 + die "${FUNCNAME} requires at least one arguments"
452 + fi
453 +
454 + local flag=$(use_with "${@}")
455 + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
456 +}
457 +
458 +pkg_pretend() {
459 + if [[ ${MERGE_TYPE} != binary ]] ; then
460 + if use pgo ; then
461 + if ! has usersandbox $FEATURES ; then
462 + die "You must enable usersandbox as X server can not run as root!"
463 + fi
464 + fi
465 +
466 + # Ensure we have enough disk space to compile
467 + if use pgo || use lto || use debug ; then
468 + CHECKREQS_DISK_BUILD="13500M"
469 + else
470 + CHECKREQS_DISK_BUILD="6600M"
471 + fi
472 +
473 + check-reqs_pkg_pretend
474 + fi
475 +}
476 +
477 +pkg_setup() {
478 + if [[ ${MERGE_TYPE} != binary ]] ; then
479 + if use pgo ; then
480 + if ! has userpriv ${FEATURES} ; then
481 + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!"
482 + fi
483 + fi
484 +
485 + # Ensure we have enough disk space to compile
486 + if use pgo || use lto || use debug ; then
487 + CHECKREQS_DISK_BUILD="13500M"
488 + else
489 + CHECKREQS_DISK_BUILD="6400M"
490 + fi
491 +
492 + check-reqs_pkg_setup
493 +
494 + llvm_pkg_setup
495 +
496 + if use clang && use lto ; then
497 + local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }')
498 + [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}")
499 + [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!"
500 +
501 + local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }')
502 + [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
503 + [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!"
504 +
505 + if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then
506 + eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
507 + eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:"
508 + eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version"
509 + eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version"
510 + eerror " - Build ${CATEGORY}/${PN} without USE=lto"
511 + eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole "
512 + eerror " llvm/clang/lld/rust chain depending on your @world updates)"
513 + die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
514 + fi
515 + fi
516 +
517 + python-any-r1_pkg_setup
518 +
519 + # Avoid PGO profiling problems due to enviroment leakage
520 + # These should *always* be cleaned up anyway
521 + unset \
522 + DBUS_SESSION_BUS_ADDRESS \
523 + DISPLAY \
524 + ORBIT_SOCKETDIR \
525 + SESSION_MANAGER \
526 + XAUTHORITY \
527 + XDG_CACHE_HOME \
528 + XDG_SESSION_COOKIE
529 +
530 + # Build system is using /proc/self/oom_score_adj, bug #604394
531 + addpredict /proc/self/oom_score_adj
532 +
533 + if use pgo ; then
534 + # Allow access to GPU during PGO run
535 + local ati_cards mesa_cards nvidia_cards render_cards
536 + shopt -s nullglob
537 +
538 + ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
539 + if [[ -n "${ati_cards}" ]] ; then
540 + addpredict "${ati_cards}"
541 + fi
542 +
543 + mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
544 + if [[ -n "${mesa_cards}" ]] ; then
545 + addpredict "${mesa_cards}"
546 + fi
547 +
548 + nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
549 + if [[ -n "${nvidia_cards}" ]] ; then
550 + addpredict "${nvidia_cards}"
551 + fi
552 +
553 + render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
554 + if [[ -n "${render_cards}" ]] ; then
555 + addpredict "${render_cards}"
556 + fi
557 +
558 + shopt -u nullglob
559 + fi
560 +
561 + if ! mountpoint -q /dev/shm ; then
562 + # If /dev/shm is not available, configure is known to fail with
563 + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
564 + ewarn "/dev/shm is not mounted -- expect build failures!"
565 + fi
566 +
567 + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
568 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
569 + # get your own set of keys.
570 + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
571 + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
572 + fi
573 +
574 + if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
575 + MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
576 + fi
577 +
578 + # Mozilla API keys (see https://location.services.mozilla.com/api)
579 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
580 + # get your own set of keys.
581 + if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
582 + MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
583 + fi
584 +
585 + # Ensure we use C locale when building, bug #746215
586 + export LC_ALL=C
587 + fi
588 +}
589 +
590 +src_unpack() {
591 + local _lp_dir="${WORKDIR}/language_packs"
592 + local _src_file
593 +
594 + if [[ ! -d "${_lp_dir}" ]] ; then
595 + mkdir "${_lp_dir}" || die
596 + fi
597 +
598 + for _src_file in ${A} ; do
599 + if [[ ${_src_file} == *.xpi ]]; then
600 + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
601 + else
602 + unpack ${_src_file}
603 + fi
604 + done
605 +}
606 +
607 +src_prepare() {
608 + if use lto; then
609 + rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
610 + fi
611 +
612 + eapply "${WORKDIR}/firefox-patches"
613 +
614 + # Allow user to apply any additional patches without modifing ebuild
615 + eapply_user
616 +
617 + # Make cargo respect MAKEOPTS
618 + export CARGO_BUILD_JOBS="$(makeopts_jobs)"
619 +
620 + # Make LTO respect MAKEOPTS
621 + sed -i \
622 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
623 + "${S}"/build/moz.configure/lto-pgo.configure \
624 + || die "sed failed to set num_cores"
625 +
626 + # Make ICU respect MAKEOPTS
627 + sed -i \
628 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
629 + "${S}"/intl/icu_sources_data.py \
630 + || die "sed failed to set num_cores"
631 +
632 + # sed-in toolchain prefix
633 + sed -i \
634 + -e "s/objdump/${CHOST}-objdump/" \
635 + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \
636 + || die "sed failed to set toolchain prefix"
637 +
638 + sed -i \
639 + -e 's/ccache_stats = None/return None/' \
640 + "${S}"/python/mozbuild/mozbuild/controller/building.py \
641 + || die "sed failed to disable ccache stats call"
642 +
643 + einfo "Removing pre-built binaries ..."
644 + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
645 +
646 + # Clearing checksums where we have applied patches
647 + moz_clear_vendor_checksums audioipc
648 + moz_clear_vendor_checksums audioipc-client
649 + moz_clear_vendor_checksums audioipc-server
650 +
651 + # Create build dir
652 + BUILD_DIR="${WORKDIR}/${PN}_build"
653 + mkdir -p "${BUILD_DIR}" || die
654 +
655 + # Write API keys to disk
656 + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
657 + echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die
658 + echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
659 +
660 + xdg_environment_reset
661 +}
662 +
663 +src_configure() {
664 + # Show flags set at the beginning
665 + einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
666 + einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
667 + einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
668 + einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
669 + einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
670 +
671 + local have_switched_compiler=
672 + if use clang && ! tc-is-clang ; then
673 + # Force clang
674 + einfo "Enforcing the use of clang due to USE=clang ..."
675 + have_switched_compiler=yes
676 + AR=llvm-ar
677 + AS=llvm-as
678 + CC=${CHOST}-clang
679 + CXX=${CHOST}-clang++
680 + NM=llvm-nm
681 + RANLIB=llvm-ranlib
682 + elif ! use clang && ! tc-is-gcc ; then
683 + # Force gcc
684 + have_switched_compiler=yes
685 + einfo "Enforcing the use of gcc due to USE=-clang ..."
686 + AR=gcc-ar
687 + CC=${CHOST}-gcc
688 + CXX=${CHOST}-g++
689 + NM=gcc-nm
690 + RANLIB=gcc-ranlib
691 + fi
692 +
693 + if [[ -n "${have_switched_compiler}" ]] ; then
694 + # Because we switched active compiler we have to ensure
695 + # that no unsupported flags are set
696 + strip-unsupported-flags
697 + fi
698 +
699 + # Ensure we use correct toolchain
700 + export HOST_CC="$(tc-getBUILD_CC)"
701 + export HOST_CXX="$(tc-getBUILD_CXX)"
702 + tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
703 +
704 + # Pass the correct toolchain paths through cbindgen
705 + if tc-is-cross-compiler ; then
706 + export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}"
707 + fi
708 +
709 + # Set MOZILLA_FIVE_HOME
710 + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
711 +
712 + # python/mach/mach/mixin/process.py fails to detect SHELL
713 + export SHELL="${EPREFIX}/bin/bash"
714 +
715 + # Set state path
716 + export MOZBUILD_STATE_PATH="${BUILD_DIR}"
717 +
718 + # Set MOZCONFIG
719 + export MOZCONFIG="${S}/.mozconfig"
720 +
721 + # Initialize MOZCONFIG
722 + mozconfig_add_options_ac '' --enable-application=comm/mail
723 +
724 + # Set Gentoo defaults
725 + export MOZILLA_OFFICIAL=1
726 +
727 + mozconfig_add_options_ac 'Gentoo default' \
728 + --allow-addon-sideload \
729 + --disable-cargo-incremental \
730 + --disable-crashreporter \
731 + --disable-gpsd \
732 + --disable-install-strip \
733 + --disable-parental-controls \
734 + --disable-strip \
735 + --disable-updater \
736 + --enable-js-shell \
737 + --enable-negotiateauth \
738 + --enable-new-pass-manager \
739 + --enable-official-branding \
740 + --enable-release \
741 + --enable-system-ffi \
742 + --enable-system-pixman \
743 + --host="${CBUILD:-${CHOST}}" \
744 + --libdir="${EPREFIX}/usr/$(get_libdir)" \
745 + --prefix="${EPREFIX}/usr" \
746 + --target="${CHOST}" \
747 + --without-ccache \
748 + --without-wasm-sandboxed-libraries \
749 + --with-intl-api \
750 + --with-libclang-path="$(llvm-config --libdir)" \
751 + --with-system-nspr \
752 + --with-system-nss \
753 + --with-system-zlib \
754 + --with-toolchain-prefix="${CHOST}-" \
755 + --with-unsigned-addon-scopes=app,system \
756 + --x-includes="${ESYSROOT}/usr/include" \
757 + --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
758 +
759 + # Set update channel
760 + local update_channel=release
761 + [[ -n ${MOZ_ESR} ]] && update_channel=esr
762 + mozconfig_add_options_ac '' --update-channel=${update_channel}
763 +
764 + if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
765 + mozconfig_add_options_ac '' --enable-rust-simd
766 + fi
767 +
768 + # For future keywording: This is currently (97.0) only supported on:
769 + # amd64, arm, arm64 & x86.
770 + # Might want to flip the logic around if Firefox is to support more arches.
771 + if use ppc64; then
772 + mozconfig_add_options_ac '' --disable-sandbox
773 + else
774 + mozconfig_add_options_ac '' --enable-sandbox
775 + fi
776 +
777 + if [[ -s "${S}/api-google.key" ]] ; then
778 + local key_origin="Gentoo default"
779 + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
780 + key_origin="User value"
781 + fi
782 +
783 + mozconfig_add_options_ac "${key_origin}" \
784 + --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
785 + else
786 + einfo "Building without Google API key ..."
787 + fi
788 +
789 + if [[ -s "${S}/api-location.key" ]] ; then
790 + local key_origin="Gentoo default"
791 + if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
792 + key_origin="User value"
793 + fi
794 +
795 + mozconfig_add_options_ac "${key_origin}" \
796 + --with-google-location-service-api-keyfile="${S}/api-location.key"
797 + else
798 + einfo "Building without Location API key ..."
799 + fi
800 +
801 + if [[ -s "${S}/api-mozilla.key" ]] ; then
802 + local key_origin="Gentoo default"
803 + if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
804 + key_origin="User value"
805 + fi
806 +
807 + mozconfig_add_options_ac "${key_origin}" \
808 + --with-mozilla-api-keyfile="${S}/api-mozilla.key"
809 + else
810 + einfo "Building without Mozilla API key ..."
811 + fi
812 +
813 + mozconfig_use_with system-av1
814 + mozconfig_use_with system-harfbuzz
815 + mozconfig_use_with system-harfbuzz system-graphite2
816 + mozconfig_use_with system-icu
817 + mozconfig_use_with system-jpeg
818 + mozconfig_use_with system-libevent
819 + mozconfig_use_with system-libvpx
820 + mozconfig_use_with system-png
821 + mozconfig_use_with system-webp
822 +
823 + if use system-librnp; then
824 + mozconfig_add_options_ac "+system-librnp" --enable-compile-environment
825 + mozconfig_use_with system-librnp
826 + fi
827 +
828 + mozconfig_use_enable dbus
829 + mozconfig_use_enable libproxy
830 +
831 + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
832 +
833 + if use hardened ; then
834 + mozconfig_add_options_ac "+hardened" --enable-hardening
835 + append-ldflags "-Wl,-z,relro -Wl,-z,now"
836 + fi
837 +
838 + local myaudiobackends=""
839 + use jack && myaudiobackends+="jack,"
840 + use sndio && myaudiobackends+="sndio,"
841 + use pulseaudio && myaudiobackends+="pulseaudio,"
842 + ! use pulseaudio && myaudiobackends+="alsa,"
843 +
844 + mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}"
845 +
846 + mozconfig_use_enable wifi necko-wifi
847 +
848 + if use wayland ; then
849 + mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland
850 + else
851 + mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3
852 + fi
853 +
854 + if use lto ; then
855 + if use clang ; then
856 + # Upstream only supports lld when using clang
857 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
858 +
859 + mozconfig_add_options_ac '+lto' --enable-lto=cross
860 +
861 + else
862 + # ThinLTO is currently broken, see bmo#1644409
863 + mozconfig_add_options_ac '+lto' --enable-lto=full
864 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
865 + fi
866 +
867 + if use pgo ; then
868 + mozconfig_add_options_ac '+pgo' MOZ_PGO=1
869 +
870 + if use clang ; then
871 + # Used in build/pgo/profileserver.py
872 + export LLVM_PROFDATA="llvm-profdata"
873 + fi
874 + fi
875 + else
876 + # Avoid auto-magic on linker
877 + if use clang ; then
878 + # This is upstream's default
879 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
880 + else
881 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
882 + fi
883 + fi
884 +
885 + # LTO flag was handled via configure
886 + filter-flags '-flto*'
887 +
888 + mozconfig_use_enable debug
889 + if use debug ; then
890 + mozconfig_add_options_ac '+debug' --disable-optimize
891 + else
892 + if is-flag '-g*' ; then
893 + if use clang ; then
894 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
895 + else
896 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
897 + fi
898 + else
899 + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
900 + fi
901 +
902 + if is-flag '-O0' ; then
903 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
904 + elif is-flag '-O4' ; then
905 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
906 + elif is-flag '-O3' ; then
907 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
908 + elif is-flag '-O1' ; then
909 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
910 + elif is-flag '-Os' ; then
911 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
912 + else
913 + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
914 + fi
915 + fi
916 +
917 + # Debug flag was handled via configure
918 + filter-flags '-g*'
919 +
920 + # Optimization flag was handled via configure
921 + filter-flags '-O*'
922 +
923 + # Modifications to better support ARM, bug #553364
924 + if use cpu_flags_arm_neon ; then
925 + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
926 +
927 + if ! tc-is-clang ; then
928 + # thumb options aren't supported when using clang, bug 666966
929 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \
930 + --with-thumb=yes \
931 + --with-thumb-interwork=no
932 + fi
933 + fi
934 +
935 + if [[ ${CHOST} == armv*h* ]] ; then
936 + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
937 +
938 + if ! use system-libvpx ; then
939 + sed -i \
940 + -e "s|softfp|hard|" \
941 + "${S}"/media/libvpx/moz.build \
942 + || die
943 + fi
944 + fi
945 +
946 + if use clang ; then
947 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
948 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
949 + # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64')
950 + local disable_elf_hack=
951 + if use amd64 ; then
952 + disable_elf_hack=yes
953 + elif use x86 ; then
954 + disable_elf_hack=yes
955 + elif use arm ; then
956 + disable_elf_hack=yes
957 + fi
958 +
959 + if [[ -n ${disable_elf_hack} ]] ; then
960 + mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack
961 + fi
962 + elif tc-is-gcc ; then
963 + if ver_test $(gcc-fullversion) -ge 10 ; then
964 + einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..."
965 + append-cxxflags -fno-tree-loop-vectorize
966 + fi
967 + fi
968 +
969 + # Additional ARCH support
970 + case "${ARCH}" in
971 + arm)
972 + # Reduce the memory requirements for linking
973 + if use clang ; then
974 + # Nothing to do
975 + :;
976 + elif use lto ; then
977 + append-ldflags -Wl,--no-keep-memory
978 + else
979 + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
980 + fi
981 + ;;
982 + esac
983 +
984 + if ! use elibc_glibc ; then
985 + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
986 + fi
987 +
988 + # Allow elfhack to work in combination with unstripped binaries
989 + # when they would normally be larger than 2GiB.
990 + append-ldflags "-Wl,--compress-debug-sections=zlib"
991 +
992 + # Make revdep-rebuild.sh happy; Also required for musl
993 + append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
994 +
995 + # Pass $MAKEOPTS to build system
996 + export MOZ_MAKE_FLAGS="${MAKEOPTS}"
997 +
998 + # Use system's Python environment
999 + PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
1000 +
1001 + if use system-python-libs; then
1002 + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system"
1003 + else
1004 + export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
1005 + fi
1006 +
1007 + # Disable notification when build system has finished
1008 + export MOZ_NOSPAM=1
1009 +
1010 + # Portage sets XARGS environment variable to "xargs -r" by default which
1011 + # breaks build system's check_prog() function which doesn't support arguments
1012 + mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
1013 +
1014 + # Set build dir
1015 + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
1016 +
1017 + # Show flags we will use
1018 + einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
1019 + einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
1020 + einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
1021 + einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
1022 + einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
1023 +
1024 + # Handle EXTRA_CONF and show summary
1025 + local ac opt hash reason
1026 +
1027 + # Apply EXTRA_ECONF entries to $MOZCONFIG
1028 + if [[ -n ${EXTRA_ECONF} ]] ; then
1029 + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
1030 + for opt in "${ac[@]}"; do
1031 + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
1032 + done
1033 + fi
1034 +
1035 + echo
1036 + echo "=========================================================="
1037 + echo "Building ${PF} with the following configuration"
1038 + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
1039 + [[ -z ${hash} || ${hash} == \# ]] \
1040 + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
1041 + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
1042 + done
1043 + echo "=========================================================="
1044 + echo
1045 +
1046 + ./mach configure || die
1047 +}
1048 +
1049 +src_compile() {
1050 + local virtx_cmd=
1051 +
1052 + if use pgo ; then
1053 + virtx_cmd=virtx
1054 +
1055 + # Reset and cleanup environment variables used by GNOME/XDG
1056 + gnome2_environment_reset
1057 +
1058 + addpredict /root
1059 + fi
1060 +
1061 + local -x GDK_BACKEND=x11
1062 +
1063 + ${virtx_cmd} ./mach build --verbose \
1064 + || die
1065 +}
1066 +
1067 +src_install() {
1068 + # xpcshell is getting called during install
1069 + pax-mark m \
1070 + "${BUILD_DIR}"/dist/bin/xpcshell \
1071 + "${BUILD_DIR}"/dist/bin/${PN} \
1072 + "${BUILD_DIR}"/dist/bin/plugin-container
1073 +
1074 + DESTDIR="${D}" ./mach install || die
1075 +
1076 + # Upstream cannot ship symlink but we can (bmo#658850)
1077 + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
1078 + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
1079 +
1080 + # Don't install llvm-symbolizer from sys-devel/llvm package
1081 + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
1082 + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
1083 + fi
1084 +
1085 + # Install policy (currently only used to disable application updates)
1086 + insinto "${MOZILLA_FIVE_HOME}/distribution"
1087 + newins "${FILESDIR}"/distribution.ini distribution.ini
1088 + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
1089 +
1090 + # Install system-wide preferences
1091 + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
1092 + insinto "${PREFS_DIR}"
1093 + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
1094 +
1095 + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
1096 +
1097 + # Set dictionary path to use system hunspell
1098 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
1099 + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
1100 + EOF
1101 +
1102 + # Force hwaccel prefs if USE=hwaccel is enabled
1103 + if use hwaccel ; then
1104 + cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
1105 + >>"${GENTOO_PREFS}" \
1106 + || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
1107 +
1108 + if use wayland; then
1109 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs"
1110 + pref("gfx.x11-egl.force-enabled", false);
1111 + EOF
1112 + else
1113 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs"
1114 + pref("gfx.x11-egl.force-enabled", true);
1115 + EOF
1116 + fi
1117 + fi
1118 +
1119 + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
1120 + if use system-harfbuzz ; then
1121 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
1122 + sticky_pref("gfx.font_rendering.graphite.enabled", true);
1123 + EOF
1124 + fi
1125 +
1126 + # Install language packs
1127 + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
1128 + if [[ -n "${langpacks}" ]] ; then
1129 + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
1130 + fi
1131 +
1132 + # Install icons
1133 + local icon_srcdir="${S}/comm/mail/branding/thunderbird"
1134 + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
1135 +
1136 + insinto /usr/share/icons/hicolor/symbolic/apps
1137 + newins "${icon_symbolic_file}" ${PN}-symbolic.svg
1138 +
1139 + local icon size
1140 + for icon in "${icon_srcdir}"/default*.png ; do
1141 + size=${icon%.png}
1142 + size=${size##*/default}
1143 +
1144 + if [[ ${size} -eq 48 ]] ; then
1145 + newicon "${icon}" ${PN}.png
1146 + fi
1147 +
1148 + newicon -s ${size} "${icon}" ${PN}.png
1149 + done
1150 +
1151 + # Install menu
1152 + local app_name="Mozilla ${MOZ_PN^}"
1153 + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
1154 + local desktop_filename="${PN}.desktop"
1155 + local exec_command="${PN}"
1156 + local icon="${PN}"
1157 + local use_wayland="false"
1158 +
1159 + if use wayland ; then
1160 + use_wayland="true"
1161 + fi
1162 +
1163 + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
1164 +
1165 + sed -i \
1166 + -e "s:@NAME@:${app_name}:" \
1167 + -e "s:@EXEC@:${exec_command}:" \
1168 + -e "s:@ICON@:${icon}:" \
1169 + "${WORKDIR}/${PN}.desktop-template" \
1170 + || die
1171 +
1172 + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
1173 +
1174 + rm "${WORKDIR}/${PN}.desktop-template" || die
1175 +
1176 + # Install wrapper script
1177 + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
1178 + newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
1179 +
1180 + # Update wrapper
1181 + sed -i \
1182 + -e "s:@PREFIX@:${EPREFIX}/usr:" \
1183 + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
1184 + -e "s:@APULSELIB_DIR@:${apulselib}:" \
1185 + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
1186 + "${ED}/usr/bin/${PN}" \
1187 + || die
1188 +}
1189 +
1190 +pkg_preinst() {
1191 + xdg_pkg_preinst
1192 +
1193 + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
1194 + # does not need to be forced into the LD_LIBRARY_PATH
1195 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1196 + einfo "APULSE found; Generating library symlinks for sound support ..."
1197 + local lib
1198 + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
1199 + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
1200 + # A quickpkg rolled by hand will grab symlinks as part of the package,
1201 + # so we need to avoid creating them if they already exist.
1202 + if [[ ! -L ${lib##*/} ]] ; then
1203 + ln -s "${lib}" ${lib##*/} || die
1204 + fi
1205 + done
1206 + popd &>/dev/null || die
1207 + fi
1208 +}
1209 +
1210 +pkg_postinst() {
1211 + xdg_pkg_postinst
1212 +
1213 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1214 + elog "Apulse was detected at merge time on this system and so it will always be"
1215 + elog "used for sound. If you wish to use pulseaudio instead please unmerge"
1216 + elog "media-sound/apulse."
1217 + elog
1218 + fi
1219 +
1220 + local show_doh_information
1221 + local show_shortcut_information
1222 +
1223 + if [[ -z "${REPLACING_VERSIONS}" ]] ; then
1224 + # New install; Tell user that DoH is disabled by default
1225 + show_doh_information=yes
1226 + show_shortcut_information=no
1227 + else
1228 + local replacing_version
1229 + for replacing_version in ${REPLACING_VERSIONS} ; do
1230 + if ver_test "${replacing_version}" -lt 91.0 ; then
1231 + # Tell user that we no longer install a shortcut
1232 + # per supported display protocol
1233 + show_shortcut_information=yes
1234 + fi
1235 + done
1236 + fi
1237 +
1238 + if [[ -n "${show_doh_information}" ]] ; then
1239 + elog
1240 + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
1241 + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
1242 + elog "DNS traffic to Cloudflare by default is not a good idea and applications"
1243 + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
1244 + elog "(\"Off by choice\") by default."
1245 + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
1246 + fi
1247 +
1248 + if [[ -n "${show_shortcut_information}" ]] ; then
1249 + elog
1250 + elog "Since ${PN}-91.0 we no longer install multiple shortcuts for"
1251 + elog "each supported display protocol. Instead we will only install"
1252 + elog "one generic Mozilla ${PN^} shortcut."
1253 + elog "If you still want to be able to select between running Mozilla ${PN^}"
1254 + elog "on X11 or Wayland, you have to re-create these shortcuts on your own."
1255 + fi
1256 +
1257 + # bug 835078
1258 + if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then
1259 + ewarn "You have nouveau drivers installed in your system and 'hwaccel' "
1260 + ewarn "enabled for Firefox. Nouveau / your GPU might not support the "
1261 + ewarn "required EGL, so either disable 'hwaccel' or try the workaround "
1262 + ewarn "explained in https://bugs.gentoo.org/835078#c5 if Firefox crashes."
1263 + fi
1264 +
1265 + optfeature_header "Optional runtime features:"
1266 + optfeature "encrypted chat support" net-libs/libotr
1267 +}