From: "Richard Farina" <zerochaos@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libbtbb/
Date: Sat, 4 Mar 2017 05:06:34 +0000 (UTC) [thread overview]
Message-ID: <1488603969.0e2c95a78f492892c5b862445365773036f90766.zerochaos@gentoo> (raw)
commit: 0e2c95a78f492892c5b862445365773036f90766
Author: Zero_Chaos <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 4 04:59:01 2017 +0000
Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Sat Mar 4 05:06:09 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e2c95a7
net-libs/libbtbb: bump, cleanup, enable pcapdump and btaptap properly
Package-Manager: Portage-2.3.3, Repoman-2.3.1
net-libs/libbtbb/Manifest | 3 +-
...015.09.2-r1.ebuild => libbtbb-2017.03.1.ebuild} | 62 +++++++++++++++-------
net-libs/libbtbb/libbtbb-9999.ebuild | 28 +++++-----
net-libs/libbtbb/metadata.xml | 3 +-
4 files changed, 61 insertions(+), 35 deletions(-)
diff --git a/net-libs/libbtbb/Manifest b/net-libs/libbtbb/Manifest
index 952fe8d5c43..5c82b8e756a 100644
--- a/net-libs/libbtbb/Manifest
+++ b/net-libs/libbtbb/Manifest
@@ -1,3 +1,2 @@
-DIST libbtbb-2015-09-R2.tar.gz 222045 SHA256 35ce44636649163f0d9a4de5905f686470f54c79b408959760db8c8182853161 SHA512 e300ec09de34644a0cd2f4aba2fe0b03021aaa0b0fe5035022f1e698ff10867adfd84850d0d40e9c070fbd622efee1b614221c1f5b1818f1d4f5d58cc3f31919 WHIRLPOOL 99d8c621b263cd3cd82e423eabff21d4979b0407c31430aa26424d273c9e3ed802e68833e3a100588a46a9a2126a84d0be56e41c1b609ea2eed4a3d64203c995
DIST libbtbb-2015-10-R1.tar.gz 221859 SHA256 95f493d379a53ec1134cfb36349cc9aac95d77260db4fdb557313b0dbb5c1d5a SHA512 550d793326cfb4d31ed00d46faf3521ccafc133614f866961ba6226dff41d3deda428b45f01178e0dea7925635a64e843f0510049408c3f299ad427f2c0832ac WHIRLPOOL 4ac8697150ff5215765a5331695bfc6d2967ff61a4fc89820dd8e3c72f52f51f3d5aff2b4f020de6c728cd368a295a90bbd0bb1cebb60d895c84d5219cc70e77
-DIST libbtbb-2015.09.2-rename-plugins.patch.xz 15636 SHA256 391a51ef542deecbb680d7d14f1649e8190096bce38a38965bc00fe1e97ad038 SHA512 40af251835fae9031a28720bf15ec9a903eac5fc42f38a0edf234021861e3c64e3fb77c03675ac7623b6dae901988d28f3ef90d53ea9e2b62b2d692ca0bf2d2f WHIRLPOOL eb15206c66f6293d509affa855f186ccfbb32c9d745675217c1228e7d07c0ef587bd6f997f664c1141e9fa0f4c453faefed3b82982b4099b53b81ec233b2dfec
+DIST libbtbb-2017-03-R1.tar.gz 303019 SHA256 c9d163140012c9af758ea6a39a5f7193c433b107b2d4ff984f8b86821af4f181 SHA512 7535d24c70eb30eb4c0b711ee46c9aed7548ba26c9431eb9e3eac697d52afbd025534d23df24085f219be2427209fbc3a9094df65b32c5ff8a82110ce8ce4cd1 WHIRLPOOL b425583f9affe59a875702b83e9723948807691f1538979ca556655bd540bd860872398aa42635bb1883ff7fc8278fbaffb67f7efd9e2093bf635527a20c9e68
diff --git a/net-libs/libbtbb/libbtbb-2015.09.2-r1.ebuild b/net-libs/libbtbb/libbtbb-2017.03.1.ebuild
similarity index 61%
rename from net-libs/libbtbb/libbtbb-2015.09.2-r1.ebuild
rename to net-libs/libbtbb/libbtbb-2017.03.1.ebuild
index b1ddd4861ac..9fda2336a37 100644
--- a/net-libs/libbtbb/libbtbb-2015.09.2-r1.ebuild
+++ b/net-libs/libbtbb/libbtbb-2017.03.1.ebuild
@@ -1,9 +1,12 @@
-# Copyright 1999-2015 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/"
@@ -16,30 +19,31 @@ else
MY_PV=${PV/\./-}
MY_PV=${MY_PV/./-R}
S=${WORKDIR}/${PN}-${MY_PV}
- SRC_URI="https://github.com/greatscottgadgets/${PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz \
- https://dev.gentoo.org/~zerochaos/distfiles/libbtbb-2015.09.2-rename-plugins.patch.xz"
+ SRC_URI="https://github.com/greatscottgadgets/${PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
KEYWORDS="~amd64 ~arm ~x86"
fi
LICENSE="GPL-2"
SLOT="0/${PV}"
-IUSE="+pcap +wireshark-plugins"
+IUSE="extras static-libs +wireshark-plugins"
-RDEPEND="
- pcap? ( net-libs/libpcap )
+RDEPEND="extras? ( ${PYTHON_DEPS} )
wireshark-plugins? (
>=net-analyzer/wireshark-1.8.3-r1:=
- !>net-analyzer/wireshark-1.98
)
"
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"
@@ -49,7 +53,6 @@ which_plugins() {
src_prepare(){
CMAKE_USE_DIR="${S}"
BUILD_DIR="${S}"_build
- epatch "${WORKDIR}"/${P}-rename-plugins.patch
cmake-utils_src_prepare
if use wireshark-plugins; then
@@ -57,7 +60,11 @@ src_prepare(){
for i in ${plugins}
do
sed -i 's#column_info#packet#' wireshark/plugins/${i}/cmake/FindWireshark.cmake || die
- CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
BUILD_DIR="${WORKDIR}"/${i}_build
cmake-utils_src_prepare
done
@@ -68,17 +75,20 @@ src_configure() {
CMAKE_USE_DIR="${S}"
BUILD_DIR="${S}"_build
local mycmakeargs=(
- -DDISABLE_PYTHON=true
- -DPACKAGE_MANAGER=true
- $(cmake-utils_use pcap PCAPDUMP)
- $(cmake-utils_use pcap USE_PCAP)
+ -DENABLE_PYTHON=$(usex extras)
+ -DBUILD_STATIC_LIB=$(usex static-libs)
+ -DBUILD_ROOT="${ED}"
)
cmake-utils_src_configure
if use wireshark-plugins; then
for i in ${plugins}
do
- CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
BUILD_DIR="${WORKDIR}"/${i}_build
local mycmakeargs=(
-DCMAKE_INSTALL_LIBDIR="/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)"
@@ -96,7 +106,11 @@ src_compile(){
if use wireshark-plugins; then
for i in ${plugins}
do
- CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
BUILD_DIR="${WORKDIR}"/${i}_build
cmake-utils_src_compile
done
@@ -111,7 +125,11 @@ src_test(){
if use wireshark-plugins; then
for i in ${plugins}
do
- CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
BUILD_DIR="${WORKDIR}"/${i}_build
cmake-utils_src_test
done
@@ -126,7 +144,11 @@ src_install(){
if use wireshark-plugins; then
for i in ${plugins}
do
- CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ if has_version '>=net-analyzer/wireshark-2.0'; then
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
+ else
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
+ fi
BUILD_DIR="${WORKDIR}"/${i}_build
cmake-utils_src_install
done
diff --git a/net-libs/libbtbb/libbtbb-9999.ebuild b/net-libs/libbtbb/libbtbb-9999.ebuild
index 8899e59aafa..9fda2336a37 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
diff --git a/net-libs/libbtbb/metadata.xml b/net-libs/libbtbb/metadata.xml
index e5bbff014cb..7e1cb0b65db 100644
--- a/net-libs/libbtbb/metadata.xml
+++ b/net-libs/libbtbb/metadata.xml
@@ -6,7 +6,8 @@
<name>Rick Farina</name>
</maintainer>
<use>
- <flag name="pcap">Add support for network packet capture via net-libs/libpcap</flag>
+ <flag name="extras">Install pcapdump and btaptap tools</flag>
+ <flag name="pcap">Add support for network packet capture via <pkg>net-libs/libpcap</pkg></flag>
<flag name="wireshark-plugins">Build the wireshark plugins for bluetooth baseband sniffing</flag>
</use>
<upstream>
next reply other threads:[~2017-03-04 5:06 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-04 5:06 Richard Farina [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-08-27 11:38 [gentoo-commits] repo/gentoo:master commit in: net-libs/libbtbb/ Sam James
2022-01-12 16:14 Andreas Sturmlechner
2022-01-12 11:41 Jakov Smolić
2022-01-12 11:41 Jakov Smolić
2022-01-11 20:35 Arthur Zamarin
2022-01-10 16:03 Andreas Sturmlechner
2022-01-10 16:03 Andreas Sturmlechner
2022-01-10 16:03 Andreas Sturmlechner
2022-01-10 16:03 Andreas Sturmlechner
2022-01-10 16:03 Andreas Sturmlechner
2021-03-30 23:27 Sam James
2021-03-30 20:20 Rick Farina
2021-03-30 20:20 Rick Farina
2021-01-07 3:00 Rick Farina
2020-09-01 9:07 Michał Górny
2020-07-05 13:44 Agostino Sarubbo
2020-07-05 13:38 Agostino Sarubbo
2020-07-05 13:36 Agostino Sarubbo
2019-03-20 2:25 Rick Farina
2018-08-07 23:10 Richard Farina
2018-01-11 16:06 Michał Górny
2018-01-11 16:02 Michał Górny
2017-03-20 17:07 Richard Farina
2017-03-04 5:08 Richard Farina
2016-02-03 23:00 Richard Farina
2016-02-02 17:53 Richard Farina
2016-01-22 3:17 Richard Farina
2016-01-22 3:17 Richard Farina
2015-09-22 2:36 Richard Farina
2015-09-05 2:39 Richard Farina
2015-09-05 2:39 Richard Farina
2015-09-04 16:35 Richard Farina
2015-08-28 15:42 Richard Farina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1488603969.0e2c95a78f492892c5b862445365773036f90766.zerochaos@gentoo \
--to=zerochaos@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox