summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-wireless/gr-osmosdr/Manifest2
-rw-r--r--net-wireless/gr-osmosdr/gr-osmosdr-0.2.6.ebuild86
2 files changed, 88 insertions, 0 deletions
diff --git a/net-wireless/gr-osmosdr/Manifest b/net-wireless/gr-osmosdr/Manifest
index 185cef0..f7e6e73 100644
--- a/net-wireless/gr-osmosdr/Manifest
+++ b/net-wireless/gr-osmosdr/Manifest
@@ -1,5 +1,7 @@
AUX gr-osmosdr-0.2.3_p20210128-fix-enable-python.patch 342 BLAKE2B fe7b93a8679eb11959560e41c8c9675d94f27578c98926327329139cab87cdab1d8556605809347a894a6cf66b44f9d585ace9c3edf51d938558cab0a7da67ef SHA512 dab43caa06b4073cc6832076b58a938f6ad0ea023870279c2f49588d88d2b208465d4788f6d0ed9d02a11a6678e21974a982a23565fcecbf72d841ea6b1a18a6
DIST gr-osmosdr-0.2.5.tar.gz 267914 BLAKE2B cec3790513a8e050610cb4b7f928c7b1d47e5b34e372f577c7f90a929a7353e2d7a86d04b8fcde57b24cc08554c5bee7257c052263de55e0f5ba3201f19a275c SHA512 d1c126d94accbd292624022df6ff7febecb1c73c3a1a0c3e8d0e3e4d882076df5b77ad14d79966a150e2c9d889c391239b1dc831acf49cdf891a19db7f830901
+DIST gr-osmosdr-0.2.6.tar.gz 268003 BLAKE2B e9826301e2836dbe937aa69bcc8078769a44889b19aa8981224ab4b0de96bd93cd3b6a0b42366b85e44854fc4300c5846cd07fdd5d9e3f7695082be3a29cb249 SHA512 2afac3503e74b67c8fb20b51dbe3c4d25f8247a9da4bfd9aec6d68412381e5e2319e8cc5b411faa9909a6c2b00c4844307c94d63e4efd613a2ddba027fd2e570
EBUILD gr-osmosdr-0.2.5-r2.ebuild 2361 BLAKE2B 9a53a0bd68f6c7dcf5da4f86c76d78f171fe4b05d255f8093ff01bbe141fe007d28550c69c4d930ed796c5d2cbde1640401583509d7d25420e507f604df10502 SHA512 757207bf3688f6ec4d23b8ff667055bbc8d5a9b82b39519d15ae02ce104fd18a73dd523657a995dfa6fc23d852232850928340a45eced38b55254212a1d2b73b
+EBUILD gr-osmosdr-0.2.6.ebuild 2361 BLAKE2B 9a53a0bd68f6c7dcf5da4f86c76d78f171fe4b05d255f8093ff01bbe141fe007d28550c69c4d930ed796c5d2cbde1640401583509d7d25420e507f604df10502 SHA512 757207bf3688f6ec4d23b8ff667055bbc8d5a9b82b39519d15ae02ce104fd18a73dd523657a995dfa6fc23d852232850928340a45eced38b55254212a1d2b73b
EBUILD gr-osmosdr-9999.ebuild 2361 BLAKE2B 9a53a0bd68f6c7dcf5da4f86c76d78f171fe4b05d255f8093ff01bbe141fe007d28550c69c4d930ed796c5d2cbde1640401583509d7d25420e507f604df10502 SHA512 757207bf3688f6ec4d23b8ff667055bbc8d5a9b82b39519d15ae02ce104fd18a73dd523657a995dfa6fc23d852232850928340a45eced38b55254212a1d2b73b
MISC metadata.xml 1401 BLAKE2B 5c2c01686f36d74d15acc03762da676810507d88f5a43d0246bbd00d0f369f201e5a31a1a6feb9da9539871a7e371d9f7f350d811ca13665eeb9163c6ff639d1 SHA512 364e9cbdfc91822eb4153dec0a30cef4d1af45d5bbaee35fd08a38cd2c7a32c4fab052af13711d9701ffcaa15b766798d237e940557c1e6036c6aeffbb0773bb
diff --git a/net-wireless/gr-osmosdr/gr-osmosdr-0.2.6.ebuild b/net-wireless/gr-osmosdr/gr-osmosdr-0.2.6.ebuild
new file mode 100644
index 0000000..314e8a7
--- /dev/null
+++ b/net-wireless/gr-osmosdr/gr-osmosdr-0.2.6.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{9..12} )
+
+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://gitea.osmocom.org/sdr/gr-osmosdr.git"
+else
+ SRC_URI="https://gitea.osmocom.org/sdr/gr-osmosdr/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~riscv ~x86"
+ S="${WORKDIR}/${PN}"
+fi
+
+LICENSE="GPL-3"
+SLOT="0/${PV}"
+IUSE="airspy airspyhf bladerf doc hackrf iqbalance 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 )
+ airspyhf? ( net-wireless/airspyhf )
+ 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-text/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_AIRSPYHF="$(usex airspyhf)"
+ -DENABLE_BLADERF="$(usex bladerf ON OFF)"
+ -DENABLE_HACKRF="$(usex hackrf ON OFF)"
+ -DENABLE_IQBALANCE="$(usex iqbalance ON OFF)"
+ -DENABLE_PYTHON=ON
+ -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
+ find "${ED}" -name '*.py[oc]' -delete || die
+ python_fix_shebang "${ED}"/usr/bin
+ python_optimize
+}