| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-wireless/spectools/spectools-2006.09.1.ebuild,v 1.2 2012/06/11 02:34:03 zerochaos Exp $
|
| 4 |
|
| 5 |
MY_PN=wispy-tools
|
| 6 |
MY_PV=${PV/\./-}
|
| 7 |
MY_PV=${MY_PV/./-R}
|
| 8 |
MY_P="${MY_PN}-${MY_PV}"
|
| 9 |
S=${WORKDIR}/${MY_P}
|
| 10 |
|
| 11 |
DESCRIPTION="Tools for the MetaGeek Wi-Spy spectrum analyzer"
|
| 12 |
HOMEPAGE="http://www.kismetwireless.net/wispy.shtml"
|
| 13 |
SRC_URI="http://www.kismetwireless.net/code/${MY_P}.tar.gz"
|
| 14 |
|
| 15 |
LICENSE="GPL-2"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="~amd64 ~ppc ~x86"
|
| 18 |
IUSE="debug gtk ncurses"
|
| 19 |
|
| 20 |
DEPEND="=virtual/libusb-0*
|
| 21 |
ncurses? ( sys-libs/ncurses )
|
| 22 |
gtk? ( =x11-libs/gtk+-2* )"
|
| 23 |
RDEPEND="${DEPEND}"
|
| 24 |
|
| 25 |
src_compile() {
|
| 26 |
econf $(use_with gtk gtk-version 2) || die "econf failed"
|
| 27 |
|
| 28 |
emake wispy_log || die "emake wispy_log failed"
|
| 29 |
|
| 30 |
if use debug; then
|
| 31 |
emake wispy_raw || die "emake wispy_raw failed"
|
| 32 |
fi
|
| 33 |
|
| 34 |
if use ncurses; then
|
| 35 |
emake wispy_curses || die "emake wispy_curses failed"
|
| 36 |
fi
|
| 37 |
|
| 38 |
if use gtk; then
|
| 39 |
emake wispy_gtk || die "emake wispy_gtk failed"
|
| 40 |
fi
|
| 41 |
}
|
| 42 |
|
| 43 |
src_install() {
|
| 44 |
dobin wispy_log
|
| 45 |
use debug && dobin wispy_raw
|
| 46 |
use ncurses && dobin wispy_curses
|
| 47 |
use gtk && dobin wispy_gtk
|
| 48 |
|
| 49 |
dodoc README
|
| 50 |
}
|