blob: 7fa157aff6f78bb29af075cb1c8655fc35a66fb9 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/bwmon/bwmon-1.3.ebuild,v 1.19 2009/06/02 18:01:57 mr_bones_ Exp $
inherit toolchain-funcs flag-o-matic
DESCRIPTION="Simple ncurses bandwidth monitor"
HOMEPAGE="http://bwmon.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
RESTRICT="mirror"
DEPEND="sys-libs/ncurses"
RDEPEND="${DEPEND}"
SLOT="0"
LICENSE="GPL-2 public-domain"
KEYWORDS="amd64 hppa ~ppc sparc x86"
IUSE=""
doecho() {
echo "$@"
"$@"
}
src_compile() {
append-flags -I "${S}"/include -D__THREADS
doecho $(tc-getCC) -o ${PN} \
${CFLAGS} ${LDFLAGS} \
src/${PN}.c -lncurses -lpthread \
|| die "build failed"
}
src_install () {
dobin ${PN} || die
dodoc README || die
}
|