Compare commits
No commits in common. "39ce51f7944665466bb7b71c641bb613175df6b7" and "8c7684eda02eafa6c0c3877e57bd45f0077afc4e" have entirely different histories.
39ce51f794
...
8c7684eda0
@ -1,22 +0,0 @@
|
||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require github [ user="vsergeev" ]
|
||||
require pypi
|
||||
require setup-py [ import=setuptools test=pytest ]
|
||||
|
||||
SUMMARY="A pure Python 2/3 library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux"
|
||||
HOMEPAGE="https://github.com/vsergeev/python-periphery ${HOMEPAGE}"
|
||||
|
||||
LICENCES="MIT"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
test:
|
||||
dev-python/pytest-runner[python_abis:*(-)?]
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
description="Workaround for Intel throttling issues on Thinkpads in Linux"
|
||||
|
||||
command="/usr/lib/lenovo-throttling-fix/lenovo_fix.py"
|
||||
pidfile="/run/lenovo-throttling-fix.pid"
|
||||
command_background="yes"
|
||||
@ -1,41 +0,0 @@
|
||||
# Copyright 2018 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require github [ user="erpalma" tag="v${PV}" ]
|
||||
require python [ blacklist=2 multibuild=false ]
|
||||
require systemd-service [ systemd_files=[ ] ]
|
||||
require openrc-service
|
||||
|
||||
SUMMARY="Workaround for Intel throttling issues on Thinkpads in Linux"
|
||||
|
||||
LICENCES="MIT"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS=""
|
||||
|
||||
DEPENDENCIES="
|
||||
build+run:
|
||||
dev-python/dbus-python[python_abis:*(-)?]
|
||||
dev-python/psutil[python_abis:*(-)?]
|
||||
gnome-bindings/pygobject[python_abis:*(-)?]
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
insinto /etc
|
||||
doins etc/lenovo_fix.conf
|
||||
systemd_files_doins "${SYSTEMDSYSTEMUNITDIR}" systemd/lenovo_fix.service
|
||||
|
||||
edo sed -i -e "s:env python[[:digit:].]*$:env ${PYTHON##*/}:" \
|
||||
lenovo_fix.py
|
||||
insinto /usr/$(exhost --target)/lib/lenovo-throttling-fix
|
||||
doins mmio.py
|
||||
exeinto /usr/$(exhost --target)/lib/lenovo-throttling-fix
|
||||
doexe lenovo_fix.py
|
||||
python_bytecompile /usr/$(exhost --target)/lib/lenovo-throttling-fix
|
||||
|
||||
install_openrc_files
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user