summaryrefslogtreecommitdiff
path: root/sys-power/power-profiles-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'sys-power/power-profiles-daemon')
-rw-r--r--sys-power/power-profiles-daemon/Manifest2
-rw-r--r--sys-power/power-profiles-daemon/power-profiles-daemon-0.20.ebuild78
2 files changed, 80 insertions, 0 deletions
diff --git a/sys-power/power-profiles-daemon/Manifest b/sys-power/power-profiles-daemon/Manifest
index 7c11a4859ac2..310af53465bf 100644
--- a/sys-power/power-profiles-daemon/Manifest
+++ b/sys-power/power-profiles-daemon/Manifest
@@ -1,4 +1,6 @@
AUX power-profiles-daemon.initd 391 BLAKE2B dd75825711a868de7b6c996c67c332b80a361b84dab19b86f93c77ae781c007ed8a665fbf776dfb18671ad7b297a85cc8bd021ffb4d7ff33451e9e074c53eb23 SHA512 5652346153ad999525bf2973336ebe7806af279fce9dd62091918d00ce0ebbdf315a03472bf8de61a1df51c9087feb0b2771ce85870274ae5770a0f1aea08bfc
DIST power-profiles-daemon-0.13.tar.bz2 49079 BLAKE2B 2a7c81b0ac8b4ac4a9805f5dcd722959ff0abe736782eba7678f49eb3c5790d59b2bcc35577733aaae9fc8baa76a65ca9a973ac9f0d9154061c3af86abe0e65d SHA512 dab0c44968480a2f5ae2074f07a48d901970c9b3b3ec104d14108615f85b1eb0f9f3e1b5f0ff766659e4d76b243da2cd4c025cd81b992b7149fb671e103a7d6b
+DIST power-profiles-daemon-0.20.tar.bz2 58388 BLAKE2B f25bc2618441f53624567c4f40d9960b28bf46fb2098eb0e2098207149df3d4923a13c40d781885e37708bf896b537ccb969ec7a928669a3776722e5e58801cf SHA512 2236aac94dafbf6fd951f3bd44953f1a14bc7c5e55349307374d836e20377e1768dcf1250fa8dcf9f01d4eddea8ab64082881189b4e958fbfcd5e2e90d3e823a
EBUILD power-profiles-daemon-0.13.ebuild 1892 BLAKE2B 258ffdd3974546cf9ab3426237490cbba39ecf8e3365a655a81c28a727e1ac67a998169f50e00c08a331f0b0d3856d84d3b519d4ddba2e9736212c8547515ab6 SHA512 153471babab7c72b681e57b5768de83799dd1d67b1c96c399c173f16c76cfe5deaf1b0ea1930179dccc445c2f9a8c02aba6437358f9d07e15f13bf64d248b0bf
+EBUILD power-profiles-daemon-0.20.ebuild 1892 BLAKE2B 2718d5e2c432536ff1f3426d3fbd9e1151ddc513c3e986d3af3853e50c5bea663e0cbec840f9dcc2cd877bc738f3eca6af724221f3a362029a7ccb074ba442a3 SHA512 9eff4c0a594afb097e11bd2ee534710233a30e5505e3299019daaaa401474749e67f3d7a18fe48406740b85ccecb3a58d955ae4a17023b320e152e1ea28f4a92
MISC metadata.xml 349 BLAKE2B 3d5b11de51426f4ba58d91ba184112dc8c2ca996eb68b55a1fee0ebd1c5f9a04369304ca1dc06adf67c936e429a5f4982352696a436768f86cdb59689d0c6f0a SHA512 a857194a96f8d2e3d639b93256e5c0518578aa2ff3e85e3a4c5f1293750e0d40a5637b3660199153bd25185b2cf548d0bd54c52a4f4a7673f44eb027653fcaec
diff --git a/sys-power/power-profiles-daemon/power-profiles-daemon-0.20.ebuild b/sys-power/power-profiles-daemon/power-profiles-daemon-0.20.ebuild
new file mode 100644
index 000000000000..f14d7178c710
--- /dev/null
+++ b/sys-power/power-profiles-daemon/power-profiles-daemon-0.20.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit meson python-single-r1 systemd
+
+DESCRIPTION="Makes power profiles handling available over D-Bus"
+HOMEPAGE="https://gitlab.freedesktop.org/upower/power-profiles-daemon/"
+SRC_URI="https://gitlab.freedesktop.org/upower/${PN}/-/archive/${PV}/${P}.tar.bz2"
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+
+IUSE="gtk-doc selinux test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="${PYTHON_DEPS}
+ $(python_gen_cond_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]')
+ dev-libs/glib:2
+ >=dev-libs/libgudev-234
+ >=sys-auth/polkit-0.99
+ sys-power/upower
+ selinux? ( sec-policy/selinux-powerprofiles )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-util/glib-utils
+ gtk-doc? (
+ dev-util/gi-docgen
+ dev-util/gtk-doc
+ )
+ test? (
+ dev-util/umockdev
+ $(python_gen_cond_dep '
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ dev-python/python-dbusmock[${PYTHON_USEDEP}]
+ ')
+ )
+"
+
+python_check_deps() {
+ if use test; then
+ python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]" &&
+ python_has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
+ else
+ python_has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
+ fi
+}
+
+src_configure() {
+ local emesonargs=(
+ -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)"
+ $(meson_use gtk-doc gtk_doc)
+ $(meson_use test tests)
+ )
+ meson_src_configure
+}
+
+src_install() {
+ meson_src_install
+ python_fix_shebang "${D}"/usr/bin/powerprofilesctl
+ newinitd "${FILESDIR}/power-profiles-daemon.initd" power-profiles-daemon
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "You need to enable the service:"
+ if systemd_is_booted; then
+ elog "# systemctl enable ${PN}"
+ else
+ elog "# rc-update add ${PN} default"
+ fi
+ fi
+}