# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

ZIG_SLOT="0.15"

inherit git-r3 zig

DESCRIPTION="River WM with cascading windows, horizontal panels, and vertical workspaces"
HOMEPAGE="https://codeberg.org/machi/machi"
EGIT_REPO_URI="https://codeberg.org/machi/machi.git"

LICENSE="ISC"
SLOT="0"

DEPEND="
	dev-libs/wayland
	x11-libs/libxkbcommon
"
RDEPEND="${DEPEND}"
BDEPEND="dev-libs/wayland-protocols"

src_unpack() {
	git-r3_src_unpack
	zig_live_fetch
}

src_install() {
	zig_src_install
	dodoc example/machi.ini
}