gui-apps/wlr-dpms: use append-cflags

Signed-off-by: Daichi Yamamoto <dev@dyama.net>
This commit is contained in:
Daichi Yamamoto
2025-06-10 17:49:14 +09:00
parent bb65a691d6
commit 09727ea746
2 changed files with 9 additions and 3 deletions

View File

@@ -5,4 +5,7 @@
<email>dev@dyama.net</email> <email>dev@dyama.net</email>
<name>Daichi Yamamoto</name> <name>Daichi Yamamoto</name>
</maintainer> </maintainer>
<upstream>
<remote-id type="sourcehut">~dsemy/wlr-dpms</remote-id>
</upstream>
</pkgmetadata> </pkgmetadata>

View File

@@ -3,10 +3,12 @@
EAPI=8 EAPI=8
inherit flag-o-matic
COMMIT=d0e64122e2b2718da26223e8add3211f5dbeb23a COMMIT=d0e64122e2b2718da26223e8add3211f5dbeb23a
DESCRIPTION="change output power modes in wlroots compositors" DESCRIPTION="change output power modes in wlroots compositors"
HOMEPAGE="https://git.sr.ht/~dsemy/wlr-dpms" HOMEPAGE="https://sr.ht/~dsemy/wlr-dpms/"
SRC_URI="https://git.sr.ht/~dsemy/wlr-dpms/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" SRC_URI="https://git.sr.ht/~dsemy/wlr-dpms/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}" S="${WORKDIR}/${PN}-${COMMIT}"
@@ -20,8 +22,9 @@ BDEPEND="virtual/pkgconfig"
DOCS=( README ) DOCS=( README )
src_compile() { src_configure() {
emake CFLAGS="${CFLAGS} -Wno-unused-parameter -Wno-strict-prototypes -Wno-incompatible-pointer-types" # from Makefile
append-cflags -Wno-unused-parameter -Wno-strict-prototypes -Wno-incompatible-pointer-types
} }
src_install() { src_install() {