summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/gr-iio/gr-iio-0.3_p20210726.ebuild')
-rw-r--r--net-wireless/gr-iio/gr-iio-0.3_p20210726.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/net-wireless/gr-iio/gr-iio-0.3_p20210726.ebuild b/net-wireless/gr-iio/gr-iio-0.3_p20210726.ebuild
new file mode 100644
index 000000000000..e36aba5be25f
--- /dev/null
+++ b/net-wireless/gr-iio/gr-iio-0.3_p20210726.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2022 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 IIO Blocks"
+HOMEPAGE="https://github.com/analogdevicesinc/gr-iio"
+if [ "${PV}" = "9999" ]; then
+ EGIT_REPO_URI="https://github.com/analogdevicesinc/gr-iio"
+ EGIT_BRANCH="upgrade-3.8"
+ inherit git-r3
+else
+ COMMIT="407865f89b92daa89fec5c2b3c0e44bb422ef9d3"
+ SRC_URI="https://github.com/analogdevicesinc/gr-iio/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}-${COMMIT}"
+ KEYWORDS="~amd64 ~riscv ~x86"
+fi
+LICENSE="GPL-3+"
+SLOT="0"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+RDEPEND="${PYTHON_DEPS}
+ !net-wireless/gnuradio[iio(-)]
+ net-wireless/gnuradio:=
+ dev-libs/boost:=
+ net-libs/libiio:=
+ dev-libs/gmp
+ sci-libs/volk:=
+ net-libs/libad9361-iio:="
+
+DEPEND="${RDEPEND}
+ sys-devel/flex:=
+ sys-devel/bison:=
+ dev-util/cppunit:=
+ dev-lang/swig:0"
+
+src_install() {
+ cmake_src_install
+ # Remove stray python files generated by the build system
+ find "${ED}" -name '*.pyc' -exec rm -f {} \; || die
+ find "${ED}" -name '*.pyo' -exec rm -f {} \; || die
+ python_optimize
+}