summaryrefslogtreecommitdiff
blob: fa43becd49ac6d2f722438085cf39e9c2a6a3a81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nethogs/nethogs-0.8.0-r3.ebuild,v 1.2 2014/05/03 14:10:14 maekke Exp $

EAPI=5

inherit eutils git-r3 toolchain-funcs

DESCRIPTION="A small 'net top' tool, grouping bandwidth by process"
HOMEPAGE="http://nethogs.sf.net/"
#SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
EGIT_REPO_URI="https://github.com/raboof/nethogs.git"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""

RDEPEND="
	net-libs/libpcap
	sys-libs/ncurses
"
DEPEND="
	${RDEPEND}
	virtual/pkgconfig
"

DOCS=( Changelog DESIGN README )

src_prepare() {
	tc-export CC CXX PKG_CONFIG
}

src_compile() {
	emake NCURSES_LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)"
}

src_install() {
	emake DESTDIR="${ED}" prefix=/usr install
	dodoc ${DOCS[@]}
}