diff options
Diffstat (limited to 'net-wireless/gr-osmosdr')
-rw-r--r-- | net-wireless/gr-osmosdr/Manifest | 2 | ||||
-rw-r--r-- | net-wireless/gr-osmosdr/gr-osmosdr-0.2.3_p20210128.ebuild | 77 |
2 files changed, 79 insertions, 0 deletions
diff --git a/net-wireless/gr-osmosdr/Manifest b/net-wireless/gr-osmosdr/Manifest index ea1f8c477fbe..2e88b0a55ef1 100644 --- a/net-wireless/gr-osmosdr/Manifest +++ b/net-wireless/gr-osmosdr/Manifest @@ -1,5 +1,7 @@ AUX gr-osmosdr-0.2.3-use_xtrx_open_string.patch 931 BLAKE2B 21df3d2ef163f7216ad8b34c86877b65b4909523bd80bf1d1a7ab86fa1676f777a49a670a456a2b4babdcbbee7063e6fd8b6a24a025b92d43632d580fa8ab329 SHA512 0d763dbbd510f273fbe937bf51a07cda2f2d9e53dcfdb64d210f3c85c51e6995223cf13d81d94b90dc7dc0fddde8fc8ea6f30d23b652edf8945fee08c494b1f0 DIST gr-osmosdr-0.2.3.tar.gz 252727 BLAKE2B 04fe86496c09a274058bfd812fc14d7843d7e9db2648cf2cf5292e50494a859e22b1ab211f7078f2b6964c786c5f5ad5c3c9d2dd44ec5fc96d240b96f2cb63f4 SHA512 3c82a39972a309aa5b023b9c5e61f1fc80b797380b7a6c6c23cd4fe278cfaba3ab3019f32d38ebc01300868bb892f6aaaa7f12c9ee9b7ab5ba3e38817a40bf3e +DIST gr-osmosdr-0.2.3_p20210128.tar.gz 257938 BLAKE2B 1bdb3b57ec6a2f942769770c34d41b4e3db5b62f8c337d724b0099f9a2fe5bdb7231bc0727dfe4bd01cd62918b4847ea2f8780208c0960bced5853c716ec6f02 SHA512 4dcb6b2c10eeb2252111ba691be179fe5b6dc9598fa7e6129a3b214ee74d43ca2d67ab5eafa73cea2abb25729c24be0592585d149e13c7285f2ce330e52a6470 EBUILD gr-osmosdr-0.2.3.ebuild 2131 BLAKE2B baca917e56f5bfd373cfe22fc0d8295c78171066639c48684591a8c5072e9ea5dc66de15b8ce039f438ae4d544b943f842b7d2e952fefdcc66f0733b1476c938 SHA512 81de3fa634b823cb14fc69b3955b79bc1f4a59a173d21ec91cf44a85f6217a51cd749ccd1e05d3d3a2786460d09a16e75744ee6d10226a84643a5ef66fb53061 +EBUILD gr-osmosdr-0.2.3_p20210128.ebuild 2192 BLAKE2B 42cb612ff4a426fe4c87498d1e1bbc9cee0d4d1189b3f0a9938f48f4cf35adacd1dad013eac56e96c42c71b0dddfa85662b127ade03b82802a16cc5ccf81f03a SHA512 348b0bc2724a650283f1ea6272611a9cb3ed6e76f9c494be6f7a23b45e5f573683a88a6256e8f5468676ae57989d40965fbb475cbc889bd94c358fff776aaad2 EBUILD gr-osmosdr-9999.ebuild 2035 BLAKE2B 6a1b8ca6552f8c46ce4adbdf206623928548beae39254dc0a93ef4de6bf4dee350e484570135d3653556de1a3b35d921217f97ae90b605047180df7f24d1ad3b SHA512 991dd241d4489cd4f87ef094598ab750b79584622325f0f4d51521d5631012fcf9fb6bdf3bd08dccc6d1992de59406cd4d5ce0927310547b3b69dc7f866658aa MISC metadata.xml 897 BLAKE2B 9554d972990777bc9798fc121954e1cb85344926791f0a53c03934b2119698b7b7343adb8170ca7353311d717a4cedcd5d59f2e3de3339461a30b1358a52426a SHA512 10e388fa02cc40378c5f168f5b7ab52b323a3cdd8b12298193119c2afabc46353fe5adf402f6e8012a35b024828b1fdc0834c58d4b6a3aff8ae436808ebfbed5 diff --git a/net-wireless/gr-osmosdr/gr-osmosdr-0.2.3_p20210128.ebuild b/net-wireless/gr-osmosdr/gr-osmosdr-0.2.3_p20210128.ebuild new file mode 100644 index 000000000000..518b27caa2a1 --- /dev/null +++ b/net-wireless/gr-osmosdr/gr-osmosdr-0.2.3_p20210128.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{8..10} ) + +inherit cmake python-single-r1 + +DESCRIPTION="GNU Radio source block for OsmoSDR and rtlsdr and hackrf" +HOMEPAGE="http://sdr.osmocom.org/trac/wiki/GrOsmoSDR" + +if [[ ${PV} == 9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/osmocom/gr-osmosdr.git" +else + COMMIT="a100eb024c0210b95e4738b6efd836d48225bd03" + SRC_URI="https://github.com/osmocom/gr-osmosdr/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3" +SLOT="0/${PV}" +IUSE="airspy bladerf hackrf iqbalance python rtlsdr sdrplay soapy uhd xtrx" + +RDEPEND="${PYTHON_DEPS} + dev-libs/boost:= + dev-libs/log4cpp + >=net-wireless/gnuradio-3.9.0.0: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} + dev-lang/swig + " + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +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)" + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + if use python; then + find "${D}" -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}" +} |