summaryrefslogtreecommitdiff
blob: 6e3be2c60800c00f1bbefc23f9adadd93e5e2104 (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-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5
inherit eutils ltprune

DESCRIPTION="Libpcap wrapper library to navigate to arbitrary packets in a tcpdump trace file"
HOMEPAGE="http://netdude.sourceforge.net/"
SRC_URI="mirror://sourceforge/netdude/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm ~sparc x86"
IUSE="doc static-libs"

DEPEND="net-libs/libpcap"
RDEPEND="${DEPEND}"

RESTRICT="test"

DOCS=( AUTHORS ChangeLog README )

src_prepare() {
	epatch "${FILESDIR}"/${P}-includes.patch
}

src_configure() {
	econf $(use_enable static-libs static)
}

src_compile() {
	emake SUBDIRS="src docs"
}

src_install() {
	default
	rm -fr "${D}"/usr/share/gtk-doc
	use doc && dohtml -r docs/*.css docs/html/*.html docs/images
	prune_libtool_files
}