# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic subversion IUSE="debug" DESCRIPTION="interactive process viewer - Live CVS version" HOMEPAGE="http://htop.sourceforge.net" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" DEPEND="sys-libs/ncurses !sys-process/htop" ESVN_REPO_URI="https://htop.svn.sourceforge.net/svnroot/htop/trunk" ESVN_PROJECT="htop" ESVN_BOOTSTRAP="NOCONFIGURE=1 ./autogen.sh" src_unpack() { subversion_src_unpack } pkg_setup() { if use elibc_FreeBSD ; then elog elog "htop needs /proc mounted to work, to mount it type" elog "mount -t linprocfs none /proc" elog "or uncomment the example in /etc/fstab" elog fi } src_compile() { useq debug && append-flags -O -ggdb -DDEBUG econf || die "configure failed" emake || die "make failed" } src_install() { emake DESTDIR="${D}" install || die "make install failed" dodoc README ChangeLog TODO } pkg_postinst() { ewarn ewarn "This is a live CVS ebuild, it is unstable by nature, and is" ewarn "not related to the Gentoo Developers in any way, so don't" ewarn "ever report a bug about sys-process/htop if you are using" ewarn "this ebuild." ewarn ewarn "For information about the changes in this release, please" ewarn "refer to the ChangeLog file." ewarn }