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/Manifest10
-rw-r--r--sys-power/power-profiles-daemon/power-profiles-daemon-0.21.ebuild (renamed from sys-power/power-profiles-daemon/power-profiles-daemon-0.20.ebuild)24
-rw-r--r--sys-power/power-profiles-daemon/power-profiles-daemon-0.22.ebuild (renamed from sys-power/power-profiles-daemon/power-profiles-daemon-0.13.ebuild)37
-rw-r--r--sys-power/power-profiles-daemon/power-profiles-daemon-0.23.ebuild98
4 files changed, 154 insertions, 15 deletions
diff --git a/sys-power/power-profiles-daemon/Manifest b/sys-power/power-profiles-daemon/Manifest
index 5f1d16bda106..5ca267578da0 100644
--- a/sys-power/power-profiles-daemon/Manifest
+++ b/sys-power/power-profiles-daemon/Manifest
@@ -1,6 +1,8 @@
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 1889 BLAKE2B c4af22424c74ec61a1cb0dfde6c45f17efdcb3676c284d1ac34ea0ceadd7e967327fc4332d37be4068d1371741071b92222b7ab14e557c4b6ce8b05879f53ccf SHA512 2cd22b57350fb2684fc96590d9ff8a0b38515d801d44ba744784f617d0e312462233409122bb598da84fbe1e7b95386e07840485ef562c45e538bb05a111a41f
+DIST power-profiles-daemon-0.21.tar.bz2 63984 BLAKE2B 206c954272fb93b17a09e4108c74462d2524ef9160880ce59709504314fd38f413c7eb65ab4f0a085f6458b04f85b4833e0df3786f0aff08e7bdc0a3a65d8d2a SHA512 8038ff7c164bbcbeebc50c911f3129e79d4f8d63278bc674e10bf2920af0bc9b0b139d5a2e056889b0b7ec86df19cc7be3e8c84e70e777544e117ee7a036b375
+DIST power-profiles-daemon-0.22.tar.bz2 66394 BLAKE2B 7c204aa29ebda4f9034729b5ea09e1cd516a788c0fc58cf57f49791103f85506bc34bf8c2db9a4f1e42fa280ba4d6ce1c095df3a90deb90db795d7c02b4d6606 SHA512 7fcb960f956ad95cfa7f31ac8d8b3070ff72822106017177cdab873c2e8e6017d7357b09fea2a14450990acc844f7db30d5cdcce33d59661c775da54ad095af9
+DIST power-profiles-daemon-0.23.tar.bz2 66801 BLAKE2B fbfaad44ddacbb4ffce7a8c9ab5eab0e6d9e0f114629f8d6d0fd06dcd55211f863c1ab8dedceb3a96831862cbda7e18158f35f99da6dbb54318b9568de22883d SHA512 fda9ee667455991d2e8a011a9ea9060df7605dafdd4116f433328fb9dc0a3fd8f8bada644c3c8b63d8a0bdff212fdd827bb4bcd9f2aec7338917b2375c278276
+EBUILD power-profiles-daemon-0.21.ebuild 2612 BLAKE2B e36ed5b4388bfb153074b9d74a1a3fba63f2ee2ccecf50d21f034f04e7e9a024786226883b7bb50c94169ebff397c3e472cd50e8cd24b0e4e395b094a3d54942 SHA512 8bb32e5a63fca9e39ccef14863586c228d4e13a5812044695e4b339f5cde4bb2eb3fe229277d34e8d168dfc18d3290d6845b1ede8000acb35a06a390c05656ff
+EBUILD power-profiles-daemon-0.22.ebuild 2615 BLAKE2B c665bb1f029dbe38a49a89a3de2fa06036d0a499494bccf4ae2637ecfc70808d15644172407dffae3d45626f04a07131598a16752441e49df07f444f0ceeeba6 SHA512 8f802a2f1926754a0027e7688d454f14e17415b105ff8c6fe86f53c004aadd493130052cb8889c17a07684f1742cff7e5e246713d6f4434127a362ef24fcafed
+EBUILD power-profiles-daemon-0.23.ebuild 2615 BLAKE2B c665bb1f029dbe38a49a89a3de2fa06036d0a499494bccf4ae2637ecfc70808d15644172407dffae3d45626f04a07131598a16752441e49df07f444f0ceeeba6 SHA512 8f802a2f1926754a0027e7688d454f14e17415b105ff8c6fe86f53c004aadd493130052cb8889c17a07684f1742cff7e5e246713d6f4434127a362ef24fcafed
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.21.ebuild
index 0df1a8b0c644..120f8f64690c 100644
--- a/sys-power/power-profiles-daemon/power-profiles-daemon-0.20.ebuild
+++ b/sys-power/power-profiles-daemon/power-profiles-daemon-0.21.ebuild
@@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
-inherit meson python-single-r1 systemd
+inherit meson python-single-r1 shell-completion systemd
DESCRIPTION="Makes power profiles handling available over D-Bus"
HOMEPAGE="https://gitlab.freedesktop.org/upower/power-profiles-daemon/"
@@ -13,7 +13,7 @@ LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"
-IUSE="gtk-doc selinux test"
+IUSE="bash-completion gtk-doc man selinux test zsh-completion"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
@@ -29,10 +29,17 @@ RDEPEND="${PYTHON_DEPS}
DEPEND="${RDEPEND}"
BDEPEND="
dev-util/glib-utils
+ bash-completion? (
+ >=app-shells/bash-completion-2.0
+ $(python_gen_cond_dep '>=dev-python/shtab-1.7.0[${PYTHON_USEDEP}]')
+ )
gtk-doc? (
dev-util/gi-docgen
dev-util/gtk-doc
)
+ man? (
+ $(python_gen_cond_dep 'dev-python/argparse-manpage[${PYTHON_USEDEP}]')
+ )
test? (
dev-util/umockdev
$(python_gen_cond_dep '
@@ -40,6 +47,9 @@ BDEPEND="
dev-python/python-dbusmock[${PYTHON_USEDEP}]
')
)
+ zsh-completion? (
+ $(python_gen_cond_dep '>=dev-python/shtab-1.7.0[${PYTHON_USEDEP}]')
+ )
"
python_check_deps() {
@@ -49,14 +59,24 @@ python_check_deps() {
else
python_has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
fi
+
+ if use bash-completion || use zsh-completion; then
+ python_has_version ">=dev-python/shtab-1.7.0[${PYTHON_USEDEP}]"
+ fi
+
+ use man && python_has_version "dev-python/argparse-manpage[${PYTHON_USEDEP}]"
}
src_configure() {
local emesonargs=(
+ -Dpylint=disabled
-Dsystemdsystemunitdir="$(systemd_get_systemunitdir)"
+ $(meson_feature bash-completion bashcomp)
$(meson_use gtk-doc gtk_doc)
+ $(meson_feature man manpage)
$(meson_use test tests)
)
+ use zsh-completion && emesonargs+=( -Dzshcomp="$(get_zshcompdir)" )
meson_src_configure
}
diff --git a/sys-power/power-profiles-daemon/power-profiles-daemon-0.13.ebuild b/sys-power/power-profiles-daemon/power-profiles-daemon-0.22.ebuild
index 93d50305add9..fda723bbfe4a 100644
--- a/sys-power/power-profiles-daemon/power-profiles-daemon-0.13.ebuild
+++ b/sys-power/power-profiles-daemon/power-profiles-daemon-0.22.ebuild
@@ -1,20 +1,19 @@
-# Copyright 1999-2023 Gentoo Authors
+# 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
+inherit meson python-single-r1 shell-completion systemd
DESCRIPTION="Makes power profiles handling available over D-Bus"
-HOMEPAGE="https://gitlab.freedesktop.org/hadess/power-profiles-daemon/"
-SRC_URI="https://gitlab.freedesktop.org/hadess/${PN}/-/archive/${PV}/${P}.tar.bz2"
-
+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"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
-IUSE="gtk-doc selinux test"
+IUSE="bash-completion gtk-doc man selinux test zsh-completion"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
@@ -23,17 +22,24 @@ 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.114
+ >=sys-auth/polkit-0.99
sys-power/upower
selinux? ( sec-policy/selinux-powerprofiles )
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-util/glib-utils
+ bash-completion? (
+ >=app-shells/bash-completion-2.0
+ $(python_gen_cond_dep '>=dev-python/shtab-1.7.0[${PYTHON_USEDEP}]')
+ )
gtk-doc? (
dev-util/gi-docgen
dev-util/gtk-doc
)
+ man? (
+ $(python_gen_cond_dep 'dev-python/argparse-manpage[${PYTHON_USEDEP}]')
+ )
test? (
dev-util/umockdev
$(python_gen_cond_dep '
@@ -41,6 +47,9 @@ BDEPEND="
dev-python/python-dbusmock[${PYTHON_USEDEP}]
')
)
+ zsh-completion? (
+ $(python_gen_cond_dep '>=dev-python/shtab-1.7.0[${PYTHON_USEDEP}]')
+ )
"
python_check_deps() {
@@ -50,14 +59,24 @@ python_check_deps() {
else
python_has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
fi
+
+ if use bash-completion || use zsh-completion; then
+ python_has_version ">=dev-python/shtab-1.7.0[${PYTHON_USEDEP}]"
+ fi
+
+ use man && python_has_version "dev-python/argparse-manpage[${PYTHON_USEDEP}]"
}
src_configure() {
local emesonargs=(
+ -Dpylint=disabled
-Dsystemdsystemunitdir="$(systemd_get_systemunitdir)"
+ $(meson_feature bash-completion bashcomp)
$(meson_use gtk-doc gtk_doc)
+ $(meson_feature man manpage)
$(meson_use test tests)
)
+ use zsh-completion && emesonargs+=( -Dzshcomp="$(get_zshcompdir)" )
meson_src_configure
}
@@ -69,8 +88,8 @@ src_install() {
pkg_postinst() {
if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "You need to enable the service:"
if systemd_is_booted; then
- elog "You need to enable the service:"
elog "# systemctl enable ${PN}"
else
elog "# rc-update add ${PN} default"
diff --git a/sys-power/power-profiles-daemon/power-profiles-daemon-0.23.ebuild b/sys-power/power-profiles-daemon/power-profiles-daemon-0.23.ebuild
new file mode 100644
index 000000000000..fda723bbfe4a
--- /dev/null
+++ b/sys-power/power-profiles-daemon/power-profiles-daemon-0.23.ebuild
@@ -0,0 +1,98 @@
+# 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 shell-completion 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="bash-completion gtk-doc man selinux test zsh-completion"
+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
+ bash-completion? (
+ >=app-shells/bash-completion-2.0
+ $(python_gen_cond_dep '>=dev-python/shtab-1.7.0[${PYTHON_USEDEP}]')
+ )
+ gtk-doc? (
+ dev-util/gi-docgen
+ dev-util/gtk-doc
+ )
+ man? (
+ $(python_gen_cond_dep 'dev-python/argparse-manpage[${PYTHON_USEDEP}]')
+ )
+ test? (
+ dev-util/umockdev
+ $(python_gen_cond_dep '
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ dev-python/python-dbusmock[${PYTHON_USEDEP}]
+ ')
+ )
+ zsh-completion? (
+ $(python_gen_cond_dep '>=dev-python/shtab-1.7.0[${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
+
+ if use bash-completion || use zsh-completion; then
+ python_has_version ">=dev-python/shtab-1.7.0[${PYTHON_USEDEP}]"
+ fi
+
+ use man && python_has_version "dev-python/argparse-manpage[${PYTHON_USEDEP}]"
+}
+
+src_configure() {
+ local emesonargs=(
+ -Dpylint=disabled
+ -Dsystemdsystemunitdir="$(systemd_get_systemunitdir)"
+ $(meson_feature bash-completion bashcomp)
+ $(meson_use gtk-doc gtk_doc)
+ $(meson_feature man manpage)
+ $(meson_use test tests)
+ )
+ use zsh-completion && emesonargs+=( -Dzshcomp="$(get_zshcompdir)" )
+ 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
+}