diff options
author | 2021-11-05 15:54:54 +0100 | |
---|---|---|
committer | 2021-11-05 15:54:54 +0100 | |
commit | d19ac7b9be0901d37786ea2be918d1ad94cf645b (patch) | |
tree | abd1284df3ee161373e1441a706acbbfd54a1233 /sys-process/latencytop/latencytop-0.5-r2.ebuild | |
parent | sys-block/noflushd: Port to EAPI 7 (diff) | |
download | gentoo-d19ac7b9be0901d37786ea2be918d1ad94cf645b.tar.gz gentoo-d19ac7b9be0901d37786ea2be918d1ad94cf645b.tar.bz2 gentoo-d19ac7b9be0901d37786ea2be918d1ad94cf645b.zip |
sys-process/latencytop: Port to EAPI 7
Closes: https://bugs.gentoo.org/819177
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'sys-process/latencytop/latencytop-0.5-r2.ebuild')
-rw-r--r-- | sys-process/latencytop/latencytop-0.5-r2.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/sys-process/latencytop/latencytop-0.5-r2.ebuild b/sys-process/latencytop/latencytop-0.5-r2.ebuild new file mode 100644 index 000000000000..fa5403254583 --- /dev/null +++ b/sys-process/latencytop/latencytop-0.5-r2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit 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 + sys-libs/ncurses:0= + gtk? ( x11-libs/gtk+:2 ) +" +DEPEND="${RDEPEND}" +BDEPEND="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() { + default + + # 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 +} |