Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/thunderbird/
Date: Wed, 07 Oct 2020 01:30:43
Message-Id: 1602033135.5612a4a97327d278162d032b10e39ad73f2a4e1a.whissi@gentoo
1 commit: 5612a4a97327d278162d032b10e39ad73f2a4e1a
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 7 01:12:15 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 7 01:12:15 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5612a4a9
7
8 mail-client/thunderbird: bump to v78.3.2
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 mail-client/thunderbird/Manifest | 65 ++
14 mail-client/thunderbird/thunderbird-78.3.2.ebuild | 984 ++++++++++++++++++++++
15 2 files changed, 1049 insertions(+)
16
17 diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
18 index 1f901d9c08f..f0296ad088f 100644
19 --- a/mail-client/thunderbird/Manifest
20 +++ b/mail-client/thunderbird/Manifest
21 @@ -128,3 +128,68 @@ DIST thunderbird-78.3.1-vi.xpi 675050 BLAKE2B ce2b4b590242dd840cad62ccbd5c146d26
22 DIST thunderbird-78.3.1-zh-CN.xpi 687634 BLAKE2B c5e3aa4419c8637630e9b030380d971b76a103f974c67b7778c789d11dec6192e36e868b6571ca10050e1b7d580edee10f5cf494a7c2235206c298dd1deeb0da SHA512 0a550fbd21cb3fb047b1965ab62d0ea68b58bd49907c16c603f5e202ea20c2dd621abafa8aa41c0f4c0eb08dd09ee0fe44e294d3ae003699b6d18efaea294e19
23 DIST thunderbird-78.3.1-zh-TW.xpi 688074 BLAKE2B 5e12b4cbf2f142a8de23356712162df9d370df06a1172acd3e9272cb3717776c6747cfb4975524cc1ef8efc026cbdbbc251898d67e2fca38aa9f982af12ed497 SHA512 f47fc7545dad00baad3e7088ff6ba06865a3d24cacad274740c7efb16c47b36682c0c56a5d00f07614eb609b6dc140318396e5c3b14a6b316c501dcb2d72bb11
24 DIST thunderbird-78.3.1.source.tar.xz 353920472 BLAKE2B 5afcec30c23480a239f3cfff56d67e403d300be00e1f374e9ee8a594d9845e9fba4262c410b552cc2ce9b529d8cb9221f81f2367d9c6ee0776d496af0ae88a58 SHA512 16b05e51776ba16503bc5fba02a6d0b5050a206e264a4707544354ad76af61902fd2dcf5d97b82b432dc69362ccd18543a0acccd80e06648e6c6f470886da450
25 +DIST thunderbird-78.3.2-af.xpi 548780 BLAKE2B 143522732016ad215d9d8531334b4aa6d2adcbb997b6ce499e429c336c119eebbb0ffa1acea5bc96d3f3bcacd956a126c4b4793cf2068de2c9735c47fa568e2e SHA512 f6e130943effc59150dee4d73d3cb92f1bc6fb4ec26cbef0692f971c549b43e440e695e8180a933714ad2b10dbdb9dd025685b0555ac4845f817360e89d93b9e
26 +DIST thunderbird-78.3.2-ar.xpi 649070 BLAKE2B 453b834df835f5f564739309b17a25465a6ad1d5a93c46132ea571b419d66763c72049f583300cf09bc61fdbc110a3037fc1fe926315b00772d2b3f1bee16437 SHA512 fc68874afc3856413ed1340e0c58631fed1f97af4b6d77a79ea7cbdb42785cf1dc6566b1a8a69fd1de88f3a36fd84124530f8f5eb710d441519b474525c3e079
27 +DIST thunderbird-78.3.2-ast.xpi 561706 BLAKE2B db0dda8009c0d629fe1c6270411b3a1f8d337012bf445edac609422fd11fbac42f4d0456e204a1a2bfaea616fa1ecd4099eb4e0580c0fd540699b4c8453e6023 SHA512 c5487b36ea471d0a08da8bb53d31a1bf4d80b80cd2858af2e96237e97bce7096f8fcd09d94f1089150919a5a0517570b8408fd5d6e4301753f5db233835126ae
28 +DIST thunderbird-78.3.2-be.xpi 667130 BLAKE2B 579ec309d99b1081531a666e4b930ddd791e793ff568e4c7a4ca2ae91d5fbcfecd49c6fa8458a3c656181a6d708b840e687a59d945deaface52b140ba12f4b00 SHA512 867eeed8c0cf9e9ba23dbfb6966969fbe0e9f6fa5b19ad3ec0af52d23bd76c35d666b42ff63632cda5acc14d8da7e92080882d2f73650d4908ced07fd940451c
29 +DIST thunderbird-78.3.2-bg.xpi 672891 BLAKE2B e69cc7e5d26688e03ca4a8b47f491e4cd440b98f94e4ad110add7bf792fd706d0ee7188e3d5a3c5f66ae9372547a42abd01fd151140a8341a4e5783b06162ccd SHA512 ae831a14c78d9c3739db79c1428e352fbd5ecf2a4e32207d992b1ec7dd9d991aae0239c3a063d1f2ab99936d95c4bfc079a801a8106e0202938020065d15efca
30 +DIST thunderbird-78.3.2-br.xpi 604951 BLAKE2B 9007c6511b846b6a258985e45ec4d19be5b1ecece1a24618f5862822dcad187eed865fccfda1e35b22c436acdd64290b74ccc320a01f71352098311cd7ba6459 SHA512 15db2e913e5b8571debad3b856b7cba74a6c42c6b3c180e1f381888620ff7351018e953a9324e059b223ec904dc0d2c861c3b4fdab48c8c8c5b4334346e62d7f
31 +DIST thunderbird-78.3.2-ca.xpi 620851 BLAKE2B 6033eea9675abf10a3dbd02435b10d4b579d4f213d9029bdd1b6254fb92a5ede4a49547c1b280e959bb421f97771e012e3aeac3a163a75115907df5819e7bcea SHA512 d79c944f5a2e7dea64b9ee873a383bf78d126d9ff9b9cbffd153c1bd265216d601c23176bc64f006e81e45f77cf212a5a0dbcef64ffda3cba9b189f1f64fdb16
32 +DIST thunderbird-78.3.2-cak.xpi 636109 BLAKE2B 105ed233dc2be111f4647e9b2c57654bddfdc807b25682ee4161fc708d8ae8b1ebdf5d21ff53e24e811e407d80fd33422a1ad2e1704948b222c1299414d4e2a5 SHA512 9997e63725b1d8c97a447c466c71d9324fd05d83d101e1079963f4b0a1193cb66ae20f55b29db69305318db4289bb2f6c43a46b25c9f8c7702f9984c32fe732f
33 +DIST thunderbird-78.3.2-cs.xpi 635778 BLAKE2B 7a9aedcea1654c1c2c0fd26a261d77905d0712b925b2f0fc4ff19a3775eb7489934c42063b8b30612a43d02be118a4d1f272e6f193dfa511905c5e57ed90f798 SHA512 d77f05d42595099993e998ea06b63d4e08fb71fe62626a6cca81e96839ff45c049ab4d23cdd667d5a39a235454adc18c9c2210f9004c9b6c3b77790cd0a06be2
34 +DIST thunderbird-78.3.2-cy.xpi 646671 BLAKE2B d32252a96f80774d61b7e183b1dab2dbbf8d1510e3e9aeb16b8550238782032bf807876c432742cb0e3a363a7487d90854b19aaddc8131ec78de4163807440a3 SHA512 4b4c3e147720403c410e45bf330f7d10640c8bb3d13e448b7f906f1540760a0785271351898556e8c8146f01d7e5a2eea80f1bc7c5d179d070bb826a3e7f5338
35 +DIST thunderbird-78.3.2-da.xpi 621429 BLAKE2B 5168467609437946b55f326d2af5e420ea7bde9cbfe248c40867653aa521ed128e8f7a1500a4c3a2c5d8509a3d6d664e256ea8fcb38c163a38264bc89c05cff6 SHA512 89b86981b2f89dddde733ea603df13ec3f8b6b29ab6a25eb6762119518932791986f55f3f0d92bfde7d56daa6f2d42a7a2e251e956bfd25465eb2796733e0e4b
36 +DIST thunderbird-78.3.2-de.xpi 665613 BLAKE2B 4eeda9b62be7a1ca0c1181b48dfeb5b705a4c7993625e52b1e4801de2aa04388870682a14ad955393e2fe638553d01d605da24b3cdd5ccf68e6a5c7b9e2092c1 SHA512 ff39c29f67f55d7b47f296db008a8b0776005e8f8a8e1dccf8932a8633fb95ec99b2be15eebdd1a88b4fc3e9b09d1c1951369661e6c115b57dd5e1a66fa948d0
37 +DIST thunderbird-78.3.2-dsb.xpi 667222 BLAKE2B 35471b7a0b2564460b636934a1d1eb81857205a02aa8b83ec89d9b398f8a1fa73b8da21ad1eddd15926c936eb477733b3b90c4fc58e74ffd653ed226d7dd011b SHA512 94ef6671f7a90540f8ed261632d038b2e66baac285232b9cf8cc484e9b88fdbc2f09ea0c50635204c68b5bfbd5847b8dc0677fccb380a63314287e23cb96b9ac
38 +DIST thunderbird-78.3.2-el.xpi 774924 BLAKE2B 8262f0324f958d04cc01ba93a57f649caf5597609525b56aa75d4bcb11e4872105f125b941318b6c7341be1da6b72ee0465c994025ff283fad50da50ab15ee3a SHA512 049c900da0a8926745339b1a45385571b2d3ad8ce01343e2e5fbc4f7484379e15cfd13823b8632c529a8c7fa6b71ab504c44564f8946a0d3ccaa057b0c40fd62
39 +DIST thunderbird-78.3.2-en-CA.xpi 612237 BLAKE2B 0aa346851469358031ef0829ccfd121555279a65d89715d4e5b1f2f168c614dcc138b9a598631fd111cf39c31a766dd8488cfe319a98e344b4e49ebdd4d658cd SHA512 09e1831129a589a04f00aba701d723827a0d7655c330f22d1714fc0005f21aa441ad1b456db222114af1ffc1f6c0cc25c322b5025be6315c6c0de0b0dbbed740
40 +DIST thunderbird-78.3.2-en-GB.xpi 611651 BLAKE2B 1c1864e65075a885d2627f3666535d52cc1a2c2adf6f30c714479aef9c465da4bcacab9da34587ac4b8e4268f3c635d116c9b385fe6ac74096fe2cad4fd8cfe5 SHA512 b7aebacbfb67019c482d8ec673869a18ce439be2f477ab44359dccb1306df95b41e84f9b9e3ea54aba9272d04aeb50d1223ffe4f8ea3f0b1475203cfc362d8bb
41 +DIST thunderbird-78.3.2-es-AR.xpi 658242 BLAKE2B ff8cb92c48b59fd00b98e057b544cb752f3fc6eb201e3ab8c7ce86b56a0a5d259539c1fd05b76807ad4306b8b94cdfdc77dfeed13abd0be45fe2db519f775b32 SHA512 271525fbd82443e3bd51ddb9b54ad7f550a1753717199322fbd7f6a6c581ae5c39326fa083a882b64f04e36759462c12433bffa64b24b48a4a3219ab0141e05a
42 +DIST thunderbird-78.3.2-es-ES.xpi 570253 BLAKE2B 6c0e91178e237230a35ada1ac72c541bd0ab17f8c8fe625a630372a49b6f9b6161b89cc074bf01f9ded0e1da36aaa1b41de79c4f784c25314f7b4ff0af12ae46 SHA512 1f86631696e7473be90cf33a6558f93b1cca50ac008c829fb9f4ffcd7cee6b299aad0942c5baba517f2a50fb682238cadc7e18ad41f4c45cfc344fa3577cfe64
43 +DIST thunderbird-78.3.2-et.xpi 598160 BLAKE2B d456d755d1aa671bb4b307603b22265fb86da203e7d20aa1d61513316bf77af2c015cb23d8f1f312afa831d4164a654d6a0b97209760311f81d4b753b0c43e85 SHA512 1baac5ae351400b5aa7f80bf4f58993304bfdb3d89999791805437495219af77a8b19bb5263dfc39f91f159c6d3b03886edfdb339d5609fbbea4e4b3d3c01d61
44 +DIST thunderbird-78.3.2-eu.xpi 633363 BLAKE2B bb831748de94aaa69ef69d2c266e3a0d04142862943f5e1302946e37adbf028c1d5b6d092ac7968898016ce724d8a81d3e56505114dd41b9cc30f7b68b3f8887 SHA512 2b47a1a67fac3a636b670af15ef981cd9fc72819439a4c489dccab72ed8ca083bd736dc4e8f21903644616ea1c8335d15ca837ce667ef51bda47247d035a26bf
45 +DIST thunderbird-78.3.2-fa.xpi 640172 BLAKE2B 74391b7ea01dcca8ae8d946754664dc0145e79c9272fe66cf879e4beee298d99ba6eb83f8f8823ca6824587e31047f3a8661e3b8e269786bc7eb6578fe0cfc7e SHA512 ae8f02221cfec10d6d7ad3e386b2ee2bcceb8fd145e7bd49b39f77cbd24e3a29d9c815c1c3fffb987459ba60d76b7c952fa8e4e8d5aa5f13d8e6c0d3387e8065
46 +DIST thunderbird-78.3.2-fi.xpi 642876 BLAKE2B 36059c7522713b5d8c89e3ec9d5adeabd3f8ecf528e4ca3f87ffc519681babb57f483973172378ec54b8c0ce912f6934c80fc4519abc748dee43df3ef9a42a01 SHA512 d430af57277add888f5ccf1038bd7c3dec08a19ce8193ae4b0bc7e951c087f28204e25f01b4eab6e79d6f0d0ebaa6720ad7adcc390738e5eb039e05188352a32
47 +DIST thunderbird-78.3.2-fr.xpi 669932 BLAKE2B 20b1fa522347bb0ed9cd8d4bdf8ec7b16cfdb5257f7dc79386e54291401a2db0ba4f026a46979254808dd42d0bf15b3f68a3dae738dc2dc89dcbd93f1580ac66 SHA512 dd701ce4956cf6fc251b9b76a7b94ac115de95af7d8c2ffe35b7700cae316f6ed1fddd9660fc8ac8b036392f0b1ce74acb4862683cfbe341809044a182bbd284
48 +DIST thunderbird-78.3.2-fy-NL.xpi 653528 BLAKE2B c22252a145bd11b41ee3b693f8c62416e1a6252b43c0b644b2bc3bbb5203421eb3171843e638c0420785b20960db7dc994f6386d91ef44223add7a758a796c2f SHA512 af36cc65f6e68baaab91f67208605c8f9a5845d8ec8a26822cc57fcc0951e58bdd4f76571760db09c098b0b51cdeaa511c28b1b20adf301d4c7146f0d317b105
49 +DIST thunderbird-78.3.2-ga-IE.xpi 601174 BLAKE2B 76129cf68a22b228563647edc541226f7bc8dbf1168ff26a73a6ffacfa648876976ad3310905c4e9626a4669c00a9160cf6c6c57d825f57656aad45d9573ffbc SHA512 c19e79dca5014aa81e94b91fcc06bf575102f63f218490c69e088edccf8949f52b13e9b999a4aa2df6f64bd43615530539bd2005b6631ddb4176dbfbdd641f89
50 +DIST thunderbird-78.3.2-gd.xpi 609816 BLAKE2B 3f2f3d5f999514949f0e53fdb03782a2482c1640c9d4134488abfa8337c1abc1c4ce327345e8cbb77931f6d5b3f529b11a0ada9a57f7ebeff5ddd3ce3023668e SHA512 c7c82dadf7c335bcc9823800d001ebe9a4d6da769905d172f62ddcd618972339827b664416bb1baef6b4c19d8ece7925106c178c2b8d59858882e07334743516
51 +DIST thunderbird-78.3.2-gl.xpi 616194 BLAKE2B e906c3bf9e6701e01c38d9b9501e47f1882eadfd90d22d629836aace24ddd44e9e823a227451d622c8f9bd5df62b108a303aa76efb9d84e5b836d7a14037eb73 SHA512 3cd04d7b7997ce600a9178aad6d8cf7ba11ed938aa615f7b90b00427eaf339639e7c0ac618f444006bb94326e3c84b59b4685979f73add7dce06ebae34157e38
52 +DIST thunderbird-78.3.2-he.xpi 640979 BLAKE2B 679914ace31b8ddc6cdf22207b3a90d050a9f0d6e7cba25104137bddf29d9c23c72696ee8f22d32e8e979321d2f45c9fe4e42e51afdbb2f028e19e4db32952aa SHA512 c9aec435dfd5e3299f8d1ccfeb091ff0412fd3158e77d481ccc5704b82d2e2baeb81dd3bd38fe1d1d16d57d2875da51b93c7cf1e1dfdb5642c78c36d55f09734
53 +DIST thunderbird-78.3.2-hr.xpi 629431 BLAKE2B 610861e392f0976f10434d4dc097ff2bbf66c4594d146c671753eda950481f95da277954afc3c7028c93e5c034ffffac00db6f9d6b4d355553a5115a13447f09 SHA512 0dc32d0f9a4d1b3b1fea5aa64bbaa2d29008855f29d2a730969b9acf16073503a37b97891bf3ebcaed660fe55cbdcfbbeb9df5594e17521922728a3206737f92
54 +DIST thunderbird-78.3.2-hsb.xpi 669046 BLAKE2B 2a6f914ef5c3676472645a6fa5d6e679ffd8c00ffd771b9ac80b9dd8ae77d67d6b99fad0a32dbedcae5f20478685ec6f1b33db4de72893c3e7b2344f6570a4be SHA512 285abaa1114570393f53d1c6fdebac96490c7f594a831af5c665345675f8facaa2bf807cebf4e0b254b95d88f22bdacec5b0e8a26345920886f5f866fecac1e7
55 +DIST thunderbird-78.3.2-hu.xpi 680281 BLAKE2B 0c32b44ed3f31a0d96e790299ef3819c9074fee650a34ec51d735ffacf287c59df7245152a4fb9efcab9b8b7321aa062b771a8b822e5a2099a7acba447cf48cf SHA512 14f695b519ac8f46550dfcd4a22dd357d18965a38667016915d4052917684121257135e6db0f521f0e9e6978f5880bf74a696b491b10cc80f30e8fffea0bb73a
56 +DIST thunderbird-78.3.2-hy-AM.xpi 713765 BLAKE2B a2c4f497cc587f613bf9dc6751b60f527eb4f06e77a20c9870b1247b9374f0eaf480f9f607ca9da13bf7168f02483fa61e3078709c4af5402759e83fb923506f SHA512 04c95ffe7907e00688465c87818c900f8019e42191ecab43c170bf26b5fc2d27d47aa0a6b2f710bc7c26a06e13a48b651f12ba0b760220117409cb445986f39b
57 +DIST thunderbird-78.3.2-id.xpi 621070 BLAKE2B af89617697110b3a65dc9932c338df79ce0442f8929b65bdf8c5119b237181684fbea57f9b607b220a5f28c581d5d6499a009c3c3253d3a497fcbd3750483f73 SHA512 7988c17529fe6864673e502e96e268f447838380ed5339784be8ed1c38bcaf77c5103aa842897efa9f438bf58254a6b22f018670f1009caf6a156760fdd7f202
58 +DIST thunderbird-78.3.2-is.xpi 582076 BLAKE2B 1098fa4122e69965ca54770349fc6bed22d0b6e5fa71731a7986ae57527dfce6f0f3d6fa1d5138dc9379a7906cd57a90b40102a743a8c8ca7c6deb060c429688 SHA512 cb713e57316cb8c980b82e7a9698e75421e36daa66828a1298539d612d4668e0fea01dda99d5c047937433cb9c705be6cecd2a7b573f30942d7c8e7fcb56a6f6
59 +DIST thunderbird-78.3.2-it.xpi 573392 BLAKE2B 1ec0961423bb1bd1c1fdc18d46e012744a4a47d9ea99f8f355aa6738fabb3c01f886dc3e3bc8a86ad765ae82f52694f0a3ed0e4c80306a701bf8566646c21a5e SHA512 b92d90e064c40533d88f862a3f2b6c813bc21a6a88635d9c06ed9209b14c777c917548d1ae9fd2efbb76b35100172dabda435c50950ab1779c69d6316ce8c54a
60 +DIST thunderbird-78.3.2-ja.xpi 722912 BLAKE2B a328f79701d1878d563b3d6fbbb5ab6a6553996c27d1e17830f7aff464b423270054f3f039f43b9b24e316cba9315b94cf2a6a039a3b487c8ea8eec97a1a7ab8 SHA512 413fd7d2ace1103a0e76a6900190c9ce4b7602bf858364d4e7d36d5b8312b6d09917f0bc8f982a15f93dd68dc7294473170345684534324360d25d835ba830a5
61 +DIST thunderbird-78.3.2-ka.xpi 717485 BLAKE2B 52febef6df412e2dc42f16715ce59d5cbd6e0b7affe2b47652b0b07849db9b9d36df312a37441f8c4fceb16cd87dad229bb157af1c979c66fc750c9caa4490f6 SHA512 3c63c60c34aa96f9b1cbe5a3f4b814c90aaa11d62cb224154b363128738592ae329dbacebba02ecebe44562b51d476f99587dcbfce6a7c5a4479e9c30eeecd55
62 +DIST thunderbird-78.3.2-kab.xpi 652365 BLAKE2B 0b62728035fac08daddacb6d312ec6271941d1028520ab5b8ca2159282408892125f20bbf22f22f8a3fade60e6bbfa721f4159ca676bf9f85cb507b6cc158e1c SHA512 24002352fac24dbfac6b53f3095f675a1f0916875972b61d8cc451dabc692a06dba932b2ed465308e153b6804dfea3f9fa6d5774a24a9f69a001e653c4b9001e
63 +DIST thunderbird-78.3.2-kk.xpi 720913 BLAKE2B bc1e1d95e5f84777ea14d90ed6edf25e6cba854cdc111a17ae74456366561b29b6d562542ae16553c36faf26851a6d71c3d78940dc08bb534caa523737ae287f SHA512 0284f8e3f1fa9f9be00fbe31366f782433fe6964231d67b423e87e059c8146457977b9c7e1ac5fac2184ef29cfa2f93a2956d98c719c1f9405fcb01ce50ab85f
64 +DIST thunderbird-78.3.2-ko.xpi 688660 BLAKE2B 5fe9f5dd3132468efa35c50e3b346fae4f4567d7a4f513681e2d2d26e7be593b0e791f8bf11571af1555fb8de27c29f75d4320999d40165567fabdfbb9f9b67a SHA512 81d2299bc79611b80c7066f1a1cbdfaa3e33e804ebea59fc24d7a647bc783fe5f56e81189dcbf094212c88f01cdd5d272e08aee73571b9e1ad24ccc7b6a52536
65 +DIST thunderbird-78.3.2-lt.xpi 660734 BLAKE2B c6aecc66828216395d2dd986900da3d55aaa6bc23fe7b47262ca18aa296177b056f88a1354fc57ace9329d4b2fc5f4b7e032c5c652f2baf659d723dda5991c89 SHA512 9c725d0c0971289a8b6da6ef3e16a116e7beb1bf0823fd85e795a5351f74a9adb069990904a3000b6a96da4176973be4b76f42b6a5b93dd1bfa439d40563faa0
66 +DIST thunderbird-78.3.2-ms.xpi 572598 BLAKE2B 0b157e17663fc66f8fad9fbf36f4585504ae0f8fe0ba1ddbf570fb31dcb52a1546a8dca9f677c17b893c3294eea1592397aff04a2749369ed07a3dfbf2367cd5 SHA512 723ff09c8d7d3121f076146b314e56ec34288bf075506b22617389dff96d2d916ca493ad7ab13676174189c336756de20d4ce604c0f8cfaf05d8959aca98cece
67 +DIST thunderbird-78.3.2-nb-NO.xpi 637682 BLAKE2B 2afc4b9a789308272ad63ffe017a0ad974871bc61e50b9d3fba1d60f1512bb533b4c13074188bd22bbc9a715fe3ebd8217ecbc59e3efc66113ca8a04a25a5715 SHA512 9f229d37c4ec5ef441446d6ac3d4d7aee36b5534fd1ebf61950b1e69dd0694b777866bf769fb1130f064ae64ddf2c01e5f937d1fcb0c6f16c032becece96d905
68 +DIST thunderbird-78.3.2-nl.xpi 644784 BLAKE2B 5b2843fa9a4c6f5782282411285c3248bdbd348abe389c462f49520332c7f7a7583285fb4c497c1aa779f346832576b3c7778912242737185ede2be4dc0ce6e1 SHA512 a40fc8eccb05bbf5bac3a1fbf7de42c321f9fae354c1e6a9f69740c5f622bb51f3b9c1cfdac5b2828d3a080e4fc9512b871fb60f6374cb6fbd48d18c91f84439
69 +DIST thunderbird-78.3.2-nn-NO.xpi 641140 BLAKE2B a1dc2cf4c3c69bd9caf2bd626c6247e92328906f1cf0fbba8791858707c4d4d4175c32fcca892d49a75f95d19d48808a400332adf8a4d353eb2e52189c3f2f90 SHA512 d49772610be7d0ea64d1ba07e2039474302dba2f0966eb2a03a80bd9f513c7784d8e608e35eea30c5b3ad3303e3011ea92436635e9799d1d5c0f5be4bebe021a
70 +DIST thunderbird-78.3.2-pa-IN.xpi 633708 BLAKE2B c2a4cf40dd2c189c8ec5f53810c0b5b6b70c6fccb47f66287115df4ab18b8fddc87634fc99658ec006a5a587fb1cfde2b4919ab254a821b017c00754f2a08177 SHA512 eaae1be5b2939064bf40271b75711f508f09cb7b4889163af70833d8f827546b2d114c8a07de10c15483692f950c398e117d11e61d1d30e8edf95f0acf621318
71 +DIST thunderbird-78.3.2-pl.xpi 637571 BLAKE2B f6b548ab76adae0c08f0a8afcff13874ffb60089a6c92b470a87dc14b80428c1f6ad0c62b3cecfae415c412bc54900a24ae105ece1c05aad1518faa9929e28fa SHA512 b1eec9da60c64f5d8d716f48e9ac89aa5bb10248313606a5df2f028cfe7772ced862bbeec8fcb73aee040b2d27bf1b04be3bb36277b2c3116fdfab76c5f0e661
72 +DIST thunderbird-78.3.2-pt-BR.xpi 649859 BLAKE2B e414f46a985a814e9eb9b88c22133e7e7ed9bfb7c90dd059b3d172d7c14de2af658244bf012d34d3ad187b88c82941e91512a8fd3536d1fd08ec243d1cb24c07 SHA512 519bdc94d0e369d891f96b0168739d47a76a8d3f8b872b18fccd4a39d1f181a4653c7c07b968392a9ee60ad337ff375cd3d4a19e7d78e2d34bc538a8fad0cf2b
73 +DIST thunderbird-78.3.2-pt-PT.xpi 655966 BLAKE2B ab6d7d5335ff82dc4f865c048a41693d60efae7841d7a4986c2bf77b3df3d2d4e2867db548b053744c05c69a9bd6269e7bcb0c0405ba14b436c357f6a04aef08 SHA512 c102f8620cd802c619204ec6bca5181f34914f6970fcaa6d83310b54053842da3a16515723da1049a0330aa29422dd77cff52fc72768017d29cdc31c3d4db1df
74 +DIST thunderbird-78.3.2-rm.xpi 646974 BLAKE2B cfdb6f90b4baf2d9eb06c59572d117acb3ad1c845470a23fe833d99bcf67a526130ae9973b34d5f573d06de340a09a95bc00e2a7ee7c76392d6bd029138f7b92 SHA512 0390d1c8042bf163d8eda3ab34ea2589d38a443c8fa04c523b61fa93025c946fa0ba1a7fde0b5ae56e4e0ca9288a20c67614b31d94ede6410c740d89e8a1d164
75 +DIST thunderbird-78.3.2-ro.xpi 663084 BLAKE2B ec29377e305353c826efb810e4faeb72b55dfed3a557fd3f520ea4a75cac3aab26f81d6ca442130e4a320036508f929256d3ea1b4e5748ca7b0340c75a8c3694 SHA512 35b054e33fde4fc25aebd198a1b27a1e4833552a2a7f7572f44ec3f56ef27230be3481941bcf11db245d44c55d23fc8cdccfe047328f32a0950d1f093a50c52a
76 +DIST thunderbird-78.3.2-ru.xpi 756662 BLAKE2B bfd464bb5aff8cb2d920fce2020374b0d70bef0095e465e40ec98c613ac4ce8aa9a6059cca838fed1140a2d10e732af724bfe2c79cf5e74f0c2e7d8edd07e542 SHA512 32faed8a0b3703b9c49ec0d63b38a2f90bdefa46e84c1d9026ea1a5b908696075f070c90b03cca6b99b0568b9ed1a398c8cee1a3fdcbd1077e2496146ba27bf3
77 +DIST thunderbird-78.3.2-si.xpi 651573 BLAKE2B 6b9726a8883fea482a2d372df06a0d1b97938e350fb05ad193cedc227bd2b051ce0c511b74a9b818242f48ea866ab2f97903d6b6a54337d7768f2a15a6cf9958 SHA512 9706b1a31d9f1cdc2a5b29c95354e90c0f5354373cd1781fac95392781824b6f50f1751b0adc85ed077d7b8d61901ed8ece47636b0bb30070d832efbeac1ea71
78 +DIST thunderbird-78.3.2-sk.xpi 643644 BLAKE2B a3400479aa79efe4fd89ad92a5eea68433d604d3dad6730fae5abd030c88ace7c35a1c6c9dc89bc180af938757478fb0dbdc90279c3261e7bcbdc0bcca6e76b9 SHA512 c1122900e040a66174f064c6c2a102c0e70234a75776d5fa13542a271530cfe2762626035138466e933c60b38f386cb9bcfd30273582e43e09d256351cb67ca2
79 +DIST thunderbird-78.3.2-sl.xpi 632787 BLAKE2B 3d0393239a16b6bcdb30aff909989908b969e2d2f0170307aabc4b6b3f1e98e5b0bb8ce3fd688f23e887f68f55d0460deeaf5fefd3b9e5d5645918506f428033 SHA512 f7c49f590e06be11a477ccf978d7ac03559949a28d57505425056e7bb5c864322b3cc665bcf9a9a1cce370567dc7b09f8aa2a6dba075439439e6371801e820ba
80 +DIST thunderbird-78.3.2-sq.xpi 658258 BLAKE2B bc38f6a8734929327ad016b43ac8f462133c7ea53606b494d2cd21ecd8c503e8d33467f3b0a4dc603f7266014afd5846c2a258740fdcabb541f057090fc2f44d SHA512 8dbdc003fb1f23d2718842bffbfe160b92da616dcbbd584b3b4722b7e0e854e1859071e491ab90c65f79c6362e63500ee2d1ea5fce0f7fa4c223d01b8596f2fd
81 +DIST thunderbird-78.3.2-sr.xpi 683544 BLAKE2B d606fa9df9528f1187f8e3b7b59d40690fc12681759ee83918aa7dcf4f05c9580b8238336ad88e5982d9dfe65bdec5f03d997b280a94c308be9b741bbcb02ef1 SHA512 b06cc532473466df355120b57f8a39c9dd88a99852e38db9b5fa50db3883a07010e84f55d45b12efd5490b33c4adc02d567dcf43f5b47dc46e37c253bcbba8c8
82 +DIST thunderbird-78.3.2-sv-SE.xpi 649313 BLAKE2B 8d63137c75862ad9aab89972eff54dce6f47ea11c75dca8b0ddd8399ead08e8395fb54ca4dc756abaf9cb45ddac1a13938d2374eb67af2f52ec77b9b82ed94e3 SHA512 52df0a2f3a6a0e2064bcc3dda86fe0396a98fe3b24ed48fb3531a826b0ff7f4a98c003dc1a963128e9c8910137990b2f1d9a9b07d34b5e1a15b4e31a8a0cd85e
83 +DIST thunderbird-78.3.2-th.xpi 712508 BLAKE2B 37299851b2462bfc52b831061510f9e6bac3dadbe8ace5097b239afcfe5225aefd42f742c895ddadf72aced0d047271027c0dd9efc8c56b25b74f870ff5f1d5f SHA512 c0e2e9a59406719ed8592e57137014a53278481b423b5c1fb90a6462bea0cccc010615f9885f97c1265d1dc7c427fb28b34b0a36c89976690b45ce145e2506bd
84 +DIST thunderbird-78.3.2-tr.xpi 649519 BLAKE2B e7e1a3dfdf327dcb912ded348fc213837a46f8b7b704585600b2d3c40bc8a8bdfc8477809cda4d13363fca09cd22a794fe039ddfac4b746f06daa75e0cc6b6f1 SHA512 1fdd9c3d1f5e5796d13adf928c897da65dbecb0eb96d420893e88eab93f550586e5b243b0a28b0ee61a8989246d646b17b25159d4bf202268cb1927d0afa5c9e
85 +DIST thunderbird-78.3.2-uz.xpi 587054 BLAKE2B 9cba02d4db009b46801f31e41822fe5affdf84c46d0f5de7a4ca320ef79c2b11193757abcc5e9dd867b7fd9d4ea257152c226ee8336c9f5c52b2488619819bd1 SHA512 1e39d2e435703b292737fe4a6a31676dee121009d503e634cec533022a8db69cf136ba4c59a8c12eaf55a6e2fe0995e13692f59e1fb3a69047aeea322f6e5e20
86 +DIST thunderbird-78.3.2-vi.xpi 675058 BLAKE2B fdf93c745b6d06a5fb7b8f5e1632369dd7b63072fe76b9672df3e3b210d4e03b165e345bf46e24a86695ea8b35c536e29182c7623b953fbc334f81a943f2b74e SHA512 4a2611c77652fe0c8abd8961f1e0cda94a6d754aa4cf9006ab273936df89faf4274bc0bcea6bdb54509477a452b3832ef51ea3d83902c57b1de11b519e324fc0
87 +DIST thunderbird-78.3.2-zh-CN.xpi 687627 BLAKE2B 954b3b481d8ebb5b90f5d715a91f70af6f472b74721eb98dd18f565bfe8fc539543ba6928e095fdf418db2c779141886db6ff69220bcb0e830aeb55834093102 SHA512 6857b1fa099f0b9c4af88edfd719aa37b632bc3cd659b12495dffe87ef606c939948c09a2737faa42db34f385775854ab9610f934acd326e5d56596471dc7e26
88 +DIST thunderbird-78.3.2-zh-TW.xpi 688071 BLAKE2B 11825906d0a9cf1182ce0e2beb171f51dc93b3399b5d817d46f6c756cc866ac5db8f85ec5b28079ec20acb2a5de75d181901279a20003592b3719ffaafea2e36 SHA512 3590fa64a247f7e856fc19de53284a1c70cb7aa6d226c08d6ca376ee3ec18cdf7730193778a670e5dffd3b7df483f4984188dcc8bd8665c4f5e46528ca1e8ac5
89 +DIST thunderbird-78.3.2.source.tar.xz 353894084 BLAKE2B 7d00fb365e6f6fe9be78e751abe6cbbcee46e600b3fb1b29f6ad9584d5083ab0f7cd6b9342ccc71ec76344187009909405aff08d7e4b24ce3e9e7d970734d9de SHA512 8c0beb2a54f34f9b06605ddc54443c8dbb4e376911bcfa2d5c4b235d4e6f484f1862afba977d0cfcac1222c1b738f967c9b74397ba99c84bd16cc70480a455d8
90
91 diff --git a/mail-client/thunderbird/thunderbird-78.3.2.ebuild b/mail-client/thunderbird/thunderbird-78.3.2.ebuild
92 new file mode 100644
93 index 00000000000..bcc898d7938
94 --- /dev/null
95 +++ b/mail-client/thunderbird/thunderbird-78.3.2.ebuild
96 @@ -0,0 +1,984 @@
97 +# Copyright 1999-2020 Gentoo Authors
98 +# Distributed under the terms of the GNU General Public License v2
99 +
100 +EAPI="7"
101 +
102 +FIREFOX_PATCHSET="firefox-esr-78-patches-02.tar.xz"
103 +
104 +LLVM_MAX_SLOT=11
105 +
106 +PYTHON_COMPAT=( python3_{7..9} )
107 +PYTHON_REQ_USE="ncurses,sqlite,ssl"
108 +
109 +WANT_AUTOCONF="2.1"
110 +
111 +VIRTUALX_REQUIRED="pgo"
112 +
113 +MOZ_ESR=
114 +
115 +# Convert the ebuild version to the upstream mozilla version, used by mozlinguas
116 +MOZ_PV="${PV/_alpha/a}" # Handle alpha for SRC_URI
117 +MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
118 +MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
119 +
120 +if [[ -n ${MOZ_ESR} ]] ; then
121 + # ESR releases have slightly different version numbers
122 + MOZ_PV="${MOZ_PV}esr"
123 +fi
124 +
125 +MOZ_PN="${PN%-bin}"
126 +MOZ_P="${MOZ_PN}-${MOZ_PV}"
127 +
128 +inherit autotools check-reqs desktop flag-o-matic gnome2-utils llvm \
129 + multiprocessing pax-utils python-any-r1 toolchain-funcs \
130 + virtualx xdg
131 +
132 +MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
133 +
134 +if [[ ${PV} == *_rc* ]] ; then
135 + MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
136 +fi
137 +
138 +PATCH_URIS=(
139 + https://dev.gentoo.org/~{axs,polynomial-c,whissi}/mozilla/patchsets/${FIREFOX_PATCHSET}
140 +)
141 +
142 +SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz
143 + ${PATCH_URIS[@]}"
144 +
145 +DESCRIPTION="Thunderbird Mail Client"
146 +HOMEPAGE="https://www.mozilla.org/thunderbird"
147 +
148 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
149 +
150 +SLOT="0/$(ver_cut 1)"
151 +LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
152 +IUSE="clang cpu_flags_arm_neon dbus debug eme-free
153 + hardened jack lto +openh264 pgo pulseaudio selinux
154 + +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent
155 + +system-libvpx +system-webp wayland wifi"
156 +
157 +BDEPEND="${PYTHON_DEPS}
158 + app-arch/unzip
159 + app-arch/zip
160 + >=dev-util/cbindgen-0.14.3
161 + >=net-libs/nodejs-10.19.0
162 + virtual/pkgconfig
163 + >=virtual/rust-1.41.0
164 + || (
165 + (
166 + sys-devel/clang:11
167 + sys-devel/llvm:11
168 + clang? (
169 + =sys-devel/lld-11*
170 + pgo? ( =sys-libs/compiler-rt-sanitizers-11*[profile] )
171 + )
172 + )
173 + (
174 + sys-devel/clang:10
175 + sys-devel/llvm:10
176 + clang? (
177 + =sys-devel/lld-10*
178 + pgo? ( =sys-libs/compiler-rt-sanitizers-10*[profile] )
179 + )
180 + )
181 + (
182 + sys-devel/clang:9
183 + sys-devel/llvm:9
184 + clang? (
185 + =sys-devel/lld-9*
186 + pgo? ( =sys-libs/compiler-rt-sanitizers-9*[profile] )
187 + )
188 + )
189 + )
190 + lto? (
191 + !clang? ( sys-devel/binutils[gold] )
192 + )
193 + amd64? ( >=dev-lang/yasm-1.1 )
194 + x86? ( >=dev-lang/yasm-1.1 )
195 + !system-av1? (
196 + amd64? ( >=dev-lang/nasm-2.13 )
197 + x86? ( >=dev-lang/nasm-2.13 )
198 + )"
199 +
200 +CDEPEND="
201 + >=dev-libs/nss-3.53.1
202 + >=dev-libs/nspr-4.25
203 + dev-libs/atk
204 + dev-libs/expat
205 + >=x11-libs/cairo-1.10[X]
206 + >=x11-libs/gtk+-2.18:2
207 + >=x11-libs/gtk+-3.4.0:3[X]
208 + x11-libs/gdk-pixbuf
209 + >=x11-libs/pango-1.22.0
210 + >=media-libs/libpng-1.6.35:0=[apng]
211 + >=media-libs/mesa-10.2:*
212 + media-libs/fontconfig
213 + >=media-libs/freetype-2.4.10
214 + kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) )
215 + virtual/freedesktop-icon-theme
216 + >=x11-libs/pixman-0.19.2
217 + >=dev-libs/glib-2.26:2
218 + >=sys-libs/zlib-1.2.3
219 + >=dev-libs/libffi-3.0.10:=
220 + media-video/ffmpeg
221 + x11-libs/libX11
222 + x11-libs/libXcomposite
223 + x11-libs/libXdamage
224 + x11-libs/libXext
225 + x11-libs/libXfixes
226 + x11-libs/libXrender
227 + x11-libs/libXt
228 + dbus? (
229 + sys-apps/dbus
230 + dev-libs/dbus-glib
231 + )
232 + system-av1? (
233 + >=media-libs/dav1d-0.3.0:=
234 + >=media-libs/libaom-1.0.0:=
235 + )
236 + system-harfbuzz? (
237 + >=media-libs/harfbuzz-2.6.8:0=
238 + >=media-gfx/graphite2-1.3.13
239 + )
240 + system-icu? ( >=dev-libs/icu-67.1:= )
241 + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
242 + system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] )
243 + system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
244 + system-webp? ( >=media-libs/libwebp-1.1.0:0= )
245 + wifi? (
246 + kernel_linux? (
247 + sys-apps/dbus
248 + dev-libs/dbus-glib
249 + net-misc/networkmanager
250 + )
251 + )
252 + jack? ( virtual/jack )
253 + selinux? ( sec-policy/selinux-mozilla )"
254 +
255 +RDEPEND="${CDEPEND}
256 + jack? ( virtual/jack )
257 + openh264? ( media-libs/openh264:*[plugin] )
258 + pulseaudio? (
259 + || (
260 + media-sound/pulseaudio
261 + >=media-sound/apulse-0.1.12-r4
262 + )
263 + )
264 + selinux? ( sec-policy/selinux-mozilla )
265 + !<x11-plugins/enigmail-2.2"
266 +
267 +DEPEND="${CDEPEND}
268 + pulseaudio? (
269 + || (
270 + media-sound/pulseaudio
271 + >=media-sound/apulse-0.1.12-r4[sdk]
272 + )
273 + )
274 + wayland? ( >=x11-libs/gtk+-3.11:3[wayland] )
275 + amd64? ( virtual/opengl )
276 + x86? ( virtual/opengl )"
277 +
278 +S="${WORKDIR}/${PN}-${PV%_*}"
279 +
280 +llvm_check_deps() {
281 + if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
282 + ewarn "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
283 + return 1
284 + fi
285 +
286 + if use clang ; then
287 + if ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then
288 + ewarn "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
289 + return 1
290 + fi
291 +
292 + if use pgo ; then
293 + if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
294 + ewarn "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
295 + return 1
296 + fi
297 + fi
298 + fi
299 +
300 + einfo "Will use LLVM slot ${LLVM_SLOT}!" >&2
301 +}
302 +
303 +MOZ_LANGS=(
304 + af ar ast be bg br ca cak cs cy da de dsb el en-CA en-GB en-US
305 + es-AR es-ES et eu fa fi fr fy-NL ga-IE gd gl he hr hsb hu hy-AM
306 + id is it ja ka kab kk ko lt ms nb-NO nl nn-NO pa-IN pl pt-BR
307 + pt-PT rm ro ru si sk sl sq sr sv-SE th tr uz vi zh-CN zh-TW
308 +)
309 +
310 +mozilla_set_globals() {
311 + # https://bugs.gentoo.org/587334
312 + local MOZ_TOO_REGIONALIZED_FOR_L10N=(
313 + fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
314 + )
315 +
316 + local lang xflag
317 + for lang in "${MOZ_LANGS[@]}" ; do
318 + # en and en_US are handled internally
319 + if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
320 + continue
321 + fi
322 +
323 + # strip region subtag if $lang is in the list
324 + if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
325 + xflag=${lang%%-*}
326 + else
327 + xflag=${lang}
328 + fi
329 +
330 + SRC_URI+=" l10n_${xflag/[_@]/-}? ("
331 + SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P}-${lang}.xpi"
332 + SRC_URI+=" )"
333 + IUSE+=" l10n_${xflag/[_@]/-}"
334 + done
335 +}
336 +mozilla_set_globals
337 +
338 +moz_clear_vendor_checksums() {
339 + debug-print-function ${FUNCNAME} "$@"
340 +
341 + if [[ ${#} -ne 1 ]] ; then
342 + die "${FUNCNAME} requires exact one argument"
343 + fi
344 +
345 + einfo "Clearing cargo checksums for ${1} ..."
346 +
347 + sed -i \
348 + -e 's/\("files":{\)[^}]*/\1/' \
349 + "${S}"/third_party/rust/${1}/.cargo-checksum.json \
350 + || die
351 +}
352 +
353 +moz_install_xpi() {
354 + debug-print-function ${FUNCNAME} "$@"
355 +
356 + if [[ ${#} -lt 2 ]] ; then
357 + die "${FUNCNAME} requires at least two arguments"
358 + fi
359 +
360 + local DESTDIR=${1}
361 + shift
362 +
363 + insinto "${DESTDIR}"
364 +
365 + local emid xpi_file xpi_tmp_dir
366 + for xpi_file in "${@}" ; do
367 + emid=
368 + xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
369 +
370 + # Unpack XPI
371 + unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
372 +
373 + # Determine extension ID
374 + if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
375 + emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
376 + [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
377 + elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
378 + emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
379 + [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
380 + else
381 + die "failed to determine extension id"
382 + fi
383 +
384 + einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
385 + newins "${xpi_file}" "${emid}.xpi"
386 + done
387 +}
388 +
389 +mozconfig_add_options_ac() {
390 + debug-print-function ${FUNCNAME} "$@"
391 +
392 + if [[ ${#} -lt 2 ]] ; then
393 + die "${FUNCNAME} requires at least two arguments"
394 + fi
395 +
396 + local reason=${1}
397 + shift
398 +
399 + local option
400 + for option in ${@} ; do
401 + echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
402 + done
403 +}
404 +
405 +mozconfig_add_options_mk() {
406 + debug-print-function ${FUNCNAME} "$@"
407 +
408 + if [[ ${#} -lt 2 ]] ; then
409 + die "${FUNCNAME} requires at least two arguments"
410 + fi
411 +
412 + local reason=${1}
413 + shift
414 +
415 + local option
416 + for option in ${@} ; do
417 + echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
418 + done
419 +}
420 +
421 +mozconfig_use_enable() {
422 + debug-print-function ${FUNCNAME} "$@"
423 +
424 + if [[ ${#} -lt 1 ]] ; then
425 + die "${FUNCNAME} requires at least one arguments"
426 + fi
427 +
428 + local flag=$(use_enable "${@}")
429 + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
430 +}
431 +
432 +mozconfig_use_with() {
433 + debug-print-function ${FUNCNAME} "$@"
434 +
435 + if [[ ${#} -lt 1 ]] ; then
436 + die "${FUNCNAME} requires at least one arguments"
437 + fi
438 +
439 + local flag=$(use_with "${@}")
440 + mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
441 +}
442 +
443 +pkg_pretend() {
444 + if [[ ${MERGE_TYPE} != binary ]] ; then
445 + if use pgo ; then
446 + if ! has usersandbox $FEATURES ; then
447 + die "You must enable usersandbox as X server can not run as root!"
448 + fi
449 + fi
450 +
451 + # Ensure we have enough disk space to compile
452 + if use pgo || use lto || use debug ; then
453 + CHECKREQS_DISK_BUILD="13G"
454 + else
455 + CHECKREQS_DISK_BUILD="5400M"
456 + fi
457 +
458 + check-reqs_pkg_pretend
459 + fi
460 +}
461 +
462 +pkg_setup() {
463 + if [[ ${MERGE_TYPE} != binary ]] ; then
464 + if use pgo ; then
465 + if ! has userpriv ${FEATURES} ; then
466 + eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!"
467 + fi
468 + fi
469 +
470 + # Ensure we have enough disk space to compile
471 + if use pgo || use lto || use debug ; then
472 + CHECKREQS_DISK_BUILD="13G"
473 + else
474 + CHECKREQS_DISK_BUILD="5400M"
475 + fi
476 +
477 + check-reqs_pkg_setup
478 +
479 + llvm_pkg_setup
480 +
481 + python-any-r1_pkg_setup
482 +
483 + # Avoid PGO profiling problems due to enviroment leakage
484 + # These should *always* be cleaned up anyway
485 + unset \
486 + DBUS_SESSION_BUS_ADDRESS \
487 + DISPLAY \
488 + ORBIT_SOCKETDIR \
489 + SESSION_MANAGER \
490 + XAUTHORITY \
491 + XDG_CACHE_HOME \
492 + XDG_SESSION_COOKIE
493 +
494 + # Build system is using /proc/self/oom_score_adj, bug #604394
495 + addpredict /proc/self/oom_score_adj
496 +
497 + if ! mountpoint -q /dev/shm ; then
498 + # If /dev/shm is not available, configure is known to fail with
499 + # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
500 + ewarn "/dev/shm is not mounted -- expect build failures!"
501 + fi
502 +
503 + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
504 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
505 + # get your own set of keys.
506 + if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
507 + MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
508 + fi
509 +
510 + # Ensure we use C locale when building, bug #746215
511 + export LC_ALL=C
512 + fi
513 +}
514 +
515 +src_unpack() {
516 + local _lp_dir="${WORKDIR}/language_packs"
517 + local _src_file
518 +
519 + if [[ ! -d "${_lp_dir}" ]] ; then
520 + mkdir "${_lp_dir}" || die
521 + fi
522 +
523 + for _src_file in ${A} ; do
524 + if [[ ${_src_file} == *.xpi ]]; then
525 + cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
526 + else
527 + unpack ${_src_file}
528 + fi
529 + done
530 +}
531 +
532 +src_prepare() {
533 + use pgo && rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch
534 + eapply "${WORKDIR}/firefox-patches"
535 +
536 + # Allow user to apply any additional patches without modifing ebuild
537 + eapply_user
538 +
539 + # Make LTO respect MAKEOPTS
540 + sed -i \
541 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
542 + "${S}"/build/moz.configure/lto-pgo.configure \
543 + || die "sed failed to set num_cores"
544 +
545 + # Make ICU respect MAKEOPTS
546 + sed -i \
547 + -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
548 + "${S}"/intl/icu_sources_data.py \
549 + || die "sed failed to set num_cores"
550 +
551 + # sed-in toolchain prefix
552 + sed -i \
553 + -e "s/objdump/${CHOST}-objdump/" \
554 + "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \
555 + || die "sed failed to set toolchain prefix"
556 +
557 + sed -i \
558 + -e 's/ccache_stats = None/return None/' \
559 + "${S}"/python/mozbuild/mozbuild/controller/building.py \
560 + || die "sed failed to disable ccache stats call"
561 +
562 + einfo "Removing pre-built binaries ..."
563 + find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
564 +
565 + # Clearing checksums where we have applied patches
566 + moz_clear_vendor_checksums target-lexicon-0.9.0
567 +
568 + # Create build dir
569 + BUILD_DIR="${WORKDIR}/${PN}_build"
570 + mkdir -p "${BUILD_DIR}" || die
571 +
572 + # Write API keys to disk
573 + echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
574 +
575 + xdg_src_prepare
576 +}
577 +
578 +src_configure() {
579 + local have_switched_compiler=
580 + if use clang && ! tc-is-clang ; then
581 + # Force clang
582 + einfo "Enforcing the use of clang due to USE=clang ..."
583 + have_switched_compiler=yes
584 + CC=${CHOST}-clang
585 + CXX=${CHOST}-clang++
586 + elif ! use clang && ! tc-is-gcc ; then
587 + # Force gcc
588 + have_switched_compiler=yes
589 + einfo "Enforcing the use of gcc due to USE=-clang ..."
590 + CC=${CHOST}-gcc
591 + CXX=${CHOST}-g++
592 + fi
593 +
594 + if [[ -n "${have_switched_compiler}" ]] ; then
595 + # Because we switched active compiler we have to ensure
596 + # that no unsupported flags are set
597 + strip-unsupported-flags
598 + fi
599 +
600 + # Ensure we use correct toolchain
601 + export HOST_CC="$(tc-getBUILD_CC)"
602 + export HOST_CXX="$(tc-getBUILD_CXX)"
603 + tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG
604 +
605 + # Set MOZILLA_FIVE_HOME
606 + export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
607 +
608 + # python/mach/mach/mixin/process.py fails to detect SHELL
609 + export SHELL="${EPREFIX}/bin/bash"
610 +
611 + # Set MOZCONFIG
612 + export MOZCONFIG="${S}/.mozconfig"
613 +
614 + # Initialize MOZCONFIG
615 + mozconfig_add_options_ac '' --enable-application=comm/mail
616 + mozconfig_add_options_ac '' --enable-calendar
617 +
618 + if use lto ; then
619 + if use clang ; then
620 + # Upstream only supports lld when using clang
621 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
622 +
623 + mozconfig_add_options_ac '+lto' --enable-lto=cross
624 + else
625 + # Linking only works when using ld.gold when LTO is enabled
626 + mozconfig_add_options_ac "forcing ld=gold due to USE=lto" --enable-linker=gold
627 +
628 + # ThinLTO is currently broken, see bmo#1644409
629 + mozconfig_add_options_ac '+lto' --enable-lto=full
630 + fi
631 +
632 + if use pgo ; then
633 + mozconfig_add_options_ac '+pgo' MOZ_PGO=1
634 + fi
635 + else
636 + # Avoid auto-magic on linker
637 + if use clang ; then
638 + # This is upstream's default
639 + mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
640 + elif tc-ld-is-gold ; then
641 + mozconfig_add_options_ac "linker is set to gold" --enable-linker=gold
642 + else
643 + mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
644 + fi
645 + fi
646 +
647 + # LTO flag was handled via configure
648 + filter-flags '-flto*'
649 +
650 + mozconfig_use_enable debug
651 + if use debug ; then
652 + mozconfig_add_options_ac '+debug' --disable-optimize
653 + else
654 + if is-flag '-g*' ; then
655 + if use clang ; then
656 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
657 + else
658 + mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
659 + fi
660 + else
661 + mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
662 + fi
663 +
664 + if is-flag '-O0' ; then
665 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
666 + elif is-flag '-O4' ; then
667 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
668 + elif is-flag '-O3' ; then
669 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
670 + elif is-flag '-O1' ; then
671 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
672 + elif is-flag '-Os' ; then
673 + mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
674 + else
675 + mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
676 + fi
677 + fi
678 +
679 + # Debug flag was handled via configure
680 + filter-flags '-g*'
681 +
682 + # Optimization flag was handled via configure
683 + filter-flags '-O*'
684 +
685 + mozconfig_add_options_ac 'Gentoo default' \
686 + --allow-addon-sideload \
687 + --disable-cargo-incremental \
688 + --disable-crashreporter \
689 + --disable-install-strip \
690 + --disable-strip \
691 + --disable-updater \
692 + --enable-official-branding \
693 + --enable-release \
694 + --enable-system-ffi \
695 + --enable-system-pixman \
696 + --host="${CBUILD:-${CHOST}}" \
697 + --libdir="${EPREFIX}/usr/$(get_libdir)" \
698 + --prefix="${EPREFIX}/usr" \
699 + --target="${CHOST}" \
700 + --without-ccache \
701 + --with-intl-api \
702 + --with-libclang-path="$(llvm-config --libdir)" \
703 + --with-system-nspr \
704 + --with-system-nss \
705 + --with-system-png \
706 + --with-system-zlib \
707 + --with-toolchain-prefix="${CHOST}-" \
708 + --with-unsigned-addon-scopes=app,system \
709 + --x-includes="${SYSROOT}${EPREFIX}/usr/include" \
710 + --x-libraries="${SYSROOT}${EPREFIX}/usr/$(get_libdir)"
711 +
712 + # Set update channel
713 + local update_channel=release
714 + [[ -n ${MOZ_ESR} ]] && update_channel=esr
715 + mozconfig_add_options_ac '' --update-channel=${update_channel}
716 +
717 + if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
718 + mozconfig_add_options_ac '' --enable-rust-simd
719 + fi
720 +
721 + if [[ -s "${S}/api-google.key" ]] ; then
722 + local key_origin="Gentoo default"
723 + if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
724 + key_origin="User value"
725 + fi
726 +
727 + mozconfig_add_options_ac "${key_origin}" \
728 + --with-google-location-service-api-keyfile="${S}/api-google.key" \
729 + --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
730 + else
731 + einfo "Building without Google API key ..."
732 + fi
733 +
734 + mozconfig_use_with system-av1
735 + mozconfig_use_with system-harfbuzz
736 + mozconfig_use_with system-harfbuzz system-graphite2
737 + mozconfig_use_with system-icu
738 + mozconfig_use_with system-jpeg
739 + mozconfig_use_with system-libevent system-libevent "${SYSROOT}${EPREFIX}/usr"
740 + mozconfig_use_with system-libvpx
741 + mozconfig_use_with system-webp
742 +
743 + mozconfig_use_enable dbus
744 +
745 + use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
746 +
747 + if use hardened ; then
748 + mozconfig_add_options_ac "+hardened" --enable-hardening
749 + append-ldflags "-Wl,-z,relro -Wl,-z,now"
750 + fi
751 +
752 + mozconfig_use_enable jack
753 +
754 + mozconfig_use_enable pulseaudio
755 + # force the deprecated alsa sound code if pulseaudio is disabled
756 + if use kernel_linux && ! use pulseaudio ; then
757 + mozconfig_add_options_ac '-pulseaudio' --enable-alsa
758 + fi
759 +
760 + mozconfig_use_enable wifi necko-wifi
761 +
762 + if use wayland ; then
763 + mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland
764 + else
765 + mozconfig_add_options_ac '' --enable-default-toolkit=cairo-gtk3
766 + fi
767 +
768 + # Modifications to better support ARM, bug #553364
769 + if use cpu_flags_arm_neon ; then
770 + mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
771 +
772 + if ! tc-is-clang ; then
773 + # thumb options aren't supported when using clang, bug 666966
774 + mozconfig_add_options_ac '+cpu_flags_arm_neon' \
775 + --with-thumb=yes \
776 + --with-thumb-interwork=no
777 + fi
778 + fi
779 +
780 + if [[ ${CHOST} == armv*h* ]] ; then
781 + mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
782 +
783 + if ! use system-libvpx ; then
784 + sed -i \
785 + -e "s|softfp|hard|" \
786 + "${S}"/media/libvpx/moz.build \
787 + || die
788 + fi
789 + fi
790 +
791 + if use clang ; then
792 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
793 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
794 + # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64')
795 + local disable_elf_hack=
796 + if use amd64 ; then
797 + disable_elf_hack=yes
798 + elif use x86 ; then
799 + disable_elf_hack=yes
800 + elif use arm ; then
801 + disable_elf_hack=yes
802 + fi
803 +
804 + if [[ -n ${disable_elf_hack} ]] ; then
805 + mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack
806 + fi
807 + fi
808 +
809 + # Additional ARCH support
810 + case "${ARCH}" in
811 + arm | ppc64)
812 + # Reduce the memory requirements for linking
813 + if use clang ; then
814 + # Nothing to do
815 + :;
816 + elif tc-ld-is-gold ; then
817 + append-ldflags -Wl,--no-keep-memory
818 + else
819 + append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
820 + fi
821 + ;;
822 + esac
823 +
824 + if ! use elibc_glibc ; then
825 + mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
826 + fi
827 +
828 + # Allow elfhack to work in combination with unstripped binaries
829 + # when they would normally be larger than 2GiB.
830 + append-ldflags "-Wl,--compress-debug-sections=zlib"
831 +
832 + # Pass $MAKEOPTS to build system
833 + export MOZ_MAKE_FLAGS="${MAKEOPTS}"
834 +
835 + # Use system's Python environment
836 + export MACH_USE_SYSTEM_PYTHON=1
837 +
838 + # Disable notification when build system has finished
839 + export MOZ_NOSPAM=1
840 +
841 + # Build system requires xargs but is unable to find it
842 + mozconfig_add_options_mk 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
843 +
844 + # Set build dir
845 + mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
846 +
847 + # Handle EXTRA_CONF and show summary
848 + local ac opt hash reason
849 +
850 + # Apply EXTRA_ECONF entries to $MOZCONFIG
851 + if [[ -n ${EXTRA_ECONF} ]] ; then
852 + IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
853 + for opt in "${ac[@]}"; do
854 + mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
855 + done
856 + fi
857 +
858 + echo
859 + echo "=========================================================="
860 + echo "Building ${PF} with the following configuration"
861 + grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
862 + [[ -z ${hash} || ${hash} == \# ]] \
863 + || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
864 + printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
865 + done
866 + echo "=========================================================="
867 + echo
868 +
869 + ./mach configure || die
870 +}
871 +
872 +src_compile() {
873 + local virtx_cmd=
874 +
875 + if use pgo ; then
876 + virtx_cmd=virtx
877 +
878 + # Reset and cleanup environment variables used by GNOME/XDG
879 + gnome2_environment_reset
880 +
881 + addpredict /root
882 + fi
883 +
884 + local -x GDK_BACKEND=x11
885 +
886 + ${virtx_cmd} ./mach build --verbose \
887 + || die
888 +}
889 +
890 +src_install() {
891 + # xpcshell is getting called during install
892 + pax-mark m \
893 + "${BUILD_DIR}"/dist/bin/xpcshell \
894 + "${BUILD_DIR}"/dist/bin/firefox \
895 + "${BUILD_DIR}"/dist/bin/plugin-container
896 +
897 + DESTDIR="${D}" ./mach install || die
898 +
899 + # Upstream cannot ship symlink but we can (bmo#658850)
900 + rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
901 + dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
902 +
903 + # Don't install llvm-symbolizer from sys-devel/llvm package
904 + if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
905 + rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
906 + fi
907 +
908 + # Install policy (currently only used to disable application updates)
909 + insinto "${MOZILLA_FIVE_HOME}/distribution"
910 + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
911 +
912 + # Install system-wide preferences
913 + local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
914 + insinto "${PREFS_DIR}"
915 + newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
916 +
917 + local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
918 +
919 + # Set dictionary path to use system hunspell
920 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
921 + pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
922 + EOF
923 +
924 + # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
925 + if use system-harfbuzz ; then
926 + cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
927 + sticky_pref("gfx.font_rendering.graphite.enabled", true);
928 + EOF
929 + fi
930 +
931 + # Install language packs
932 + local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
933 + if [[ -n "${langpacks}" ]] ; then
934 + moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
935 + fi
936 +
937 + # Install icons
938 + local icon_srcdir="${S}/comm/mail/branding/thunderbird"
939 + local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
940 +
941 + insinto /usr/share/icons/hicolor/symbolic/apps
942 + newins "${icon_symbolic_file}" ${PN}-symbolic.svg
943 +
944 + local icon size
945 + for icon in "${icon_srcdir}"/default*.png ; do
946 + size=${icon%.png}
947 + size=${size##*/default}
948 +
949 + if [[ ${size} -eq 48 ]] ; then
950 + newicon "${icon}" ${PN}.png
951 + fi
952 +
953 + newicon -s ${size} "${icon}" ${PN}.png
954 + done
955 +
956 + # Install menus
957 + local wrapper_wayland="${PN}-wayland.sh"
958 + local wrapper_x11="${PN}-x11.sh"
959 + local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
960 + local display_protocols="auto X11"
961 + local icon="${PN}"
962 + local name="Mozilla ${MOZ_PN^}"
963 + local use_wayland="false"
964 +
965 + if use wayland ; then
966 + display_protocols+=" Wayland"
967 + use_wayland="true"
968 + fi
969 +
970 + local app_name desktop_filename display_protocol exec_command
971 + for display_protocol in ${display_protocols} ; do
972 + app_name="${name} on ${display_protocol}"
973 + desktop_filename="${PN}-${display_protocol,,}.desktop"
974 +
975 + case ${display_protocol} in
976 + Wayland)
977 + exec_command="${PN}-wayland --name ${PN}-wayland"
978 + newbin "${FILESDIR}/${wrapper_wayland}" ${PN}-wayland
979 + ;;
980 + X11)
981 + if ! use wayland ; then
982 + # Exit loop here because there's no choice so
983 + # we don't need wrapper/.desktop file for X11.
984 + continue
985 + fi
986 +
987 + exec_command="${PN}-x11 --name ${PN}-x11"
988 + newbin "${FILESDIR}/${wrapper_x11}" ${PN}-x11
989 + ;;
990 + *)
991 + app_name="${name}"
992 + desktop_filename="${PN}.desktop"
993 + exec_command="${PN}"
994 + ;;
995 + esac
996 +
997 + cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
998 +
999 + sed -i \
1000 + -e "s:@NAME@:${app_name}:" \
1001 + -e "s:@EXEC@:${exec_command}:" \
1002 + -e "s:@ICON@:${icon}:" \
1003 + "${WORKDIR}/${PN}.desktop-template" \
1004 + || die
1005 +
1006 + newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
1007 +
1008 + rm "${WORKDIR}/${PN}.desktop-template" || die
1009 + done
1010 +
1011 + # Install generic wrapper script
1012 + [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
1013 + newbin "${FILESDIR}/${PN}.sh" ${PN}
1014 +
1015 + # Update wrapper
1016 + local wrapper
1017 + for wrapper in \
1018 + "${ED}/usr/bin/${PN}" \
1019 + "${ED}/usr/bin/${PN}-x11" \
1020 + "${ED}/usr/bin/${PN}-wayland" \
1021 + ; do
1022 + [[ ! -f "${wrapper}" ]] && continue
1023 +
1024 + sed -i \
1025 + -e "s:@PREFIX@:${EPREFIX}/usr:" \
1026 + -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
1027 + -e "s:@APULSELIB_DIR@:${apulselib}:" \
1028 + -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
1029 + "${wrapper}" \
1030 + || die
1031 + done
1032 +}
1033 +
1034 +pkg_preinst() {
1035 + xdg_pkg_preinst
1036 +
1037 + # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
1038 + # does not need to be forced into the LD_LIBRARY_PATH
1039 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1040 + einfo "APULSE found; Generating library symlinks for sound support ..."
1041 + local lib
1042 + pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
1043 + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
1044 + # A quickpkg rolled by hand will grab symlinks as part of the package,
1045 + # so we need to avoid creating them if they already exist.
1046 + if [[ ! -L ${lib##*/} ]] ; then
1047 + ln -s "${lib}" ${lib##*/} || die
1048 + fi
1049 + done
1050 + popd &>/dev/null || die
1051 + fi
1052 +}
1053 +
1054 +pkg_postinst() {
1055 + xdg_pkg_postinst
1056 +
1057 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
1058 + elog "Apulse was detected at merge time on this system and so it will always be"
1059 + elog "used for sound. If you wish to use pulseaudio instead please unmerge"
1060 + elog "media-sound/apulse."
1061 + elog
1062 + fi
1063 +
1064 + local show_doh_information
1065 +
1066 + if [[ -z "${REPLACING_VERSIONS}" ]] ; then
1067 + # New install; Tell user that DoH is disabled by default
1068 + show_doh_information=yes
1069 + fi
1070 +
1071 + if [[ -n "${show_doh_information}" ]] ; then
1072 + elog
1073 + elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
1074 + elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
1075 + elog "DNS traffic to Cloudflare by default is not a good idea and applications"
1076 + elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
1077 + elog "(\"Off by choice\") by default."
1078 + elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
1079 + fi
1080 +}