commit:     3e14c33b3aefe8fd1777bb43a9c1bd1078148ea8
Author:     Robert Siebeck <gentoo.2019 <AT> r123 <DOT> de>
AuthorDate: Mon Dec 22 11:21:20 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec 24 17:21:01 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e14c33b

app-editors/zed: add 0.217.3

Signed-off-by: Robert Siebeck <gentoo.2019 <AT> r123.de>
Part-of: https://github.com/gentoo/gentoo/pull/45123
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-editors/zed/Manifest           |   4 +
 app-editors/zed/zed-0.217.3.ebuild | 237 +++++++++++++++++++++++++++++++++++++
 2 files changed, 241 insertions(+)

diff --git a/app-editors/zed/Manifest b/app-editors/zed/Manifest
index 6ed720a6fba9..719db83a5840 100644
--- a/app-editors/zed/Manifest
+++ b/app-editors/zed/Manifest
@@ -6,6 +6,7 @@ DIST candle-724d75eb3deebefe83f2a7381a45d4fac6eda383.gh.tar.gz 
3072184 BLAKE2B 1
 DIST dap-types-1b461b310481d01e02b2603c16d7144b926339f8.gh.tar.gz 77173 
BLAKE2B 
9b0c905d3300222a7bd2166d1f954039c0013044ab22f845da290361ab0f2eaa756cc99c053a1a30eba75742a4706e403f55810c08c822fede393e503623a34f
 SHA512 
eb5f23bd989668fbadd265ad8b714cf3c4215615d1b803ce7ce6d9d62744d2d404b383bb4bf851b5b37e92aaa3ae29622290f2c1b71f85880d4fc226c6d66cb4
 DIST font-kit-110523127440aefb11ce0cf280ae7c5071337ec5.gh.tar.gz 1289436 
BLAKE2B 
abe61ea8a1442b9d4d6a1de7751b5e1becb44834cd8fb1040d54c3329af45d3472b97198c6b951f8f8e2444b3988e783d498271a65473c54ab3c1421cbb43664
 SHA512 
ebedc99904db7805233e40c40e1a1a918119a039709fa1269a1fe6f336b7d28fa0dea7cd747509d0cafa04f435d1e2f311a203e493f86f9414331ff9c1e774ec
 DIST font-kit-5474cfad4b719a72ec8ed2cb7327b2b01fd10568.gh.tar.gz 1289459 
BLAKE2B 
1d2ad876cf50b33bcb6370a21233d2ac0ba352bedb65638df714c3fa51c483dac307dd44044b670d278966c8bf0c3d1037e989fdeeac7472bfe055718b88216c
 SHA512 
cca26152c19408b42c638bd1f8f64d4048799cc0a51dd3ed2a44da8e8f92dd9b9dd5bbc31ca6ac37fbd809af61f539e5d7f5ab6144bbdbfb3703e62f3c3f1d61
+DIST gh-workflow-09acfdf2bd5c1d6254abefd609c808ff73547b2c.gh.tar.gz 44984 
BLAKE2B 
59ddc7877b29b03c0569ff7f4c26ebffe1644ac14e1333e25c8232383f375aa128c414d1a8b2bb5c410b70ee2dd36955ca7ff57460c131e386e439594cc3ffbe
 SHA512 
9875ef12e34eaa29fe14212c03c686758bc885df55b81f9d97cdfce47f01b7775d3dc9d3fc9f07384094ec9c8a643dae8b7710fac344ca7fbc3ea47c471e91e3
 DIST gh-workflow-3eaa84abca0778eb54272f45a312cb24f9a0b435.gh.tar.gz 44510 
BLAKE2B 
d5c1acec5285e9049de1e2f885a8039038d3770cf6bcbd06936a3e89e12551ee0ee8e35a464f1537611aab9c5995f2d30ff94487bc3aa94ebbe69dbf9fd4b1b2
 SHA512 
f65e5544ec93ed67fdec04e8cb064c8e57b83b76961ce9534f991d9b796f81c8a41bfe1e9ba6b81754348724d513d9ec113c4113da00c1fa88ba8085560275d0
 DIST jj-e18eb8e05efaa153fad5ef46576af145bba1807f.gh.tar.gz 1952595 BLAKE2B 
992c65b962b68a3f855feb90ebb6ce42c1599ccb5aba8fe177873523af3fe50c6bf4b8bee44262f9834050908f2c05562ddcc1933198993d602a7ffa972ddd61
 SHA512 
2a79501f9402e6348def0911d6aa3a44dce43bce12d86a93913f1a0b5dca7ddd075b3a42beaf39b6ddf62e00e5d468c045ba89755633b357f4526eeea1c9b4f3
 DIST livekit-rust-sdks-5f04705ac3f356350ae31534ffbc476abc9ea83d.gh.tar.gz 
6248604 BLAKE2B 
d9185f7f05a0f872b4931be08ea6700b17a35d011ece757e8e2188bda1b0257843b925709c1e778f820a728942020bdcbd5f9c17e9cd638acc1c250d6cbb66d4
 SHA512 
731cdf1781744d25f553f917e030d5009952dfe159852c58d07178e18e88cd8e7b6001e2c6b8c7ccef346ed878010d681a1e841c1bea30d74b480584e3ae6525
@@ -24,6 +25,7 @@ DIST rodio-e2074c6c2acf07b57cf717e076bdda7a9ac6e70b.gh.tar.gz 
15032672 BLAKE2B 5
 DIST runtimed-7130c804216b6914355d15d0b91ea91f6babd734.gh.tar.gz 229524 
BLAKE2B 
885eba2724fc795e7f9b33294556ca5ccc8d902c735087a383e5c2edfb39436b4a6366c6225f04d6dfe1cdd93b2b2b03990ab1a8c249d775a0a4d3d9e2c29bd6
 SHA512 
1151d408f6d59a7769e39880e34a19681682d9250fbd392e916d61885b5e6735bbd290261766b2b3ab24a095fa5f00a4863b415bb4309c4a816b151b88980d6b
 DIST scap-4afea48c3b002197176fb19cd0f9b180dd36eaac.gh.tar.gz 5161737 BLAKE2B 
f9b85f0f01932b9de03d89a4745925f6605381a77d705f595a564afbfe68172fcc294bbd4fb0170c84b301c6eaec8826afe30cabbc2401e2b62cafe651247b96
 SHA512 
e9b533cc1029a7d5206f05720bf9c8201d926c93ef8449165ad215bb2827ed70e517ea111e4b13edcf644116cfede35954f69ccc62b136a23d199184e86a61bd
 DIST scap-808aa5c45b41e8f44729d02e38fd00a2fe2722e7.gh.tar.gz 5161739 BLAKE2B 
74cd9679d9a06fb3335c81c43e5ac3d88ff1e94a8d33891a019f27f17d0512bc29bf771971d02ae12f279f6156384a53ccd5be7141f19f1b9be42e16e5d4b52c
 SHA512 
ed53ca4d571f4bd4a9b839f0408eb47b7db6276677fbe4bd545ac8a2b5df642c7a9cd08db570629f773fa7826b5271f6a70c6d28761fb9f6b304791e0292fb7a
+DIST tiktoken-rs-2570c4387a8505fb8f1d3f3557454b474f1e8271.gh.tar.gz 3815384 
BLAKE2B 
9cd0d145969fbfe3f2a0dfb9a5602a2fc056a36b6dc0cf244c0c17b4b4bb96e064f1421be6a48dcfd249136ccb8813eb986cd54160b88ac9f40a5b0246ace59c
 SHA512 
1198b736325a903e9f8fe4058562949c19893563fa8a36723d8784e09df428bf160533c10d8b5489dbef03a907f01037607586f91c997e4ce722b95c41724055
 DIST tiktoken-rs-30c32a4522751699adeda0d5840c71c3b75ae73d.gh.tar.gz 3815470 
BLAKE2B 
812ab7273935c6a561a0d5d2b274386811b56ff31fa76eeaefa98ed482dc845e50e2bbd93e944ecaf211d85c265d1b16b43d1c5ddcd661d5c452357678dc1aab
 SHA512 
862c376d9a1999b18ed62bb16cf8baf08e1801287cf5ea5fe4b6122380e89e78ff01e5b121b40ad700148e388b87c2a9ca5ce008f7605af5886d4e97f20af184
 DIST tiktoken-rs-7249f999c5fdf9bf3cc5c288c964454e4dac0c00.gh.tar.gz 3815394 
BLAKE2B 
52fc48b5cd582fc04c5586d076e203b5bfaef851801b94851c11e0fa1c09490bb995e0ec5987a6a968103ac814dbde47cab01502cf20ac6096e113c5024cf101
 SHA512 
94eb6abb210626508c6c33f21fe3a7c01c48e092180788cd9c17f93eebaa1a530239a95ebcf0d803c31a78bfd2cdaa728b79419f84947d881456f6c44731b695
 DIST tree-sitter-cpp-5cb9b693cfd7bfacab1d9ff4acac1a4150700609.gh.tar.gz 
1194179 BLAKE2B 
9b1a128d186f488da459275d3b31c417c8f4ff769907d5ead63a5712ba05f332560acb0a8b3693946f67ee4077a26de637575714292a19e9405c47608b0d7f1f
 SHA512 
4a8d87b839fc7a5fa397187836b672bae9bf244950eaf14aaa0833bc4d9bf948fc23424edf10aff3ebde7fd07973f1bd88779b4963850010bc0ec0c459f451df
@@ -51,3 +53,5 @@ DIST zed-0.213.8-crates.tar.xz 119360968 BLAKE2B 
1a1813f50e11e14f5b0de2d7a1507a6
 DIST zed-0.213.8.tar.gz 21636842 BLAKE2B 
d0eaa275f120247f4ac504ea306165aaa995b7eace3a1e840ccabcd7405f069fe02600f840a04fda06bfc8f49a96219fac6bdf42fd97f971bc9cb27623720773
 SHA512 
133c244248f3cc5ce37392b6e9eadd7d1ebcbfbbba6cf8f68f4569b8135d60a3bc12c686ead446cb68cd114998a625ed3e016a651587eff92fb2c6bd9e785a75
 DIST zed-0.215.3-crates.tar.xz 119425660 BLAKE2B 
3167147e78f60cd9941f908eda3be51dffe2c6c1fec15ede2342471c164b7556522a42a32d2b73d482e8266cec7b813fa8b9c1f383e7360eb0a453a665134bd8
 SHA512 
4595752a2888d0b22011168974cd06aaf7e976643bbff2027833f58c6810bbdbfeb0d6a11f8d8a5658c0d619b464c80434180798ec3c6a029d038efc40c09e6e
 DIST zed-0.215.3.tar.gz 22308904 BLAKE2B 
7c3d2f9ce4696b26d43a569d2c7fd4f529384a9aa521e6655e4bba5efd874d76373225595edd81ceb32591c32b92b1f151ea1159fa31fc670eb902e9b2d94a8b
 SHA512 
ed97519c164b67b0e8de925d9a722db894fbb4cab682fead65500225b05c209ad7a253074d417ba1982ad09ae01f177e5929fb8e5d396400533cc48791161bb5
+DIST zed-0.217.3-crates.tar.xz 116229796 BLAKE2B 
d402026e109e4fdb85213dde1662ea62ae181c91733a27703d8e534d65995203da7a441f57661c58bfb93e1efe630ce63b7291721742605ee3d0701cd09ff42c
 SHA512 
82ebf24337c7301584505a4ec61cfed5ae9d73793c2dcc2e282409e6a5f3471a06570154f26a26b0cbe97d50fa2bde4abd3d4a885d44a2983201e4fe0d2a1e36
+DIST zed-0.217.3.tar.gz 22346634 BLAKE2B 
f434fbace842b68b674b4f3299326a822436a1db2a65b32847dd4c3b09496f97270faea7ebf8d0105e2cfe86d45dc3435a456035791038b444a488ee62ee1ff1
 SHA512 
6c688e08bef9d400f1ac099d8093bc46401188331afdc22f10bae93f701e2612f0e238876653a04f1de2c542286c6a580fd56294b669e8c5e63df52da2f5726d

diff --git a/app-editors/zed/zed-0.217.3.ebuild 
b/app-editors/zed/zed-0.217.3.ebuild
new file mode 100644
index 000000000000..846398f7a841
--- /dev/null
+++ b/app-editors/zed/zed-0.217.3.ebuild
@@ -0,0 +1,237 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Autogenerated by pycargoebuild 0.15.0
+
+EAPI=8
+
+CRATES="
+"
+
+declare -A GIT_CRATES=(
+       
[async-pipe]='https://github.com/zed-industries/async-pipe-rs;82d00a04211cf4e1236029aa03e6b6ce2a74c553;async-pipe-rs-%commit%'
+       
[calloop]='https://github.com/zed-industries/calloop;eb6b4fd17b9af5ecc226546bdd04185391b3e265;calloop-%commit%'
+       
[candle-core]='https://github.com/zed-industries/candle;724d75eb3deebefe83f2a7381a45d4fac6eda383;candle-%commit%/candle-core'
+       
[candle-nn]='https://github.com/zed-industries/candle;724d75eb3deebefe83f2a7381a45d4fac6eda383;candle-%commit%/candle-nn'
+       
[candle-onnx]='https://github.com/zed-industries/candle;724d75eb3deebefe83f2a7381a45d4fac6eda383;candle-%commit%/candle-onnx'
+       
[dap-types]='https://github.com/zed-industries/dap-types;1b461b310481d01e02b2603c16d7144b926339f8;dap-types-%commit%/dap-types'
+       
[gh-workflow-macros]='https://github.com/zed-industries/gh-workflow;09acfdf2bd5c1d6254abefd609c808ff73547b2c;gh-workflow-%commit%/crates/gh-workflow-macros'
+       
[gh-workflow]='https://github.com/zed-industries/gh-workflow;09acfdf2bd5c1d6254abefd609c808ff73547b2c;gh-workflow-%commit%/crates/gh-workflow'
+       
[libwebrtc]='https://github.com/zed-industries/livekit-rust-sdks;5f04705ac3f356350ae31534ffbc476abc9ea83d;livekit-rust-sdks-%commit%/libwebrtc'
+       
[livekit-api]='https://github.com/zed-industries/livekit-rust-sdks;5f04705ac3f356350ae31534ffbc476abc9ea83d;livekit-rust-sdks-%commit%/livekit-api'
+       
[livekit-protocol]='https://github.com/zed-industries/livekit-rust-sdks;5f04705ac3f356350ae31534ffbc476abc9ea83d;livekit-rust-sdks-%commit%/livekit-protocol'
+       
[livekit-runtime]='https://github.com/zed-industries/livekit-rust-sdks;5f04705ac3f356350ae31534ffbc476abc9ea83d;livekit-rust-sdks-%commit%/livekit-runtime'
+       
[livekit]='https://github.com/zed-industries/livekit-rust-sdks;5f04705ac3f356350ae31534ffbc476abc9ea83d;livekit-rust-sdks-%commit%/livekit'
+       
[lsp-types]='https://github.com/zed-industries/lsp-types;b71ab4eeb27d9758be8092020a46fe33fbca4e33;lsp-types-%commit%'
+       
[notify-types]='https://github.com/zed-industries/notify;b4588b2e5aee68f4c0e100f140e808cbce7b1419;notify-%commit%/notify-types'
+       
[notify]='https://github.com/zed-industries/notify;b4588b2e5aee68f4c0e100f140e808cbce7b1419;notify-%commit%/notify'
+       
[nvim-rs]='https://github.com/KillTheMule/nvim-rs;764dd270c642f77f10f3e19d05cc178a6cbe69f3;nvim-rs-%commit%'
+       
[pet-conda]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-conda'
+       
[pet-core]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-core'
+       
[pet-env-var-path]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-env-var-path'
+       
[pet-fs]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-fs'
+       
[pet-global-virtualenvs]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-global-virtualenvs'
+       
[pet-homebrew]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-homebrew'
+       
[pet-jsonrpc]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-jsonrpc'
+       
[pet-linux-global-python]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-linux-global-python'
+       
[pet-mac-commandlinetools]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-mac-commandlinetools'
+       
[pet-mac-python-org]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-mac-python-org'
+       
[pet-mac-xcode]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-mac-xcode'
+       
[pet-pipenv]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-pipenv'
+       
[pet-pixi]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-pixi'
+       
[pet-poetry]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-poetry'
+       
[pet-pyenv]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-pyenv'
+       
[pet-python-utils]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-python-utils'
+       
[pet-reporter]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-reporter'
+       
[pet-telemetry]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-telemetry'
+       
[pet-uv]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-uv'
+       
[pet-venv]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-venv'
+       
[pet-virtualenv]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-virtualenv'
+       
[pet-virtualenvwrapper]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-virtualenvwrapper'
+       
[pet-windows-registry]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-windows-registry'
+       
[pet-windows-store]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet-windows-store'
+       
[pet]='https://github.com/microsoft/python-environment-tools;1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da;python-environment-tools-%commit%/crates/pet'
+       
[rodio]='https://github.com/RustAudio/rodio;e2074c6c2acf07b57cf717e076bdda7a9ac6e70b;rodio-%commit%'
+       
[tiktoken-rs]='https://github.com/zed-industries/tiktoken-rs;2570c4387a8505fb8f1d3f3557454b474f1e8271;tiktoken-rs-%commit%/tiktoken-rs'
+       
[tree-sitter-cpp]='https://github.com/tree-sitter/tree-sitter-cpp;5cb9b693cfd7bfacab1d9ff4acac1a4150700609;tree-sitter-cpp-%commit%'
+       
[tree-sitter-gitcommit]='https://github.com/zed-industries/tree-sitter-git-commit;88309716a69dd13ab83443721ba6e0b491d37ee9;tree-sitter-git-commit-%commit%'
+       
[tree-sitter-gomod]='https://github.com/camdencheek/tree-sitter-go-mod;2e886870578eeba1927a2dc4bd2e2b3f598c5f9a;tree-sitter-go-mod-%commit%'
+       
[tree-sitter-gowork]='https://github.com/zed-industries/tree-sitter-go-work;acb0617bf7f4fda02c6217676cc64acb89536dc7;tree-sitter-go-work-%commit%'
+       
[tree-sitter-heex]='https://github.com/zed-industries/tree-sitter-heex;1dd45142fbb05562e35b2040c6129c9bca346592;tree-sitter-heex-%commit%'
+       
[tree-sitter-md]='https://github.com/tree-sitter-grammars/tree-sitter-markdown;9a23c1a96c0513d8fc6520972beedd419a973539;tree-sitter-markdown-%commit%'
+       
[tree-sitter-typescript]='https://github.com/zed-industries/tree-sitter-typescript;e2c53597d6a5d9cf7bbe8dccde576fe1e46c5899;tree-sitter-typescript-%commit%'
+       
[tree-sitter-yaml]='https://github.com/zed-industries/tree-sitter-yaml;baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a;tree-sitter-yaml-%commit%'
+       
[webrtc-sys-build]='https://github.com/zed-industries/livekit-rust-sdks;5f04705ac3f356350ae31534ffbc476abc9ea83d;livekit-rust-sdks-%commit%/webrtc-sys/build'
+       
[webrtc-sys]='https://github.com/zed-industries/livekit-rust-sdks;5f04705ac3f356350ae31534ffbc476abc9ea83d;livekit-rust-sdks-%commit%/webrtc-sys'
+       
[windows-capture]='https://github.com/zed-industries/windows-capture;f0d6c1b6691db75461b732f6d5ff56eed002eeb9;windows-capture-%commit%'
+       
[xim-ctext]='https://github.com/zed-industries/xim-rs;16f35a2c881b815a2b6cdfd6687988e84f8447d8;xim-rs-%commit%/xim-ctext'
+       
[xim-parser]='https://github.com/zed-industries/xim-rs;16f35a2c881b815a2b6cdfd6687988e84f8447d8;xim-rs-%commit%/xim-parser'
+       
[zed-font-kit]='https://github.com/zed-industries/font-kit;110523127440aefb11ce0cf280ae7c5071337ec5;font-kit-%commit%'
+       
[zed-reqwest]='https://github.com/zed-industries/reqwest;c15662463bda39148ba154100dd44d3fba5873a4;reqwest-%commit%'
+       
[zed-scap]='https://github.com/zed-industries/scap;4afea48c3b002197176fb19cd0f9b180dd36eaac;scap-%commit%'
+       
[zed-xim]='https://github.com/zed-industries/xim-rs;16f35a2c881b815a2b6cdfd6687988e84f8447d8;xim-rs-%commit%'
+)
+
+LLVM_COMPAT=( 21 )
+RUST_MIN_VER="1.91.0"
+RUST_NEEDS_LLVM=1
+WEBRTC_COMMIT="b99fd2c-6"
+
+inherit cargo check-reqs desktop flag-o-matic llvm-r1 toolchain-funcs xdg
+
+DESCRIPTION="The fast, collaborative code editor"
+HOMEPAGE="https://zed.dev https://github.com/zed-industries/zed";
+SRC_URI="
+       
https://github.com/zed-industries/zed/archive/refs/tags/v${PV/_/-}.tar.gz -> 
${P}.tar.gz
+       
https://github.com/gentoo-crate-dist/zed/releases/download/v${PV/_/-}/${P/_/-}-crates.tar.xz
+       amd64? (
+               
https://github.com/livekit/rust-sdks/releases/download/webrtc-${WEBRTC_COMMIT}/webrtc-linux-x64-release.zip
 ->
+                       webrtc-${WEBRTC_COMMIT}-linux-x64-release.zip
+       )
+       arm64? (
+               
https://github.com/livekit/rust-sdks/releases/download/webrtc-${WEBRTC_COMMIT}/webrtc-linux-arm64-release.zip
 ->
+                       webrtc-${WEBRTC_COMMIT}-linux-arm64-release.zip
+       )
+       ${CARGO_CRATE_URIS}"
+
+S="${WORKDIR}/${PN}-${PV/_/-}"
+LICENSE="GPL-3+"
+# Dependent crate licenses
+LICENSE+="
+       Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0 ISC
+       LGPL-3 MIT MIT-0 MPL-2.0 UoI-NCSA openssl Unicode-3.0 ZLIB
+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+CHECKREQS_DISK_BUILD="13G"
+CHECKREQS_MEMORY="8G"
+
+DEPEND="
+       app-arch/zstd:=
+       app-misc/jq
+       dev-db/sqlite:3
+       >=dev-libs/libgit2-1.9.0:=
+       dev-libs/mimalloc
+       dev-libs/openssl:0/3
+       dev-libs/protobuf
+       dev-libs/wayland
+       dev-libs/wayland-protocols
+       dev-util/wayland-scanner
+       dev-util/vulkan-tools
+       || (
+               media-fonts/dejavu
+               media-fonts/cantarell
+               media-fonts/noto
+               media-fonts/ubuntu-font-family
+       )
+       media-libs/alsa-lib
+       media-libs/fontconfig
+       media-libs/vulkan-loader[X]
+       net-misc/curl
+       virtual/zlib:=
+       x11-libs/libX11
+       x11-libs/libxcb:=
+       x11-libs/libxkbcommon[X]
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+       app-arch/unzip
+       dev-build/cmake
+       dev-util/vulkan-headers
+       sys-devel/gettext
+       $(llvm_gen_dep '
+               llvm-core/clang:${LLVM_SLOT}=
+               llvm-core/llvm:${LLVM_SLOT}=
+       ')
+"
+
+QA_FLAGS_IGNORED="usr/bin/zedit"
+
+pkg_setup() {
+       if tc-is-lto; then
+               if tc-is-gcc; then
+                       export CARGO_PROFILE_RELEASE_LTO="true"
+               elif tc-is-clang; then
+                       export CARGO_PROFILE_RELEASE_LTO="thin"
+               fi
+       else
+               export CARGO_PROFILE_RELEASE_LTO="false"
+       fi
+
+       strip-unsupported-flags
+       # flags from upstream
+       export RUSTFLAGS="${RUSTFLAGS} -C symbol-mangling-version=v0 --cfg 
tokio_unstable -C link-args=-Wl,--disable-new-dtags,-rpath,\$ORIGIN/../lib"
+       # fix error in livekit-rust-sdks
+       export RUSTFLAGS="${RUSTFLAGS} -A unexpected_cfgs"
+       llvm-r1_pkg_setup
+       rust_pkg_setup
+}
+
+src_prepare() {
+       default
+
+       export APP_CLI="zedit"
+       export APP_ICON="zed"
+       if [[ "${PV}" == *pre ]]; then
+               export APP_ID="dev.zed.Zed-Preview"
+       else
+               export APP_ID="dev.zed.Zed"
+       fi
+       export APP_NAME="Zed"
+       export APP_ARGS="%U"
+       export DO_STARTUP_NOTIFY="true"
+       envsubst < "crates/zed/resources/zed.desktop.in" > ${APP_ID}.desktop || 
die
+
+       # Cargo offline fetch workaround
+       local CALLOOP_COMMIT="eb6b4fd17b9af5ecc226546bdd04185391b3e265"
+       local CALLOOP_GIT="calloop = { git = 
\"https://github.com/zed-industries/calloop\"";
+       local CALLOOP_PATH="calloop = \\{ path = 
\"${WORKDIR}/calloop-${CALLOOP_COMMIT}\""
+
+       local NOTIFY_COMMIT="b4588b2e5aee68f4c0e100f140e808cbce7b1419"
+       local NOTIFY_GIT="notify = { git = 
\"https://github.com/zed-industries/notify.git\";, rev = \"${NOTIFY_COMMIT}\""
+       local NOTIFY_PATH="notify = \\{ path = 
\"${WORKDIR}/notify-${NOTIFY_COMMIT}/notify\""
+       local NOTIFY_TYPES_GIT="notify-types = { git = 
\"https://github.com/zed-industries/notify.git\";, rev = \"${NOTIFY_COMMIT}\""
+       local NOTIFY_TYPES_PATH="notify-types = \\{ path = 
\"${WORKDIR}/notify-${NOTIFY_COMMIT}/notify-types\""
+
+       local WIN_CAP_COMMIT="f0d6c1b6691db75461b732f6d5ff56eed002eeb9"
+       local WIN_CAP_GIT="windows-capture = { git = 
\"https://github.com/zed-industries/windows-capture.git\";, rev = 
\"${WIN_CAP_COMMIT}\""
+       local WIN_CAP_PATH="windows-capture = \\{ path = 
\"${WORKDIR}/windows-capture-${WIN_CAP_COMMIT}\""
+
+       sed -e "s#${CALLOOP_GIT}#${CALLOOP_PATH}#" \
+               -e "s#${NOTIFY_GIT}#${NOTIFY_PATH}#" \
+               -e "s#${NOTIFY_TYPES_GIT}#${NOTIFY_TYPES_PATH}#" \
+               -e "s#${WIN_CAP_GIT}#${WIN_CAP_PATH}#" \
+               -i "${S}/Cargo.toml" || die "Cargo fetch workaround failed"
+}
+
+src_configure() {
+       cargo_src_configure --all-features
+}
+
+src_compile() {
+       export RELEASE_VERSION="${PV}"
+       export ZED_UPDATE_EXPLANATION='Updates are handled by portage'
+       if use arm64; then
+               export LK_CUSTOM_WEBRTC="${WORKDIR}/linux-arm64-release"
+       elif use amd64; then
+               export LK_CUSTOM_WEBRTC="${WORKDIR}/linux-x64-release"
+       fi
+       cargo_src_compile --package zed --package cli
+}
+
+src_install() {
+       newbin $(cargo_target_dir)/cli ${APP_CLI}
+       exeinto "/usr/libexec"
+       newexe $(cargo_target_dir)/zed zed-editor
+
+       newicon -s 512 crates/zed/resources/app-icon.png zed.png
+       newicon -s 1024 crates/zed/resources/[email protected] zed.png
+       domenu "${S}/${APP_ID}.desktop"
+}
+
+src_test () {
+       mkdir -p "${HOME}/.config/zed" || die
+       mkdir -p "${HOME}/.local/share/zed/logs/" || die
+
+       SHELL=/usr/bin/sh RUST_BACKTRACE=full cargo_src_test -vv
+}

Reply via email to