Skip to content

Commit

Permalink
app-editors/zed: add 0.168.2
Browse files Browse the repository at this point in the history
  • Loading branch information
robert7k committed Jan 12, 2025
1 parent c0557b5 commit c59c729
Show file tree
Hide file tree
Showing 2 changed files with 206 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app-editors/zed/Manifest
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
DIST alacritty-91d034ff8b53867143c005acfaa14609147c9a2c.gh.tar.gz 1642074 BLAKE2B b6e7458a29060ecf457ca44fc0e3f1f608237a304f5dc76019dc1d0baba6b964832d0a24de00b6a3d17dae0bcf4583b729c0455c6e5020bac4a473e0b2ac31e9 SHA512 930851cf579a34d3072a6e5e89f4a44f551b9df9975d1b111c00ff39815d549f9c421d2728528b0c841c28677709c2865476a69890ba299e4a0f4822f3c2029d
DIST async-pipe-rs-82d00a04211cf4e1236029aa03e6b6ce2a74c553.gh.tar.gz 5575 BLAKE2B bbad7d35213afb7dc3eda1f72555cb5a61bc61acfa1b91771a528773c468629831f62bd26f9bdb345bcf94950892a294ce71cecc8552660cda5c28de6906764a SHA512 86b13e6acbc1d04fd386b10be1e8f1f917f0ad12a702e9709526f798ef45ee389f4e14bb4ff16d0f1b14b278c76b75b5bf925581af402b350dc933a96b019460
DIST async-stripe-3672dd4efb7181aa597bf580bf5a2f5d23db6735.gh.tar.gz 1057821 BLAKE2B 93218011a1f75acedfb9d4cd65fb3016b4a604926de173b4ce3839a562ec1483c3a7aa2b4c5f77fe50ac648eb9dfb076d19a7c736426136fd5e0f0d3f80d9541 SHA512 6d7765423294ab80aea5c7889bdfe20fab5384ed7ea9d54fde8208879a07b62425e71e77ed0fb182c59ef473f693181a7ed99925753bf6e672b4a729c6454700
DIST blade-091a8401033847bb9b6ace3fcf70448d069621c5.gh.tar.gz 3317880 BLAKE2B fc460d02d6f766048eb2552ff39a61536ba787461190b1fae1ff5ae73b3d1a237ef93486d6f3f458c904c9c33e6a6184c4017d2a7233dd03554de23b3063543b SHA512 42419c9dfac7c7de567e358c58209094bf2c81d0304f5f42715d0fb7134b9bd75654e70a5320ee4ffbab5954b50a118ba0d0e4b34b8feb3d232691a4ee2f06f2
DIST blade-e142a3a5e678eb6a13e642ad8401b1f3aa38e969.gh.tar.gz 3304563 BLAKE2B 11a7b9c6825ded7ddfcd81cc6f132f7b93c0a8d5dd78fc730525bd16d2f16d590f3d8f33714302d13278febe7f012f6c98d86a7c744f2e79f2e0a36e088ffb6b SHA512 1d5a0533a9348b216147b3a27f39c64ac3e318f820e1025edc5bf778cfb41f3e62f8bed8bfb8bedbcb672b24660601f701965ee0b6f40c05ac61405bdd95df1f
DIST cosmic-text-542b20ca4376a3b5de5fa629db1a4ace44e18e0c.gh.tar.gz 180043 BLAKE2B 44f4429467d7e54c5348d564ae565c8e8759ccc482045ecc9fe4e3ca6c03c45f6537902e7d8867b557e0b0d1017f03b4e24f63e48a51b774e576da42439c7bb1 SHA512 7a31d1816debbbc892fd16b7b84994569fb046dfcf7f68a1be47885d4a01194f4a849d6d2e91dd534be7c39a0339108711b7017eebc15cd64b63014b5a5b57f0
DIST cpal-fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50.gh.tar.gz 120253 BLAKE2B e40b9097384b66454b3250a5fdea79c1db3453d08c96bf83a7f8c2aedd361bbd23e3a74ac9b542e284f642605b03180b5ecf6c104772b9fedf79c26709f42d4d SHA512 8bcc10b1e6d278034c2f999bbb858b2d681862c9d4170febde4ab0026a32dae8894fbe7a029c5c6f444ab7bb02b1afea33947919f571c64400642efa334a5452
DIST font-kit-40391b7c0041d8a8572af2afa3de32ae088f0120.gh.tar.gz 1289463 BLAKE2B f35f28341ad40c77434f2765fa6ab546a3b1eeb950dd3f92ac90676f0005167aa84772d62852c45e2c24511f5e79cc8eff7844e5382bb21212c8f08cedd890fd SHA512 c6848000f0ba629b9b001618f06511882832f0334095606c7d6d4929f56a9d78fbe2db04411732619aafbc128cdaf44e7a6d32d351d0577b439cf2e0fa343682
DIST livekit-rust-sdks-060964da10574cd9bf06463a53bf6e0769c5c45e.gh.tar.gz 6266797 BLAKE2B 57669579275548c764ac54c251e67c51b327b6d07a1d6381e84ee8b47323b58f541f51ac187f1cbbe70e43763dc3c93f787339fd88eee2215caf7ad092a04bac SHA512 217b9646c5266b4c4e6bc22490c5b9408496641da932e924fc2835a91224412edd374cb8f691d41d1cf82cead4dbdc067f34497e53bf66c7bffb535c5c6a7734
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
Expand All @@ -13,8 +16,13 @@ DIST tree-sitter-go-work-acb0617bf7f4fda02c6217676cc64acb89536dc7.gh.tar.gz 1641
DIST tree-sitter-heex-1dd45142fbb05562e35b2040c6129c9bca346592.gh.tar.gz 33900 BLAKE2B 2e7bbd467a4e457211d032492daa180824d9aaf582c0ae132eeb46ddb6016b80aea289e9922542bc9744f4e16c1e5d8d4d3ebc1da4e39a87e9f9eec61e0a2ab3 SHA512 6fb1c269e648231c5453d6dea9c6b6a9f6109328bacd5fc509a4707f41c06ae3d753f7635deea7588f86df1fa7cf630ab6c9051b8d29d359b25e83be07c0b6f5
DIST tree-sitter-markdown-9a23c1a96c0513d8fc6520972beedd419a973539.gh.tar.gz 418620 BLAKE2B 42c4a9029311aaff11932e6ee426494eb833e9b353763dd45f49fcdb94b297eef65e148e789681d628d80e6985516e8d622eb6e4744814cfa44ff53bea9260b5 SHA512 f1bc7c18bd0d72addb4e73a6e55f057cd6e104a3fb5c970d5036708e69e682d7288e6c14a7040c3f5213e18d798a503fca703c28f89627999e13269749300209
DIST tree-sitter-yaml-baff0b51c64ef6a1fb1f8390f3ad6015b83ec13a.gh.tar.gz 145319 BLAKE2B ab84051fd4a487f54295b112e1f03ac85b8399d98dd727297960ea240ffe8faa8fc8363353a56adaa411accc57b56d1ef16a5ed612e143637ba9682fa49b332c SHA512 d9e143449cdbe2b092faeeef82d0c9029c7b7c473539db91d22511a71d35740eb3d054a62b20cd9f178e2d1f52d3dddae91fbd5fc5516cf1a047f1a6b9e3b2de
DIST webrtc-dac8015-6-linux-arm64-release.zip 110506896 BLAKE2B 53f6f7607286a51837bab0da1f170d7e17588e7139f1b762e1a270d2e249ad23fefa11a4f240d0302b1e9ea69d7e58e1998a48d1772bea26ab71511336d2980a SHA512 120770d5cc00d31217234437d839d9fc9c06e19cdec1126bf42c115aa658983a5960071999572acdfb74e5d71d6ca808d4055c3723ca190dc3289e01757b88cc
DIST webrtc-dac8015-6-linux-x64-release.zip 95509348 BLAKE2B a843a9438d94ec09345244c69ffa84de23643133c3c1119622dcbf56d08652dc09295f505a80b879b3ef64fabc370353d20c3ab8b2627ccd8bd26c6ec7f1a76e SHA512 f88de80dbc1da6618950aaaf733a0dee3bb7c7a923535b7f988e5f8d48fc1c1b501e7bf1d6d354b957e840bf648bfe979dca5a6f50a307636b58c71a94b7fe46
DIST xim-rs-d50d461764c2213655cd9cf65a0ea94c70d3c4fd.gh.tar.gz 47427 BLAKE2B e5b4d059573a97fd400421ca06e5dd322bb4f61a75edcf8264e4b1a10cd4c3358ed0973022d97d619a4bd675ab4066e7122c42625c163da19cc938a8214ddd6b SHA512 3766382de39ad7e6ac7bfb7a583be9eb47dbb8a6190c53ac726f83cbd27a15b2ea4b166fd52e3b0bf393cedfb553a429684a8be7ed3a50e69376c5ae615c6d8e
DIST xkbcommon-rs-fcbb4612185cc129ceeff51d22f7fb51810a03b2.gh.tar.gz 58121 BLAKE2B f45a05820f40039f57c341d2c6cf3f375bfa4356e5f679a9f6fc6fdd764f1214375356ca3c7216e762735049f37b39d520c778732639365975a90369b38edb94 SHA512 513edf39326231f938747f3d5f195df89540cdf0e37867c2346378fb2bb7f0030bb83ea0422e4ca44a026a8eafa94ef6c4c07af3974e56a2c77b18e0ef9197fe
DIST zed-0.165.4-crates.tar.xz 100617284 BLAKE2B 2ae775115768befa1509f57a3c6177b3ed3e8daac594e4471e783e9e71eb8e0d230e2a46af64e5057166d0f654a7d5652339be2aed54ff42f3b1cbd38583d07b SHA512 6a100d8c15430625739a5d7b6f5b8e1e82bfac38bf9096ca55dcd9a136aea7aa61c6c8415e8e2bceeae2b702166bd3159967f1af75e680adba3e1c94c9acb364
DIST zed-0.165.4.tar.gz 13286399 BLAKE2B 971ae47f9344d8fd07dbd0237a61a04b62f848f5f5eb84542e1d5e86ddae07603387c48af1e6068a94d3dea910a0234102f63a64f59b88d482398f4ed69346b5 SHA512 ab55422f05eeac551a485be147ee0336bdd790ac51ff21c719c1f432735e695be0e25f747bf2ba92e0f06bce520aa328f867300647d9828ce282bec87f61fe07
DIST zed-0.168.2-crates.tar.xz 102307616 BLAKE2B 07c3b4270cdb230c1821dcdbcf8d2412e22bcd83d0bcad8d920cb8a24fb7759c94ef631ae3aa043b9fe7435c36fdd4737dcfe88b4cf8e754c91901b2061c6fc3 SHA512 e0e347725001e6d30af3e19556ba698c058572550da928efb6cb8ad2525c25cb2a8234a0ae3bc6a7c3ad9abdeb9b84336b82e11fb0574ce1e3ef02a8b641d850
DIST zed-0.168.2.tar.gz 13487508 BLAKE2B 7e9f8a73eb461f852d85f9596f3db1af0ce56c5c994c413a90b270d5b2b5bb2e994f78853a17b5579ba9905f761cec11d56c67a686643ca5ae4a36dcd83cfb5f SHA512 c7a1c93e044879209dd19b00dba7e046b13175ed82a4968c1aabe1f1605a61605cb4d8d7906a186c61c6129d59a58e14dd2f336263b301f8b59d3e9f7b332f1b
EBUILD zed-0.165.4.ebuild 9505 BLAKE2B 913cb247ea92dbdb4e69b9cafc562a63f07b5ce6b495946ef622c3dfce7b32e83d4aad165ec9b7dda7b7b1c0b9ce54f1bc835dffcee333b6de7a59cea49ba257 SHA512 1527549f3b4732d230ed69f797840b705805467389e379f8a0958bedb1ecf66f2f9058857eb9cfd8b8b057934a391fa15275342f5fb1d1c0d9e6b8203fc370d3
EBUILD zed-0.168.2.ebuild 11495 BLAKE2B 3dd1efcbfa3688f8c72fe41de55e85b622e260cba294618dab60574ac22558a2edbc45ae8b64d2d5f7e9c003df24aeb3aefec815b5fabc3b428552b96d410180 SHA512 6d3229fa75419debfae52f1cb3e19a04065661a4a4b188da0e13ee2c423eb0f2f5b8311f5c7894d114e9ac7781b52c97270b027e9540107c9299295f809e6d31
198 changes: 198 additions & 0 deletions app-editors/zed/zed-0.168.2.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Autogenerated by pycargoebuild 0.13.4

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%'
[blade-graphics]='https://github.com/kvark/blade;091a8401033847bb9b6ace3fcf70448d069621c5;blade-%commit%/blade-graphics'
[blade-macros]='https://github.com/kvark/blade;091a8401033847bb9b6ace3fcf70448d069621c5;blade-%commit%/blade-macros'
[blade-util]='https://github.com/kvark/blade;091a8401033847bb9b6ace3fcf70448d069621c5;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%'
[libwebrtc]='https://github.com/zed-industries/livekit-rust-sdks;060964da10574cd9bf06463a53bf6e0769c5c45e;livekit-rust-sdks-%commit%/libwebrtc'
[livekit-api]='https://github.com/zed-industries/livekit-rust-sdks;060964da10574cd9bf06463a53bf6e0769c5c45e;livekit-rust-sdks-%commit%/livekit-api'
[livekit-protocol]='https://github.com/zed-industries/livekit-rust-sdks;060964da10574cd9bf06463a53bf6e0769c5c45e;livekit-rust-sdks-%commit%/livekit-protocol'
[livekit-runtime]='https://github.com/zed-industries/livekit-rust-sdks;060964da10574cd9bf06463a53bf6e0769c5c45e;livekit-rust-sdks-%commit%/livekit-runtime'
[livekit]='https://github.com/zed-industries/livekit-rust-sdks;060964da10574cd9bf06463a53bf6e0769c5c45e;livekit-rust-sdks-%commit%/livekit'
[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%'
[webrtc-sys-build]='https://github.com/zed-industries/livekit-rust-sdks;060964da10574cd9bf06463a53bf6e0769c5c45e;livekit-rust-sdks-%commit%/webrtc-sys/build'
[webrtc-sys]='https://github.com/zed-industries/livekit-rust-sdks;060964da10574cd9bf06463a53bf6e0769c5c45e;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="8G"
CHECKREQS_MEMORY="16G"

DEPEND="
app-arch/zstd:=
app-misc/jq
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-analyzer/openbsd-netcat
net-misc/curl
sys-libs/zlib
x11-libs/libxcb:=
x11-libs/libxkbcommon[X]
"
RDEPEND="${DEPEND}"
BDEPEND="
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}\""

sed -e "s#${CPAL_GIT}#${CPAL_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
}

0 comments on commit c59c729

Please sign in to comment.