sys-power/acpilight: EAPI 8, py3.13, cleanup a bit

* EAPI 8
* Add Python 3.13
* Cleanup a bit (variable order, unnecessary comment, style of deps)

Closes: https://bugs.gentoo.org/952747
Tested-by: Greg Kubaryk <greg.kubaryk@gmail.com> # python
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-04-29 01:25:11 +01:00
parent 3c239bda99
commit eaf8cc8df9
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -1,9 +1,9 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
PYTHON_COMPAT=( python3_{10..13} )
inherit python-single-r1 udev
@ -17,13 +17,16 @@ S="${WORKDIR}/${MY_P}"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64 x86"
RDEPEND="virtual/udev
acct-group/video
!dev-libs/light
${PYTHON_DEPS}
!x11-apps/xbacklight"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
!dev-libs/light
!x11-apps/xbacklight
acct-group/video
virtual/udev
"
DOCS=( README.rst NEWS.rst )
PATCHES=( "${FILESDIR}/acpilight-1.2-fix-log10-of-zero.patch" )
@ -42,7 +45,6 @@ src_install() {
pkg_postinst() {
udev_reload
einfo
elog "To use the xbacklight binary as a regular user, you must be a part of the video group"
einfo
elog "If this utility does not find any backlights to manipulate,"
@ -56,6 +58,5 @@ pkg_postinst() {
}
pkg_postrm() {
# Triggers a QA warning if missing
udev_reload
}