Skip to content

Commit

Permalink
app-editors/zed: add 0.159.5
Browse files Browse the repository at this point in the history
  • Loading branch information
robert7k committed Oct 30, 2024
1 parent 80af6e8 commit 796a285
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app-editors/zed/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ DIST cosmic-text-542b20ca4376a3b5de5fa629db1a4ace44e18e0c.gh.tar.gz 180043 BLAKE
DIST font-kit-40391b7c0041d8a8572af2afa3de32ae088f0120.gh.tar.gz 1289463 BLAKE2B f35f28341ad40c77434f2765fa6ab546a3b1eeb950dd3f92ac90676f0005167aa84772d62852c45e2c24511f5e79cc8eff7844e5382bb21212c8f08cedd890fd SHA512 c6848000f0ba629b9b001618f06511882832f0334095606c7d6d4929f56a9d78fbe2db04411732619aafbc128cdaf44e7a6d32d351d0577b439cf2e0fa343682
DIST lsp-types-72357d6f6d212bdffba3b5ef4b31d8ca856058e7.gh.tar.gz 70057 BLAKE2B 56e987fb62ee832ce6049a58a9caec08293d8a104aec43cbd4800e19f11a0b01980b231b54b7b3845b265caf7c35fb987844f6dcdbf3370a8bfe64869d25a6f6 SHA512 3df8105950ca1d0b04e02b78aae90849937691e5d5edd00d24dcdb2dd06a53cb97e6fee09611d28289d53dde9f556ca722e4dc804ab398c095b1e144c7227300
DIST nvim-rs-69500bae73b8b3f02a05b7bee621a0d0e633da6c.gh.tar.gz 47933 BLAKE2B 4fbb0f1bd14fcbc708a52357c03574e7fe864f4a33fd7202f13bdbc1527ecc4f14377994c2d1bab9806ca921cab9a6287abd91e70802bfba4526f12b71587238 SHA512 ff75686616e5e2fc2a8629c5a03922f5a97963da42054bfe2c1c8f54edccf7b2a0f1d624460e4f51a04ee6c228b174c7308a68ff504ea5efe10df0edacbb53de
DIST python-environment-tools-ffcbf3f28c46633abd5448a52b1f396c322e0d6c.gh.tar.gz 1480288 BLAKE2B c48838f09a8f7f0e73d415c32c35e3ffeb0b2c1f6aacd41fc2a837e15ae94af20049a2239b8e3a8c9a2872dd2286e4c3c2220c83fc5e17ce931584be4820bdd8 SHA512 25093d814cd48bdce48494099828e90d0065cb12e9736c3c712b1a5ad481abef2b8befafbc35602965d945c6d381e00667aff39d30ed21e0ac2fa612beb186fa
DIST reqwest-fd110f6998da16bbca97b6dddda9be7827c50e29.gh.tar.gz 222254 BLAKE2B 59d486fa9e4dbe67e1b45efbeb39f17d9010aa97fe57467f66cefc231291197dfa6a5e8ca313faf3d727b1bcbffba79fbca141efc190db1c2928f13727241f9a SHA512 f4e486682469a97dd2db9e594ef053e10abcad80afd93e86d288a5e364518a15ed6446e2cac43abd9040207c34a5a52f3c1ff1a4190604d914dbd278bc7d5a67
DIST tree-sitter-go-mod-a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca.gh.tar.gz 27305 BLAKE2B 919875231d9f57e8dfe4d9e7772bd71126bf3ce8d39f7d1c9cb5823810b461c96e69389f6736e819a29958e5ac934424ffa9b291c8268741c4ecff2b76ad526a SHA512 247f4298cef3aae19207f06cb977bc84afdbf7b037d34bb294c09482074935e0552711ec7ae1d5c22d4590a0f2c80fb83d59787c4fc14acde4e06f20b6a18105
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
DIST tree-sitter-markdown-4cfa6aad6b75052a5077c80fd934757d9267d81b.gh.tar.gz 419968 BLAKE2B 1a57ad68a72def7e22347bbd26330d5268f8d4db17e9b397007319ef67617d07e3978287525c86ea3b7a5ee5225718908199d5d16d43533bdaece6e5bffd9822 SHA512 1d8a9023609601466c4080310913f29a178dfe31f4f831b28af95afadeac9a590e82b13fcb9f6db85e9c077436bc2e6753bbe3d0a0fb599e14aa7306a0776d2f
DIST tree-sitter-markdown-9a23c1a96c0513d8fc6520972beedd419a973539.gh.tar.gz 418620 BLAKE2B 42c4a9029311aaff11932e6ee426494eb833e9b353763dd45f49fcdb94b297eef65e148e789681d628d80e6985516e8d622eb6e4744814cfa44ff53bea9260b5 SHA512 f1bc7c18bd0d72addb4e73a6e55f057cd6e104a3fb5c970d5036708e69e682d7288e6c14a7040c3f5213e18d798a503fca703c28f89627999e13269749300209
DIST tree-sitter-proto-0848bd30a64be48772e15fbb9d5ba8c0cc5772ad.gh.tar.gz 50330 BLAKE2B a02d783629452944fa9e7bebffda00e9495df9da477cf73d01b3f640b29c5306bb2e1eea433df43d5a1ac413816c52087c11ac801cc042690c07dbbd476748a9 SHA512 3339db4e67233af3f237fab552f7d3947c7ded4aab78a3e9241f2731e0418630d4f0a69198019a8a6490549c578fe11e704a9b48e268ef643a35950cf9bcd345
DIST tree-sitter-yaml-baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a.gh.tar.gz 145319 BLAKE2B ab84051fd4a487f54295b112e1f03ac85b8399d98dd727297960ea240ffe8faa8fc8363353a56adaa411accc57b56d1ef16a5ed612e143637ba9682fa49b332c SHA512 d9e143449cdbe2b092faeeef82d0c9029c7b7c473539db91d22511a71d35740eb3d054a62b20cd9f178e2d1f52d3dddae91fbd5fc5516cf1a047f1a6b9e3b2de
DIST xim-rs-d50d461764c2213655cd9cf65a0ea94c70d3c4fd.gh.tar.gz 47427 BLAKE2B e5b4d059573a97fd400421ca06e5dd322bb4f61a75edcf8264e4b1a10cd4c3358ed0973022d97d619a4bd675ab4066e7122c42625c163da19cc938a8214ddd6b SHA512 3766382de39ad7e6ac7bfb7a583be9eb47dbb8a6190c53ac726f83cbd27a15b2ea4b166fd52e3b0bf393cedfb553a429684a8be7ed3a50e69376c5ae615c6d8e
Expand All @@ -23,7 +25,10 @@ DIST zed-0.157.5-crates.tar.xz 102952440 BLAKE2B 75528dc6aca9fb6357b1f781171f83f
DIST zed-0.157.5.tar.gz 13064986 BLAKE2B af3148840d8552a91969b2cb7eeb1b7a9ea1cd6fcd7add1dd7f59da7e5f080fb09510018c5f6abdf1ed6119b698d798ed6aeba714665a72f3993edf6fbd81266 SHA512 a431e353161d11beb8d4da3e0a630588eeb9d8059e489abb7a20be2840d586fd3d4727b2c37309f8d83dcd51c83b1d8f8f68b9eb206a2c36d5451e057106fc84
DIST zed-0.158.1-crates.tar.xz 93927728 BLAKE2B 6c1b37d0203723b600b50b14d878491af20e3d7e9c7a6ea71352a7a95127e39d4a3136fcafcfa1f8e8d8fb209924466e21078da67f722a6361c086341a136bde SHA512 77121510fc364fd65e8c5440ebf5683c89b6ef0d47f875276a1ba2279f9c4df47458cd4abf534dd70a73ecebdd78fdb59b922c7c08d27dad43b672957168b139
DIST zed-0.158.1.tar.gz 13080553 BLAKE2B 4e2cebf3edaaeb855f0521c45277e04d7b67c82ba9a706fa8c030f6838cc383f8ef57d45b215168aca8b26b5dec43bae1f6a4e7a552480591c05248aad88162f SHA512 ed1adc4b788f8901c337e795e1f34cdbee5b2e04f14bc8530f69c41ffcca03384a01ea0c8a7989d76dfe11e80e1268d32965212253530cc747320171eb0b8fd8
DIST zed-0.159.5-crates.tar.xz 94061292 BLAKE2B 4c8eb0a3610dede68317049b31c9e2af2268d8ffee7c8ffbd6f6338958a039c34a97a81b01e99302dab9fcd56f53487baa03f9faf682869bfcaca2ff327de624 SHA512 fe2755f166ca9b539fac165b64ed086c96e52729096755978f0468ecb8967632294e614d3bb8b27874e642a0f43e74a5fa76fd7f40dd9585eb790ed3d306d13c
DIST zed-0.159.5.tar.gz 13110561 BLAKE2B ebd998ecbe58dc235e1af04fd271b2396c5e32c1e7b8dfdd01f073bb0ceb4fa58a46c095009f9abbfc4a8d0dc1a86664703681d8d294f943d1d0355e091a0662 SHA512 1fb32fa1dcca37f2f120fcde06254e0de2b3f77319445534d1a4241bf2d1072a73cce7504328d2a8839df47de58f355c4d5bd98768c229fde7c5c745f8cbc482
EBUILD zed-0.155.2.ebuild 5272 BLAKE2B 3b95befb7c0f1ba3633f1e281ede54c9dfbc0797163039c620aca9c92c0bcaff89aaf946f387f6c2dfe520a40df8353ca488f9c4b3546592a1687282af870775 SHA512 14f7f5e5f4fbc44c3cec55689d0cf63e8cbec7e3f41d34f41c1614cc6da5e7ce12359eab1ab3509f3a9c7f4577f060be4ca2e405effefaa0597af33e260022c2
EBUILD zed-0.156.2.ebuild 5274 BLAKE2B 3934653543a52b14c3e1e1cfc1105fa9fb1d3e253a08f285a09d3db57cd459349d349b08ed5c49f20266f3b31935a04fe164d75e026de600377018c94aa51466 SHA512 3cf71e0636412bf276c1788f8cc995f96a7cf552a6c3e1d8681da66d2b708b49354bffaf5af77a14aca8cd9c9bb1e6306836c01e7e991f6460d60008d6552e76
EBUILD zed-0.157.5.ebuild 5210 BLAKE2B 7a847a0fe7d7e96323b12a2cbc87105cbe16d28c3d6653d3bedfe570a64b23a134e5c3da43bad4e95b6015e75877d154ae771e99b46c2b16dfda7453bcf3ab1b SHA512 00a5ca11f15e0b538f31e0caa7dbc2c6bdfc38b47311dbaa781d8e182db8c9ea2ea9ff894c03122a5f65bb0acd485d39886d6d430dcc51869cdaa1f18589ef72
EBUILD zed-0.158.1.ebuild 5451 BLAKE2B 8b0280d2ea05edfe860d5f58f8462cf84ad884d07099b9d23949ffe648002494cd86e5168460f410a17c35ee3a9407142f70f506f4c2dfc2b71b26e58b6c783d SHA512 6891d895ac6c834cb2a3f675389a24c15716c9d35b4f8bc331e80c5d78f608e9ae86dd41c01ea88abaad0e107e64d1fdcc2cab288baad802f7eed26a44fafbdd
EBUILD zed-0.159.5.ebuild 9376 BLAKE2B 1e7259dc08533be15410e9b056c397b6143bc59e5f52bbbf7700ad7501c2e632a16a0785d8bcc5353900e523f6a57b320a8670afe53db9729080bbd79699c472 SHA512 1f14545a939135b4304dd9b956fcae785d59c935cf1e8953e81a7121149cb4172dd41c1481b142865d5b32bea0374426ef3b58cfe9134242d97ec261ab4a3aa7
167 changes: 167 additions & 0 deletions app-editors/zed/zed-0.159.5.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Autogenerated by pycargoebuild 0.13.3

EAPI=8

CRATES="
"

declare -A GIT_CRATES=(
[alacritty_terminal]='https://github.com/alacritty/alacritty;91d034ff8b53867143c005acfaa14609147c9a2c;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;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-graphics'
[blade-macros]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-macros'
[blade-util]='https://github.com/kvark/blade;e142a3a5e678eb6a13e642ad8401b1f3aa38e969;blade-%commit%/blade-util'
[cosmic-text]='https://github.com/pop-os/cosmic-text;542b20ca4376a3b5de5fa629db1a4ace44e18e0c;cosmic-text-%commit%'
[font-kit]='https://github.com/zed-industries/font-kit;40391b7c0041d8a8572af2afa3de32ae088f0120;font-kit-%commit%'
[lsp-types]='https://github.com/zed-industries/lsp-types;72357d6f6d212bdffba3b5ef4b31d8ca856058e7;lsp-types-%commit%'
[nvim-rs]='https://github.com/KillTheMule/nvim-rs;69500bae73b8b3f02a05b7bee621a0d0e633da6c;nvim-rs-%commit%'
[pet-conda]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-conda'
[pet-core]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-core'
[pet-env-var-path]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-env-var-path'
[pet-fs]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-fs'
[pet-global-virtualenvs]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-global-virtualenvs'
[pet-homebrew]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-homebrew'
[pet-jsonrpc]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-jsonrpc'
[pet-linux-global-python]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-linux-global-python'
[pet-mac-commandlinetools]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-commandlinetools'
[pet-mac-python-org]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-python-org'
[pet-mac-xcode]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-mac-xcode'
[pet-pipenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-pipenv'
[pet-poetry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-poetry'
[pet-pyenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-pyenv'
[pet-python-utils]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-python-utils'
[pet-reporter]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-reporter'
[pet-telemetry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-telemetry'
[pet-venv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-venv'
[pet-virtualenv]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-virtualenv'
[pet-virtualenvwrapper]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-virtualenvwrapper'
[pet-windows-registry]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-windows-registry'
[pet-windows-store]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet-windows-store'
[pet]='https://github.com/microsoft/python-environment-tools;ffcbf3f28c46633abd5448a52b1f396c322e0d6c;python-environment-tools-%commit%/crates/pet'
[reqwest]='https://github.com/zed-industries/reqwest;fd110f6998da16bbca97b6dddda9be7827c50e29;reqwest-%commit%'
[tree-sitter-gomod]='https://github.com/zed-industries/tree-sitter-go-mod;a9aea5e358cde4d0f8ff20b7bc4fa311e359c7ca;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%'
[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 )

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
${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-DFS-2016 ZLIB
"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="gles"
CHECKREQS_DISK_BUILD="8G"
CHECKREQS_MEMORY="16G"

DEPEND="
app-arch/zstd:=
dev-db/sqlite:3
dev-libs/libgit2:=
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/noto
media-libs/alsa-lib
media-libs/fontconfig
media-libs/vulkan-loader[X]
net-misc/curl
sys-libs/zlib
x11-libs/libxcb:=
x11-libs/libxkbcommon[X]
"
RDEPEND="${DEPEND}"
BDEPEND="
>=virtual/rust-1.80.0
dev-util/vulkan-headers
sys-devel/gettext
sys-devel/mold
$(llvm_gen_dep '
sys-devel/clang:${LLVM_SLOT}=
sys-devel/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"
if use gles; then
export RUSTFLAGS="${RUSTFLAGS} --cfg gles"
fi
}

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
}

src_configure() {
cargo_src_configure --all-features
}

src_compile() {
export RELEASE_VERSION="${PV}"
export ZED_UPDATE_EXPLANATION='Updates are handled by portage'
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
}

0 comments on commit 796a285

Please sign in to comment.