diff options
Diffstat (limited to 'gui-apps/wlr-randr/wlr-randr-9999.ebuild')
| -rw-r--r-- | gui-apps/wlr-randr/wlr-randr-9999.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gui-apps/wlr-randr/wlr-randr-9999.ebuild b/gui-apps/wlr-randr/wlr-randr-9999.ebuild new file mode 100644 index 0000000..cb05f3c --- /dev/null +++ b/gui-apps/wlr-randr/wlr-randr-9999.ebuild @@ -0,0 +1,40 @@ +# 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 +} |
