summaryrefslogtreecommitdiff
path: root/sys-power/acpilight
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-08-02 19:14:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-08-02 19:14:55 +0100
commitb24bd25253fe093f722ab576d29fdc41d04cb1ee (patch)
tree0fcf2afd9f852c4d4c291cf8afaa2c244d598105 /sys-power/acpilight
parent121ed4eec41fbf03e1998d09eede1bf449da63b9 (diff)
gentoo resync : 02.08.2019
Diffstat (limited to 'sys-power/acpilight')
-rw-r--r--sys-power/acpilight/Manifest6
-rw-r--r--sys-power/acpilight/acpilight-1.2.ebuild (renamed from sys-power/acpilight/acpilight-1.0.ebuild)27
-rw-r--r--sys-power/acpilight/metadata.xml2
3 files changed, 25 insertions, 10 deletions
diff --git a/sys-power/acpilight/Manifest b/sys-power/acpilight/Manifest
index 3622820a8e6b..d580b4156b74 100644
--- a/sys-power/acpilight/Manifest
+++ b/sys-power/acpilight/Manifest
@@ -1,7 +1,7 @@
AUX acpilight.confd 269 BLAKE2B 196245bd083f89d9d975a81aaaf66d0422655cd6a5f575c2cbb898747c92bdb888f8123dbf8ddf34089be2547d39e33508119065ffb97c26f9d1d3915bee8bb2 SHA512 28e513dbcaa30cec4d2f876c244766037eb6e94ff660ff2caf9cb955f40c710ea750cac73eb5e3890b42904227ccbd7f6c3e2595c2496e54d3339d6afdd0ffb0
AUX acpilight.initd 742 BLAKE2B bc2ad5027cd9e5c9f8d0d55e249117f7f59ad587522d21ea2baf69e45a884df242d46cb3001ef46ef63c1e1f87a18bc5c05d4facf1e9d72d4b596926e9a6b69b SHA512 9fe648ea994eeb9baa294226b55bd6230cb2b28952f651755da622278539fc071527e3aa2425e26687bb8065ef2e372ab93d7090532dbf3208ccac8519f01fca
-DIST acpilight-1.0.tar.gz 16452 BLAKE2B 6594612a25974d33d845b9b0dec4ad0a105ea7da0b24dd540385d5a3751058d9b23afe58600082095c041c86cb477f671fcf4bc7f760869f7290e9e62c8c3124 SHA512 f7913f7ebf6cbde95a42165d8bfa237be03d90fc097164b971c92721cc76f1260a6a607d85f3ecb05ec482019f0ed7f0827a473608daf39b0d05b37c1d228a8a
DIST acpilight-v1.1.tar.gz 17583 BLAKE2B 9505d0b2e1eb6e311b3be7938c455dcca399b2a644856f57593be4da56b637445b796f16300540436645b4dc660f7330b63ff3eecf93ecb49b366d152d5c5faf SHA512 af10a538fec83315aaec3837647622ecea41cb936d38667e4e70689a2b8a968a786fc9ad2be136d5799fa091f07614886decc9044e71aec1e64765e90ddae439
-EBUILD acpilight-1.0.ebuild 1008 BLAKE2B b092b02ea4a9976a11fd462480f2dab442cd1b5f4672d3da9d031ccc91525b86c746fb7b2d1cd70d835b6a4c22a3f31161bdfbebbfc50906079f260e1960e419 SHA512 ec38b355f26aaad4c00820b45047312fb0759a0f93d41a909c14f5d82e762fa822aebfc3ddaa06a918239d6dcde26731511987677ee0ff1f029a75c349deec67
+DIST acpilight-v1.2.tar.gz 18068 BLAKE2B 469fd12c0a24b152681d73add559733a294f8a0848f46d0d3a1e209dea2ad3b180294677a8d84a82387ec34b00bbfda85a10f447fe22b81a3c51225cdce14051 SHA512 ef634ec0f315fe94dca138f1b9231f320b93340db3365ab9a09cf898fe4691f70573041bcb04563d760f1201000ea3ff11ab5dad3bfffddf3d3070dedb5732d7
EBUILD acpilight-1.1.ebuild 1484 BLAKE2B 3c9f5ebbe3217e90529dc824a74871c6e5c38983a8658345417cf63d06635ba5e49d219a93351440c61d5217f593074d1a3004148863389f1dea569dee7819b6 SHA512 ef352987197e35bf8306348b18f5c7e067413aced2364e1433e69e0e6e9e2a9310f8950cd27ea3a292fac1b3816be3a8c507c9a1232c66007d6565afeee709c8
-MISC metadata.xml 337 BLAKE2B 7888981587ed09568a184afbfd7133b628495b425a39754634ffc71296c11087c4c2406e616a7bb8e5c4078e56dcb416785b6729159a20bed750110c8dc8c5d2 SHA512 4f183fd6e3292302ca589c466292f6222e6980a72a11ff7b82fefc293d3d37902b79439f1f044ec44a88dfa5675f769b2f39e44005e57bfa3e1ed132ff451cd4
+EBUILD acpilight-1.2.ebuild 1518 BLAKE2B 6f444898006ecf03130e5f2ba000516d334288de2179b579b5137d0cab39167dac2666fb0140d14ae03ae4a4266f146a49b1b68838595c8fe636775b1270b057 SHA512 d64c07de06de79ad1712070e7f36040c55dc9523bb8928fce0b2d14ab151d639197c1a795f843882639c7c9747a78acf9874284bd3b667d2b25310d0f77a8451
+MISC metadata.xml 337 BLAKE2B ad7ecd612b078bad830f6f10efaca7f41b7b5ef1d290799ce4c2dbd5489076c5c0fc3500e0c64bc3f00f448f80a1eedb9737c967258bbea5e105a85d7e4b8749 SHA512 6f624eadeaad1f4a440a2663ac9672cd6a36dbb668d11bcdb621aa5ddb739632c8bc74bbbde9905adf023618a9432a26bfec4f6861f5e4ba6167a0c2658dacd0
diff --git a/sys-power/acpilight/acpilight-1.0.ebuild b/sys-power/acpilight/acpilight-1.2.ebuild
index 4e09faee8395..6bd7e47a9b63 100644
--- a/sys-power/acpilight/acpilight-1.0.ebuild
+++ b/sys-power/acpilight/acpilight-1.2.ebuild
@@ -1,31 +1,41 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-PYTHON_COMPAT=( python2_7 python3_5 )
+PYTHON_COMPAT=( python3_5 python3_6 python3_7 )
inherit python-r1 udev
+MY_P="${PN}-v${PV}"
+
DESCRIPTION="Replacement for xbacklight that uses the ACPI interface to set brightness"
-HOMEPAGE="https://github.com/wavexx/acpilight/"
-SRC_URI="https://github.com/wavexx/acpilight/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+HOMEPAGE="https://gitlab.com/wavexx/acpilight/"
+SRC_URI="https://gitlab.com/wavexx/acpilight/-/archive/v${PV}/${MY_P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
-KEYWORDS="amd64 x86"
+KEYWORDS="~amd64 ~x86"
IUSE=""
+S="${WORKDIR}/${MY_P}"
+
RDEPEND="virtual/udev
+ acct-group/video
${PYTHON_DEPS}
!x11-apps/xbacklight"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-DOCS=( README.rst )
+DOCS=( README.rst NEWS.rst )
+
+# Disable Makefile that installs by default
+src_compile() { :; }
src_install() {
python_foreach_impl python_doscript xbacklight
udev_dorules "${S}"/90-backlight.rules
doman xbacklight.1
einstalldocs
+ newinitd "${FILESDIR}"/acpilight.initd acpilight
+ newconfd "${FILESDIR}"/acpilight.confd acpilight
}
pkg_postinst() {
@@ -36,4 +46,9 @@ pkg_postinst() {
elog "If this utility does not find any backlights to manipulate,"
elog "verify you have kernel support on the device and display driver enabled."
einfo
+ elog "To take advantage of the OpenRC init script, and automate the process of"
+ elog "saving and restoring the brightness level you should add acpilight"
+ elog "to the boot runlevel. You can do this as root like so:"
+ elog "# rc-update add acpilight boot"
+ einfo
}
diff --git a/sys-power/acpilight/metadata.xml b/sys-power/acpilight/metadata.xml
index f5072a8cbd34..8d3a1b7e5808 100644
--- a/sys-power/acpilight/metadata.xml
+++ b/sys-power/acpilight/metadata.xml
@@ -6,6 +6,6 @@
<name>Brian Evans</name>
</maintainer>
<upstream>
- <remote-id type="github">wavexx/acpilight</remote-id>
+ <remote-id type="gitlab">wavexx/acpilight</remote-id>
</upstream>
</pkgmetadata>