mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 23:52:59 -04:00
app-misc/brightnessctl: new package
Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Octiabrina Terrien-Puig <octiabrina@myrvogna.net>
This commit is contained in:
1
app-misc/brightnessctl/Manifest
Normal file
1
app-misc/brightnessctl/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST brightnessctl-0.5.1.tar.gz 8284 BLAKE2B 7d2226aae10fddc606c5ce71ed4a04eda583acf245ea1532d8730c73dc02ea7aeed47a0e25ca7f9d40e7b0170bb08d87617e9f4aa082495e78894982870ca7cc SHA512 41ac86357b3b5a3d54a043140a6bdb1fb68d5080a16e86692059ad58f4b9134a8532432a3f664c70c665a4ad73ea8a94cc9b88fa84abc28f0356b8b397aaebc7
|
||||
50
app-misc/brightnessctl/brightnessctl-0.5.1.ebuild
Normal file
50
app-misc/brightnessctl/brightnessctl-0.5.1.ebuild
Normal file
@@ -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
|
||||
}
|
||||
50
app-misc/brightnessctl/brightnessctl-9999.ebuild
Normal file
50
app-misc/brightnessctl/brightnessctl-9999.ebuild
Normal file
@@ -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
|
||||
}
|
||||
11
app-misc/brightnessctl/metadata.xml
Normal file
11
app-misc/brightnessctl/metadata.xml
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user