diff options
Diffstat (limited to 'net-wireless/gr-osmosdr')
-rw-r--r-- | net-wireless/gr-osmosdr/Manifest | 4 | ||||
-rw-r--r-- | net-wireless/gr-osmosdr/gr-osmosdr-0.1.4_p20150730.ebuild | 73 | ||||
-rw-r--r-- | net-wireless/gr-osmosdr/gr-osmosdr-9999.ebuild | 73 | ||||
-rw-r--r-- | net-wireless/gr-osmosdr/metadata.xml | 18 |
4 files changed, 168 insertions, 0 deletions
diff --git a/net-wireless/gr-osmosdr/Manifest b/net-wireless/gr-osmosdr/Manifest new file mode 100644 index 0000000..a3f9912 --- /dev/null +++ b/net-wireless/gr-osmosdr/Manifest @@ -0,0 +1,4 @@ +DIST gr-osmosdr-0.1.4_p20150730.tar.xz 1148596 SHA256 b94e597d8042717d70f5f8c358fb8446ef64a91fa6ab2b362e0e7d37457bd961 SHA512 7e6847eba0d4e217ea71bb4b8105290b329bf8840a7193df013b3a0cd9c9ef57f3686252da48cb0df239288b5794c75178a8bb45ff2a2dd8b605f63fec2426d9 WHIRLPOOL db2df16796ab5974d22d4f606bd73aaec53693933fcc5c12e5126f14e4d3d2eadacd7cf2e28cb18a951caf9a16440c72f54177acfd3af16512febd97d6e0072c +EBUILD gr-osmosdr-0.1.4_p20150730.ebuild 1944 SHA256 dccc9e5fa9ea86dd65a6f0667824261c135a2e876f553b00fee81bedf66d3ba6 SHA512 0cf327e1f39b2ebf7b54d1173f74465dfec9afcf90879bc200374e09c37755c11cf62ef7009a7f235916d3794494cfd3c20c72070cb9cab229e87d9903745f25 WHIRLPOOL caadb71a1b7da362f2679c6ee06d17da6e9af18fcae94c616a37e1a24efc135a07550ba1c5ca7488a4bdeee79b4b8f58316735cb09aadbc078e4a79c5e28cfb2 +EBUILD gr-osmosdr-9999.ebuild 1944 SHA256 dccc9e5fa9ea86dd65a6f0667824261c135a2e876f553b00fee81bedf66d3ba6 SHA512 0cf327e1f39b2ebf7b54d1173f74465dfec9afcf90879bc200374e09c37755c11cf62ef7009a7f235916d3794494cfd3c20c72070cb9cab229e87d9903745f25 WHIRLPOOL caadb71a1b7da362f2679c6ee06d17da6e9af18fcae94c616a37e1a24efc135a07550ba1c5ca7488a4bdeee79b4b8f58316735cb09aadbc078e4a79c5e28cfb2 +MISC metadata.xml 834 SHA256 27bc9dc40320cf30deaeac717217cb100bf58687ab27586ba23ebe85275a556a SHA512 f161b8410fb0e856aee78a7e72073032a1facf669c11fc9709a1f6cbe65f220cd5641b5c16b2899ef255847ba4d032d0359c28e7f755fca81e77d5b52cd6de80 WHIRLPOOL 5d8b9b91c41967a8e3ece2c379e3b773e879e9e34723b4bc90b22767652ac44fce5c2db9f79f8b5f19613ac23337fdfbaf89bfbd4daf7b70b5aae9e99b0fd932 diff --git a/net-wireless/gr-osmosdr/gr-osmosdr-0.1.4_p20150730.ebuild b/net-wireless/gr-osmosdr/gr-osmosdr-0.1.4_p20150730.ebuild new file mode 100644 index 0000000..de1842b --- /dev/null +++ b/net-wireless/gr-osmosdr/gr-osmosdr-0.1.4_p20150730.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils 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 + SRC_URI="" + EGIT_REPO_URI="git://git.osmocom.org/${PN}.git" + KEYWORDS="" +else + #git clone git://git.osmocom.org/gr-osmosdr.git + #cd gr-osmosdr + #git archive --format=tar --prefix=gr-osmosdr-${PV}/ v${PV} | xz > ../gr-osmosdr-${PV}.tar.xz + SRC_URI="https://dev.gentoo.org/~zerochaos/distfiles/gr-osmosdr-${PV}.tar.xz" + KEYWORDS="~amd64 ~arm ~x86" +fi + +LICENSE="GPL-3" +SLOT="0/${PV}" +IUSE="bladerf fcd hackrf iqbalance mirisdr python rtlsdr uhd soapysdr" + +RDEPEND="${PYTHON_DEPS} + dev-libs/boost:= + >=net-wireless/gnuradio-3.7_rc:0=[fcd?,${PYTHON_USEDEP}] + bladerf? ( net-wireless/bladerf:= ) + hackrf? ( net-libs/libhackrf:= ) + iqbalance? ( net-wireless/gr-iqbal:=[${PYTHON_USEDEP}] ) + mirisdr? ( net-libs/libmirisdr:= ) + rtlsdr? ( >=net-wireless/rtl-sdr-0.5.3:= ) + uhd? ( net-wireless/uhd:=[${PYTHON_USEDEP}] ) + soapysdr? ( net-wireless/soapysdr:= )" +DEPEND="${RDEPEND} + dev-python/cheetah" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_prepare() { + epatch_user +} + +src_configure() { + local mycmakeargs=( + -DENABLE_DEFAULT=OFF + -DPYTHON_EXECUTABLE="${PYTHON}" + -DENABLE_FILE=ON + $(cmake-utils_use_enable bladerf) + $(cmake-utils_use_enable fcd) + $(cmake-utils_use_enable hackrf) + $(cmake-utils_use_enable iqbalance) + $(cmake-utils_use_enable mirisdr MIRI) + $(cmake-utils_use_enable python) + $(cmake-utils_use_enable rtlsdr RTL) + $(cmake-utils_use_enable rtlsdr RTL_TCP) + $(cmake-utils_use_enable uhd) + $(cmake-utils_use_enable soapysdr SOAPY) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + if use python; then + python_fix_shebang "${ED}"/usr/bin + fi +} diff --git a/net-wireless/gr-osmosdr/gr-osmosdr-9999.ebuild b/net-wireless/gr-osmosdr/gr-osmosdr-9999.ebuild new file mode 100644 index 0000000..de1842b --- /dev/null +++ b/net-wireless/gr-osmosdr/gr-osmosdr-9999.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils 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 + SRC_URI="" + EGIT_REPO_URI="git://git.osmocom.org/${PN}.git" + KEYWORDS="" +else + #git clone git://git.osmocom.org/gr-osmosdr.git + #cd gr-osmosdr + #git archive --format=tar --prefix=gr-osmosdr-${PV}/ v${PV} | xz > ../gr-osmosdr-${PV}.tar.xz + SRC_URI="https://dev.gentoo.org/~zerochaos/distfiles/gr-osmosdr-${PV}.tar.xz" + KEYWORDS="~amd64 ~arm ~x86" +fi + +LICENSE="GPL-3" +SLOT="0/${PV}" +IUSE="bladerf fcd hackrf iqbalance mirisdr python rtlsdr uhd soapysdr" + +RDEPEND="${PYTHON_DEPS} + dev-libs/boost:= + >=net-wireless/gnuradio-3.7_rc:0=[fcd?,${PYTHON_USEDEP}] + bladerf? ( net-wireless/bladerf:= ) + hackrf? ( net-libs/libhackrf:= ) + iqbalance? ( net-wireless/gr-iqbal:=[${PYTHON_USEDEP}] ) + mirisdr? ( net-libs/libmirisdr:= ) + rtlsdr? ( >=net-wireless/rtl-sdr-0.5.3:= ) + uhd? ( net-wireless/uhd:=[${PYTHON_USEDEP}] ) + soapysdr? ( net-wireless/soapysdr:= )" +DEPEND="${RDEPEND} + dev-python/cheetah" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_prepare() { + epatch_user +} + +src_configure() { + local mycmakeargs=( + -DENABLE_DEFAULT=OFF + -DPYTHON_EXECUTABLE="${PYTHON}" + -DENABLE_FILE=ON + $(cmake-utils_use_enable bladerf) + $(cmake-utils_use_enable fcd) + $(cmake-utils_use_enable hackrf) + $(cmake-utils_use_enable iqbalance) + $(cmake-utils_use_enable mirisdr MIRI) + $(cmake-utils_use_enable python) + $(cmake-utils_use_enable rtlsdr RTL) + $(cmake-utils_use_enable rtlsdr RTL_TCP) + $(cmake-utils_use_enable uhd) + $(cmake-utils_use_enable soapysdr SOAPY) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + if use python; then + python_fix_shebang "${ED}"/usr/bin + fi +} diff --git a/net-wireless/gr-osmosdr/metadata.xml b/net-wireless/gr-osmosdr/metadata.xml new file mode 100644 index 0000000..8b0b483 --- /dev/null +++ b/net-wireless/gr-osmosdr/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>andy@ndyk.de</email> + <name>Andrew Karpow</name> + </maintainer> +<use> + <flag name="bladerf">Build with Nuand BladeRF support</flag> + <flag name="fcd">Build with Funcube Dongle support</flag> + <flag name="hackrf">Build with Great Scott Gadgets HackRF support</flag> + <flag name="iqbalance">Enable support for I/Q balancing using gr-iqbal</flag> + <flag name="mirisdr">Build with Mirics MSi2500 + MSi001 SDR support</flag> + <flag name="rtlsdr">Build with Realtek RTL2832U (rtlsdr) support</flag> + <flag name="uhd">Build with Ettus Research USRP Hardware Driver support</flag> + <flag name="soapysdr">Build with SoapySDR abstraction Driver support</flag> +</use> +</pkgmetadata> |