summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2023-02-01 07:50:58 +0200
committerJoonas Niilola <juippis@gentoo.org>2023-02-01 07:52:56 +0200
commit7cabad7ea19c41d685ac6857d24f0cd63ff6f881 (patch)
treef460f2e16b1ebde9e906432f70b6e5795792993f
parentmail-client/thunderbird-bin: add 102.7.1 (diff)
downloadgentoo-7cabad7e.tar.gz
gentoo-7cabad7e.tar.bz2
gentoo-7cabad7e.zip
mail-client/thunderbird: add 102.7.1
Bug: https://bugs.gentoo.org/891217 Closes: https://bugs.gentoo.org/892465 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
-rw-r--r--mail-client/thunderbird/Manifest66
-rw-r--r--mail-client/thunderbird/thunderbird-102.7.1.ebuild1172
2 files changed, 1238 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 25233a540a9c..6da068ab65ae 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -1,4 +1,5 @@
DIST firefox-102esr-patches-07j.tar.xz 23012 BLAKE2B 41b706f5ae8695ddd33e971cf1aa99317382a57618cf19163c5bca09ed5d430dba672ac51b7ab3072360452cc89ac50397bb7992882a61a3adda37022239e654 SHA512 7048353ea5504e34d9d3950e3e5e3125f631f95269d5c9e422ca052173a316718fdd4b57ea7980a452139b1192805cb598f47f398fb148a426a85a5e979c6cdd
+DIST firefox-102esr-patches-08j.tar.xz 23268 BLAKE2B c98448da56fe9c2cbaa0c1bee355189ab4604db3d2e2597a2897142c08d44998968fb7f37ce42e9f2be22ccb77b581965bcf1f7cfb68813afd5af6650514713c SHA512 3592c820ae339d4331c0d39966bab0f9ff1144edfcaaed717566254931e9362f740325f1727103efaa1e2dbc3508b8bcf2d2d44cdfcfb2904011267423381fb0
DIST thunderbird-102.6.1-af.xpi 551371 BLAKE2B 1663fbb2cd90e6638cb96922e515e0b5762cf55bb6fe3c366c83508a01c49e27656a89e0c6ba0a7079bcbbca02f702f967d3858ba7fb7931b6653f92b7ba6496 SHA512 730306d74c3ef95f5e3a2b90e868d6c963687b436ef7310b01f48d23b3a0c9f0370e21506d946d8b3e2930d563c2a9bfc3ab115be5d28f0d2f61237b276824e5
DIST thunderbird-102.6.1-ar.xpi 656150 BLAKE2B 33f2ff4e97b206b5b7c27b661f863fde2e83ac066f136e0c1c8ad2e7779b0aa70d3460868b3fe3a25037e9adfc84cb1617fdc1136e165c3309560dd282be2821 SHA512 6c045f1cb0f4a1d67598f3149500b32d9a36a6549eb116e4901c640091b604b8cc106a1e5ca38e4786ef894b7c7ee3230e94ff44b29e013bc07ca7c1e8cf8f38
DIST thunderbird-102.6.1-ast.xpi 564287 BLAKE2B 8355c98444ad184b37b00a64dcd270c33ccf98a17349c726ba41d6d138959372c48af3f654c34305958bc5198b51af75dfd3253e8d85c5b1043d76cc19d496cb SHA512 9739b6850b543f674805189bac97eb2b1c5ff7d756f6f7cb5b748aaeb72f80a1b2bddcfc98f55bb14a55d716302d039fccaf4d85879c3a7d28fc1c97c699432c
@@ -129,3 +130,68 @@ DIST thunderbird-102.7.0-vi.xpi 738571 BLAKE2B 1cfe3857ad7cac4845ceb0ee7db857426
DIST thunderbird-102.7.0-zh-CN.xpi 731621 BLAKE2B 166f88792d3cfbb5787d370c20ed5720319f0ef460d1ab7d27e28e50e0264628d883e210e3b6508dccbcde8d3db4908e8e9aa3b2ec286109ef1e419ec30c8318 SHA512 66d2500a4d232d04156feff0fb14c7b4b04dd6339dd0f8ad1adfd14c729c3604b20eb64494ff219df8dc502b4f7a0856438e58940e947bc237c727e431f7c30a
DIST thunderbird-102.7.0-zh-TW.xpi 740181 BLAKE2B 1a623754bebadcfc97c5342598dd6d315e2faefea0953ef3ecd41e33882a458e30ef014b3e63eef17f7b1ba40e766a07fa148f9166738fb8debd9a1806301ad3 SHA512 950aebebeec15dd60afbb4f42406d12653bd3eeaf9eb1a635622d118c1f7de9e785919ce3b0f7beff176bc8f4ec0d38aabe82ba73e168bffec62d1c3bf1bd980
DIST thunderbird-102.7.0.source.tar.xz 500620784 BLAKE2B 957f76932fae379d7536bad9ac7779bb64abafc9af348171f34be88629a5b450bc8dfc33d38326f684b7f1d45ca9704cb63bef67f38de74120bcc455da248c68 SHA512 3d01fd859491489321279daa687bfa583e86842e055bf7cd77a99307ddd3256132dba6d8eb6da28b061cd8f908ad347ec25abf98fd763de2071cc01171435f35
+DIST thunderbird-102.7.1-af.xpi 554407 BLAKE2B 5264855f67b8f0c3dd9d1f0675c90805ab0b8e14779b728c49feb611ca9fafc82a45412881ae3fd18f454d251583f632bec735f34e3c7b64ba0845346cf8f558 SHA512 9a0b9f9fb6098e9e0051213009ddd6c05f4608e8b8778111089b366db27c304cc77172595ea37c6a6530948b4fe7018c4adec0670b96c12f05ea18653b868709
+DIST thunderbird-102.7.1-ar.xpi 660886 BLAKE2B 497b93d5b1693e147df10960ff5172a0767d04fe0b9bb0f4dc8f5e6f7f576382f7e3a3a8a3a994527dc91bcfc12d1116026568999906eff15cb1819105977690 SHA512 83e2933417fb44d68b219d70fc41b1333ba295bcdf5792d4396dbe042465dcac7352c2affc37b36a2fb7bdc1448489488963fe47dcb97babe10f332e7a257968
+DIST thunderbird-102.7.1-ast.xpi 568531 BLAKE2B 4dafe8093356d7971674b1739fdfda5bb311597de9afedab934ccfdc64469869741163be8bd8e68cdd11d960ce9fe9121114834b70e44aed61bdb5f09e6991fe SHA512 738423b909333807d64e2660c671317a64bca22b351aad58d46a3dde93eaab9476fc8025b5c428aa6ee961cb2d58a8870ee4e046f50c64081402703d22edaaba
+DIST thunderbird-102.7.1-be.xpi 696400 BLAKE2B cd9ad087d613cb33075ebdd9ef7485ab65241fd091439b3ada30c5de4eae23c3d437fc2bab78b8e10d8fceebcb54bf3e34f91241d7f736d789c8138681dbc242 SHA512 a8e8a01454fbc87b8d3b5ced6845fb1b1c0c8be3bd5cce45ae271767ceae60abe1e6413f09f61159be4a67b41eef81145e77a678b54c3cdf0034174684c3602e
+DIST thunderbird-102.7.1-bg.xpi 687110 BLAKE2B ed1c893a835142fc18e07cc1c447ca23985d63ec5a3a6c89608d46987f32143b8de4ba0fa83fe23df38bc15a81593f51770a7976e1ec508487f336ca70e7ff80 SHA512 932475c25f350609f20a77ae71c7d8e3ab7c30c6a6e5298cecc9bf8954a4850296983a908bd17f1ae0786dcebfde1f3d78527289e44696490101b71bd0ee6e83
+DIST thunderbird-102.7.1-br.xpi 620960 BLAKE2B 3b5d7433d70518ec3611a626ac42ded3d383b3bdeb250058be778f32c57ca5cd32ffe4d76f09471b5da09c337bebb7f1801b7ff5311bc43fa0f5ecb6096606cc SHA512 60e4703b6e49ad584693da2f204d4f6a97dfe7326ec0b3c43b8622fc745caae79f63ebabcc0fdacb184fcc42dd02505ef297b5fdb0fcdb8f798660c578a6efb0
+DIST thunderbird-102.7.1-ca.xpi 641073 BLAKE2B dfbcff0a547b33af1003204a82a5b2c8409f7028688aded628353ed97053ab1d85aec7e590af80fe74318197410d6aaa1aefa325461d9d87bd862733ac659810 SHA512 d75d9867903d2d14d42812c0a0c33c8a58dfc616d7e25c71d5005ee7856e482613341dd8cf85f5e98d97eff9ad001e79808926d298197cd776a02a407dbee061
+DIST thunderbird-102.7.1-cak.xpi 646410 BLAKE2B c9f0b985175d987e803674d9a4bd8db7ec3fc68f62a8b3721f1cbbefaea2a8efe6a22f2086fc8876ed80265faba5e7e0d8d535ab71cba3e418652856e42105bd SHA512 6a9c603fd50a05aa3eff38275d1a2a3ffebad003cdcaef76265fcd54b384cfcf28fc9bc522ff939cfecc009a3a119d70a5de4b5ba4284a6d08f46ba8ca2a0f3f
+DIST thunderbird-102.7.1-cs.xpi 712845 BLAKE2B 2e05988a5a62d9ab52f6f695365180de7a5e7527083bfa401f47f52c24dc48f594ce94ce3d17994e73874138ad17098e69f1c1eafaf406d71bfc4c82f1990ca7 SHA512 7d5e588b88d2ea11423c809f369b85e870df6a12f3d21c13afe77eeaff9c9283a855b34339da0ec3dfd0853817e33ebcb78c637af25bb72178e456123d1b1310
+DIST thunderbird-102.7.1-cy.xpi 699460 BLAKE2B 38bdead949ecf0a7bd319e436148f01ccc548ef4ca60be5731cbee75106e300006950607d9b148d0ec7ee4406e5bc100f2011480645237df1c0777064d9dc5fa SHA512 602238caa848bed36650c90bc6c7204c15baa8952302d3c5751d3a27c19d236065d0df0946d764fe7f98a260de9852d5aa796ee469f5b36f29a4bbbcd117fe31
+DIST thunderbird-102.7.1-da.xpi 679837 BLAKE2B 7bec277edf7cd40404d6caeb973b8a808b307b471b99ee3ba5b97465d6abb85496ad2049d85f8436058b05e81f8bfb2f42ed138f4163b3c77a7b4d4e8c38ae06 SHA512 4c78fc216f4090b36923f2049be43f7fdeba637a5fd454dbedd5deb66d0ba00ef0e6765fa86f49198e4dad3f6e17513d29dbdceea1b5c5d4ab456ba3e2a95afd
+DIST thunderbird-102.7.1-de.xpi 712339 BLAKE2B 7eddf5ea4f6efc61c6039debdb4935c279bd169593c50d80ab3ac903ff333a0e8109c5e2c1327232f2f5e3b671cc1689bdd9485f421700c8c6527611b0fe92df SHA512 5b3886e7619000283c874372615b3e2b63af56f6c7c252e99c61658d1c6a75885eea14804042f54ae789a56ba9d8ae443538c666661762d586c1331b798ab650
+DIST thunderbird-102.7.1-dsb.xpi 728066 BLAKE2B 9b2c6c4a31d0240185462abf126fd2e01b8fff03769347029087d0e3d6acc306375865ecf02eaac9ce7c9e08167ca6c7330042c6d660d78ee4562c1f1a4c1e55 SHA512 483a2dedcea8c2e4f58e7c2ceb5d6d39ebea5cdec7d2f608bfe53e47d51314fb0e7a572d47610d62a878f7d1df51285661fe2f2202daf0b61a524e71bfd9499c
+DIST thunderbird-102.7.1-el.xpi 830585 BLAKE2B 9fd21d683eaa17714390676fd71216b8d4d68180dddc281de1d23d201bb1d37fc71953324569ab9e9e6391b354512142fb0ef313b19799cc4fde71bf7369bc5c SHA512 49320cc6832421ddffe9ef52adbcd97c2ab98807257aa914c6588b9b41a5105545c754fcb867d97d4704eb28adb3a7c1d6f71d8e1e0694edb819f63709bc748b
+DIST thunderbird-102.7.1-en-CA.xpi 653884 BLAKE2B 00b57e67fbb9cfaa51807bb6852361aa25e8c3001229a33362752dcca3324ecbf262bff004baab53fb809ac9a13575fcf8122c5db1a68bce20eeeb0a417a50ea SHA512 7b8474f83fe7cd3d688748ec962ee3af492c4e104e2e1954c022e2a1fe503a2233181a027789a7fb87b7bfd64a0e303ad46c55cf6131097a2c581fe33d485a77
+DIST thunderbird-102.7.1-en-GB.xpi 658145 BLAKE2B ef3100f472f909026576f8e5ef6953071f4f194c1636cc913bfed7d7e0188efb59cb88f92644f71d2af668e2674fcb89a31610c3ea13ed98f45b0c4e7b3db072 SHA512 d663645c64de389cef61773f42d2569a5aa99ce726d40c1a87c81bce5bb67d026ee80e0f2ac585cfbdef251adcaff9bf0eaf604c3563d979e6528fdc6b23af1b
+DIST thunderbird-102.7.1-es-AR.xpi 709826 BLAKE2B b26b32c68ca4d0ea4a90b447e3665e61b1577a066d4d37ce8b6f651aef7187a6549e008405f0b254f1fa3a3a1ed2cb42b6fea400e55da9b1cef1ce0c248bb100 SHA512 2058c3e3b692120e2f1d80e0306c94005af1058d5539312a63fd0ed094fcd07fa2f20e5a43d40e34cce60aebdcf2c602612a613485fc6b05ecaf6d1fa2460131
+DIST thunderbird-102.7.1-es-ES.xpi 665686 BLAKE2B dcaa97f0f2dc53cc806aa597e68397147d816058a34eea9b9135cf8753def5662b2337cb24e990e79db7789ed7a2824ff3ff8bed41a90154c91f75cd524bce96 SHA512 e4a58ccc2677dd6be9eb837a28df5526e144367fc5888fca40c32a414403f88128d0aa4776cde06a2f39215d8d1b8eeee6ff46091cf6b13e86eefdd226f08bfc
+DIST thunderbird-102.7.1-es-MX.xpi 713125 BLAKE2B af3a4c406859473b603634201e75833cea3677873c9b5a503300cd560439202817d4c8d342b2ee8e75b391c938be1097e17db0b133a11c2c61b1bb82ac6c901a SHA512 fee661f03bc42a74952ecaeb6c3ba41ff0feaacc92ce63e5413578efb77dcb61ce0246b5fd4e8a3cb86013f82debf47d8dff3893b6f12bd429709135cf6a5de2
+DIST thunderbird-102.7.1-et.xpi 671203 BLAKE2B 4685f0cafc3b3c1c7bb755d8d3a6e8379b35874dd5d3d5705564714fca8b654e4c34dbab7292f1bb1867e31910318cf2a7045b0142b6e82911ec94de414bf16d SHA512 61e44874fc3a21c82736a77d4bd5a21ede0d110ed3caf16eda267642aac680cb51d6c68de639da44c5ca1dfda5d5969ab0dc75636d5a1d53ebf92309d5c6196d
+DIST thunderbird-102.7.1-eu.xpi 690434 BLAKE2B 68b8e4b1d250d755fba328392550297454c611d34919c901747d81775da6af25a2ca82af3d9f9d3580b89c8197d3938fc1074acec61086fad510325630e74e80 SHA512 b3651e0f7ec6c873a837c95661f6103fa0a62452bd6530aa4f2defe77c4cf3092537f364f331f8dc5c74260031b3933f533b4c6bed755dd1ea7eaea8f2d3928e
+DIST thunderbird-102.7.1-fi.xpi 686665 BLAKE2B 9cf7e9a4efb336f213af9718589a48fbc64ddcac7c06e6878ec464885e9a437697f890661821de0ee48d51fd963be0412704abec1484569a57320a5eaf44c408 SHA512 00a51c971a62a404804dd370892d518eee42fac04c7431cf3576f21572a3b913ddebdf11bd191462c07ce802ca575afbc9806d40a7b77513d4bb582d5e5b3570
+DIST thunderbird-102.7.1-fr.xpi 722447 BLAKE2B 65c0cb06d1e82693a903ce923f8f2d78163d8135534a4ef175acec263b6932f471c8655bb5c963bce28acbc674bef7c094e3fcc8f68275c7b0eb7a8d4760a396 SHA512 238668c1a76dc61a1afafc841a50c4428275c4be2c6565de5b44e633062f282c364b9a4bb97be4ae5bb27ef213defc320516810e2fa51f435a88ee444667031f
+DIST thunderbird-102.7.1-fy-NL.xpi 704490 BLAKE2B 1f3669300faec5c4604a883888f5ba89883af379754865321c405e859980c2c4c9e132dcfe1e6ec840e2ff46799efc1b8b15d4b9b6111312ee979204fe0c72d4 SHA512 bf128f3402cf0b43dff2bfe2c978bf79173ad8309068f1fb48f4fed343235ad32d4e3179d96e45184e6a9f7df50474368aec3ffad2a6bea00e43bed644830873
+DIST thunderbird-102.7.1-ga-IE.xpi 609075 BLAKE2B 3a42bd5d1eb195bb1476aae4e9554fa86afcdf4e09969c481a4581461bc092d5840bb364fd43965c4e061274363cf12bfdfde68290d19c82b346dd6e139df9da SHA512 610bf3ada084ade74b98d4c3b80a9e3741ebd5fff28212ff9a37c1715fc41a578b3ba719b3fd25277a36308286c51a7086edde34505e3504cb1f47d9785f42d1
+DIST thunderbird-102.7.1-gd.xpi 637862 BLAKE2B 804f7ab159af5a46e2bf7196f8ecc02dde0e3e46dbf4ff96d2bad5dfe59e535febf4a08446f058d6404e61407cbdea5ee1ed900eea7e19f45bd0884efddd232c SHA512 69b85f47bd937b6f6a0b506cc313e6641fac2bdd02754246dc5e596c9e14969642a9148896850be6db03a529abea1f51e8db2128d970b34fd04ddd759ec0beda
+DIST thunderbird-102.7.1-gl.xpi 667567 BLAKE2B af06e4749e7cfc996fd75618117d0dc7e048922364052a39a6ff0b8f650508a68157d150b7d9a4b96cd265ad2257682dcfa08aff29ab26b1f97a1048c4571e1a SHA512 c32a5701386cb7ddb18e8ac3716d40fecdfbe9795c4e61520784cdbe8905571115c5728cde151ea7f5cf3092056e2660cb765a802ed96020c00a58916901c82f
+DIST thunderbird-102.7.1-he.xpi 670891 BLAKE2B 1980bd66979d1f91b7f1f6164984424928e0b41e240fcae041977974fb4921459fad5553e93ab60a35fb78207e1cfcabd51e6165283e8128b973b9a71cbca6a5 SHA512 9f75042f9ffbbabc7172ad81e5fc6299e2946b1c3ac37729b63a18ae046bfb8a6e7a32d86c421735cd91e5fd6552ba26caa44ea42c0a93c7d5d0b7cf7c0e32c2
+DIST thunderbird-102.7.1-hr.xpi 672487 BLAKE2B 5366ab9a1b0370115c57c347cc53ba54ad46cae3481c74465ca1fdf17b29ef33f1a29c15ecbc038f9ef2ff29b310bf9a0b6cb0dcdd0c338202a4fd62e5767cf8 SHA512 8bc1ef00426817a1fe48a5d0526d2afd22aab83af8c1381ddb94673bfbd07b0a3b1cb0edfeb3863fc66886481f8407a48d103ebff91c402732ac5445118ecc79
+DIST thunderbird-102.7.1-hsb.xpi 726137 BLAKE2B 14aebcbf03cd35dfcf0d75e742faa0e29f00ee92732a896a95a5f75a1e7b4f2461b5d8d8596de20bd4ca9610906630ec04739d4fde9d0d3752443936e4113cc8 SHA512 81df5fa672d97a3fa21356b08d4adc8ef33f34fcbe0d6b5dd25bfc65d7eaff91d92b94acb271ab8c4ad5635388129183634a7fab6dac599dca584b0be6fb6520
+DIST thunderbird-102.7.1-hu.xpi 733393 BLAKE2B 8754ae56864a3441512d7611fd0a34caa0b3f6eac4107529d1d82ef6cc88f81d6170489441373258c32bf628e89e5b1a46780dd4b184db2989273d226685d08d SHA512 d81741c82e327d8d8ffdc78fa2e332f75b7960d58df872aa230a42eef25ec79749cc9e4d0679d545b0bee86f261d82b627c1adc5acbba6ff812e65b1421d8075
+DIST thunderbird-102.7.1-id.xpi 647990 BLAKE2B 51430a869723cb3818f47cd6001a171eedf000ad1b89846c696896b0fc9d61f05a006af1df86f4c06113ea65bb641659f3d8a9c19a50bed0704ab475c099051d SHA512 731b114f85b8ed43c9abcc3628a81010a65b25beaedb1ef33f07d7b2e2b65163a5e44ac8d6f02ab447868edef2eae313f88de6ae84ce6f44612bac2d216eb32b
+DIST thunderbird-102.7.1-is.xpi 697730 BLAKE2B 4dc0add254309e208a34b5cca912ef1cb60a83da5fefa50ecf701863f4172ef21ee53c8bc85eaf673141ea2c28b739b3ba155bccc521242d646f75688ff86915 SHA512 33a95bd83d8724d47a6561ed618ded2e48fea7a0772b21962640f2d1547db46ffafb5214d2a1cd817469522a78b5edd6900fe6798dc302aa83577378257b23d4
+DIST thunderbird-102.7.1-it.xpi 630600 BLAKE2B 0e345b04ba3ab8823243d7a62f8a5f029587df44ed18adbf2a26b0f9f12ab07dfbdc2e39f63dddc034a844d5682458a1ae3879b0e1810a32402eb3910be67f12 SHA512 a3f820db547bffc03d711c09227600d368d6879b61297138cb7221a99db52f106f8fc8bb90d1a9b109af3355018563aa143fbf64257bceec23c7cf4bd602eb48
+DIST thunderbird-102.7.1-ja.xpi 772279 BLAKE2B e43e7eb4681ae2be3af0424581595757dba57d387b8c01b2267fe3f1295899dbe3a2a93b6b7ba519f8bfc4627798227678406a512490eaf5e5714f890c9dc701 SHA512 b65ebae477513d5518f99f60ad62939f43a2633965183b9ddbf05a6a6dfa4145bd1468b001a844f5e766a2c42b095e1e7b8badafd8f4016cc587da43f3b1d40d
+DIST thunderbird-102.7.1-ka.xpi 762401 BLAKE2B f7c2555661ea489e754397c9413dd20532d27fd5a3e14f964521ccd377b093dc9e7ba7582356df99bdc760cfd05b4c304c2812ceb90ba1502a9091740601a224 SHA512 7f096b90ffb95dd5991f2f1e8cc3223db492a29b18f52fe043391ceb41166ad9ff744735a9005c9738d15e42e22bfba4c78833508a084bb86812b676fae1a652
+DIST thunderbird-102.7.1-kab.xpi 697003 BLAKE2B 5739042ca1470f983098110f4f24f407a2810ca4f2985db9dfc6a2bb4786a80d85669b4ec786bb65d263ff35599abcabb971b2eda3c9d477e70fd2954e6d2136 SHA512 e98e731098ed3c5b0745b8a7e67d623d184a90d77d92ee24cfd4a7c5dec32a43a627393ed6cbcc30aff344fcebc44d6f96b4ee2c3fd9aa152a12ba3e650b004e
+DIST thunderbird-102.7.1-kk.xpi 803290 BLAKE2B b1af2f555ae4692ea5c679d2ab487ffdce4c49df6dd336a8d009287e1a42f960e7271e87af9662c4d0a90265a442b7d5b4cb0d6d62a78cf997daa5d507174823 SHA512 7a2311d748a9db46ae20d2837ea6bdfc3976908b2944d5f95944bb869b8c4fb959cb3ed3618ee704761dc93f525b3f59a8f3898f5e1732a45c45a8e64c55030e
+DIST thunderbird-102.7.1-ko.xpi 711251 BLAKE2B 95fd28e802818283c0160e5ec1c967f0bde153560fa9f8e918a898167bac07c128fa8dc26fdb58cbb5794f671264a73677fea40a995281da31193d9dc6bbbdd1 SHA512 f8e11b6aa8e247af4071eec77e7ddf1edd15b3d91d965a7e33f9151e985942b23f445c062aa6970f099fa1a10b5ed8673a291ddc9b83d889882c3c9d74285fd7
+DIST thunderbird-102.7.1-lt.xpi 685286 BLAKE2B 93f5a60883d1f6325741a9f8243c9b76bcdce3703caeead1cfced572b03d5716ff9d8efcfe42556deee6f939314515359104cdfaa0b51c872c89d2c9ee3009b9 SHA512 405d20a22e2f913a81dc2ab40baf13e659163ad8f03046b2ead93efddfad37c43bdbd2ba5978783f4d5c0c244e688d00833246b674ec1228bbeefbe81ab809ea
+DIST thunderbird-102.7.1-lv.xpi 613063 BLAKE2B 13a15e9b25fe60505dc839d4626d66d3b01609390614c3a9919e4ed9c6284478b434fe28febab58cfd239e68cc4f8e198606da514463e6544b1866ca201fd3ca SHA512 91d54bf1987a85b9df27d59e0e7f2d2cdef1fb94df5fb6c9e9bc16377554ef3918825b3ee7d09c30d6fcc775b4bde34b69faced2a5c7c1e8bd13bc68ab70e94c
+DIST thunderbird-102.7.1-ms.xpi 572473 BLAKE2B 51b040d1cd91957381b2da82554dd49c445b81ce48cc7d30f8c4d4ab0f18ab5cd39bd400e8dcd8dbda9f8c8ee49cb88c21a77397ab0032d388cc9f713f619f5d SHA512 7bc34283408e7ad0eb1aa4e6f4c749fd0e0795d4465fa9514e4dc88d9a7328e58a54151f49850e3142008e8218dabdf838e1324db450833b8713e564e38eb018
+DIST thunderbird-102.7.1-nb-NO.xpi 657394 BLAKE2B e5398fabc9381e9f165237de055d2bf965525e5b9153e337bc186a94fdaa74a1e9aed5379d28f4781cb1dd819896e03d8b04f7b496e39032ae87751ef81f0b41 SHA512 46a02b74365120366c868efa5533b248df860964496c6099640b888da45294400e6f8fb42676744d1a003bfc1099327b35fc7f2e5a9abd58f9a258201ca8f06b
+DIST thunderbird-102.7.1-nl.xpi 695941 BLAKE2B e1536bd55092cde5f7a7b180910c8840a060b088bb66815b040d2def94791cef5f43d362ba4010f8089a1d25e2bc312c95a2b837dfd9a49baece360fafaa2606 SHA512 8c7ac419a4c759f984105a0c48049f50c9c01c32b2b3efaff0e986804a7ac016c4676db26ef7ea3df6add57d1256bbef8cf0621933485153562fa7b7a2defd87
+DIST thunderbird-102.7.1-nn-NO.xpi 666409 BLAKE2B dd889ca6c7becde41e6c3de7dee1e3a1d19210516d2af5586bb732b7b380ace26963af9609ea7f8c07bd689042325be777d1e04c060f307f88991d60ab79cef1 SHA512 fbc94e960ef3fab0779c5a22d33cf09fd8d7e358acbdae1d1e78df355899bd657b3b9b6a6981b3b7aaa07c5e57e8c84d0c88982440aa25067a217e2d4e5c7165
+DIST thunderbird-102.7.1-pa-IN.xpi 663855 BLAKE2B 6e6c084ca4802c46aefeba794d3ba17b2f7d99dafe3b66d39821097c81ce1b427f96e6099992e7d2b6fea92adab7c927971ca436c68b8abb1715d32ac704e35a SHA512 166c409b077b92a956a8b0e6d55fc479501d8439913dc4fd53db43f6bdce6732b6ac3dff009192e3366b792cd3401896107e0a050631bd367e2bdb70b3beb734
+DIST thunderbird-102.7.1-pl.xpi 710774 BLAKE2B 9015ca7b05344d0cf9794977dd3eab7fcde71c0599ec41022c67b580f1b2ff42a0d0501f618403c14dc43f1b64f031a71aadf54e7fa13a567ee16c4e59e4334a SHA512 a7805529eedb2783cf3d9f43b6a50e573446be027a8077a6e22e4dc37715442275baa4d959da3504fe8704e371d3ae80a1fd68b1e357bd0a68a4e18ac7205e27
+DIST thunderbird-102.7.1-pt-BR.xpi 703703 BLAKE2B 8005768a5fa080db03629f388395d5397b07d1ec1f9ca5c4e58660ee777bb2d783594f3327f2e3577a444c4dede543c27130532a38c860167bb466b7ef44d2e1 SHA512 4b6c316dc0e5f2084ee353c5355565b766e06f2c624fe6f4ddd2cf03f4a06aa3170a8727652cbc09eb759f4a80eb67abc6468502e53644a13bf7e92ab9225be2
+DIST thunderbird-102.7.1-pt-PT.xpi 681585 BLAKE2B 2fe100f613a885cc500b0dd7edb0b26e2e158e30e6bb54c2789f1dd4923db83496f279619334a33243f7d056f3a30214e27de95eb58a587f1187a8e08012a506 SHA512 f1c589111a85a037faf10a40938e2d2462ac356adf59808fc9032f00cf90d330119ce94dc3a2d55d8bd9da704748728a8c5a78fa384a037332a13f3dbb7be5bc
+DIST thunderbird-102.7.1-rm.xpi 696294 BLAKE2B 6fa8e6c5e12834f6edd981630866a3fa04f97adad65d17544458c3730fcd9631f22e3d8acf8452974f1d6fa84d7491e1e782df448d1a8f1b3c38ada112aa7411 SHA512 2a06149f323f06919f5c5604e0b48aa893cb493b8eb2759f5c1ee09c66b5a1bd1f2cf01e8979bb5637faf51a554a392ae22a55bb0f1ce542fa3ee19e373a23a9
+DIST thunderbird-102.7.1-ro.xpi 655840 BLAKE2B ae1f05bf201dbd2adeacc70bf113d6a823d90f8786c9c4b0e8d65a441210c24dc36620247af73e3c6b0412810720944deae9c51f6dd03895aed008e1e8c9b1b5 SHA512 3b63648f788d9b2cc24b9880e7e5696ab8412a5082486d066396803d12abc4faec9c9362eae73d2af7e5e7999f0e22997cbe201095899b5bdd73e0b2d12cfa98
+DIST thunderbird-102.7.1-ru.xpi 817610 BLAKE2B cbce37a606c00a910a9c6abd44c70698e230bf8f732cffbcb07dc4f5fb6861cd044561e4ac29e7142a7291da731f9ef311f643aa1b550c41f42b6f6f68ab8f82 SHA512 3a32e0790de457d42b84a4685229daed81a39b207dfc568df0d036a82c56bcaf17eb7385d76a298783e3fcc198bc92f5b1c401c5e1e04a6678250c3a54032285
+DIST thunderbird-102.7.1-sk.xpi 733054 BLAKE2B 805815f51e50570c061fca7eff34ddc39601f5708950a25a3c442e74f5bfb3196c3e51452c2a1a7eb2ef1bda2ee6f8484815816ad9ab3b1619962db39353e0d3 SHA512 5d8c60c70a1572fc80d19696df8263c00a931c6387205a4cd661db73c3c7e0628ac77ce3bc90cf95ec1caf24a20f5db0d781336bf314b7e8952036fb210902e3
+DIST thunderbird-102.7.1-sl.xpi 696584 BLAKE2B 1170ad940deee6ba67a112c28fefc195a23f6d39994f7b5a81d31945bf83a15b54fe343916831b7f75a5ad226c3621c236c08cdd3e0c7e106e040b80b846c9a1 SHA512 0add968d754bca6ce2e0611641c558f8d975521db15dc38e948620633d7521c40209dee4e3f41ab023f50bc6724790497cc13d00e2b2704d0692969df63b2805
+DIST thunderbird-102.7.1-sq.xpi 719058 BLAKE2B 27ee0ad6bac6cfcf838b576b05e776e999e18c2bee8c7d4f0078ea41b2bd6cf3a573038ce54a322dd1d46d28affd6833fa80c088286a0a9c866dcb731e40e256 SHA512 d5f1659d9abc243bdc45882e54b63bed06d2d4e30db3765b1b6423539d9aea8715a3ddd81be9c41a1ca9a1d29e31a6c64dd570176c5a2a4770cb3cf6c53ff5ac
+DIST thunderbird-102.7.1-sr.xpi 714371 BLAKE2B 4a29ddc1348ad08633a1f77ca4f25a5fd5ae62e51d0a2c5d6505ce3ef15965d19a2c26bb60d2fb7a3104a1c0b9b020a8c58371b9871b19b327c9db441230b2b1 SHA512 181d639e56671e65e48ebacfe238a0af5a9fad6fb52559342a066f06e4415d3d185e8d7fde1f5b0adda6c1ae4683d15ac7612f4ea93a00bb28af13772991f53b
+DIST thunderbird-102.7.1-sv-SE.xpi 699491 BLAKE2B 840825e7f4f5bb7b5026197a2e6e7a87678f413a061509a304809a9c781860814c474ffea81efd734d34824f5529cbc7b0b34044672538a7ffbc15d50c402a25 SHA512 63e0125d0f9e42414b19fb6785c915a1e3b14f8f191218dd7670db524a584181c95160287fb0496c2ff2274851912674f70260dd997f88463dba7974468961a3
+DIST thunderbird-102.7.1-th.xpi 747757 BLAKE2B 96bd431c9cdf9f52b6fe754976b3a609515cb08394d481dbb4e8b118f57793dfb12f7b9ac7794edf0863e53bc5943b24d0ad8d0df88623ab0a79cb5ce42c4ab6 SHA512 2fba6ffcf8998455eda8dedccceccd2fc927d40e7ceb30526342dabce98f0400631d98bc5fcc9c825e0593ce6f09a012f64a118b9a8c89cd765ece50fd474125
+DIST thunderbird-102.7.1-tr.xpi 711569 BLAKE2B 655d4e5f90290a08c57281544be75cbee4564bfafc3f1e04962ae5045ae66a2758bc32be979b61dd8f50e496a44002369dafcc47e0e722a80d3ba7265be3f345 SHA512 a78e978db04bdf4355393ff9dd9261944d819664955f8e95c012dfc90e6c2a65d5988666abd56b6c5ef966949593e5d4ebfca537485cf903b92ed34c8d72b69e
+DIST thunderbird-102.7.1-uk.xpi 810003 BLAKE2B 5fa2b7c711909c0a589aac42ec739c968f15d13724d48df87be7db091ffbd3cead77963bce01ddd0d4e5dbef608420807ac6c7da5f677d5ba05eca7f5c1cf8bc SHA512 f29b04676731182b73ddf83340d07cb7407f0cc7c224077f202ca3844c0c1a7c569f655853949f41ee564ae104f4bac849111c97c734830fc892e0d57b00cd29
+DIST thunderbird-102.7.1-uz.xpi 588363 BLAKE2B 36881958d82170d4e182655941156372bb43b367d59418710f8213d487bcffc0a21184125416e313ac5fa32da763448c7429d222315b824c7f5a1d86496bb46e SHA512 6093cd2bb8821dc90881fcd1913c2910e9a559665cab0970ec85010b4b0e3cd9ffa8509d77099599debdca65d050713a91a1e6b85e0323b88293bd431105192b
+DIST thunderbird-102.7.1-vi.xpi 738978 BLAKE2B c44f193336b691d73caceafc366442d2cedfc590bc540c7221cf8fd9564b46fceca6476e226fb4d040249f3a3b51b26cb5bc9ac21129518bd3f7fab7120bf43e SHA512 e524549754df3ea4a8052430bba789f2b9fefff72bbfd4f735cda474e75fdfcab2a3a0e35cb409cd19db0b1e49fdf05d872ca9c6a16247948d07eb05b7da9ef7
+DIST thunderbird-102.7.1-zh-CN.xpi 732012 BLAKE2B 39e00232d686f96c86d0ac1103be28f9205c2b73528a433467d6501ccea1a6cb2a7a87e12ff5abaeabb38d8311b6d4d5186e427fb64077e79404d41332ee0d14 SHA512 15a088bbc69186223870889b9333d286868d492f1b3efbe06eeba8f7b15e20ddfe77188a9efa85423497a1de4df22ebe9065a4315cfbe1b1b179e27687885747
+DIST thunderbird-102.7.1-zh-TW.xpi 740543 BLAKE2B 90b2bd25e42646b9e1de30ee72702237dc56901faf40cb20713519f4a01f614341545df80b873e7d565f53b1385b5c6e77bfbb546d3cdfce5dcfb5919ddf2234 SHA512 b1983f73590fbd4313ac8499dd3fb418a35e6080e6199dcc254baeb4aef97c3a98904337959b05bf8bcb5732ba9a7f14066f6da69aafdc9777210341c20315ae
+DIST thunderbird-102.7.1.source.tar.xz 510875912 BLAKE2B f28db27f7262f33862fd15622ff6e66599d9cab393d88952c25d4d81533cb2e7c6fdc4c9567f1c6304d98359b0cd732201587c2f6c8ae5b7599ef5d15cfb4f32 SHA512 6310f3f122a1a61917ec2d0efe3a031b199ac13681e9fb4035abc0f4de0dbafb12accffbd63facb23f2cebf0124a13f7538a33176a2a513d1f685bee40db50ba
diff --git a/mail-client/thunderbird/thunderbird-102.7.1.ebuild b/mail-client/thunderbird/thunderbird-102.7.1.ebuild
new file mode 100644
index 000000000000..6118b6e06023
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-102.7.1.ebuild
@@ -0,0 +1,1172 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-102esr-patches-08j.tar.xz"
+
+LLVM_MAX_SLOT=15
+
+PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="pgo"
+
+MOZ_ESR=
+
+MOZ_PV=${PV}
+MOZ_PV_SUFFIX=
+if [[ ${PV} =~ (_(alpha|beta|rc).*)$ ]] ; then
+ MOZ_PV_SUFFIX=${BASH_REMATCH[1]}
+
+ # Convert the ebuild version to the upstream Mozilla version
+ MOZ_PV="${MOZ_PV/_alpha/a}" # Handle alpha for SRC_URI
+ MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI
+ MOZ_PV="${MOZ_PV%%_rc*}" # Handle rc for SRC_URI
+fi
+
+if [[ -n ${MOZ_ESR} ]] ; then
+ # ESR releases have slightly different version numbers
+ MOZ_PV="${MOZ_PV}esr"
+fi
+
+MOZ_PN="${PN%-bin}"
+MOZ_P="${MOZ_PN}-${MOZ_PV}"
+MOZ_PV_DISTFILES="${MOZ_PV}${MOZ_PV_SUFFIX}"
+MOZ_P_DISTFILES="${MOZ_PN}-${MOZ_PV_DISTFILES}"
+
+inherit autotools check-reqs desktop flag-o-matic gnome2-utils \
+ llvm multiprocessing optfeature pax-utils python-any-r1 toolchain-funcs \
+ virtualx xdg
+
+MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/releases/${MOZ_PV}"
+
+if [[ ${PV} == *_rc* ]] ; then
+ MOZ_SRC_BASE_URI="https://archive.mozilla.org/pub/${MOZ_PN}/candidates/${MOZ_PV}-candidates/build${PV##*_rc}"
+fi
+
+PATCH_URIS=(
+ https://dev.gentoo.org/~{juippis,whissi,slashbeast}/mozilla/patchsets/${FIREFOX_PATCHSET}
+)
+
+SRC_URI="${MOZ_SRC_BASE_URI}/source/${MOZ_P}.source.tar.xz -> ${MOZ_P_DISTFILES}.source.tar.xz
+ ${PATCH_URIS[@]}"
+
+DESCRIPTION="Thunderbird Mail Client"
+HOMEPAGE="https://www.thunderbird.net/"
+
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+SLOT="0"
+LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
+
+IUSE="+clang cpu_flags_arm_neon dbus debug eme-free hardened hwaccel"
+IUSE+=" jack libproxy lto +openh264 pgo pulseaudio sndio selinux"
+IUSE+=" +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx system-png system-python-libs +system-webp"
+IUSE+=" wayland wifi"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="debug? ( !system-av1 )
+ pgo? ( lto )
+ wayland? ( dbus )
+ wifi? ( dbus )"
+
+# Thunderbird-only dependencies.
+TB_ONLY_DEPEND="!<x11-plugins/enigmail-2.2
+ selinux? ( sec-policy/selinux-thunderbird )
+ !system-librnp? ( dev-libs/jsoncpp )
+ system-librnp? ( dev-util/librnp )"
+BDEPEND="${PYTHON_DEPS}
+ || (
+ (
+ sys-devel/clang:15
+ sys-devel/llvm:15
+ clang? (
+ sys-devel/lld:15
+ virtual/rust:0/llvm-15
+ pgo? ( =sys-libs/compiler-rt-sanitizers-15*[profile] )
+ )
+ )
+ (
+ sys-devel/clang:14
+ sys-devel/llvm:14
+ clang? (
+ sys-devel/lld:14
+ virtual/rust:0/llvm-14
+ pgo? ( =sys-libs/compiler-rt-sanitizers-14*[profile] )
+ )
+ )
+ )
+ !clang? ( virtual/rust )
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.24.3
+ net-libs/nodejs
+ virtual/pkgconfig
+ amd64? ( >=dev-lang/nasm-2.14 )
+ x86? ( >=dev-lang/nasm-2.14 )"
+
+COMMON_DEPEND="${TB_ONLY_DEPEND}
+ >=app-accessibility/at-spi2-core-2.46.0:2
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/libffi:=
+ >=dev-libs/nss-3.79.2
+ >=dev-libs/nspr-4.34
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ sys-libs/zlib
+ virtual/freedesktop-icon-theme
+ virtual/opengl
+ x11-libs/cairo[X]
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrandr
+ x11-libs/libXtst
+ x11-libs/libxcb:=
+ x11-libs/libxkbcommon[X]
+ x11-libs/pango
+ x11-libs/pixman
+ dbus? (
+ dev-libs/dbus-glib
+ sys-apps/dbus
+ )
+ jack? ( virtual/jack )
+ libproxy? ( net-libs/libproxy )
+ pulseaudio? (
+ || (
+ media-libs/libpulse
+ >=media-sound/apulse-0.1.12-r4[sdk]
+ )
+ )
+ sndio? ( >=media-sound/sndio-1.8.0-r1 )
+ system-av1? (
+ >=media-libs/dav1d-1.0.0:=
+ >=media-libs/libaom-1.0.0:=
+ )
+ system-harfbuzz? (
+ >=media-gfx/graphite2-1.3.13
+ >=media-libs/harfbuzz-2.8.1:0=
+ )
+ system-icu? ( >=dev-libs/icu-71.1:= )
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
+ system-libevent? ( >=dev-libs/libevent-2.0:0=[threads] )
+ system-libvpx? ( >=media-libs/libvpx-1.8.2:0=[postproc] )
+ system-png? ( >=media-libs/libpng-1.6.35:0=[apng] )
+ system-webp? ( >=media-libs/libwebp-1.1.0:0= )
+ wayland? (
+ x11-libs/gtk+:3[wayland]
+ x11-libs/libdrm
+ x11-libs/libxkbcommon[wayland]
+ )
+ wifi? (
+ kernel_linux? (
+ dev-libs/dbus-glib
+ net-misc/networkmanager
+ sys-apps/dbus
+ )
+ )"
+
+RDEPEND="${COMMON_DEPEND}
+ jack? ( virtual/jack )
+ openh264? ( media-libs/openh264:*[plugin] )"
+
+DEPEND="${COMMON_DEPEND}
+ x11-base/xorg-proto
+ x11-libs/libICE
+ x11-libs/libSM"
+
+S="${WORKDIR}/${PN}-${PV%_*}"
+
+llvm_check_deps() {
+ if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
+ einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use clang ; then
+ if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then
+ einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if ! has_version -b "virtual/rust:0/llvm-${LLVM_SLOT}" ; then
+ einfo "virtual/rust:0/llvm-${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+
+ if use pgo ; then
+ if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
+ einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
+ return 1
+ fi
+ fi
+ fi
+
+ einfo "Using LLVM slot ${LLVM_SLOT} to build" >&2
+}
+
+MOZ_LANGS=(
+ af ar ast be bg br ca cak cs cy da de dsb
+ el en-CA en-GB en-US es-AR es-ES es-MX et eu
+ fi fr fy-NL ga-IE gd gl he hr hsb hu
+ id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO
+ pa-IN pl pt-BR pt-PT rm ro ru
+ sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
+)
+
+mozilla_set_globals() {
+ # https://bugs.gentoo.org/587334
+ local MOZ_TOO_REGIONALIZED_FOR_L10N=(
+ fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO ne-NP nn-NO pa-IN sv-SE
+ )
+
+ local lang xflag
+ for lang in "${MOZ_LANGS[@]}" ; do
+ # en and en_US are handled internally
+ if [[ ${lang} == en ]] || [[ ${lang} == en-US ]] ; then
+ continue
+ fi
+
+ # strip region subtag if $lang is in the list
+ if has ${lang} "${MOZ_TOO_REGIONALIZED_FOR_L10N[@]}" ; then
+ xflag=${lang%%-*}
+ else
+ xflag=${lang}
+ fi
+
+ SRC_URI+=" l10n_${xflag/[_@]/-}? ("
+ SRC_URI+=" ${MOZ_SRC_BASE_URI}/linux-x86_64/xpi/${lang}.xpi -> ${MOZ_P_DISTFILES}-${lang}.xpi"
+ SRC_URI+=" )"
+ IUSE+=" l10n_${xflag/[_@]/-}"
+ done
+}
+mozilla_set_globals
+
+moz_clear_vendor_checksums() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -ne 1 ]] ; then
+ die "${FUNCNAME} requires exact one argument"
+ fi
+
+ einfo "Clearing cargo checksums for ${1} ..."
+
+ sed -i \
+ -e 's/\("files":{\)[^}]*/\1/' \
+ "${S}"/third_party/rust/${1}/.cargo-checksum.json \
+ || die
+}
+
+moz_install_xpi() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local DESTDIR=${1}
+ shift
+
+ insinto "${DESTDIR}"
+
+ local emid xpi_file xpi_tmp_dir
+ for xpi_file in "${@}" ; do
+ emid=
+ xpi_tmp_dir=$(mktemp -d --tmpdir="${T}")
+
+ # Unpack XPI
+ unzip -qq "${xpi_file}" -d "${xpi_tmp_dir}" || die
+
+ # Determine extension ID
+ if [[ -f "${xpi_tmp_dir}/install.rdf" ]] ; then
+ emid=$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' "${xpi_tmp_dir}/install.rdf")
+ [[ -z "${emid}" ]] && die "failed to determine extension id from install.rdf"
+ elif [[ -f "${xpi_tmp_dir}/manifest.json" ]] ; then
+ emid=$(sed -n -e 's/.*"id": "\([^"]*\)".*/\1/p' "${xpi_tmp_dir}/manifest.json")
+ [[ -z "${emid}" ]] && die "failed to determine extension id from manifest.json"
+ else
+ die "failed to determine extension id"
+ fi
+
+ einfo "Installing ${emid}.xpi into ${ED}${DESTDIR} ..."
+ newins "${xpi_file}" "${emid}.xpi"
+ done
+}
+
+mozconfig_add_options_ac() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "ac_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_add_options_mk() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 2 ]] ; then
+ die "${FUNCNAME} requires at least two arguments"
+ fi
+
+ local reason=${1}
+ shift
+
+ local option
+ for option in ${@} ; do
+ echo "mk_add_options ${option} # ${reason}" >>${MOZCONFIG}
+ done
+}
+
+mozconfig_use_enable() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_enable "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
+}
+
+mozconfig_use_with() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${#} -lt 1 ]] ; then
+ die "${FUNCNAME} requires at least one arguments"
+ fi
+
+ local flag=$(use_with "${@}")
+ mozconfig_add_options_ac "$(use ${1} && echo +${1} || echo -${1})" "${flag}"
+}
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ if use pgo ; then
+ if ! has usersandbox $FEATURES ; then
+ die "You must enable usersandbox as X server can not run as root!"
+ fi
+ fi
+
+ # Ensure we have enough disk space to compile
+ if use pgo || use lto || use debug ; then
+ CHECKREQS_DISK_BUILD="13500M"
+ else
+ CHECKREQS_DISK_BUILD="6600M"
+ fi
+
+ check-reqs_pkg_pretend
+ fi
+}
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != binary ]] ; then
+ if use pgo ; then
+ if ! has userpriv ${FEATURES} ; then
+ eerror "Building ${PN} with USE=pgo and FEATURES=-userpriv is not supported!"
+ fi
+ fi
+
+ # Ensure we have enough disk space to compile
+ if use pgo || use lto || use debug ; then
+ CHECKREQS_DISK_BUILD="13500M"
+ else
+ CHECKREQS_DISK_BUILD="6400M"
+ fi
+
+ check-reqs_pkg_setup
+
+ llvm_pkg_setup
+
+ if use clang && use lto ; then
+ local version_lld=$(ld.lld --version 2>/dev/null | awk '{ print $2 }')
+ [[ -n ${version_lld} ]] && version_lld=$(ver_cut 1 "${version_lld}")
+ [[ -z ${version_lld} ]] && die "Failed to read ld.lld version!"
+
+ local version_llvm_rust=$(rustc -Vv 2>/dev/null | grep -F -- 'LLVM version:' | awk '{ print $3 }')
+ [[ -n ${version_llvm_rust} ]] && version_llvm_rust=$(ver_cut 1 "${version_llvm_rust}")
+ [[ -z ${version_llvm_rust} ]] && die "Failed to read used LLVM version from rustc!"
+
+ if ver_test "${version_lld}" -ne "${version_llvm_rust}" ; then
+ eerror "Rust is using LLVM version ${version_llvm_rust} but ld.lld version belongs to LLVM version ${version_lld}."
+ eerror "You will be unable to link ${CATEGORY}/${PN}. To proceed you have the following options:"
+ eerror " - Manually switch rust version using 'eselect rust' to match used LLVM version"
+ eerror " - Switch to dev-lang/rust[system-llvm] which will guarantee matching version"
+ eerror " - Build ${CATEGORY}/${PN} without USE=lto"
+ eerror " - Rebuild lld with llvm that was used to build rust (may need to rebuild the whole "
+ eerror " llvm/clang/lld/rust chain depending on your @world updates)"
+ die "LLVM version used by Rust (${version_llvm_rust}) does not match with ld.lld version (${version_lld})!"
+ fi
+ fi
+
+ python-any-r1_pkg_setup
+
+ # Avoid PGO profiling problems due to enviroment leakage
+ # These should *always* be cleaned up anyway
+ unset \
+ DBUS_SESSION_BUS_ADDRESS \
+ DISPLAY \
+ ORBIT_SOCKETDIR \
+ SESSION_MANAGER \
+ XAUTHORITY \
+ XDG_CACHE_HOME \
+ XDG_SESSION_COOKIE
+
+ # Build system is using /proc/self/oom_score_adj, bug #604394
+ addpredict /proc/self/oom_score_adj
+
+ if use pgo ; then
+ # Allow access to GPU during PGO run
+ local ati_cards mesa_cards nvidia_cards render_cards
+ shopt -s nullglob
+
+ ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
+ if [[ -n "${ati_cards}" ]] ; then
+ addpredict "${ati_cards}"
+ fi
+
+ mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
+ if [[ -n "${mesa_cards}" ]] ; then
+ addpredict "${mesa_cards}"
+ fi
+
+ nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
+ if [[ -n "${nvidia_cards}" ]] ; then
+ addpredict "${nvidia_cards}"
+ fi
+
+ render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
+ if [[ -n "${render_cards}" ]] ; then
+ addpredict "${render_cards}"
+ fi
+
+ shopt -u nullglob
+ fi
+
+ if ! mountpoint -q /dev/shm ; then
+ # If /dev/shm is not available, configure is known to fail with
+ # a traceback report referencing /usr/lib/pythonN.N/multiprocessing/synchronize.py
+ ewarn "/dev/shm is not mounted -- expect build failures!"
+ fi
+
+ # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_GOOGLE+set}" ]] ; then
+ MOZ_API_KEY_GOOGLE="AIzaSyDEAOvatFogGaPi0eTgsV_ZlEzx0ObmepsMzfAc"
+ fi
+
+ if [[ -z "${MOZ_API_KEY_LOCATION+set}" ]] ; then
+ MOZ_API_KEY_LOCATION="AIzaSyB2h2OuRgGaPicUgy5N-5hsZqiPW6sH3n_rptiQ"
+ fi
+
+ # Mozilla API keys (see https://location.services.mozilla.com/api)
+ # Note: These are for Gentoo Linux use ONLY. For your own distribution, please
+ # get your own set of keys.
+ if [[ -z "${MOZ_API_KEY_MOZILLA+set}" ]] ; then
+ MOZ_API_KEY_MOZILLA="edb3d487-3a84-46m0ap1e3-9dfd-92b5efaaa005"
+ fi
+
+ # Ensure we use C locale when building, bug #746215
+ export LC_ALL=C
+ fi
+}
+
+src_unpack() {
+ local _lp_dir="${WORKDIR}/language_packs"
+ local _src_file
+
+ if [[ ! -d "${_lp_dir}" ]] ; then
+ mkdir "${_lp_dir}" || die
+ fi
+
+ for _src_file in ${A} ; do
+ if [[ ${_src_file} == *.xpi ]]; then
+ cp "${DISTDIR}/${_src_file}" "${_lp_dir}" || die "Failed to copy '${_src_file}' to '${_lp_dir}'!"
+ else
+ unpack ${_src_file}
+ fi
+ done
+}
+
+src_prepare() {
+ if use lto; then
+ rm -v "${WORKDIR}"/firefox-patches/*-LTO-Only-enable-LTO-*.patch || die
+ fi
+
+ eapply "${WORKDIR}/firefox-patches"
+
+ # Allow user to apply any additional patches without modifing ebuild
+ eapply_user
+
+ # Make cargo respect MAKEOPTS
+ export CARGO_BUILD_JOBS="$(makeopts_jobs)"
+
+ # Make LTO respect MAKEOPTS
+ sed -i \
+ -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/build/moz.configure/lto-pgo.configure \
+ || die "sed failed to set num_cores"
+
+ # Make ICU respect MAKEOPTS
+ sed -i \
+ -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \
+ "${S}"/intl/icu_sources_data.py \
+ || die "sed failed to set num_cores"
+
+ # sed-in toolchain prefix
+ sed -i \
+ -e "s/objdump/${CHOST}-objdump/" \
+ "${S}"/python/mozbuild/mozbuild/configure/check_debug_ranges.py \
+ || die "sed failed to set toolchain prefix"
+
+ sed -i \
+ -e 's/ccache_stats = None/return None/' \
+ "${S}"/python/mozbuild/mozbuild/controller/building.py \
+ || die "sed failed to disable ccache stats call"
+
+ einfo "Removing pre-built binaries ..."
+ find "${S}"/third_party -type f \( -name '*.so' -o -name '*.o' \) -print -delete || die
+
+ # Clearing crate checksums where we have applied patches
+ moz_clear_vendor_checksums bindgen
+
+ # Create build dir
+ BUILD_DIR="${WORKDIR}/${PN}_build"
+ mkdir -p "${BUILD_DIR}" || die
+
+ # Write API keys to disk
+ echo -n "${MOZ_API_KEY_GOOGLE//gGaPi/}" > "${S}"/api-google.key || die
+ echo -n "${MOZ_API_KEY_LOCATION//gGaPi/}" > "${S}"/api-location.key || die
+ echo -n "${MOZ_API_KEY_MOZILLA//m0ap1/}" > "${S}"/api-mozilla.key || die
+
+ xdg_environment_reset
+}
+
+src_configure() {
+ # Show flags set at the beginning
+ einfo "Current BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Current CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Current CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Current LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ local have_switched_compiler=
+ if use clang; then
+ # Force clang
+ einfo "Enforcing the use of clang due to USE=clang ..."
+ if tc-is-gcc; then
+ have_switched_compiler=yes
+ fi
+ AR=llvm-ar
+ CC=${CHOST}-clang
+ CXX=${CHOST}-clang++
+ NM=llvm-nm
+ RANLIB=llvm-ranlib
+ elif ! use clang && ! tc-is-gcc ; then
+ # Force gcc
+ have_switched_compiler=yes
+ einfo "Enforcing the use of gcc due to USE=-clang ..."
+ AR=gcc-ar
+ CC=${CHOST}-gcc
+ CXX=${CHOST}-g++
+ NM=gcc-nm
+ RANLIB=gcc-ranlib
+ fi
+
+ if [[ -n "${have_switched_compiler}" ]] ; then
+ # Because we switched active compiler we have to ensure
+ # that no unsupported flags are set
+ strip-unsupported-flags
+ fi
+
+ # Ensure we use correct toolchain
+ export HOST_CC="$(tc-getBUILD_CC)"
+ export HOST_CXX="$(tc-getBUILD_CXX)"
+ export AS="$(tc-getCC) -c"
+ tc-export CC CXX LD AR AS NM OBJDUMP RANLIB PKG_CONFIG
+
+ # Pass the correct toolchain paths through cbindgen
+ if tc-is-cross-compiler ; then
+ export BINDGEN_CFLAGS="${SYSROOT:+--sysroot=${ESYSROOT}} --target=${CHOST} ${BINDGEN_CFLAGS-}"
+ fi
+
+ # Set MOZILLA_FIVE_HOME
+ export MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
+
+ # python/mach/mach/mixin/process.py fails to detect SHELL
+ export SHELL="${EPREFIX}/bin/bash"
+
+ # Set state path
+ export MOZBUILD_STATE_PATH="${BUILD_DIR}"
+
+ # Set MOZCONFIG
+ export MOZCONFIG="${S}/.mozconfig"
+
+ # Initialize MOZCONFIG
+ mozconfig_add_options_ac '' --enable-application=comm/mail
+
+ # Set Gentoo defaults
+ export MOZILLA_OFFICIAL=1
+
+ mozconfig_add_options_ac 'Gentoo default' \
+ --allow-addon-sideload \
+ --disable-cargo-incremental \
+ --disable-crashreporter \
+ --disable-gpsd \
+ --disable-install-strip \
+ --disable-parental-controls \
+ --disable-strip \
+ --disable-updater \
+ --enable-js-shell \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-release \
+ --enable-system-ffi \
+ --enable-system-pixman \
+ --host="${CBUILD:-${CHOST}}" \
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \
+ --prefix="${EPREFIX}/usr" \
+ --target="${CHOST}" \
+ --without-ccache \
+ --without-wasm-sandboxed-libraries \
+ --with-intl-api \
+ --with-libclang-path="$(llvm-config --libdir)" \
+ --with-system-nspr \
+ --with-system-nss \
+ --with-system-zlib \
+ --with-toolchain-prefix="${CHOST}-" \
+ --with-unsigned-addon-scopes=app,system \
+ --x-includes="${ESYSROOT}/usr/include" \
+ --x-libraries="${ESYSROOT}/usr/$(get_libdir)"
+
+ # Set update channel
+ local update_channel=release
+ [[ -n ${MOZ_ESR} ]] && update_channel=esr
+ mozconfig_add_options_ac '' --update-channel=${update_channel}
+
+ if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
+ mozconfig_add_options_ac '' --enable-rust-simd
+ fi
+
+ # For future keywording: This is currently (97.0) only supported on:
+ # amd64, arm, arm64 & x86.
+ # Might want to flip the logic around if Firefox is to support more arches.
+ if use ppc64; then
+ mozconfig_add_options_ac '' --disable-sandbox
+ else
+ mozconfig_add_options_ac '' --enable-sandbox
+ fi
+
+ if [[ -s "${S}/api-google.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-google.key" | md5sum | awk '{ print $1 }') != 709560c02f94b41f9ad2c49207be6c54 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-google-safebrowsing-api-keyfile="${S}/api-google.key"
+ else
+ einfo "Building without Google API key ..."
+ fi
+
+ if [[ -s "${S}/api-location.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-location.key" | md5sum | awk '{ print $1 }') != ffb7895e35dedf832eb1c5d420ac7420 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-google-location-service-api-keyfile="${S}/api-location.key"
+ else
+ einfo "Building without Location API key ..."
+ fi
+
+ if [[ -s "${S}/api-mozilla.key" ]] ; then
+ local key_origin="Gentoo default"
+ if [[ $(cat "${S}/api-mozilla.key" | md5sum | awk '{ print $1 }') != 3927726e9442a8e8fa0e46ccc39caa27 ]] ; then
+ key_origin="User value"
+ fi
+
+ mozconfig_add_options_ac "${key_origin}" \
+ --with-mozilla-api-keyfile="${S}/api-mozilla.key"
+ else
+ einfo "Building without Mozilla API key ..."
+ fi
+
+ mozconfig_use_with system-av1
+ mozconfig_use_with system-harfbuzz
+ mozconfig_use_with system-harfbuzz system-graphite2
+ mozconfig_use_with system-icu
+ mozconfig_use_with system-jpeg
+ mozconfig_use_with system-libevent
+ mozconfig_use_with system-libvpx
+ mozconfig_use_with system-png
+ mozconfig_use_with system-webp
+
+ if use system-librnp; then
+ mozconfig_add_options_ac "+system-librnp" --enable-compile-environment
+ mozconfig_use_with system-librnp
+ fi
+
+ mozconfig_use_enable dbus
+ mozconfig_use_enable libproxy
+
+ use eme-free && mozconfig_add_options_ac '+eme-free' --disable-eme
+
+ if use hardened ; then
+ mozconfig_add_options_ac "+hardened" --enable-hardening
+ append-ldflags "-Wl,-z,relro -Wl,-z,now"
+ fi
+
+ local myaudiobackends=""
+ use jack && myaudiobackends+="jack,"
+ use sndio && myaudiobackends+="sndio,"
+ use pulseaudio && myaudiobackends+="pulseaudio,"
+ ! use pulseaudio && myaudiobackends+="alsa,"
+
+ mozconfig_add_options_ac '--enable-audio-backends' --enable-audio-backends="${myaudiobackends::-1}"
+
+ mozconfig_use_enable wifi necko-wifi
+
+ if use wayland ; then
+ mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland
+ else
+ mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3
+ fi
+
+ if use lto ; then
+ if use clang ; then
+ # Upstream only supports lld when using clang
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
+
+ mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+ else
+ # ThinLTO is currently broken, see bmo#1644409
+ mozconfig_add_options_ac '+lto' --enable-lto=full
+ mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
+ fi
+
+ if use pgo ; then
+ mozconfig_add_options_ac '+pgo' MOZ_PGO=1
+
+ if use clang ; then
+ # Used in build/pgo/profileserver.py
+ export LLVM_PROFDATA="llvm-profdata"
+ fi
+ fi
+ else
+ # Avoid auto-magic on linker
+ if use clang ; then
+ # This is upstream's default
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
+ else
+ mozconfig_add_options_ac "linker is set to bfd" --enable-linker=bfd
+ fi
+ fi
+
+ # LTO flag was handled via configure
+ filter-flags '-flto*'
+
+ mozconfig_use_enable debug
+ if use debug ; then
+ mozconfig_add_options_ac '+debug' --disable-optimize
+ else
+ if is-flag '-g*' ; then
+ if use clang ; then
+ mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*')
+ else
+ mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols
+ fi
+ else
+ mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols
+ fi
+
+ if is-flag '-O0' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O0
+ elif is-flag '-O4' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O4
+ elif is-flag '-O3' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O3
+ elif is-flag '-O1' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-O1
+ elif is-flag '-Os' ; then
+ mozconfig_add_options_ac "from CFLAGS" --enable-optimize=-Os
+ else
+ mozconfig_add_options_ac "Gentoo default" --enable-optimize=-O2
+ fi
+ fi
+
+ # Debug flag was handled via configure
+ filter-flags '-g*'
+
+ # Optimization flag was handled via configure
+ filter-flags '-O*'
+
+ # Modifications to better support ARM, bug #553364
+ if use cpu_flags_arm_neon ; then
+ mozconfig_add_options_ac '+cpu_flags_arm_neon' --with-fpu=neon
+
+ if ! tc-is-clang ; then
+ # thumb options aren't supported when using clang, bug 666966
+ mozconfig_add_options_ac '+cpu_flags_arm_neon' \
+ --with-thumb=yes \
+ --with-thumb-interwork=no
+ fi
+ fi
+
+ if [[ ${CHOST} == armv*h* ]] ; then
+ mozconfig_add_options_ac 'CHOST=armv*h*' --with-float-abi=hard
+
+ if ! use system-libvpx ; then
+ sed -i \
+ -e "s|softfp|hard|" \
+ "${S}"/media/libvpx/moz.build \
+ || die
+ fi
+ fi
+
+ if use clang ; then
+ # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
+ # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
+ # toolkit/moz.configure Elfhack section: target.cpu in ('arm', 'x86', 'x86_64')
+ local disable_elf_hack=
+ if use amd64 ; then
+ disable_elf_hack=yes
+ elif use x86 ; then
+ disable_elf_hack=yes
+ elif use arm ; then
+ disable_elf_hack=yes
+ fi
+
+ if [[ -n ${disable_elf_hack} ]] ; then
+ mozconfig_add_options_ac 'elf-hack is broken when using Clang' --disable-elf-hack
+ fi
+ elif tc-is-gcc ; then
+ if ver_test $(gcc-fullversion) -ge 10 ; then
+ einfo "Forcing -fno-tree-loop-vectorize to workaround GCC bug, see bug 758446 ..."
+ append-cxxflags -fno-tree-loop-vectorize
+ fi
+ fi
+
+ # Additional ARCH support
+ case "${ARCH}" in
+ arm)
+ # Reduce the memory requirements for linking
+ if use clang ; then
+ # Nothing to do
+ :;
+ elif use lto ; then
+ append-ldflags -Wl,--no-keep-memory
+ else
+ append-ldflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
+ fi
+ ;;
+ esac
+
+ if ! use elibc_glibc ; then
+ mozconfig_add_options_ac '!elibc_glibc' --disable-jemalloc
+ fi
+
+ # Allow elfhack to work in combination with unstripped binaries
+ # when they would normally be larger than 2GiB.
+ append-ldflags "-Wl,--compress-debug-sections=zlib"
+
+ # Make revdep-rebuild.sh happy; Also required for musl
+ append-ldflags -Wl,-rpath="${MOZILLA_FIVE_HOME}",--enable-new-dtags
+
+ # Pass $MAKEOPTS to build system
+ export MOZ_MAKE_FLAGS="${MAKEOPTS}"
+
+ # Use system's Python environment
+ export PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
+
+ if use system-python-libs; then
+ export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="system"
+ else
+ export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE="none"
+ fi
+
+ # Disable notification when build system has finished
+ export MOZ_NOSPAM=1
+
+ # Portage sets XARGS environment variable to "xargs -r" by default which
+ # breaks build system's check_prog() function which doesn't support arguments
+ mozconfig_add_options_ac 'Gentoo default' "XARGS=${EPREFIX}/usr/bin/xargs"
+
+ # Set build dir
+ mozconfig_add_options_mk 'Gentoo default' "MOZ_OBJDIR=${BUILD_DIR}"
+
+ # Show flags we will use
+ einfo "Build BINDGEN_CFLAGS:\t${BINDGEN_CFLAGS:-no value set}"
+ einfo "Build CFLAGS:\t\t${CFLAGS:-no value set}"
+ einfo "Build CXXFLAGS:\t\t${CXXFLAGS:-no value set}"
+ einfo "Build LDFLAGS:\t\t${LDFLAGS:-no value set}"
+ einfo "Build RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"
+
+ # Handle EXTRA_CONF and show summary
+ local ac opt hash reason
+
+ # Apply EXTRA_ECONF entries to $MOZCONFIG
+ if [[ -n ${EXTRA_ECONF} ]] ; then
+ IFS=\! read -a ac <<<${EXTRA_ECONF// --/\!}
+ for opt in "${ac[@]}"; do
+ mozconfig_add_options_ac "EXTRA_ECONF" --${opt#--}
+ done
+ fi
+
+ echo
+ echo "=========================================================="
+ echo "Building ${PF} with the following configuration"
+ grep ^ac_add_options "${MOZCONFIG}" | while read ac opt hash reason; do
+ [[ -z ${hash} || ${hash} == \# ]] \
+ || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}"
+ printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}"
+ done
+ echo "=========================================================="
+ echo
+
+ ./mach configure || die
+}
+
+src_compile() {
+ local virtx_cmd=
+
+ if use pgo ; then
+ virtx_cmd=virtx
+
+ # Reset and cleanup environment variables used by GNOME/XDG
+ gnome2_environment_reset
+
+ addpredict /root
+ fi
+
+ local -x GDK_BACKEND=x11
+
+ ${virtx_cmd} ./mach build --verbose \
+ || die
+}
+
+src_install() {
+ # xpcshell is getting called during install
+ pax-mark m \
+ "${BUILD_DIR}"/dist/bin/xpcshell \
+ "${BUILD_DIR}"/dist/bin/${PN} \
+ "${BUILD_DIR}"/dist/bin/plugin-container
+
+ DESTDIR="${D}" ./mach install || die
+
+ # Upstream cannot ship symlink but we can (bmo#658850)
+ rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
+ dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
+
+ # Don't install llvm-symbolizer from sys-devel/llvm package
+ if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
+ rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
+ fi
+
+ # Install policy (currently only used to disable application updates)
+ insinto "${MOZILLA_FIVE_HOME}/distribution"
+ newins "${FILESDIR}"/distribution.ini distribution.ini
+ newins "${FILESDIR}"/disable-auto-update.policy.json policies.json
+
+ # Install system-wide preferences
+ local PREFS_DIR="${MOZILLA_FIVE_HOME}/defaults/pref"
+ insinto "${PREFS_DIR}"
+ newins "${FILESDIR}"/gentoo-default-prefs.js gentoo-prefs.js
+
+ local GENTOO_PREFS="${ED}${PREFS_DIR}/gentoo-prefs.js"
+
+ # Set dictionary path to use system hunspell
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set spellchecker.dictionary_path pref"
+ pref("spellchecker.dictionary_path", "${EPREFIX}/usr/share/myspell");
+ EOF
+
+ # Force hwaccel prefs if USE=hwaccel is enabled
+ if use hwaccel ; then
+ cat "${FILESDIR}"/gentoo-hwaccel-prefs.js \
+ >>"${GENTOO_PREFS}" \
+ || die "failed to add prefs to force hardware-accelerated rendering to all-gentoo.js"
+
+ if use wayland; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel wayland prefs"
+ pref("gfx.x11-egl.force-enabled", false);
+ EOF
+ else
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set hwaccel x11 prefs"
+ pref("gfx.x11-egl.force-enabled", true);
+ EOF
+ fi
+ fi
+
+ # Force the graphite pref if USE=system-harfbuzz is enabled, since the pref cannot disable it
+ if use system-harfbuzz ; then
+ cat >>"${GENTOO_PREFS}" <<-EOF || die "failed to set gfx.font_rendering.graphite.enabled pref"
+ sticky_pref("gfx.font_rendering.graphite.enabled", true);
+ EOF
+ fi
+
+ # Install language packs
+ local langpacks=( $(find "${WORKDIR}/language_packs" -type f -name '*.xpi') )
+ if [[ -n "${langpacks}" ]] ; then
+ moz_install_xpi "${MOZILLA_FIVE_HOME}/distribution/extensions" "${langpacks[@]}"
+ fi
+
+ # Install icons
+ local icon_srcdir="${S}/comm/mail/branding/thunderbird"
+ local icon_symbolic_file="${icon_srcdir}/TB-symbolic.svg"
+
+ insinto /usr/share/icons/hicolor/symbolic/apps
+ newins "${icon_symbolic_file}" ${PN}-symbolic.svg
+
+ local icon size
+ for icon in "${icon_srcdir}"/default*.png ; do
+ size=${icon%.png}
+ size=${size##*/default}
+
+ if [[ ${size} -eq 48 ]] ; then
+ newicon "${icon}" ${PN}.png
+ fi
+
+ newicon -s ${size} "${icon}" ${PN}.png
+ done
+
+ # Install menu
+ local app_name="Mozilla ${MOZ_PN^}"
+ local desktop_file="${FILESDIR}/icon/${PN}-r2.desktop"
+ local desktop_filename="${PN}.desktop"
+ local exec_command="${PN}"
+ local icon="${PN}"
+ local use_wayland="false"
+
+ if use wayland ; then
+ use_wayland="true"
+ fi
+
+ cp "${desktop_file}" "${WORKDIR}/${PN}.desktop-template" || die
+
+ sed -i \
+ -e "s:@NAME@:${app_name}:" \
+ -e "s:@EXEC@:${exec_command}:" \
+ -e "s:@ICON@:${icon}:" \
+ "${WORKDIR}/${PN}.desktop-template" \
+ || die
+
+ newmenu "${WORKDIR}/${PN}.desktop-template" "${desktop_filename}"
+
+ rm "${WORKDIR}/${PN}.desktop-template" || die
+
+ # Install wrapper script
+ [[ -f "${ED}/usr/bin/${PN}" ]] && rm "${ED}/usr/bin/${PN}"
+ newbin "${FILESDIR}/${PN}-r1.sh" ${PN}
+
+ # Update wrapper
+ sed -i \
+ -e "s:@PREFIX@:${EPREFIX}/usr:" \
+ -e "s:@MOZ_FIVE_HOME@:${MOZILLA_FIVE_HOME}:" \
+ -e "s:@APULSELIB_DIR@:${apulselib}:" \
+ -e "s:@DEFAULT_WAYLAND@:${use_wayland}:" \
+ "${ED}/usr/bin/${PN}" \
+ || die
+}
+
+pkg_preinst() {
+ xdg_pkg_preinst
+
+ # If the apulse libs are available in MOZILLA_FIVE_HOME then apulse
+ # does not need to be forced into the LD_LIBRARY_PATH
+ if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+ einfo "APULSE found; Generating library symlinks for sound support ..."
+ local lib
+ pushd "${ED}${MOZILLA_FIVE_HOME}" &>/dev/null || die
+ for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
+ # A quickpkg rolled by hand will grab symlinks as part of the package,
+ # so we need to avoid creating them if they already exist.
+ if [[ ! -L ${lib##*/} ]] ; then
+ ln -s "${lib}" ${lib##*/} || die
+ fi
+ done
+ popd &>/dev/null || die
+ fi
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
+ elog "Apulse was detected at merge time on this system and so it will always be"
+ elog "used for sound. If you wish to use pulseaudio instead please unmerge"
+ elog "media-sound/apulse."
+ elog
+ fi
+
+ local show_doh_information
+ local show_shortcut_information
+
+ if [[ -z "${REPLACING_VERSIONS}" ]] ; then
+ # New install; Tell user that DoH is disabled by default
+ show_doh_information=yes
+ show_shortcut_information=no
+ else
+ local replacing_version
+ for replacing_version in ${REPLACING_VERSIONS} ; do
+ if ver_test "${replacing_version}" -lt 91.0 ; then
+ # Tell user that we no longer install a shortcut
+ # per supported display protocol
+ show_shortcut_information=yes
+ fi
+ done
+ fi
+
+ if [[ -n "${show_doh_information}" ]] ; then
+ elog
+ elog "Note regarding Trusted Recursive Resolver aka DNS-over-HTTPS (DoH):"
+ elog "Due to privacy concerns (encrypting DNS might be a good thing, sending all"
+ elog "DNS traffic to Cloudflare by default is not a good idea and applications"
+ elog "should respect OS configured settings), \"network.trr.mode\" was set to 5"
+ elog "(\"Off by choice\") by default."
+ elog "You can enable DNS-over-HTTPS in ${PN^}'s preferences."
+ fi
+
+ if [[ -n "${show_shortcut_information}" ]] ; then
+ elog
+ elog "Since ${PN}-91.0 we no longer install multiple shortcuts for"
+ elog "each supported display protocol. Instead we will only install"
+ elog "one generic Mozilla ${PN^} shortcut."
+ elog "If you still want to be able to select between running Mozilla ${PN^}"
+ elog "on X11 or Wayland, you have to re-create these shortcuts on your own."
+ fi
+
+ # bug 835078
+ if use hwaccel && has_version "x11-drivers/xf86-video-nouveau"; then
+ ewarn "You have nouveau drivers installed in your system and 'hwaccel' "
+ ewarn "enabled for Firefox. Nouveau / your GPU might not support the "
+ ewarn "required EGL, so either disable 'hwaccel' or try the workaround "
+ ewarn "explained in https://bugs.gentoo.org/835078#c5 if Firefox crashes."
+ fi
+
+ optfeature_header "Optional runtime features:"
+ optfeature "encrypted chat support" net-libs/libotr
+}