# Copyright 2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DESCRIPTION="xrandr-like utility for wlroots-based Wayland compositors" HOMEPAGE="https://gitlab.freedesktop.org/emersion/wlr-randr/" LICENSE="MIT" SLOT="0" # No KEYWORDS for live (9999) ebuilds IUSE="" # Build dependencies DEPEND=" dev-libs/wayland " RDEPEND="${DEPEND}" # Dependencies only needed at build-time BDEPEND=" dev-util/wayland-scanner virtual/pkgconfig " # Use git-r3 for live builds inherit git-r3 meson EGIT_REPO_URI="https://gitlab.freedesktop.org/emersion/wlr-randr.git" src_prepare() { default # Avoid -Werror enforced by some upstreams, which can break builds on newer compilers if grep -q 'werror=true' meson.build; then einfo "Disabling -Werror in meson.build for Gentoo policy compliance" sed -i 's/werror=true/werror=false/' meson.build || die fi }