Gentoo Archives: gentoo-commits

From: Richard Farina <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/soapysdr/
Date: Mon, 19 Feb 2018 17:29:40
Message-Id: 1519061361.8d81387a5e684b987d16d59fb96c70a5881ac9cf.zerochaos@gentoo
1 commit: 8d81387a5e684b987d16d59fb96c70a5881ac9cf
2 Author: Zero_Chaos <zerochaos <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 19 16:50:45 2018 +0000
4 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 19 17:29:21 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d81387a
7
8 net-wireless/soapysdr: import from pentoo
9
10 needed dep for soapy_power and gr-osmosdr
11
12 Package-Manager: Portage-2.3.24, Repoman-2.3.6
13
14 net-wireless/soapysdr/Manifest | 1 +
15 net-wireless/soapysdr/metadata.xml | 21 ++++++++++++
16 net-wireless/soapysdr/soapysdr-0.6.1.ebuild | 52 +++++++++++++++++++++++++++++
17 net-wireless/soapysdr/soapysdr-9999.ebuild | 52 +++++++++++++++++++++++++++++
18 4 files changed, 126 insertions(+)
19
20 diff --git a/net-wireless/soapysdr/Manifest b/net-wireless/soapysdr/Manifest
21 new file mode 100644
22 index 00000000000..f1850570c58
23 --- /dev/null
24 +++ b/net-wireless/soapysdr/Manifest
25 @@ -0,0 +1 @@
26 +DIST soapysdr-0.6.1.tar.gz 112820 BLAKE2B 42376a7a43c0d5a87a5b17b7d901cc7c74885083051c433c1f22427fe07a4fb0f111ddb460867bd7f748cb3ac6858b15e3dc69ba3ecca4574802c6bd0856a8cc SHA512 80ae8d0b096139e0df70524a1ff05fa1954755177d7920dbd8acb37e45cf86729e2745dcfd4e9c7ae2d7aa564335c2f197ca25ea387daa8f376d6c3e93234106
27
28 diff --git a/net-wireless/soapysdr/metadata.xml b/net-wireless/soapysdr/metadata.xml
29 new file mode 100644
30 index 00000000000..cf56d5875a6
31 --- /dev/null
32 +++ b/net-wireless/soapysdr/metadata.xml
33 @@ -0,0 +1,21 @@
34 +<?xml version="1.0" encoding="UTF-8"?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +<pkgmetadata>
37 + <maintainer type="person">
38 + <email>zerochaos@g.o</email>
39 + <name>Rick Farina</name>
40 + </maintainer>
41 + <maintainer type="project">
42 + <email>radio@g.o</email>
43 + <name>Radio</name>
44 + </maintainer>
45 + <use>
46 + <flag name="bladerf">Add support for bladerf hardware</flag>
47 + <flag name="hackrf">Add support for hackrf hardware</flag>
48 + <flag name="rtlsdr">Add support for rtlsdr hardware</flag>
49 + <flag name="uhd">Add support for Ettus USRP hardware</flag>
50 + </use>
51 + <upstream>
52 + <remote-id type="github">cpothosware/SoapySDR</remote-id>
53 + </upstream>
54 +</pkgmetadata>
55
56 diff --git a/net-wireless/soapysdr/soapysdr-0.6.1.ebuild b/net-wireless/soapysdr/soapysdr-0.6.1.ebuild
57 new file mode 100644
58 index 00000000000..0669ed4ac68
59 --- /dev/null
60 +++ b/net-wireless/soapysdr/soapysdr-0.6.1.ebuild
61 @@ -0,0 +1,52 @@
62 +# Copyright 1999-2018 Gentoo Foundation
63 +# Distributed under the terms of the GNU General Public License v2
64 +
65 +EAPI=6
66 +
67 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
68 +
69 +inherit cmake-utils python-r1
70 +
71 +DESCRIPTION="vendor and platform neutral SDR support library"
72 +HOMEPAGE="https://github.com/pothosware/SoapySDR"
73 +
74 +if [ "${PV}" = "9999" ]; then
75 + EGIT_REPO_URI="https://github.com/pothosware/SoapySDR.git"
76 + EGIT_CLONE_TYPE="shallow"
77 + KEYWORDS=""
78 + inherit git-r3
79 +else
80 + KEYWORDS="~amd64 ~x86"
81 + SRC_URI="https://github.com/pothosware/SoapySDR/archive/soapy-sdr-${PV}.tar.gz -> ${P}.tar.gz"
82 + S="${WORKDIR}"/SoapySDR-soapy-sdr-"${PV}"
83 +fi
84 +
85 +LICENSE="Boost-1.0"
86 +SLOT="0"
87 +
88 +IUSE="bladerf hackrf python rtlsdr uhd"
89 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
90 +
91 +RDEPEND="python? ( ${PYTHON_DEPS} )"
92 +DEPEND="${RDEPEND}
93 + python? ( dev-lang/swig:0 )
94 +"
95 +PDEPEND="bladerf? ( net-wireless/soapybladerf )
96 + hackrf? ( net-wireless/soapyhackrf )
97 + rtlsdr? ( net-wireless/soapyrtlsdr )
98 + uhd? ( net-wireless/soapyuhd )"
99 +
100 +src_configure() {
101 + configuration() {
102 + mycmakeargs+=( -DENABLE_PYTHON=ON )
103 + if python_is_python3; then
104 + mycmakeargs+=( -DBUILD_PYTHON3=ON )
105 + fi
106 + }
107 +
108 + if use python; then
109 + python_foreach_impl configuration
110 + fi
111 +
112 + cmake-utils_src_configure
113 +}
114
115 diff --git a/net-wireless/soapysdr/soapysdr-9999.ebuild b/net-wireless/soapysdr/soapysdr-9999.ebuild
116 new file mode 100644
117 index 00000000000..0669ed4ac68
118 --- /dev/null
119 +++ b/net-wireless/soapysdr/soapysdr-9999.ebuild
120 @@ -0,0 +1,52 @@
121 +# Copyright 1999-2018 Gentoo Foundation
122 +# Distributed under the terms of the GNU General Public License v2
123 +
124 +EAPI=6
125 +
126 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
127 +
128 +inherit cmake-utils python-r1
129 +
130 +DESCRIPTION="vendor and platform neutral SDR support library"
131 +HOMEPAGE="https://github.com/pothosware/SoapySDR"
132 +
133 +if [ "${PV}" = "9999" ]; then
134 + EGIT_REPO_URI="https://github.com/pothosware/SoapySDR.git"
135 + EGIT_CLONE_TYPE="shallow"
136 + KEYWORDS=""
137 + inherit git-r3
138 +else
139 + KEYWORDS="~amd64 ~x86"
140 + SRC_URI="https://github.com/pothosware/SoapySDR/archive/soapy-sdr-${PV}.tar.gz -> ${P}.tar.gz"
141 + S="${WORKDIR}"/SoapySDR-soapy-sdr-"${PV}"
142 +fi
143 +
144 +LICENSE="Boost-1.0"
145 +SLOT="0"
146 +
147 +IUSE="bladerf hackrf python rtlsdr uhd"
148 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
149 +
150 +RDEPEND="python? ( ${PYTHON_DEPS} )"
151 +DEPEND="${RDEPEND}
152 + python? ( dev-lang/swig:0 )
153 +"
154 +PDEPEND="bladerf? ( net-wireless/soapybladerf )
155 + hackrf? ( net-wireless/soapyhackrf )
156 + rtlsdr? ( net-wireless/soapyrtlsdr )
157 + uhd? ( net-wireless/soapyuhd )"
158 +
159 +src_configure() {
160 + configuration() {
161 + mycmakeargs+=( -DENABLE_PYTHON=ON )
162 + if python_is_python3; then
163 + mycmakeargs+=( -DBUILD_PYTHON3=ON )
164 + fi
165 + }
166 +
167 + if use python; then
168 + python_foreach_impl configuration
169 + fi
170 +
171 + cmake-utils_src_configure
172 +}