commit:     67d586c330123655ca3cf787a9113ab057f6471f
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Mon Jun 16 11:09:09 2025 +0000
Commit:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
CommitDate: Mon Jun 16 14:19:47 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=67d586c3

sys-apps/coolercontrold: add 2.2.1

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>

 sys-apps/coolercontrold/Manifest                   |  3 +
 .../coolercontrold/coolercontrold-2.2.1.ebuild     | 90 ++++++++++++++++++++++
 2 files changed, 93 insertions(+)

diff --git a/sys-apps/coolercontrold/Manifest b/sys-apps/coolercontrold/Manifest
index 7a0a97e501..6df8f06994 100644
--- a/sys-apps/coolercontrold/Manifest
+++ b/sys-apps/coolercontrold/Manifest
@@ -2,7 +2,10 @@ DIST coolercontrol-2.1.0-dist.tar.xz 867648 BLAKE2B 
529ed66ae42f8cd35e2818ab7bd7
 DIST coolercontrol-2.1.0.tar.bz2 15732132 BLAKE2B 
e90692b6b5d9b99ebc2bd26d519f9311600664c8296d1264ccd3d1d81b70e80ffa353eeae65a55e8398fc6e992dec0e7c451f22fe39bc0eec9cee1364a9004e8
 SHA512 
975877f0bbea06e294ff7b1d07ad7c12543b4dfc044e1500daf4658d3a9b13e49c52a66847b81f4d81d6c8604b6e3526c9fdc93f0a830650f8e0b3b081cefd81
 DIST coolercontrol-2.2.0-dist.tar.xz 993312 BLAKE2B 
880aadbe1c18cd82ac7d2860d5908484fecde923787ddad1025e21096ee4f3f148621869fa6903884d31150943be720dd3f4f38ddf3704c3b55b5c097502e90d
 SHA512 
2359990647835fd95ace8ec9d0cbb4cb765d136354ab44ef13d029d4367f3cf7d313e3d8f7a00af319e1a925546c66147969964ec4f3da9a48abebbaec4486c3
 DIST coolercontrol-2.2.0.tar.bz2 15848078 BLAKE2B 
d6e332ed01e8399020f243322f908fef964799368c4e3118483bf117d45d9ecc107062f583c03cbabc7f44251dd4285a82a4f19d152444e790666ee2b1f67e15
 SHA512 
ff7c87d8d22d5063605820a17fe0f6c5a559f067cabf8980027d3a1c936101df6979711738697c7b6007ea988a6c9f3f1dae44e8be5335410de37127d0eeab4a
+DIST coolercontrol-2.2.1-dist.tar.xz 992932 BLAKE2B 
1dcda744e4e45588f1ba010309de250edd82c47c2130a1c1506c7d191a213471fc4e3c856423ec0276a879133759e5ddc13e51cb0c87263823c9919d061e2d5c
 SHA512 
1a3942f55ba05011ba0c46af095ce0ffdc07ce84ca7d1eab013a6acfe4b560c913dddde0339d810c7383ea86c4467ee20adea34e7edbe8b0cc8491c5c577db06
+DIST coolercontrol-2.2.1.tar.bz2 15866674 BLAKE2B 
aace4917a7c778de60f10387f0a90777479fdcdcbcabcc584e32c570dfe683a75015c31f3793acc91c7d503bdef4cccbea8c3f19fb7e752ba6e77ad58906ea23
 SHA512 
435a7a6f1ee0f14061f482df16f28adc0f40c9f35add6703e2953c7682897d77204fc7d45a04ea39d2715be104895bb8ed7d4fc59a1a8e024cd18f5d576b3a42
 DIST coolercontrold-2.1.0-crates.tar.xz 45467392 BLAKE2B 
e0e26e43b86df39e6c896c46beb3fdb4c4115628ef58d5d5ad03a0c353dd9af3f420a7c3f1b3d0799d45d1bb5b28e144f1f4cccc82a74ca50de071f073ad8821
 SHA512 
4dec1899ab32b6df6f2da642c868cb18519df2da88e9908dd4a0c108cca78bbe054b825402e0621099ac4bb556a3a031fdaecd033f76186c184091f2f0ac6ef1
 DIST coolercontrold-2.2.0-crates.tar.xz 34591084 BLAKE2B 
800809394a2ad27e239d9b999d3e94729b55fc0e1b72d439c691f67c68bf428cb8693f1171e723a93349aab67a6a4a6e9f058da7f5c39937cf5508d672504c12
 SHA512 
9883e3399fcbcf9f5c565a3d1cc3605dc5c43b458fffc82c8e39de57c491117874554b176cb97f7943204e8d7e6d8ee94db54957d7d3a4d52f1d80becc7c978b
+DIST coolercontrold-2.2.1-crates.tar.xz 35510096 BLAKE2B 
b9f2ab744df4bdacd80d2205e58ca06628dc403d650384719462fa14e9432b8130a78fb61259d3da95e89099b6104f586fea63d3d779bdc1af1d4227dcf9b772
 SHA512 
af8d33f3122a7b50e43166e47a51d17eb3e5a24ff95b670f8dd499dd6da31805324a7369e5cd11e60405804fb104d53ec96b239a5b7dfcc497d5efaada0ed28d
 DIST nvml-wrapper-572095f631da93be8d243c73820e581676969897.gh.tar.gz 234938 
BLAKE2B 
91820ff38212c176027ab6fb0552efb1544e539fc0dda29e1f7d82e2cec8dce1ecd6cc499c120049869cde638ecf3918db3f73f86ea73214135e83c4bccbf8b7
 SHA512 
1ead616cd59058e3c2f100cc0dff9b6f4f97aeb70d30ef7d9667eef3e8b272bfae487e1c68e042680c4be8667246b4048cf8124ffe6a7011899cd2b87d8e9ec2
 DIST tower-governor-fd799d86418e58179468953c80ad7094a81a9e37.gh.tar.gz 31787 
BLAKE2B 
452d9423efbb4230bd88dfd58418850d0ccd53d5d7a45ff5f60005f292637c296c4c67d75397a7f4a59af51028b2fa95a2ef69b372c18b1dc02408437e8aac81
 SHA512 
40819f6d2dd7f1471af403e0314d261d043c6fddde12c55b797412d07f0ae6db3cfb640cbe3e2ebfea1be11794ed8ded20c39ca489784a4dbbbfdead3ff2f38c

diff --git a/sys-apps/coolercontrold/coolercontrold-2.2.1.ebuild 
b/sys-apps/coolercontrold/coolercontrold-2.2.1.ebuild
new file mode 100644
index 0000000000..408eed3764
--- /dev/null
+++ b/sys-apps/coolercontrold/coolercontrold-2.2.1.ebuild
@@ -0,0 +1,90 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+"
+
+declare -A GIT_CRATES=(
+       
[nvml-wrapper-sys]='https://github.com/codifryed/nvml-wrapper;572095f631da93be8d243c73820e581676969897;nvml-wrapper-%commit%/nvml-wrapper-sys'
+       
[nvml-wrapper]='https://github.com/codifryed/nvml-wrapper;572095f631da93be8d243c73820e581676969897;nvml-wrapper-%commit%/nvml-wrapper'
+       
[tower_governor]='https://github.com/codifryed/tower-governor;fd799d86418e58179468953c80ad7094a81a9e37;tower-governor-%commit%'
+)
+
+inherit cargo optfeature systemd
+
+DESCRIPTION="Monitor and control your cooling and other devices (daemon)"
+HOMEPAGE="https://gitlab.com/coolercontrol/coolercontrol";
+SRC_URI="
+       
https://gitlab.com/coolercontrol/coolercontrol/-/archive/${PV}/coolercontrol-${PV}.tar.bz2
+       
https://gitlab.com/api/v4/projects/32909921/packages/generic/coolercontrol/${PV}/coolercontrol-${PV}-dist.tar.xz
+       
https://gitlab.com/api/v4/projects/32909921/packages/generic/coolercontrol/${PV}/coolercontrold-${PV}-crates.tar.xz
+       ${CARGO_CRATE_URIS}
+"
+S="${WORKDIR}/coolercontrol-${PV}/${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 MPL-2.0 UoI-NCSA Unicode-3.0 ZLIB
+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="video_cards_amdgpu"
+
+RDEPEND="
+       app-arch/zstd:=
+       video_cards_amdgpu? (
+               x11-libs/libdrm[video_cards_amdgpu]
+       )
+"
+DEPEND="${RDEPEND}"
+
+QA_FLAGS_IGNORED=".*"
+
+PATCHES=(
+       "${FILESDIR}"/coolercontrold-2.1.0-optional-libdrm_amdgpu.patch
+)
+
+src_prepare() {
+       pushd .. >/dev/null || die
+       default
+       popd >/dev/null || die
+
+       # Disable stripping
+       sed -i -e '/^strip =/d' Cargo.toml || die
+
+       cp -rf "${WORKDIR}"/dist/* "${S}"/resources/app/ || die
+}
+
+src_configure() {
+       export ZSTD_SYS_USE_PKG_CONFIG=1
+
+       local myfeatures=(
+               $(usev video_cards_amdgpu libdrm_amdgpu)
+       )
+
+       cargo_src_configure
+}
+
+src_install() {
+       cargo_src_install
+
+       einstalldocs
+
+       doinitd ../packaging/openrc/init.d/coolercontrol
+       doconfd ../packaging/openrc/conf.d/coolercontrol
+
+       systemd_dounit ../packaging/systemd/coolercontrold.service
+}
+
+pkg_postinst() {
+       optfeature "interact with AIO liquid coolers and other devices" 
sys-apps/coolercontrol-liqctld
+
+       if [[ -n ${REPLACING_VERSIONS} ]]; then
+               elog "Remember to restart coolercontrol service to use the new 
version."
+       fi
+}

Reply via email to