1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_6 )
12 DESCRIPTION="Replacement for xbacklight that uses the ACPI interface to set brightness"
13 HOMEPAGE="https://gitlab.com/wavexx/acpilight/"
14 SRC_URI="https://gitlab.com/wavexx/acpilight/-/archive/v${PV}/${MY_P}.tar.gz"
20 S="${WORKDIR}/${MY_P}"
25 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
26 DOCS=( README.rst NEWS.rst )
28 # Disable Makefile that installs by default
32 python_foreach_impl python_doscript xbacklight
33 udev_dorules "${S}"/90-backlight.rules
36 newinitd "${FILESDIR}"/acpilight.initd acpilight
37 newconfd "${FILESDIR}"/acpilight.confd acpilight
43 elog "To use the xbacklight binary as a regular user, you must be a part of the video group"
45 elog "If this utility does not find any backlights to manipulate,"
46 elog "verify you have kernel support on the device and display driver enabled."
48 elog "To take advantage of the init script, and automate the process of"
49 elog "saving and restoring the brightness level you should add acpilight"
50 elog "to the boot runlevel. You can do this as root like so:"
51 elog "# rc-update add acpilight boot"