Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/tuned/
Date: Wed, 22 Jan 2020 06:43:51
Message-Id: 1579674857.208e6cae7a28c505808777b7d0546aa7a93d9d9a.dlan@gentoo
1 commit: 208e6cae7a28c505808777b7d0546aa7a93d9d9a
2 Author: Ewoud Kohl van Wijngaarden <ewoud <AT> kohlvanwijngaarden <DOT> nl>
3 AuthorDate: Sat Jan 4 17:40:09 2020 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 22 06:34:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=208e6cae
7
8 sys-apps/tuned: Add 2.13.0
9
10 * Move from Python 2 to Python 3.
11 * Correct DOCDIR patching
12 * Optimize Python files
13 * Update XDG icon cache
14
15 Closes: https://bugs.gentoo.org/704760
16 Closes: https://github.com/gentoo/gentoo/pull/14248
17 Package-Manager: Portage-2.3.79, Repoman-2.3.16
18 Signed-off-by: Ewoud Kohl van Wijngaarden <ewoud <AT> kohlvanwijngaarden.nl>
19 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
20
21 sys-apps/tuned/Manifest | 1 +
22 sys-apps/tuned/tuned-2.13.0.ebuild | 59 ++++++++++++++++++++++++++++++++++++++
23 2 files changed, 60 insertions(+)
24
25 diff --git a/sys-apps/tuned/Manifest b/sys-apps/tuned/Manifest
26 index 1b78512c74a..48a49f8969e 100644
27 --- a/sys-apps/tuned/Manifest
28 +++ b/sys-apps/tuned/Manifest
29 @@ -1,3 +1,4 @@
30 DIST tuned-2.10.0.tar.gz 160254 BLAKE2B 0a09b4b870ec153adc62de7811af561ddb3967d459b1d5e8b6f02c5ac036ed170ad3368d18fc1b3fd40649335035cce971a54e1eda8745c77e836a3b2d892a83 SHA512 e0674533f17ac27cd3647808cda1f51d9905f563521af8cb3ffd1854098d6e2ca1adac82e542e6bdf86cce7e659303464eac50b8823167360783a75843d02a60
31 +DIST tuned-2.13.0.tar.gz 193816 BLAKE2B 1e51a9da855f54db9ac8ed6e764c091d513c1101771422a62c7c501dc3c8741430eb3503803b408709868d16d4791fbedb9dbc088b36fb693f065a1b6054fa15 SHA512 d81b0a80f911fe808ca324319da3e42c3c15196c0c37343d33b45c2b34f33e205e2913d77ffda8598379a91ef72ab73d88d7b83a4684b6a067e3f36d98a85927
32 DIST tuned-2.7.0.tar.bz2 107541 BLAKE2B b26924a091fd78bbc7e61c8a45b49808d132eb5ebd3fdc00f96be7eaddcffd88183fa59595a29e2c402b2c434bfdb706601d397c2ebca9a5822c6a3416373465 SHA512 ce09dd854e89762fa376f7f63a59feb384940b5dbc5ad74370b33bbda3f060f09e79d2988de3535b072ad749ab7be43ccaaa46a343a9df50eec6c40d7ab85d55
33 DIST tuned-2.7.1.tar.bz2 107471 BLAKE2B c9259ee5ce502100edc7c537f6857de3a6af4af0be1773e0c9422c10de16b4a513d514532da26764b0a743f943577d527919f329ff48a012e269fd2a0ac59f10 SHA512 4a4785e3d20ed7f1c2969066676f5fa3d8286b500de1c63169d745e701e1410092d29429d25c13c3515d37ef73dd297945d69db176d693d4152bfbe9ba626833
34
35 diff --git a/sys-apps/tuned/tuned-2.13.0.ebuild b/sys-apps/tuned/tuned-2.13.0.ebuild
36 new file mode 100644
37 index 00000000000..fe231367c6c
38 --- /dev/null
39 +++ b/sys-apps/tuned/tuned-2.13.0.ebuild
40 @@ -0,0 +1,59 @@
41 +# Copyright 1999-2020 Gentoo Authors
42 +# Distributed under the terms of the GNU General Public License v2
43 +
44 +EAPI=7
45 +
46 +PYTHON_COMPAT=( python3_{6,7} )
47 +
48 +inherit python-single-r1 xdg-utils
49 +
50 +DESCRIPTION="Daemon for monitoring and adaptive tuning of system devices"
51 +HOMEPAGE="https://github.com/redhat-performance/tuned"
52 +SRC_URI="https://github.com/redhat-performance/tuned/archive/v${PV}.tar.gz -> ${P}.tar.gz"
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +KEYWORDS="~amd64"
57 +
58 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
59 +
60 +DEPEND="
61 + ${PYTHON_DEPS}
62 + dev-python/configobj[${PYTHON_USEDEP}]
63 + dev-python/decorator[${PYTHON_USEDEP}]
64 + dev-python/pyudev[${PYTHON_USEDEP}]
65 + dev-python/dbus-python[${PYTHON_USEDEP}]
66 + dev-python/pygobject:3[${PYTHON_USEDEP}]
67 + dev-python/python-linux-procfs[${PYTHON_USEDEP}]"
68 +
69 +RDEPEND="
70 + ${DEPEND}
71 + sys-apps/dbus
72 + sys-apps/ethtool
73 + sys-power/powertop
74 + dev-util/systemtap"
75 +
76 +RESTRICT="test"
77 +
78 +src_prepare() {
79 + default
80 +
81 + sed -i \
82 + -e "/^export DOCDIR/s/$/&\-\$(VERSION)/g" \
83 + -e "/\$(DESTDIR)\/run\/tuned/d" \
84 + -e "/\$(DESTDIR)\/var\/lib\/tuned/d" \
85 + -e "/\$(DESTDIR)\/var\/log\/tuned/d" \
86 + Makefile || die
87 +}
88 +
89 +src_install() {
90 + default
91 +
92 + newinitd "${FILESDIR}/${PN}.initd" "${PN}"
93 + python_fix_shebang "${D}"
94 + python_optimize
95 +}
96 +
97 +pkg_postinst() {
98 + xdg_icon_cache_update
99 +}