wl-gammarelay-rs-1.0.1ambasta
download
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]+spec-1.1.0
[email protected]+spec-1.1.0
[email protected]+spec-1.1.0
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]+1.45
[email protected]
[email protected]
"
declare -A GIT_CRATES=(
[rustbus]='https://github.com/KillingSpark/rustbus;5875f1fefc054ed4e2d91641f59a55b9eaee5be9;rustbus-%commit%/rustbus'
[rustbus_derive]='https://github.com/KillingSpark/rustbus;5875f1fefc054ed4e2d91641f59a55b9eaee5be9;rustbus-%commit%/rustbus_derive'
[rustbus-service]='https://github.com/MaxVerevkin/rustbus-service;1bd3aef5fe2a646685c8e640c0f67a645eeaf41d;rustbus-service-%commit%'
[rustbus-service-macros]='https://github.com/MaxVerevkin/rustbus-service;1bd3aef5fe2a646685c8e640c0f67a645eeaf41d;rustbus-service-%commit%/rustbus-service-macros'
)
RUST_MIN_VER="1.85.0"
inherit cargo
DESCRIPTION="Control display temperature and brightness under Wayland via D-Bus"
HOMEPAGE="https://github.com/MaxVerevkin/wl-gammarelay-rs"
SRC_URI="
https://github.com/MaxVerevkin/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}
"
LICENSE="GPL-3"
# Dependent crate licenses
LICENSE+=" Apache-2.0 MIT Unicode-3.0 Unlicense ZLIB"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="sys-apps/dbus"
PATCHES=(
"${FILESDIR}/${P}-dependencies.patch"
)
QA_FLAGS_IGNORED="usr/bin/${PN}"
DOCS=( README.md )
src_prepare() {
default
# Let Portage control LTO, stripping, and split-debug handling.
sed -i -e '/^lto = /d' -e '/^strip = /d' Cargo.toml || die
}
src_install() {
cargo_src_install
einstalldocs
docinto examples
dodoc scripts/README.md scripts/auto-temperature.py scripts/toggle-invert-display.sh
}