public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brian Evans" <grknight@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/acpilight/files/, sys-power/acpilight/
Date: Mon, 22 Aug 2016 20:11:16 +0000 (UTC)	[thread overview]
Message-ID: <1471896668.fa6edf1ba196daad37e9dd8f90a92becef814592.grknight@gentoo> (raw)

commit:     fa6edf1ba196daad37e9dd8f90a92becef814592
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 22 20:09:55 2016 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Mon Aug 22 20:11:08 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa6edf1b

sys-power/acpilight: New Package

Package-Manager: portage-2.3.0

 sys-power/acpilight/Manifest                       |  1 +
 sys-power/acpilight/acpilight-0_pre20160724.ebuild | 40 ++++++++++++++++++++++
 sys-power/acpilight/files/90-backlight.rules       |  2 ++
 sys-power/acpilight/metadata.xml                   |  8 +++++
 4 files changed, 51 insertions(+)

diff --git a/sys-power/acpilight/Manifest b/sys-power/acpilight/Manifest
new file mode 100644
index 0000000..ba2fb47
--- /dev/null
+++ b/sys-power/acpilight/Manifest
@@ -0,0 +1 @@
+DIST acpilight-0_pre20160724.tar.gz 2125 SHA256 d57f71561fd73289c3b81332c08619ac3edcc295bcfe7fd1840e512d00e0835b SHA512 a249f46afcb2f45c6f85769e4c6de1751da4cb432012db51b8682a7dc1454fe2cffbe5694ea18bdc275b4c302f911b68f104d3e7b4c8e9b8ac114cbecc91fc56 WHIRLPOOL 57a2f01a74046662102fe35715b161ef94ffb83db038547424d99f95cee3b432b2151fd7c7b7cde3b1dd19cfa339548c8c3b795c440dba24e48a31760b645c0a

diff --git a/sys-power/acpilight/acpilight-0_pre20160724.ebuild b/sys-power/acpilight/acpilight-0_pre20160724.ebuild
new file mode 100644
index 0000000..f67bcb0
--- /dev/null
+++ b/sys-power/acpilight/acpilight-0_pre20160724.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_4 python3_5 )
+
+inherit python-r1 udev vcs-snapshot
+
+VCS_COMMIT="4a15c2d3019aacd891e7d2151334e22b2cebe0ca"
+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/${VCS_COMMIT}.tar.gz -> ${P}.tar.gz"
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="virtual/udev
+	${PYTHON_DEPS}
+	!x11-apps/xbacklight"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+DOCS=( README.rst )
+
+src_install() {
+	python_foreach_impl python_doscript xbacklight
+	udev_dorules "${FILESDIR}"/90-backlight.rules
+	einstalldocs
+}
+
+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
+}

diff --git a/sys-power/acpilight/files/90-backlight.rules b/sys-power/acpilight/files/90-backlight.rules
new file mode 100644
index 0000000..9f5b1c8
--- /dev/null
+++ b/sys-power/acpilight/files/90-backlight.rules
@@ -0,0 +1,2 @@
+SUBSYSTEM=="backlight", ACTION=="add", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
+SUBSYSTEM=="backlight", ACTION=="add", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"

diff --git a/sys-power/acpilight/metadata.xml b/sys-power/acpilight/metadata.xml
new file mode 100644
index 0000000..1454e21
--- /dev/null
+++ b/sys-power/acpilight/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>grknight@gentoo.org</email>
+    <name>Brian Evans</name>
+  </maintainer>
+</pkgmetadata>


             reply	other threads:[~2016-08-22 20:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-22 20:11 Brian Evans [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-02-23 21:25 [gentoo-commits] repo/gentoo:master commit in: sys-power/acpilight/files/, sys-power/acpilight/ Brian Evans
2017-08-05  7:30 Michał Górny
2022-01-24 20:37 Brian Evans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1471896668.fa6edf1ba196daad37e9dd8f90a92becef814592.grknight@gentoo \
    --to=grknight@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox