summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2024-01-10 10:07:23 +0200
committerJoonas Niilola <juippis@gentoo.org>2024-01-10 10:07:56 +0200
commit6c98242315ca1ee57d7a7e85f1b49414b8e7faab (patch)
tree11aad130e2f4cd4c6eb5facd6e9e0a54e5091b3d /mail-client/thunderbird
parentdev-ruby/shoulda-context: add ruby33, fix tests (diff)
downloadgentoo-6c98242315ca1ee57d7a7e85f1b49414b8e7faab.tar.gz
gentoo-6c98242315ca1ee57d7a7e85f1b49414b8e7faab.tar.bz2
gentoo-6c98242315ca1ee57d7a7e85f1b49414b8e7faab.zip
mail-client/thunderbird: add 115.6.1
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-client/thunderbird')
-rw-r--r--mail-client/thunderbird/Manifest65
-rw-r--r--mail-client/thunderbird/thunderbird-115.6.1.ebuild1331
2 files changed, 1396 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index dc5c29c619ac..4410c8706b5c 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -64,3 +64,68 @@ DIST thunderbird-115.6.0-vi.xpi 743885 BLAKE2B 854538cd52cd17e5eea327686c22e0723
DIST thunderbird-115.6.0-zh-CN.xpi 742056 BLAKE2B 93094c230dca599044e5e5a13fad590938b4325b63135a751320213cc29355f8f217c099fd2355d14f45c27675fb3b3d1f94652a10b0b4af8e82fb5ed71dc3a1 SHA512 f8f35b4cbdb115cc715829e2069e725c2ca21a67eb260912e76e0b920070bac98d91ae2ba4b003f2fd4e2cc71310accd43ec12b48ccfd46fdbed23d3e9db40f6
DIST thunderbird-115.6.0-zh-TW.xpi 744996 BLAKE2B 324362125b03ff5f3eb0ef9795cadbaa452ea148fd5e7fd1fe9ff41071a67933f18ff0bc0f26d976ae432b687c1a5308a5e7532bbbd21be0be0c04d3210b183c SHA512 4f2616917a13be4e9a2aa9f2be584eba1d9f2050cb99ca1b5cfc360636417c5a18050913c6e9e72cd1f8d1deadde3132a51755ec4697484fe097919a4a39ce7e
DIST thunderbird-115.6.0.source.tar.xz 530104696 BLAKE2B 3fa18506045027587cd9c8a22708965cae244345be817b921569df88059610b09054086a2953a78aeb552f4c120e7705129cfe3bb4d6a1f534bb1562a203bbdc SHA512 2484a99a62fc960b7926b1daa6055e14b1f9e1006ea45522d16131071b33003d4f7ef95911fd2ceb3e941f9d251c66d917013d6a5ecd717d2b1c6d33944f2e01
+DIST thunderbird-115.6.1-af.xpi 542273 BLAKE2B 647d7fc08ee5792e129c44fc5b74e3c226f4021e0bbb23dad6a973fc4d06c47c64f7d7d631e681c69dda5775b2492bcfae50311260beb0a17f56afa9a9b97add SHA512 35e6c7c9a05c6afe52173e67fc7a4439675e4849b64a3b614aa73a6464ed0bd0ff642cb1469282ff8eea93ed6df53e2bbed45ed0c0c9208d0f7dea5d1ada8ce7
+DIST thunderbird-115.6.1-ar.xpi 654457 BLAKE2B 5d0d92962b817b861d12345f3c564d82a95a0304f116b4b4e5d217d1c370c3afe2fc1f4aee0e16365edfd3905ef99743d224b7a004b4975cebad777e07f52435 SHA512 2ed741fbfc8981d37f1199e34856e2dfe46edbbd400fb5c9618c0c8be106285f972ab6f1ba1e50b07e68ea443ba379c4fd36fe23f95464f729461bfba7f57855
+DIST thunderbird-115.6.1-ast.xpi 560905 BLAKE2B 5496a22b6712116fc42c6f121ede4da19063992b2f1bdc0163f25ee0648858ae329f28609a2f330632c746760a1f06d62e81b38cfba045d18f5d4d2a1cf237c0 SHA512 c15b004506def3220385edaf48fab319cc442111e556ebd24af0dd19b3083b21d3150af7d399837880cd64ed2fc80c71ac78eb0d70b073e217ca8962e52e5d37
+DIST thunderbird-115.6.1-be.xpi 693667 BLAKE2B c6e73430fb50a034a091370f41122aacd9067776a2e4271e90d75e17f15a64be80fa483cf368055812d6938fafcbec61a76a8f29a2d3eeba7dce5e7579add4da SHA512 c8ad48876ba62f5598316c92dc674c837f64d52867ddb7b1730aef0f16be9d3194f836a30e2b4810387397b21a4c43af494e421e46c3b88128ea979b6569c581
+DIST thunderbird-115.6.1-bg.xpi 766948 BLAKE2B e2b8e2d47ec187a3db919ae20e9c485b9a2c26e67bc77143b06c292cc5b5eac874eccbf91507c2c7d77aecfea302de6618d9418173d9935442a857432d7ad407 SHA512 f2e4d85a1776fb2e5d6e8f448499595c19cf4f19fcc2b6b75d1dddbdb503953859fb090272c9bb53a2abebbacb65d54998cef83f0e5de372cc10ee253efef2de
+DIST thunderbird-115.6.1-br.xpi 626668 BLAKE2B 3f9417b81dd6abd7a1e00bbb80c24a31c414e36df5a975a112a03ce6ef68f29f03de798f7c3399a47f587fefd7391a60ab3540004e61424773a9a68f7840f006 SHA512 d54fa7cdada1d3c6c4afc771bdef4f41078c04273baeff711b240b9c31a2210fc8e75d885966d0656f99ea8acb72859f4efd736742504b22d77a60706e48136e
+DIST thunderbird-115.6.1-ca.xpi 673457 BLAKE2B 7e31798c5b48121d597ae8be9d9cc4f821312197eddabcdc0176029e337423af7ba40b5b8113fe283199e6f662dd7aaccfb5b69f7dc636dd29516963a4153664 SHA512 2f862f9146e2f5865de0b1d2389d2ebda6edaafd094caa07b99e891cf21b8d82358a30df424a7651761e9e0558bddd7a8506c89fc46dba83d20f4a3a25b7509f
+DIST thunderbird-115.6.1-cak.xpi 658502 BLAKE2B 8b2d0c46be1141c0a4a3cacd00c97c80e1106373af81ccfd2a9e489d84c9050971e3c32825f45db9fcca292ba091320a7d7841d9ca9b9d5bb3786ad3a5ab8aa0 SHA512 902a8083156700f2eeb91ac4990ae14f15df86400e4ee3de1f25e46dfc99800efbaf64744db2e13ebc97f31e11ee541fbf4cc6eda72aa8f2e88d8b797aaabee3
+DIST thunderbird-115.6.1-cs.xpi 735016 BLAKE2B 969bb1c94b5bfef9e8ec933b90cfbda47d6be79377d0863fd5ef43b2a21a46f1a83e78afe51e54ae66a11ef97a4f275963e9337fe966244e4b098aca09253eb9 SHA512 b1c8d21e14e57a5c647d19ff094cc10f0eb081700c4d57db384ae6b1f465d49f5be20b5b49fa5a6f18c0fca91fcc802b2e850f2f405c82ce45aa8382d02a2344
+DIST thunderbird-115.6.1-cy.xpi 704423 BLAKE2B aafcefe816a99dfb982849a07e245266c60795d1c881dcb98dee855d672b4d68fad4d7cf3d7e70cb8e1a85e8c1b48b77db137a4dacfb94d37a775b815f50ee3c SHA512 beb4fce65fde61183b564f3274e29adcd3baaac1e31c5cd0b44179593bd4ba8ab076f11b19ca000e320ff1cf9a35bc8d40aa779f1825c983a97bce5a5e982958
+DIST thunderbird-115.6.1-da.xpi 692028 BLAKE2B 77d92016761290037cba9e9b48c70690efc396b0ca984e9cc4eadca4b7375b5201bb97f816614db0503cc39f2b0aaaf2de35329bf5356a0cd3b5f4d71322c191 SHA512 9bb63148d0983c38c9ad9d888bd8d24a54dc607c9ec6ad53f005b19935312e9272e60d50bfe817db6e8bbe9017d6d0f2ed73a8f774a808830b45be5a0cb6ab7f
+DIST thunderbird-115.6.1-de.xpi 721334 BLAKE2B bb9c5efe0ca43a1b1de1d0ef15c6d407c7f4a2ef29b79c483713adb8f651647f6128efcf58513214d6513a9c009d76c232a2eab657dd5f6ff8b70b6cbe2dcf6a SHA512 008ee1f047f32d43c78eb49a6c47cc89799b68808bbb2cd20628423b7c027b7883f93643d53de29b36bc6dbb43f6a2beaa8891b74bef955b2e8f33220db844ce
+DIST thunderbird-115.6.1-dsb.xpi 738627 BLAKE2B f8d63c85ef408dfceaf549203213919462a19c0cedba06fe783a9a6980c01198169fa853d603b42460086a9b923690b52197342f0c71cf32fe905c4573e97259 SHA512 827c24727a0cbd1fb10db61e935c2c963597da5675fc97b4db4ade49efdf354bd0c7857958236633764bcb617dd7817a81a389be2cd351baa94f3cf43fae7c1a
+DIST thunderbird-115.6.1-el.xpi 838295 BLAKE2B 3ba9d536900fc91954d6e9585f2cf8f16c0622cf27783b9da0d62e780705eadb05071e11fde051e988d40987bfbc64cdd3989c122dab917742d30a6eb98110a7 SHA512 ba5ebf91b768af5f513b410774b23ebe2a01d89222e43b887b44c52ba3a574baa482a406d7745ab98ab3f9bb4ee3cf5b57c34a29892db4c0adc830f448e0f90f
+DIST thunderbird-115.6.1-en-CA.xpi 656775 BLAKE2B 957db9d8c9ecc1cbcff6b7eb9d72055561231b3308bae778d4b054d5f1ea1f311016474337cb712a091c2d210b6074fda6769ccb5a249d814eaa2d62e0daf550 SHA512 b8f303503cfba7d1921e72af5b95a7be2dd7ac957821d490bfad796991dfaf5314197adf5adc06e2d3f19a6b52fe8ccd90b06bcdc75824a99c6e73395d754174
+DIST thunderbird-115.6.1-en-GB.xpi 662680 BLAKE2B f8db5281584a17c04cd15e5f2deb4635213a5c86c12fd3a367d2d8582bfd9d832a078ec6d6f23d3b3b528f6ee3e5e4af78124f32682c1187e0f81c95046c5547 SHA512 cb7d83c963668aaa77d1e65c5a8a08890dc909f1f391acb9909c53a48cae1d07d500e50044fd6d70dcc1ca714fa748b0931b9d56435345402b5bbcec0724f859
+DIST thunderbird-115.6.1-es-AR.xpi 714482 BLAKE2B 13d4de0d94349c2b089c8286e2655f4c91aac75037f00b934ec87e7215c2841add557f8e1deece57db62e710371e6041a9b0d3c50bb8c950cf96f814fbea0aad SHA512 594bea3068d52a6bf7cd8bc9efa898576a72817c3705309590c3e872c38e482de1ad001e664769cfc7c673dde4a1b4697dc3829663210a2be09ca412a09213fa
+DIST thunderbird-115.6.1-es-ES.xpi 676937 BLAKE2B 59da56fd30dce5874ad88870a2f67a1519f4a4cc93cb393576ad26b4e44f4fbf857335e9bde6fa71672b845ca8b247279dea8ea59fbd2e1e81ce401595788d2c SHA512 4aeda13416db5d474670bc2ec32b0c13abcbe4b8fc67d99a4c2877baf1891335c73c6ba3203606488c610170805a2970ea0b02a33ceb5f733878ae7eb19db3e4
+DIST thunderbird-115.6.1-es-MX.xpi 710433 BLAKE2B 45a95051fc8a51cf10eec758993dc1a6b5c41337bc4b700ec772dd9d6e5bb920b4e46c51bce2840fe6f4b928a688fbb82b9deb5e022f7830b755db7148bf129b SHA512 abb3c67ae9b99250ae2b05be600d369a8bd5ca0c6523767641581f254ccfd2c1f407258ba5d4a9ae467fe3a1336a1a621ec2c987896931bbad5f3543edf37f1f
+DIST thunderbird-115.6.1-et.xpi 671088 BLAKE2B 422cdb8a7cb5f5c4c033cbb91417ed6e2df96e1887409f08b376544e3ecaa3fd0e4b22d7235923a82035a6fb56973397bc39d73cb81242c86ee587d3e3587664 SHA512 2699d734df4aef349b3a19a5e3c219ed7038735747651bd6e6b3deabc0e094fdae7ec0f2b153851b1d4946030a0f31dc8c7d5df7b60965c6c832f863ec3b643d
+DIST thunderbird-115.6.1-eu.xpi 694630 BLAKE2B ff33850d7b99d227c42e33e17d8509394bf008bc78d8030ad82674b31654600e499a32d68b36ca48a16b4e2449a856ef22e3accb693ff4fad233f41b6e30747a SHA512 fde19abdd5590c0a2baa47906502ada17a2d8e01263b7505d59f2d0644fa1e5805794c6becac6e863d7e39ec9fbc96935f52b0cb8b9a765b1841b36822b449b7
+DIST thunderbird-115.6.1-fi.xpi 693974 BLAKE2B 520af27e01d54c6e48495284dcc0056115a4115d9c3a6f1ea1b259588ebc1bfde3cd8ed269946e51688df2d758aae3e13ecf10422aa145599b76ddad37349038 SHA512 96458b2fcccb90455880e68539951d571603b28c3370437320ebadcfed334368bd1a346f540a403ef45b505c152f6ce72c543e0dea75c1909011084ddbd528e9
+DIST thunderbird-115.6.1-fr.xpi 726653 BLAKE2B 58f1651a535e7a6253a522607d87f1d5bf3aa32be06b184ecbf9d047f250f18324e6d89c033b05d1e29dcd203344abe1fe9b64de30eab0a7ea5a3ae0708999a1 SHA512 48df5291b18e0b39e94b27f36e6dbc09d7a61894865a9b90bbff542be985a9f2ad0e57e65e6d03f032768cbd9dc24bbdcf7a5c16511fbc3ff49aea1b142400a1
+DIST thunderbird-115.6.1-fy-NL.xpi 709256 BLAKE2B 758b41bf36fdd1f17af09771c291714d96363d2627cd9f3553fba4f35e9976caba2b0ed196167b4929d2c7bdaff7c61c45d5f00abdc801e07bd47456d6eb7a73 SHA512 e56dd148272571563a7160a8c6c22e51061ac789af2c3f3cea8e6c4463e53dfc786a335f38afe9fe69820a62d91e9041969d6127ee68693ebc04efccdca300a7
+DIST thunderbird-115.6.1-ga-IE.xpi 602005 BLAKE2B aeeb9fc1b10f915e59f28ab239d68f53848480624cb0aa647b88373b9a7c8f06af6235f7698910da2ed0342237ec3ddf952e4d3af9b90b27175a01e5b677bf96 SHA512 434bf45e37d8a09a36f50573e611f75d22e300674f5e83ba59695ddbafd40df871561090f12a597c09789901b692a30755018e0b7a90e2167008b3956ca35ee3
+DIST thunderbird-115.6.1-gd.xpi 702942 BLAKE2B ae4d8f9200d765441cf6f19ae34ee9c4e33ce1434673fdad90c84d5950427d75031c7f96ce972f0faaea655264fb0374ae492cc2b71c1b6b2ad27d50bf305482 SHA512 7fc4a177efa25db70dfef70c19fd2bacd73fb45c3ae2253d45b93ebf3285241a0b22d0ae16a46baff98b2c2e8f5632ce74362ec450e87d041e374c5977c5838d
+DIST thunderbird-115.6.1-gl.xpi 706710 BLAKE2B 5ed0341b1a10456fa54500c09d2f7defd9a1aa8a3b5161268591bbe284870a3276c4245f908430284eb64e01f53c7bad29e580edacdc8b6f16a23fe4cb18e403 SHA512 cddd2037eb802a5cb91c35f387845659782774385847cb0713f94968702f60da5de712fbb7c12a2f513a08b0ffab3a9b3478a586220d97d4e5611e831a8b96e9
+DIST thunderbird-115.6.1-he.xpi 667345 BLAKE2B 18bd4b9f563f3119041cc654649b981ce477a18122df83109c8c2fc777442e8dd0239fb8cd40d063e133a28eb5c000cfa31ab6e143934eb7be7c36b581493501 SHA512 ee78fb3190d79a61ce625fcdcf309a8e0006316764c3dfea600142c9944daf54dd3c2ecc815af6eac29e5000f0327c4fe13f4eebd0757e71b57570cef3e5e986
+DIST thunderbird-115.6.1-hr.xpi 677274 BLAKE2B 9372f5be0356d27a7a08dde357448a400abd405ae52af85a387b16b919c537e473a7a9296a58a74e4ca30604b8a81e46456cb28cdfc2617ec0d60c51213a7dc3 SHA512 dd96cad493150471b9ef0a01cb1fcb67514dd3be3bc87625342c8b6e9bad75dd6e28f09049d4bd318d7fc016faa5a8ea2ec0a286c92307aa20406729d4867ce9
+DIST thunderbird-115.6.1-hsb.xpi 734935 BLAKE2B 324f9eab4c27a6b70080bced0eb4c174e30d9935e617cf00c0eaca04a74443bf230186829c6d674c2c81c42b1098ad3fe83bb7dc2254e6ffca2be5491ee8a907 SHA512 1f2acbd631d171c61decfb8d24813ff9b73108894c78523bef7f3bbc455fc908f551227c5b8b1a80ccb3b5292f39e03de73d7ec1e2c99c01d2f53c0816073801
+DIST thunderbird-115.6.1-hu.xpi 737867 BLAKE2B 3b56a5829c3cb8b4435a8db8dc84ec03ac744222f70a5f107a181f7d1beed8cbf2ddcee1a9f0e779eb6425e8b49456a58db67daf6a1e230f59be11f885f7e2d4 SHA512 0300471e22f22c6e72a3f47093d979829b58946db181b57d9dae40ff51608dde1c95302eb86e81968d533af2622a1173350e31ec6c2b9d8ff424e2ff9995cec3
+DIST thunderbird-115.6.1-id.xpi 642173 BLAKE2B 0f92df492d93aa76183bdfb6c129e6608e1c2079b51926415ec0fdaafa0016906fc146a6b6e0bb9d335e0c6ac38b89389f3489af1602f67ffec02f1f09cb3489 SHA512 e8edc93b953316578394c294d7e6690e0b3ce2f3f9204bed514aa20c186724f3225e0f5eee4177136bd30abb7bb070ce79a2841a8ef27dff8cd9ae237d0ffdc6
+DIST thunderbird-115.6.1-is.xpi 703280 BLAKE2B 938b93aabf7a9aa1975156b657ef02ca46f77409b8b1f4b0004bb3eff9e1abce0cfebc0d3a82f2a59d5ffba722b11e5e3484fbd91b10ac5aca0ec5a44de81063 SHA512 2bceeb56da213db13e3db301654a0438fcd10923eb4d946f548f7edfca93784eeef9aed5177e32814742c67f2444ef8db4acdaa7b7957d62501139a3f1c879ea
+DIST thunderbird-115.6.1-it.xpi 644852 BLAKE2B f3358cc290abac8af178f99d72a1c4b074ddca5d1072d5d47823cf0dab05470e668c2df8fda4452adde82f1c222e0e660d491213881bf4462248fad41e96f75c SHA512 d0de1848cedb02c9a608cbe7ea2819a258f92dd574fafbff254a9536b522f59cf7e475801d7f4ac856596f8e698b6458a362a4ebea8077073a387df77c72419c
+DIST thunderbird-115.6.1-ja.xpi 779844 BLAKE2B 0d38e74580a1f2b83dba8af798b2b40c089bc6c7d794baef24ea715ee808875871afc09ede19322153031f6d8c3aa3c2a35abe44ab79b54840df0df4a849fd34 SHA512 f78f284efd04bd91729a3ea6b4e41deb8b55f733d0ccc42bbe80a29a3c5b96844ed8107bd783de826c030f1e01de240e43d357f523e1f4913e0a47536e381aec
+DIST thunderbird-115.6.1-ka.xpi 765375 BLAKE2B c1acc909912318da38fedef58697af73f4d5196e947e69bba4c7186e69601d7f7b16f8b5e7038785df721c01209c5de0ed57952f6c013f239164a36cad8f4b66 SHA512 3953dc8e07f69c9d3f1f55e699d10b5dcc69dacd25c01c99148c33ba5310269384e74bcfb0176dd359f71bbead508584c62981e954c941e605b96897be41bb27
+DIST thunderbird-115.6.1-kab.xpi 699207 BLAKE2B 2d3c05813709a9d10de1e17c12a8ea2f75dad230cfc71c74752fdd2b42adc5922493de8f20e8f75972b9f6bee8fd9e1c4917e6f297801ffcc1f778e28ced3f76 SHA512 96121a373288b29d2fc69f82251910c65aa7cba7c757c518297ddcdced4b3da5c298601983e7f7f080e8d3d1637d2cab199e508b210beafac5379c657558d335
+DIST thunderbird-115.6.1-kk.xpi 806676 BLAKE2B e2fac0549865a28ada322b34a1c855f9a6599045af365dc40a911ec4b671e9ce8d59d38be9d2599e2eb53b8ca46b898fb915c150687c93a97bdd290e1baee9ed SHA512 27db1a0acd1b3b0adc59bd0dac09f7bdb1fac5166e2071895fbec02fd77496e3a0a32798c05d18c8837854d1a7dc681eb35f5bf34ee7a6a2ef48c9505b346f45
+DIST thunderbird-115.6.1-ko.xpi 715691 BLAKE2B 9f2971aae5ff2ad440be10aeb9144125b6e837afa43748e5dfb118bcb91e7f08ae50209ec622938fad98222d8fc6c1a08d83105206657b521b219aa175532a84 SHA512 289ca1bd4f3c7319f601480399c6eccf53b6bb75968116de394749905f9cad2ecee5d41a48b4554f20097e20542913a0bd8c650ea7b62577a42570c47ba0f2fb
+DIST thunderbird-115.6.1-lt.xpi 679458 BLAKE2B 73428e06901115f1d92f8d1d2f10813ffec2b139446537c2ff09b9d55498dda8d65964cc6cdbaac9a480995a783e678f439f820bfe1009ee17a1162ac5f2db5d SHA512 365669397ea3b6f8d8cb8e537011e864a12e475140cfa01c8d9948361aba43f2034b7774c1936e43d7b798d2898df73cfc43e1b811cbf034fb840b363a195858
+DIST thunderbird-115.6.1-lv.xpi 604300 BLAKE2B 066a006906b559d3adad26e6e8d4bdfb2409dc0f10045d0011b265dac4faf98a222a6717c03bcdee212c3a1f7be0b5c48c7801c5995222e7375f3e8642bdf275 SHA512 55a86fa602365f30a2fe9853babaf81f479510cc6b82f13f7eb1c99b59579efe2678f3e6e7fe02d4755598b6a616c9987329ac2aec0c15a02a748dd9b8b32629
+DIST thunderbird-115.6.1-ms.xpi 565452 BLAKE2B 3535a41827922aaf9b8b72eea5096326826257ce91ad96f36ee16479e4ac5c170b3bc367ad360642d265b0c27bce05278d6ac2ee7abac80130440e09547877c5 SHA512 b356de3faab4cd6a7add08bd54b84da416008c6d4e4e8fe06ad8daede45931c7c0f3f2fd87fd019997a17d71faa0d49c9e1063878a16bbf88a28c6f820c004a8
+DIST thunderbird-115.6.1-nb-NO.xpi 653215 BLAKE2B 0c0d9e225b47a3381af0833b2bfbfe6e7ee583a92cf1ef0df63d5244b9a776203154ea708437ade9a772a92ac124c4a48e08e78d34a7a69d87ebc28701ac75a1 SHA512 6e3ca248265276e246019b34afc833b285cdd4e27e71856138417119df34d2e0e438617e88a52ccb1d6839ab811eb1422f57663153e3b7d8f7248aed84440405
+DIST thunderbird-115.6.1-nl.xpi 700736 BLAKE2B 5eb48d0b595bc6feec59c59304e18f63de80db0cab81a19210bc0650bf0dd0817846235c3496d6fc84f4a18527852fb684876d46f3ae3d8b795e3ff1422f5d50 SHA512 c1567b0b8156c29e833805ac7aac30f06da7901e3e22d4e3b6a951dff13124f26c585ab2a32f636564aa89f121c2ecb8029fda031ea112c9b7265e2b7a621619
+DIST thunderbird-115.6.1-nn-NO.xpi 672847 BLAKE2B f167091ca338e04af70bae556c46cbb116da5b78531bda6f85956d5da3504baa70e4cc29c963540baa664545ff26762dccabcc05671f90248c21d18873145c9c SHA512 0e4614afb7d867daf94b292abe28d9d925b225295237af16907fe15b50199216d8cc47505209a1679d2d059cd33b7186bda7035911894b30ad6d00fa071ab370
+DIST thunderbird-115.6.1-pa-IN.xpi 658004 BLAKE2B f5e0dbfc543fa6cad2101b3775d5c3a5acb0eb07889b49266fd7d6b5c3b931eb6818f53b7519899eeb05dd77f948497d259ecd6c1a9c78b1c6c867fa2541ff31 SHA512 7d5572aac8410ffdcf3a03bb33471fb3d5d077a4f82beb10e088b2f27b24d3b58f67e70ab9f16fc1937760c97d15d264d2520bbd8cb8cf014803c3f09422e6de
+DIST thunderbird-115.6.1-pl.xpi 717833 BLAKE2B f9dfbcc2a255270f78c72bfb286c873ab72c6e64115f5a8203871abaf18c0294213d3541008b32d33d5c148e4013073cf52b2f1e91b31e73b3cf3d732c799317 SHA512 e5af61f6672cee23832dd08f25bf07a81a1849406bdc769522394dd048b2716092c903770c7fe35a53a02a6296165e1326807aef962282c4fa7a4fd0ee4b1462
+DIST thunderbird-115.6.1-pt-BR.xpi 708599 BLAKE2B 2f226027b3d449eebda2f6b0c68760d0cfc8fe8d8b104e47e26f21e9baf5d6a9d15ecf0569b50f3cddc1ed9cb252d425a9089998a94e655ebc90d95212dc62bd SHA512 e31fb929171b0cc92ac27922fe7805f67ddcc9ca3aab6fd6760c174d29f6045ee088714f30a1bc885d7f9d9206473f52f21ae85db041e98cccaa6e59dfbff99c
+DIST thunderbird-115.6.1-pt-PT.xpi 689346 BLAKE2B 9218ed0627896afde7fa5b3e8b56efd5a0713ffacf807f9ae7a9fec5f68e14fe5f4bb5b611c8e78fa170bed01576b295811dad364d1bc126c6f05df919e55398 SHA512 80621b3849426eec94b72ac78c7902bacc370edd850894a5c2f7c8880783815bd10f88ad3297c9f7e2991df128aaca74c1762431dc2aec80f77b0677a813f32a
+DIST thunderbird-115.6.1-rm.xpi 704571 BLAKE2B a79959d9bc097ee11dd40dbd1f3b73807850674c27146710131f71aae6a9710c64981c71ce0d9a6b6b63af235ae3d9b0ec18b052b6b046b240540df29ec2ce8e SHA512 2b1d4a54e46fa02faf47b450e81e1d3621509d5810947f4a37d042501d2d520c45c5654de407a66fa9d90f9db9622c06a702cf24d4bb53245666de5036de929d
+DIST thunderbird-115.6.1-ro.xpi 650708 BLAKE2B b3e5e1d1d2887fc2488b9835a4a295f5fe74bd0924ce936ff27f0edf7d4a41b1215318c9ffa5e1303e5d0f60fd326711b08dfc7e7fae406c968c602f51a6ca42 SHA512 8ece65c8719de7c4231bbdc653660baf78e876a20a41eb42f2ba01d2d5071e5c6b9b7efb119257507a960310ddfa73327bd3fb841c0d22b85700940df893f556
+DIST thunderbird-115.6.1-ru.xpi 821683 BLAKE2B eecd4e101a9092f2a387ecdd711bf111444ad52ef23b8126034f11a3f44d81ceb1ca64cd399f46b92e5d67675b7e64e47f147fed438fe6fbfee363073a37814e SHA512 f4b5e95e7f09ec72222a50b25de63a0aecc6b531e074d858ad4a3aa1489ed51bd17bd6e02146266bcd292283d2137efeb2f3039547d2971e488da5ad208e5548
+DIST thunderbird-115.6.1-sk.xpi 737523 BLAKE2B 9c5a359622fbc1969e5e7b0b275693d4a4686a54034587c195c29cda75d5dbb8fa771d9e547b035247ab85d2f7cd858c06a663f83b439b77a3d912bda03d65be SHA512 e86fe45eb6e79b06997e68abb4c6f8778481e7c89bdc1afebf3870055327f596a67db5fecec8561e37c373e3a04b364defdb174219a07558692d2dc1aff0a552
+DIST thunderbird-115.6.1-sl.xpi 704070 BLAKE2B 6521292dd885eeb227f64baada8ae9f9efc4d462fe105c79dcc1eae634d6cfb183edabed60dba63fcd296c165326deb1730d3c9036a9420eef989499a38b2c72 SHA512 2f9b539a939e441c598249d499f0ae7a09cd2b27d69490f0fb4ff9647ac67be824492c1af1560be78366693868bb78e32d897749c78cce1cc750e490b8e83294
+DIST thunderbird-115.6.1-sq.xpi 721307 BLAKE2B f3a25944aa1c12b25e1a19ffcaa76282185778b22db668822dab7870834c062a18b71cf4c3a3e06a1c822acb16fbf44ecc37310dc905ed8c3a766b3b05d8854c SHA512 56b52758ef92b9015e43634292dc1995f723e5dbaad5a2743d69cfcdf8d6f10fdb66028b14fec4b382fd5c9487dfed39d8f55ed71aa358a6be7cd9176573fb10
+DIST thunderbird-115.6.1-sr.xpi 745018 BLAKE2B c229591715ea9b894ee12d03c5041c3d8ebb4d200f37cac6e6459e7424e3e43ab17bf84f2f238bed62310222996bcb0e850ed83676cfe9b129c1fdd2fed442e1 SHA512 c9d3ff8957185adb33aa023dcac366310d6923dbba08a628d0cb2c256c0d2ef646691d1f7cf36375f33103815f4f59421bdad01c2a12a9c6389481d1548b2abc
+DIST thunderbird-115.6.1-sv-SE.xpi 703653 BLAKE2B d5a1ab26e1232fc43907989fcee9c78a1cf63379f534c3e8f45e1f0b12563816f4220c6660ea6847682fba6bb65abc9bb257b243b97e569f715b740dbca8b560 SHA512 7e4341a22ccea39488347eaf8dd7e70490b7adf34ccfd295f866b791e4f01a4c93673c16136dfb5c681fb4593483998598031a14d87850a1c4b334f2f865bf5c
+DIST thunderbird-115.6.1-th.xpi 760885 BLAKE2B e28c3f5aaf3d8d89d93ae8964606ebdafa77f1a10069ef050d4b7d6899caf948ceb219198bd90ef51966e5c348a68b3915c5c8c5bb0677f3f44bdd651dc8283d SHA512 1bd2ceaacc45b7dc353a31a1160ba01e9902bd7b9f77cecd23979b9d56472b600fe824366c6bd7bdcd54f466dd05ce5a858ff6164ba805fc4f99ffd8da27068e
+DIST thunderbird-115.6.1-tr.xpi 716698 BLAKE2B 5fd33b11c88d910e3f4acc8b9d30794924b66a01fec73c0f76293d66bf3a13b11995ef2ffc893eb5884cc717ab86fb6a41a7ad8c6ef23988aae2d050ad85f0c5 SHA512 bfc4ebe61b71ce8cae1682d20a77dac64d280cc51856f6f761743bbe98b040e441dde6f65fb9c982a897d58948e6ada279d5a76d8eb2c0a351dfece0dff0cb10
+DIST thunderbird-115.6.1-uk.xpi 814588 BLAKE2B 32001818bcc9436f26e39cc1308c5f66d8bd4731a88894ce6e1853b928369a3518394ff6038a0303dbd3cb8c2a7b09b835c2e081b7cb86c970016221cc17b6a3 SHA512 c78d146e4771cd60b88564a0ad0ba4529c92eb0955ede3ebd6f37323d41702170426a39f9b68918b824dcca0393964f788ddb027218d20de5bbe5049ff5b9c68
+DIST thunderbird-115.6.1-uz.xpi 579837 BLAKE2B 7dd962e3429f75798600d7a7b97f325647639d122f7375946713eaefe129620e90b7f934dca63cfc9d414e754d5ab5085c644bb07bedb5efec38ea1a48a73ebe SHA512 3629363d03a133466636dd89f21d77a2e8f59e79739207ee6edb8b19007bb9389280f40f2604b8f5853741323120c8f04bb23178d8544869a928839ef38742d2
+DIST thunderbird-115.6.1-vi.xpi 743886 BLAKE2B 8c3a879cebf75b23b60b57350fdab990b1508e64be982a1f310ab6a8129d6348edebccd0b0d789f059590c4084960494311ee125c3f57fc0857953e9529427db SHA512 9b5dc410baba521e8e9462108576cbff02a41bfd72ccefccd13caa0bdeb50d8bbaaf6cbdb42ae0728c8d53f65679fb3e684a6f506ffde0924c7a281ace9cdc00
+DIST thunderbird-115.6.1-zh-CN.xpi 742058 BLAKE2B 0d18a32a23b072c85122cbe5a74036d6b2db64819d29c07703870232c857c949e313afb3760a21868b19443aec49a53ecd602f02836455203e5396b0b5211005 SHA512 d87781b0130b8788f822bf447ab322df451cba4149b95397deeecf5e1c3be0ded744d5bd9b4fad9829e8231120356860e13dee32a2bba0a9aae93baa7ca4286f
+DIST thunderbird-115.6.1-zh-TW.xpi 744999 BLAKE2B aec2a8404722b3c2b07362ce4542665a603049ccd6408c58552a5ffaca6af50a1875e6930866fcc8d8d2adef9c545a2c769bf7f9cb4f497a01df5ba66a915577 SHA512 72d4fe5e6bab768752d58318e8253f96cf0ce7a511642f920b3a70fae1002ad69f6295bf62775868bc6140a7d1d7285a94d33ff0a1b4e0c866a75f339d13e1ee
+DIST thunderbird-115.6.1.source.tar.xz 533899156 BLAKE2B e26b52782bde9b8637dcf5eaed0c7762541c87832032353bb849bbd0e735121a94a13518877fbd4aa091d943842cf8f04f526fc3b23eae56fc445d0e756c38b2 SHA512 f2efaff8b209234b202671b5322fb14a367b955e28c4b24b139af091b838186126e3d387ca21e57ed089629af876e86b38588789b1ef3db14f4f8703095467b3
diff --git a/mail-client/thunderbird/thunderbird-115.6.1.ebuild b/mail-client/thunderbird/thunderbird-115.6.1.ebuild
new file mode 100644
index 000000000000..3b4e775b2ce5
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-115.6.1.ebuild
@@ -0,0 +1,1331 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-115esr-patches-08.tar.xz"
+
+LLVM_MAX_SLOT=17
+
+PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_REQ_USE="ncurses,sqlite,ssl"
+
+WANT_AUTOCONF="2.1"
+
+VIRTUALX_REQUIRED="manual"
+
+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 linux-info \
+ 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/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 +X"
+
+# Thunderbird-only USE flags.
+IUSE+=" +system-librnp"
+
+REQUIRED_USE="|| ( X wayland )
+ debug? ( !system-av1 )
+ pgo? ( lto )
+ wifi? ( dbus )"
+
+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:17
+ sys-devel/llvm:17
+ clang? (
+ sys-devel/lld:17
+ virtual/rust:0/llvm-17
+ pgo? ( =sys-libs/compiler-rt-sanitizers-17*[profile] )
+ )
+ )
+ (
+ sys-devel/clang:16
+ sys-devel/llvm:16
+ clang? (
+ sys-devel/lld:16
+ virtual/rust:0/llvm-16
+ pgo? ( =sys-libs/compiler-rt-sanitizers-16*[profile] )
+ )
+ )
+ (
+ 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] )
+ )
+ )
+ )
+ app-alternatives/awk
+ app-arch/unzip
+ app-arch/zip
+ >=dev-util/cbindgen-0.24.3
+ net-libs/nodejs
+ virtual/pkgconfig
+ !clang? ( >=virtual/rust-1.65 )
+ amd64? ( >=dev-lang/nasm-2.14 )
+ x86? ( >=dev-lang/nasm-2.14 )
+ pgo? (
+ X? (
+ sys-devel/gettext
+ x11-base/xorg-server[xvfb]
+ x11-apps/xhost
+ )
+ wayland? (
+ >=gui-libs/wlroots-0.15.1-r1[tinywl]
+ x11-misc/xkeyboard-config
+ )
+ )"
+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.90
+ >=dev-libs/nspr-4.35
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/mesa
+ media-video/ffmpeg
+ sys-libs/zlib
+ virtual/freedesktop-icon-theme
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf
+ x11-libs/pango
+ x11-libs/pixman
+ dbus? (
+ dev-libs/dbus-glib
+ sys-apps/dbus
+ )
+ jack? ( virtual/jack )
+ pulseaudio? (
+ || (
+ media-libs/libpulse
+ >=media-sound/apulse-0.1.12-r4[sdk]
+ )
+ )
+ libproxy? ( net-libs/libproxy )
+ selinux? ( sec-policy/selinux-mozilla )
+ 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-74.1:= )
+ system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
+ system-libevent? ( >=dev-libs/libevent-2.1.12: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? (
+ >=media-libs/libepoxy-1.5.10-r1
+ x11-libs/gtk+:3[wayland]
+ x11-libs/libxkbcommon[wayland]
+ )
+ wifi? (
+ kernel_linux? (
+ dev-libs/dbus-glib
+ net-misc/networkmanager
+ sys-apps/dbus
+ )
+ )
+ X? (
+ virtual/opengl
+ x11-libs/cairo[X]
+ x11-libs/gtk+:3[X]
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libxkbcommon[X]
+ x11-libs/libXrandr
+ x11-libs/libXtst
+ x11-libs/libxcb:=
+ )"
+RDEPEND="${COMMON_DEPEND}
+ jack? ( virtual/jack )
+ openh264? ( media-libs/openh264:*[plugin] )"
+DEPEND="${COMMON_DEPEND}
+ X? (
+ 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 && ! tc-ld-is-mold ; 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}"
+}
+
+# This is a straight copypaste from toolchain-funcs.eclass's 'tc-ld-is-lld', and is temporarily
+# placed here until toolchain-funcs.eclass gets an official support for mold linker.
+# Please see:
+# https://github.com/gentoo/gentoo/pull/28366 ||
+# https://github.com/gentoo/gentoo/pull/28355
+tc-ld-is-mold() {
+ local out
+
+ # Ensure ld output is in English.
+ local -x LC_ALL=C
+
+ # First check the linker directly.
+ out=$($(tc-getLD "$@") --version 2>&1)
+ if [[ ${out} == *"mold"* ]] ; then
+ return 0
+ fi
+
+ # Then see if they're selecting mold via compiler flags.
+ # Note: We're assuming they're using LDFLAGS to hold the
+ # options and not CFLAGS/CXXFLAGS.
+ local base="${T}/test-tc-linker"
+ cat <<-EOF > "${base}.c"
+ int main() { return 0; }
+ EOF
+ out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version "${base}.c" -o "${base}" 2>&1)
+ rm -f "${base}"*
+ if [[ ${out} == *"mold"* ]] ; then
+ return 0
+ fi
+
+ # No mold here!
+ return 1
+}
+
+virtwl() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ [[ $# -lt 1 ]] && die "${FUNCNAME} needs at least one argument"
+ [[ -n $XDG_RUNTIME_DIR ]] || die "${FUNCNAME} needs XDG_RUNTIME_DIR to be set; try xdg_environment_reset"
+ tinywl -h >/dev/null || die 'tinywl -h failed'
+
+ # TODO: don't run addpredict in utility function. WLR_RENDERER=pixman doesn't work
+ addpredict /dev/dri
+ local VIRTWL VIRTWL_PID
+ coproc VIRTWL { WLR_BACKENDS=headless exec tinywl -s 'echo $WAYLAND_DISPLAY; read _; kill $PPID'; }
+ local -x WAYLAND_DISPLAY
+ read WAYLAND_DISPLAY <&${VIRTWL[0]}
+
+ debug-print "${FUNCNAME}: $@"
+ "$@"
+ local r=$?
+
+ [[ -n $VIRTWL_PID ]] || die "tinywl exited unexpectedly"
+ exec {VIRTWL[0]}<&- {VIRTWL[1]}>&-
+ return $r
+}
+
+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 && tc-ld-is-lld ; 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
+ # Update 105.0: "/proc/self/oom_score_adj" isn't enough anymore with pgo, but not sure
+ # whether that's due to better OOM handling by Firefox (bmo#1771712), or portage
+ # (PORTAGE_SCHEDULING_POLICY) update...
+ addpredict /proc
+
+ # May need a wider addpredict when using wayland+pgo.
+ addpredict /dev/dri
+
+ # 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
+
+ if ! use ppc64; then
+ rm -v "${WORKDIR}"/firefox-patches/*ppc64*.patch || die
+ fi
+
+ if use x86 && use elibc_glibc ; then
+ rm -v "${WORKDIR}"/firefox-patches/*-musl-non-lfs64-api-on-audio_thread_priority-crate.patch || die
+ fi
+
+ # Workaround for bgo#917599
+ if has_version ">=dev-libs/icu-74.1" && use system-icu ; then
+ eapply "${WORKDIR}"/firefox-patches/0029-bmo-1862601-system-icu-74.patch
+ fi
+ rm -v "${WORKDIR}"/firefox-patches/0029-bmo-1862601-system-icu-74.patch || die
+
+ 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
+
+ # Clear cargo checksums from crates we have patched
+ # moz_clear_vendor_checksums crate
+ moz_clear_vendor_checksums audio_thread_priority
+
+ # 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 ..."
+
+ local version_clang=$(clang --version 2>/dev/null | grep -F -- 'clang version' | awk '{ print $3 }')
+ [[ -n ${version_clang} ]] && version_clang=$(ver_cut 1 "${version_clang}")
+ [[ -z ${version_clang} ]] && die "Failed to read clang version!"
+
+ if tc-is-gcc; then
+ have_switched_compiler=yes
+ fi
+ AR=llvm-ar
+ CC=${CHOST}-clang-${version_clang}
+ CXX=${CHOST}-clang++-${version_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,
+ # AS is used in a non-standard way by upstream, #bmo1654031
+ 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
+ mozconfig_add_options_ac '' --enable-project=comm/mail
+
+ # Set Gentoo defaults
+ 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-tests \
+ --disable-updater \
+ --disable-wmf \
+ --enable-js-shell \
+ --enable-legacy-profile-creation \
+ --enable-negotiateauth \
+ --enable-new-pass-manager \
+ --enable-official-branding \
+ --enable-release \
+ --enable-system-ffi \
+ --enable-system-pixman \
+ --enable-system-policies \
+ --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.
+ # bug 833001, bug 903411#c8
+ if use ppc64 || use riscv; then
+ mozconfig_add_options_ac '' --disable-sandbox
+ else
+ mozconfig_add_options_ac '' --enable-sandbox
+ fi
+
+ # Enable JIT on riscv64 explicitly
+ # Can be removed once upstream enable it by default in the future.
+ use riscv && mozconfig_add_options_ac 'Enable JIT for RISC-V 64' --enable-jit
+
+ 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
+ else
+ # This controls the backend of the bundled librnp. Choices are "botan" and "openssl".
+ # RNP Upstream recommends to use botan. In Gentoo it's preferred to use system-librnp.
+ mozconfig_add_options_ac "+bundled librnp backend = botan" --with-librnp-backend="botan"
+ 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 X && use wayland ; then
+ mozconfig_add_options_ac '+x11+wayland' --enable-default-toolkit=cairo-gtk3-x11-wayland
+ elif ! use X && use wayland ; then
+ mozconfig_add_options_ac '+wayland' --enable-default-toolkit=cairo-gtk3-wayland-only
+ else
+ mozconfig_add_options_ac '+x11' --enable-default-toolkit=cairo-gtk3
+ fi
+
+ if use lto ; then
+ if use clang ; then
+ # Upstream only supports lld or mold when using clang.
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang and USE=lto" --enable-linker=lld
+ fi
+
+ mozconfig_add_options_ac '+lto' --enable-lto=cross
+
+ else
+ # ThinLTO is currently broken, see bmo#1644409.
+ # mold does not support gcc+lto combination.
+ 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
+ # lld is upstream's default
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "forcing ld=lld due to USE=clang" --enable-linker=lld
+ fi
+
+ else
+ if tc-ld-is-mold ; then
+ mozconfig_add_options_ac "using ld=mold due to system selection" --enable-linker=mold
+ else
+ mozconfig_add_options_ac "linker is set to bfd due to USE=-clang" --enable-linker=bfd
+ fi
+ fi
+ fi
+
+ # LTO flag was handled via configure
+ filter-lto
+
+ mozconfig_use_enable debug
+ if use debug ; then
+ mozconfig_add_options_ac '+debug' --disable-optimize
+ mozconfig_add_options_ac '+debug' --enable-real-time-tracing
+ else
+ mozconfig_add_options_ac 'Gentoo defaults' --disable-real-time-tracing
+
+ 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
+ fi
+
+ if use elibc_musl && use arm64 ; then
+ mozconfig_add_options_ac 'elf-hack is broken when using musl/arm64' --disable-elf-hack
+ 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 tc-ld-is-mold && use lto; then
+ # increase ulimit with mold+lto, bugs #892641, #907485
+ if ! ulimit -n 16384 1>/dev/null 2>&1 ; then
+ ewarn "Unable to modify ulimits - building with mold+lto might fail due to low ulimit -n resources."
+ ewarn "Please see bugs #892641 & #907485."
+ else
+ ulimit -n 16384
+ fi
+ fi
+
+ if use pgo; then
+ # Reset and cleanup environment variables used by GNOME/XDG
+ gnome2_environment_reset
+
+ addpredict /root
+
+ if ! use X; then
+ virtx_cmd=virtwl
+ else
+ virtx_cmd=virtx
+ fi
+ fi
+
+ if ! use X; then
+ local -x GDK_BACKEND=wayland
+ else
+ local -x GDK_BACKEND=x11
+ fi
+
+ ${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 programs for extra features:"
+ optfeature "desktop notifications" x11-libs/libnotify
+ optfeature "encrypted chat support" net-libs/libotr
+ optfeature "fallback mouse cursor theme e.g. on WMs" gnome-base/gsettings-desktop-schemas
+}