summaryrefslogtreecommitdiff
path: root/sys-power/acpilight
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-03-03 10:28:17 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-03-03 10:28:17 +0000
commitd99093fb4bb5652015c06274d64083daa2439e4f (patch)
treecf61513204d97974179580065e85df5c8009087c /sys-power/acpilight
parent463397cf1e064185110fe57c568d73f99a06f5d1 (diff)
gentoo resync : 03.03.2021
Diffstat (limited to 'sys-power/acpilight')
-rw-r--r--sys-power/acpilight/Manifest3
-rw-r--r--sys-power/acpilight/acpilight-1.2-r2.ebuild (renamed from sys-power/acpilight/acpilight-1.2.ebuild)12
-rw-r--r--sys-power/acpilight/files/acpilight-1.2-fix-log10-of-zero.patch26
3 files changed, 35 insertions, 6 deletions
diff --git a/sys-power/acpilight/Manifest b/sys-power/acpilight/Manifest
index e1c2a18357c4..bab12b51c299 100644
--- a/sys-power/acpilight/Manifest
+++ b/sys-power/acpilight/Manifest
@@ -1,6 +1,7 @@
+AUX acpilight-1.2-fix-log10-of-zero.patch 715 BLAKE2B 33a33f4869a5c3cc27898ca5adea8d79c7b94d497ece5204b38e9ced59f686999ce1b625bf0e7b83447b862c9fb769ab6a8095c0498819c8254cb70cbead6b22 SHA512 786e4c0ab97d240a5fdedbee2adddd90c9aea390f9ad1becb5d61e1f0023d076bb01b0c847f6a68e49cbebee28b218cf7940c9fa087a4865539670fe81ce051e
AUX acpilight.confd 269 BLAKE2B 196245bd083f89d9d975a81aaaf66d0422655cd6a5f575c2cbb898747c92bdb888f8123dbf8ddf34089be2547d39e33508119065ffb97c26f9d1d3915bee8bb2 SHA512 28e513dbcaa30cec4d2f876c244766037eb6e94ff660ff2caf9cb955f40c710ea750cac73eb5e3890b42904227ccbd7f6c3e2595c2496e54d3339d6afdd0ffb0
AUX acpilight.initd 742 BLAKE2B bc2ad5027cd9e5c9f8d0d55e249117f7f59ad587522d21ea2baf69e45a884df242d46cb3001ef46ef63c1e1f87a18bc5c05d4facf1e9d72d4b596926e9a6b69b SHA512 9fe648ea994eeb9baa294226b55bd6230cb2b28952f651755da622278539fc071527e3aa2425e26687bb8065ef2e372ab93d7090532dbf3208ccac8519f01fca
DIST acpilight-v1.2.tar.gz 18068 BLAKE2B 469fd12c0a24b152681d73add559733a294f8a0848f46d0d3a1e209dea2ad3b180294677a8d84a82387ec34b00bbfda85a10f447fe22b81a3c51225cdce14051 SHA512 ef634ec0f315fe94dca138f1b9231f320b93340db3365ab9a09cf898fe4691f70573041bcb04563d760f1201000ea3ff11ab5dad3bfffddf3d3070dedb5732d7
EBUILD acpilight-1.2-r1.ebuild 1493 BLAKE2B 0f0338f8f615905cc32cf86989b8d22444083bb1ed54fffdc26f3643f15ba579e127510ad36ac627e3aeb971fee633fbc8d75d2663c8c85b3d1b9bc0cc3b72cf SHA512 b2ea18b03eca0c055931f3b27ce3a4c37e0e427ce616318b266779895cb600fef96b381899b419319e822cacf15a6b060689f4d0b2620d26f1c1ad0412d7ec63
-EBUILD acpilight-1.2.ebuild 1496 BLAKE2B 6124f01b9d84286f0287550be51d792c461dfb552300d5948b3ffab2a6d9a0bf03264299bf0ccdc607ebe2f4989683eaecf19d09686e3c9823a7a6c9e6f09231 SHA512 4d9a05aef6b99dc1c548c6a3a361c15815214e20d84078d5f0573a2d39ee4d86a2923861d6982e495fb82d98d89191ee67e070323e20a3283df07822ed2f93eb
+EBUILD acpilight-1.2-r2.ebuild 1570 BLAKE2B 3590c498247d7f4c6606e63a9611fc787ba46cd24060cab0a94f6f593ea036e3f415d7b36be4c230e5028bea65dbea29edc9cc1568dc13ee58428a81d0033467 SHA512 b3d32d4a2a7936b14c2a7cad1ff0ed5fab964b06a2944ed638888311671108ae066b090aa609ccdd4eaa3669413f55c59c3b0f9c9cd97ea6e2f70d4a2517a55b
MISC metadata.xml 337 BLAKE2B ad7ecd612b078bad830f6f10efaca7f41b7b5ef1d290799ce4c2dbd5489076c5c0fc3500e0c64bc3f00f448f80a1eedb9737c967258bbea5e105a85d7e4b8749 SHA512 6f624eadeaad1f4a440a2663ac9672cd6a36dbb668d11bcdb621aa5ddb739632c8bc74bbbde9905adf023618a9432a26bfec4f6861f5e4ba6167a0c2658dacd0
diff --git a/sys-power/acpilight/acpilight-1.2.ebuild b/sys-power/acpilight/acpilight-1.2-r2.ebuild
index 98f3c664a900..ea5d3b4b729b 100644
--- a/sys-power/acpilight/acpilight-1.2.ebuild
+++ b/sys-power/acpilight/acpilight-1.2-r2.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_7 )
+PYTHON_COMPAT=( python3_7 python3_8 python3_9 )
-inherit python-r1 udev
+inherit python-single-r1 udev
MY_P="${PN}-v${PV}"
@@ -14,7 +14,7 @@ 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}"
@@ -26,11 +26,13 @@ RDEPEND="virtual/udev
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DOCS=( README.rst NEWS.rst )
+PATCHES=( "${FILESDIR}/acpilight-1.2-fix-log10-of-zero.patch" )
+
# Disable Makefile that installs by default
src_compile() { :; }
src_install() {
- python_foreach_impl python_doscript xbacklight
+ python_doscript xbacklight
udev_dorules "${S}"/90-backlight.rules
doman xbacklight.1
einstalldocs
diff --git a/sys-power/acpilight/files/acpilight-1.2-fix-log10-of-zero.patch b/sys-power/acpilight/files/acpilight-1.2-fix-log10-of-zero.patch
new file mode 100644
index 000000000000..ffc061910f01
--- /dev/null
+++ b/sys-power/acpilight/files/acpilight-1.2-fix-log10-of-zero.patch
@@ -0,0 +1,26 @@
+From fdf8a4c57c3997f95ea0571b627f3c5a31dfe7b1 Mon Sep 17 00:00:00 2001
+From: Mart <mart@martlubbers.net>
+Date: Thu, 1 Oct 2020 09:55:08 +0000
+Subject: [PATCH] set the perceived to zero when the screen is off
+
+This fixes the issue that you cannot take the 10-log of zero
+---
+ xbacklight | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/xbacklight b/xbacklight
+index 2cb0fa8..f1c2187 100755
+--- a/xbacklight
++++ b/xbacklight
+@@ -82,6 +82,8 @@ class LogController(RawController):
+
+ @property
+ def brightness(self):
++ if super().brightness == 0:
++ return 0
+ return log10(super().brightness)/log10(super().max_brightness)*self.max_brightness
+
+ @brightness.setter
+--
+GitLab
+