Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/latencytop/files/, sys-process/latencytop/
Date: Sun, 01 Jan 2017 17:20:24
Message-Id: 1483291208.1b64b1183a42846c6f6900cce6d43f60e72496b1.dilfridge@gentoo
1 commit: 1b64b1183a42846c6f6900cce6d43f60e72496b1
2 Author: Anthony Ryan <anthonyryan1 <AT> gmail <DOT> com>
3 AuthorDate: Sat Dec 31 18:17:06 2016 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 1 17:20:08 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b64b118
7
8 sys-process/latencytop: Misc improvements
9
10 * EAPI=5 (not 6 per base-system requirement)
11 * kernel-info config checking
12 * KEYWORD="~arm" (tested on armv7a RK3288)
13 * Convert patches to -p1
14
15 Ack'ed by polynomial-c
16 Closes: https://github.com/gentoo/gentoo/pull/3293
17
18 Package-Manager: Portage-2.3.3, Repoman-2.3.1
19
20 .../latencytop-0.5-01-mkdir-usr-sbin-as-well.patch | 4 +-
21 .../latencytop-0.5-03-clean-up-build-system.patch | 4 +-
22 .../latencytop-0.5-fsync-fix-implicit-decl.patch | 4 +-
23 sys-process/latencytop/latencytop-0.5-r1.ebuild | 53 ++++++++++++++++++++++
24 4 files changed, 59 insertions(+), 6 deletions(-)
25
26 diff --git a/sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch b/sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch
27 index 52d791e..d5a60c9 100644
28 --- a/sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch
29 +++ b/sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch
30 @@ -7,8 +7,8 @@ Subject: [PATCH] mkdir /usr/sbin as well
31
32 diff --git a/src/Makefile b/src/Makefile
33 index fdf1616..de24551 100644
34 ---- a/src/Makefile
35 -+++ b/src/Makefile
36 +--- a/Makefile
37 ++++ b/Makefile
38 @@ -30,6 +30,7 @@
39
40 install: latencytop
41
42 diff --git a/sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch b/sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch
43 index 8910e32..4c3461b 100644
44 --- a/sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch
45 +++ b/sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch
46 @@ -13,8 +13,8 @@ Signed-off-by: Mike Frysinger <vapier@g.o>
47
48 diff --git a/src/Makefile b/src/Makefile
49 index de24551..9a3cc05 100644
50 ---- a/src/Makefile
51 -+++ b/src/Makefile
52 +--- a/Makefile
53 ++++ b/Makefile
54 @@ -3,14 +3,22 @@ HAS_GTK_GUI = 1
55
56 DESTDIR =
57
58 diff --git a/sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch b/sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch
59 index ef57e9e..33f2bc2 100644
60 --- a/sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch
61 +++ b/sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch
62 @@ -13,8 +13,8 @@ Signed-off-by: Mike Frysinger <vapier@g.o>
63
64 diff --git a/src/fsync.c b/src/fsync.c
65 index 1706571..3bec719 100644
66 ---- a/src/fsync.c
67 -+++ b/src/fsync.c
68 +--- a/fsync.c
69 ++++ b/fsync.c
70 @@ -30,6 +30,7 @@
71 #include <string.h>
72 #include <ncurses.h>
73
74 diff --git a/sys-process/latencytop/latencytop-0.5-r1.ebuild b/sys-process/latencytop/latencytop-0.5-r1.ebuild
75 new file mode 100644
76 index 00000000..68205b1
77 --- /dev/null
78 +++ b/sys-process/latencytop/latencytop-0.5-r1.ebuild
79 @@ -0,0 +1,53 @@
80 +# Copyright 1999-2017 Gentoo Foundation
81 +# Distributed under the terms of the GNU General Public License v2
82 +# $Id$
83 +
84 +EAPI=5
85 +
86 +inherit eutils linux-info
87 +
88 +DESCRIPTION="tool for identifying where in the system latency is happening"
89 +HOMEPAGE="http://git.infradead.org/latencytop.git"
90 +
91 +# Upstream is long gone, so we explicitly use our mirrors for the tarball
92 +SRC_URI="mirror://gentoo/${P}.tar.gz"
93 +
94 +CONFIG_CHECK="~LATENCYTOP"
95 +
96 +LICENSE="GPL-2"
97 +SLOT="0"
98 +KEYWORDS="~amd64 ~arm ~x86"
99 +IUSE="gtk"
100 +
101 +RDEPEND="dev-libs/glib:2
102 + gtk? ( x11-libs/gtk+:2 )
103 + sys-libs/ncurses:0="
104 +DEPEND="${RDEPEND}
105 + virtual/pkgconfig"
106 +
107 +# Upstream is dead, so there are no bugs to track for any
108 +# of these patches.
109 +PATCHES=(
110 + "${FILESDIR}/${P}-01-mkdir-usr-sbin-as-well.patch"
111 + "${FILESDIR}/${P}-03-clean-up-build-system.patch"
112 + "${FILESDIR}/${P}-fsync-fix-implicit-decl.patch"
113 +)
114 +
115 +pkg_pretend() {
116 + linux-info_pkg_setup
117 +}
118 +
119 +pkg_setup() {
120 + linux-info_pkg_setup
121 +}
122 +
123 +src_prepare() {
124 + epatch "${PATCHES[@]}"
125 +
126 + # Without a configure script, we toggle bools manually
127 + # This also needs to be done after patches are applied
128 + # since this bool doesn't exist outside our patches
129 + if ! use gtk; then
130 + sed -i -e "/HAS_GTK_GUI = 1/d" Makefile || die
131 + fi
132 +}