1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils autotools
7 DESCRIPTION="Extract information from Bluetooth devices"
8 HOMEPAGE="http://www.pentest.co.uk"
9 SRC_URI="http://www.pentest.co.uk/src/${P}.tar.bz2"
13 KEYWORDS="~amd64 ~x86"
16 DEPEND="net-wireless/bluez
26 # Apply patch to strip -Wimplicit-function-dec
27 epatch "${FILESDIR}"/${P}-configure.in.patch
29 # Apply patch for moved DTD and oui.txt
30 epatch "${FILESDIR}"/${P}-btscanner.xml.patch
37 emake DESTDIR="${D}" install || die "emake install failed"
40 dodir /usr/share/btscanner || die "dodir failed"
41 mv "${D}"/etc/btscanner.dtd "${D}"/usr/share/btscanner
42 mv "${D}"/usr/share/oui.txt "${D}"/usr/share/btscanner
44 dodoc AUTHORS README USAGE || die "dodoc failed"