blob: 87fd96eee08331aba65fd9be5eb3ff9339ce5643 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
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
#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="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 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_configure() {
local mycmakeargs=(
-DENABLE_DEFAULT=OFF
-DPYTHON_EXECUTABLE="${PYTHON}"
-DENABLE_FILE=ON
-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
}
src_install() {
cmake-utils_src_install
if use python; then
python_fix_shebang "${ED}"/usr/bin
fi
}
|