mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 05:23:01 -04:00
sys-power/auto-cpufreq: remove redundant patch files due to recent drops of 2.1.0-r1 and 2.2.0
Signed-off-by: Michal Vu <saigon-tech@tuta.io>
This commit is contained in:
@@ -130,6 +130,11 @@ pkg_postrm() {
|
||||
rm "${EROOT}"/var/log/auto-cpufreq.log || die
|
||||
fi
|
||||
|
||||
# Remove auto-cpufreq-install script
|
||||
if [ -f "${EROOT}/usr/bin/auto-cpufreq-install" ]; then
|
||||
rm "${EROOT}"/usr/bin/auto-cpufreq-install || die
|
||||
fi
|
||||
|
||||
# Restore original cpufreqctl binary if backup was made
|
||||
if [ -f "${EROOT}/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
|
||||
mv "${EROOT}"/usr/bin/cpufreqctl.auto-cpufreq{.bak,} || die
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
diff --git a/pyproject.toml b/pyproject.toml
|
||||
index c555726..f3ea0ab 100644
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -33,7 +33,7 @@ poetry = "^1.6.1"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
|
||||
-build-backend = "poetry_dynamic_versioning.backend"
|
||||
+build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[tool.poetry.scripts]
|
||||
auto-cpufreq = "auto_cpufreq.bin.auto_cpufreq:main"
|
||||
@@ -1,19 +0,0 @@
|
||||
Remove the automatic setuptools_git_versioning because distutils can not handle that.
|
||||
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -17,13 +17,7 @@ VERSION = "1.9.5"
|
||||
|
||||
setup(
|
||||
name="auto-cpufreq",
|
||||
- setuptools_git_versioning={
|
||||
- "starting_version": VERSION,
|
||||
- "template": "{tag}+{sha}",
|
||||
- "dev_template": "{tag}+{sha}",
|
||||
- "dirty_template": "{tag}+{sha}.post{ccount}.dirty"
|
||||
- },
|
||||
- setup_requires=["setuptools-git-versioning"],
|
||||
+ version=VERSION,
|
||||
description="Automatic CPU speed & power optimizer for Linux",
|
||||
long_description=readme,
|
||||
author="Adnan Hodzic",
|
||||
@@ -1,12 +0,0 @@
|
||||
[Unit]
|
||||
Description=auto-cpufreq - Automatic CPU speed & power optimizer for Linux
|
||||
After=network.target network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
ExecStart=auto-cpufreq --daemon
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user