summaryrefslogtreecommitdiff
blob: fff7b0ad638fb74b71bd63f693e875bd505c12d0 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/xnetload/xnetload-1.11.3-r1.ebuild,v 1.4 2006/08/11 20:25:12 corsair Exp $

inherit toolchain-funcs

DESCRIPTION="This little tool displays a count and a graph of the traffic over a specified network connection."
HOMEPAGE="http://www.xs4all.nl/~rsmith/software/"
SRC_URI="http://www.xs4all.nl/~rsmith/software/${P}.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ppc ppc64 ~sparc x86"

DEPEND="|| (
	( >=x11-libs/libX11-1.0.0
	>=x11-libs/libXmu-1.0.0
	>=x11-libs/libXt-1.0.0
	>=x11-libs/libXaw-1.0.1	)
	<virtual/x11-7 )"

IUSE=""

src_unpack() {
	unpack ${A}
	cd "${S}"
	sed -i -e "s:CC = gcc:CC = $(tc-getCC):" \
		-e "s:CFLAGS = -pipe -O2 -Wall:CFLAGS = ${CFLAGS} -Wall:" \
		-e "s:LFLAGS = -s -pipe:LFLAGS = ${LDFLAGS}:" \
		-e "s:gcc -MM:$(tc-getCC) -MM:" \
		-e "s:/usr/X11R6:/usr:g" Makefile || die "sed failed in Makefile"
}

src_install() {
	dobin xnetload
	doman xnetload.1
	dodoc README ChangeLog
}