gr-osmosdr: use nuand's fork for now

This commit is contained in:
Rick Farina (Zero_Chaos) 2023-02-17 17:23:09 -05:00
parent 74eed5e4ab
commit b397f1e39c
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
4 changed files with 127 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST gr-osmosdr-0.2.4_p20230214.tar.gz 261553 BLAKE2B 16d00ac2ef4e1ee621036b33eccc2892921c5956af55e453cd2ea729f59458a471240dae34228443edef276488035235a6f6da57ef15628ab9b1581243809af5 SHA512 0dde5152ed881e08e4258c208c4c2f007e9459df49012424bd6f37dc5102303bc30bf5afd9a5fbbee5793a97699aca807195b5308c6029479ca426d5480262d1

View file

@ -0,0 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 96a2c90..a3836f8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -187,9 +187,7 @@ find_package(Doxygen)
# Python
##########
-
-find_package(PythonLibs 3)
-find_package(pybind11)
+include(GrPybind)
GR_REGISTER_COMPONENT("Python support" ENABLE_PYTHON
PYTHONLIBS_FOUND

View file

@ -0,0 +1,89 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..10} )
inherit cmake python-single-r1
DESCRIPTION="GNU Radio source block for OsmoSDR and rtlsdr and hackrf"
HOMEPAGE="
https://sdr.osmocom.org/trac/wiki/GrOsmoSDR
https://gitea.osmocom.org/sdr/gr-osmosdr
"
if [[ ${PV} == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Nuand/gr-osmosdr.git"
else
#commit
COMMIT="927aa23d908d10aaea7652fcc396a187c83b31cb"
SRC_URI="https://github.com/Nuand/gr-osmosdr/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
KEYWORDS="~amd64 ~arm ~riscv ~x86"
fi
LICENSE="GPL-3"
SLOT="0/${PV}"
IUSE="airspy bladerf doc hackrf iqbalance python rtlsdr sdrplay soapy uhd xtrx"
RDEPEND="${PYTHON_DEPS}
dev-libs/boost:=
dev-libs/log4cpp
net-wireless/gnuradio:0=[${PYTHON_SINGLE_USEDEP}]
sci-libs/volk:=
airspy? ( net-wireless/airspy )
bladerf? ( >=net-wireless/bladerf-2018.08_rc1:= )
hackrf? ( net-libs/libhackrf:= )
iqbalance? ( net-wireless/gr-iqbal:=[${PYTHON_SINGLE_USEDEP}] )
rtlsdr? ( >=net-wireless/rtl-sdr-0.5.4:= )
sdrplay? ( net-wireless/sdrplay )
soapy? ( net-wireless/soapysdr:= )
uhd? ( net-wireless/uhd:=[${PYTHON_SINGLE_USEDEP}] )
xtrx? ( net-wireless/libxtrx )
"
DEPEND="${RDEPEND}"
BDEPEND="
$(python_gen_cond_dep 'dev-python/pybind11[${PYTHON_USEDEP}]')
doc? ( app-doc/doxygen )
"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
PATCHES=(
"${FILESDIR}/${PN}-0.2.3_p20210128-fix-enable-python.patch"
)
src_configure() {
local mycmakeargs=(
-DENABLE_DEFAULT=OFF
-DPYTHON_EXECUTABLE="${PYTHON}"
-DENABLE_FILE=ON
-DENABLE_AIRSPY="$(usex airspy ON OFF)"
-DENABLE_BLADERF="$(usex bladerf ON OFF)"
-DENABLE_HACKRF="$(usex hackrf ON OFF)"
-DENABLE_IQBALANCE="$(usex iqbalance ON OFF)"
-DENABLE_PYTHON="$(usex python ON OFF)"
-DENABLE_RTL="$(usex rtlsdr ON OFF)"
-DENABLE_RTL_TCP="$(usex rtlsdr ON OFF)"
-DENABLE_SDRPLAY="$(usex sdrplay ON OFF)"
-DENABLE_NONFREE="$(usex sdrplay ON OFF)"
-DENABLE_SOAPY="$(usex soapy ON OFF)"
-DENABLE_UHD="$(usex uhd ON OFF)"
-DENABLE_XTRX="$(usex xtrx ON OFF)"
-DENABLE_DOXYGEN="$(usex doc ON OFF)"
)
cmake_src_configure
}
src_install() {
cmake_src_install
if use python; then
find "${ED}" -name '*.py[oc]' -delete || die
python_fix_shebang "${ED}"/usr/bin
python_optimize
fi
mv "${ED}/usr/share/doc/${PN}" "${ED}/usr/share/doc/${P}"
}

View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>sidhayn@gmail.com</email>
<name>Zero_Chaos</name>
</maintainer>
<use>
<flag name="airspy">Build with Airspy support through <pkg>net-wireless/airspy</pkg></flag>
<flag name="bladerf">Build with Nuand BladeRF support through <pkg>net-wireless/bladerf</pkg></flag>
<flag name="hackrf">Build with Great Scott Gadgets HackRF support through <pkg>net-libs/libhackrf</pkg></flag>
<flag name="iqbalance">Enable support for I/Q balancing using gr-iqbal through <pkg>net-wireless/gr-iqbal</pkg></flag>
<flag name="rtlsdr">Build with Realtek RTL2832U support through <pkg>net-wireless/rtl-sdr</pkg></flag>
<flag name="sdrplay">Enable support for SDRplay devices through <pkg>net-wireless/sdrplay</pkg></flag>
<flag name="soapy">Build with SoapySDR support through <pkg>net-wireless/soapysdr</pkg></flag>
<flag name="uhd">Build with Ettus Research USRP Hardware Driver support through <pkg>net-wireless/uhd</pkg></flag>
<flag name="xtrx">Build with xtrx Hardware Driver support through <pkg>net-wireless/libxtrx</pkg></flag>
</use>
<upstream>
<remote-id type="github">osmocom/gr-osmosdr</remote-id>
</upstream>
</pkgmetadata>