первая публикация
This commit is contained in:
4
app-misc/clightd/Manifest
Normal file
4
app-misc/clightd/Manifest
Normal file
@@ -0,0 +1,4 @@
|
||||
DIST clightd-5.7.tar.gz 69412 BLAKE2B 9191c0153b313d47028b0396fb0ab12bf002028ad5bcc254dfef79a57cfff99d078792a7625ec3bbb778ddc7cb4001aaa41d77dd093cd0f4de7b6db8bcab0abb SHA512 f621b5ef904e6851ae1959632fb9a650d9ed7cb881ad4a70e3e7cdc877b74c78daab349c44baecadcebfcce01ac72fea6202858616864aba92a16eebda5deff6
|
||||
EBUILD clightd-5.7.ebuild 1411 BLAKE2B 45d449ea8e524349b71e1930f2ee402f124fbd24ebc2e3a007ee822c693bc77293557d64f47118c14d07bb33e7fbb9a71776dba0a3c1c5985ccac72e7ae31dba SHA512 3f9916a060dcc2b0c8dff6137cc9caa52b4f23e5267337617c3e39a0511b27f26514f51c35a030be1171da2aa80b82d6479fbce19305c5e7ffcfee571a327eb7
|
||||
EBUILD clightd-9999.ebuild 1411 BLAKE2B 45d449ea8e524349b71e1930f2ee402f124fbd24ebc2e3a007ee822c693bc77293557d64f47118c14d07bb33e7fbb9a71776dba0a3c1c5985ccac72e7ae31dba SHA512 3f9916a060dcc2b0c8dff6137cc9caa52b4f23e5267337617c3e39a0511b27f26514f51c35a030be1171da2aa80b82d6479fbce19305c5e7ffcfee571a327eb7
|
||||
MISC metadata.xml 708 BLAKE2B db8f9056a0569b82212e6035f959c24ce9914cb5cc25d184274052a8663cff5c31f31128d1f0e41cb9d5c1f9f38b98833c3e9f0dd31ee5212ce541f3c5356620 SHA512 b071b09ea31b01bf0f87d91da79761fdd374108ba6784b8d0d7a44efdaa20772d4bec8ace4bcc9fdb25f0ab4dbdd925f6c736c17629d29e3b23f26408793feb1
|
||||
75
app-misc/clightd/clightd-5.7.ebuild
Normal file
75
app-misc/clightd/clightd-5.7.ebuild
Normal file
@@ -0,0 +1,75 @@
|
||||
# Copyright 2020-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_PN="${PN^}"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://github.com/FedeDP/${MY_PN}"
|
||||
EGIT_BRANCH="master"
|
||||
VCS_ECLASS="git-r3"
|
||||
else
|
||||
SRC_URI="https://github.com/FedeDP/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${P^}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
inherit cmake ${VCS_ECLASS}
|
||||
|
||||
DESCRIPTION="A linux bus interface for screen settings (brightness, gamma, etc.)"
|
||||
HOMEPAGE="https://github.com/FedeDP/Clightd"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="ddc dpms gamma pipewire screen yoctolight"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/libmodule-5.0.0
|
||||
media-libs/libjpeg-turbo
|
||||
sys-apps/dbus
|
||||
sys-auth/polkit
|
||||
virtual/libudev
|
||||
|| ( sys-auth/elogind sys-apps/systemd )
|
||||
ddc? (
|
||||
>=app-misc/ddcutil-0.9.5
|
||||
)
|
||||
dpms? (
|
||||
dev-libs/wayland
|
||||
x11-libs/libdrm
|
||||
x11-libs/libXext
|
||||
x11-libs/libX11
|
||||
)
|
||||
gamma? (
|
||||
dev-libs/wayland
|
||||
x11-libs/libdrm
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libX11
|
||||
)
|
||||
pipewire? (
|
||||
media-video/pipewire
|
||||
)
|
||||
screen? (
|
||||
x11-libs/libX11
|
||||
)
|
||||
yoctolight? (
|
||||
virtual/libusb:1
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=() useflag
|
||||
|
||||
for useflag in ddc dpms gamma screen yoctolight; do
|
||||
mycmakeargs+=( -DENABLE_${useflag^^}=$(usex $useflag) )
|
||||
done
|
||||
|
||||
if use ddc; then
|
||||
mycmakeargs+=( -DMODULE_LOAD_DIR=/etc/modules-load.d )
|
||||
fi
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
75
app-misc/clightd/clightd-9999.ebuild
Normal file
75
app-misc/clightd/clightd-9999.ebuild
Normal file
@@ -0,0 +1,75 @@
|
||||
# Copyright 2020-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_PN="${PN^}"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://github.com/FedeDP/${MY_PN}"
|
||||
EGIT_BRANCH="master"
|
||||
VCS_ECLASS="git-r3"
|
||||
else
|
||||
SRC_URI="https://github.com/FedeDP/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${P^}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
inherit cmake ${VCS_ECLASS}
|
||||
|
||||
DESCRIPTION="A linux bus interface for screen settings (brightness, gamma, etc.)"
|
||||
HOMEPAGE="https://github.com/FedeDP/Clightd"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="ddc dpms gamma pipewire screen yoctolight"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/libmodule-5.0.0
|
||||
media-libs/libjpeg-turbo
|
||||
sys-apps/dbus
|
||||
sys-auth/polkit
|
||||
virtual/libudev
|
||||
|| ( sys-auth/elogind sys-apps/systemd )
|
||||
ddc? (
|
||||
>=app-misc/ddcutil-0.9.5
|
||||
)
|
||||
dpms? (
|
||||
dev-libs/wayland
|
||||
x11-libs/libdrm
|
||||
x11-libs/libXext
|
||||
x11-libs/libX11
|
||||
)
|
||||
gamma? (
|
||||
dev-libs/wayland
|
||||
x11-libs/libdrm
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libX11
|
||||
)
|
||||
pipewire? (
|
||||
media-video/pipewire
|
||||
)
|
||||
screen? (
|
||||
x11-libs/libX11
|
||||
)
|
||||
yoctolight? (
|
||||
virtual/libusb:1
|
||||
)
|
||||
"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=() useflag
|
||||
|
||||
for useflag in ddc dpms gamma screen yoctolight; do
|
||||
mycmakeargs+=( -DENABLE_${useflag^^}=$(usex $useflag) )
|
||||
done
|
||||
|
||||
if use ddc; then
|
||||
mycmakeargs+=( -DMODULE_LOAD_DIR=/etc/modules-load.d )
|
||||
fi
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
19
app-misc/clightd/metadata.xml
Normal file
19
app-misc/clightd/metadata.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>erkiferenc@gmail.com</email>
|
||||
<name>Ferenc Erki</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">FedeDP/Clightd</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="ddc">Enable ddcutil support</flag>
|
||||
<flag name="dpms">Enable DPMS support</flag>
|
||||
<flag name="gamma">Enable gamma support</flag>
|
||||
<flag name="screen">Enable screen emitted backlight computation support</flag>
|
||||
<flag name="pipewire">Enable pipewire camera sensor support</flag>
|
||||
<flag name="yoctolight">Enable YoctoLight ALS devices support</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user