1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils toolchain-funcs udev
11 MY_P="${MY_PN}-${MY_PV}"
14 if [[ ${PV} == "9999" ]] ; then
15 EGIT_REPO_URI="https://www.kismetwireless.net/${PN}.git"
19 SRC_URI="https://www.kismetwireless.net/code/${MY_P}.tar.xz"
20 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
23 DESCRIPTION="Spectrum Analyzer for Meta-Geek Wi-Spy and GSG Ubertooth hardware"
24 HOMEPAGE="https://www.kismetwireless.net/spectools/"
28 IUSE="debug +ncurses +gtk"
32 ncurses? ( sys-libs/ncurses:0= )
33 gtk? ( x11-libs/gtk+:2
40 # Upstream has still not migrated to the libusb-1 line.
41 # Maemo: Add hildon and bbus
44 epatch "${FILESDIR}"/${PN}-2011.08.1_p20140618-tinfo.patch
45 mv configure.{in,ac} || die
49 # Please note that upstream removed the --with-gtk-version option
50 # and GTK is now automagical. GTK1 support was also removed.
56 use debug && emake spectool_raw
58 use ncurses && emake spectool_curses
60 use gtk && emake spectool_gtk
63 # emake spectool_hildon usbcontrol \
64 # || die "emake spectool_hildon usbcontrol failed"
70 use debug && dobin spectool_raw
71 use ncurses && dobin spectool_curses
72 use gtk && dobin spectool_gtk
74 udev_dorules 99-wispy.rules
78 # dobin spectool_hildon