commit:     c0bcdc5319796227c8bb06e958863560dd419b46
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  2 10:02:52 2025 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Tue Dec  2 10:07:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0bcdc53

net-wireless/urh: add 2.9.8_p20251123 supports Qt6

Backport of 2.9.8 onto the older qt6 branch (see
https://bugs.gentoo.org/965506)

Closes: https://bugs.gentoo.org/965506
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 net-wireless/urh/Manifest                   |  1 +
 net-wireless/urh/urh-2.9.8_p20251123.ebuild | 76 +++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/net-wireless/urh/Manifest b/net-wireless/urh/Manifest
index acb100f2a0b6..2cdee08b598a 100644
--- a/net-wireless/urh/Manifest
+++ b/net-wireless/urh/Manifest
@@ -1 +1,2 @@
 DIST urh-2.9.8.gh.tar.gz 13436054 BLAKE2B 
efc106fc1ef4879a0cebfe65e120dd4789576264b853b02b7ecf4065b9feeba26428b696a388298e2904e084302eed8b049f5f6d2c9a205730a9726d39c505e9
 SHA512 
a5327bee699bba8e6ffef2e7ec54f5f4b354feda18340c9b567b10b8c9283c5c907a546fd8a5660a2c325d42b8928cb9592630d0c2a5ed7dfdcf5dc434be4cb2
+DIST urh-2.9.8_p20251123.tgz 14465110 BLAKE2B 
b976581832048b2e0c848d3cc23e2d1dcae0c6369e12c27954483ad75101a89b3eb8beb5dfb33cc6564d0c0a1a2f16cee4039f9c47adc6d20a3a3ef0060fbf69
 SHA512 
42e78cc57d62c44fc7a8beb9e4dc84c4de2c08d8c4488b4a49e05c9796d7cb82fc3958db60d3dd65e03c29215c3b27d8df349ff967410e2c90e7f87869081a66

diff --git a/net-wireless/urh/urh-2.9.8_p20251123.ebuild 
b/net-wireless/urh/urh-2.9.8_p20251123.ebuild
new file mode 100644
index 000000000000..ad8fd0950817
--- /dev/null
+++ b/net-wireless/urh/urh-2.9.8_p20251123.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+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";
+# backported onto older Qt6 branch (see 
https://github.com/jopohl/urh/pull/1072)
+SRC_URI="https://dev.gentoo.org/~tomjbe/distfiles/${P}.tgz";
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+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? ( <net-wireless/sdrplay-3.0.0:= )
+               uhd?    ( net-wireless/uhd:= )"
+RDEPEND="${DEPEND}
+               dev-python/pyqt6[${PYTHON_USEDEP},testlib]
+               net-wireless/gr-osmosdr"
+
+distutils_enable_tests pytest
+
+PATCHES=( "${FILESDIR}/${PN}-2.9.7-no-numpy-setup.patch" )
+
+python_configure_all() {
+       DISTUTILS_ARGS=(
+                       $(use_with airspy)
+                       $(use_with bladerf)
+                       $(use_with hackrf)
+                       $(use_with limesdr)
+                       $(use_with plutosdr)
+                       $(use_with rtlsdr)
+                       $(use_with sdrplay)
+                       $(use_with uhd usrp)
+                       )
+}
+
+src_test() {
+       virtx distutils-r1_src_test
+}
+
+python_test() {
+       # Why are these disabled?
+       # import errors AND hangs forever after 
'tests/test_spectrogram.py::TestSpectrogram::test_cancel_filtering'
+       # import errors 
'tests/test_continuous_modulator.py::TestContinuousModulator::test_modulate_continuously'
+       # import errors 
'tests/test_send_recv_dialog_gui.py::TestSendRecvDialog::test_continuous_send_dialog'
+       # import errors 
'tests/test_spectrogram.py::TestSpectrogram::test_channel_separation_with_negative_frequency'
+       local EPYTEST_DESELECT=(
+               
'tests/test_spectrogram.py::TestSpectrogram::test_cancel_filtering'
+               
'tests/test_continuous_modulator.py::TestContinuousModulator::test_modulate_continuously'
+               
'tests/test_send_recv_dialog_gui.py::TestSendRecvDialog::test_continuous_send_dialog'
+               
'tests/test_spectrogram.py::TestSpectrogram::test_channel_separation_with_negative_frequency'
+
+       )
+       cd "${T}" || die
+       epytest -s --pyargs urh.cythonext "${S}/tests" || die
+}

Reply via email to