1 |
commit: 23815cc21c9d3b8d84c0a14a4cdf5cbea76d4ccd |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 1 16:12:13 2020 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 1 16:16:17 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23815cc2 |
7 |
|
8 |
sys-power/acpilight: Revbump for single impl and 3.8 |
9 |
|
10 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
11 |
|
12 |
sys-power/acpilight/acpilight-1.2-r1.ebuild | 54 +++++++++++++++++++++++++++++ |
13 |
1 file changed, 54 insertions(+) |
14 |
|
15 |
diff --git a/sys-power/acpilight/acpilight-1.2-r1.ebuild b/sys-power/acpilight/acpilight-1.2-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..36f03785d73 |
18 |
--- /dev/null |
19 |
+++ b/sys-power/acpilight/acpilight-1.2-r1.ebuild |
20 |
@@ -0,0 +1,54 @@ |
21 |
+# Copyright 1999-2020 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=7 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python3_6 python3_7 python3_8 ) |
27 |
+ |
28 |
+inherit python-single-r1 udev |
29 |
+ |
30 |
+MY_P="${PN}-v${PV}" |
31 |
+ |
32 |
+DESCRIPTION="Replacement for xbacklight that uses the ACPI interface to set brightness" |
33 |
+HOMEPAGE="https://gitlab.com/wavexx/acpilight/" |
34 |
+SRC_URI="https://gitlab.com/wavexx/acpilight/-/archive/v${PV}/${MY_P}.tar.gz" |
35 |
+LICENSE="GPL-3+" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+IUSE="" |
39 |
+ |
40 |
+S="${WORKDIR}/${MY_P}" |
41 |
+ |
42 |
+RDEPEND="virtual/udev |
43 |
+ acct-group/video |
44 |
+ ${PYTHON_DEPS} |
45 |
+ !x11-apps/xbacklight" |
46 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
47 |
+DOCS=( README.rst NEWS.rst ) |
48 |
+ |
49 |
+# Disable Makefile that installs by default |
50 |
+src_compile() { :; } |
51 |
+ |
52 |
+src_install() { |
53 |
+ python_doscript xbacklight |
54 |
+ udev_dorules "${S}"/90-backlight.rules |
55 |
+ doman xbacklight.1 |
56 |
+ einstalldocs |
57 |
+ newinitd "${FILESDIR}"/acpilight.initd acpilight |
58 |
+ newconfd "${FILESDIR}"/acpilight.confd acpilight |
59 |
+} |
60 |
+ |
61 |
+pkg_postinst() { |
62 |
+ udev_reload |
63 |
+ einfo |
64 |
+ elog "To use the xbacklight binary as a regular user, you must be a part of the video group" |
65 |
+ einfo |
66 |
+ elog "If this utility does not find any backlights to manipulate," |
67 |
+ elog "verify you have kernel support on the device and display driver enabled." |
68 |
+ einfo |
69 |
+ elog "To take advantage of the OpenRC init script, and automate the process of" |
70 |
+ elog "saving and restoring the brightness level you should add acpilight" |
71 |
+ elog "to the boot runlevel. You can do this as root like so:" |
72 |
+ elog "# rc-update add acpilight boot" |
73 |
+ einfo |
74 |
+} |