summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero_Chaos <zerochaos@gentoo.org>2017-03-03 23:59:01 -0500
committerZero_Chaos <zerochaos@gentoo.org>2017-03-04 00:06:09 -0500
commit0e2c95a78f492892c5b862445365773036f90766 (patch)
tree4c393f2ec53be5fbde461ffe7042fc4b60e5946d /net-libs/libbtbb/libbtbb-9999.ebuild
parentnet-wireless/chirp: bump, fix dep for radioreference (diff)
downloadgentoo-0e2c95a78f492892c5b862445365773036f90766.tar.gz
gentoo-0e2c95a78f492892c5b862445365773036f90766.tar.bz2
gentoo-0e2c95a78f492892c5b862445365773036f90766.zip
net-libs/libbtbb: bump, cleanup, enable pcapdump and btaptap properly
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-libs/libbtbb/libbtbb-9999.ebuild')
-rw-r--r--net-libs/libbtbb/libbtbb-9999.ebuild28
1 files changed, 16 insertions, 12 deletions
diff --git a/net-libs/libbtbb/libbtbb-9999.ebuild b/net-libs/libbtbb/libbtbb-9999.ebuild
index 8899e59aafa8..9fda2336a37f 100644
--- a/net-libs/libbtbb/libbtbb-9999.ebuild
+++ b/net-libs/libbtbb/libbtbb-9999.ebuild
@@ -1,9 +1,12 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
-inherit multilib cmake-utils
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_OPTIONAL=1
+
+inherit multilib cmake-utils python-single-r1
DESCRIPTION="A library to decode Bluetooth baseband packets"
HOMEPAGE="http://libbtbb.sourceforge.net/"
@@ -22,10 +25,9 @@ fi
LICENSE="GPL-2"
SLOT="0/${PV}"
-IUSE="+pcap static-libs +wireshark-plugins"
+IUSE="extras static-libs +wireshark-plugins"
-RDEPEND="
- pcap? ( net-libs/libpcap[static-libs?] )
+RDEPEND="extras? ( ${PYTHON_DEPS} )
wireshark-plugins? (
>=net-analyzer/wireshark-1.8.3-r1:=
)
@@ -34,10 +36,14 @@ DEPEND="${RDEPEND}
wireshark-plugins? ( dev-libs/glib
virtual/pkgconfig )"
+REQUIRED_USE="extras? ( ${PYTHON_REQUIRED_USE} )"
+
get_PV() { local pv=$(best_version $1); pv=${pv#$1-}; pv=${pv%-r*}; pv=${pv//_}; echo ${pv}; }
which_plugins() {
- if has_version '>=net-analyzer/wireshark-1.12.0'; then
+ if has_version '>=net-analyzer/wireshark-2.2.0'; then
+ plugins=""
+ elif has_version '>=net-analyzer/wireshark-1.12.0'; then
plugins="btbb btbredr"
elif has_version '<net-analyzer/wireshark-1.12.0'; then
plugins="btbb btle btsm"
@@ -69,11 +75,9 @@ src_configure() {
CMAKE_USE_DIR="${S}"
BUILD_DIR="${S}"_build
local mycmakeargs=(
- -DENABLE_PYTHON=false
- -DPACKAGE_MANAGER=true
- $(cmake-utils_use pcap PCAPDUMP)
- $(cmake-utils_use pcap USE_PCAP)
- $(cmake-utils_use static-libs BUILD_STATIC_LIB)
+ -DENABLE_PYTHON=$(usex extras)
+ -DBUILD_STATIC_LIB=$(usex static-libs)
+ -DBUILD_ROOT="${ED}"
)
cmake-utils_src_configure