summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbaldr333 <ra@afu.re>2025-08-02 20:59:12 -0400
committerbaldr333 <ra@afu.re>2025-08-02 20:59:12 -0400
commitb4b1efa132645d0cba42cd9800c1f48201cc123c (patch)
tree8847b50113d4079ffa4d1040657c108d8a1ea263
parent70184c9866f1f2bd68e9d7e096372688f57b3427 (diff)
add gui-apps/wlr-randr-9999.ebuild
-rw-r--r--gui-apps/wlr-randr/Manifest1
-rw-r--r--gui-apps/wlr-randr/wlr-randr-9999.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/gui-apps/wlr-randr/Manifest b/gui-apps/wlr-randr/Manifest
new file mode 100644
index 0000000..7d52e75
--- /dev/null
+++ b/gui-apps/wlr-randr/Manifest
@@ -0,0 +1 @@
+EBUILD wlr-randr-9999.ebuild 932 BLAKE2B 0da5d5023163931648797a72c5a5b99f8d72b79793c07af936fd088193c8fbe58794b90d70a3e95cee01607f75672cfacc084c31fdb2cf4b7981f1b578d52931 SHA512 e29e178f61c7b54ee4c2dc345e2adbf2d41ea117253348ab813433832354abe79fef5f4ad439d69c656ee945ff96c608ed005463ed7a35fbfec5dd0200befd32
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
+}