diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2012-08-12 08:43:43 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2012-08-12 08:43:43 +0000 |
commit | 49ab0bd3a90bb8ed2aa4e1729745e8dd3c13bee7 (patch) | |
tree | 5d11fca6857e0710197f843f3e99e5b7da428988 /net-wireless/spectools | |
parent | Remove old versions (diff) | |
download | gentoo-2-49ab0bd3a90bb8ed2aa4e1729745e8dd3c13bee7.tar.gz gentoo-2-49ab0bd3a90bb8ed2aa4e1729745e8dd3c13bee7.tar.bz2 gentoo-2-49ab0bd3a90bb8ed2aa4e1729745e8dd3c13bee7.zip |
Query udev.pc pkg-config file for udevdir value.
(Portage version: 2.2.0_alpha121/cvs/Linux x86_64)
Diffstat (limited to 'net-wireless/spectools')
-rw-r--r-- | net-wireless/spectools/ChangeLog | 8 | ||||
-rw-r--r-- | net-wireless/spectools/spectools-2011.08.1-r2.ebuild | 74 | ||||
-rw-r--r-- | net-wireless/spectools/spectools-9999.ebuild | 11 |
3 files changed, 88 insertions, 5 deletions
diff --git a/net-wireless/spectools/ChangeLog b/net-wireless/spectools/ChangeLog index 596fd3c69096..ed330933eda2 100644 --- a/net-wireless/spectools/ChangeLog +++ b/net-wireless/spectools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-wireless/spectools # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/spectools/ChangeLog,v 1.15 2012/07/06 21:14:42 zerochaos Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/spectools/ChangeLog,v 1.16 2012/08/12 08:43:43 ssuominen Exp $ + +*spectools-2011.08.1-r2 (12 Aug 2012) + + 12 Aug 2012; Samuli Suominen <ssuominen@gentoo.org> + +spectools-2011.08.1-r2.ebuild, spectools-9999.ebuild: + Query udev.pc pkg-config file for udevdir value. 06 Jul 2012; Rick Farina <zerochaos@gentoo.org> spectools-9999.ebuild: fixing missing SRC_URI in live conditional diff --git a/net-wireless/spectools/spectools-2011.08.1-r2.ebuild b/net-wireless/spectools/spectools-2011.08.1-r2.ebuild new file mode 100644 index 000000000000..03e193762154 --- /dev/null +++ b/net-wireless/spectools/spectools-2011.08.1-r2.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/spectools/spectools-2011.08.1-r2.ebuild,v 1.1 2012/08/12 08:43:43 ssuominen Exp $ + +EAPI=4 +inherit toolchain-funcs + +MY_PN=${PN} +MY_PV=${PV/\./-} +MY_PV=${MY_PV/./-R} +MY_P="${MY_PN}-${MY_PV}" +S=${WORKDIR}/${MY_P} + +if [[ ${PV} == "9999" ]] ; then + ESVN_REPO_URI="https://www.kismetwireless.net/code/svn/tools/${PN}" + inherit subversion + KEYWORDS="" +else + SRC_URI="http://www.kismetwireless.net/code/${MY_P}.tar.gz" + KEYWORDS="~amd64 ~arm ~ppc ~x86" +fi + +DESCRIPTION="Spectrum Analyzer for Meta-Geek Wi-Spy and GSG Ubertooth hardware" +HOMEPAGE="http://www.kismetwireless.net/spectools/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="ncurses gtk" + +RDEPEND="virtual/libusb:0 + ncurses? ( sys-libs/ncurses ) + gtk? ( x11-libs/gtk+:2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" +# Upstream has still not migrated to the libusb-1 line. +# Maemo: Add hildon and bbus + +# Please note that upstream removed the --with-gtk-version option +# and GTK is now automagical. GTK1 support was also removed. +src_compile() { + emake depend + + emake spectool_net spectool_raw + + if use ncurses; then + emake spectool_curses + fi + + if use gtk; then + emake spectool_gtk + fi + + #if use maemo; then + # emake spectool_hildon usbcontrol \ + # || die "emake spectool_hildon usbcontrol failed" + #fi +} + +src_install() { + dobin spectool_net spectool_raw + use ncurses && dobin spectool_curses + use gtk && dobin spectool_gtk + + local udevdir=/lib/udev + has_version sys-fs/udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)" + insinto "${udevdir}"/rules.d + doins 99-wispy.rules + dodoc README + + #if use maemo; then + # dobin spectool_hildon + # dosbin usbcontrol + #fi +} diff --git a/net-wireless/spectools/spectools-9999.ebuild b/net-wireless/spectools/spectools-9999.ebuild index a7418ac350ae..ee2aa9076ee6 100644 --- a/net-wireless/spectools/spectools-9999.ebuild +++ b/net-wireless/spectools/spectools-9999.ebuild @@ -1,8 +1,9 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/spectools/spectools-9999.ebuild,v 1.5 2012/07/06 21:14:42 zerochaos Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/spectools/spectools-9999.ebuild,v 1.6 2012/08/12 08:43:43 ssuominen Exp $ EAPI=4 +inherit toolchain-funcs MY_PN=${PN} MY_PV=${PV/\./-} @@ -27,10 +28,11 @@ LICENSE="GPL-2" SLOT="0" IUSE="debug ncurses gtk" -DEPEND="${RDEPEND}" RDEPEND="virtual/libusb:0 ncurses? ( sys-libs/ncurses ) gtk? ( x11-libs/gtk+:2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" # Upstream has still not migrated to the libusb-1 line. # Maemo: Add hildon and bbus @@ -59,8 +61,9 @@ src_install() { use ncurses && dobin spectool_curses use gtk && dobin spectool_gtk - dodir /lib/udev/rules.d/ - insinto /lib/udev/rules.d/ + local udevdir=/lib/udev + has_version sys-fs/udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)" + insinto "${udevdir}"/rules.d doins 99-wispy.rules dodoc README |