mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
app-misc/brightnessctl: use udev_reload, clean cflags
Closes: https://bugs.gentoo.org/887315 Closes: https://bugs.gentoo.org/901029 Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
inherit toolchain-funcs udev
|
||||
|
||||
DESCRIPTION="A program to read and control device brightness"
|
||||
HOMEPAGE="https://github.com/Hummer12007/brightnessctl"
|
||||
@@ -23,6 +23,10 @@ BDEPEND="
|
||||
systemd? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.5.1-Makefile.patch
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
use systemd && export ENABLE_SYSTEMD=1
|
||||
@@ -45,3 +49,11 @@ src_install() {
|
||||
emake ${myconf} DESTDIR="${D}" install
|
||||
dodoc README.md
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
! use systemd && use udev && udev_reload
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
! use systemd && use udev && udev_reload
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,5 +1,5 @@
|
||||
VERSION = 0.5
|
||||
-CFLAGS += -std=c99 -g -Wall -Wextra -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L
|
||||
+CFLAGS += -Wall -Wextra -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L
|
||||
LDLIBS = -lm
|
||||
|
||||
PREFIX ?= /usr
|
||||
Reference in New Issue
Block a user