summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2020-10-06 16:17:51 -0400
committerRick Farina <zerochaos@gentoo.org>2020-10-07 16:26:14 -0400
commit43aea490071739f96c7b05f5b440d84062e9c5e1 (patch)
treea64fb56d05e4072273ec518d063d2f665e2d0b43 /net-wireless/gr-m2k
parentnet-wireless/libm2k: initial ebuild (diff)
downloadgentoo-43aea490071739f96c7b05f5b440d84062e9c5e1.tar.gz
gentoo-43aea490071739f96c7b05f5b440d84062e9c5e1.tar.bz2
gentoo-43aea490071739f96c7b05f5b440d84062e9c5e1.zip
net-wireless/gr-m2k: initial ebuild
Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'net-wireless/gr-m2k')
-rw-r--r--net-wireless/gr-m2k/gr-m2k-9999.ebuild46
-rw-r--r--net-wireless/gr-m2k/metadata.xml15
2 files changed, 61 insertions, 0 deletions
diff --git a/net-wireless/gr-m2k/gr-m2k-9999.ebuild b/net-wireless/gr-m2k/gr-m2k-9999.ebuild
new file mode 100644
index 000000000000..5ba99f4abc99
--- /dev/null
+++ b/net-wireless/gr-m2k/gr-m2k-9999.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit cmake python-single-r1
+
+DESCRIPTION="A C++ library for interfacing with the ADALM2000"
+HOMEPAGE="https://github.com/analogdevicesinc/gr-m2k"
+if [ "${PV}" = "9999" ]; then
+ EGIT_REPO_URI="https://github.com/analogdevicesinc/gr-m2k.git"
+ inherit git-r3
+else
+ COMMIT="f98dfa42134d2dff458c7832842d1f51c3131aa4"
+ SRC_URI="https://github.com/analogdevicesinc/gr-m2k/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}-${COMMIT}"
+ KEYWORDS="~amd64 ~x86"
+fi
+LICENSE="GPL-3+"
+SLOT="0"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/boost:=
+ =net-wireless/gnuradio-3.8*:=
+ net-libs/libiio
+ net-wireless/libm2k
+ "
+DEPEND="${RDEPEND}
+ dev-lang/swig
+"
+
+src_configure() {
+ mycmakeargs=(
+ -DCMAKE_SKIP_BUILD_RPATH=TRUE
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ #this seems to not compile things
+ python_optimize
+}
diff --git a/net-wireless/gr-m2k/metadata.xml b/net-wireless/gr-m2k/metadata.xml
new file mode 100644
index 000000000000..683b3dae68f4
--- /dev/null
+++ b/net-wireless/gr-m2k/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zerochaos@gentoo.org</email>
+ <name>Rick Farina</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>radio@gentoo.org</email>
+ <name>Radio</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">analogdevicesinc/gr-m2k</remote-id>
+ </upstream>
+</pkgmetadata>