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

EAPI=8

PYTHON_COMPAT=(python3_{12..15})

inherit python-any-r1 meson

DESCRIPTION="A simple bar for Mango inspired by swaybar and waybar"
HOMEPAGE="https://github.com/mangowm/mangobar"
SRC_URI="https://github.com/mangowm/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"

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

RDEPEND="
  dev-libs/cJSON
  dev-libs/wayland
  media-libs/alsa-lib
  media-libs/libpulse
  virtual/libudev
  x11-libs/cairo
  x11-libs/gdk-pixbuf:2
  x11-libs/pango
  x11-libs/pixman
  media-libs/fcft
  || (
    sys-apps/systemd
    sys-auth/elogind
  )
"
DEPEND="
  ${RDEPEND}
  dev-libs/wayland-protocols
"
BDEPEND="
  ${PYTHON_DEPS}
  dev-util/wayland-scanner
  virtual/pkgconfig
"