commit: f0fd06576834203a8289a9a120de4f73f0108b34 Author: Robert Siebeck <gentoo.2019 <AT> r123 <DOT> de> AuthorDate: Fri Nov 28 08:52:19 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri Nov 28 11:09:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0fd0657
app-editors/zed: add 0.213.8 Signed-off-by: Robert Siebeck <gentoo.2019 <AT> r123.de> Part-of: https://github.com/gentoo/gentoo/pull/44697 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-editors/zed/Manifest | 4 + app-editors/zed/zed-0.213.8.ebuild | 235 +++++++++++++++++++++++++++++++++++++ 2 files changed, 239 insertions(+) diff --git a/app-editors/zed/Manifest b/app-editors/zed/Manifest index 516b3cab66c2..51462677e892 100644 --- a/app-editors/zed/Manifest +++ b/app-editors/zed/Manifest @@ -11,6 +11,7 @@ DIST jj-e18eb8e05efaa153fad5ef46576af145bba1807f.gh.tar.gz 1952595 BLAKE2B 992c6 DIST livekit-rust-sdks-5f04705ac3f356350ae31534ffbc476abc9ea83d.gh.tar.gz 6248604 BLAKE2B d9185f7f05a0f872b4931be08ea6700b17a35d011ece757e8e2188bda1b0257843b925709c1e778f820a728942020bdcbd5f9c17e9cd638acc1c250d6cbb66d4 SHA512 731cdf1781744d25f553f917e030d5009952dfe159852c58d07178e18e88cd8e7b6001e2c6b8c7ccef346ed878010d681a1e841c1bea30d74b480584e3ae6525 DIST lsp-types-0874f8742fe55b4dc94308c1e3c0069710d8eeaf.gh.tar.gz 74230 BLAKE2B 2eaa7c7fbc2881a6aeb7a02f03b9502019eb0be487fc4bdd18ea554831716565508b661742b17af7e06a4cf8df9dbf2b291482f587da07c07339e0777788e956 SHA512 aad4f39ac32ac1c96aaff42beaacb53f0ddd3ce38c433b4c3493d92ca9d9f057d296107987860a0ffc1c42882591b2b11adb0d0ee746dcef1d9368f30cb9c761 DIST lsp-types-b71ab4eeb27d9758be8092020a46fe33fbca4e33.gh.tar.gz 74361 BLAKE2B 29a5695edad50e785021658cf389e56d8ce2318e269407d2636f1d96d6b7cc5e31dfa444a214be8ba94b7f4ed54acdb8bd743860fd618bb81872fe7c8db38c4f SHA512 94e393c5c7741962191de3ef969f7702a966bb7f1517518ec8333861d185ad7d99fa93e4ac96679aa39fdaa38af70ffec3b9445f8a3aeb0aa1db657425803970 +DIST notify-b4588b2e5aee68f4c0e100f140e808cbce7b1419.gh.tar.gz 133736 BLAKE2B 28c3014bbc9a4067c169933eb384d1fe95eaebd29efffe5059274a64f80e5fb95333c67a6c6f7f09d362ba349507a4aeb45bc9d783e8d6eb58e7c3230e2fc750 SHA512 91124db99dc0d375813f61ccd3339c54286b2eef1c3f940805eea4d97094d6653cfabf51d2872d544ba8b5b6d0f50ae490a5472879fc5076b8f18a8de91fc8f5 DIST notify-bbb9ea5ae52b253e095737847e367c30653a2e96.gh.tar.gz 104977 BLAKE2B 9ac63358c0a7dcbb683e55cf240b48e25b6f076c6d5371c271c551d836188749e9705f78725e08ab314068255e45866bd315247713894637661a07869b56d455 SHA512 e7032771aa7ffb3d65c559ffdf9ff1f39558f5c269b5c1242dced7aef5e3388b366c8bbbd89f80c649ab7d93b38ba8314d0d35205ce699f2166a908504c541a3 DIST nvim-rs-764dd270c642f77f10f3e19d05cc178a6cbe69f3.gh.tar.gz 49979 BLAKE2B 63c2e181cdce292349f07375d5b23e30f0a4de1f872040d3a572f228147d9812bf94ab9799889d89ec0fb5de2fb8a46a8a92af392d65fb221dc91d1954dbcb20 SHA512 1d62d2bd4385dfb15e4aa52d5b823472011ea29a5faf6cc51a01b5c281502aaea78ea103838a4af15f8c36da2d26964f5fad5645cd033c761691d7bf8d2c1fb6 DIST python-environment-tools-845945b830297a50de0e24020b980a65e4820559.gh.tar.gz 1481537 BLAKE2B b316a575560b901bde0fdcd9316ecabfc164d5f11124fd1cebebe2694c833e7e65756a2f24b5f71113a8f30135d97f792a9cf0b4314ff713cfe88d502dbfde24 SHA512 aa15c0f6338d5c0bbe74a62ce1f6af584d7f059f964967572d47ecbc8d4f9c737b19a9b4d3071dcc1af3974df8df7adb807304b7fae2885eedb772033327006c @@ -25,6 +26,7 @@ DIST scap-808aa5c45b41e8f44729d02e38fd00a2fe2722e7.gh.tar.gz 5161739 BLAKE2B 74c DIST tiktoken-rs-30c32a4522751699adeda0d5840c71c3b75ae73d.gh.tar.gz 3815470 BLAKE2B 812ab7273935c6a561a0d5d2b274386811b56ff31fa76eeaefa98ed482dc845e50e2bbd93e944ecaf211d85c265d1b16b43d1c5ddcd661d5c452357678dc1aab SHA512 862c376d9a1999b18ed62bb16cf8baf08e1801287cf5ea5fe4b6122380e89e78ff01e5b121b40ad700148e388b87c2a9ca5ce008f7605af5886d4e97f20af184 DIST tree-sitter-cpp-5cb9b693cfd7bfacab1d9ff4acac1a4150700609.gh.tar.gz 1194179 BLAKE2B 9b1a128d186f488da459275d3b31c417c8f4ff769907d5ead63a5712ba05f332560acb0a8b3693946f67ee4077a26de637575714292a19e9405c47608b0d7f1f SHA512 4a8d87b839fc7a5fa397187836b672bae9bf244950eaf14aaa0833bc4d9bf948fc23424edf10aff3ebde7fd07973f1bd88779b4963850010bc0ec0c459f451df DIST tree-sitter-git-commit-88309716a69dd13ab83443721ba6e0b491d37ee9.gh.tar.gz 73789 BLAKE2B 0c87bac702bc3b88b9846944a8880b619be6aff3206a339da7a74ed81ca64c033ddf9a0c13a8320b6897dc6de225c8568661cb29a82cf445c8b6818c904f2395 SHA512 53141c8a98a22e031c44d158dbe0cbb7a6f41bc7e762b9b22c86db3e861f7b43771d136f958f6c207f621ba074e15a4fc37aae29ec7c4a6468a2a7ceae67eaf2 +DIST tree-sitter-go-mod-2e886870578eeba1927a2dc4bd2e2b3f598c5f9a.gh.tar.gz 31799 BLAKE2B 9952abc83e82db8c46114b4d126098ae4807a2b6847186e050e370934f56f77041b98632cbb39f54e7daabb9122ab9217618dd0bf49a0636a41ed682396212df SHA512 218e14793184c401e07374cbf2f5b71f70f7c07e04f72f854bdbb6f27c9d3a169460ac0083c88e26819d95ada79722df2769007d6c93e1f057a7ee1a8246c5c2 DIST tree-sitter-go-mod-6efb59652d30e0e9cd5f3b3a669afd6f1a926d3c.gh.tar.gz 29074 BLAKE2B 97e3fdffc203d036c59a9cfb3e36c6eea835a19729b472673d9b317b93c88b1a4faf1ebd21ff56c733c5ee054571f9e4e917236c3dc8850b130c6377300efeaa SHA512 d484994f4f0418f929c2723a8765fe5b0b7beb2c43f6587aba82f5c176d212e14790d01bdc368f7dd5b4d861ff2d991cb2c2e28d1c54c60600ea8d8bfa4667d7 DIST tree-sitter-go-work-acb0617bf7f4fda02c6217676cc64acb89536dc7.gh.tar.gz 16413 BLAKE2B 2b97192ad26449d28bb47acb99bd3a0b9cbb8fd2521693099d4191e1d8920b74d1b93f35a1d4f9081dd7bf161f2053f8eba6f2264c8b68d0fbd0fd7d1d1c75b8 SHA512 1b88438403d38019134c41db99c509e4cdbb75c4ba947abb1b5459a9f94eff33006fca4fda4b0a35412507bcdd9f0536a7e1ba2ac0918120242b46bcca9dec96 DIST tree-sitter-heex-1dd45142fbb05562e35b2040c6129c9bca346592.gh.tar.gz 33900 BLAKE2B 2e7bbd467a4e457211d032492daa180824d9aaf582c0ae132eeb46ddb6016b80aea289e9922542bc9744f4e16c1e5d8d4d3ebc1da4e39a87e9f9eec61e0a2ab3 SHA512 6fb1c269e648231c5453d6dea9c6b6a9f6109328bacd5fc509a4707f41c06ae3d753f7635deea7588f86df1fa7cf630ab6c9051b8d29d359b25e83be07c0b6f5 @@ -47,3 +49,5 @@ DIST zed-0.210.4-crates.tar.xz 119182976 BLAKE2B a111f89b039e6c7e0e8d7bdd9d47fe1 DIST zed-0.210.4.tar.gz 21434026 BLAKE2B 26a07561ee23fb535da5e216b624b76909472206c4a0e40b635fa14dc7c6b01fffa5f40fba275bab848e9c0f43bda3e0dc7df0a729bf920ee5be3a8caad8a526 SHA512 a6e5a31096407c3f5328b42f9aff1d59313b3c2ddb27e3618273f728434af6472a669522529287e8c31ff3266e025e6ddded45d3f5da87626abf472c427f9eb7 DIST zed-0.211.6-crates.tar.xz 119298664 BLAKE2B f77d40a9bad8ef23dff30a7cc8c2496c2cc0016e3b354174b56bcc81d7ef6265aab03d8902e10b6080d8280f26e7ece9864b1053ff0219c1671b2432282551dd SHA512 5ca34c247c6c29f48a658af1cf5202b9390f8df4da93fe4fec8ffc9d6ed62b9125ee2a695c444ac51537a7c35d82c1d1c6bd7b695b5ed752b43dc066abe6980a DIST zed-0.211.6.tar.gz 21520246 BLAKE2B a03467c2fbc9322ad8965213b2993358615a7be560853183d931432a591abb40604c2fbd319da8cbd2718693b7265377419f9afcd012eca2a36f4edaa94e6494 SHA512 b2223525874f8a31c41649c3b1667de9209fb11874116cfde986fa32f4f507edb02327cced55bf687639c209cf60b85ba7afed5dbe2037610cf737cc2f10b517 +DIST zed-0.213.8-crates.tar.xz 119360968 BLAKE2B 1a1813f50e11e14f5b0de2d7a1507a6cd52bfc3d195e10d316b9f6f923c95d8ac9f2dd942aaa8ae9787669a44a5628c373be401599b9122fd642e64998fb2e3c SHA512 71b6e4624ba34a767cda331f95edbbd5f2d35130fafe3d54b9040b1eb66f4213b86cbb061a2976c16846ef210a94d2e56cf9e13b3c7b084377b5534466c652a3 +DIST zed-0.213.8.tar.gz 21636842 BLAKE2B d0eaa275f120247f4ac504ea306165aaa995b7eace3a1e840ccabcd7405f069fe02600f840a04fda06bfc8f49a96219fac6bdf42fd97f971bc9cb27623720773 SHA512 133c244248f3cc5ce37392b6e9eadd7d1ebcbfbbba6cf8f68f4569b8135d60a3bc12c686ead446cb68cd114998a625ed3e016a651587eff92fb2c6bd9e785a75 diff --git a/app-editors/zed/zed-0.213.8.ebuild b/app-editors/zed/zed-0.213.8.ebuild new file mode 100644 index 000000000000..c617f4fc21a1 --- /dev/null +++ b/app-editors/zed/zed-0.213.8.ebuild @@ -0,0 +1,235 @@ +# 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%' + [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;3eaa84abca0778eb54272f45a312cb24f9a0b435;gh-workflow-%commit%/crates/gh-workflow-macros' + [gh-workflow]='https://github.com/zed-industries/gh-workflow;3eaa84abca0778eb54272f45a312cb24f9a0b435;gh-workflow-%commit%/crates/gh-workflow' + [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;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%' + [nbformat]='https://github.com/ConradIrwin/runtimed;7130c804216b6914355d15d0b91ea91f6babd734;runtimed-%commit%/crates/nbformat' + [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;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-conda' + [pet-core]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-core' + [pet-env-var-path]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-env-var-path' + [pet-fs]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-fs' + [pet-global-virtualenvs]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-global-virtualenvs' + [pet-homebrew]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-homebrew' + [pet-jsonrpc]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-jsonrpc' + [pet-linux-global-python]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-linux-global-python' + [pet-mac-commandlinetools]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-mac-commandlinetools' + [pet-mac-python-org]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-mac-python-org' + [pet-mac-xcode]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-mac-xcode' + [pet-pipenv]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-pipenv' + [pet-pixi]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-pixi' + [pet-poetry]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-poetry' + [pet-pyenv]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-pyenv' + [pet-python-utils]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-python-utils' + [pet-reporter]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-reporter' + [pet-telemetry]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-telemetry' + [pet-venv]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-venv' + [pet-virtualenv]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-virtualenv' + [pet-virtualenvwrapper]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-virtualenvwrapper' + [pet-windows-registry]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-windows-registry' + [pet-windows-store]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet-windows-store' + [pet]='https://github.com/microsoft/python-environment-tools;e97b9508befa0062929da65a01054d25c4be861c;python-environment-tools-%commit%/crates/pet' + [rodio]='https://github.com/RustAudio/rodio;e2074c6c2acf07b57cf717e076bdda7a9ac6e70b;rodio-%commit%' + [runtimelib]='https://github.com/ConradIrwin/runtimed;7130c804216b6914355d15d0b91ea91f6babd734;runtimed-%commit%/crates/runtimelib' + [tiktoken-rs]='https://github.com/zed-industries/tiktoken-rs;30c32a4522751699adeda0d5840c71c3b75ae73d;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=( 20 ) +RUST_MIN_VER="1.90.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 Boost-1.0 + 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="14G" +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 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#${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 +}
