commit:     ffda5f855b50f0abb2e9f04275cb6879eb844718
Author:     Robert Siebeck <gentoo.2019 <AT> r123 <DOT> de>
AuthorDate: Mon Jun 30 07:45:20 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Jun 30 07:55:48 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffda5f85

app-editors/zed: add 0.192.7

Signed-off-by: Robert Siebeck <gentoo.2019 <AT> r123.de>
Part-of: https://github.com/gentoo/gentoo/pull/42775
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-editors/zed/Manifest           |   3 +
 app-editors/zed/zed-0.192.7.ebuild | 231 +++++++++++++++++++++++++++++++++++++
 2 files changed, 234 insertions(+)

diff --git a/app-editors/zed/Manifest b/app-editors/zed/Manifest
index df62f8cef37c..96bcac32648f 100644
--- a/app-editors/zed/Manifest
+++ b/app-editors/zed/Manifest
@@ -3,6 +3,7 @@ DIST 
async-pipe-rs-82d00a04211cf4e1236029aa03e6b6ce2a74c553.gh.tar.gz 5575 BLAKE
 DIST async-stripe-3672dd4efb7181aa597bf580bf5a2f5d23db6735.gh.tar.gz 1057821 
BLAKE2B 
93218011a1f75acedfb9d4cd65fb3016b4a604926de173b4ce3839a562ec1483c3a7aa2b4c5f77fe50ac648eb9dfb076d19a7c736426136fd5e0f0d3f80d9541
 SHA512 
6d7765423294ab80aea5c7889bdfe20fab5384ed7ea9d54fde8208879a07b62425e71e77ed0fb182c59ef473f693181a7ed99925753bf6e672b4a729c6454700
 DIST blade-416375211bb0b5826b3584dccdb6a43369e499ad.gh.tar.gz 3321158 BLAKE2B 
546986903a6f12b353d748c40d86baca3f7db7e7d0da350f50ee95d0168ecead80fec6d7901e3086df25f577d180ec0fe79ce167391c38b84eb2712e03a84dbb
 SHA512 
e22c1947a78227e0a6eeec230e5bdd89f6cfbc5e8491d330c2e09a7e4b3f3141422a6d6788d70a6ae6bc546634b5cb6ace43bf809b43081ccee176a0cf98311a
 DIST blade-b16f5c7bd873c7126f48c82c39e7ae64602ae74f.gh.tar.gz 3318172 BLAKE2B 
408a2831f949f8655a47fc60d18b8977fd57677b75d527acbb1f357ed111fcab777fd7106dc0d6dfd748845ae3c89b844399669809e9aba536e54463e2ff4154
 SHA512 
51bf8382947c29a4b03e26c4d4e475c0841bfb6430be9aa0e4e8a9a62ff7615eefd60ff3daf729a70862fd33d7d27072edb08df986e7d970fca00c31d5c01b3f
+DIST blade-e0ec4e720957edd51b945b64dd85605ea54bcfe5.gh.tar.gz 3321387 BLAKE2B 
6fa9fcc27e5b845a94406834d11a3993412f6e5a29af56199a786a02afd4df83ec14c9616bba452d53cbe8f00870a051f1b9c97078f907b6d35b0def1249064c
 SHA512 
7efb38c3e0de81e743ab6b36d405c9759a80a822af591e538e863cf47987c51af12fb7b13a95c2b4df0d208d4862e7b9409265c266532d3bc418b0deaeacddaf
 DIST cpal-fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50.gh.tar.gz 120253 BLAKE2B 
e40b9097384b66454b3250a5fdea79c1db3453d08c96bf83a7f8c2aedd361bbd23e3a74ac9b542e284f642605b03180b5ecf6c104772b9fedf79c26709f42d4d
 SHA512 
8bcc10b1e6d278034c2f999bbb858b2d681862c9d4170febde4ab0026a32dae8894fbe7a029c5c6f444ab7bb02b1afea33947919f571c64400642efa334a5452
 DIST dap-types-b40956a7f4d1939da67429d941389ee306a3a308.gh.tar.gz 76943 
BLAKE2B 
61909627422bdf54b2166dbf493bffce4d8255398bf903154e1f020dc4fa5d7179cbb7d6454c05231aeaa2a6421dcfb6d211c7a7bdcf814bbdaca3e698c7680d
 SHA512 
d1ace7f3122bffa47d3a2da18c7f7792f0a5faba83e511ec80ca9f6961948aa85ca03aa0b42ef17fb2c8a2d5f1594960fbfd077b47592f94a9c6d24cae9dfee1
 DIST dap-types-be69a016ba710191b9fdded28c8b042af4b617f7.gh.tar.gz 75089 
BLAKE2B 
f3106b153dad275645a6ee942fda7539f478a1dadef611e057df66c5974f74dc8bca52b86b7bd45993de2e1384fe306ca15e979f715bf7d2b77a52f677916c15
 SHA512 
5f09cdf1176d4ae9ab4e20a7e8786bd32e40a353c54f26bd2a2bca76f60f3f9527e174ea96056fdd8595d553862bb2ca4b45332fce3f3b2f71f33c1692669970
@@ -34,3 +35,5 @@ DIST zed-0.190.4-crates.tar.xz 115182488 BLAKE2B 
8b8ad41cabd98722131d195520a8304
 DIST zed-0.190.4.tar.gz 15307699 BLAKE2B 
52dd1c1db95c98e02544fe270a1097d093ec56ad6e83dd59114b2670d19f46aba637319054fa0b05ddfa710c25d422ab4985b669f725d658247429ccf3fe4fa3
 SHA512 
85e3af3b0a837d156bd22b41c445f03b0265d1f22a5a9bc7322af2af9f4cf357f91079bb5dfd242d0d79186272096f00aace01d995226378381a40bb7b563318
 DIST zed-0.191.4-crates.tar.xz 115529300 BLAKE2B 
93cf633fd7c0567289453c89e54bec7817b46dad97a3dd3dea7089b29e0d0e57e30c008832eb51a0b5fe748416517146c23683180c85cc64e02491f398e07fcd
 SHA512 
0c0bf319c531aa22c9aa2d53efa477d7abf99f90973e49df7ffa9dbb23d19ad7399446b3bb9e6d2b74f5f62838616de38271777bea390cc99a5dd6b262c5a419
 DIST zed-0.191.4.tar.gz 15406439 BLAKE2B 
0037b82a07fa774d557264f38cd6b3df6ccecea9bb49669af49f7469d21ee886965d8eb33a95431c494418c70bdd3de104d21aa3e60e8919741b4317dbe86601
 SHA512 
f9d2d40a9117f9449be311571bdb16ff381c54f9209301c036ab873735e50462e0c1104c5019f77e7315bdf7279f857fd03577ad4738b59abd87d19dfbd37672
+DIST zed-0.192.7-crates.tar.xz 115440276 BLAKE2B 
c7a324a17ac3e2b97cc8b24e3a570cbfbd85918a3cff99f338c0a811a42e52f1b46d66d65433cbc39193c6ae94239516ca0f459807aaed36be78125dcce73516
 SHA512 
f81fc59b2638c6360dc5fd5840b530c9a17bb645f269ba97618276d487048efa18b32e3ca88132cf3da43d9da66b5440b0563788d43eea6c4c4f153872cbd603
+DIST zed-0.192.7.tar.gz 15482864 BLAKE2B 
ff6e40774e0d13892aaab966b148e9f8e1c50a3c6fc70ef2a0fa4b4f10032d408af6e24e2b579729d98c4ad106ef6d7f669f64732f12e926612fa5573b448946
 SHA512 
1112d4786cf502f40736f64af7a48cada4e361ff04064ee30177b5223404a9e786d3f24bd212de1f408de32752b3cf466bb2aa0f7cde97a6d6ff9a59f07e6cc5

diff --git a/app-editors/zed/zed-0.192.7.ebuild 
b/app-editors/zed/zed-0.192.7.ebuild
new file mode 100644
index 000000000000..1302cc0d56ec
--- /dev/null
+++ b/app-editors/zed/zed-0.192.7.ebuild
@@ -0,0 +1,231 @@
+# 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=(
+       
[alacritty_terminal]='https://github.com/zed-industries/alacritty;828457c9ff1f7ea0a0469337cc8a37ee3a1b0590;alacritty-%commit%/alacritty_terminal'
+       
[async-pipe]='https://github.com/zed-industries/async-pipe-rs;82d00a04211cf4e1236029aa03e6b6ce2a74c553;async-pipe-rs-%commit%'
+       
[async-stripe]='https://github.com/zed-industries/async-stripe;3672dd4efb7181aa597bf580bf5a2f5d23db6735;async-stripe-%commit%'
+       
[blade-graphics]='https://github.com/kvark/blade;e0ec4e720957edd51b945b64dd85605ea54bcfe5;blade-%commit%/blade-graphics'
+       
[blade-macros]='https://github.com/kvark/blade;e0ec4e720957edd51b945b64dd85605ea54bcfe5;blade-%commit%/blade-macros'
+       
[blade-util]='https://github.com/kvark/blade;e0ec4e720957edd51b945b64dd85605ea54bcfe5;blade-%commit%/blade-util'
+       
[dap-types]='https://github.com/zed-industries/dap-types;b40956a7f4d1939da67429d941389ee306a3a308;dap-types-%commit%/dap-types'
+       
[font-kit]='https://github.com/zed-industries/font-kit;5474cfad4b719a72ec8ed2cb7327b2b01fd10568;font-kit-%commit%'
+       
[jj-lib-proc-macros]='https://github.com/jj-vcs/jj;e18eb8e05efaa153fad5ef46576af145bba1807f;jj-%commit%/lib/proc-macros'
+       
[jj-lib]='https://github.com/jj-vcs/jj;e18eb8e05efaa153fad5ef46576af145bba1807f;jj-%commit%/lib'
+       
[jupyter-protocol]='https://github.com/ConradIrwin/runtimed;7130c804216b6914355d15d0b91ea91f6babd734;runtimed-%commit%/crates/jupyter-protocol'
+       
[jupyter-websocket-client]='https://github.com/ConradIrwin/runtimed;7130c804216b6914355d15d0b91ea91f6babd734;runtimed-%commit%/crates/jupyter-websocket-client'
+       
[libwebrtc]='https://github.com/zed-industries/livekit-rust-sdks;80bb8f4c9112789f7c24cc98d8423010977806a6;livekit-rust-sdks-%commit%/libwebrtc'
+       
[livekit-api]='https://github.com/zed-industries/livekit-rust-sdks;80bb8f4c9112789f7c24cc98d8423010977806a6;livekit-rust-sdks-%commit%/livekit-api'
+       
[livekit-protocol]='https://github.com/zed-industries/livekit-rust-sdks;80bb8f4c9112789f7c24cc98d8423010977806a6;livekit-rust-sdks-%commit%/livekit-protocol'
+       
[livekit-runtime]='https://github.com/zed-industries/livekit-rust-sdks;80bb8f4c9112789f7c24cc98d8423010977806a6;livekit-rust-sdks-%commit%/livekit-runtime'
+       
[livekit]='https://github.com/zed-industries/livekit-rust-sdks;80bb8f4c9112789f7c24cc98d8423010977806a6;livekit-rust-sdks-%commit%/livekit'
+       
[lsp-types]='https://github.com/zed-industries/lsp-types;c9c189f1c5dd53c624a419ce35bc77ad6a908d18;lsp-types-%commit%'
+       
[nbformat]='https://github.com/ConradIrwin/runtimed;7130c804216b6914355d15d0b91ea91f6babd734;runtimed-%commit%/crates/nbformat'
+       
[notify-types]='https://github.com/zed-industries/notify;bbb9ea5ae52b253e095737847e367c30653a2e96;notify-%commit%/notify-types'
+       
[notify]='https://github.com/zed-industries/notify;bbb9ea5ae52b253e095737847e367c30653a2e96;notify-%commit%/notify'
+       
[nvim-rs]='https://github.com/KillTheMule/nvim-rs;764dd270c642f77f10f3e19d05cc178a6cbe69f3;nvim-rs-%commit%'
+       
[pet-conda]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-conda'
+       
[pet-core]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-core'
+       
[pet-env-var-path]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-env-var-path'
+       
[pet-fs]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-fs'
+       
[pet-global-virtualenvs]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-global-virtualenvs'
+       
[pet-homebrew]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-homebrew'
+       
[pet-jsonrpc]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-jsonrpc'
+       
[pet-linux-global-python]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-linux-global-python'
+       
[pet-mac-commandlinetools]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-mac-commandlinetools'
+       
[pet-mac-python-org]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-mac-python-org'
+       
[pet-mac-xcode]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-mac-xcode'
+       
[pet-pipenv]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-pipenv'
+       
[pet-pixi]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-pixi'
+       
[pet-poetry]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-poetry'
+       
[pet-pyenv]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-pyenv'
+       
[pet-python-utils]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-python-utils'
+       
[pet-reporter]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-reporter'
+       
[pet-telemetry]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-telemetry'
+       
[pet-venv]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-venv'
+       
[pet-virtualenv]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-virtualenv'
+       
[pet-virtualenvwrapper]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-virtualenvwrapper'
+       
[pet-windows-registry]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-windows-registry'
+       
[pet-windows-store]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet-windows-store'
+       
[pet]='https://github.com/microsoft/python-environment-tools;845945b830297a50de0e24020b980a65e4820559;python-environment-tools-%commit%/crates/pet'
+       
[reqwest]='https://github.com/zed-industries/reqwest;951c770a32f1998d6e999cef3e59e0013e6c4415;reqwest-%commit%'
+       
[runtimelib]='https://github.com/ConradIrwin/runtimed;7130c804216b6914355d15d0b91ea91f6babd734;runtimed-%commit%/crates/runtimelib'
+       
[scap]='https://github.com/zed-industries/scap;08f0a01417505cc0990b9931a37e5120db92e0d0;scap-%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;6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c;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-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;80bb8f4c9112789f7c24cc98d8423010977806a6;livekit-rust-sdks-%commit%/webrtc-sys/build'
+       
[webrtc-sys]='https://github.com/zed-industries/livekit-rust-sdks;80bb8f4c9112789f7c24cc98d8423010977806a6;livekit-rust-sdks-%commit%/webrtc-sys'
+       
[xim-ctext]='https://github.com/XDeme1/xim-rs;d50d461764c2213655cd9cf65a0ea94c70d3c4fd;xim-rs-%commit%/xim-ctext'
+       
[xim-parser]='https://github.com/XDeme1/xim-rs;d50d461764c2213655cd9cf65a0ea94c70d3c4fd;xim-rs-%commit%/xim-parser'
+       
[xim]='https://github.com/XDeme1/xim-rs;d50d461764c2213655cd9cf65a0ea94c70d3c4fd;xim-rs-%commit%'
+)
+
+LLVM_COMPAT=( 20 )
+RUST_MIN_VER="1.87.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://gitlab.com/api/v4/projects/35204985/packages/generic/${PN}/$(ver_cut 
1-2)/${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"
+IUSE="gles"
+CHECKREQS_DISK_BUILD="11G"
+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
+       sys-libs/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
+       sys-devel/mold
+       $(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-arg=-fuse-ld=mold -C 
link-args=-Wl,--disable-new-dtags,-rpath,\$ORIGIN/../lib"
+       # fix error in livekit-rust-sdks
+       export RUSTFLAGS="${RUSTFLAGS} -A unexpected_cfgs"
+       if use gles; then
+               export RUSTFLAGS="${RUSTFLAGS} --cfg gles"
+       fi
+       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 NOTIFY_COMMIT="bbb9ea5ae52b253e095737847e367c30653a2e96"
+       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\""
+
+       sed -e "s#${NOTIFY_GIT}#${NOTIFY_PATH}#" \
+               -e "s#${NOTIFY_TYPES_GIT}#${NOTIFY_TYPES_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