blob: cb05f3cb57f8e218d75fad7d29bcc52e7a709f00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
}
|