Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/thunderbird/files/, mail-client/thunderbird/, ...
Date: Sun, 01 Sep 2019 12:55:08
Message-Id: 1567342433.3def9606b5fa3df1c930dfa93c69396ab4c569a3.anarchy@gentoo
1 commit: 3def9606b5fa3df1c930dfa93c69396ab4c569a3
2 Author: Jory Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 1 12:53:53 2019 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 1 12:53:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3def9606
7
8 mail-client/thunderbird: Version bump 68.0
9
10 Package-Manager: Portage-2.3.74, Repoman-2.3.17
11 Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>
12
13 mail-client/thunderbird/Manifest | 55 ++
14 .../files/disable-auto-update.policy.json | 5 +
15 .../files/icon/thunderbird-unbranded.desktop | 6 +-
16 .../thunderbird/files/icon/thunderbird.desktop | 5 +-
17 .../mozilla-bug1554949-linux-headers-5.2.patch | 46 ++
18 mail-client/thunderbird/metadata.xml | 24 +-
19 mail-client/thunderbird/thunderbird-68.0-r1.ebuild | 775 +++++++++++++++++++++
20 7 files changed, 904 insertions(+), 12 deletions(-)
21
22 diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
23 index 83c69b21b19..ce277b7be75 100644
24 --- a/mail-client/thunderbird/Manifest
25 +++ b/mail-client/thunderbird/Manifest
26 @@ -1,5 +1,6 @@
27 DIST firefox-52.5-patches-02.tar.xz 15084 BLAKE2B 538dd61dbb7b290add4782b323a62f9ab4dbc57326a9a085710d207752118c504eb030a8741c1eed2e281c8d18e5453210b1905d71439250caa588137bbc37d0 SHA512 b80f9acaf49226cd5c2864714826c5b0e7e918e94c31ec81521b90c47edbb88ea85faa34fc22791efefbcd3867ddc413c563de58ca0f8ce21e10a3858899efce
28 DIST firefox-60.6-patches-07.tar.xz 37404 BLAKE2B 5516ff768bee0253131381fdba3e08785ab31bb29e44ad7f7e2956fb7624fafc9bf22f892ddbd0617e5e7d18500686a9975a60ea77d23a2853f35936cd142030 SHA512 3c4160e632155b0a239e22d0c1b1c701545b0f6d0915f9bdcf3b8431cee1abf650191ffafc5c3224a61279c8b1b52a80444c811a3914e16127411991c963292b
29 +DIST firefox-68.0-patches-11.tar.xz 15404 BLAKE2B 5322c64f7605e30aa1daf650cea19b66ce6c305d2862d76c4a4103676392cbd3029a8f35cbe8ed8077ac7cfe8194c08a0cd3cf25fef75c62a086077d0c5a419a SHA512 1897303b6864ca941afe6ee1d95fd975fb29a01f52d68f9f42c1a9a62d7e4fee0a797aa169b58dc4cf068916e01edaf5c9ad8ade23a997e52c37bd393a142ade
30 DIST gdata-provider-3.3.tar.xz 85628 BLAKE2B 2ccde620b181a2d8678f50d7107373886f3b2e7d1d1e8861c4e42602cedb02108d28e0bf5e5cd9e31474356b70cb99baa7870e20436bc72e25cd8a8fc1353d14 SHA512 ae0c0e6fd42d6e7088256ca8a4be5b0bac84b2f331b51afdc982354caef60b6ba631d4f76bfba7523000b49235c8f8c63704d90acf24b34b14696b709be9342b
31 DIST gdata-provider-4.4.1.tar.xz 78728 BLAKE2B bfe04d714334c38c932d2186ffd859583176ef455b283534c5f8f9e1ab7dc13bdfb8c15db6007de482ab015afc2b8524aad725380bec75ee5f59ea81d6307ba9 SHA512 6c9b5ac41a1064bd1799d2a2f633c3064b27f1294ac3c8908cdef6c1d2eea7b602f2f7bf240b71f507fe9ad286588f030e12f49a41b3bed7bbcc99f3021369f9
32 DIST lightning-5.4.9.tar.xz 1891752 BLAKE2B 90b777814db2962ff669430cea5a29ba1612a842fbb0edaca597539e6e2d728a9d90114ec6196fe0d4758a4738a15bc0c985a345e1062cb125617eb84ecf79e1 SHA512 8e54865d50118154c3918d5dec5dade4fb026c24bc697ad2e360db9741509cbdbb71ba9477508a9b209be6c8a8190fb0b5e03d2e8fedcc2cae18f5c9e5a3a496
33 @@ -116,3 +117,57 @@ DIST thunderbird-60.8.0-vi.xpi 637187 BLAKE2B 7ecd85e521b230a2de85382f0ca2588523
34 DIST thunderbird-60.8.0-zh-CN.xpi 626284 BLAKE2B 90576f52f491b6af98489ee02fd48a7e27ca25eb4090986abe0ae67edc866240fc77e3b9aeeb768759eef9f2cc0b138f6aa60f59473ad2e6d786e578ff5da194 SHA512 35fc72b7894b7a678c57e8b89332a3478bd8eb49db01e8cd74f9a347466f577ddbcfa07dde487478e9c120d462ada430b0a569ab50114a0f603cbceb8223a137
35 DIST thunderbird-60.8.0-zh-TW.xpi 626190 BLAKE2B e388d36ca6963d406372af7d26e9ea612cc69633a162fdf96f298a4d61753058cabdc5c4f400345751e7485a4f1bd5d75cb129dc993722f796936f3659da0ef0 SHA512 41abd5e0a83bb8da396e1b3f469be9c89a09aef74f2a6e9ee7cde27b8d09980b2539d1c36571b65cdafb1bbf765c671105c519db63aa33131781125dacdb3a83
36 DIST thunderbird-60.8.0.source.tar.xz 285643576 BLAKE2B 223915c001c19908db5a4d6a580ff210f45b5c61a06212ba630a2d1b348b49b7067985b3ef42ee1f69fdc14725aecafd36ecea55af42cb6f6e4e00197ffc2178 SHA512 b465544a8cbedf0aff0f737cf98e2d030331f1ea016b2e541dfe30a5cf3172f9075e5a9c8d6b7e0f97ffc2e0d3eebbaf9a39e76a499b9fc976bbc0c944dfd058
37 +DIST thunderbird-68.0-ar.xpi 617171 BLAKE2B 27a411e4d5cee4044ff1bf0d0354aa935fda5eb07b3654e5e001aa23ee4cd1f02c957eb77ac9c6562ff7f80a113ebd5756d121cb8b8032b9353b5b300ff87241 SHA512 1ee4620a960802fc8d73d0ab1afa89bca2b2f835004442ffd76a2fc0e48ab3ea3bd353f6b3e5a9b7111dbcb5b663c8b13e8c48ab3d06b8c7031b004e869e9908
38 +DIST thunderbird-68.0-ast.xpi 551303 BLAKE2B 9ecbf665a1b108c61836566cdfa6808c6f153b56b0295e476567e695f11eacd921cb06eb224736f783d501bcff14a2e01db02668c9d2497cba22e126996f36c3 SHA512 5deb769bcee2826d8e5d35bbaaa1c9df0006d4c83c3c0a008c09f3447b3d4c0972b87dd05b07bd9aadb75053973d837bda1fd469b50c6d21b71b6f42390e547f
39 +DIST thunderbird-68.0-be.xpi 646284 BLAKE2B ffdac9dc29ad762c5b0a204590ffacaf1f072277749695544554d7050ad84611f37106572f80a5a0c473d5ad5d07ac50c5d5beb537014b4b7ea7ef00ce619e1b SHA512 0fd2e939807cd1ede38308b0c931c1b9bf805f48c625fddb7d51f8b01067f68242c77726f442fd662259389bf580550fea92defca9fc1a508c394ef3ac2cddf8
40 +DIST thunderbird-68.0-bg.xpi 646231 BLAKE2B 1bdf1354b9016f65427158b7cdc6a579fca36b2371b822c67a865fe00730a3d27382a2cc95714907b079d98d5c751d6e47c3e50e7213a3745805baa32648f342 SHA512 4dc0f6cb5d9000a6fb247dc838ad0aa78403ec1cd877343e44dd21b3a8538017a697ca17a56305e242e9a4e5b463ff90f97eab4dceac96b7944c42464642b96c
41 +DIST thunderbird-68.0-br.xpi 574856 BLAKE2B 34beea12df59f89e4effc02e2cf80d4c1b6cf2bfc6295e8e0f978f5c50c2db3ef7607a5a9b5cd3729751c183628863f64c64c7ff2db9b9be085f2cf70b0608a2 SHA512 d7da4b12c55a0b5bf708c7ff1d479467fa66a2cc48e3478316b8137d4fd813bc479214a9a2b85633e886237dfa78330ee9ddd4ab8548939ad72cfb1aefee79e3
42 +DIST thunderbird-68.0-ca.xpi 578443 BLAKE2B 115c2a57bbe4a6c87310ac0bf23091db01e03428d8f3daf9c48b785abfca0533677927021d6731a42171f3d603f487708d7374e80025b9fccb744dc5f21a1066 SHA512 240fc2a770c70c8e86fe5b80efb8224d0ad7ab32df94da7ff995a0182a865d167d46410b0f2ac08569ad706340ca44d783e09d29716dac7ad19f21487b8f2f95
43 +DIST thunderbird-68.0-cs.xpi 603044 BLAKE2B b72472d609e23b5f1a1c77152daef006cd2813485240bd7350055a0a7f257becdd675b076d4a9365d997a80dc248c8ae2379a3ebaad1a0e0fb08aa790f47dd29 SHA512 2ad612175d867332907512aa3905bd4662d25c4ff2bd6d9b91ecdb5b4144f98dadd033dca289ec2e1ddbfc7ee381f2ee4e2eef6c0d1d1dee212a404333cdf8a4
44 +DIST thunderbird-68.0-cy.xpi 589906 BLAKE2B 822528f6a5600a62054397fcb0dbe6b1f544560160953de6ef7002e3400b899f648acecf3bc286359561222db6b7377da76cdabcbd3e4402cfd62b2c541d39fa SHA512 9981ad7b33a035d04d90fcdce7a537a08150671f6e81e2dccf61d2a6da213b2b1b7091ef93d80904dfd6cd7bbf978460f3f045384ae9cd5adbcdf747b434ce14
45 +DIST thunderbird-68.0-da.xpi 588353 BLAKE2B 8e45fd37b250e504f58094667704cf5c9d282943c64f8c2a2ee624eba0018b5a0c51897704ba6ce29a4ab3600fe89fb23528300415ce66b2f8d131f0631fa165 SHA512 1c210cebf73d21d59215a54e09b20ec08479e0c4058a92815c2e17c7f9713e3c6387f41194e2f562d3c7500a3e9cf0d0cadce5da83b972a51164a7334888b890
46 +DIST thunderbird-68.0-de.xpi 597808 BLAKE2B 64b275b262c402859e17b2a9caa7099349301a48d8c1370e3eaefcef46e4920933f98cdadcb8dfec4ede0881fd575fd7427a2e4a013a888cfe61c62c62b3732f SHA512 820a94b15c2cf1012739e44f6ff9c475ad60e67622931c696f0443d19892db2b697886452f0a9f9fba7d40611d5700ba602b8acdc6833122524e3aff0b05a976
47 +DIST thunderbird-68.0-el.xpi 699225 BLAKE2B e62dee23e0e92e087adbce7e37ee0e0f79f0ceaddbb0a701e78c17e7772fe611e0969f55614f049af10b688fc1ed2af4dc6d0aced35ea31bd1e3b045015dbfff SHA512 fa73410538d0576f596cc0595961183d81ff786f392a9a8dbaa8f269e16bbc968964be584d50d2170f18295c1b1a4a73514c7134a9d510e5cb2bbc662dc98659
48 +DIST thunderbird-68.0-en-GB.xpi 556407 BLAKE2B 764f6f0e8c81ccdbd5b1e2b362b18c2098b3dfe003afb9fc29f50cf6601d16cbf8d6823a62ee3795ee9a2fed593ed806d07d5c6ecdb373ae39534346d097211c SHA512 1bfe3e4ba5b7458656d96b9aff69c8bf33708f112616c87008081da5ef9c1295b224e828f5e738e1c729433ef2387ed8d9f09fcf4a479a86c73422dd50ae98a5
49 +DIST thunderbird-68.0-es-AR.xpi 596555 BLAKE2B 655546f97c74560c92071a5efb3c4c63328dbdf65951553fd4fc779c5f35f1865d5fe180e87991885f965444abeb3428c24a6f142baa38863fdbada4ef65929f SHA512 3b1e33d1f5bb76a0ea5f361f5d09624294eda230322bd350b1199e7d5ab691ce2a720e2c222bfc0244b537f695e8268529f69b5aeeab3ecdc356a7922e02a49c
50 +DIST thunderbird-68.0-es-ES.xpi 518355 BLAKE2B 6a1157a67f667260b6ec5e16320f9b04793be1a2efacaeb516f96d26aa1e247a3e519ea6c1bfea860df4f33ad25c0ae4db969aaeca2ebafc2629dd3d5f415c74 SHA512 3d24445196608d307a6aa4df261c1d4a6473f2bfb82530bdafdd0203587dccb38443e056abb14d735bf9d5ec1e022dc58e0b595c23c4e197195fbd4985200a50
51 +DIST thunderbird-68.0-et.xpi 573585 BLAKE2B 7ec4dc001da15c653f34f6a809e8ff6f9714013130545843aea23b8daad96a2d910416aeb22e67585e01442de81f433762e3251fc9fc0133d3d4c0de3068d174 SHA512 f540fe0ceab68782c781e81a43d1a425bbcdfa1af49f24113b6b30933cf86e9be7b3e8c34983a5f20311da29f4be90058d07b90297c06d886bcb580ff52fa0b6
52 +DIST thunderbird-68.0-eu.xpi 579949 BLAKE2B 132bd384dc626a26786b45e3bdd67bac278f9d31d3edcc658c707b3981e94a00303a2a79f10632706fa3394447e4941d71dcbc7563f02a44b678fd9f3a4adce8 SHA512 e2472954fd3b309c182f4359d4e34b029008441f4ec17cde94dd6e3ce97bbfc7a3c523f54ad7bcec5df1a4c36fa3190c8908416b6353fa069c50ec59d28e0ff7
53 +DIST thunderbird-68.0-fi.xpi 578422 BLAKE2B db7598b706edf7f28399a72a6b30f2f4ca75a4ac4af4e775086f93c39baeb70abd782b41e2034263e962ec24249b5d7256e2ffbc149e3200501bc600c2ddb57b SHA512 f61565baebe3fe086faf3f77724a27d2494bef6dff6d2c3592559a86871104484807d9760283eb6864c92207ceb12bd8d93f699da71ebd9a6aaaa48b729e40e9
54 +DIST thunderbird-68.0-fr.xpi 607814 BLAKE2B 7a12719e8a8418218b19655d71ca6727628f3841ee7ca857ee3b48926321b29d234863742968e0dfd82f0740ec2a1e92cd1d0b77b230161372cabf1f76deee46 SHA512 8ee94e558cd2854d5d3548f8808b56f4a7c81c57183278b823702499ae186ea2a9ddf91d2a9bc6d0a3b5cf70464a2e5827e8e26daa14ce30623f75d0d324f018
55 +DIST thunderbird-68.0-fy-NL.xpi 594471 BLAKE2B 6f7f9e5a8692efbcd8f487829fbfa7c15d6f330fa5799375f64a4992b16da299902c5bb20277e557ee775ef4b8f8e87b3ebf29b6823dc13a2dbed11af725fe03 SHA512 aa43427cb603bc5deab2c13cc8565aecc8e2bc505961c527e5eab2406868c0f798876501c9e3960bdffdbe4e13b1936a4b18bc728efb9413c3c67e91c9850384
56 +DIST thunderbird-68.0-ga-IE.xpi 588714 BLAKE2B f02c68d432e10d17a497fb08657ede02bbc1ee1e8c34b9c33ea315667241b9f8878558ddf98b4f3398f1dc77042cf501288681b527d92faed2148b3e5070ed29 SHA512 d3a71503480f5116e5224a7f9d46d2c5e7a96e2ae9bcc72db264fd89aaf14f85e3dd901fe8258c3f3cfce3a3f5fe8c1c9682eef08908bbd075374b0a9c56cc50
57 +DIST thunderbird-68.0-gd.xpi 587113 BLAKE2B 80b223cf0e2ce8fa45fb0d1d58a83c729c70a2058c8e115acc9773080c65c42ee8a2fef83572749c89abfb4fd9b73ddf7c4f599cc42e6b125f7d7a0f62346fd6 SHA512 34325901aab83cf273529c0039b9b1b66efc020f1e5f627d7e4b7542bef4fa1ce1bf072ebecd018350d8243929b76bede698157286bd1766472b733950b3853d
58 +DIST thunderbird-68.0-gl.xpi 568400 BLAKE2B 71c7dfd30cff2db1b8ae050bbe5e84dbf7af7bfdec7a344708ddcd08a9fd9af99c1970a3b38488593155c476e4c96172af389fc5f069157685a38cf89437c62f SHA512 0cce294684abe602884f39f06cdf9b757ce42424c1a85baaebbfaeb9db72d90f300706c3e1603d5fad147711d72c0b3e52295a4cd99145298bf3e71f94c0146f
59 +DIST thunderbird-68.0-he.xpi 604792 BLAKE2B 70e298a02f0fdaf532ef460e902aa104d97f2cf379367693ad7ca6c4846267cc56c479a8e9418661a62602a89e9282e5623fafa629ba7bcd204e541ecf1644c6 SHA512 aad7763b63011161bee42d8e1a8dddf118d3ea71b39d135cb049eccf97199ffaf2d10a8211ab1afcebaa2e3492672f98498da7e37eb197168e402964d3917dca
60 +DIST thunderbird-68.0-hr.xpi 583787 BLAKE2B af98f536e0cf26e2d949450efdcc79529056c38cd0eb267b2a3ab5ac5c895ca0ac97b0d78ea3853e03ac0eee51d2b0a45afe2cbe2850da17b7873608f0fa6f85 SHA512 ef327533082e6e8f35ecba996d0ae73c4d2e1f18d4dac7d323f7de2296394ad5ab26ecb2b996210c5d28319546d287addad74623ffed801ac548f8529624d04f
61 +DIST thunderbird-68.0-hsb.xpi 616039 BLAKE2B fedeef8593a328aa262985cd3982a1c23cf2e9da2f3ab119ef5424a71ca2fba23bc76d1534b682ef92212a58fef150266d3240ee934a53e8e5a8118b4203a41a SHA512 9254218b7628cdaf97af82239a05b8287cd3e07c01958a923d67a5f3b681f52c3ae96b8c33127b289f080eaf69e651218cfe9ebaa49f9c55303784658e79a4f2
62 +DIST thunderbird-68.0-hu.xpi 618159 BLAKE2B d215510661fbfc91345e3a4fab6bc97b22f2cc980c8b121c7403f2ecbaef75e9036f962316f0f4d1ff5afba20faac95f7e1efb205532bb6e25bc3d558b145cab SHA512 4da44d0f54ab8832e8eb5b4484fc06fb3bce0588fd0a4a01ebcc8f42f44c2600df368c7b9a7ecd55fb0473e6f1ce91fd26b6e6cf82f62d6f34c96345b4139027
63 +DIST thunderbird-68.0-hy-AM.xpi 630527 BLAKE2B fd238ef369849e74a4302dfd9835d9cfc7a9086182d2f06597a34a54b25d15b433b6f29472df25c638ba7722b597115f56f08b604c1e56354d07e6f0d1a0acdc SHA512 1884f9a7ee6ca9b5fd3104b446bc1779a5021de275ca245a7796dda487622ffb35f92b3693a48bcc9983bb79a82be700878546aa5321e29e7aaa7d63cb63362e
64 +DIST thunderbird-68.0-id.xpi 567750 BLAKE2B 829b7d86b6a7f486a0500fb76d8fe20a7de1e4e18cf2b817bdd23c6b3b26c3b518fb647c7d983be3812c59427700c1cabd1761a7c1428f8c3400dcc98d4eeb9e SHA512 e154cddeb48cbbbe090f42ae5fea785bca4086b753b6eecb958568a30c7970c761d672b164c970f2b06e6c446da34e5a70935e54c3886195b946b6c66dc1aac7
65 +DIST thunderbird-68.0-is.xpi 575444 BLAKE2B e1469a504c02d13c0229146c5e95dc411c7881a2dd73e3b83b32872526a8ced983e4c41f08efba7ca193027b9c4e3ef85e836303ddd889b35a87c676c654609a SHA512 e7fa884cea521f95f70840ab1e5c01ef0ae73c8c352b8201df95182864f2fb467dede7c1de5b8ee8a4b09212b1581f4e52fcc608e6463b581af0976a35c9685d
66 +DIST thunderbird-68.0-it.xpi 489522 BLAKE2B b48cf65017df7a97576d58e69c89e22e5d4b919a167a7cb11c942511150ae96fb7727e74ae053ce8192b93173c655ebd9d11c5befe331266d0b9ff48dd0f3eb9 SHA512 2242f359661904027afad7ca3edaa0af3e7ba2737b4e7a217efae55d3d7caae629dcd913945ae417de04197e70bc121370ddc92e11fd888dc57977ae803fde2d
67 +DIST thunderbird-68.0-ja.xpi 643578 BLAKE2B 86ea1d5494d69d5bf5c9ef33baf627c807f15b3da5fef79ade76a320e42bd163d2bf26bac8c3b58e103b4b68e5f729f281cc0a898a073e300069c26bc07b76bf SHA512 cbbf432c8f0eef14bd30d080187ed366c391ce98b963a7f413c2bcbf816a4c032c73daedd061cfde8088e6b8538a5286d74464762d56bfe709f737b4622dc277
68 +DIST thunderbird-68.0-ko.xpi 620532 BLAKE2B 640c4a4718e9fb75e4e57e48cc72e3ea69a59d45cb2755aeed44503bee1a6727615eeb06f46dec8aa10e98fb3a1ed27e70fc2b8b8e3bf47f342640c7b0c6ed64 SHA512 44b3714893997448cd6cb08793af861a434f1aedd9b52ff5ad4b461634fc8506958b2b4721cec906b623de91cd3fb948500f7d4633878c0331b7f98b529d4242
69 +DIST thunderbird-68.0-lt.xpi 603849 BLAKE2B f3ba5e2f40a4d4e1ed6819559248f65cd738fa35db56a3ca24eaa5a32721867abb28a16d61c1087f3397a8a63c01830cc1d35c0ce51d1487fb4d581241ddc7e1 SHA512 43cdc2e96c2d4897274c7e54efd64bb0ffc13f0ef7cd782937426df3f6f60d6bf45ec1f8e1f5a474b946c3a5c7e3ce055dae4d7526cc2462178d1f3f474145de
70 +DIST thunderbird-68.0-nb-NO.xpi 574024 BLAKE2B 95b409936005b7d94a3c1c54ea6b3032e47d4ffbee731b06e1dddee9e0077e4eded55ab3b76e1cfde619a6e4aed586a7f396c85db2026c358a1240f81f332320 SHA512 9dbf9ef59a3366d6901a30ef6511e41e32cb37d507c8867128394028f06f69fbd85de5d3fd7a1a3b1a18e60a40d91d66f569fcfa33c28f3de42f4a402a148e9d
71 +DIST thunderbird-68.0-nl.xpi 581358 BLAKE2B 35d574bbcb2348dcd864a9035d63189b0b5c6bca22b6123d04a234b7ee74a1542b80e9317aaaa83056ee435829284fd006d102ada8482bbd438721d55b29a203 SHA512 d421b341edda4a6fca9907df21a86a69d69f8c67a74fa8ccfa6eb9ed12971ffaca17ef28ce9002888d7dbccb99b29312a53277e29fab080009a0ebc0a67d4399
72 +DIST thunderbird-68.0-nn-NO.xpi 574952 BLAKE2B 15be15620ffbf34bf2149d1ebf9f7fa539478253a0ce06234cc011a5076efa4cd70f6739997cc131e300657bea2c91e9b4399b136da712ddebd1eb0f4cb81cbf SHA512 f2eb82d0364883d683e99c1fbc8d31ff7275d72a439859eb51b6e190c3411333f0102736ee206547d9578d4e6aa33f9ac7843c0b18ed2d4e1bb52cb5b4aa37fa
73 +DIST thunderbird-68.0-pl.xpi 576090 BLAKE2B aad0754f3e0d7ea994f71e46160d71bd54573a0765dc5978022f6255eb3f04cf28ec1ce7eafb2450c9fcfae3c0bb1897afb85459da9febfc6770458ff8421223 SHA512 73d931350b429fa61b822ec19fd169abeefbbf66dc496e2cc694763e28c2f3264996ca07deaf6819f91cc08e3fc11377e1a67dd98df5de2fcdc2e0ef053f35b0
74 +DIST thunderbird-68.0-pt-BR.xpi 589839 BLAKE2B 65402956dc9b102716c1ef7ffd2fdd9ac1236aa85aca8e5765fc8c720ae34b0bdab98077dc42fe1a6560c67fec5a06d62283b89217c1e5ff3c5fac2100e94313 SHA512 7a0d71960eb5d23bb1f5979d321c463cfcf8ebce5b60fc370e922468e8d3d4e95230549b447c32e70d75d39aa1a5b4ea2d793f423e1da8dc62a9a2be54796701
75 +DIST thunderbird-68.0-pt-PT.xpi 588106 BLAKE2B 741c7b0bedd2219bd8c274d1a192624c107344a0e8ce77c0f7a9f20db30d58a4519502cec617119d5fedd9ba1b47a2bd692762841c1654ab0bac28c314378aad SHA512 483d732c54bf516b9b06cdfaa48c246799ffa8cdb1dfb1fe67231a83abd0d2e5f5470133528f1fd297e6d961cff98404f6db3701bf48c48d25be7517e4965f0f
76 +DIST thunderbird-68.0-rm.xpi 578053 BLAKE2B 0864fd59d6a96a17f486a5570d69ea7e933e11225415357d02b11d01d3cfd24e9d627b312913fbb8a276d59aa504b875e1fdbfff987cf1ff8619ba74ee13484f SHA512 1bbe684e3a696103190d926dc1ec1e27453911b7267c36b87f615f1c97d6720513320f90992c48cd1293f37fd009f338da6c6832b49b0597af97d928058271c8
77 +DIST thunderbird-68.0-ro.xpi 594844 BLAKE2B a6ecaafcde838a1f2a6e33cfadc5f8bf2f6c873740677b9e0de75ee9c3b0b973f806407857ea27876f57149b1d7aadec31a9bb3216dfa494be52851c2ba66d1b SHA512 fa8c7e41fa9e15e2bb248fb2960221d3b5c45aae1e094593e7f7b03645d1a85d93de2d46002a2cf31a487e0d25079905372acbf22f9484bfe747a26ca90724f2
78 +DIST thunderbird-68.0-ru.xpi 683329 BLAKE2B 17b19ec36e586d4c515bd86a2dfa3041b5d6ddbe64c1e45d252eeecc9693bf6b70855f750960231eb2bef64e3a5f944b24f414f967634bc6c7b4024bdca293ab SHA512 ab70a04185bbcef1722bc6ac127289acce4bc6410c7732d3fe653d35d3a23b14eed9c51feed317efec47ffb5e8e560c3faa80550043beddff94be90c8be9ad9d
79 +DIST thunderbird-68.0-si.xpi 637408 BLAKE2B 5bd47ea8a09a76cb2aaf58e1e9acde919dad7de34cc86989cfe054689e13514f027061c36d2bf27122875db4c0406e759b72a8bd9117637af1bf60cfb6c6ee1a SHA512 1eb0f6728c205faee0c5e88c3801eda8f35a03e0fd5c20b7fbfa6c29aa2f804ef1d157342c17666b086c33305dbf53b706144b26b4172d6e8c91c782037f0d47
80 +DIST thunderbird-68.0-sk.xpi 609756 BLAKE2B 20d73444d2ae0abb41561cafff118a5a00451b7b52848c102801f9d4a860a8959ce969bf5ff1bea1e82dd909d2b853b2406d03742580ff2d74e684c00e25b137 SHA512 53f2fd7c22ee9381b38fa75290c65c57a452335944cb13cf710c064811207af2ffdbd11177f378d0cab6a5a5ac4ee3709b427f1c42b09ba3931bd73a3d503526
81 +DIST thunderbird-68.0-sl.xpi 590632 BLAKE2B 1cf13e500189398ce3bbaa495c0c1c69ed23443ec3fe3f96598ff3fd54b576715ca2d2c5691ac0c279b417effa1e4a477170ade32169ca93d932223642bf4a75 SHA512 b47d6ca7e6e110447e76f90d5e0d7ed23533da369a74578bb664c8a25539e4fd8583747fd4efa8ffafcfa5a01b2ed9c66c5a152fdd1f468ab2da00f6946078b6
82 +DIST thunderbird-68.0-sq.xpi 598904 BLAKE2B d34cda28594747e4a6ad699c071aebb599e3bb12bed97545dfb9baf3e852ec6c207e88dbfa553ab411e6d7ff5fc7b415c2f359e55102ef67e2fd42bed3422085 SHA512 7beafb5e1da2355866d4d14e38d6d0712fc6f10215a4923a941c1d1c775e79414b0ba58b647f79a4d36cf07c825d69e108d581c0ff2471a76500714499d9f57a
83 +DIST thunderbird-68.0-sr.xpi 624900 BLAKE2B 86950081a0b20b1db3df4c140fcdf1e9fcc3cbf8cf1287942a889dc6e18ccdb71e60e738f1e8968c265484166aea1fc6dec1398ad6377ae53c7d7753c812381f SHA512 f6b925a53e37ab50431a0062dd53171a1e59c5927c82706eea337d9eb7f3b03090bc383b1b8da5dddbbc67e3677962c0b1d79196ad839af7e7aa56cec73ea44f
84 +DIST thunderbird-68.0-sv-SE.xpi 591599 BLAKE2B c9ad5ffb39cca198da8b9ad3c9599c0be400d0eae6901c4acb82b9c71472ca78e4765fed1f85d2c1ea74fdcdd24670dce8340c392f1c71463e076566ee0c686c SHA512 24834d4e6a8badc3a4edf5d93e5a83249b96fff3cc9b918eae06c99457ae9ee399a2ac479ef3ab0cabb4d06dca44e56576913162dce643f725ecb051b5b6f283
85 +DIST thunderbird-68.0-tr.xpi 599711 BLAKE2B bb852ad1127ba445fd5f64f6b2cc90723cfc10a396915a73fc2c297872720abd9a166a6a24993fc08b5eb0d4ccfc8905e374886a13040e151e65e7921c584373 SHA512 83bcec20d0a137f5a7f480bfe3b05d32549fa7a4e07b449d96023a7b6b0b8a7e87ee0202de2a6e6b77e825ce048b021f27a243f7a8f6bce09fb0a8bd6dcc8306
86 +DIST thunderbird-68.0-uk.xpi 671458 BLAKE2B bd66d58c1a0770e4d4453d8b5d305943aa5012d365b4520670ee61cad1b569945bde7540a5747f66d6ad9cd56f8499e1111d90d2666d91b9149e7f34653f6f9d SHA512 55330dbd8bce9cdef80a081ab7219991e30da74a4e68eb7447c9a01f6a07db9f7fb12d2a7a826767cb70c112274c36119c9fe77f7896af9e2e28211bfc75f0e5
87 +DIST thunderbird-68.0-vi.xpi 623426 BLAKE2B 7692f160aa39dd0c221e6037074d02eaab8bcdc8f0f8c9a809211824fb0340be7ed7587eeb0c7bff27ced9b06f7f084a46d0d25354f0d5ea905bd7562625d701 SHA512 4fa2b202881d45680da6fed5e3c9332b64c6aa539e6f19f4568f06ec0819e7157392270a4009db2e45ba9815ce696a87179b2709839d68236405e88542892857
88 +DIST thunderbird-68.0-zh-CN.xpi 626822 BLAKE2B f752bbef52690476470161486e4ace8daaae45941f4f501341c70794ffcda1e3ee40436083eb543271cf0f6325e5a18c2ec912284ab89ca598a404e32e58e27d SHA512 5941448b8971b54ae783c7dcff796375aa60e9ae40f9d4e22bb4ae6d25454031defe8c49fdbfe9bccd397d41c74b860677ebdeded9471e0d90335036964ec74d
89 +DIST thunderbird-68.0-zh-TW.xpi 627478 BLAKE2B a2c827e9cdc6f6fa2fa2a59a31b3e719de2120d4d5e83ca1773e77191f343b81764bd7eba8cf7c806579dadf67b792f490a8ff3312ef9018be75e31c7f1e6013 SHA512 69780086f4749b01bf6b3a3c27422d239c78851de371eeea6212c69d347ede4620edba5f59045bfb1b008a083535c348056be1b44d61c188afb9c207f1513e9f
90 +DIST thunderbird-68.0.source.tar.xz 338451344 BLAKE2B 02e262b860076fe84adcfde2e208868576a48e63ceef4327e9a5196532e50c2a2b5069868d3b91d683373899257f377daf7a86d33eee1a0d4b8174e6eece2fea SHA512 91f82016b71d65b58c1383248ac6f7a8cd8217409323eb14e8aabf2e509391bba4d18e0aa6d0cdac191d10e9794977f22f509078b7c5e3ac7c22afe379a0f299
91
92 diff --git a/mail-client/thunderbird/files/disable-auto-update.policy.json b/mail-client/thunderbird/files/disable-auto-update.policy.json
93 new file mode 100644
94 index 00000000000..f36622021fc
95 --- /dev/null
96 +++ b/mail-client/thunderbird/files/disable-auto-update.policy.json
97 @@ -0,0 +1,5 @@
98 +{
99 + "policies": {
100 + "DisableAppUpdate": true
101 + }
102 +}
103
104 diff --git a/mail-client/thunderbird/files/icon/thunderbird-unbranded.desktop b/mail-client/thunderbird/files/icon/thunderbird-unbranded.desktop
105 index c9daa1b1d87..055bca45ef8 100644
106 --- a/mail-client/thunderbird/files/icon/thunderbird-unbranded.desktop
107 +++ b/mail-client/thunderbird/files/icon/thunderbird-unbranded.desktop
108 @@ -5,6 +5,6 @@ Exec=/usr/bin/thunderbird %u
109 Icon=thunderbird-icon-unbranded
110 Terminal=false
111 Type=Application
112 -Categories=Office;Network;Email;
113 -MimeType=x-scheme-handler/mailto;
114 -StartupNotify=true
115 +Categories=Office;Email;
116 +MimeType=text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;
117 +
118
119 diff --git a/mail-client/thunderbird/files/icon/thunderbird.desktop b/mail-client/thunderbird/files/icon/thunderbird.desktop
120 index 97c17a3f2b9..3ab5826de9f 100644
121 --- a/mail-client/thunderbird/files/icon/thunderbird.desktop
122 +++ b/mail-client/thunderbird/files/icon/thunderbird.desktop
123 @@ -5,6 +5,5 @@ Exec=/usr/bin/thunderbird %u
124 Icon=thunderbird-icon
125 Terminal=false
126 Type=Application
127 -Categories=Office;Network;Email;
128 -MimeType=x-scheme-handler/mailto;
129 -StartupNotify=true
130 +Categories=Office;Email;
131 +MimeType=text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;
132
133 diff --git a/mail-client/thunderbird/files/mozilla-bug1554949-linux-headers-5.2.patch b/mail-client/thunderbird/files/mozilla-bug1554949-linux-headers-5.2.patch
134 new file mode 100644
135 index 00000000000..2de12500394
136 --- /dev/null
137 +++ b/mail-client/thunderbird/files/mozilla-bug1554949-linux-headers-5.2.patch
138 @@ -0,0 +1,46 @@
139 +# HG changeset patch
140 +# User Emilio Cobos Álvarez <emilio@××××××.io>
141 +# Date 1559048542 0
142 +# Node ID 03fe96d5969ac6885ca539bf7759780ed75a1375
143 +# Parent e6cf9d0df0793e7f76cb2877989fc5aeca98e530
144 +Bug 1554949 - Fix WebRTC build failure with newer linux kernel. r=dminor, a=RyanVM DONTBUILD
145 +
146 +Recent kernel commit[1] moved a bit the define for this constant. This revealed
147 +a missing include in WebRTC.
148 +
149 +I filed this upstream in:
150 +
151 + * https://bugs.chromium.org/p/webrtc/issues/detail?id=10677
152 +
153 +And sent a patch in:
154 +
155 + * https://webrtc-review.googlesource.com/c/src/+/138270
156 +
157 +[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0768e17073dc5
158 +
159 +Differential Revision: https://phabricator.services.mozilla.com/D32809
160 +
161 +diff --git a/media/webrtc/trunk/webrtc/rtc_base/physicalsocketserver.cc b/media/webrtc/trunk/webrtc/rtc_base/physicalsocketserver.cc
162 +--- a/media/webrtc/trunk/webrtc/rtc_base/physicalsocketserver.cc
163 ++++ b/media/webrtc/trunk/webrtc/rtc_base/physicalsocketserver.cc
164 +@@ -56,16 +56,19 @@
165 + #if defined(WEBRTC_POSIX)
166 + #include <netinet/tcp.h> // for TCP_NODELAY
167 + #define IP_MTU 14 // Until this is integrated from linux/in.h to netinet/in.h
168 + typedef void* SockOptArg;
169 +
170 + #endif // WEBRTC_POSIX
171 +
172 + #if defined(WEBRTC_POSIX) && !defined(WEBRTC_MAC) && !defined(WEBRTC_BSD) && !defined(__native_client__)
173 ++#if defined(WEBRTC_LINUX)
174 ++#include <linux/sockios.h>
175 ++#endif
176 +
177 + int64_t GetSocketRecvTimestamp(int socket) {
178 + struct timeval tv_ioctl;
179 + int ret = ioctl(socket, SIOCGSTAMP, &tv_ioctl);
180 + if (ret != 0)
181 + return -1;
182 + int64_t timestamp =
183 + rtc::kNumMicrosecsPerSec * static_cast<int64_t>(tv_ioctl.tv_sec) +
184 +
185
186 diff --git a/mail-client/thunderbird/metadata.xml b/mail-client/thunderbird/metadata.xml
187 index 5216de1435e..8b7b0b42c75 100644
188 --- a/mail-client/thunderbird/metadata.xml
189 +++ b/mail-client/thunderbird/metadata.xml
190 @@ -6,17 +6,26 @@
191 <name>Gentoo Mozilla Team</name>
192 </maintainer>
193 <use>
194 - <flag name="bindist">Disable official Thunderbird branding (icons, name) which
195 + <flag name="bindist">Disable official Firefox branding (icons, name) which
196 are not binary-redistributable according to upstream.</flag>
197 <flag name="clang">Use Clang compiler instead of GCC</flag>
198 - <flag name="crypt"> Enable encryption support with enigmail</flag>
199 - <flag name="mozdom">Enable Mozilla's DOM inspector</flag>
200 - <flag name="lightning">Enable app-global calendar support
201 - (note 38.0 and above bundles calendar support when this flag is off)</flag>
202 <flag name="custom-optimization">Build with user-specified compiler optimizations
203 (-Os, -O0, -O1, -O2, -O3) from CFLAGS (unsupported)</flag>
204 + <flag name="eme-free">Disable EME (DRM plugin) cabability at build time</flag>
205 + <flag name="geckodriver">Enable WebDriver support</flag>
206 + <flag name="gmp-autoupdate">Allow Gecko Media Plugins (binary blobs) to be automatically
207 + downloaded and kept up-to-date in user profiles</flag>
208 <flag name="gtk2">Use the cairo-gtk2 rendering engine instead of the default cairo-gtk3</flag>
209 + <flag name="lightning">Enable app-global calendar support
210 + (note 38.0 and above bundles calendar support when this flag is off)</flag>
211 + <flag name="lto">Enable Link Time Optimization (LTO). Requires Gold linker when using GCC
212 + or LDD linker when using Clang</flag>
213 + <flag name="mozdom">Enable Mozilla's DOM inspector</flag>
214 + <flag name="pgo">Add support for profile-guided optimization using gcc-4.5,
215 + for faster binaries. This option will double the compile time.</flag>
216 <flag name="rust">Enable support for using rust compiler (experimental)</flag>
217 + <flag name="system-av1">Use the system-wide <pkg>media-libs/dav1d</pkg>
218 + and <pkg>media-libs/libaom</pkg> library instead of bundled.</flag>
219 <flag name="system-cairo">Use the system-wide <pkg>x11-libs/cairo</pkg>
220 instead of bundled.</flag>
221 <flag name="system-harfbuzz">Use the system-wide <pkg>media-libs/harfbuzz</pkg>
222 @@ -31,6 +40,9 @@
223 instead of bundled.</flag>
224 <flag name="system-sqlite">Use the system-wide <pkg>dev-db/sqlite</pkg>
225 installation with secure-delete enabled</flag>
226 - <flag name="minimal">Remove the software development kit and headers</flag>
227 + <flag name="system-webp">Use the system-wide <pkg>media-libs/libwebp</pkg>
228 + instead of bundled.</flag>
229 +
230 +
231 </use>
232 </pkgmetadata>
233
234 diff --git a/mail-client/thunderbird/thunderbird-68.0-r1.ebuild b/mail-client/thunderbird/thunderbird-68.0-r1.ebuild
235 new file mode 100644
236 index 00000000000..bc3e764d058
237 --- /dev/null
238 +++ b/mail-client/thunderbird/thunderbird-68.0-r1.ebuild
239 @@ -0,0 +1,775 @@
240 +# Copyright 1999-2019 Gentoo Authors
241 +# Distributed under the terms of the GNU General Public License v2
242 +
243 +EAPI=6
244 +VIRTUALX_REQUIRED="pgo"
245 +WANT_AUTOCONF="2.1"
246 +MOZ_ESR=""
247 +MOZ_LIGHTNING_VER="6.2.5"
248 +MOZ_LIGHTNING_GDATA_VER="4.4.1"
249 +
250 +PYTHON_COMPAT=( python3_{5,6,7} )
251 +PYTHON_REQ_USE='ncurses,sqlite,ssl,threads(+)'
252 +
253 +# This list can be updated using scripts/get_langs.sh from the mozilla overlay
254 +MOZ_LANGS=(ar ast be bg br ca cs cy da de el en en-GB en-US es-AR
255 +es-ES et eu fi fr fy-NL ga-IE gd gl he hr hsb hu hy-AM id is it
256 +ja ko lt nb-NO nl nn-NO pl pt-BR pt-PT rm ro ru si sk sl sq sr
257 +sv-SE tr uk vi zh-CN zh-TW )
258 +
259 +# Convert the ebuild version to the upstream mozilla version, used by mozlinguas
260 +MOZ_PV="${PV/_beta/b}"
261 +
262 +# Patches
263 +PATCHFF="firefox-68.0-patches-11"
264 +
265 +MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases"
266 +
267 +# ESR releases have slightly version numbers
268 +if [[ ${MOZ_ESR} == 1 ]]; then
269 + MOZ_PV="${MOZ_PV}esr"
270 +fi
271 +MOZ_P="${PN}-${MOZ_PV}"
272 +
273 +LLVM_MAX_SLOT=8
274 +
275 +DESCRIPTION="Thunderbird Mail Client"
276 +HOMEPAGE="https://www.mozilla.org/thunderbird"
277 +
278 +KEYWORDS="~amd64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
279 +SLOT="0"
280 +LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
281 +IUSE="bindist clang cpu_flags_x86_avx2 dbus debug eme-free geckodriver
282 + +gmp-autoupdate hardened jack lightning lto neon pgo pulseaudio
283 + selinux startup-notification +system-av1 +system-harfbuzz +system-icu
284 + +system-jpeg +system-libevent +system-sqlite +system-libvpx
285 + +system-webp test wayland wifi"
286 +RESTRICT="!bindist? ( bindist )
287 + !test? ( test )"
288 +
289 +PATCH_URIS=( https://dev.gentoo.org/~{anarchy,axs,polynomial-c,whissi}/mozilla/patchsets/${PATCHFF}.tar.xz )
290 +SRC_URI="${SRC_URI}
291 + ${MOZ_HTTP_URI}/${MOZ_PV}/source/${MOZ_P}.source.tar.xz
292 + https://dev.gentoo.org/~axs/distfiles/lightning-${MOZ_LIGHTNING_VER}.tar.xz
293 + lightning? ( https://dev.gentoo.org/~axs/distfiles/gdata-provider-${MOZ_LIGHTNING_GDATA_VER}.tar.xz )
294 + ${PATCH_URIS[@]}"
295 +
296 +inherit check-reqs eapi7-ver flag-o-matic toolchain-funcs eutils \
297 + gnome2-utils llvm mozcoreconf-v6 pax-utils xdg-utils \
298 + autotools mozlinguas-v2 virtualx
299 +
300 +CDEPEND="
301 + >=dev-libs/nss-3.44.1
302 + >=dev-libs/nspr-4.21
303 + dev-libs/atk
304 + dev-libs/expat
305 + >=x11-libs/cairo-1.10[X]
306 + >=x11-libs/gtk+-2.18:2
307 + >=x11-libs/gtk+-3.4.0:3[X]
308 + x11-libs/gdk-pixbuf
309 + >=x11-libs/pango-1.22.0
310 + >=media-libs/libpng-1.6.35:0=[apng]
311 + >=media-libs/mesa-10.2:*
312 + media-libs/fontconfig
313 + >=media-libs/freetype-2.4.10
314 + kernel_linux? ( !pulseaudio? ( media-libs/alsa-lib ) )
315 + virtual/freedesktop-icon-theme
316 + dbus? ( >=sys-apps/dbus-0.60
317 + >=dev-libs/dbus-glib-0.72 )
318 + startup-notification? ( >=x11-libs/startup-notification-0.8 )
319 + >=x11-libs/pixman-0.19.2
320 + >=dev-libs/glib-2.26:2
321 + >=sys-libs/zlib-1.2.3
322 + >=virtual/libffi-3.0.10:=
323 + virtual/ffmpeg
324 + x11-libs/libX11
325 + x11-libs/libXcomposite
326 + x11-libs/libXdamage
327 + x11-libs/libXext
328 + x11-libs/libXfixes
329 + x11-libs/libXrender
330 + x11-libs/libXt
331 + system-av1? (
332 + >=media-libs/dav1d-0.3.0:=
333 + >=media-libs/libaom-1.0.0:=
334 + )
335 + system-harfbuzz? ( >=media-libs/harfbuzz-2.4.0:0= >=media-gfx/graphite2-1.3.13 )
336 + system-icu? ( >=dev-libs/icu-63.1:= )
337 + system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
338 + system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] )
339 + system-libvpx? (
340 + >=media-libs/libvpx-1.7.0:0=[postproc]
341 + <media-libs/libvpx-1.8:0=[postproc]
342 + )
343 + system-sqlite? ( >=dev-db/sqlite-3.28.0:3[secure-delete,debug=] )
344 + system-webp? ( >=media-libs/libwebp-1.0.2:0= )
345 + wifi? ( kernel_linux? ( >=sys-apps/dbus-0.60
346 + >=dev-libs/dbus-glib-0.72
347 + net-misc/networkmanager ) )
348 + jack? ( virtual/jack )
349 + selinux? ( sec-policy/selinux-mozilla )"
350 +
351 +RDEPEND="${CDEPEND}
352 + jack? ( virtual/jack )
353 + pulseaudio? ( || ( media-sound/pulseaudio
354 + >=media-sound/apulse-0.1.9 ) )
355 + selinux? ( sec-policy/selinux-mozilla )"
356 +
357 +DEPEND="${CDEPEND}
358 + app-arch/zip
359 + app-arch/unzip
360 + >=dev-util/cbindgen-0.8.7
361 + >=net-libs/nodejs-8.11.0
362 + >=sys-devel/binutils-2.30
363 + sys-apps/findutils
364 + || (
365 + (
366 + sys-devel/clang:8
367 + !clang? ( sys-devel/llvm:8 )
368 + clang? (
369 + =sys-devel/lld-8*
370 + sys-devel/llvm:8[gold]
371 + pgo? ( =sys-libs/compiler-rt-sanitizers-8*[profile] )
372 + )
373 + )
374 + (
375 + sys-devel/clang:7
376 + !clang? ( sys-devel/llvm:7 )
377 + clang? (
378 + =sys-devel/lld-7*
379 + sys-devel/llvm:7[gold]
380 + pgo? ( =sys-libs/compiler-rt-sanitizers-7*[profile] )
381 + )
382 + )
383 + (
384 + sys-devel/clang:6
385 + !clang? ( sys-devel/llvm:6 )
386 + clang? (
387 + =sys-devel/lld-6*
388 + sys-devel/llvm:6[gold]
389 + pgo? ( =sys-libs/compiler-rt-sanitizers-6*[profile] )
390 + )
391 + )
392 + )
393 + pulseaudio? ( media-sound/pulseaudio )
394 + >=virtual/cargo-1.34.0
395 + >=virtual/rust-1.34.0
396 + wayland? ( >=x11-libs/gtk+-3.11:3[wayland] )
397 + amd64? ( >=dev-lang/yasm-1.1 virtual/opengl )
398 + x86? ( >=dev-lang/yasm-1.1 virtual/opengl )
399 + !system-av1? (
400 + amd64? ( >=dev-lang/nasm-2.13 )
401 + x86? ( >=dev-lang/nasm-2.13 )
402 + )"
403 +
404 +REQUIRED_USE="wifi? ( dbus )
405 + pgo? ( lto )"
406 +
407 +REQUIRED_USE="wifi? ( dbus )"
408 +
409 +S="${WORKDIR}/${MOZ_P%b[0-9]*}"
410 +
411 +BUILD_OBJ_DIR="${S}/tbird"
412 +
413 +# allow GMP_PLUGIN_LIST to be set in an eclass or
414 +# overridden in the enviromnent (advanced hackers only)
415 +if [[ -z $GMP_PLUGIN_LIST ]] ; then
416 + GMP_PLUGIN_LIST=( gmp-gmpopenh264 gmp-widevinecdm )
417 +fi
418 +
419 +llvm_check_deps() {
420 + if ! has_version --host-root "sys-devel/clang:${LLVM_SLOT}" ; then
421 + ewarn "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
422 + return 1
423 + fi
424 +
425 + if use pgo ; then
426 + if ! has usersandbox $FEATURES ; then
427 + eerror "You must enable usersandbox as X server can not run as root!"
428 + fi
429 + fi
430 +
431 + if use clang ; then
432 + if ! has_version --host-root "=sys-devel/lld-${LLVM_SLOT}*" ; then
433 + ewarn "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
434 + return 1
435 + fi
436 +
437 + if use pgo ; then
438 + if ! has_version --host-root "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
439 + ewarn "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
440 + return 1
441 + fi
442 + fi
443 + fi
444 +
445 + einfo "Will use LLVM slot ${LLVM_SLOT}!"
446 +}
447 +
448 +pkg_setup() {
449 + moz_pkgsetup
450 +
451 + # Avoid PGO profiling problems due to enviroment leakage
452 + # These should *always* be cleaned up anyway
453 + unset DBUS_SESSION_BUS_ADDRESS \
454 + DISPLAY \
455 + ORBIT_SOCKETDIR \
456 + SESSION_MANAGER \
457 + XDG_SESSION_COOKIE \
458 + XAUTHORITY
459 +
460 + if ! use bindist ; then
461 + einfo
462 + elog "You are enabling official branding. You may not redistribute this build"
463 + elog "to any users on your network or the internet. Doing so puts yourself into"
464 + elog "a legal problem with Mozilla Foundation."
465 + elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag."
466 + fi
467 +
468 + addpredict /proc/self/oom_score_adj
469 +
470 + llvm_pkg_setup
471 +}
472 +
473 +pkg_pretend() {
474 + # Ensure we have enough disk space to compile
475 + if use pgo || use debug || use test ; then
476 + CHECKREQS_DISK_BUILD="8G"
477 + else
478 + CHECKREQS_DISK_BUILD="4G"
479 + fi
480 +
481 + check-reqs_pkg_setup
482 +}
483 +
484 +src_unpack() {
485 + unpack ${A}
486 +
487 + # Unpack language packs
488 + mozlinguas_src_unpack
489 +}
490 +
491 +src_prepare() {
492 + # Apply firefox patchset then apply thunderbird patches
493 + eapply "${WORKDIR}/firefox"
494 + eapply "${FILESDIR}/mozilla-bug1554949-linux-headers-5.2.patch"
495 + pushd "${S}"/comm &>/dev/null || die
496 + eapply "${FILESDIR}/1000_fix_gentoo_preferences.patch"
497 + popd &>/dev/null || die
498 +
499 + # Allow user to apply any additional patches without modifing ebuild
500 + eapply_user
501 +
502 + # Enable gnomebreakpad
503 + if use debug ; then
504 + sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \
505 + "${S}"/build/unix/run-mozilla.sh || die "sed failed!"
506 + fi
507 +
508 + # Drop -Wl,--as-needed related manipulation for ia64 as it causes ld sefgaults, bug #582432
509 + if use ia64 ; then
510 + sed -i \
511 + -e '/^OS_LIBS += no_as_needed/d' \
512 + -e '/^OS_LIBS += as_needed/d' \
513 + "${S}"/widget/gtk/mozgtk/gtk2/moz.build \
514 + "${S}"/widget/gtk/mozgtk/gtk3/moz.build \
515 + || die "sed failed to drop --as-needed for ia64"
516 + fi
517 +
518 + # Fix sandbox violations during make clean, bug 372817
519 + sed -e "s:\(/no-such-file\):${T}\1:g" \
520 + -i "${S}"/config/rules.mk \
521 + -i "${S}"/nsprpub/configure{.in,} \
522 + || die
523 +
524 + # Don't exit with error when some libs are missing which we have in
525 + # system.
526 + sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \
527 + -i "${S}"/comm/mail/installer/Makefile.in || die
528 +
529 + # Don't error out when there's no files to be removed:
530 + sed 's@\(xargs rm\)$@\1 -f@' \
531 + -i "${S}"/toolkit/mozapps/installer/packager.mk || die
532 +
533 + # Keep codebase the same even if not using official branding
534 + sed '/^MOZ_DEV_EDITION=1/d' \
535 + -i "${S}"/browser/branding/aurora/configure.sh || die
536 +
537 + # rustfmt, a tool to format Rust code, is optional and not required to build Firefox.
538 + # However, when available, an unsupported version can cause problems, bug #669548
539 + sed -i -e "s@check_prog('RUSTFMT', add_rustup_path('rustfmt')@check_prog('RUSTFMT', add_rustup_path('rustfmt_do_not_use')@" \
540 + "${S}"/build/moz.configure/rust.configure || die
541 +
542 + # Autotools configure is now called old-configure.in
543 + # This works because there is still a configure.in that happens to be for the
544 + # shell wrapper configure script
545 + eautoreconf old-configure.in
546 +
547 + # Must run autoconf in js/src
548 + cd "${S}"/js/src || die
549 + eautoconf old-configure.in
550 +}
551 +
552 +src_configure() {
553 + MEXTENSIONS="default"
554 + # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
555 + # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
556 + # get your own set of keys.
557 + _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
558 +
559 + # Add information about TERM to output (build.log) to aid debugging
560 + # blessings problems
561 + if [[ -n "${TERM}" ]] ; then
562 + einfo "TERM is set to: \"${TERM}\""
563 + else
564 + einfo "TERM is unset."
565 + fi
566 +
567 + if use clang && ! tc-is-clang ; then
568 + # Force clang
569 + einfo "Enforcing the use of clang due to USE=clang ..."
570 + CC=${CHOST}-clang
571 + CXX=${CHOST}-clang++
572 + strip-unsupported-flags
573 + elif ! use clang && ! tc-is-gcc ; then
574 + # Force gcc
575 + einfo "Enforcing the use of gcc due to USE=-clang ..."
576 + CC=${CHOST}-gcc
577 + CXX=${CHOST}-g++
578 + strip-unsupported-flags
579 + fi
580 +
581 + ####################################
582 + #
583 + # mozconfig, CFLAGS and CXXFLAGS setup
584 + #
585 + ####################################
586 +
587 + mozconfig_init
588 + # common config components
589 + mozconfig_annotate 'system_libs' \
590 + --with-system-zlib \
591 + --with-system-bz2
592 +
593 + # Must pass release in order to properly select linker
594 + mozconfig_annotate 'Enable by Gentoo' --enable-release
595 +
596 + if use pgo ; then
597 + if ! has userpriv $FEATURES ; then
598 + eerror "Building firefox with USE=pgo and FEATURES=-userpriv is not supported!"
599 + fi
600 + fi
601 +
602 + # Don't let user's LTO flags clash with upstream's flags
603 + filter-flags -flto*
604 +
605 + if use lto ; then
606 + local show_old_compiler_warning=
607 +
608 + if use clang ; then
609 + # At this stage CC is adjusted and the following check will
610 + # will work
611 + if [[ $(clang-major-version) -lt 7 ]] ; then
612 + show_old_compiler_warning=1
613 + fi
614 +
615 + # Upstream only supports lld when using clang
616 + mozconfig_annotate "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
617 + else
618 + if [[ $(gcc-major-version) -lt 8 ]] ; then
619 + show_old_compiler_warning=1
620 + fi
621 +
622 + if ! use cpu_flags_x86_avx2 ; then
623 + local _gcc_version_with_ipa_cdtor_fix="8.3"
624 + local _current_gcc_version="$(gcc-major-version).$(gcc-minor-version)"
625 +
626 + if ver_test "${_current_gcc_version}" -lt "${_gcc_version_with_ipa_cdtor_fix}" ; then
627 + # due to a GCC bug, GCC will produce AVX2 instructions
628 + # even if the CPU doesn't support AVX2, https://gcc.gnu.org/ml/gcc-patches/2018-12/msg01142.html
629 + einfo "Disable IPA cdtor due to bug in GCC and missing AVX2 support -- triggered by USE=lto"
630 + append-ldflags -fdisable-ipa-cdtor
631 + else
632 + einfo "No GCC workaround required, GCC version is already patched!"
633 + fi
634 + else
635 + einfo "No GCC workaround required, system supports AVX2"
636 + fi
637 +
638 + # Linking only works when using ld.gold when LTO is enabled
639 + mozconfig_annotate "forcing ld=gold due to USE=lto" --enable-linker=gold
640 + fi
641 +
642 + if [[ -n "${show_old_compiler_warning}" ]] ; then
643 + # Checking compiler's major version uses CC variable. Because we allow
644 + # user to control used compiler via USE=clang flag, we cannot use
645 + # initial value. So this is the earliest stage where we can do this check
646 + # because pkg_pretend is not called in the main phase function sequence
647 + # environment saving is not guaranteed so we don't know if we will have
648 + # correct compiler until now.
649 + ewarn ""
650 + ewarn "USE=lto requires up-to-date compiler (>=gcc-8 or >=clang-7)."
651 + ewarn "You are on your own -- expect build failures. Don't file bugs using that unsupported configuration!"
652 + ewarn ""
653 + sleep 5
654 + fi
655 +
656 + mozconfig_annotate '+lto' --enable-lto=thin
657 +
658 + if use pgo ; then
659 + mozconfig_annotate '+pgo' MOZ_PGO=1
660 + fi
661 + else
662 + # Avoid auto-magic on linker
663 + if use clang ; then
664 + # This is upstream's default
665 + mozconfig_annotate "forcing ld=lld due to USE=clang" --enable-linker=lld
666 + elif tc-ld-is-gold ; then
667 + mozconfig_annotate "linker is set to gold" --enable-linker=gold
668 + else
669 + mozconfig_annotate "linker is set to bfd" --enable-linker=bfd
670 + fi
671 + fi
672 +
673 + # It doesn't compile on alpha without this LDFLAGS
674 + use alpha && append-ldflags "-Wl,--no-relax"
675 +
676 + # Add full relro support for hardened
677 + if use hardened ; then
678 + append-ldflags "-Wl,-z,relro,-z,now"
679 + mozconfig_use_enable hardened hardening
680 + fi
681 +
682 + # Modifications to better support ARM, bug 553364
683 + if use neon ; then
684 + mozconfig_annotate '' --with-fpu=neon
685 +
686 + if ! tc-is-clang ; then
687 + # thumb options aren't supported when using clang, bug 666966
688 + mozconfig_annotate '' --with-thumb=yes
689 + mozconfig_annotate '' --with-thumb-interwork=no
690 + fi
691 + fi
692 + if [[ ${CHOST} == armv*h* ]] ; then
693 + mozconfig_annotate '' --with-float-abi=hard
694 + if ! use system-libvpx ; then
695 + sed -i -e "s|softfp|hard|" \
696 + "${S}"/media/libvpx/moz.build
697 + fi
698 + fi
699 +
700 + mozconfig_use_enable !bindist official-branding
701 +
702 + mozconfig_use_enable debug
703 + mozconfig_use_enable debug tests
704 + if ! use debug ; then
705 + mozconfig_annotate 'disabled by Gentoo' --disable-debug-symbols
706 + else
707 + mozconfig_annotate 'enabled by Gentoo' --enable-debug-symbols
708 + fi
709 + # These are enabled by default in all mozilla applications
710 + mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${SYSROOT}${EPREFIX}"/usr
711 + mozconfig_annotate '' --with-system-nss --with-nss-prefix="${SYSROOT}${EPREFIX}"/usr
712 + mozconfig_annotate '' --x-includes="${SYSROOT}${EPREFIX}"/usr/include \
713 + --x-libraries="${SYSROOT}${EPREFIX}"/usr/$(get_libdir)
714 + mozconfig_annotate '' --prefix="${EPREFIX}"/usr
715 + mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir)
716 + mozconfig_annotate '' --disable-crashreporter
717 + mozconfig_annotate 'Gentoo default' --with-system-png
718 + mozconfig_annotate '' --enable-system-ffi
719 + mozconfig_annotate '' --disable-gconf
720 + mozconfig_annotate '' --with-intl-api
721 + mozconfig_annotate '' --enable-system-pixman
722 + # Instead of the standard --build= and --host=, mozilla uses --host instead
723 + # of --build, and --target intstead of --host.
724 + # Note, mozilla also has --build but it does not do what you think it does.
725 + # Set both --target and --host as mozilla uses python to guess values otherwise
726 + mozconfig_annotate '' --target="${CHOST}"
727 + mozconfig_annotate '' --host="${CBUILD:-${CHOST}}"
728 + if use system-libevent ; then
729 + mozconfig_annotate '' --with-system-libevent="${SYSROOT}${EPREFIX}"/usr
730 + fi
731 +
732 + if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
733 + mozconfig_annotate '' --enable-rust-simd
734 + fi
735 +
736 + # use the gtk3 toolkit (the only one supported at this point)
737 + # TODO: Will this result in automagic dependency on x11-libs/gtk+[wayland]?
738 + if use wayland ; then
739 + mozconfig_annotate '' --enable-default-toolkit=cairo-gtk3-wayland
740 + else
741 + mozconfig_annotate '' --enable-default-toolkit=cairo-gtk3
742 + fi
743 +
744 + mozconfig_use_enable startup-notification
745 + mozconfig_use_enable system-sqlite
746 + mozconfig_use_with system-av1
747 + mozconfig_use_with system-harfbuzz
748 + mozconfig_use_with system-harfbuzz system-graphite2
749 + mozconfig_use_with system-icu
750 + mozconfig_use_with system-jpeg
751 + mozconfig_use_with system-libvpx
752 + mozconfig_use_with system-webp
753 + mozconfig_use_enable pulseaudio
754 + # force the deprecated alsa sound code if pulseaudio is disabled
755 + if use kernel_linux && ! use pulseaudio ; then
756 + mozconfig_annotate '-pulseaudio' --enable-alsa
757 + fi
758 +
759 + # Disable built-in ccache support to avoid sandbox violation, #665420
760 + # Use FEATURES=ccache instead!
761 + mozconfig_annotate '' --without-ccache
762 + sed -i -e 's/ccache_stats = None/return None/' \
763 + python/mozbuild/mozbuild/controller/building.py || \
764 + die "Failed to disable ccache stats call"
765 +
766 + mozconfig_use_enable dbus
767 +
768 + mozconfig_use_enable wifi necko-wifi
769 +
770 + mozconfig_use_enable geckodriver
771 +
772 + # enable JACK, bug 600002
773 + mozconfig_use_enable jack
774 +
775 + # Other tb-specific settings
776 + mozconfig_annotate '' --with-user-appdir=.thunderbird
777 + mozconfig_annotate '' --enable-ldap
778 + mozconfig_annotate '' --enable-calendar
779 +
780 + # Enable/Disable eme support
781 + use eme-free && mozconfig_annotate '+eme-free' --disable-eme
782 +
783 + # Setup api key for location services and safebrowsing, https://bugzilla.mozilla.org/show_bug.cgi?id=1531176#c34
784 + echo -n "${_google_api_key}" > "${S}"/google-api-key
785 + mozconfig_annotate '' --with-google-location-service-api-keyfile="${S}/google-api-key"
786 + mozconfig_annotate '' --with-google-safebrowsing-api-keyfile="${S}/google-api-key"
787 +
788 + mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
789 +
790 + # disable webrtc for now, bug 667642
791 + use arm && mozconfig_annotate 'broken on arm' --disable-webrtc
792 +
793 + # allow elfhack to work in combination with unstripped binaries
794 + # when they would normally be larger than 2GiB.
795 + append-ldflags "-Wl,--compress-debug-sections=zlib"
796 +
797 + if use clang ; then
798 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
799 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
800 + mozconfig_annotate 'elf-hack is broken when using Clang' --disable-elf-hack
801 + fi
802 +
803 + echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig
804 + echo "mk_add_options XARGS=/usr/bin/xargs" >> "${S}"/.mozconfig
805 +
806 + # Finalize and report settings
807 + mozconfig_final
808 +
809 + mkdir -p "${S}"/third_party/rust/libloading/.deps
810 +
811 + # workaround for funky/broken upstream configure...
812 + SHELL="${SHELL:-${EPREFIX}/bin/bash}" MOZ_NOSPAM=1 \
813 + ./mach configure || die
814 +}
815 +
816 +src_compile() {
817 + local _virtx=
818 + if use pgo ; then
819 + _virtx=virtx
820 +
821 + # Reset and cleanup environment variables used by GNOME/XDG
822 + gnome2_environment_reset
823 +
824 + addpredict /root
825 + addpredict /etc/gconf
826 + fi
827 +
828 + GDK_BACKEND=x11 \
829 + MOZ_MAKE_FLAGS="${MAKEOPTS} -O" \
830 + SHELL="${SHELL:-${EPREFIX}/bin/bash}" \
831 + MOZ_NOSPAM=1 \
832 + ${_virtx} \
833 + ./mach build --verbose \
834 + || die
835 +}
836 +
837 +src_install() {
838 + MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
839 + cd "${BUILD_OBJ_DIR}" || die
840 +
841 + # Pax mark xpcshell for hardened support, only used for startupcache creation.
842 + pax-mark m "${BUILD_OBJ_DIR}"/dist/bin/xpcshell
843 +
844 + # Copy our preference before omnijar is created.
845 + cp "${FILESDIR}"/thunderbird-gentoo-default-prefs.js-2 \
846 + "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
847 + || die
848 +
849 + # set dictionary path, to use system hunspell
850 + echo "pref(\"spellchecker.dictionary_path\", \"${EPREFIX}/usr/share/myspell\");" \
851 + >>"${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" || die
852 +
853 + # force the graphite pref if system-harfbuzz is enabled, since the pref cant disable it
854 + if use system-harfbuzz ; then
855 + echo "sticky_pref(\"gfx.font_rendering.graphite.enabled\",true);" \
856 + >>"${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" || die
857 + fi
858 +
859 + # force cairo as the canvas renderer on platforms without skia support
860 + if [[ $(tc-endian) == "big" ]] ; then
861 + echo "sticky_pref(\"gfx.canvas.azure.backends\",\"cairo\");" \
862 + >>"${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" || die
863 + echo "sticky_pref(\"gfx.content.azure.backends\",\"cairo\");" \
864 + >>"${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" || die
865 + fi
866 +
867 + echo "pref(\"extensions.autoDisableScopes\", 3);" >> \
868 + "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
869 + || die
870 +
871 + local plugin
872 + use gmp-autoupdate || use eme-free || for plugin in "${GMP_PLUGIN_LIST[@]}" ; do
873 + echo "pref(\"media.${plugin}.autoupdate\", false);" >> \
874 + "${BUILD_OBJ_DIR}/dist/bin/defaults/pref/all-gentoo.js" \
875 + || die
876 + done
877 +
878 + cd "${S}"
879 + MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX}/bin/bash}" MOZ_NOSPAM=1 \
880 + DESTDIR="${D}" ./mach install || die
881 +
882 + if use geckodriver ; then
883 + cp "${BUILD_OBJ_DIR}"/dist/bin/geckodriver "${ED%/}"${MOZILLA_FIVE_HOME} || die
884 + pax-mark m "${ED%/}"${MOZILLA_FIVE_HOME}/geckodriver
885 +
886 + dosym ${MOZILLA_FIVE_HOME}/geckodriver /usr/bin/geckodriver
887 + fi
888 +
889 + # Install language packs
890 + MOZ_INSTALL_L10N_XPIFILE="1" mozlinguas_src_install
891 +
892 + local size sizes icon_path icon
893 + if ! use bindist; then
894 + icon_path="${S}/comm/mail/branding/thunderbird"
895 + icon="${PN}-icon"
896 +
897 + domenu "${FILESDIR}"/icon/${PN}.desktop
898 + else
899 + icon_path="${S}/comm/mail/branding/nightly"
900 + icon="${PN}-icon-unbranded"
901 +
902 + newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \
903 + ${PN}.desktop
904 +
905 + sed -i -e "s:Mozilla\ Thunderbird:EarlyBird:g" \
906 + "${ED}"/usr/share/applications/${PN}.desktop
907 + fi
908 +
909 + # Install a 48x48 icon into /usr/share/pixmaps for legacy DEs
910 + newicon "${icon_path}"/default48.png "${icon}".png
911 + # Install icons for menu entry
912 + sizes="16 22 24 32 48 256"
913 + for size in ${sizes}; do
914 + newicon -s ${size} "${icon_path}/default${size}.png" "${icon}.png"
915 + done
916 +
917 + # Disable built-in auto-update because we update firefox through package manager
918 + insinto ${MOZILLA_FIVE_HOME}/distribution/
919 + newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
920 +
921 + # Add StartupNotify=true bug 237317
922 + if use startup-notification ; then
923 + echo "StartupNotify=true"\
924 + >> "${ED}/usr/share/applications/${PN}.desktop" \
925 + || die
926 + fi
927 +
928 + # Don't install llvm-symbolizer from sys-devel/llvm package
929 + [[ -f "${ED%/}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] && \
930 + rm "${ED%/}${MOZILLA_FIVE_HOME}/llvm-symbolizer"
931 +
932 + local emid
933 + # stage extra locales for lightning and install over existing
934 + emid='{e2fda1a4-762b-4020-b5ad-a41df1933103}'
935 + rm -f "${ED}"/${MOZILLA_FIVE_HOME}/distribution/extensions/${emid}.xpi || die
936 + mozlinguas_xpistage_langpacks "${BUILD_OBJ_DIR}"/dist/bin/distribution/extensions/${emid} \
937 + "${WORKDIR}"/lightning-${MOZ_LIGHTNING_VER} lightning calendar
938 +
939 + mkdir -p "${T}/${emid}" || die
940 + cp -RLp -t "${T}/${emid}" "${BUILD_OBJ_DIR}"/dist/bin/distribution/extensions/${emid}/* || die
941 + insinto ${MOZILLA_FIVE_HOME}/distribution/extensions
942 + doins -r "${T}/${emid}"
943 +
944 + if use lightning; then
945 + # move lightning out of distribution/extensions and into extensions for app-global install
946 + mkdir -p "${ED}"/${MOZILLA_FIVE_HOME}/extensions
947 + mv "${ED}"/${MOZILLA_FIVE_HOME}/{distribution,}/extensions/${emid} || die
948 +
949 + # stage extra locales for gdata-provider and install app-global
950 + mozlinguas_xpistage_langpacks "${BUILD_OBJ_DIR}"/dist/xpi-stage/gdata-provider \
951 + "${WORKDIR}"/gdata-provider-${MOZ_LIGHTNING_GDATA_VER}
952 + emid='{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}'
953 + mkdir -p "${T}/${emid}" || die
954 + cp -RLp -t "${T}/${emid}" "${BUILD_OBJ_DIR}"/dist/xpi-stage/gdata-provider/* || die
955 +
956 + # manifest.json does not allow the addon to load, put install.rdf in place
957 + # note, version number needs to be set properly
958 + cp -RLp -t "${T}/${emid}" "${WORKDIR}"/gdata-provider-${MOZ_LIGHTNING_GDATA_VER}/install.rdf
959 + sed -i -e '/em:version/ s/>[^<]*</>4.1</' "${T}/${emid}"/install.rdf
960 +
961 + insinto ${MOZILLA_FIVE_HOME}/extensions
962 + doins -r "${T}/${emid}"
963 + fi
964 +
965 + # thunderbird and thunderbird-bin are identical
966 + rm "${ED%/}"${MOZILLA_FIVE_HOME}/thunderbird-bin || die
967 + dosym thunderbird ${MOZILLA_FIVE_HOME}/thunderbird-bin
968 +
969 + # Required in order to use plugins and even run thunderbird on hardened.
970 + pax-mark pm "${ED%/}"${MOZILLA_FIVE_HOME}/{thunderbird,plugin-container}
971 +}
972 +
973 +pkg_preinst() {
974 + # if the apulse libs are available in MOZILLA_FIVE_HOME then apulse
975 + # doesn't need to be forced into the LD_LIBRARY_PATH
976 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.9" ; then
977 + einfo "APULSE found - Generating library symlinks for sound support"
978 + local lib
979 + pushd "${ED}"${MOZILLA_FIVE_HOME} &>/dev/null || die
980 + for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
981 + # a quickpkg rolled by hand will grab symlinks as part of the package,
982 + # so we need to avoid creating them if they already exist.
983 + if [[ ! -L ${lib##*/} ]] ; then
984 + ln -s "${lib}" ${lib##*/} || die
985 + fi
986 + done
987 + popd &>/dev/null || die
988 + fi
989 +}
990 +
991 +pkg_postinst() {
992 + xdg_desktop_database_update
993 + xdg_icon_cache_update
994 +
995 + if ! use gmp-autoupdate && ! use eme-free ; then
996 + elog "USE='-gmp-autoupdate' has disabled the following plugins from updating or"
997 + elog "installing into new profiles:"
998 + local plugin
999 + for plugin in "${GMP_PLUGIN_LIST[@]}"; do elog "\t ${plugin}" ; done
1000 + elog
1001 + fi
1002 +
1003 + if use pulseaudio && has_version ">=media-sound/apulse-0.1.9" ; then
1004 + elog "Apulse was detected at merge time on this system and so it will always be"
1005 + elog "used for sound. If you wish to use pulseaudio instead please unmerge"
1006 + elog "media-sound/apulse."
1007 + elog
1008 + fi
1009 +}
1010 +
1011 +pkg_postrm() {
1012 + xdg_desktop_database_update
1013 + xdg_icon_cache_update
1014 +}