1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
8 inherit python-single-r1 xdg-utils
10 DESCRIPTION="Daemon for monitoring and adaptive tuning of system devices"
11 HOMEPAGE="https://github.com/redhat-performance/tuned"
12 SRC_URI="https://github.com/redhat-performance/tuned/archive/v${PV}.tar.gz -> ${P}.tar.gz"
18 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
22 $(python_gen_cond_dep '
23 dev-python/configobj[${PYTHON_MULTI_USEDEP}]
24 dev-python/decorator[${PYTHON_MULTI_USEDEP}]
25 dev-python/pyudev[${PYTHON_MULTI_USEDEP}]
26 dev-python/dbus-python[${PYTHON_MULTI_USEDEP}]
27 dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
28 dev-python/python-linux-procfs[${PYTHON_MULTI_USEDEP}]
44 -e "/^export DOCDIR/s/$/&\-\$(VERSION)/g" \
45 -e "/\$(DESTDIR)\/run\/tuned/d" \
46 -e "/\$(DESTDIR)\/var\/lib\/tuned/d" \
47 -e "/\$(DESTDIR)\/var\/log\/tuned/d" \
54 newinitd "${FILESDIR}/${PN}.initd" "${PN}"
55 python_fix_shebang "${D}"