mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 12:33:40 -04:00
sys-apps/coolercontrold: add 4.1.0
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST coolercontrol-4.0.1.tar.gz 9462039 BLAKE2B b35a3a6a3c5b0e9a80a90bb282d1704c92ab06d751c8a39fce1ff9ce1bb2c778ba024ccd7980a2dae6ded8cafc87931363f8804277d90f5e856fd22f346b07ae SHA512 3b32ed002c26b4492badf4fff6a174164931d6c6ca4a142754102356d36c727473122483b39ae977e7abfb4867a75936d9e69168ba8c87712157ca676dd6d385
|
||||
DIST coolercontrol-4.1.0.tar.gz 9656360 BLAKE2B 4a1864ea738a2d026150eb52ad045cbf18fbd2d78c061275df792b6f397f0b4f217afb62016d13c436b75736f6a9eff1ffdb7f9e2110367384c2d82d16f93802 SHA512 3a6fcd9ee738a04f1a950b7541dbd57cdea2c078d1ef7f7c20d1b0b6f63f8ae30af45c4de65235de9c736163c33a2d4cb31ae29065c29692a068fc422569be46
|
||||
DIST coolercontrold-4.0.1-vendor.tar.gz 87396383 BLAKE2B ce56f56f4ba33301b9a35c284f73fbeeec066e4441a9fa75b77a9fac575541b7c7e1468db89c26c27881cfd65748ffdc3b4737ceb02887c27ef001bb156840fa SHA512 f4120818aa46798fb609d24bc91da3fa283e6e6102b0801b1c047f5ce67cf4f31a11f29d0dd8f0362c8d17c5f6986a12ce7076be24cdad1610944940321e5e2e
|
||||
DIST coolercontrold-4.1.0-vendor.tar.gz 85173923 BLAKE2B 8bd8f50926a4e584b795ee5841b0bbc0085818ad75fcaecd161f17d90496585f470e8dd41573e42b2099b8a18d9dec695c42cc0edbab4f40eb5b7a49d23e7f7b SHA512 472a0339be977c87e8f3352b845691ec9538aec9a49ea3521259e8ba7398bec721a4273f810ce044f8b37add54c83d1ebfbc8bb229d6bc2bf5407f8289dcb347
|
||||
|
||||
118
sys-apps/coolercontrold/coolercontrold-4.1.0.ebuild
Normal file
118
sys-apps/coolercontrold/coolercontrold-4.1.0.ebuild
Normal file
@@ -0,0 +1,118 @@
|
||||
# Copyright 2024-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Vendored aws-lc
|
||||
# https://github.com/aws/aws-lc-rs/issues/936
|
||||
|
||||
CRATES="
|
||||
"
|
||||
|
||||
RUST_MIN_VER="1.87.0"
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
|
||||
inherit cargo eapi9-ver optfeature python-single-r1 systemd
|
||||
|
||||
DESCRIPTION="Monitor and control your cooling and other devices (daemon)"
|
||||
HOMEPAGE="https://gitlab.com/coolercontrol/coolercontrol"
|
||||
|
||||
MY_P="coolercontrol-${PV}"
|
||||
SRC_URI="
|
||||
https://gitlab.com/coolercontrol/coolercontrol/-/releases/${PV}/downloads/packages/${MY_P}.tar.gz
|
||||
https://gitlab.com/coolercontrol/coolercontrol/-/releases/${PV}/downloads/packages/coolercontrold-vendor.tar.gz
|
||||
-> ${P}-vendor.tar.gz
|
||||
${CARGO_CRATE_URIS}
|
||||
"
|
||||
S="${WORKDIR}/${MY_P}/${PN}"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
# https://gitlab.com/coolercontrol/coolercontrol/-/blob/main/coolercontrold/cc-detect/README.md#attribution
|
||||
LICENSE+=" GPL-2+"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
AGPL-3+ Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD GPL-3+
|
||||
ISC MIT UoI-NCSA Unicode-3.0 ZLIB
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="liquidctl"
|
||||
REQUIRED_USE="liquidctl? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/zstd:=
|
||||
liquidctl? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
app-misc/liquidctl[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="dev-libs/protobuf[protoc(+)]"
|
||||
|
||||
QA_FLAGS_IGNORED=".*"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/coolercontrold-4.0.1-liquidctl.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
rust_pkg_setup
|
||||
use liquidctl && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
# trickery to avoid double unpacking :/
|
||||
A="${A[@]/${P}-vendor.tar.gz/}" cargo_src_unpack
|
||||
pushd "${S}" >/dev/null || die
|
||||
unpack ${P}-vendor.tar.gz
|
||||
popd >/dev/null || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
pushd .. >/dev/null || die
|
||||
default
|
||||
popd >/dev/null || die
|
||||
|
||||
if use liquidctl; then
|
||||
# Upstream solution not suitable for Gentoo where multiple python targets are available.
|
||||
sed -e "s|@@PYTHON@@|${PYTHON}|" \
|
||||
-i daemon/src/repositories/liquidctl/liqctld_service.rs || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export ZSTD_SYS_USE_PKG_CONFIG=1
|
||||
|
||||
cargo_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cargo_src_install --path daemon
|
||||
|
||||
einstalldocs
|
||||
|
||||
doman ../packaging/man/coolercontrold.8
|
||||
|
||||
doinitd ../packaging/openrc/init.d/coolercontrol
|
||||
doconfd ../packaging/openrc/conf.d/coolercontrol
|
||||
|
||||
# Match documentation and systemd name to avoid confusion
|
||||
newinitd ../packaging/openrc/init.d/coolercontrol coolercontrold
|
||||
newconfd ../packaging/openrc/conf.d/coolercontrol coolercontrold
|
||||
|
||||
systemd_dounit ../packaging/systemd/coolercontrold.service
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# libdrm[video_cards_amdgpu] dlopen'd, but the feature is not really noteworthy enough for optfeature
|
||||
# (more accurate gpu names for amd)
|
||||
optfeature "sensors support" sys-apps/lm-sensors
|
||||
|
||||
if ver_replacing -lt 3.0.0; then
|
||||
elog "coolercontrol-liqctld isn't packaged separately anymore. It's behind the liqtctl use flag now."
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user