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