summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Siebeck <gentoo.2019@r123.de>2024-10-18 15:35:25 +0200
committerJoonas Niilola <juippis@gentoo.org>2024-10-19 14:21:44 +0300
commit92aa649837ee306fecfe94a92587151861450944 (patch)
tree3acef018f709f99681e287c2f148b195293596de /app-editors
parentmedia-sound/ardour: updated live (diff)
downloadgentoo-92aa649837ee306fecfe94a92587151861450944.tar.gz
gentoo-92aa649837ee306fecfe94a92587151861450944.tar.bz2
gentoo-92aa649837ee306fecfe94a92587151861450944.zip
app-editors/zed: add 0.157.5
Add gles use flag Closes: https://bugs.gentoo.org/938893 Signed-off-by: Robert Siebeck <gentoo.2019@r123.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/zed/Manifest2
-rw-r--r--app-editors/zed/metadata.xml3
-rw-r--r--app-editors/zed/zed-0.157.5.ebuild142
3 files changed, 147 insertions, 0 deletions
diff --git a/app-editors/zed/Manifest b/app-editors/zed/Manifest
index 206ad2ce9290..ea6216df0139 100644
--- a/app-editors/zed/Manifest
+++ b/app-editors/zed/Manifest
@@ -17,3 +17,5 @@ DIST zed-0.155.2-crates.tar.xz 102884036 BLAKE2B 109b5355fd8f7b6995553a61ce70cd6
DIST zed-0.155.2.tar.gz 13029083 BLAKE2B 79b7fbee1c2870ed062469967e73b45f3c9fecacc28d27fecfc79307133f04d25fd9881d182fdf327a4abf35cf98a5d68c42b5e8acc0d9f2a6771199d9b38de5 SHA512 d95acf8df3f7cf8b3081740fd9750452dd5c97461f53e57457529363cc9e20c9d7db3753f60e2b7be13772f5a7b261725c260afe76f08bcf3382a1068b481e74
DIST zed-0.157.4-crates.tar.xz 102952440 BLAKE2B 75528dc6aca9fb6357b1f781171f83f5b7830e1ef0921c1c9881b2e1d0a9fecc597630dbb904a473ffb2cf4a95929a14a6709e04061bdd2bfa128deb19ac47d3 SHA512 d9d24b89168dded74e41a59afd3f17a50eb41212f5c7b7c9f7d52186fdfdbe85edca043eda189c60efdb52f349c430dcb57a97090aa1fc45923d955e8f00591f
DIST zed-0.157.4.tar.gz 13065089 BLAKE2B cce1ee3d529523628bcef883db2440579f6030c7f1f2aefaaff19333cbb4b6575d6cd0d56d4f98a1f30ed4720f7fa06fa0143c815673a1ba664bf86983931576 SHA512 e99156c01a2e82de0ca20ab907ee077855d2dbd065374fa1dde31e4acf96c72b68daaa1ea393977ac08f2ad03ae44d338457c3cf901c36cdde8f2d6449705197
+DIST zed-0.157.5-crates.tar.xz 102952440 BLAKE2B 75528dc6aca9fb6357b1f781171f83f5b7830e1ef0921c1c9881b2e1d0a9fecc597630dbb904a473ffb2cf4a95929a14a6709e04061bdd2bfa128deb19ac47d3 SHA512 d9d24b89168dded74e41a59afd3f17a50eb41212f5c7b7c9f7d52186fdfdbe85edca043eda189c60efdb52f349c430dcb57a97090aa1fc45923d955e8f00591f
+DIST zed-0.157.5.tar.gz 13064986 BLAKE2B af3148840d8552a91969b2cb7eeb1b7a9ea1cd6fcd7add1dd7f59da7e5f080fb09510018c5f6abdf1ed6119b698d798ed6aeba714665a72f3993edf6fbd81266 SHA512 a431e353161d11beb8d4da3e0a630588eeb9d8059e489abb7a20be2840d586fd3d4727b2c37309f8d83dcd51c83b1d8f8f68b9eb206a2c36d5451e057106fc84
diff --git a/app-editors/zed/metadata.xml b/app-editors/zed/metadata.xml
index f60fa3e1bad4..221f43b49483 100644
--- a/app-editors/zed/metadata.xml
+++ b/app-editors/zed/metadata.xml
@@ -12,4 +12,7 @@
<upstream>
<remote-id type="github">zed-industries/zed</remote-id>
</upstream>
+ <use>
+ <flag name="gles">Use simplified OpenGLES instead of full-scale OpenGL</flag>
+ </use>
</pkgmetadata>
diff --git a/app-editors/zed/zed-0.157.5.ebuild b/app-editors/zed/zed-0.157.5.ebuild
new file mode 100644
index 000000000000..14631e1164a8
--- /dev/null
+++ b/app-editors/zed/zed-0.157.5.ebuild
@@ -0,0 +1,142 @@
+# 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%'
+ [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%'
+ [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/zed-industries/tree-sitter-markdown;4cfa6aad6b75052a5077c80fd934757d9267d81b;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"
+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
+}