summaryrefslogtreecommitdiff
path: root/net-wireless/btscanner/btscanner-2.1-r4.ebuild
blob: d2abb5add75117843c7b6a1d52d3855b133bff7c (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /root/portage/net-wireless/btscanner/btscanner-2.1.ebuild,v 1.1.1.1 2006/03/09 22:54:57 grimmlin Exp $

EAPI=4

inherit eutils autotools

DESCRIPTION="A utility for bluetooth scanning and discovery"
HOMEPAGE="http://www.pentest.co.uk/cgi-bin/viewcat.cgi?cat=downloads"
SRC_URI="http://www.pentest.co.uk/src/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=" || ( net-wireless/bluez
	      ( >=net-wireless/bluez-utils-2.15
		>=net-wireless/bluez-libs-2.15 ) )
	>=dev-libs/libxml2-2.6
	>sys-libs/ncurses-5.4"

src_prepare() {
	sed -i -e 's/-Wimplicit-function-dec //g' configure.in
	sed -i 's#-std=c99#-std=gnu99#g' configure.in
	eautoreconf
	sed -i -e '/dtd/ s:/usr/local/:/:' -e '/oui/ s:local/share:share/btscanner:' btscanner.xml
}
src_configure() {
	econf --datadir="/usr/share/btscanner"
}
src_compile() {
	emake || die "emake failed"
}
src_install() {
	einstall datadir="${D}/usr/share/btscanner"
	dodoc AUTHORS ChangeLog README NEWS TODO USAGE
}