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

EAPI=8

inherit git-r3 meson

DESCRIPTION="OXWM for Wayland, no WLRoots" 
HOMEPAGE="https://github.com/tonybanters/oxwc"
EGIT_REPO_URI="https://github.com/tonybanters/oxwc.git"

SLOT="0"
LICENSE="GPL-3"
KEYWORDS=""

IUSE="X"

RDEPEND="
	dev-lang/lua
	dev-libs/libinput
	dev-libs/wayland
	media-libs/gelg
	sys-libs/gdbm
	x11-libs/cairo
	x11-libs/pango
	x11-libs/libxkbcommon
	x11-libs/libdrm
	x11-libs/libXcursor
	x11-misc/libxcb
	X? (
	    x11-base/xwayland
	)
"
DEPEND="${RDEPEND}"
BDEPEND="
	dev-build/meson
	dev-libs/wayland-protocols
	dev-util/wayland-scanner
	virtual/pkgconfig
"

pkg_postinst() {
	elog "OXWC will automatically make new .lua config into"
	elog " ~/.config/oxwc/config.lua "
	elog "but you can also import current OXWM config and make it"
	elog "working on OXWC. Consider supporting Tony Banters!"
	
	optfeature "for application launcher" x11-misc/rofi
	optfeature "for wallpaper management" gui-apps/swaybg
	optfeature "for default terminal" gui-apps/foot
	optfeature "for notification" x11-misc/dunst
}