app-misc/cameractrls: replace systemd useflag with optfeature and disable python3.11

Signed-off-by: shaumux <shaumya@gmail.com>
This commit is contained in:
shaumux
2026-04-30 12:39:49 +02:00
parent 0040cb9971
commit fa512d53a1
2 changed files with 22 additions and 9 deletions

View File

@@ -3,9 +3,9 @@
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
PYTHON_COMPAT=( python3_{12..14} )
inherit desktop python-single-r1 xdg
inherit desktop python-single-r1 xdg optfeature
DESCRIPTION="Camera controls for Linux"
HOMEPAGE="https://github.com/soyersoyer/cameractrls"
@@ -14,7 +14,7 @@ SRC_URI="https://github.com/soyersoyer/cameractrls/archive/refs/tags/v${PV}.tar.
LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="systemd"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
@@ -25,7 +25,6 @@ RDEPEND="
$(python_gen_cond_dep '
dev-python/pygobject:3[${PYTHON_USEDEP}]
')
systemd? ( sys-apps/systemd:= )
"
DEPEND="${RDEPEND}"
BDEPEND="dev-util/desktop-file-utils"
@@ -71,11 +70,8 @@ src_install() {
pkg_postinst() {
xdg_pkg_postinst
if ! use systemd; then
elog "systemd USE flag is disabled. The 'Start with Systemd' option in the"
elog "GUI will not be available. cameractrlsd can still be started manually"
elog "or via the Desktop Portal autostart integration."
fi
optfeature_header "'Start with Systemd'"
optfeature "enable option in the gui" sys-apps/systemd
}
pkg_postrm() {

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>shaumya@gmail.com</email>
<name>Shaumyadeep Chaudhuri</name>
</maintainer>
<longdescription lang="en">
Camera controls for Linux
It's a standalone Python CLI and GUI (GTK3, GTK4) and camera Viewer (SDL) to set the camera controls in Linux. It can set the V4L2 controls and it is extendable with the non standard controls. Currently it has a Logitech extension (LED mode, LED frequency, BRIO FoV, Relative Pan/Tilt, PTZ presets), Kiyo Pro extension (HDR, HDR mode, FoV, AF mode, Save), Dell UltraSharp WB7022 extension, AnkerWork C310 extension, Preset extension (Save and restore controls), Control Restore Daemon (to restore presets at device connection).
</longdescription>
<upstream>
<remote-id type="github">soyersoyer/cameractrls</remote-id>
<bugs-to>https://github.com/soyersoyer/cameractrls/issues</bugs-to>
</upstream>
</pkgmetadata>