Gentoo Archives: gentoo-commits

From: Rick Farina <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libbtbb/
Date: Thu, 07 Jan 2021 03:00:10
Message-Id: 1609988366.f30bf3ec75bbbc8ba7cd8e6dd5085bc731a2966e.zerochaos@gentoo
1 commit: f30bf3ec75bbbc8ba7cd8e6dd5085bc731a2966e
2 Author: Rick Farina <zerochaos <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 7 02:59:09 2021 +0000
4 Commit: Rick Farina <zerochaos <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 7 02:59:26 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f30bf3ec
7
8 net-libs/libbtbb: bump
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>
12
13 net-libs/libbtbb/Manifest | 1 +
14 net-libs/libbtbb/libbtbb-2020.12.1.ebuild | 150 ++++++++++++++++++++++++++++++
15 2 files changed, 151 insertions(+)
16
17 diff --git a/net-libs/libbtbb/Manifest b/net-libs/libbtbb/Manifest
18 index 5523e14eef9..db5113ea61a 100644
19 --- a/net-libs/libbtbb/Manifest
20 +++ b/net-libs/libbtbb/Manifest
21 @@ -1,2 +1,3 @@
22 DIST libbtbb-2018-08-R1.tar.gz 310542 BLAKE2B 0ae945c530c476caadfd7786f34eca4d7efd71c2f27a37c7b0242a1d3fba80e985c76a0635a354184aa80039ca8ac11f59778f550cbe9bb7e8a535723396cab0 SHA512 63fa995b51f2246b6f27d8aa1bd7a5c0276414df9d13d432d9a1a7ad78ac06e4c67fe3dcf00cf1634f11d6e999f13633591a3347d4e533fff4f131f8deee922e
23 DIST libbtbb-2018-12-R1.tar.gz 310437 BLAKE2B 8fec246e05c47df424840f159d97bbb8c6554b2ce72344b63602cb034eb712bf8ee9f280e7bbb5104dc0b9788818ea14cf53d09af0938b1bc1dcede5463b36ce SHA512 5c41bb4f0fdeedc1064de973daa4d396f73ff10b6e28266a43f029cbfa8a7f2db5e3b764410efb50ef79c56ba1fac0d242bb547c0a883d0dc3c06cc9e993332c
24 +DIST libbtbb-2020-12-R1.tar.gz 308434 BLAKE2B 0f802f3c5eef0c434d0468a72104cf63e6bf5f29467e1606d2892751cd8b4824639e3847c0b8305ace926667434e668d75b6d4544e8e026b07872bafbb09c90b SHA512 a3dc2c8d27e4b85aae4847ac39f871ecf800ebf911aacd01682da6c50b13f3247c7d683bce855f2cf59b56a29c661223a2c22e98a8d86e8edaccd57af282bac6
25
26 diff --git a/net-libs/libbtbb/libbtbb-2020.12.1.ebuild b/net-libs/libbtbb/libbtbb-2020.12.1.ebuild
27 new file mode 100644
28 index 00000000000..758b20c33cd
29 --- /dev/null
30 +++ b/net-libs/libbtbb/libbtbb-2020.12.1.ebuild
31 @@ -0,0 +1,150 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit multilib cmake-utils
38 +
39 +DESCRIPTION="A library to decode Bluetooth baseband packets"
40 +HOMEPAGE="http://libbtbb.sourceforge.net/"
41 +
42 +if [[ ${PV} == "9999" ]] ; then
43 + EGIT_REPO_URI="https://github.com/greatscottgadgets/libbtbb.git"
44 + inherit git-r3
45 +else
46 + MY_PV=${PV/\./-}
47 + MY_PV=${MY_PV/./-R}
48 + S=${WORKDIR}/${PN}-${MY_PV}
49 + SRC_URI="https://github.com/greatscottgadgets/${PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
50 + KEYWORDS="~amd64 ~arm ~x86"
51 +fi
52 +
53 +LICENSE="GPL-2"
54 +SLOT="0/${PV}"
55 +IUSE="static-libs wireshark-plugins"
56 +
57 +RDEPEND="
58 + wireshark-plugins? (
59 + >=net-analyzer/wireshark-1.8.3-r1:=
60 + )
61 +"
62 +DEPEND="${RDEPEND}
63 + wireshark-plugins? ( dev-libs/glib
64 + virtual/pkgconfig )"
65 +
66 +get_PV() { local pv=$(best_version $1); pv=${pv#$1-}; pv=${pv%-r*}; pv=${pv//_}; echo ${pv}; }
67 +
68 +which_plugins() {
69 + if has_version '>=net-analyzer/wireshark-2.2.0'; then
70 + plugins=""
71 + elif has_version '>=net-analyzer/wireshark-1.12.0'; then
72 + plugins="btbb btbredr"
73 + elif has_version '<net-analyzer/wireshark-1.12.0'; then
74 + plugins="btbb btle btsm"
75 + fi
76 +}
77 +
78 +src_prepare() {
79 + CMAKE_USE_DIR="${S}"
80 + BUILD_DIR="${S}"_build
81 + cmake-utils_src_prepare
82 +
83 + if use wireshark-plugins; then
84 + which_plugins
85 + for i in ${plugins}
86 + do
87 + sed -i 's#column_info#packet#' wireshark/plugins/${i}/cmake/FindWireshark.cmake || die
88 + if has_version '>=net-analyzer/wireshark-2.0'; then
89 + CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
90 + else
91 + CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
92 + fi
93 + BUILD_DIR="${WORKDIR}"/${i}_build
94 + cmake-utils_src_prepare
95 + done
96 + fi
97 +}
98 +
99 +src_configure() {
100 + CMAKE_USE_DIR="${S}"
101 + BUILD_DIR="${S}"_build
102 + local mycmakeargs=(
103 + -DENABLE_PYTHON=OFF
104 + -DBUILD_STATIC_LIB=$(usex static-libs)
105 + -DBUILD_ROOT="${ED}"
106 + )
107 + cmake-utils_src_configure
108 +
109 + if use wireshark-plugins; then
110 + for i in ${plugins}
111 + do
112 + if has_version '>=net-analyzer/wireshark-2.0'; then
113 + CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
114 + else
115 + CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
116 + fi
117 + BUILD_DIR="${WORKDIR}"/${i}_build
118 + local mycmakeargs=(
119 + -DCMAKE_INSTALL_LIBDIR="/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)"
120 + )
121 + cmake-utils_src_configure
122 + done
123 + fi
124 +}
125 +
126 +src_compile() {
127 + CMAKE_USE_DIR="${S}"
128 + BUILD_DIR="${S}"_build
129 + cmake-utils_src_compile
130 +
131 + if use wireshark-plugins; then
132 + for i in ${plugins}
133 + do
134 + if has_version '>=net-analyzer/wireshark-2.0'; then
135 + CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
136 + else
137 + CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
138 + fi
139 + BUILD_DIR="${WORKDIR}"/${i}_build
140 + cmake-utils_src_compile
141 + done
142 + fi
143 +}
144 +
145 +src_test() {
146 + CMAKE_USE_DIR="${S}"
147 + BUILD_DIR="${S}"_build
148 + cmake-utils_src_test
149 +
150 + if use wireshark-plugins; then
151 + for i in ${plugins}
152 + do
153 + if has_version '>=net-analyzer/wireshark-2.0'; then
154 + CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
155 + else
156 + CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
157 + fi
158 + BUILD_DIR="${WORKDIR}"/${i}_build
159 + cmake-utils_src_test
160 + done
161 + fi
162 +}
163 +
164 +src_install() {
165 + CMAKE_USE_DIR="${S}"
166 + BUILD_DIR="${S}"_build
167 + cmake-utils_src_install
168 +
169 + if use wireshark-plugins; then
170 + for i in ${plugins}
171 + do
172 + if has_version '>=net-analyzer/wireshark-2.0'; then
173 + CMAKE_USE_DIR="${S}"/wireshark/plugins/${i}
174 + else
175 + CMAKE_USE_DIR="${S}"/wireshark/plugins-legacy/${i}
176 + fi
177 + BUILD_DIR="${WORKDIR}"/${i}_build
178 + cmake-utils_src_install
179 + done
180 + fi
181 +}