# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{10..11} ) DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools inherit distutils-r1 virtualx 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" IUSE="airspy audio bladerf hackrf limesdr plutosdr rtlsdr sdrplay uhd" DEPEND="${PYTHON_DEPS} net-wireless/gnuradio[zeromq] dev-python/numpy[${PYTHON_USEDEP}] dev-python/psutil[${PYTHON_USEDEP}] dev-python/pyzmq[${PYTHON_USEDEP}] dev-python/cython[${PYTHON_USEDEP}] airspy? ( net-wireless/airspy:= ) audio? ( dev-python/pyaudio[${PYTHON_USEDEP}] ) bladerf? ( net-wireless/bladerf:= ) hackrf? ( net-libs/libhackrf:= ) limesdr? ( net-wireless/limesuite ) plutosdr? ( net-libs/libiio:= ) rtlsdr? ( net-wireless/rtl-sdr ) sdrplay? (