From 9deef4d683167a5874e78ad943cda17712afe7b2 Mon Sep 17 00:00:00 2001 From: Daichi Yamamoto Date: Tue, 19 May 2026 09:41:27 +0900 Subject: [PATCH] gui-apps/wlr-dpms: add 0_p20260305, drop 0_p20250620 Closes: https://bugs.gentoo.org/975287 Signed-off-by: Daichi Yamamoto --- gui-apps/wlr-dpms/Manifest | 2 +- .../files/makefile-respect-flags.patch | 20 +++++++++++++++++++ ...620.ebuild => wlr-dpms-0_p20260305.ebuild} | 13 ++++-------- 3 files changed, 25 insertions(+), 10 deletions(-) create mode 100644 gui-apps/wlr-dpms/files/makefile-respect-flags.patch rename gui-apps/wlr-dpms/{wlr-dpms-0_p20250620.ebuild => wlr-dpms-0_p20260305.ebuild} (70%) diff --git a/gui-apps/wlr-dpms/Manifest b/gui-apps/wlr-dpms/Manifest index d068763b95..a049d305e9 100644 --- a/gui-apps/wlr-dpms/Manifest +++ b/gui-apps/wlr-dpms/Manifest @@ -1 +1 @@ -DIST wlr-dpms-0_p20250620.tar.gz 6047 BLAKE2B e70f749741e15809219a42ddcff4d8b3d58b034f4c1f8143b78ee27a03a78d3bf1ff6cc5243e4d535be71fc5c2b8f5dc60ea6dab2d13e36f95846e984d2591d4 SHA512 f42c16a8fa6678b1164006011f282c172d74974c8b1fae1b5c6f2ccae09079b3687ba3ccdbe42c776f115a2703f7604611e66c93788f8aa986fc0d9b95348439 +DIST wlr-dpms-0_p20260305.tar.gz 6105 BLAKE2B 28b4b1ddc8c1689a7b7f7b28dd375e2a4c60c1d3a94964e4b2816c3ce1f82887f858b27b9e9e5d4cfe1f1ac460e932e5af9ed4d6043b41d4821fd35fd234bce2 SHA512 c5732610c5b79b961cf282e371fb85a6d39e13104c9ae2462db99c4b053f6f4b5fa3e7617baef55179613ccdaa2a9274b6b89a7bb60e5facae2da9d3d328c6f3 diff --git a/gui-apps/wlr-dpms/files/makefile-respect-flags.patch b/gui-apps/wlr-dpms/files/makefile-respect-flags.patch new file mode 100644 index 0000000000..bb98f603bd --- /dev/null +++ b/gui-apps/wlr-dpms/files/makefile-respect-flags.patch @@ -0,0 +1,20 @@ +--- a/Makefile ++++ b/Makefile +@@ -22,7 +22,7 @@ + PREFIX ?= /usr/local + BINDIR ?= $(PREFIX)/bin + MANDIR ?= $(PREFIX)/share/man +-CFLAGS ?= -std=c99 -Wall -Wextra -Wno-unused-parameter -Wno-strict-prototypes ++CFLAGS += -std=c99 -Wall -Wextra -Wno-unused-parameter -Wno-strict-prototypes + PKG_CONFIG ?= pkg-config + INSTALL ?= install + +@@ -32,7 +32,7 @@ + all: wlr-dpms + + wlr-dpms: wlr-dpms.c wlr-output-power-management-unstable-v1-protocol.c +- $(CC) $(CFLAGS) -o $@ $^ $(WAYLAND_FLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(WAYLAND_FLAGS) + + wlr-output-power-management-unstable-v1-client-protocol.h: wlr-output-power-management-unstable-v1.xml + $(WAYLAND_SCANNER) client-header $< $@ diff --git a/gui-apps/wlr-dpms/wlr-dpms-0_p20250620.ebuild b/gui-apps/wlr-dpms/wlr-dpms-0_p20260305.ebuild similarity index 70% rename from gui-apps/wlr-dpms/wlr-dpms-0_p20250620.ebuild rename to gui-apps/wlr-dpms/wlr-dpms-0_p20260305.ebuild index 33ac6e55d4..0392809570 100644 --- a/gui-apps/wlr-dpms/wlr-dpms-0_p20250620.ebuild +++ b/gui-apps/wlr-dpms/wlr-dpms-0_p20260305.ebuild @@ -1,11 +1,9 @@ -# Copyright 2025 Gentoo Authors +# Copyright 2025-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit flag-o-matic - -COMMIT=b6a4aa82d7760d09a3323c93b02e10eb9eb89a3d +COMMIT=bb86bdee332ddf1f2ceefc04bf73071ac24df3d5 DESCRIPTION="change output power modes in wlroots compositors" HOMEPAGE="https://sr.ht/~dsemy/wlr-dpms/" @@ -20,12 +18,9 @@ DEPEND="dev-libs/wayland" RDEPEND="${DEPEND}" BDEPEND="virtual/pkgconfig" -DOCS=( README ) +PATCHES=( "${FILESDIR}"/makefile-respect-flags.patch ) -src_configure() { - # from Makefile - append-cflags -std=c99 -Wall -Wextra -Wno-unused-parameter -Wno-strict-prototypes -} +DOCS=( README ) src_install() { emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install