public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-misc/brightnessctl/
Date: Fri,  5 Mar 2021 12:10:42 +0000 (UTC)	[thread overview]
Message-ID: <1614937257.a4289cc59e1f6230e0c237c755926d4adaa23dca.andrewammerlaan@gentoo> (raw)

commit:     a4289cc59e1f6230e0c237c755926d4adaa23dca
Author:     Octiabrina Terrien-Puig <octiabrina <AT> myrvogna <DOT> net>
AuthorDate: Fri Mar  5 09:40:57 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Fri Mar  5 09:40:57 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a4289cc5

app-misc/brightnessctl: new package

Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Octiabrina Terrien-Puig <octiabrina <AT> myrvogna.net>

 app-misc/brightnessctl/Manifest                   |  1 +
 app-misc/brightnessctl/brightnessctl-0.5.1.ebuild | 50 +++++++++++++++++++++++
 app-misc/brightnessctl/brightnessctl-9999.ebuild  | 50 +++++++++++++++++++++++
 app-misc/brightnessctl/metadata.xml               | 11 +++++
 4 files changed, 112 insertions(+)

diff --git a/app-misc/brightnessctl/Manifest b/app-misc/brightnessctl/Manifest
new file mode 100644
index 00000000..0b2b76e8
--- /dev/null
+++ b/app-misc/brightnessctl/Manifest
@@ -0,0 +1 @@
+DIST brightnessctl-0.5.1.tar.gz 8284 BLAKE2B 7d2226aae10fddc606c5ce71ed4a04eda583acf245ea1532d8730c73dc02ea7aeed47a0e25ca7f9d40e7b0170bb08d87617e9f4aa082495e78894982870ca7cc SHA512 41ac86357b3b5a3d54a043140a6bdb1fb68d5080a16e86692059ad58f4b9134a8532432a3f664c70c665a4ad73ea8a94cc9b88fa84abc28f0356b8b397aaebc7

diff --git a/app-misc/brightnessctl/brightnessctl-0.5.1.ebuild b/app-misc/brightnessctl/brightnessctl-0.5.1.ebuild
new file mode 100644
index 00000000..4eaba507
--- /dev/null
+++ b/app-misc/brightnessctl/brightnessctl-0.5.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="A program to read and control device brightness"
+HOMEPAGE="https://github.com/Hummer12007/brightnessctl"
+
+if [[ ${PV} == 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/Hummer12007/brightnessctl.git"
+else
+	SRC_URI="https://github.com/Hummer12007/brightnessctl/archive/${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="systemd udev"
+
+DEPEND="
+	systemd? ( sys-apps/systemd )
+	udev? ( virtual/udev )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+	systemd? ( virtual/pkgconfig )
+"
+
+src_compile() {
+	use systemd && export ENABLE_SYSTEMD=1
+	emake
+}
+
+src_install() {
+	local myconf
+
+	# Upstream does not install udev rules if systemd is enabled
+	# Following this behaviour if both flags are enabled here
+	if use systemd && use udev; then
+		myconf="INSTALL_UDEV_RULES=0"
+	elif use udev; then
+		myconf="INSTALL_UDEV_RULES=1"
+	else
+		myconf="INSTALL_UDEV_RULES=0"
+	fi
+
+	emake install ${myconf} DESTDIR="${D}"
+	dodoc README.md
+}

diff --git a/app-misc/brightnessctl/brightnessctl-9999.ebuild b/app-misc/brightnessctl/brightnessctl-9999.ebuild
new file mode 100644
index 00000000..4eaba507
--- /dev/null
+++ b/app-misc/brightnessctl/brightnessctl-9999.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="A program to read and control device brightness"
+HOMEPAGE="https://github.com/Hummer12007/brightnessctl"
+
+if [[ ${PV} == 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/Hummer12007/brightnessctl.git"
+else
+	SRC_URI="https://github.com/Hummer12007/brightnessctl/archive/${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="systemd udev"
+
+DEPEND="
+	systemd? ( sys-apps/systemd )
+	udev? ( virtual/udev )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+	systemd? ( virtual/pkgconfig )
+"
+
+src_compile() {
+	use systemd && export ENABLE_SYSTEMD=1
+	emake
+}
+
+src_install() {
+	local myconf
+
+	# Upstream does not install udev rules if systemd is enabled
+	# Following this behaviour if both flags are enabled here
+	if use systemd && use udev; then
+		myconf="INSTALL_UDEV_RULES=0"
+	elif use udev; then
+		myconf="INSTALL_UDEV_RULES=1"
+	else
+		myconf="INSTALL_UDEV_RULES=0"
+	fi
+
+	emake install ${myconf} DESTDIR="${D}"
+	dodoc README.md
+}

diff --git a/app-misc/brightnessctl/metadata.xml b/app-misc/brightnessctl/metadata.xml
new file mode 100644
index 00000000..219c5faa
--- /dev/null
+++ b/app-misc/brightnessctl/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>octiabrina@myrvogna.net</email>
+		<name>Octiabrina Terrien-Puig</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">Hummer12007/brightnessctl</remote-id>
+	</upstream>
+</pkgmetadata>


             reply	other threads:[~2021-03-05 12:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-05 12:10 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-04-09 12:52 [gentoo-commits] repo/proj/guru:master commit in: app-misc/brightnessctl/ Andrew Ammerlaan
2021-04-23  8:47 Haelwenn Monnier
2024-01-31 12:23 David Roman

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=1614937257.a4289cc59e1f6230e0c237c755926d4adaa23dca.andrewammerlaan@gentoo \
    --to=andrewammerlaan@riseup.net \
    --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