Removed power-profiles-daemon

master
nemofsan 1 year ago
parent 8a70b71ab9
commit d7a427c54d

@ -20,9 +20,6 @@ net-p2p/transmission gtk -qt5
# Improves performance in games that use Proton by Valve
sys-kernel/calculate-sources fsync
# power-profiles-daemon
sys-power/power-profiles-daemon orcrun
# gnome-terminal
x11-terms/gnome-terminal gnome-shell

@ -1,5 +0,0 @@
# Copyright 1999-2023 Gentoo Foundation.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
sys-power/power-profiles-daemon:orcrun - Flag for working with OpenRC

@ -1 +0,0 @@
DIST power-profiles-daemon-0.12.tar.bz2 47846 BLAKE2B 7fb10e78c5ab6da32a4b460c8046e510c66bb0d31ca4c7e14db5772c547c420be078f3086b6b98e70063fed0924e783f5b26580a97e0898474040a2724b87f91 SHA512 d34e51deeed13ed307b9efac08336ce36879d7deeac5af803207d1c69f641993a509d96e149c3f150c5d20437867f3cbc6502fce6f63e08f0b23f23c7f90d948

@ -1,42 +0,0 @@
diff -upr a/data/meson.build b/data/meson.build
--- a/data/meson.build 2023-03-19 15:50:13.898777755 +0300
+++ b/data/meson.build 2023-03-19 16:29:38.607135861 +0300
@@ -1,12 +1,14 @@
data_conf = configuration_data()
data_conf.set('libexecdir', libexecdir)
-configure_file(
- input: 'power-profiles-daemon.service.in',
- output: 'power-profiles-daemon.service',
- configuration: data_conf,
- install_dir: systemd_system_unit_dir,
-)
+if systemd_system_unit_dir != 'no'
+ configure_file(
+ input: 'power-profiles-daemon.service.in',
+ output: 'power-profiles-daemon.service',
+ configuration: data_conf,
+ install_dir: systemd_system_unit_dir,
+ )
+endif
configure_file(
input: 'net.hadess.PowerProfiles.conf.in',
diff -upr a/meson.build b/meson.build
--- a/meson.build 2023-03-19 15:50:13.898777755 +0300
+++ b/meson.build 2023-03-19 16:16:50.064136551 +0300
@@ -27,9 +27,11 @@ dbusconfdir = get_option('datadir') / 'd
dbusservicedir = get_option('datadir') / 'dbus-1' / 'system-services'
systemd_system_unit_dir = get_option('systemdsystemunitdir')
-if systemd_system_unit_dir == 'auto'
- systemd_dep = dependency('systemd')
- systemd_system_unit_dir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir')
+if systemd_system_unit_dir != 'no'
+ if systemd_system_unit_dir == 'auto'
+ systemd_dep = dependency('systemd')
+ systemd_system_unit_dir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir')
+ endif
endif
gio_dep = dependency('gio-2.0')
gudev_dep = dependency('gudev-1.0', version: '>= 234')

@ -1,3 +0,0 @@
# /etc/conf.d/power-profiles-daemon
#PPDARGS=""

@ -1,20 +0,0 @@
#!/sbin/openrc-run
# Copyright 2022-2023 Calculate Linux Desktop Gnome by nemofsan
# Distributed under the terms of the GNU General Public License v2
name="power-profiles-daemon"
description="Access to power profile processing via D-bus"
pidfile="/run/power-profiles-daemon.pid"
command="/usr/libexec/power-profiles-daemon"
command_args="${PPDARGS}"
command_background=true
depend() {
use clock logger
need dbus
}
start_pre() {
checkpath -d /var/lib/power-profiles-daemon
}

@ -1 +0,0 @@
f /var/lib/power-profiles-daemon/state.ini 0644 root root

@ -1,93 +0,0 @@
# 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 tmpfiles 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 orcrun"
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}]
')
)
"
PATCHES=(
# Add orcrun support
"${FILESDIR}/messon-allow-building-with-orcrun.patch"
)
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=(
$(meson_use gtk-doc gtk_doc)
$(meson_use test tests)
)
if use orcrun; then
emesonargs+=(
-Dsystemdsystemunitdir=no
)
else
emesonargs+=(
-Dsystemdsystemunitdir="$(systemd_get_systemunitdir)"
)
fi
meson_src_configure
}
src_install() {
meson_src_install
python_fix_shebang "${D}"/usr/bin/powerprofilesctl
if use orcrun; then
newinitd "${FILESDIR}/power-profiles-daemon.initd" power-profiles-daemon
newconfd "${FILESDIR}/power-profiles-daemon.confd" power-profiles-daemon
newtmpfiles "${FILESDIR}/power-profiles-daemon.tmpfiles" power-profiles-daemon.conf
fi
}
pkg_postinst() {
tmpfiles_process power-profiles-daemon.conf
if [[ -z "${REPLACING_VERSIONS}" ]]; then
if systemd_is_booted; then
elog "You need to enable the service:"
elog "# systemctl enable ${PN}"
else
elog "Don't forget to enable \"${PN}\" service, by runnning:"
elog "rc-update add ${PN} default && rc-service ${PN} start"
fi
fi
}
Loading…
Cancel
Save