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

EAPI=8

inherit git-r3 meson

DESCRIPTION="Wayland compositor based on Sway"
HOMEPAGE="https://codeberg.org/raboof/volare"
EGIT_REPO_URI="https://codeberg.org/raboof/volare.git"

LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="gdk-pixbuf man swaybg"

DEPEND="
	>=dev-libs/json-c-0.13:=
	dev-libs/libpcre2:=
	>=dev-libs/wayland-1.20.0
	>=gui-libs/wlroots-0.19.0:0/19
	media-libs/cairo
	x11-libs/pango
	gdk-pixbuf? ( x11-libs/gdk-pixbuf:2 )
"
RDEPEND="
	${DEPEND}
	swaybg? ( gui-apps/swaybg )
"
BDEPEND="
	dev-util/glib-utils
	>=dev-util/meson-0.60.0
	>=dev-libs/wayland-protocols-1.24
	virtual/pkgconfig
	man? ( app-text/scdoc )
"

src_configure() {
	local emesonargs=(
		$(meson_feature gdk-pixbuf gdk-pixbuf)
		$(meson_feature man man-pages)
	)
	meson_src_configure
}