From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9C665138334 for ; Sat, 23 Jun 2018 20:10:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A7EA4E0891; Sat, 23 Jun 2018 20:10:20 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5D170E0883 for ; Sat, 23 Jun 2018 20:10:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8C5DF335CA0 for ; Sat, 23 Jun 2018 20:10:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 893BE2C4 for ; Sat, 23 Jun 2018 20:10:16 +0000 (UTC) From: "Brian Evans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Evans" Message-ID: <1529784573.6ff9beba26f55225407697c126ee519f10fa3333.grknight@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/acpilight/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-power/acpilight/Manifest sys-power/acpilight/acpilight-1.1.ebuild X-VCS-Directories: sys-power/acpilight/ X-VCS-Committer: grknight X-VCS-Committer-Name: Brian Evans X-VCS-Revision: 6ff9beba26f55225407697c126ee519f10fa3333 X-VCS-Branch: master Date: Sat, 23 Jun 2018 20:10:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ad33235d-6efc-46b3-ba5c-7938848aa5ba X-Archives-Hash: f06dee45ae66cfb82cf6053ec4a2fcc0 commit: 6ff9beba26f55225407697c126ee519f10fa3333 Author: Brian Evans gentoo org> AuthorDate: Sat Jun 23 20:09:33 2018 +0000 Commit: Brian Evans gentoo org> CommitDate: Sat Jun 23 20:09:33 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ff9beba sys-power/acpilight: Version bump for 1.1 Package-Manager: Portage-2.3.40, Repoman-2.3.9 sys-power/acpilight/Manifest | 1 + sys-power/acpilight/acpilight-1.1.ebuild | 53 ++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/sys-power/acpilight/Manifest b/sys-power/acpilight/Manifest index 9c9efe33860..334b8c9f546 100644 --- a/sys-power/acpilight/Manifest +++ b/sys-power/acpilight/Manifest @@ -1 +1,2 @@ DIST acpilight-1.0.tar.gz 16452 BLAKE2B 6594612a25974d33d845b9b0dec4ad0a105ea7da0b24dd540385d5a3751058d9b23afe58600082095c041c86cb477f671fcf4bc7f760869f7290e9e62c8c3124 SHA512 f7913f7ebf6cbde95a42165d8bfa237be03d90fc097164b971c92721cc76f1260a6a607d85f3ecb05ec482019f0ed7f0827a473608daf39b0d05b37c1d228a8a +DIST acpilight-v1.1.tar.gz 17583 BLAKE2B 9505d0b2e1eb6e311b3be7938c455dcca399b2a644856f57593be4da56b637445b796f16300540436645b4dc660f7330b63ff3eecf93ecb49b366d152d5c5faf SHA512 af10a538fec83315aaec3837647622ecea41cb936d38667e4e70689a2b8a968a786fc9ad2be136d5799fa091f07614886decc9044e71aec1e64765e90ddae439 diff --git a/sys-power/acpilight/acpilight-1.1.ebuild b/sys-power/acpilight/acpilight-1.1.ebuild new file mode 100644 index 00000000000..a4bc1e057d4 --- /dev/null +++ b/sys-power/acpilight/acpilight-1.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_5 python3_6 ) + +inherit python-r1 udev + +MY_P="${PN}-v${PV}" + +DESCRIPTION="Replacement for xbacklight that uses the ACPI interface to set brightness" +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" +IUSE="" + +S="${WORKDIR}/${MY_P}" + +RDEPEND="virtual/udev + ${PYTHON_DEPS} + !x11-apps/xbacklight" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +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() { + udev_reload + einfo + elog "To use the xbacklight binary as a regular user, you must be a part of the video group" + einfo + 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 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 +}