diff options
author | Anthony Ryan <anthonyryan1@gmail.com> | 2016-12-31 13:17:06 -0500 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-01-01 18:20:08 +0100 |
commit | 1b64b1183a42846c6f6900cce6d43f60e72496b1 (patch) | |
tree | 8d2486676303ad146db4739615a5760cc27687ec /sys-process/latencytop | |
parent | games-simulation/openttd: require icu-layoutex alongside with recent icu (diff) | |
download | gentoo-1b64b1183a42846c6f6900cce6d43f60e72496b1.tar.gz gentoo-1b64b1183a42846c6f6900cce6d43f60e72496b1.tar.bz2 gentoo-1b64b1183a42846c6f6900cce6d43f60e72496b1.zip |
sys-process/latencytop: Misc improvements
* EAPI=5 (not 6 per base-system requirement)
* kernel-info config checking
* KEYWORD="~arm" (tested on armv7a RK3288)
* Convert patches to -p1
Ack'ed by polynomial-c
Closes: https://github.com/gentoo/gentoo/pull/3293
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'sys-process/latencytop')
4 files changed, 59 insertions, 6 deletions
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 index 52d791e7a601..d5a60c938754 100644 --- 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 @@ -7,8 +7,8 @@ Subject: [PATCH] mkdir /usr/sbin as well diff --git a/src/Makefile b/src/Makefile index fdf1616..de24551 100644 ---- a/src/Makefile -+++ b/src/Makefile +--- a/Makefile ++++ b/Makefile @@ -30,6 +30,7 @@ install: latencytop 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 index 8910e32bbc2b..4c3461b08051 100644 --- 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 @@ -13,8 +13,8 @@ Signed-off-by: Mike Frysinger <vapier@gentoo.org> diff --git a/src/Makefile b/src/Makefile index de24551..9a3cc05 100644 ---- a/src/Makefile -+++ b/src/Makefile +--- a/Makefile ++++ b/Makefile @@ -3,14 +3,22 @@ HAS_GTK_GUI = 1 DESTDIR = 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 index ef57e9e04c00..33f2bc278600 100644 --- 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 @@ -13,8 +13,8 @@ Signed-off-by: Mike Frysinger <vapier@gentoo.org> diff --git a/src/fsync.c b/src/fsync.c index 1706571..3bec719 100644 ---- a/src/fsync.c -+++ b/src/fsync.c +--- a/fsync.c ++++ b/fsync.c @@ -30,6 +30,7 @@ #include <string.h> #include <ncurses.h> diff --git a/sys-process/latencytop/latencytop-0.5-r1.ebuild b/sys-process/latencytop/latencytop-0.5-r1.ebuild new file mode 100644 index 000000000000..68205b18ef26 --- /dev/null +++ b/sys-process/latencytop/latencytop-0.5-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils linux-info + +DESCRIPTION="tool for identifying where in the system latency is happening" +HOMEPAGE="http://git.infradead.org/latencytop.git" + +# Upstream is long gone, so we explicitly use our mirrors for the tarball +SRC_URI="mirror://gentoo/${P}.tar.gz" + +CONFIG_CHECK="~LATENCYTOP" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="gtk" + +RDEPEND="dev-libs/glib:2 + gtk? ( x11-libs/gtk+:2 ) + sys-libs/ncurses:0=" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +# Upstream is dead, so there are no bugs to track for any +# of these patches. +PATCHES=( + "${FILESDIR}/${P}-01-mkdir-usr-sbin-as-well.patch" + "${FILESDIR}/${P}-03-clean-up-build-system.patch" + "${FILESDIR}/${P}-fsync-fix-implicit-decl.patch" +) + +pkg_pretend() { + linux-info_pkg_setup +} + +pkg_setup() { + linux-info_pkg_setup +} + +src_prepare() { + epatch "${PATCHES[@]}" + + # Without a configure script, we toggle bools manually + # This also needs to be done after patches are applied + # since this bool doesn't exist outside our patches + if ! use gtk; then + sed -i -e "/HAS_GTK_GUI = 1/d" Makefile || die + fi +} |