You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.4 KiB
55 lines
1.4 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
6 years ago
|
|
||
4 years ago
|
PYTHON_COMPAT=( python3_{7,8} )
|
||
6 years ago
|
inherit distutils-r1 eutils
|
||
|
|
||
|
DESCRIPTION="Universal Radio Hacker: investigate wireless protocols like a boss"
|
||
|
HOMEPAGE="https://github.com/jopohl/urh"
|
||
|
|
||
|
if [ "${PV}" = "9999" ]; then
|
||
|
inherit git-r3
|
||
|
EGIT_REPO_URI="https://github.com/jopohl/urh.git"
|
||
|
else
|
||
|
SRC_URI="https://github.com/jopohl/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
fi
|
||
|
|
||
|
LICENSE="Apache-2.0"
|
||
|
SLOT="0"
|
||
4 years ago
|
IUSE="airspy audio bladerf hackrf limesdr plutosdr rtlsdr sdrplay uhd"
|
||
6 years ago
|
|
||
|
DEPEND="${PYTHON_DEPS}
|
||
|
net-wireless/gnuradio[zeromq]
|
||
|
dev-python/numpy[${PYTHON_USEDEP}]
|
||
|
dev-python/psutil[${PYTHON_USEDEP}]
|
||
5 years ago
|
dev-python/pyzmq[${PYTHON_USEDEP}]
|
||
6 years ago
|
dev-python/cython[${PYTHON_USEDEP}]
|
||
4 years ago
|
airspy? ( net-wireless/airspy:= )
|
||
|
audio? ( dev-python/pyaudio[${PYTHON_USEDEP}] )
|
||
6 years ago
|
bladerf? ( net-wireless/bladerf:= )
|
||
|
hackrf? ( net-libs/libhackrf:= )
|
||
4 years ago
|
limesdr? ( net-wireless/limesuite:= )
|
||
6 years ago
|
plutosdr? ( net-libs/libiio:= )
|
||
|
rtlsdr? ( net-wireless/rtl-sdr:= )
|
||
4 years ago
|
sdrplay? ( net-wireless/sdrplay:= )
|
||
6 years ago
|
uhd? ( net-wireless/uhd:= )"
|
||
|
RDEPEND="${DEPEND}
|
||
|
dev-python/PyQt5[${PYTHON_USEDEP},testlib]
|
||
|
net-wireless/gr-osmosdr"
|
||
|
|
||
|
python_configure_all() {
|
||
|
mydistutilsargs=(
|
||
4 years ago
|
$(use_with airspy)
|
||
6 years ago
|
$(use_with bladerf)
|
||
|
$(use_with hackrf)
|
||
4 years ago
|
$(use_with limesdr)
|
||
6 years ago
|
$(use_with plutosdr)
|
||
|
$(use_with rtlsdr)
|
||
4 years ago
|
$(use_with sdrplay)
|
||
6 years ago
|
$(use_with uhd usrp)
|
||
|
)
|
||
|
}
|