1 |
commit: e44e1ccc95b08bca1f9d1fa356bf5a123ffcc82c |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 30 23:26:30 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 30 23:26:30 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e44e1ccc |
7 |
|
8 |
net-libs/libbtbb: Revert "drop old" (restore stable version) |
9 |
|
10 |
ubertooth has a stable version so needs a stable net-libs/libbtbb. |
11 |
This reverts commit 9820e1418912ba9d7723b9caa66462bfe7396940. |
12 |
|
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
net-libs/libbtbb/Manifest | 2 + |
16 |
net-libs/libbtbb/libbtbb-2018.08.1.ebuild | 150 ++++++++++++++++++++++++++++++ |
17 |
net-libs/libbtbb/libbtbb-2018.12.1.ebuild | 150 ++++++++++++++++++++++++++++++ |
18 |
3 files changed, 302 insertions(+) |
19 |
|
20 |
diff --git a/net-libs/libbtbb/Manifest b/net-libs/libbtbb/Manifest |
21 |
index 512e1bc72a5..db5113ea61a 100644 |
22 |
--- a/net-libs/libbtbb/Manifest |
23 |
+++ b/net-libs/libbtbb/Manifest |
24 |
@@ -1 +1,3 @@ |
25 |
+DIST libbtbb-2018-08-R1.tar.gz 310542 BLAKE2B 0ae945c530c476caadfd7786f34eca4d7efd71c2f27a37c7b0242a1d3fba80e985c76a0635a354184aa80039ca8ac11f59778f550cbe9bb7e8a535723396cab0 SHA512 63fa995b51f2246b6f27d8aa1bd7a5c0276414df9d13d432d9a1a7ad78ac06e4c67fe3dcf00cf1634f11d6e999f13633591a3347d4e533fff4f131f8deee922e |
26 |
+DIST libbtbb-2018-12-R1.tar.gz 310437 BLAKE2B 8fec246e05c47df424840f159d97bbb8c6554b2ce72344b63602cb034eb712bf8ee9f280e7bbb5104dc0b9788818ea14cf53d09af0938b1bc1dcede5463b36ce SHA512 5c41bb4f0fdeedc1064de973daa4d396f73ff10b6e28266a43f029cbfa8a7f2db5e3b764410efb50ef79c56ba1fac0d242bb547c0a883d0dc3c06cc9e993332c |
27 |
DIST libbtbb-2020-12-R1.tar.gz 308434 BLAKE2B 0f802f3c5eef0c434d0468a72104cf63e6bf5f29467e1606d2892751cd8b4824639e3847c0b8305ace926667434e668d75b6d4544e8e026b07872bafbb09c90b SHA512 a3dc2c8d27e4b85aae4847ac39f871ecf800ebf911aacd01682da6c50b13f3247c7d683bce855f2cf59b56a29c661223a2c22e98a8d86e8edaccd57af282bac6 |
28 |
|
29 |
diff --git a/net-libs/libbtbb/libbtbb-2018.08.1.ebuild b/net-libs/libbtbb/libbtbb-2018.08.1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..a1587cd739a |
32 |
--- /dev/null |
33 |
+++ b/net-libs/libbtbb/libbtbb-2018.08.1.ebuild |
34 |
@@ -0,0 +1,150 @@ |
35 |
+# Copyright 1999-2020 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+inherit multilib cmake-utils |
41 |
+ |
42 |
+DESCRIPTION="A library to decode Bluetooth baseband packets" |
43 |
+HOMEPAGE="http://libbtbb.sourceforge.net/" |
44 |
+ |
45 |
+if [[ ${PV} == "9999" ]] ; then |
46 |
+ EGIT_REPO_URI="https://github.com/greatscottgadgets/libbtbb.git" |
47 |
+ inherit git-r3 |
48 |
+else |
49 |
+ MY_PV=${PV/\./-} |
50 |
+ MY_PV=${MY_PV/./-R} |
51 |
+ S=${WORKDIR}/${PN}-${MY_PV} |
52 |
+ SRC_URI="https://github.com/greatscottgadgets/${PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz" |
53 |
+ KEYWORDS="~amd64 ~arm ~x86" |
54 |
+fi |
55 |
+ |
56 |
+LICENSE="GPL-2" |
57 |
+SLOT="0/${PV}" |
58 |
+IUSE="static-libs wireshark-plugins" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ wireshark-plugins? ( |
62 |
+ >=net-analyzer/wireshark-1.8.3-r1:= |
63 |
+ ) |
64 |
+" |
65 |
+DEPEND="${RDEPEND} |
66 |
+ wireshark-plugins? ( dev-libs/glib |
67 |
+ virtual/pkgconfig )" |
68 |
+ |
69 |
+get_PV() { local pv=$(best_version $1); pv=${pv#$1-}; pv=${pv%-r*}; pv=${pv//_}; echo ${pv}; } |
70 |
+ |
71 |
+which_plugins() { |
72 |
+ if has_version '>=net-analyzer/wireshark-2.2.0'; then |
73 |
+ plugins="" |
74 |
+ elif has_version '>=net-analyzer/wireshark-1.12.0'; then |
75 |
+ plugins="btbb btbredr" |
76 |
+ elif has_version '<net-analyzer/wireshark-1.12.0'; then |
77 |
+ plugins="btbb btle btsm" |
78 |
+ fi |
79 |
+} |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ CMAKE_USE_DIR="${S}" |
83 |
+ BUILD_DIR="${S}"_build |
84 |
+ cmake-utils_src_prepare |
85 |
+ |
86 |
+ if use wireshark-plugins; then |
87 |
+ which_plugins |
88 |
+ for i in ${plugins} |
89 |
+ do |
90 |
+ sed -i 's#column_info#packet#' wireshark/plugins/${i}/cmake/FindWireshark.cmake || die |
91 |
+ if has_version '>=net-analyzer/wireshark-2.0'; then |
92 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} |
93 |
+ else |
94 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} |
95 |
+ fi |
96 |
+ BUILD_DIR="${WORKDIR}"/${i}_build |
97 |
+ cmake-utils_src_prepare |
98 |
+ done |
99 |
+ fi |
100 |
+} |
101 |
+ |
102 |
+src_configure() { |
103 |
+ CMAKE_USE_DIR="${S}" |
104 |
+ BUILD_DIR="${S}"_build |
105 |
+ local mycmakeargs=( |
106 |
+ -DENABLE_PYTHON=OFF |
107 |
+ -DBUILD_STATIC_LIB=$(usex static-libs) |
108 |
+ -DBUILD_ROOT="${ED}" |
109 |
+ ) |
110 |
+ cmake-utils_src_configure |
111 |
+ |
112 |
+ if use wireshark-plugins; then |
113 |
+ for i in ${plugins} |
114 |
+ do |
115 |
+ if has_version '>=net-analyzer/wireshark-2.0'; then |
116 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} |
117 |
+ else |
118 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} |
119 |
+ fi |
120 |
+ BUILD_DIR="${WORKDIR}"/${i}_build |
121 |
+ local mycmakeargs=( |
122 |
+ -DCMAKE_INSTALL_LIBDIR="/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)" |
123 |
+ ) |
124 |
+ cmake-utils_src_configure |
125 |
+ done |
126 |
+ fi |
127 |
+} |
128 |
+ |
129 |
+src_compile() { |
130 |
+ CMAKE_USE_DIR="${S}" |
131 |
+ BUILD_DIR="${S}"_build |
132 |
+ cmake-utils_src_compile |
133 |
+ |
134 |
+ if use wireshark-plugins; then |
135 |
+ for i in ${plugins} |
136 |
+ do |
137 |
+ if has_version '>=net-analyzer/wireshark-2.0'; then |
138 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} |
139 |
+ else |
140 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} |
141 |
+ fi |
142 |
+ BUILD_DIR="${WORKDIR}"/${i}_build |
143 |
+ cmake-utils_src_compile |
144 |
+ done |
145 |
+ fi |
146 |
+} |
147 |
+ |
148 |
+src_test() { |
149 |
+ CMAKE_USE_DIR="${S}" |
150 |
+ BUILD_DIR="${S}"_build |
151 |
+ cmake-utils_src_test |
152 |
+ |
153 |
+ if use wireshark-plugins; then |
154 |
+ for i in ${plugins} |
155 |
+ do |
156 |
+ if has_version '>=net-analyzer/wireshark-2.0'; then |
157 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} |
158 |
+ else |
159 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} |
160 |
+ fi |
161 |
+ BUILD_DIR="${WORKDIR}"/${i}_build |
162 |
+ cmake-utils_src_test |
163 |
+ done |
164 |
+ fi |
165 |
+} |
166 |
+ |
167 |
+src_install() { |
168 |
+ CMAKE_USE_DIR="${S}" |
169 |
+ BUILD_DIR="${S}"_build |
170 |
+ cmake-utils_src_install |
171 |
+ |
172 |
+ if use wireshark-plugins; then |
173 |
+ for i in ${plugins} |
174 |
+ do |
175 |
+ if has_version '>=net-analyzer/wireshark-2.0'; then |
176 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} |
177 |
+ else |
178 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} |
179 |
+ fi |
180 |
+ BUILD_DIR="${WORKDIR}"/${i}_build |
181 |
+ cmake-utils_src_install |
182 |
+ done |
183 |
+ fi |
184 |
+} |
185 |
|
186 |
diff --git a/net-libs/libbtbb/libbtbb-2018.12.1.ebuild b/net-libs/libbtbb/libbtbb-2018.12.1.ebuild |
187 |
new file mode 100644 |
188 |
index 00000000000..d3976d1260b |
189 |
--- /dev/null |
190 |
+++ b/net-libs/libbtbb/libbtbb-2018.12.1.ebuild |
191 |
@@ -0,0 +1,150 @@ |
192 |
+# Copyright 1999-2020 Gentoo Authors |
193 |
+# Distributed under the terms of the GNU General Public License v2 |
194 |
+ |
195 |
+EAPI=6 |
196 |
+ |
197 |
+inherit multilib cmake-utils |
198 |
+ |
199 |
+DESCRIPTION="A library to decode Bluetooth baseband packets" |
200 |
+HOMEPAGE="http://libbtbb.sourceforge.net/" |
201 |
+ |
202 |
+if [[ ${PV} == "9999" ]] ; then |
203 |
+ EGIT_REPO_URI="https://github.com/greatscottgadgets/libbtbb.git" |
204 |
+ inherit git-r3 |
205 |
+else |
206 |
+ MY_PV=${PV/\./-} |
207 |
+ MY_PV=${MY_PV/./-R} |
208 |
+ S=${WORKDIR}/${PN}-${MY_PV} |
209 |
+ SRC_URI="https://github.com/greatscottgadgets/${PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz" |
210 |
+ KEYWORDS="amd64 arm x86" |
211 |
+fi |
212 |
+ |
213 |
+LICENSE="GPL-2" |
214 |
+SLOT="0/${PV}" |
215 |
+IUSE="static-libs wireshark-plugins" |
216 |
+ |
217 |
+RDEPEND=" |
218 |
+ wireshark-plugins? ( |
219 |
+ >=net-analyzer/wireshark-1.8.3-r1:= |
220 |
+ ) |
221 |
+" |
222 |
+DEPEND="${RDEPEND} |
223 |
+ wireshark-plugins? ( dev-libs/glib |
224 |
+ virtual/pkgconfig )" |
225 |
+ |
226 |
+get_PV() { local pv=$(best_version $1); pv=${pv#$1-}; pv=${pv%-r*}; pv=${pv//_}; echo ${pv}; } |
227 |
+ |
228 |
+which_plugins() { |
229 |
+ if has_version '>=net-analyzer/wireshark-2.2.0'; then |
230 |
+ plugins="" |
231 |
+ elif has_version '>=net-analyzer/wireshark-1.12.0'; then |
232 |
+ plugins="btbb btbredr" |
233 |
+ elif has_version '<net-analyzer/wireshark-1.12.0'; then |
234 |
+ plugins="btbb btle btsm" |
235 |
+ fi |
236 |
+} |
237 |
+ |
238 |
+src_prepare() { |
239 |
+ CMAKE_USE_DIR="${S}" |
240 |
+ BUILD_DIR="${S}"_build |
241 |
+ cmake-utils_src_prepare |
242 |
+ |
243 |
+ if use wireshark-plugins; then |
244 |
+ which_plugins |
245 |
+ for i in ${plugins} |
246 |
+ do |
247 |
+ sed -i 's#column_info#packet#' wireshark/plugins/${i}/cmake/FindWireshark.cmake || die |
248 |
+ if has_version '>=net-analyzer/wireshark-2.0'; then |
249 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} |
250 |
+ else |
251 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} |
252 |
+ fi |
253 |
+ BUILD_DIR="${WORKDIR}"/${i}_build |
254 |
+ cmake-utils_src_prepare |
255 |
+ done |
256 |
+ fi |
257 |
+} |
258 |
+ |
259 |
+src_configure() { |
260 |
+ CMAKE_USE_DIR="${S}" |
261 |
+ BUILD_DIR="${S}"_build |
262 |
+ local mycmakeargs=( |
263 |
+ -DENABLE_PYTHON=OFF |
264 |
+ -DBUILD_STATIC_LIB=$(usex static-libs) |
265 |
+ -DBUILD_ROOT="${ED}" |
266 |
+ ) |
267 |
+ cmake-utils_src_configure |
268 |
+ |
269 |
+ if use wireshark-plugins; then |
270 |
+ for i in ${plugins} |
271 |
+ do |
272 |
+ if has_version '>=net-analyzer/wireshark-2.0'; then |
273 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} |
274 |
+ else |
275 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} |
276 |
+ fi |
277 |
+ BUILD_DIR="${WORKDIR}"/${i}_build |
278 |
+ local mycmakeargs=( |
279 |
+ -DCMAKE_INSTALL_LIBDIR="/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)" |
280 |
+ ) |
281 |
+ cmake-utils_src_configure |
282 |
+ done |
283 |
+ fi |
284 |
+} |
285 |
+ |
286 |
+src_compile() { |
287 |
+ CMAKE_USE_DIR="${S}" |
288 |
+ BUILD_DIR="${S}"_build |
289 |
+ cmake-utils_src_compile |
290 |
+ |
291 |
+ if use wireshark-plugins; then |
292 |
+ for i in ${plugins} |
293 |
+ do |
294 |
+ if has_version '>=net-analyzer/wireshark-2.0'; then |
295 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} |
296 |
+ else |
297 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} |
298 |
+ fi |
299 |
+ BUILD_DIR="${WORKDIR}"/${i}_build |
300 |
+ cmake-utils_src_compile |
301 |
+ done |
302 |
+ fi |
303 |
+} |
304 |
+ |
305 |
+src_test() { |
306 |
+ CMAKE_USE_DIR="${S}" |
307 |
+ BUILD_DIR="${S}"_build |
308 |
+ cmake-utils_src_test |
309 |
+ |
310 |
+ if use wireshark-plugins; then |
311 |
+ for i in ${plugins} |
312 |
+ do |
313 |
+ if has_version '>=net-analyzer/wireshark-2.0'; then |
314 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} |
315 |
+ else |
316 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} |
317 |
+ fi |
318 |
+ BUILD_DIR="${WORKDIR}"/${i}_build |
319 |
+ cmake-utils_src_test |
320 |
+ done |
321 |
+ fi |
322 |
+} |
323 |
+ |
324 |
+src_install() { |
325 |
+ CMAKE_USE_DIR="${S}" |
326 |
+ BUILD_DIR="${S}"_build |
327 |
+ cmake-utils_src_install |
328 |
+ |
329 |
+ if use wireshark-plugins; then |
330 |
+ for i in ${plugins} |
331 |
+ do |
332 |
+ if has_version '>=net-analyzer/wireshark-2.0'; then |
333 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins/${i} |
334 |
+ else |
335 |
+ CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i} |
336 |
+ fi |
337 |
+ BUILD_DIR="${WORKDIR}"/${i}_build |
338 |
+ cmake-utils_src_install |
339 |
+ done |
340 |
+ fi |
341 |
+} |