commit: 6c870dd0fd6f850d115aa9e3806fd15cb0a080b9 Author: Robert Siebeck <gentoo.2019 <AT> r123 <DOT> de> AuthorDate: Wed Mar 11 19:00:21 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Mar 14 19:00:01 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c870dd0
app-editors/zed: drop 0.218.5 Signed-off-by: Robert Siebeck <gentoo.2019 <AT> r123.de> Part-of: https://codeberg.org/gentoo/gentoo/pulls/299 Merges: https://codeberg.org/gentoo/gentoo/pulls/299 Signed-off-by: Sam James <sam <AT> gentoo.org> app-editors/zed/Manifest | 3 - app-editors/zed/zed-0.218.5.ebuild | 237 ------------------------------------- 2 files changed, 240 deletions(-) diff --git a/app-editors/zed/Manifest b/app-editors/zed/Manifest index df1902a09c55..b1fdb4673d62 100644 --- a/app-editors/zed/Manifest +++ b/app-editors/zed/Manifest @@ -17,7 +17,6 @@ DIST mermaid-rs-renderer-9d8360d9cea10dc4bc86d7b8012cc6e9656e6cf2.gh.tar.gz 1293 DIST notify-b4588b2e5aee68f4c0e100f140e808cbce7b1419.gh.tar.gz 133736 BLAKE2B 28c3014bbc9a4067c169933eb384d1fe95eaebd29efffe5059274a64f80e5fb95333c67a6c6f7f09d362ba349507a4aeb45bc9d783e8d6eb58e7c3230e2fc750 SHA512 91124db99dc0d375813f61ccd3339c54286b2eef1c3f940805eea4d97094d6653cfabf51d2872d544ba8b5b6d0f50ae490a5472879fc5076b8f18a8de91fc8f5 DIST notify-ce58c24cad542c28e04ced02e20325a4ec28a31d.gh.tar.gz 108952 BLAKE2B ab6a1c7a66b551eb4168ccebf4d61dd792b9d8707ddc66720407c638ede06c74144b45d76e9cb7f33e4dd9fa519f3a020d0fcd231ed8cb3a8f23cae27991f0b9 SHA512 6cbb8b85a58d86b4f62331a84c10b76909542a8e696d4394c0798bb6ed273633c5ea85e495d0e756c4cd636307927880fab5c519defc363d7bceae42bf7a288b DIST nvim-rs-764dd270c642f77f10f3e19d05cc178a6cbe69f3.gh.tar.gz 49979 BLAKE2B 63c2e181cdce292349f07375d5b23e30f0a4de1f872040d3a572f228147d9812bf94ab9799889d89ec0fb5de2fb8a46a8a92af392d65fb221dc91d1954dbcb20 SHA512 1d62d2bd4385dfb15e4aa52d5b823472011ea29a5faf6cc51a01b5c281502aaea78ea103838a4af15f8c36da2d26964f5fad5645cd033c761691d7bf8d2c1fb6 -DIST python-environment-tools-1e86914c3ce2f3a08c0cedbcb0615a7f9fa7a5da.gh.tar.gz 1493630 BLAKE2B 2485b970182ee95f7a0b998dcd2b42de9c82ab94fe0e849046cad5d84104ec81513f878de0843ac3af97e43a480b0fd82dcf0a691331314f886d12f52d41f1b5 SHA512 aa7a26769bcdce405159bbfea1f75862635d06503115cc2e3aeca0f227549facb5b5254908da41fb212a44631cb9d80443d70535c03f66b14fe20d88b943a921 DIST python-environment-tools-d5b5bb0c4558a51d8cc76b514bc870fd1c042f16.gh.tar.gz 1503359 BLAKE2B a6acd7858facdd88db55e15f5c190220d0a850f250d20a64c016033e51acc6f6a7a591ff83719c3242ec3f730e38702df05221013b12770809f439767f225eee SHA512 4c0e42c4850fc55a406bd7927220e990c402654fb2d9505381a975cac296c2118606c2f34a1f6adf896464d8cf8587d7dd62bf02fee9004b276acb43c90ef444 DIST reqwest-c15662463bda39148ba154100dd44d3fba5873a4.gh.tar.gz 242618 BLAKE2B 97f67d526d519dedef7e935da17a44b2cce6e3f5f3c88d2267607306d03405611c6f461e085e0b3d93c903144e7ff0b2e191c801df8153652f9f8c49e0dae123 SHA512 62cd1307fb6fede215aacdebe111c70af3b01f5214f08350bed0d64b714a48fcf7a0bd610670bc0012d5299bb5d8f15145b837d6ff51662e522b3122b12b7bd5 DIST rodio-e2074c6c2acf07b57cf717e076bdda7a9ac6e70b.gh.tar.gz 15032672 BLAKE2B 5e236a5008f66324fa8f7dd658ede633ed4790cde50648ca360bce511135c24a12812a1adec8650bd82803be6e44e0772e6e79b296fc000d53f8ea6e204d979d SHA512 7c0cc2c61f3c9047b9313a9a51ddae3ee89c7177113a5d30cad542747dec0dd0b8aa20a9ef808cea5b550316ff762e5760e6d2a1d096e3f879da2e47c25abe21 @@ -41,8 +40,6 @@ DIST wgpu-e0f83a6cedc5e0b97da1ebe2d638ad103672e0a2.gh.tar.gz 13632262 BLAKE2B d9 DIST windows-capture-f0d6c1b6691db75461b732f6d5ff56eed002eeb9.gh.tar.gz 40237 BLAKE2B b6ec6ad2534162c113c48e0f9cdd8cdf8af9eaf6258a6e147ed0d464045f98d76ceb28d2704095a770ebb394313dd77f5ea1178aad68447da5f5c5b4f3e3d668 SHA512 d0091e43baac7869fe6faa07c2345f3ae1401c00789e77a32aa80321b9b08bbaa4daca4978948d015cee95dd8434c33fdfd823b18657876c546d77ee3024089d DIST wprcontrol-cd811f7d744f65291e13131b1d907fda63ed91a1.gh.tar.gz 19787 BLAKE2B 78d078adb3d8a3990c1864c300298ea2ee0a4dba482ce35b72f389bf0b999002c21d07cc330a8dbd63dc1d3c8878f0fbcbaf0ee02356d8a757ee51f463fece57 SHA512 769670f61f41402618b0960809654db49f5ec67fa37cd2064a0e69f72284381145fce123c3bb97615f8b40eef3d6e917c4530903a197db61d68088673bbac801 DIST xim-rs-16f35a2c881b815a2b6cdfd6687988e84f8447d8.gh.tar.gz 47499 BLAKE2B d0ee4b9e2c68657a9f8cff6ecb18a6c975da9ec541d6b766c5dd5469737bf5bd61c6b0c57d41f7596dea9debf5fa1de42ac32d274bd06f4491e00b48e13cac5c SHA512 1a9a015ec48de6589ee9a4a4297542deb953899de600402a7242efea9ff25bc823628e55cc1921be96a9151211d1f82c1314b403ab2f6fcc1de6ee29b25d8a05 -DIST zed-0.218.5-crates.tar.xz 116229244 BLAKE2B e7662d5519c63a36a369078a1f30e89db29f593dd435152fbbddd4cc7c001b527174e9d5645314c154895cf83b9bc4ab3f1aa10df5d3589b5355b2323a792280 SHA512 7916ca07c1592c51727765abb417140260b4ae4eab2e99b84ca7eedc3662d2910c3f0524a2028a8b1d1270cd05e4aff81041352d7896952785ade91596645013 -DIST zed-0.218.5.tar.gz 22450615 BLAKE2B 3d417383d96667b8d28627014b3ead334554c64e1f224edfff69666c578dee71343a3a523cbae31939ff43e8b76fafd1fe20957592c7c47294b1cdadfe13117a SHA512 46d6ef14267fa065fd84250fd201123d5ec3e6ce602745794109ba81019bc72226110869795d5e2ba76ef0cc5d65aa8905ec8b0b084083e598eed1f6ad363765 DIST zed-0.221.5-crates.tar.xz 114112132 BLAKE2B 942f7422b09f1ad70542c508071287627308e08786cce7e31714ef4be2a1b814deb014043c0d7c6a1f48df02d7e9cb2d8f3801526d4ff577149032a09f90a101 SHA512 0e63a3e27eb5a50d945a950c7793eedfbd6ee6a8f2b6a5853e9cf7411059856a20a924e6238144d8bb8b08004178d548489c9843941fd1a1bd284ac1df66a4d7 DIST zed-0.221.5.tar.gz 24000605 BLAKE2B 136e8f364c48226bfc6c1bab3a385b38fdda657ba08598edd69fd88f979f3a17eadc15d77d54b025eed4a1759f0839e1a7b04783b78e9e392b226107872127b7 SHA512 0832b4e352f1680e0eb0ab5596333064bd1cd68ec47bfec3601bc8ad67938e7658520a5f7d5112ee07a0d606e7ef2131093c7d78263416a186101c62ea119e04 DIST zed-0.226.4-crates.tar.xz 118725452 BLAKE2B eac1286e6b810f9695d962343827cfeb2a941eb986f440df9b1bca91b9f20261b856d2f2c7d5bede49a32c5f0a0995d101342f7aa3694360417e52e4408ca956 SHA512 86204db0f04e3908f59a3e10085f0c998e3d2c32e7d4bcfd6d888d15aa787c0d72bef2c28a850c38f5100d1083998cf3d2083263f597b7dc2272263053d4c7d3 diff --git a/app-editors/zed/zed-0.218.5.ebuild b/app-editors/zed/zed-0.218.5.ebuild deleted file mode 100644 index 84b44834fcd0..000000000000 --- a/app-editors/zed/zed-0.218.5.ebuild +++ /dev/null @@ -1,237 +0,0 @@ -# Copyright 2026 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 -}
