summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2023-04-25 13:04:30 +0300
committerJoonas Niilola <juippis@gentoo.org>2023-04-25 13:05:00 +0300
commit053c8d63dc375ed82fd36725e32767d5a6647b81 (patch)
treeba43157bc875623aadf0215d95c9abd607ebb884 /mail-client
parentwww-client/firefox: add 112.0.2 (diff)
downloadgentoo-053c8d63dc375ed82fd36725e32767d5a6647b81.tar.gz
gentoo-053c8d63dc375ed82fd36725e32767d5a6647b81.tar.bz2
gentoo-053c8d63dc375ed82fd36725e32767d5a6647b81.zip
mail-client/thunderbird: add 102.10.1
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'mail-client')
-rw-r--r--mail-client/thunderbird/Manifest65
-rw-r--r--mail-client/thunderbird/thunderbird-102.10.1.ebuild1178
2 files changed, 1243 insertions, 0 deletions
diff --git a/mail-client/thunderbird/Manifest b/mail-client/thunderbird/Manifest
index 69079dedde71..3237eefd4cdd 100644
--- a/mail-client/thunderbird/Manifest
+++ b/mail-client/thunderbird/Manifest
@@ -64,3 +64,68 @@ DIST thunderbird-102.10.0-vi.xpi 745667 BLAKE2B 3aacd1499568d44cf30090b60fbf3ab1
DIST thunderbird-102.10.0-zh-CN.xpi 739889 BLAKE2B 520724603b97d7355a9ae673bfa464ff1c0a912917fdc6129998d4ef48e2206a6555df3d835d3bdaffa112228c7ffa3c16f809d26fcb1d03f2459823dbd42695 SHA512 1758de279cea6ebe4418de5fdeb01d627aaa7527ebfe7042677c33820f029b1219bdc56aa16b4879e65ed7022b3382152fb160189f0ff8a9537e6412d07b63df
DIST thunderbird-102.10.0-zh-TW.xpi 748348 BLAKE2B e55698524f79262a23a7c1f008582f193015531f86243443922b4bb912b8fb1ab44841ed5d8591673ececf3ce629abc87dc5a3a0d47cceaf389a94c5f40c80d6 SHA512 cba5d31b6163fa7c5826931b91361332f05bb4c693e62756217b141aa6784bdf995889dd55b0c9f3fafd05452dd7a91135dc0a3c7db5c33365f9fc52fa515372
DIST thunderbird-102.10.0.source.tar.xz 500949660 BLAKE2B 739e855a967ccedd6bf7c53cf406f3b66f38a173382c0a3b3aeae8a28d2cf472c3f5bcffc46a0c3a3f92ef54c79f3bb953123e296a3de938d3c815fce9c77522 SHA512 08d7908cbef48cffac2fbab857f8aceb9a7abd7c72d5e9c9dae8d3a3871846b6f0cf562c5b646ad27a0d79ac04b8605b123c5e1929f92afee4501344d1fbc5cf
+DIST thunderbird-102.10.1-af.xpi 556869 BLAKE2B 2f88539cb03eed0e5d912f292321753c604a5828c109c24d3283e8e8764a6497b0348cf05e94020c61dd2da61c6a99dada48c6f159e6b6eaeeda77dda42cb773 SHA512 dc5af20d0614190b2f4f963a28874e4fce8141d3c44a55d5ebc0c964a3412e168f165783eeeeacdbdc2c845b6fe9df75ab99d4071af76a7beb1f016df0a081b5
+DIST thunderbird-102.10.1-ar.xpi 666809 BLAKE2B e7ca75f24f05d27ac6290f32667d18859d5bd97701c3e54b0c9c7d8159be88cca879839ac7df94213ee21ced1486bfba3b05ac483cf42bda35744e43f5651e43 SHA512 617ab9d71d97c154a42e7426a7572a08d21eeb3a0a6d56f1fd6a23ffd20a0f8c35d47207665cd7aaa0858fa987ab94c0e2cd6077881ecfc1f0a85f086b151240
+DIST thunderbird-102.10.1-ast.xpi 572287 BLAKE2B 293c6106ce2383e3f7f36a17d132d4adc2f63ae54625ac2b030959c25344d69ba64eee366e9c0d1f549e04530b9a95c01adf503d179b319f96d44d6dc27b0456 SHA512 bcda6ead704758005c3412749436481075e3e0a5d8530efb47408cc1fa00cebb24bf5576ea126b7804e67f8d7a74ef1d22202d5305ba8f85a1b151ffcf1cf69d
+DIST thunderbird-102.10.1-be.xpi 701913 BLAKE2B fc8080a3ba9fd4f87add7cbac4520d103efe5760d29954036f9d109c9ac3aa3e1b6015b8957798250579d64204a3390d3bb45c64ec10bcb6761b55054a618516 SHA512 f72b0ce1f6423f88712546920387ec4b045efccb27564a234ce63c218c975f117652d1a331bafb2189195dadf90241c8db5c5e43a7666c04b1808667f2aeee06
+DIST thunderbird-102.10.1-bg.xpi 693376 BLAKE2B 085232a0d8e65156b5ceb9699a99dc2b95a6985509257c41eb31069a9fa1cdf28c21a27811c13f3baa00e79466198f2356bbcf230a9ec4c99d9e5a2a2be1df36 SHA512 1b61b3bc5aa054efaf52cf05c111dec080c61a9c8bbb49821d82f013573a05000dc03b5dc712684eae93d4b5629c3b9606be486dcea43332b6f35e732e2cee8f
+DIST thunderbird-102.10.1-br.xpi 626471 BLAKE2B 13f7a8fb94c8876834474814430120892b8dafac671f20e44594cd60d564289e67cbe715f355b179893f3cfcf6f0956c52c9f1271db04ddf67458d0782da97ff SHA512 61e84cbcd936fc44b7a5c7f5ac5fb3ad298c890ba64a2977e1ae2a1df1ab0df10b42b57d26b4b91e9e35baf40df66cd2865f0b2bc1b88d229bebba45b96e5324
+DIST thunderbird-102.10.1-ca.xpi 651367 BLAKE2B d9f0c2cc6369afbadb9bdf17f2af5775df68caf6ed747b84171ef70033a9b62585fd70dc1d61be1b5c7e07c6bb2a91a77e4e1a7a443dea47882685f2ea0eb5f6 SHA512 6f51987eecf00676a7b4ee3c97798359d50a9a6d975866556a4dc5f4d66f6b2f5612a772c64bee8e294fcee6ba3cccc178f60f3b07e15aaa238b7da85a7e3f89
+DIST thunderbird-102.10.1-cak.xpi 651778 BLAKE2B de71f869b0ce1bc37afbfb1e2acb47ecb0f572da8fb8e251c10a24ad8ed1e1ede53631d77b1e0831949552188225e9042c19bc751aa1c4853e45f578d92fe081 SHA512 d493efc99473294667b8b7a531dc628b04381f8238e9f66a879e45f520d2c8988f0c4a1fe457d9f7c89c644e34ef2185036bc1b19bf435ddc20775bfb07efeb8
+DIST thunderbird-102.10.1-cs.xpi 728624 BLAKE2B a559f689c38fc444b3bdae2e88863c6030623f95b07badec6d4aa8cb0a94acbf6441551f2e163d30a5439d8c450c841f5308b5654a587c333d6228de596b9d19 SHA512 f6734f4e87a573263dfb22eda4fbda6c43f46f9110892e68407191bbd5c0a2fd73f3763c168e939ead1ef519a67c7b0c28bd4e50d3494821330e84ee4b123b8c
+DIST thunderbird-102.10.1-cy.xpi 705576 BLAKE2B fd95512f7696d1f9195cf19c70dad14ed49fca5789931184853f262010abafd52a0d3be9d4f6e277721d5f0594f605f7b62bfc04be4b12aff9998a206571a3ee SHA512 8da9d333d19a103cca67ff0c39dbc3037ce67e443cfb01324d57eef8cf643c02dcc982956ba5fa78e9e2b1a5104e62405f6b56556a260d2af6d313d1993bb19f
+DIST thunderbird-102.10.1-da.xpi 685254 BLAKE2B 92b4df6b6f1439994172b2290c12b20d1d0437c2f77b6b6af9c8da7d2a94ba55e447416423b56b576802d243a8e7226e2db81b77eeb77aac144ba09199d8f379 SHA512 8bf6e6edc72604006b76ba79311b7975f7973a1938d8f55a7d15b45c9cb615d0904823207a6f4f7825bd5bfca872d7e8a2f9174a3d9c6a8e8eba9eb5690c00d3
+DIST thunderbird-102.10.1-de.xpi 717944 BLAKE2B 6e4efd9d736c36e45842c2ff7820ba0b8da8b55f30bf7cf797d868031e90afab0b0d9e4e7334955c66f482de348893318bdf509aea93bff6ef259ef1e453b029 SHA512 5e060e85ff0ddf012f2c6f98c9fb6573dd9c596179b52e78fd3651ff25d976ad08f45b9d170f9c21f88eba0da2fef6590ebc95143c1d22dc7fa2f3aaca66a21f
+DIST thunderbird-102.10.1-dsb.xpi 737085 BLAKE2B 2fdf5f6fd220cdd63faff750a1b2aca2f36c9c3c80fba1dc9675be610f2d16e4b214099746a78122e675e6e91f9c3cc35b992f3e292803aa3a778b87caa7b959 SHA512 c7e9d289ae20dce09e1e51b920c3ca05ad65c167e176fd37b3633a919b22c250eb01cbbb9fb7934804207a4e679d1e28362955b0842c86e14011a0dc3c392269
+DIST thunderbird-102.10.1-el.xpi 840812 BLAKE2B 717d7fc135b36070fb497c6e858edf5758f3c50cbdea738f5c3588c86947495eff91e589eb7db43f9531562cd783476607286cac359c34eaf010924c2ee9a16d SHA512 f84cf641a96c4ebfdffc2fc886af4b99de6b206fc39d4f50d9e80b053a0f5ab38556770f69d2ee746e8dedb1e99a59713960080b60590c2554d770dea52b332e
+DIST thunderbird-102.10.1-en-CA.xpi 659093 BLAKE2B e4b188d06d1860a10a88ee592e04eedf1172f79c60077b301a5d95bd7cee57ff03529b1c19235fb2f013756a19a0a3b3bbb471f7404bb797e80409feb0c19d95 SHA512 b611993930c2498efe55989e0a59dcf6c5dc5b496c538944bf0b19167acb0dc3da22ddd81222d17b85489422f262738b302f48f2cf9c779ff0f3a8c38798d665
+DIST thunderbird-102.10.1-en-GB.xpi 665007 BLAKE2B a097450a56eb74e25633272058d27b9f559ff42aa952d6fc70bc2a016a4afc1ec67dd688d0980df460e47120f6289b38a0d91294a0d1c14ae0897773e4feffea SHA512 bfa96af3142d684ff25798b4d397e69a277e8fe02cb3d0dc17df1b1fca9d7c3332ee1adef9dde95c1eddcb52f4752675f0327060df1bfbffbd80263f96898200
+DIST thunderbird-102.10.1-es-AR.xpi 717275 BLAKE2B 9401373df4b599ac3e89c60d760723bc46e0f3888b16eefaae6f148ad95949821c442a83a14c1b27efd3ee3d709dc23ec43cd8f6eb823ae16ee7b87906200481 SHA512 137f17d5b6ebe381aca98e1bdded957e1feeb0df48b46130e53b2714c2b7234f4842d31f750ce9181a341dcfb7ddb2540e9fce689eb407eaa03f576e2fae5ad5
+DIST thunderbird-102.10.1-es-ES.xpi 677482 BLAKE2B ac5a3cf0dc77fac1940c17369a30945b25537bde937040d8d323c31b0e3da98ce3f2e66ff452a14ee8197fb49711b49e835c30d0777f2b45e31088328f802715 SHA512 f7ad3106b44e62a4235b458dab284843388092bf5b2ed0c213e73976343b9572c7e06a0cbbecf27a3b029af4e9addf17cf7cd819ace968aadcbecf19eb96c742
+DIST thunderbird-102.10.1-es-MX.xpi 719709 BLAKE2B db1193f029ee8adfab362d9e8bec69fe8ac6d8d4d6f26b3b08900e89a428ec79399b91c7ebac969df4dae885503798084b4f4de0d451f996eaeb4f1e8beadce4 SHA512 99d022db105d7fe901cc7b803b953d73904623cdb5bdaf6b3ca59e1c8a4d531c3981bb8393fc133d23fb404791cee6ee9c18f161530dd5868222c953289df932
+DIST thunderbird-102.10.1-et.xpi 676674 BLAKE2B d71c35cebacc8823987ba337a96eb106376077cbd631a922f1c172662e77ffde10e30e9d3db83e97098348e9e18bdad1c2349a445909deb660f4fa4ae2571509 SHA512 0b0e4f802b4cf3ea67a3f70aec6d8826c92a98d78dd53bbf730a6d92029c39d99c584bccf776fb8a9edb353ad924c9e60ef30d8b37f3b768f43869c853f340cd
+DIST thunderbird-102.10.1-eu.xpi 701828 BLAKE2B 78bee5ad9371738eb928e1033ae395bd829bd0b100714e3c772bf7696ea51b1721d650224c28fdfe0cd0eb4ba851353a4440c1f23f0d059c74f18be0ce522d75 SHA512 a904fc015bcc6a10000b9c671211cbba3bcf96403cbd11b62a9bb185b69a57dc555c626fa655dc2a36ebdcf58477580a459b88d02c670731de630bedd826c2e7
+DIST thunderbird-102.10.1-fi.xpi 693486 BLAKE2B 6ce01d2d87fd44b17967c3c5ea80e45754f0282cc45be7327a9d85555e40f69818513f59a746d4aef90e6bb507ea6051528d58e3e41febfbceab000c7f429545 SHA512 ebb822da10ee543eb87922ed34ba74017ae2a876ecb3f2ef9adc0025e95a9cacb9a99f1f71c1fac11bd20ba677409fc78e85b075f6a0705edcc4d2946177d80f
+DIST thunderbird-102.10.1-fr.xpi 730317 BLAKE2B cbe808a97686e14f04230a269dd0d45e3dbca3fd02c6c3534fb89b7ccfd4c39bb0757e3d30f2e3524a5014bbc90af3308ef654663e01bca39414c74acb94ec4a SHA512 9c57c09d5b79acbd2039cbb00a66be716fcb53b828d53a8ccb885d90eca8cb688b5e1a90dc746023878ba1de46f9c01f274b4e91c40aa44487a8d1b7c2fc298b
+DIST thunderbird-102.10.1-fy-NL.xpi 711991 BLAKE2B 0bc2a55e87f852278f9b218dd93576a8b54d552d7e432990aa40bb1ee888bcdd55bb6ef3f3f834970f27683f153f2d734f9a86a9da81393a27924145eb933900 SHA512 3bb8f2958bb7d308390453a3cc8cef4efa9f744e63d1f9278eb367fc5fe682c7881a7dfbf93a157ac7c9536402eaded612ca2186559f9e7ded3272c880c46725
+DIST thunderbird-102.10.1-ga-IE.xpi 614537 BLAKE2B 248823d71cca65e9417604cc096064b7f74b88097c7a1ec93292091b3cca53855a36c894b1b0876ca38d7d632f085c21690fb0b0d58f60b809dd53724bbcdda4 SHA512 f3f7df6fc5b787199085f120e0162caa89b3f6e88351dde113f05be6f37a9bc936ccf6b7ebfd8ebdff265155d840eb33d5be65afda307e597a42e38c137fbd71
+DIST thunderbird-102.10.1-gd.xpi 643574 BLAKE2B 1f8b714bf26a1bebecce16c19ca302c561f2f62ef8e365f8038d47c021bf89f92ba13aa1a4ca44c2e0634b50eb1e0d779f45d1d54291e071934c20835211e199 SHA512 42b30775f699f88f8fe44b622cbd161d5fb6fa36994198b193777aab8372f90dae591e4a2d19b8c81a41d6d0c514a937960fcd38e2b0f5c92db5067a4bd29626
+DIST thunderbird-102.10.1-gl.xpi 673000 BLAKE2B 775b2155491a9b9a6854640f0367651cc474af24653bef6d8edc0d249370de860ebeb0596d22c2e03ab1ca7839de20cfe1cbaf227e11ff14a6c0e25afb617af2 SHA512 1b228a35cffa9586ffc5470f8849fe9f20ba17be2c55c2b1ca6b0c353f92274a468d143514a7dbc30507d889bec01249139e3215bc105a3dedfd09b233f5c821
+DIST thunderbird-102.10.1-he.xpi 676369 BLAKE2B df795a17d95c853c0b14a86a349632b46d9ca27e185dcc0efe3e615fb8070e704335ff48c3428046f1cc64e9f79f9e1765b89781aa4ef036d07341e402f9354b SHA512 2c9cc28a4a34a4ad87060aa2d8806f48ff655c9400e2cad9f7aedec60ea202b769d59bdc2ffae7802cb6018ba8d8959898f5e49ecdb7e2118cf6827fe1f22b65
+DIST thunderbird-102.10.1-hr.xpi 677719 BLAKE2B ca56280438ae1f2ef2757c75a9f1bc5320042819405eaf4419f20601f7500eb5c5d56776345024f4faa12be1d11a35ca02d8efa5decddb7d39c982607afc6164 SHA512 828dd4041f378a1b04b4f43c2f70516d5e465dedd002dbe9be5b69835dc823b42a190b17fe7e01f6ecfa4bb7fd8c0be612a489d5db854aea34a0e5c698118460
+DIST thunderbird-102.10.1-hsb.xpi 736540 BLAKE2B eee592b02a85fc6c158899cf3314efcee8c4063efae258a860720743b5c00e8f52b73a13b77d9cd79488583b203bb659a58a07101aecd098157604884247107b SHA512 92738fd0a0f81969ba3fff828a2c7824e6bd362cd722ecffaf2564bb9992ce8ad6c964091c04e5595e6ce5bc7e67822df2c5576ea4af8de52a54792aeaa3c8d4
+DIST thunderbird-102.10.1-hu.xpi 741199 BLAKE2B c9afb2f8cf0bce868e2aabb92c2a151edb8dcb99cf78cbf4f0ff190283dc12d9e33450544227440793784909732fd208da4934b050f3bb5dd4cc3409ba5c31dc SHA512 9892217d79ebcc49637f160ff8e71761b271f47e4c8adb42eb3986859beeab14d76b6b75035a9bd40e64c6d9b0a7a1e34aabe3a6dc00f774c160b862ff8b3b21
+DIST thunderbird-102.10.1-id.xpi 653191 BLAKE2B 4e123359b59cb2f523aaa95f95d5ced2e5a330b3812f510711e086e9294bf357e18e6345d8fd9c1c651edc87e7336048db4d55f42e89424e7b5f30e0d607dc8b SHA512 d52e770d68dec5632a8ca42a5721539965ff8ac6f2ad94e0d776571e939a6066dfd3aadef19ddbdde9459ffbe8c66aaff0251a547db57dbc4ff42376a670d080
+DIST thunderbird-102.10.1-is.xpi 706392 BLAKE2B 072877b3a2fcb5381273b97d85536e001838266ee3a1450938a74c0b6ae03982a4b86e58ff14b28106da578e8cef99e95f2e56e207f8e81e1dc6979bf35b0cb2 SHA512 d7b1a6a4f854bb504420b08bc9e3d23ea9344acf11e8084c019c8d6a7d5fea4742bfbdcf11a8358b2ad17b1fecc865da98ca8cfe9122aa845cc10918791bbccd
+DIST thunderbird-102.10.1-it.xpi 639984 BLAKE2B c5f0de6137cc55c0efb932629735ba7896398da6b2b0251c06a829bffc465b9afc100743609827c5dba82a7457946d4f640bdaa72691736627f78b43ef5f2ff4 SHA512 805ccb25445dca5cae95a6b0c11090abe703edd2a85123008c94d912b52995870f7f7273c26125aeb3d9b83e22c5b71e4bf1779d8a883ef376720897e31bc040
+DIST thunderbird-102.10.1-ja.xpi 781905 BLAKE2B 538b84b068a8a5b1f17abdd5bd42faa7aac8ee70ab9d4f27b0231da58efb8198e0c678e57525224316feea9670d5220a23eea4be9272349e896c8fbaf3d88bec SHA512 3a9b2f10b28e4250fa41138de7a6fca3ed0ce6255b0e23bc8637e17183b6e2c07b072cdc7efae23056456e3eeefc44f85a36f393540157d2e4800979b7e2b5f3
+DIST thunderbird-102.10.1-ka.xpi 769803 BLAKE2B 421da864c24767cf94c9832a59d3022eb37319ee52b0f60740d3eb8b139af56468d03ec3cd95501c4d4f195f1bf6299cba86f5a33679eb637beded4d71955291 SHA512 9f0e1bf69fa168e9864c60fc449ca5e3c7ed1a919bdcb5a86498237f13924d08b33e44b8b59684a51c83e885189939e73ed24662f8c3c1ad842345a92df891a8
+DIST thunderbird-102.10.1-kab.xpi 702703 BLAKE2B e142ff1282a40562ad2317db0412de4fe1772eb4cdcc95df42f96132d346e0d4938801977b4b0af45eda6905444931ac88b6c5a834fa5147736daa0c76d0162a SHA512 771dd5baed9dc6c964c628527bb76c8dcd9a5964f7c4287fd1ac9e12870ee2530310a265ae95171e19cd6f87418524f4c32557eec94014a8c9676bf3ab2729f6
+DIST thunderbird-102.10.1-kk.xpi 810966 BLAKE2B 77c77f82754dcb584d11a6250e8208eee6178603cf3ba0746ef7e1a7cdfbba3ca15f7d62192680ae5bd0dba23562974069118aee18c34e083efdd2fec6279e23 SHA512 0d6b2020179eae7436bccd8f2d714d1cb6330727666b06a9f5402e2d87c8436bc1af86eb95899381e51dae9e145fa4cd2ddf8e3006c4cc17961582a7d73c4d0f
+DIST thunderbird-102.10.1-ko.xpi 716819 BLAKE2B c7cece2d98a8ffd0b67d7893dd69cdbd32529f923755a07651f5035f4eb00633d552d0c329d2c418ee2c52560a0454bd492680809ecc7bed8e02f5cd068a7c87 SHA512 82d5fbfa6c0eed5ce66589fad080ca62504813fb11406be66f364e716a4f70bf28d3bf74cad4e5f5f79d9c28f8b675549654ca799a3cde65ddb222398006ab8d
+DIST thunderbird-102.10.1-lt.xpi 690854 BLAKE2B e100b3b0e3f7dd375f1c338c4ff62fa2f7bf698b9a380797bc9ab380ea94e48adc4fbe234aab512fe136e089e3c98cc7c7e68facdacb3f90118a25f082cfc0cc SHA512 de29415c1603e1342b51c968bd676f77bc683ca934557b2d15a0ff5911c6782720f8487512f4f994c1ef6dba5027aae8a40bf744f7904f99c960f250c4d8b0da
+DIST thunderbird-102.10.1-lv.xpi 617767 BLAKE2B 82339acb8034d71a69656a0b9a421d27e88433d7a921b44f25eb956f85e80123e97c8255f245ae9387168e42ad5aa95615b6cf476dc355ae395533f67f4c708f SHA512 c2262d7e221e4f27fc310a741233db450ef7101e2854f4e698a5464edd90506069eba4347d1d57921589d167be3fad3b245423e0da454213aa1d8ab20613cb1a
+DIST thunderbird-102.10.1-ms.xpi 577757 BLAKE2B bc4bb4932b5be563bd87d76d6ce92d2f298b3ba7e05423c460b05d8ae77ff2f3c714dcb0dbcfe75ea7b04c01853088721b7960e242a7e87a094f9366490a1254 SHA512 660e6fe1857706dd47f448c983502bdd7fd40444e81d8a34b31576dd7e5e017f3488ceec2ba8768696b4531ebe46cbaefdcb5e2fcce643737ead92c8723f4bbd
+DIST thunderbird-102.10.1-nb-NO.xpi 662682 BLAKE2B e00f5e8243dcf237232f7c92cb1a71bb8da2faf033ce74ba1e2100f34b2fd951dbe5c6a80a76a90bf155729563e5f7116bf1e073edf4288ea8ba998905ec1223 SHA512 b57637e5be471ecf77bfab01be02d94213fd33eceff554a336a0b25c1c25f53fe18210f8271e9bd9b01e51217ea41b4c9b75d1e34c3a94e1988007c3d0c59bc5
+DIST thunderbird-102.10.1-nl.xpi 703275 BLAKE2B 0faa743f28ae1b7c0ddd18f2b0a5196c29d8006d2c6d4a435225ae508cd37503043dc8d5aae12e97f736f0f647b1d114785ceb436c8cdc68e5e896c897035c20 SHA512 c960d31d0bf3297172b4d2d755d496b8bd2a0c57a772ffa26f126ea940bc01e5340a04b914a3b914f2e51f6bbf80174f45e8aaa08c60382511a6ee462ff1f272
+DIST thunderbird-102.10.1-nn-NO.xpi 672831 BLAKE2B b14baf0180187d73e2f1cd238c1b1454401f529262a437d7d0d2f7877706e17d2bc1883184b3093bc2107108d7e445765f933487ae81744ce8cac22f0075b988 SHA512 20c6b7f87fba2ea797932d3b3c54a0ea05f1655f5392232ecb7d164a3b523cc515ed39be6546b59732ceb6367a19172325dc43e4874c96c0ec4ebb50ef21d2f8
+DIST thunderbird-102.10.1-pa-IN.xpi 668030 BLAKE2B 0860115b1ef3644a37a920736215d9161f0903370a8a832cd2c574c72ae8db4abe3ed18b0fa69e22ea3207ddbc910973a58e68f114c097213e8ed870dd682eec SHA512 e074a461c322b47b3b1d3166ac162c3b9bf5561162cf54cb677376934d00cd442c9babc1e4361af965d006072b1b38c1224c1d82cc8231428be99519448d132b
+DIST thunderbird-102.10.1-pl.xpi 716231 BLAKE2B f7be58b7c791530a61d0f9918e7a4f4fad444123fb10e0db45c11b4e9d9132a5d585561553b5d25b483c8e48dffa3714f4891bfdbdc571b4f66a5c29845a4621 SHA512 2915c5ac12a5b7312047f0af2a84310564155dca149658ab5ffe77bbf705bd57cc4e37a6f350d4c17ea1059bed1261d038337cadeafe700a21aaf276d7ae3225
+DIST thunderbird-102.10.1-pt-BR.xpi 711150 BLAKE2B 519df7315750101344fa76acf8e1772d3e9aba696c64e9dc62b90e46757805550db204f7828cddd269e55d5dc665638fe93d17c1fc2e61a18abcd268b194056f SHA512 61b50443b0e2edc113ef95e3a6958b71a3c45146336e12ec5a10f85ee8fff5669260e4ce5040130b96b8c46e19418b79f5cc97e9f307771404312f951b4790ae
+DIST thunderbird-102.10.1-pt-PT.xpi 686909 BLAKE2B 1a46d0c18c8973f29e97be76ffcebff60ad1dd3f5dab9b3d496250e33fb2f919b206bebb5bdbb94982e4507c5ac83f2f4996a6897176a318317e8b56af9ac826 SHA512 b10d0af231914f00258fdbabdce6665db879fac88d7f072aa5bcd2ebf1a1f0e89ea87d32bcd2fa25c6e2988a019e4899084dff3181838c6d6fe1b18e3219fbb9
+DIST thunderbird-102.10.1-rm.xpi 701683 BLAKE2B 2eb7918ebdd7bbfa37b214d218caece2975a948a8a2c0c9232c653c36d9eea5bff285fae7ca903330cc3333ee034bde23b96eeb18cc4d99aea53c20731869dc7 SHA512 768fa048357df6506aa2718c2105f1f836c34f31a324699e8783664c281e5856dd59e471fba0edf8ac2c60e4b2bae4ee187651e97b6517c96a8972a9cf63d4a7
+DIST thunderbird-102.10.1-ro.xpi 661280 BLAKE2B 7650e1521ca08c1b291ab36cdf78220e0d7d54de4aec4a9b7673e58a0e02925ede0124c6f5fee5fa650f86efabdaa6943cd3a1ea146263c98221fd52d8b6d4bc SHA512 2870d2d4b349921363fbc09e48aded4d7aa17dfebce93957ce120304ad5baae8b0c0d032e045ddb22dd608b4a296454e1ccff360e29cf55207eca445ed368082
+DIST thunderbird-102.10.1-ru.xpi 827219 BLAKE2B 7c05b51576d4b55ef180574085044514362b8d16d029c0fe62a0a9dd77047e2e2f52f7a01fe5c8d3a841c6ac68af2571f1f0f8a8078020bbb782f8e89705eaf3 SHA512 7bd68e20f59e63adcb883f4365524bc6735317a4e1e6f21fa8079beea4481f19ea0e1f35bc1aa81ed1f149a583371b3c5d69e93fc182f999575ad9dd236d2e8d
+DIST thunderbird-102.10.1-sk.xpi 740981 BLAKE2B 108cf38242c589bd14b37156572db530cd7af887180e3d46806a80b4ad11967e78f342aa0c395aad58b136f43d775bdb2fc138bbfbb81f15a2d78f225172e99e SHA512 f7147130c6b3719968543a919bc7d4848e72648857223aec1aee7bbc6871654d0545b830f2860a7d55d815ed345e400a3cebb8c502d1824072fe8cfcf829545e
+DIST thunderbird-102.10.1-sl.xpi 704058 BLAKE2B 04bf1e372bb04f82f307a7e00596d7cac375afcd4c34d2cca95071fb900cb7c5dcabd52e9893aac491481c5078e53270787bf6bc0bf01cff0ce5f8c623087a84 SHA512 c144e8d86ffdc9ac7f3fa67b526f9a44b3322cdd56f6fff535ade44169be435c676c8cc8fe6c7280e27d06a8364dec15e1e0db82e65fbd7352254bb0335565c9
+DIST thunderbird-102.10.1-sq.xpi 726036 BLAKE2B e8e04b2a1a0fd40cdde01d972317fc3610e185b6955c5fdd4505233ee2ca742d845735d7a6b19d1daf5ccb27b242acd0b535ba87189e99b21673217aac53c757 SHA512 f5f2844a2f127242858fab82f3f7e0db59719d3b96927fb0225005e875b75fd0d745e64b304affd8dea7cf9bf0d36d86e3e5a6b3f69d41e5a46eb15d82a2fcdb
+DIST thunderbird-102.10.1-sr.xpi 720554 BLAKE2B dc67da14ae131d34315ec2317c3872aae821546e7a95617ffbf4f3f60fd6d781a8c298b2dfae737e74756ddd315f288c08c065549dd86f5cf7405fda13233b02 SHA512 ccddc3b5b03fb20414a3684784e1a87f08a622ff562602682d4622c24110d47f81a760319dad945f459bb2c518e66b989276208e60cac0f11c2288bea62a45c5
+DIST thunderbird-102.10.1-sv-SE.xpi 706952 BLAKE2B ae7b09d1a991274f2a562acf336571445a130804094f64557db5a145a2900560f0a4d19720ffe2e2b75f4346030f036f3f0df7f5542ab39c99414f3e10aad9dc SHA512 4b16ec3eda714eea676ec10f8f1ce9697de503a8f7f3cc5a79e08a3c9c4612999d18e0a4a1014bc66bc6b551c2064c1e6b9d7be6f0d9c2a5f0709a99dea8ed58
+DIST thunderbird-102.10.1-th.xpi 758235 BLAKE2B 15fd16fcd3fd7635756c606aa826339675bbf0e594340b87b1f5e9a4a2a7a2e958a1e4125eb8937cc87ee168aa832b2e4bce67171c9b299b7e1b13cde2f06443 SHA512 4d0c02626347b17065cbbfd733d385b5a5bffe0268c3003bb889293d54fbc49ca2d574deb7f1cd50a81af3997e764b03dc53e458a62863a9df714ebbceda9c19
+DIST thunderbird-102.10.1-tr.xpi 720173 BLAKE2B 4d9d81869683a53acdf72afac8463863bc6c0a18d92b7087bb48a3be528fdb45d33c0d5747516cba0d945f06ebb8e1060d1b2797c557aa77b7a26ec03f231cad SHA512 4b736cdef707e7ee94cfb5f1987a060ab869e4f9521ccb5a050c58708e29701f6829e26079695f7bfe7d0aa18b016b84b6c65690bdf52fe93524043a2df48dd2
+DIST thunderbird-102.10.1-uk.xpi 818662 BLAKE2B d1e1216ba4fdf06a89603c66d9f0e8b978db91bf6a5c06ecec71e5247841edb543918976d7e4a87ca624f00d84c9e71f26cbd6b3967c7bb6b539fa834c774df6 SHA512 ac7dfed7e35f24b4b5cf08fe12bad263c64df8a4994909e3dbb994bb71740f103ac1450d97c93e56d9f37b945a0fa7283724cb16f3c44417662ebf7661d7fbf8
+DIST thunderbird-102.10.1-uz.xpi 593012 BLAKE2B 3e5236fe9dc20d9e53d27e9e85ecaedfc84dda264e5204f9fd7a367f430af9e18fcf7ef9f554b2ab123a71c04128b478dfbd0bfb69ccd76dbe850ff77df939e0 SHA512 ff136b403421bcc907c1fd8d7925a2f595187c44a87546ea84438980c74a7f06bd732f7f16a1bd98e2e0a24aaebe74ca4edcd37365671ef8bb8fdbd389264568
+DIST thunderbird-102.10.1-vi.xpi 745661 BLAKE2B d51ed67d1c6dd4f2e9ef48f4f8fd02a337f88c737866b65542e67c5f5be69a6a2408e1dab2d405b8224d2392429e3cb0144ae014b29b6cc0cd8748687fce2ae6 SHA512 50662e04e8524388aba626ef7ebc1106576ed542bd90c162a7b5965215d1c6e75455bf47f1b17d355d1d38b0175315aa43023fe9b9b4105267a32f2b27ae007b
+DIST thunderbird-102.10.1-zh-CN.xpi 739885 BLAKE2B 178c90a70d05a8f071ccd8846d14e5a5bc39e862da01903beb3a1a113fb714c2a578581a9e005bf256688a77907c606e0e4fb9be5e7e417393494fe3c434b269 SHA512 7d114d26dbe74ed0f5bc7cdc49d2715b801e8bddd4dfdce7b8482d8c648c6f2e94f13b8d2eb3fc6263a87a5158c93f440e5cec549de3aa1849f14a69b62080fa
+DIST thunderbird-102.10.1-zh-TW.xpi 748346 BLAKE2B 403f85a50d7461845d164adb629bac52fb07aebb00573a017f8601c56cf7ee434c3a7aa7f0d5c74ad0e042745f2680c9091d5aea7902d75c6a33a4078899f958 SHA512 0edc2cdc774984b41d642011e63ce94d32c2b53c1832e7cc70c660aa4f591726cdab3d24ac294e4bbaacbaf326e4a24f973f4afa3c164ddc9e1fd748efcd61ac
+DIST thunderbird-102.10.1.source.tar.xz 506975996 BLAKE2B ebc64408193ae2b6a7b038457b21f8d655c0072ee6dae1ce2508289c6e7b11484c82cc02fe38d4ec50b64da5547374d7539392bf391d794f279bf1ba0539bda5 SHA512 dfe62f0d8b7750e54793e32e78fb0784c7c8e39b95dc4c03ac393e51195ec8883edc2536afc2cf2011005312a40805f7dc617c90bfb4a77d22393f1d9b719b23
diff --git a/mail-client/thunderbird/thunderbird-102.10.1.ebuild b/mail-client/thunderbird/thunderbird-102.10.1.ebuild
new file mode 100644
index 000000000000..f4d12a7ec864
--- /dev/null
+++ b/mail-client/thunderbird/thunderbird-102.10.1.ebuild
@@ -0,0 +1,1178 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FIREFOX_PATCHSET="firefox-102esr-patches-09jtb.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
+ 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 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 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
+}