net-wireless/gr-osmosdr: Add SDRplay device support. Update live ebuild
authorChristian Ruppert <idl0r@gentoo.org>
Sat, 25 Aug 2018 19:00:27 +0000 (21:00 +0200)
committerChristian Ruppert <idl0r@gentoo.org>
Sat, 25 Aug 2018 19:22:07 +0000 (21:22 +0200)
Package-Manager: Portage-2.3.48, Repoman-2.3.10

net-wireless/gr-osmosdr/gr-osmosdr-0.1.4_p20180626.ebuild
net-wireless/gr-osmosdr/gr-osmosdr-9999.ebuild
net-wireless/gr-osmosdr/metadata.xml

index 2286e8a9c6a10e86b9a7c75bf97a7c13c0a74fab..e3d156e35ccdd5e689a0750b1fa090ef92a630d5 100644 (file)
@@ -13,6 +13,7 @@ if [[ ${PV} == 9999* ]]; then
        inherit git-r3
        SRC_URI=""
        EGIT_REPO_URI="git://git.osmocom.org/${PN}.git"
+       KEYWORDS=""
 else
        #SRC_URI="http://cgit.osmocom.org/gr-osmosdr/snapshot/gr-osmosdr-${PV}.tar.xz"
        #git clone git://git.osmocom.org/gr-osmosdr.git
@@ -24,7 +25,7 @@ fi
 
 LICENSE="GPL-3"
 SLOT="0/${PV}"
-IUSE="bladerf fcd hackrf iqbalance mirisdr python rtlsdr soapy uhd"
+IUSE="bladerf fcd hackrf iqbalance mirisdr python rtlsdr sdrplay soapy uhd"
 
 RDEPEND="${PYTHON_DEPS}
        dev-libs/boost:=
@@ -34,6 +35,7 @@ RDEPEND="${PYTHON_DEPS}
        iqbalance? ( net-wireless/gr-iqbal:=[${PYTHON_USEDEP}] )
        mirisdr? ( net-libs/libmirisdr:= )
        rtlsdr? ( >=net-wireless/rtl-sdr-0.5.3:= )
+       sdrplay? ( net-wireless/sdrplay )
        soapy? ( net-wireless/soapysdr )
        uhd? ( net-wireless/uhd:=[${PYTHON_USEDEP}] )"
 DEPEND="${RDEPEND}
@@ -56,6 +58,8 @@ src_configure() {
                -DENABLE_RTL_TCP="$(usex rtlsdr)"
                -DENABLE_SOAPY="$(usex soapy)"
                -DENABLE_UHD="$(usex uhd)"
+               -DENABLE_SDRPLAY="$(usex sdrplay)"
+               -DENABLE_NONFREE="$(usex sdrplay)"
        )
 
        cmake-utils_src_configure
index ffbeed261500af8510d050f6d13fa9a97f522624..e3d156e35ccdd5e689a0750b1fa090ef92a630d5 100644 (file)
@@ -25,16 +25,17 @@ fi
 
 LICENSE="GPL-3"
 SLOT="0/${PV}"
-IUSE="bladerf fcd hackrf iqbalance mirisdr python rtlsdr soapy uhd"
+IUSE="bladerf fcd hackrf iqbalance mirisdr python rtlsdr sdrplay soapy uhd"
 
 RDEPEND="${PYTHON_DEPS}
        dev-libs/boost:=
        >=net-wireless/gnuradio-3.7_rc:0=[fcd?,${PYTHON_USEDEP}]
-       bladerf? ( net-wireless/bladerf:= )
+       bladerf? ( >=net-wireless/bladerf-2018.08_rc1:= )
        hackrf? ( net-libs/libhackrf:= )
        iqbalance? ( net-wireless/gr-iqbal:=[${PYTHON_USEDEP}] )
        mirisdr? ( net-libs/libmirisdr:= )
        rtlsdr? ( >=net-wireless/rtl-sdr-0.5.3:= )
+       sdrplay? ( net-wireless/sdrplay )
        soapy? ( net-wireless/soapysdr )
        uhd? ( net-wireless/uhd:=[${PYTHON_USEDEP}] )"
 DEPEND="${RDEPEND}
@@ -57,6 +58,8 @@ src_configure() {
                -DENABLE_RTL_TCP="$(usex rtlsdr)"
                -DENABLE_SOAPY="$(usex soapy)"
                -DENABLE_UHD="$(usex uhd)"
+               -DENABLE_SDRPLAY="$(usex sdrplay)"
+               -DENABLE_NONFREE="$(usex sdrplay)"
        )
 
        cmake-utils_src_configure
index 9dc2a893a65815bb2aa10315a5692a5ef3b54f4b..2ffcfa21c90d0feca5073049fa4b33056b033a90 100644 (file)
@@ -12,6 +12,7 @@
        <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="sdrplay">Enable support for SDRplay devices through <pkg>net-wireless/sdrplay</pkg></flag>
        <flag name="soapy">Build with SoapySDR support</flag>
        <flag name="uhd">Build with Ettus Research USRP Hardware Driver support</flag>
 </use>