summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Hartmann <sultan@gentoo.org>2023-01-14 18:45:22 +0100
committerStephan Hartmann <sultan@gentoo.org>2023-01-14 18:45:35 +0100
commitd7eff65271d43a6354572d8e2c4821072cb3e339 (patch)
tree535a4a251688ef7a8e42f40325693bed675c3460 /app-misc/liquidctl/liquidctl-1.12.1.ebuild
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.163 (diff)
downloadgentoo-d7eff65271d43a6354572d8e2c4821072cb3e339.tar.gz
gentoo-d7eff65271d43a6354572d8e2c4821072cb3e339.tar.bz2
gentoo-d7eff65271d43a6354572d8e2c4821072cb3e339.zip
app-misc/liquidctl: add 1.12.1
Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
Diffstat (limited to 'app-misc/liquidctl/liquidctl-1.12.1.ebuild')
-rw-r--r--app-misc/liquidctl/liquidctl-1.12.1.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/app-misc/liquidctl/liquidctl-1.12.1.ebuild b/app-misc/liquidctl/liquidctl-1.12.1.ebuild
new file mode 100644
index 000000000000..446ab3f13df9
--- /dev/null
+++ b/app-misc/liquidctl/liquidctl-1.12.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{8..10} )
+DISTUTILS_USE_PEP517=setuptools
+
+inherit distutils-r1 udev
+
+DESCRIPTION="Cross-platform tool and drivers for liquid coolers and other devices"
+HOMEPAGE="https://github.com/liquidctl/liquidctl"
+SRC_URI="https://github.com/liquidctl/liquidctl/releases/download/v${PV}/${P}.tar.gz"
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/colorlog[${PYTHON_USEDEP}]
+ dev-python/crcmod[${PYTHON_USEDEP}]
+ dev-python/docopt[${PYTHON_USEDEP}]
+ dev-python/hidapi[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/pyusb[${PYTHON_USEDEP}]
+ sys-apps/i2c-tools[${PYTHON_USEDEP},python]
+"
+
+BDEPEND="
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+src_test() {
+ # Without this variable, it attempts to write to /var/run and fails
+ XDG_RUNTIME_DIR="${T}/xdg" distutils-r1_src_test || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ dodoc docs/*.md
+ dodoc -r docs/linux/
+
+ udev_dorules extra/linux/71-liquidctl.rules
+}
+
+pkg_postinst() {
+ udev_reload
+}
+
+pkg_postrm() {
+ udev_reload
+}