summaryrefslogtreecommitdiff
path: root/app-editors
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-02-28 19:27:52 +0000
committerV3n3RiX <venerix@koprulu.sector>2025-02-28 19:27:52 +0000
commit4b1be5ef874aaeb61a2116048e0c2312e53f8c69 (patch)
treee2f0118b102bf7e7ad852582d410adb43f13b035 /app-editors
parent4418da21bd05d610a3450f4aa75481785ca372a0 (diff)
gentoo auto-resync : 28:02:2025 - 19:27:52
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/Manifest.gzbin13940 -> 13944 bytes
-rw-r--r--app-editors/zed/Manifest5
-rw-r--r--app-editors/zed/zed-0.168.2.ebuild2
-rw-r--r--app-editors/zed/zed-0.175.5.ebuild220
4 files changed, 225 insertions, 2 deletions
diff --git a/app-editors/Manifest.gz b/app-editors/Manifest.gz
index 7c422867b4f7..b230961a0336 100644
--- a/app-editors/Manifest.gz
+++ b/app-editors/Manifest.gz
Binary files differ
diff --git a/app-editors/zed/Manifest b/app-editors/zed/Manifest
index a7aa342f5d48..f53982f5b8c6 100644
--- a/app-editors/zed/Manifest
+++ b/app-editors/zed/Manifest
@@ -36,7 +36,10 @@ DIST zed-0.168.2-crates.tar.xz 102307616 BLAKE2B 07c3b4270cdb230c1821dcdbcf8d241
DIST zed-0.168.2.tar.gz 13487508 BLAKE2B 7e9f8a73eb461f852d85f9596f3db1af0ce56c5c994c413a90b270d5b2b5bb2e994f78853a17b5579ba9905f761cec11d56c67a686643ca5ae4a36dcd83cfb5f SHA512 c7a1c93e044879209dd19b00dba7e046b13175ed82a4968c1aabe1f1605a61605cb4d8d7906a186c61c6129d59a58e14dd2f336263b301f8b59d3e9f7b332f1b
DIST zed-0.173.8-crates.tar.xz 105781268 BLAKE2B 26ff8b1a6c567391b7c1456cf79933a15df096fcb9a48aa28d5e2f3dd14d52d139e6a3c71ba14846d2bd036e72bc3d5c6e1733c12b179a1823c9580e5abe1026 SHA512 78dda7d4a74da881bc145bf404091588e9c88311c196b29c07d138ae5d354f396fe824eb547e2fc1b3d05906dcef767a56e6f72c5126443122e3ed482a71b06e
DIST zed-0.173.8.tar.gz 13710072 BLAKE2B 78b9e1cbe2eea13fb290d273c7e7a6aaf4354619b5b9bfec20417becfd794d1767b1cd6115a3e614723599a9b0573a7bb56ec815c8a4740e730fdd7c07f523fc SHA512 3b2b9a502cfc1a49979acd1058a68ab0283d57d697d793c4dd18fb1e0a0352ed12ec3204e138f8e866f1e4ea5fbcedce6580af41f0c403ff56b622ca7cade6d0
+DIST zed-0.175.5-crates.tar.xz 106296404 BLAKE2B ad9617aae948ebcfa8998d939ecf1fbacead59180335c9385a5c5ccc2fb84b1037debb9afc5afe227d9ecaa3b6ede0a0f47b75c785cba9c863ae0a18f42792b3 SHA512 b28d5ac7ae4d8de5d36c79928ed509c66555d1c90c34623ec3d582d13b8ced2ec35e6ff257823fa684c8c4838c30b064abaf9cebecb9e0e267ee0e8c0fff0e0e
+DIST zed-0.175.5.tar.gz 13720176 BLAKE2B 9738014779ae2998f2abe9fefc155f29d2003a156f8af8966b3329c6ca68560295b06e9e1e6bb6010f05439e1b3a22404140c882521a0f5d67ef25cd02d96913 SHA512 d97510617cf5baf2ad7686daf7450b3cf7d15c2f675ea20638746dfc79cf9ccfac460204e9b810b13308304eb8f65d26e0129617c419aef71e9ae7e350dafa56
EBUILD zed-0.165.4.ebuild 9509 BLAKE2B 12979687e47d1b8df2affa08f32cc4cb118578477e5946649654dacbd763149194ea14e5ef250b82dd374bfa777d1308c78a2c6774403626a79ba21e1c7210cd SHA512 665ebb2c035faa9c5219bc057d45fe6e102f39d84649d67d2e0403949604fcd114128a5c57192fbc28a749fd583ab163121b7ca5f4a9715e9fd0d40539c51ce2
-EBUILD zed-0.168.2.ebuild 11505 BLAKE2B 1b614242968c757bdece760f455d25e8b34502098d31523689fc36918b8228e9d85d60292af85f502338dc69d2139f2f9347bd1082deeabe8bccd54c5c92a538 SHA512 5592cafac8272ce0b21526041803b3100218f3133dcf937866b9fd3ccd987b5636ae3d7bd62963a4818b530c69c662cee00f27d0c95f617dfc92b8fde49d8fbe
+EBUILD zed-0.168.2.ebuild 11504 BLAKE2B ea05acb0758ceadedf205d75b5d01d53c31489f2eb058523ca1718d60e1fbdde92743b231b29948823b51574e0ce6914ce3457c662fc10a66057bc53e3cc2211 SHA512 642caf285e0cd3339a60e6a819f2b9615b123f98db5984d51d7d4d63f0b276e8a4193e838d3111582cfee7724f2ba0d6fb5032d7300801f5880b43496e151c12
EBUILD zed-0.173.8.ebuild 12723 BLAKE2B cf9c5246c1ce81ed3f5f255568c60a3a0d780725b169b000eea5456ee535b2cc9cd22f612ca558debb51d4a1b8dc85aefb49fd05946a7dea053baa97d8a92037 SHA512 f14ba82d1a71d070cb48107607325dd0a86adf8942268a94bfb9e67f03d9b5b9d6c885e01b440a1cf55953ef0af6b88e1bf774630eff9088962cf6e380a7fa84
+EBUILD zed-0.175.5.ebuild 12561 BLAKE2B 7bf64e2e1ab22c9fe004feb30ad91456675ba148b0e00e3ad53e53a59e034c2de480e0d3c7244cbdaaadf78ac5e119f9d82f75d5a5d063fc9ee95088f67d96ae SHA512 a434dff9b339875208d41d1e2c49dcc7d28983f1af9f7c69c47c7bb70ab5ac7dd98d9dc3b1b9c9d55115e9726ce9bfe06fc0e32af811f61006f91252717aa673
MISC metadata.xml 575 BLAKE2B 3793593f06424fd3986e23cd148b663bfcbf5c1dc0f76847a3991bbdde8badfdc863d0994ba1b59fc0e886243ded4e4421da4b4bf6d2951887801f78b0d6d290 SHA512 b0660a1a36d59dea6b9a6e25a239f0484e1cbf98a6569dd17d6bae1145f12d7e3ac2609bbce32627bf7ca6161581cd82c087d7deb17dd662c23bd81db6465a02
diff --git a/app-editors/zed/zed-0.168.2.ebuild b/app-editors/zed/zed-0.168.2.ebuild
index 4f8ff8b730a6..85ba62ee69b0 100644
--- a/app-editors/zed/zed-0.168.2.ebuild
+++ b/app-editors/zed/zed-0.168.2.ebuild
@@ -90,7 +90,7 @@ LICENSE+="
LGPL-3 MIT MPL-2.0 Unicode-3.0 ZLIB
"
SLOT="0"
-KEYWORDS="~amd64 ~arm64"
+KEYWORDS="amd64 ~arm64"
IUSE="gles"
CHECKREQS_DISK_BUILD="8G"
CHECKREQS_MEMORY="16G"
diff --git a/app-editors/zed/zed-0.175.5.ebuild b/app-editors/zed/zed-0.175.5.ebuild
new file mode 100644
index 000000000000..e0bbaa6ea343
--- /dev/null
+++ b/app-editors/zed/zed-0.175.5.ebuild
@@ -0,0 +1,220 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Autogenerated by pycargoebuild 0.13.5
+
+EAPI=8
+
+CRATES="
+"
+
+declare -A GIT_CRATES=(
+ [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%'
+ [async-tls]='https://github.com/zed-industries/async-tls;1e759a4b5e370f87dc15e40756ac4f8815b61d9d;async-tls-%commit%'
+ [blade-graphics]='https://github.com/kvark/blade;b16f5c7bd873c7126f48c82c39e7ae64602ae74f;blade-%commit%/blade-graphics'
+ [blade-macros]='https://github.com/kvark/blade;b16f5c7bd873c7126f48c82c39e7ae64602ae74f;blade-%commit%/blade-macros'
+ [blade-util]='https://github.com/kvark/blade;b16f5c7bd873c7126f48c82c39e7ae64602ae74f;blade-%commit%/blade-util'
+ [cosmic-text]='https://github.com/pop-os/cosmic-text;542b20ca4376a3b5de5fa629db1a4ace44e18e0c;cosmic-text-%commit%'
+ [cpal]='https://github.com/zed-industries/cpal;fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50;cpal-%commit%'
+ [font-kit]='https://github.com/zed-industries/font-kit;40391b7c0041d8a8572af2afa3de32ae088f0120;font-kit-%commit%'
+ [git2]='https://github.com/rust-lang/git2-rs;a3b90cb3756c1bb63e2317bf9cfa57838178de5c;git2-rs-%commit%'
+ [libgit2-sys]='https://github.com/rust-lang/git2-rs;a3b90cb3756c1bb63e2317bf9cfa57838178de5c;git2-rs-%commit%/libgit2-sys'
+ [libwebrtc]='https://github.com/zed-industries/livekit-rust-sdks;811ceae29fabee455f110c56cd66b3f49a7e5003;livekit-rust-sdks-%commit%/libwebrtc'
+ [livekit-api]='https://github.com/zed-industries/livekit-rust-sdks;811ceae29fabee455f110c56cd66b3f49a7e5003;livekit-rust-sdks-%commit%/livekit-api'
+ [livekit-protocol]='https://github.com/zed-industries/livekit-rust-sdks;811ceae29fabee455f110c56cd66b3f49a7e5003;livekit-rust-sdks-%commit%/livekit-protocol'
+ [livekit-runtime]='https://github.com/zed-industries/livekit-rust-sdks;811ceae29fabee455f110c56cd66b3f49a7e5003;livekit-rust-sdks-%commit%/livekit-runtime'
+ [livekit]='https://github.com/zed-industries/livekit-rust-sdks;811ceae29fabee455f110c56cd66b3f49a7e5003;livekit-rust-sdks-%commit%/livekit'
+ [lsp-types]='https://github.com/zed-industries/lsp-types;1fff0dd12e2071c5667327394cfec163d2a466ab;lsp-types-%commit%'
+ [nvim-rs]='https://github.com/KillTheMule/nvim-rs;69500bae73b8b3f02a05b7bee621a0d0e633da6c;nvim-rs-%commit%'
+ [pet-conda]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-conda'
+ [pet-core]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-core'
+ [pet-env-var-path]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-env-var-path'
+ [pet-fs]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-fs'
+ [pet-global-virtualenvs]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-global-virtualenvs'
+ [pet-homebrew]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-homebrew'
+ [pet-jsonrpc]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-jsonrpc'
+ [pet-linux-global-python]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-linux-global-python'
+ [pet-mac-commandlinetools]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-mac-commandlinetools'
+ [pet-mac-python-org]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-mac-python-org'
+ [pet-mac-xcode]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-mac-xcode'
+ [pet-pipenv]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-pipenv'
+ [pet-pixi]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-pixi'
+ [pet-poetry]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-poetry'
+ [pet-pyenv]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-pyenv'
+ [pet-python-utils]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-python-utils'
+ [pet-reporter]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-reporter'
+ [pet-telemetry]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-telemetry'
+ [pet-venv]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-venv'
+ [pet-virtualenv]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-virtualenv'
+ [pet-virtualenvwrapper]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-virtualenvwrapper'
+ [pet-windows-registry]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-windows-registry'
+ [pet-windows-store]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet-windows-store'
+ [pet]='https://github.com/microsoft/python-environment-tools;1abe5cec5ebfbe97ca71746a4cfc7fe89bddf8e0;python-environment-tools-%commit%/crates/pet'
+ [reqwest]='https://github.com/zed-industries/reqwest;fd110f6998da16bbca97b6dddda9be7827c50e29;reqwest-%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;811ceae29fabee455f110c56cd66b3f49a7e5003;livekit-rust-sdks-%commit%/webrtc-sys/build'
+ [webrtc-sys]='https://github.com/zed-industries/livekit-rust-sdks;811ceae29fabee455f110c56cd66b3f49a7e5003;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%'
+ [xkbcommon]='https://github.com/ConradIrwin/xkbcommon-rs;fcbb4612185cc129ceeff51d22f7fb51810a03b2;xkbcommon-rs-%commit%'
+)
+
+LLVM_COMPAT=( {18..19} )
+RUST_MIN_VER="1.81.0"
+RUST_NEEDS_LLVM=1
+WEBRTC_COMMIT="dac8015-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}/${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}"
+
+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 MPL-2.0 Unicode-3.0 ZLIB
+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="gles"
+CHECKREQS_DISK_BUILD="9G"
+CHECKREQS_MEMORY="16G"
+
+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-analyzer/openbsd-netcat
+ net-misc/curl
+ sys-libs/zlib
+ 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-gcc; then
+ export CARGO_PROFILE_RELEASE_LTO="true"
+ elif tc-is-clang; then
+ export CARGO_PROFILE_RELEASE_LTO="thin"
+ 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"
+ # linking error with llvm-18
+ export RUSTFLAGS="${RUSTFLAGS} -C link-args=-Wl,-z,nostart-stop-gc"
+ # 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"
+ export APP_ID="dev.zed.Zed"
+ 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 CPAL_COMMIT="fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50"
+ local CPAL_GIT="git = \"https://github.com/zed-industries/cpal\", rev = \"${CPAL_COMMIT}\""
+ local CPAL_PATH="path = \"${WORKDIR}/cpal-${CPAL_COMMIT}\""
+
+ local ASYNC_TLS_COMMIT="1e759a4b5e370f87dc15e40756ac4f8815b61d9d"
+ local ASYNC_TLS_GIT="git = \"https://github.com/zed-industries/async-tls\", rev = \"${ASYNC_TLS_COMMIT}\""
+ local ASYNC_TLS_PATH="path = \"${WORKDIR}/async-tls-${ASYNC_TLS_COMMIT}\""
+
+ sed -e "s#${CPAL_GIT}#${CPAL_PATH}#" \
+ -e "s#${ASYNC_TLS_GIT}#${ASYNC_TLS_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/app-icon@2x.png 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
+}