sys-power/throttled - 0.9.2 (vowstar)

Search

Install

Install this version:

emerge -a =sys-power/throttled-0.9.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-power/throttled-0.9.2

Or alternatively:

emerge --autounmask-write -a =sys-power/throttled-0.9.2

Package Information

Description:
Fix Intel CPU Throttling on Linux
Homepage:
https://github.com/erpalma/throttled
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.9.2 7 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{10..14} )

inherit python-r1 linux-info systemd

DESCRIPTION="Fix Intel CPU Throttling on Linux"
HOMEPAGE="https://github.com/erpalma/throttled"

if [[ ${PV} == *9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="${HOMEPAGE}.git"
	EGIT_BRANCH="master"
else
	MY_P="v${PV}"
	SRC_URI="https://github.com/erpalma/${PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~x86"
fi

LICENSE="MIT"
SLOT="0"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
	dev-python/dbus-python[${PYTHON_USEDEP}]
	dev-python/pygobject[${PYTHON_USEDEP}]
"

CONFIG_CHECK="X86_MSR DEVMEM"

src_prepare() {
	default
	sed -i -e "s/ExecStart=.*/ExecStart=${PN}/" systemd/lenovo_fix.service
}

src_install() {
	default
	python_foreach_impl python_domodule mmio.py
	python_foreach_impl python_newscript lenovo_fix.py ${PN}
	dodoc README.md
	insinto /etc/
	doins etc/lenovo_fix.conf
	doinitd "${FILESDIR}"/"${PN}"
	systemd_newunit "${S}/systemd/lenovo_fix.service" "${PN}".service
}

Inherited Eclasses

Dependencies

RDEPEND

	dev-python/dbus-python[]
	dev-python/pygobject[]

Manifest for 0.9.2

Type File Size Source URLs
DIST throttled-0.9.2.tar.gz 21359 bytes https://github.com/erpalma/throttled/archive/v0.9.2.tar.gz