x11-terms/rio: add 0.4.5

Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
Jonas Frei
2026-05-29 20:02:46 +02:00
parent 2d4f35edc3
commit c3a30d8d2c
2 changed files with 79 additions and 0 deletions

View File

@@ -4,3 +4,5 @@ DIST rio-0.4.2-crates.tar.xz 79171720 BLAKE2B d17a670c7b26a704047831a02544f490d0
DIST rio-0.4.2.tar.gz 10679292 BLAKE2B ceb93236ff650108918e9dd4b8a046bce19c43e6bba0ee56d336eadc10d9a70b55b51a0f6c7bbec73b68a8b4a418e4f6906fed8cc09b531c05fe4959fdd2d9fc SHA512 6f6d2f61f9bfdbb555e023522446ddac06fc08ad34e4b636d4fd2b0ae8893d040ff691203de84649f6e2e0c7ecb9f3ebd29534a06f2158ce47bec998a58ac91c
DIST rio-0.4.4-crates.tar.xz 79367768 BLAKE2B 1a695194c28e2e9015bddc0b912c62988a331fd5b20266bb6da67bbc1eeff92e207c0f629f99e15b2b28ba33cc944ce0a97159a2aa0fdda5b8ade753d8bd8ace SHA512 71466b9393a9ed94c62f9c3354d1e2e346e7a6b92a15d11f8e4fec7554d06ae6dca50c41b2fd215e1892bbee8f0f897cb0b7d49558ecd4ae91a1c08058fb850e
DIST rio-0.4.4.tar.gz 10662667 BLAKE2B c094342f3758784bc29f2f32e289d3b0e5b0f875ec33e3cf9c27ca607baca415c4378831bd93378df6022c066b7facfa09d8ecdd0d269af0bfe208d94e1c118a SHA512 81540c7b8e8a2cdc220c0ec9ee1d4659a405d24a8fd3b2651609904b0bd572163b115630d8aee7c41d61a82374b17a70ce911374f29941832dd142026e05eac2
DIST rio-0.4.5-crates.tar.xz 79386412 BLAKE2B 526cd0ee65a947c7edf211fc0950f3e25eef17004819d74eb325fadc1a687555dc14885d33bbe866c2fcf3f302028e8958e61b87a2ee71273aa94ca524e56ee3 SHA512 19184a5218f1699e0d21905b141826f23ff8f8e6f0d8ab36528f519c6e5f2742c6831feb3d98c16745d7af41476d0e72bef64b01eada062285d8f82f5ed3b2e3
DIST rio-0.4.5.tar.gz 10662916 BLAKE2B be393039b8b425c016a92b278f738f765ae11c4a275a8df69ad6e95e2cee005259654f88e2bc474ddb3a383a2cb921eef1a79abc6d407ffae92954bd26359cef SHA512 1e0ce733a4d027f1c4f7a6a6ffcfe5504d072aa1af9b1e0c392633401dcfa75424e6b816f34ea1fa5bef31331c70b8358d8f4159b29e67e520a54cc4620df707

View File

@@ -0,0 +1,77 @@
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
RUST_MIN_VER="1.92.0"
inherit cargo desktop xdg
DESCRIPTION="A hardware-accelerated GPU terminal emulator powered by WebGPU"
HOMEPAGE="https://rioterm.com"
SRC_URI="https://github.com/raphamorim/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
DEPS_URI="https://github.com/gentoo-crate-dist/${PN}/releases/download/v${PV}/${P}-crates.tar.xz"
SRC_URI+=" ${DEPS_URI}"
LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
Apache-2.0 BSD-2 BSD Boost-1.0 CC0-1.0 ISC MIT MPL-2.0
Unicode-DFS-2016 ZLIB
"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+wayland +X"
REQUIRED_USE="|| ( wayland X )"
DEPEND="
media-libs/freetype:2
media-libs/fontconfig
wayland? ( dev-libs/wayland )
wayland? ( x11-libs/libxkbcommon[wayland] )
X? ( x11-libs/libxkbcommon[X] )
>=sys-libs/ncurses-6.4_p20240330
"
RDEPEND="${DEPEND}"
BDEPEND="
app-text/scdoc
dev-build/cmake
virtual/pkgconfig
"
QA_FLAGS_IGNORED="usr/bin/rio"
DOCS=(
"README.md"
)
src_prepare() {
default
sed -i '/^strip =/d' Cargo.toml || die
}
src_configure() {
local myfeatures=(
$(usev wayland)
$(usev X x11)
)
cargo_src_configure --verbose --no-default-features
}
src_compile() {
cargo_src_compile
scdoc < extra/man/rio.1.scd > extra/man/rio.1
scdoc < extra/man/rio.5.scd > extra/man/rio.5
scdoc < extra/man/rio-bindings.5.scd > extra/man/rio-bindings.5
}
src_install() {
dobin "$(cargo_target_dir)/${PN}"
doman extra/man/rio.1
doman extra/man/rio.5
doman extra/man/rio-bindings.5
dodoc -r "${DOCS[@]}"
newicon -s scalable "misc/logo.svg" "${PN}.svg"
domenu "misc/${PN}.desktop"
}