diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-03 19:35:31 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-03 19:35:31 +0000 |
commit | ed43421253416ff58a637be8932ac1d7b7b232de (patch) | |
tree | 3cf7b0046bd17c3d59b7621101a7fd606fc2662b /sys-power | |
parent | 2d644a12e4e4d5061eeff8d068db29d562eba35b (diff) |
gentoo auto-resync : 03:03:2023 - 19:35:31
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/Manifest.gz | bin | 5058 -> 5234 bytes | |||
-rw-r--r-- | sys-power/power-profiles-daemon/Manifest | 3 | ||||
-rw-r--r-- | sys-power/power-profiles-daemon/metadata.xml | 11 | ||||
-rw-r--r-- | sys-power/power-profiles-daemon/power-profiles-daemon-0.12.ebuild | 71 | ||||
-rw-r--r-- | sys-power/switcheroo-control/Manifest | 2 | ||||
-rw-r--r-- | sys-power/switcheroo-control/switcheroo-control-2.6-r2.ebuild | 4 |
6 files changed, 88 insertions, 3 deletions
diff --git a/sys-power/Manifest.gz b/sys-power/Manifest.gz Binary files differindex a4ce7529faf8..7210a5f0f487 100644 --- a/sys-power/Manifest.gz +++ b/sys-power/Manifest.gz diff --git a/sys-power/power-profiles-daemon/Manifest b/sys-power/power-profiles-daemon/Manifest new file mode 100644 index 000000000000..f2a176ee72fe --- /dev/null +++ b/sys-power/power-profiles-daemon/Manifest @@ -0,0 +1,3 @@ +DIST power-profiles-daemon-0.12.tar.bz2 47846 BLAKE2B 7fb10e78c5ab6da32a4b460c8046e510c66bb0d31ca4c7e14db5772c547c420be078f3086b6b98e70063fed0924e783f5b26580a97e0898474040a2724b87f91 SHA512 d34e51deeed13ed307b9efac08336ce36879d7deeac5af803207d1c69f641993a509d96e149c3f150c5d20437867f3cbc6502fce6f63e08f0b23f23c7f90d948 +EBUILD power-profiles-daemon-0.12.ebuild 1637 BLAKE2B b046dc1787aa794a9b7bdfe8faa58484715163990a3a3da218f64e9ccb4699307e4c54570012b37af406bd6d39facdfe42563738eaea48827ecfd1955437a1cf SHA512 34d030b12d631ff3ee6e8ef839a8a86142f42593d26b0ba8de905a6fde693cda810d0bf3280c7524e7e3c8e87d0e6c52fdd50c7ef5d86d01f6dbc44e26af45ae +MISC metadata.xml 349 BLAKE2B 3d5b11de51426f4ba58d91ba184112dc8c2ca996eb68b55a1fee0ebd1c5f9a04369304ca1dc06adf67c936e429a5f4982352696a436768f86cdb59689d0c6f0a SHA512 a857194a96f8d2e3d639b93256e5c0518578aa2ff3e85e3a4c5f1293750e0d40a5637b3660199153bd25185b2cf548d0bd54c52a4f4a7673f44eb027653fcaec diff --git a/sys-power/power-profiles-daemon/metadata.xml b/sys-power/power-profiles-daemon/metadata.xml new file mode 100644 index 000000000000..243eab2cfba6 --- /dev/null +++ b/sys-power/power-profiles-daemon/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>pacho@gentoo.org</email> + <name>Pacho Ramos</name> + </maintainer> + <upstream> + <remote-id type="freedesktop-gitlab">hadess/power-profiles-daemon</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-power/power-profiles-daemon/power-profiles-daemon-0.12.ebuild b/sys-power/power-profiles-daemon/power-profiles-daemon-0.12.ebuild new file mode 100644 index 000000000000..6e3f67c1abf2 --- /dev/null +++ b/sys-power/power-profiles-daemon/power-profiles-daemon-0.12.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{9..11} ) + +inherit meson python-single-r1 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" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="gtk-doc 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.114 + sys-power/upower +" +DEPEND="${RDEPEND}" +BDEPEND=" + gtk-doc? ( dev-util/gi-docgen ) + 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 +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + if systemd_is_booted; then + elog "You need to enable the service:" + elog "# systemctl enable ${PN}" + fi + fi +} diff --git a/sys-power/switcheroo-control/Manifest b/sys-power/switcheroo-control/Manifest index 05e3cdf3d134..e68f50b71190 100644 --- a/sys-power/switcheroo-control/Manifest +++ b/sys-power/switcheroo-control/Manifest @@ -1,4 +1,4 @@ AUX switcheroo-control-init.d 240 BLAKE2B 00fd91de3da9e59fdf0f073a3a9f89ac6fee9cbc9941da2b44be62c0eca79562b3a9cb123ef86237d3be25f1c5ce3f293fb4814e023da110bb7faae0218c7037 SHA512 0f70d93839d68f09b07d96ae397e41d086500c55cca358125002991280bcd6471e5870ba2a8f696201deaee3403093156ae123804fd9649483cfd5655f887299 DIST switcheroo-control-2.6.tar.xz 29996 BLAKE2B 98204a1d0f3b92cc2b98ad9f382313aed4da5877ac6be607c48ee9386bd25087301e249907a7e1385eea357f0a3ce5fb2936fac688923dfa3555a9870f0d2e58 SHA512 ac8867a839ae958676f5c5c7bb4c25cbbcf70eb35a696bb3d80b388c31a9722e75311c041c4c60b8f1d00f405af97dd9173e99780a2be3c621ac759c4986a2d2 -EBUILD switcheroo-control-2.6-r2.ebuild 1770 BLAKE2B 4ac09a89e57d79c29a24965c490714772cb49cdd87fe7ef1961eebdd2d8709ae2176989dc74e4ec2537a648111f71814d01c0e9cd900a4c39a5799dd925463d1 SHA512 fbf0475717c7b2e237e605c6080f2e53fef14e9c72bb3cf2b9f351d9024ac52ba7b3b0227e053dc37f11db6714b053aefc30bdbf45423e5e664e9c5c5bd4bc21 +EBUILD switcheroo-control-2.6-r2.ebuild 1762 BLAKE2B 02678bf7bb37ce224a30a91da3388af9323a38ea52deab01b213024550ee0ad997591f25e3cf89ea14f5d02cf3beac3d2556d3f24523251bf151de94b95557af SHA512 9c77f02eb3a86380461a30509cfffcf433e00429e6305592b5c65309056de5fd17ad347c7cfd5da510fa70ce19c744d6e5ba4755e96cb6e81d796f4f63763156 MISC metadata.xml 319 BLAKE2B a3d0c3eb8684beca028aa1a168ffd796db835207225c2e3979bf3d0cadb99e96bc774aa2598356df483597a87a7bf4cd5c3b0ba7cffd3b4c2e1faa0d37c9cb9a SHA512 68760ca73834ff5f65c898d935dc4ece52b2f54b5501457433f92a8d93a48f4e3baac188e22b1a65d990b13abad2f7463f8d8ce2c286bdf172841fd46c023a18 diff --git a/sys-power/switcheroo-control/switcheroo-control-2.6-r2.ebuild b/sys-power/switcheroo-control/switcheroo-control-2.6-r2.ebuild index e6b508a9c0f4..37d903674a98 100644 --- a/sys-power/switcheroo-control/switcheroo-control-2.6-r2.ebuild +++ b/sys-power/switcheroo-control/switcheroo-control-2.6-r2.ebuild @@ -61,9 +61,9 @@ src_install() { pkg_postinst() { if [[ -z "${REPLACING_VERSIONS}" ]]; then - elog "You to enable the service:" + elog "You need to enable the service:" if systemd_is_booted; then - elog "# systemctl enable switcheroo-control" + elog "# systemctl enable ${PN}" else elog "# rc-update add ${PN} default" fi |