summaryrefslogtreecommitdiff
blob: ac76a7a74f1efee30180820f53390f0b32872823 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/bwmon/bwmon-1.3-r2.ebuild,v 1.6 2012/11/21 11:16:40 ago Exp $

EAPI="4"

inherit eutils toolchain-funcs

DESCRIPTION="Simple ncurses bandwidth monitor"
HOMEPAGE="http://bwmon.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

DEPEND="sys-libs/ncurses"
RDEPEND="${DEPEND}"

SLOT="0"
LICENSE="GPL-2 public-domain"
KEYWORDS="amd64 hppa ppc sparc x86"
IUSE=""

src_prepare() {
	epatch "${FILESDIR}"/${P}-build.patch
	# Fix a typo in help wrt bug #263326
	epatch "${FILESDIR}"/${P}-typo-fix.patch
	# Fix an overflow wrt bug #441420
	epatch "${FILESDIR}"/${P}-overflow.patch
}

src_compile() {
	emake -Csrc CC="$(tc-getCC)"
}

src_install () {
	dobin ${PN}
	dodoc README
}