btle-sniffer: cmake-utils -> cmake

This commit is contained in:
Rick Farina (Zero_Chaos) 2022-08-03 12:08:37 -04:00
parent 11591eaa04
commit a7d77291a6
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 4 additions and 35 deletions

View file

@ -1,31 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake-utils
DESCRIPTION="A BTLE (Bluetooth Low energy)/BT4.0 radio packet sniffer/scanner and sender"
HOMEPAGE="http://sdr-x.github.io/BTLE-SNIFFER/"
HASH_COMMIT=
SRC_URI="https://github.com/JiaoXianjun/BTLE/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
LICENSE="GPL-2"
SLOT="0"
IUSE="bladerf +hackrf"
DEPEND="hackrf? ( net-libs/libhackrf )"
RDEPEND="${DEPEND}"
REQUIRED_USE="^^ ( bladerf hackrf )"
S="${WORKDIR}/BTLE-${PV}/host"
src_configure() {
#without -DUSE_BLADERF=1 means HACKRF will be used by default
local mycmakeargs=(
$(usex bladerf -DUSE_BLADERF=1)
)
cmake-utils_src_configure
}

View file

@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit cmake-utils
inherit cmake
DESCRIPTION="Bluetooth radio packet sniffer/scanner and sender"
HOMEPAGE="http://sdr-x.github.io/BTLE-SNIFFER/ https://github.com/JiaoXianjun/BTLE"
@ -27,5 +27,5 @@ src_configure() {
local mycmakeargs=(
$(usex bladerf -DUSE_BLADERF=1)
)
cmake-utils_src_configure
cmake_src_configure
}