Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/acpilight/
Date: Mon, 29 Jul 2019 17:40:27
Message-Id: 1564421946.32c593b65a28b6241410bf4e692d97c6fc863ab0.grknight@gentoo
1 commit: 32c593b65a28b6241410bf4e692d97c6fc863ab0
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 29 17:39:06 2019 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 29 17:39:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32c593b6
7
8 sys-power/acpilight: Version bump for 1.2
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
12
13 sys-power/acpilight/Manifest | 1 +
14 sys-power/acpilight/acpilight-1.2.ebuild | 54 ++++++++++++++++++++++++++++++++
15 2 files changed, 55 insertions(+)
16
17 diff --git a/sys-power/acpilight/Manifest b/sys-power/acpilight/Manifest
18 index 334b8c9f546..0dbc5aab994 100644
19 --- a/sys-power/acpilight/Manifest
20 +++ b/sys-power/acpilight/Manifest
21 @@ -1,2 +1,3 @@
22 DIST acpilight-1.0.tar.gz 16452 BLAKE2B 6594612a25974d33d845b9b0dec4ad0a105ea7da0b24dd540385d5a3751058d9b23afe58600082095c041c86cb477f671fcf4bc7f760869f7290e9e62c8c3124 SHA512 f7913f7ebf6cbde95a42165d8bfa237be03d90fc097164b971c92721cc76f1260a6a607d85f3ecb05ec482019f0ed7f0827a473608daf39b0d05b37c1d228a8a
23 DIST acpilight-v1.1.tar.gz 17583 BLAKE2B 9505d0b2e1eb6e311b3be7938c455dcca399b2a644856f57593be4da56b637445b796f16300540436645b4dc660f7330b63ff3eecf93ecb49b366d152d5c5faf SHA512 af10a538fec83315aaec3837647622ecea41cb936d38667e4e70689a2b8a968a786fc9ad2be136d5799fa091f07614886decc9044e71aec1e64765e90ddae439
24 +DIST acpilight-v1.2.tar.gz 18068 BLAKE2B 469fd12c0a24b152681d73add559733a294f8a0848f46d0d3a1e209dea2ad3b180294677a8d84a82387ec34b00bbfda85a10f447fe22b81a3c51225cdce14051 SHA512 ef634ec0f315fe94dca138f1b9231f320b93340db3365ab9a09cf898fe4691f70573041bcb04563d760f1201000ea3ff11ab5dad3bfffddf3d3070dedb5732d7
25
26 diff --git a/sys-power/acpilight/acpilight-1.2.ebuild b/sys-power/acpilight/acpilight-1.2.ebuild
27 new file mode 100644
28 index 00000000000..6bd7e47a9b6
29 --- /dev/null
30 +++ b/sys-power/acpilight/acpilight-1.2.ebuild
31 @@ -0,0 +1,54 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_5 python3_6 python3_7 )
38 +
39 +inherit python-r1 udev
40 +
41 +MY_P="${PN}-v${PV}"
42 +
43 +DESCRIPTION="Replacement for xbacklight that uses the ACPI interface to set brightness"
44 +HOMEPAGE="https://gitlab.com/wavexx/acpilight/"
45 +SRC_URI="https://gitlab.com/wavexx/acpilight/-/archive/v${PV}/${MY_P}.tar.gz"
46 +LICENSE="GPL-3+"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE=""
50 +
51 +S="${WORKDIR}/${MY_P}"
52 +
53 +RDEPEND="virtual/udev
54 + acct-group/video
55 + ${PYTHON_DEPS}
56 + !x11-apps/xbacklight"
57 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
58 +DOCS=( README.rst NEWS.rst )
59 +
60 +# Disable Makefile that installs by default
61 +src_compile() { :; }
62 +
63 +src_install() {
64 + python_foreach_impl python_doscript xbacklight
65 + udev_dorules "${S}"/90-backlight.rules
66 + doman xbacklight.1
67 + einstalldocs
68 + newinitd "${FILESDIR}"/acpilight.initd acpilight
69 + newconfd "${FILESDIR}"/acpilight.confd acpilight
70 +}
71 +
72 +pkg_postinst() {
73 + udev_reload
74 + einfo
75 + elog "To use the xbacklight binary as a regular user, you must be a part of the video group"
76 + einfo
77 + elog "If this utility does not find any backlights to manipulate,"
78 + elog "verify you have kernel support on the device and display driver enabled."
79 + einfo
80 + elog "To take advantage of the OpenRC init script, and automate the process of"
81 + elog "saving and restoring the brightness level you should add acpilight"
82 + elog "to the boot runlevel. You can do this as root like so:"
83 + elog "# rc-update add acpilight boot"
84 + einfo
85 +}