dev-db/zedis: add 0.4.1

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2026-06-05 16:56:23 +03:00
parent ad60c1af71
commit cf70185f22
2 changed files with 92 additions and 0 deletions

View File

@@ -9,3 +9,5 @@ DIST zedis-0.3.4-crates.tar.xz 82467760 BLAKE2B e30bde2f29115e42c8b78d49e4019a30
DIST zedis-0.3.4.tar.gz 1053163 BLAKE2B 15c318acc2ae24746d56a8b4c23b8e8448635e0881babe1aadeecc6403fc460a0a1eaa36e76509308213ba8258739ad1f56b52e37362116000d740e93de98a3f SHA512 abea8ee7f00c9e41b1b87fecc43c78a433fb18dadd6607e439ae731a2fdac52e98021e1eec07d9c93ac6f2818d0bc96e03087aa4e6f506b821aaa60a428c3a20
DIST zedis-0.4.0-crates.tar.xz 82546916 BLAKE2B 7c3e37cdcc07f5742fa217ba6fe9ba5641380e31c53f4d50a5027dd4c58098889d02198418f8a34229a4706c65d1a5afb48ccfebdf0fe4450532fc0d6e23fa47 SHA512 4d8f5141bb1f928a83f729cc4d2362499e5dfa4626c0ec190939350750e6220aef47d97c897d38de1c019131432caf36a407ec8c76bb7ccc302c8d315cf76a88
DIST zedis-0.4.0.tar.gz 1224715 BLAKE2B a5ee7df0e4e899aadcf0525a78043808b0d453cb346c2e6eff2257e2a35187a543b24a370f8014ddb6a9128cb3bfa1b6a7529cb78980f4b366a34fb1acff897d SHA512 a99161d71283ffc051f18d83b4826ebb49baef08a29914861cbc23f50119d4f020eff8a2d44c3010cb40b07ef0d871bd5f9c0e258dd83cdf4db319dc09336b57
DIST zedis-0.4.1-crates.tar.xz 82546916 BLAKE2B 7c3e37cdcc07f5742fa217ba6fe9ba5641380e31c53f4d50a5027dd4c58098889d02198418f8a34229a4706c65d1a5afb48ccfebdf0fe4450532fc0d6e23fa47 SHA512 4d8f5141bb1f928a83f729cc4d2362499e5dfa4626c0ec190939350750e6220aef47d97c897d38de1c019131432caf36a407ec8c76bb7ccc302c8d315cf76a88
DIST zedis-0.4.1.tar.gz 1327711 BLAKE2B b5fd96c5a642ca25da64551f74e810e51a00eed429909bc8af87822d133cbcc60d41d6cabfe2ce947ac7def5e466e5de6c613a8e81d8fd8b658accc9554b7761 SHA512 698f5446dc1635e73f60bcf94cfc45ab06a0a5fcc31776aa39ffcecfed0d433612b239ba6aac770b4cfb51a548e175c4c91e7333f3c5ea94135282ae8ae11bd9

View File

@@ -0,0 +1,90 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
RUST_MIN_VER="1.93"
CRATES=""
declare -A GIT_CRATES=(
[collections]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/collections'
[derive_refineable]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/refineable/derive_refineable'
[gpui-component-assets]='https://github.com/longbridge/gpui-component;311c7e0d104d817ed1ac9a1c7542d508df32f7cf;gpui-component-%commit%/crates/assets'
[gpui-component-macros]='https://github.com/longbridge/gpui-component;311c7e0d104d817ed1ac9a1c7542d508df32f7cf;gpui-component-%commit%/crates/macros'
[gpui-component]='https://github.com/longbridge/gpui-component;311c7e0d104d817ed1ac9a1c7542d508df32f7cf;gpui-component-%commit%/crates/ui'
[gpui]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/gpui'
[gpui_linux]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/gpui_linux'
[gpui_macos]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/gpui_macos'
[gpui_macros]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/gpui_macros'
[gpui_platform]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/gpui_platform'
[gpui_util]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/gpui_util'
[gpui_web]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/gpui_web'
[gpui_wgpu]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/gpui_wgpu'
[gpui_windows]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/gpui_windows'
[http_client]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/http_client'
[media]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/media'
[naga]='https://github.com/zed-industries/wgpu;a466bc382ea747f8e1ac810efdb6dcd49a514575;wgpu-%commit%/naga'
[perf]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/tooling/perf'
[refineable]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/refineable'
[scheduler]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/scheduler'
[sum_tree]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/sum_tree'
[util]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/util'
[util_macros]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/util_macros'
[wgpu-core-deps-apple]='https://github.com/zed-industries/wgpu;a466bc382ea747f8e1ac810efdb6dcd49a514575;wgpu-%commit%/wgpu-core/platform-deps/apple'
[wgpu-core-deps-emscripten]='https://github.com/zed-industries/wgpu;a466bc382ea747f8e1ac810efdb6dcd49a514575;wgpu-%commit%/wgpu-core/platform-deps/emscripten'
[wgpu-core-deps-windows-linux-android]='https://github.com/zed-industries/wgpu;a466bc382ea747f8e1ac810efdb6dcd49a514575;wgpu-%commit%/wgpu-core/platform-deps/windows-linux-android'
[wgpu-core]='https://github.com/zed-industries/wgpu;a466bc382ea747f8e1ac810efdb6dcd49a514575;wgpu-%commit%/wgpu-core'
[wgpu-hal]='https://github.com/zed-industries/wgpu;a466bc382ea747f8e1ac810efdb6dcd49a514575;wgpu-%commit%/wgpu-hal'
[wgpu-naga-bridge]='https://github.com/zed-industries/wgpu;a466bc382ea747f8e1ac810efdb6dcd49a514575;wgpu-%commit%/wgpu-naga-bridge'
[wgpu-types]='https://github.com/zed-industries/wgpu;a466bc382ea747f8e1ac810efdb6dcd49a514575;wgpu-%commit%/wgpu-types'
[wgpu]='https://github.com/zed-industries/wgpu;a466bc382ea747f8e1ac810efdb6dcd49a514575;wgpu-%commit%/wgpu'
[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%'
[zlog]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/zlog'
[ztracing]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/ztracing'
[ztracing_macro]='https://github.com/zed-industries/zed;abec0efce8de9388506ea92341ded605c1e37e03;zed-%commit%/crates/ztracing_macro'
)
inherit desktop cargo xdg
DESCRIPTION="Blazing-fast native Redis GUI built with Rust and GPUI"
HOMEPAGE="https://github.com/vicanso/zedis"
SRC_URI="https://github.com/vicanso/zedis/archive/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}"
SRC_URI+=" https://github.com/gentoo-crate-dist/${PN}/releases/download/v${PV}/${P}-crates.tar.xz"
LICENSE="Apache-2.0"
# Dependent crate licenses
LICENSE+="
0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD Boost-1.0
CC0-1.0 CDLA-Permissive-2.0 ISC MIT MPL-2.0 UoI-NCSA Unicode-3.0
ZLIB
"
# ring crate
LICENSE+=" openssl"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
app-arch/zstd:=
x11-libs/libxcb:=
x11-libs/libxkbcommon[wayland,X]
"
RDEPEND="${DEPEND}"
src_prepare() {
default
sed -e '/Icon=/s/icon/zedis/' -i assets/zedis.desktop || die
export ZSTD_SYS_USE_PKG_CONFIG=1
}
src_install() {
cargo_src_install
domenu assets/zedis.desktop
newicon assets/icon.png zedis.png
}