summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-process/latencytop
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-process/latencytop')
-rw-r--r--sys-process/latencytop/Manifest1
-rw-r--r--sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch22
-rw-r--r--sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch75
-rw-r--r--sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch28
-rw-r--r--sys-process/latencytop/latencytop-0.5.ebuild38
-rw-r--r--sys-process/latencytop/metadata.xml5
6 files changed, 169 insertions, 0 deletions
diff --git a/sys-process/latencytop/Manifest b/sys-process/latencytop/Manifest
new file mode 100644
index 000000000000..bc58ea9b3663
--- /dev/null
+++ b/sys-process/latencytop/Manifest
@@ -0,0 +1 @@
+DIST latencytop-0.5.tar.gz 25374 SHA256 9e7f72fbea7bd918e71212a1eabaad8488d2c602205d2e3c95d62cd57e9203ef SHA512 81db52b29a5fd2a5e14863f1cbf948b15ea68ff41a826cdf323215c2c8b0334144aaccf00cb49a9f7c195efcb5ff49fbf2b687a8bd4b604d338af6628d319b2c WHIRLPOOL 4b189706105fafcaad8b0583516b1ffdb69d490f39e9ff272c2871aad4306a7e1d6dcd071bd020469679f4676035e736f7c8e41c808dceeaf260e3d0fa3bc088
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
new file mode 100644
index 000000000000..52d791e7a601
--- /dev/null
+++ b/sys-process/latencytop/files/latencytop-0.5-01-mkdir-usr-sbin-as-well.patch
@@ -0,0 +1,22 @@
+From d9685bb69c581489ef1c4278df8990fe02b0728d Mon Sep 17 00:00:00 2001
+From: Arjan van de Ven <arjan@linux.intel.com>
+Date: Tue, 28 Apr 2009 14:44:34 +0100
+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
+@@ -30,6 +30,7 @@
+
+ install: latencytop
+ mkdir -p $(DESTDIR)/usr/share/latencytop
++ mkdir -p $(DESTDIR)/$(SBINDIR)
+ install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans
+ install -m 0644 *.png $(DESTDIR)/usr/share/latencytop/
+ install -m 0755 latencytop $(DESTDIR)$(SBINDIR)/
+--
+1.6.5.4
+
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
new file mode 100644
index 000000000000..c33c127dab6b
--- /dev/null
+++ b/sys-process/latencytop/files/latencytop-0.5-03-clean-up-build-system.patch
@@ -0,0 +1,75 @@
+From e024a79b7b16b09bfe88222ed7f43b969b3eb444 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Fri, 18 Dec 2009 10:49:19 -0500
+Subject: [PATCH] clean up build system
+
+Respect env build settings (compiler flags and tools) and install the man
+page for people.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ src/Makefile | 32 ++++++++++++++++++--------------
+ 1 files changed, 18 insertions(+), 14 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index de24551..9a3cc05 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -3,14 +3,22 @@ HAS_GTK_GUI = 1
+
+ DESTDIR =
+ SBINDIR = /usr/sbin
+-XCFLAGS = -W -g `pkg-config --cflags glib-2.0` -D_FORTIFY_SOURCE=2 -Wno-sign-compare
+-LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncursesw
++DATADIR = /usr/share/latencytop
++MANDIR = /usr/share/man
++MAN8DIR = $(MANDIR)/man8
++PKG_CONFIG ?= pkg-config
++CFLAGS ?= -g -W
++CPPFLAGS ?= -D_FORTIFY_SOURCE=2
++override CFLAGS += -Wno-sign-compare
++override CPPFLAGS += `$(PKG_CONFIG) --cflags glib-2.0`
++LDFLAGS ?= -Wl,--as-needed
++LDADD = `$(PKG_CONFIG) --libs glib-2.0` -lncursesw
+
+ OBJS= latencytop.o text_display.o translate.o fsync.o
+
+-ifdef HAS_GTK_GUI
+- XCFLAGS += `pkg-config --cflags gtk+-2.0` -DHAS_GTK_GUI
+- LDF += `pkg-config --libs gtk+-2.0`
++ifeq ($(HAS_GTK_GUI),1)
++ override CPPFLAGS += `$(PKG_CONFIG) --cflags gtk+-2.0` -DHAS_GTK_GUI
++ LDADD += `$(PKG_CONFIG) --libs gtk+-2.0`
+ OBJS += gtk_display.o
+ endif
+
+@@ -24,19 +32,17 @@ endif
+ # libncursesw5-dev package.
+ #
+
+-# We write explicity this "implicit rule"
+-%.o : %.c
+- gcc -c $(CFLAGS) $(XCFLAGS) $< -o $@
+-
+ latencytop: $(OBJS) latencytop.h Makefile
+- gcc $(CFLAGS) $(OBJS) $(LDF) -o latencytop
++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LDADD)
+
+ clean:
+ rm -f *~ latencytop DEADJOE *.o
+
+ install: latencytop
+- mkdir -p $(DESTDIR)/usr/share/latencytop
+- mkdir -p $(DESTDIR)/$(SBINDIR)
+- install -m 0644 latencytop.trans $(DESTDIR)/usr/share/latencytop/latencytop.trans
+- install -m 0644 *.png $(DESTDIR)/usr/share/latencytop/
++ mkdir -p $(DESTDIR)$(DATADIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(MAN8DIR)
++ install -m 0644 latencytop.trans $(DESTDIR)$(DATADIR)/latencytop.trans
++ifeq ($(HAS_GTK_GUI),1)
++ install -m 0644 *.png $(DESTDIR)$(DATADIR)/
++endif
++ install -m 0644 *.8 $(DESTDIR)$(MAN8DIR)/
+ install -m 0755 latencytop $(DESTDIR)$(SBINDIR)/
+--
+1.6.5.4
+
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
new file mode 100644
index 000000000000..ef57e9e04c00
--- /dev/null
+++ b/sys-process/latencytop/files/latencytop-0.5-fsync-fix-implicit-decl.patch
@@ -0,0 +1,28 @@
+From 60427a259ba76b8238198e1f17a0c3b06491be3c Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Fri, 18 Dec 2009 10:48:39 -0500
+Subject: [PATCH] fsync: fix implicit decl
+
+fsync.c: In function 'fsync_display':
+fsync.c:330: warning: implicit declaration of function 'gettimeofday'
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ src/fsync.c | 1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/src/fsync.c b/src/fsync.c
+index 1706571..3bec719 100644
+--- a/src/fsync.c
++++ b/src/fsync.c
+@@ -30,6 +30,7 @@
+ #include <string.h>
+ #include <ncurses.h>
+ #include <time.h>
++#include <sys/time.h>
+ #include <wchar.h>
+ #include <ctype.h>
+
+--
+1.6.5.4
+
diff --git a/sys-process/latencytop/latencytop-0.5.ebuild b/sys-process/latencytop/latencytop-0.5.ebuild
new file mode 100644
index 000000000000..c130c77b3555
--- /dev/null
+++ b/sys-process/latencytop/latencytop-0.5.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="tool for identifying where in the system latency is happening"
+HOMEPAGE="http://www.latencytop.org/"
+SRC_URI="http://www.latencytop.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="gtk unicode"
+
+RDEPEND="=dev-libs/glib-2*
+ gtk? ( =x11-libs/gtk+-2* )
+ sys-libs/ncurses"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-*.patch
+ sed -i \
+ -e "/^HAS_GTK_GUI/s:=.*:=$(use gtk && echo 1):" \
+ Makefile || die
+}
+
+src_compile() {
+ tc-export CC PKG_CONFIG
+ emake || die
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+}
diff --git a/sys-process/latencytop/metadata.xml b/sys-process/latencytop/metadata.xml
new file mode 100644
index 000000000000..96a2d586367d
--- /dev/null
+++ b/sys-process/latencytop/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+</pkgmetadata>