summaryrefslogtreecommitdiff
blob: 6d7133749563d05e37cf3d2c12c6b6b4ea8aefbb (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netdude/netdude-0.4.8a.ebuild,v 1.1 2008/01/05 20:20:46 jokey Exp $

DESCRIPTION="Netdude is a front-end to the libnetdude packet manipulation library"
HOMEPAGE="http://netdude.sourceforge.net/index.html"
SRC_URI="mirror://sourceforge/netdude/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86"
IUSE="doc"

DEPEND=">=net-libs/libnetdude-0.10a
	=x11-libs/gtk+-1*
	virtual/fam"

RDEPEND="${DEPEND}
	net-analyzer/tcpdump
	>=x11-libs/libX11-1.0.0
	>=x11-libs/libXext-1.0.0"

src_compile() {
	econf $(use_enable doc gtk-doc) || die "econf failed"
	emake -j1 || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"

	use doc || rm -rf "${D}"/usr/share/gtk-doc
}