mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
sys-apps/coolercontrold: drop 3.0.2
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
DIST coolercontrol-3.0.2.tar.gz 8937023 BLAKE2B 447705ef8f4347b3446802aada3d26a51cef97b09027822974ac175c8a8c7f47c30f8bb1a77c34f0efbda21f89e95828a4de7cf43d9eead3601ff25cf9aeb41a SHA512 45448cbbdd480272bf08af5aefc00a4704029831dc0983942a3f08f92a07c823e8c4458a5be247875f6214b8f469eedc5cde83d6815df37d1261fd7b6c534c71
|
||||
DIST coolercontrol-3.1.1.tar.gz 9191127 BLAKE2B 8d495119c8fca6194f3a205945d1a60691e5653d2ca32be33dc0d0fc59f2b7da7198a2e2c1d3afba7cf9b0b78066fbb2fe7dbe9d5e31b56ff044412715a01620 SHA512 a0686ff0ffbd6aab1f8c38f48d04279ff477ab6c6c6e4ba2d46524fb21d80730e09394036afb41e7893d59d726777f655e31e6764bb8892e2b97665b83209cfe
|
||||
DIST coolercontrold-3.0.2-vendor.tar.gz 69396637 BLAKE2B 9eb3217dba48ed3ecabcbd7018cefaeeb238421a8b427f7da3c2c7fcdc22f007b0b7ad321ab6675162f22f26f65d0d738958524af21fcc8b4664ed0c8462a94d SHA512 8b7d7a0e5c7ac74cb37de798cd4a0553e9b01d01af4755f8c1236be456d6d6272ca505625caa7e78669307a7d67fef2fb0c268e0a50508c91186432ce74633c0
|
||||
DIST coolercontrold-3.1.1-vendor.tar.gz 72559141 BLAKE2B d7f35e6e53a472a8bfd04329f7e3800bdc21aecfd72913b82195df4d6437e3fa99639648e75b4e3e4f0bb5de4c93deddd320f3f4495acb3d23652b9c594b4183 SHA512 162523da13e33a258b5600fdb979049178a331d6b1b8bf73c027aa9e6fa83ee060f7bc8825e6d21217a919a5aff74e83d182eba7e541ca89ad388aae7cae7c51
|
||||
|
||||
@@ -1,110 +0,0 @@
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES="
|
||||
"
|
||||
|
||||
RUST_MIN_VER=1.86
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..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+"
|
||||
# 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}"
|
||||
|
||||
QA_FLAGS_IGNORED=".*"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/coolercontrold-3.0.2-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 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
|
||||
|
||||
einstalldocs
|
||||
|
||||
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