summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-05-03 18:46:02 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-05-03 18:46:02 +0000
commitca9bc217ccf8b499f4bebb2ae9b2f255a27a67b4 (patch)
tree3d7235e15769eb7dc3cccde7a976b0394e12b8ce /sys-process
parentFix bug 312513, xinerama automagic, thanks for Andreas K. Huettel (diff)
downloadgentoo-2-ca9bc217ccf8b499f4bebb2ae9b2f255a27a67b4.tar.gz
gentoo-2-ca9bc217ccf8b499f4bebb2ae9b2f255a27a67b4.tar.bz2
gentoo-2-ca9bc217ccf8b499f4bebb2ae9b2f255a27a67b4.zip
Experimental USE flags openvz and vserver wrt #291091.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/htop/ChangeLog8
-rw-r--r--sys-process/htop/htop-0.8.3-r1.ebuild53
-rw-r--r--sys-process/htop/metadata.xml4
3 files changed, 64 insertions, 1 deletions
diff --git a/sys-process/htop/ChangeLog b/sys-process/htop/ChangeLog
index 62a5e7ea8442..398da463c712 100644
--- a/sys-process/htop/ChangeLog
+++ b/sys-process/htop/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-process/htop
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/htop/ChangeLog,v 1.82 2010/04/30 21:48:09 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-process/htop/ChangeLog,v 1.83 2010/05/03 18:46:02 ssuominen Exp $
+
+*htop-0.8.3-r1 (03 May 2010)
+
+ 03 May 2010; Samuli Suominen <ssuominen@gentoo.org> +htop-0.8.3-r1.ebuild,
+ metadata.xml:
+ Experimental USE flags openvz and vserver wrt #291091.
30 Apr 2010; Jeremy Olexa <darkside@gentoo.org> htop-0.8.3.ebuild:
Bump to EAPI3, add prefix keywords as tested in overlay. Implicit approval
diff --git a/sys-process/htop/htop-0.8.3-r1.ebuild b/sys-process/htop/htop-0.8.3-r1.ebuild
new file mode 100644
index 000000000000..4f6f51216848
--- /dev/null
+++ b/sys-process/htop/htop-0.8.3-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-process/htop/htop-0.8.3-r1.ebuild,v 1.1 2010/05/03 18:46:02 ssuominen Exp $
+
+EAPI=3
+inherit eutils flag-o-matic multilib
+
+DESCRIPTION="interactive process viewer"
+HOMEPAGE="http://htop.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux"
+IUSE="debug openvz vserver"
+
+DEPEND="sys-libs/ncurses[unicode]"
+
+pkg_setup() {
+ if use elibc_FreeBSD && ! [[ -f ${ROOT}/proc/stat && -f ${ROOT}/proc/meminfo ]]; then
+ eerror
+ eerror "htop needs /proc mounted to compile and work, to mount it type"
+ eerror "mount -t linprocfs none /proc"
+ eerror "or uncomment the example in /etc/fstab"
+ eerror
+ die "htop needs /proc mounted"
+ fi
+
+ if ! has_version sys-process/lsof; then
+ ewarn "To use lsof features in htop(what processes are accessing"
+ ewarn "what files), you must have sys-process/lsof installed."
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.8.1-non-printable-char-filter.patch
+}
+
+src_configure() {
+ useq debug && append-flags -DDEBUG
+
+ econf \
+ $(use_enable openvz) \
+ $(use_enable vserver) \
+ --enable-taskstats \
+ --enable-unicode
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc README ChangeLog TODO || die
+ rmdir "${ED}"/usr/{include,$(get_libdir)} || die
+}
diff --git a/sys-process/htop/metadata.xml b/sys-process/htop/metadata.xml
index f4d7f1e13821..e5995e2681d6 100644
--- a/sys-process/htop/metadata.xml
+++ b/sys-process/htop/metadata.xml
@@ -10,6 +10,10 @@
<email>ssuominen@gentoo.org</email>
<name>Samuli Suominen</name>
</maintainer>
+<use>
+ <flag name="openvz">Enable openvz support</flag>
+ <flag name="vserver">Enable vserver support</flag>
+</use>
<longdescription>
htop is an interactive process viewer for Linux. It aims to be a 'better top':
you can scroll the process list vertically and horizontally, and select a