net-wireless/gr-osmosdr: add soapy backend
authorZero_Chaos <zerochaos@gentoo.org>
Mon, 19 Feb 2018 16:52:08 +0000 (11:52 -0500)
committerZero_Chaos <zerochaos@gentoo.org>
Mon, 19 Feb 2018 17:29:25 +0000 (12:29 -0500)
bump, minor updates

Package-Manager: Portage-2.3.24, Repoman-2.3.6

net-wireless/gr-osmosdr/Manifest
net-wireless/gr-osmosdr/gr-osmosdr-0.1.4_p20150730.ebuild
net-wireless/gr-osmosdr/gr-osmosdr-0.1.4_p20170612.ebuild [moved from net-wireless/gr-osmosdr/gr-osmosdr-0.1.4.ebuild with 62% similarity]
net-wireless/gr-osmosdr/gr-osmosdr-9999.ebuild
net-wireless/gr-osmosdr/metadata.xml

index 81784e2b4ecb0dbd351172a4f78ca35af87ef26c..8ca6ce874625a9cf54f6e166d18d5b7f13bab5ab 100644 (file)
@@ -1,2 +1,2 @@
-DIST gr-osmosdr-0.1.4.tar.xz 141500 BLAKE2B 1e65d59440cd4beadcb54e6c20cb38b2ad222811348475ac9a7109971b64bbdc11991f6b4e7f0de1fba79f6eddba9befedf9a0a3903211cbae7581f99a13bd40 SHA512 930a7f6065fba709fb770fd373f0fe7eba13abf09e49f6e839718d547ce69176d93d89d1b037ee3f0cdffda7060ac6c9ff4023dc835ec50ef456d51d383046ab
 DIST gr-osmosdr-0.1.4_p20150730.tar.xz 1148596 BLAKE2B ff5f27dc32438c94ac920e77e7722b3a4331c350b0535a8a787b72ad8653f57dc2a434c3dec9499bbe791e12dc863323c8f9f6c750b2c154ab35ed722e8e221f SHA512 7e6847eba0d4e217ea71bb4b8105290b329bf8840a7193df013b3a0cd9c9ef57f3686252da48cb0df239288b5794c75178a8bb45ff2a2dd8b605f63fec2426d9
+DIST gr-osmosdr-0.1.4_p20170612.tar.xz 174416 BLAKE2B d0ef0d4348b561da10f3e8b99fb43f93fbee5c19a1a4fdcc465f2a63425a42ad0f8d64f522e4aafd5182e66c3c96b42f603e9b595e61b0be15b45eae5330fe5e SHA512 9cf3d0453696c7cfe0679136335a71ec5fd18c4b09cbe3e75fca90626065bf6640969bf224219fe796739abbc3b627eb8bf3509b52f764c38b57f169005ea933
index 417f9cbdcf4c711134558110ad23d2da44a79b24..b6d21d3f25c00723164081d8fe265e103c716c99 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -29,6 +29,7 @@ IUSE="bladerf fcd hackrf iqbalance mirisdr python rtlsdr uhd"
 RDEPEND="${PYTHON_DEPS}
        dev-libs/boost:=
        >=net-wireless/gnuradio-3.7_rc:0=[fcd?,${PYTHON_USEDEP}]
+       <net-wireless/gnuradio-9999
        bladerf? ( net-wireless/bladerf:= )
        hackrf? ( net-libs/libhackrf:= )
        iqbalance? ( net-wireless/gr-iqbal:=[${PYTHON_USEDEP}] )
similarity index 62%
rename from net-wireless/gr-osmosdr/gr-osmosdr-0.1.4.ebuild
rename to net-wireless/gr-osmosdr/gr-osmosdr-0.1.4_p20170612.ebuild
index 3290d91a6d3687fcdcf243cff23ef4a273662c8d..87fd96eee08331aba65fd9be5eb3ff9339ce5643 100644 (file)
@@ -1,7 +1,7 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 PYTHON_COMPAT=( python2_7 )
 
 inherit cmake-utils python-single-r1
@@ -15,49 +15,49 @@ if [[ ${PV} == 9999* ]]; then
        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
        #cd gr-osmosdr
        #git archive --format=tar --prefix=gr-osmosdr-${PV}/ v${PV} | xz > ../gr-osmosdr-${PV}.tar.xz
-       SRC_URI="http://cgit.osmocom.org/gr-osmosdr/snapshot/gr-osmosdr-${PV}.tar.xz"
-       KEYWORDS="~amd64 ~arm ~x86"
+       SRC_URI="https://dev.gentoo.org/~zerochaos/distfiles/gr-osmosdr-${PV}.tar.xz"
+       KEYWORDS="~amd64 ~x86"
 fi
 
 LICENSE="GPL-3"
 SLOT="0/${PV}"
-IUSE="bladerf fcd hackrf iqbalance mirisdr python rtlsdr uhd"
+IUSE="bladerf fcd hackrf iqbalance mirisdr python rtlsdr soapy uhd"
 
 RDEPEND="${PYTHON_DEPS}
        dev-libs/boost:=
        >=net-wireless/gnuradio-3.7_rc:0=[fcd?,${PYTHON_USEDEP}]
+       <net-wireless/gnuradio-9999
        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:= )
+       soapy? ( net-wireless/soapysdr )
        uhd? ( net-wireless/uhd:=[${PYTHON_USEDEP}] )"
 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)
+               -DENABLE_BLADERF="$(usex bladerf)"
+               -DENABLE_FCD="$(usex fcd)"
+               -DENABLE_HACKRF="$(usex hackrf)"
+               -DENABLE_IQBALANCE="$(usex iqbalance)"
+               -DENABLE_MIRI="$(usex mirisdr)"
+               -DENABLE_PYTHON="$(usex python)"
+               -DENABLE_RTL="$(usex rtlsdr)"
+               -DENABLE_RTL_TCP="$(usex rtlsdr)"
+               -DENABLE_SOAPY="$(usex soapy)"
+               -DENABLE_UHD="$(usex uhd)"
        )
 
        cmake-utils_src_configure
@@ -65,5 +65,7 @@ src_configure() {
 
 src_install() {
        cmake-utils_src_install
-       python_fix_shebang "${ED}"/usr/bin
+       if use python; then
+               python_fix_shebang "${ED}"/usr/bin
+       fi
 }
index 8c05c70733f1adabf40b6f6cf034210aa4564ed1..86677af90cad4fe20d2abb5c6795fa76c3913f94 100644 (file)
@@ -1,7 +1,7 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 PYTHON_COMPAT=( python2_7 )
 
 inherit cmake-utils python-single-r1
@@ -15,49 +15,49 @@ if [[ ${PV} == 9999* ]]; then
        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
        #cd gr-osmosdr
        #git archive --format=tar --prefix=gr-osmosdr-${PV}/ v${PV} | xz > ../gr-osmosdr-${PV}.tar.xz
-       SRC_URI="http://cgit.osmocom.org/gr-osmosdr/snapshot/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"
+IUSE="bladerf fcd hackrf iqbalance mirisdr python rtlsdr soapy uhd"
 
 RDEPEND="${PYTHON_DEPS}
        dev-libs/boost:=
        >=net-wireless/gnuradio-3.7_rc:0=[fcd?,${PYTHON_USEDEP}]
+       <net-wireless/gnuradio-9999
        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:= )
+       soapy? ( net-wireless/soapysdr )
        uhd? ( net-wireless/uhd:=[${PYTHON_USEDEP}] )"
 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)
+               -DENABLE_BLADERF="$(usex bladerf)"
+               -DENABLE_FCD="$(usex fcd)"
+               -DENABLE_HACKRF="$(usex hackrf)"
+               -DENABLE_IQBALANCE="$(usex iqbalance)"
+               -DENABLE_MIRI="$(usex mirisdr)"
+               -DENABLE_PYTHON="$(usex python)"
+               -DENABLE_RTL="$(usex rtlsdr)"
+               -DENABLE_RTL_TCP="$(usex rtlsdr)"
+               -DENABLE_SOAPY="$(usex soapy)"
+               -DENABLE_UHD="$(usex uhd)"
        )
 
        cmake-utils_src_configure
index e8e448711acc65d250acf41c406d88d158818572..9dc2a893a65815bb2aa10315a5692a5ef3b54f4b 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="soapy">Build with SoapySDR support</flag>
        <flag name="uhd">Build with Ettus Research USRP Hardware Driver support</flag>
 </use>
 </pkgmetadata>