Gentoo Archives: gentoo-commits

From: Alexys Jacob <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/mongo-tools/
Date: Wed, 20 May 2020 16:25:44
Message-Id: 1589991905.0f1bdbcbf799a3ccebe5cc2d6ccd8ba98bc7715f.ultrabug@gentoo
1 commit: 0f1bdbcbf799a3ccebe5cc2d6ccd8ba98bc7715f
2 Author: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 20 16:23:29 2020 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Wed May 20 16:25:05 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f1bdbcb
7
8 app-admin/mongo-tools: drop obsolete ebuilds
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org>
12
13 app-admin/mongo-tools/Manifest | 6 ---
14 app-admin/mongo-tools/mongo-tools-3.6.14.ebuild | 71 -------------------------
15 app-admin/mongo-tools/mongo-tools-3.6.16.ebuild | 71 -------------------------
16 app-admin/mongo-tools/mongo-tools-4.0.13.ebuild | 71 -------------------------
17 app-admin/mongo-tools/mongo-tools-4.0.14.ebuild | 71 -------------------------
18 app-admin/mongo-tools/mongo-tools-4.2.1.ebuild | 71 -------------------------
19 app-admin/mongo-tools/mongo-tools-4.2.2.ebuild | 71 -------------------------
20 7 files changed, 432 deletions(-)
21
22 diff --git a/app-admin/mongo-tools/Manifest b/app-admin/mongo-tools/Manifest
23 index 988e5b1cef2..a89be67912f 100644
24 --- a/app-admin/mongo-tools/Manifest
25 +++ b/app-admin/mongo-tools/Manifest
26 @@ -1,12 +1,6 @@
27 DIST mongo-tools-3.6.13.tar.gz 4990848 BLAKE2B 022ddf214869c3a3e545aa9572f77f0adc21c0dbd6ea6ad9e083633c2e972b7ef77c0bda4354dbde9fd0e23c6dd02a7de8873d4b2c2a3e4423ea6f8e1c23ed52 SHA512 fac21c4841bfecba11a7765bb6c36d1fa19d4dd94f6f4168fa767fc11dc8b3caf04a5029becd09eba01dd694274e9cc22da8566ce878769e5c3c97016c162432
28 -DIST mongo-tools-3.6.14.tar.gz 4990861 BLAKE2B 13394a7222e73c0912e7d9d04205b25e5d73d6c72b53521b0749e0998dc52bbe4c7733d460b189aff2401790f537d9aa369b969ed273ea0858520ecd75782b66 SHA512 3e7caaa1d568023d478c77d5e88127796b25d27c71e30af692983f4fd2160887662253ffc67e6e87aa3a7e1fd4ae231de9401b1628412a4561b9595b71df8834
29 -DIST mongo-tools-3.6.16.tar.gz 4990806 BLAKE2B 743c24fe55a0353e3ce31a82a53c94560408725f9fa35d93d5bc136d2b6e465e081c8ad4b00d63826ea45db4431124cdf2b66341eba9be24db890fd80941b728 SHA512 ebb356690c2aeb7d47435ea05f977e9319c915e1af48b89fc9941f72871baabb5faac238b59281330fb46e7340ee354f56f438ea3d0abd97b859e2321b719038
30 DIST mongo-tools-3.6.17.tar.gz 4991196 BLAKE2B 53e86b3513aa74ad174801cea987d574c5248f438cb0a9419c2352c04333eae2f92214b11c59ee8688ad7235dc7a4586c39cc27450c654b1fc0e2eec2e4e22e2 SHA512 ea7a010097fdfe7807daf9352519b808b4a7b614b793ee2ac27495207bcf1cf8b4151fecd525946a0d6b8aa9332c205f437d5141b16efb613810963f502061be
31 DIST mongo-tools-4.0.12.tar.gz 11134652 BLAKE2B d3c9703046dc577b85cefe1185678e0029411ddd44d0648f9b09fc3ab41e3661891d18afd83bf1a148dc4c9208895f444c115948e515e09dfa3062e89d98fc24 SHA512 068d8c456386caddcce23fa8917ffecdc9b5c39fb6794c5cd1d9099be1f127ecf680b006055581dc3d90507072a87788b46be7410f0dbede42da64c664b77ced
32 -DIST mongo-tools-4.0.13.tar.gz 11134653 BLAKE2B b963f2a4ee598f6716c6c678df029040f57e2ad17b0e025139d3ac5049aacefbf5342a455ac58161c11df734da4fe4f62f021c1544eee3542af3aed77a65e6d2 SHA512 0694c7ac5743b04d927e27eb913df1b9b55c6c7a26d2a4dc52af8d2e0a6934416f416da91c57e1e61804ae855ec4bd8facabacf0754f9f924f21602737f29e3c
33 -DIST mongo-tools-4.0.14.tar.gz 11134659 BLAKE2B 9caf119901d528079bb9aefce78d702dc3196cb105ac623137f8ffceffef4f8f6e61c8134470abe11f0bd422df9a6bef0e15331ee71065450b97220431458fc1 SHA512 6a0c39cbca0d51cd42518bb68a36fb7f0ed1e7b1ecf4dcd41256c8ab5c23505ca189b81a88c2a783ad81788bcab81d7e3c69f4788366e10dea744a03a2f3cf1e
34 DIST mongo-tools-4.0.16.tar.gz 11139827 BLAKE2B 550acfd7e4434b178170dfd94c65668cb7dd37d128235c63a10f72802e3119f33d5cd2138bfd5b957f6d3813f1d9aff49218c4e122c0cd454b4ea7a969c84d4e SHA512 a75831d9fd0b596bfb7354cbc05d1ecf6871d5a7230a858b09b94d5001d18069c9cbe89c9500e9c1a16fc5186fa7a1ac59c605156666a3f1a2d7c81115a47c16
35 -DIST mongo-tools-4.2.1.tar.gz 14435826 BLAKE2B 8d068cb39957f6773fb6ca186a1eb324e03c21b8472fede407daf7bce091f3d401f0debe6412d70bb8e338101d7ada870e7347782ffb582b58fcafc236ad4932 SHA512 bba754acd9e21f8f832fc2e434720347c2222897b2af08d66f9491110d5491f5475ae2118ff25b263606677da10b0c96b76cc507a01287180096c25c1eab5ced
36 -DIST mongo-tools-4.2.2.tar.gz 14433618 BLAKE2B 7610bd6b386684836e91b6bb7f73e24267fac56ce975263ac2aaeebe51d37123baa8eb2009cf4478af89e6dcc596c9c07126224ad4bd80aee47d03fde9413eca SHA512 661813c70bf891f0a834ac9970cbe390a8616f9e89e4f33918e479ba3f3ce3851edecd63c1e35e65a4dee47419e3ce0fa3186c7ee2326bef11fce3bac8bed0c7
37 DIST mongo-tools-4.2.3.tar.gz 15020325 BLAKE2B 8501a3ec6e947112ec561ce62f2ea568984f8ac911a7aff3cb8c08c1f29d2cfc64cf7f4b6a24ba73ae0f9b2b5853480f4fbed51c98fdc8c83cd433ea65e21dba SHA512 772719b450f8b656c22ac0126fee1e0fa58b5320c94ac6414b1d9af13e6437393c2482f2e386f4a73c84a2d1bfe0ea88df117a6a7ae87f4884477505cf662585
38 DIST mongo-tools-4.2.6.tar.gz 15016596 BLAKE2B 5ee37bf21ea05ec5ba2764c935c1dd3632753e772a01f854dc8a9949620e9a41fe95ba658a0efae0332ed2c059561e39e681f672cf5f4302a7f92c364cfab4b6 SHA512 e91bfba4b015f80d35b6c2ca766c599c5eedea113d6415ec0aef433d46b5e5fe06956481a063e26908a45fdcee4002125ea01a29fa3ea9a541a9210d25625f8e
39
40 diff --git a/app-admin/mongo-tools/mongo-tools-3.6.14.ebuild b/app-admin/mongo-tools/mongo-tools-3.6.14.ebuild
41 deleted file mode 100644
42 index 092d770686f..00000000000
43 --- a/app-admin/mongo-tools/mongo-tools-3.6.14.ebuild
44 +++ /dev/null
45 @@ -1,71 +0,0 @@
46 -# Copyright 1999-2019 Gentoo Authors
47 -# Distributed under the terms of the GNU General Public License v2
48 -
49 -EAPI=7
50 -
51 -MY_PV=${PV/_rc/-rc}
52 -MY_P=${PN}-r${MY_PV}
53 -
54 -DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
55 -HOMEPAGE="https://www.mongodb.com"
56 -SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
57 -
58 -LICENSE="Apache-2.0"
59 -SLOT="0"
60 -KEYWORDS="~amd64"
61 -IUSE="sasl ssl"
62 -
63 -DEPEND="dev-lang/go:=
64 - net-libs/libpcap
65 - sasl? ( dev-libs/cyrus-sasl )
66 - ssl? ( dev-libs/openssl:0= )"
67 -
68 -# Do not complain about CFLAGS etc since go projects do not use them.
69 -QA_FLAGS_IGNORED='.*'
70 -
71 -EGO_PN="github.com/mongodb/mongo-tools"
72 -S="${WORKDIR}/src/${EGO_PN}"
73 -
74 -src_unpack() {
75 - mkdir -p "${S%/*}" || die
76 - default
77 - mv ${MY_P} "${S}" || die
78 -}
79 -
80 -src_prepare() {
81 - default
82 -
83 - # allow building with go 1.12 #678924
84 - sed -i 's/_Ctype_struct_/C.struct_/' vendor/github.com/google/gopacket/pcap/pcap.go || die
85 -}
86 -
87 -src_compile() {
88 - local myconf=()
89 -
90 - if use sasl; then
91 - myconf+=(sasl)
92 - fi
93 -
94 - if use ssl; then
95 - myconf+=(ssl)
96 - fi
97 -
98 - # build pie to avoid text relocations wrt #582854
99 - local buildmode="pie"
100 -
101 - # skip on ppc64 wrt #610984
102 - if use ppc64; then
103 - buildmode="default"
104 - fi
105 -
106 - mkdir -p bin || die
107 - for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do
108 - echo "Building $i"
109 - GOROOT="$(go env GOROOT)" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \
110 - -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die
111 - done
112 -}
113 -
114 -src_install() {
115 - dobin bin/*
116 -}
117
118 diff --git a/app-admin/mongo-tools/mongo-tools-3.6.16.ebuild b/app-admin/mongo-tools/mongo-tools-3.6.16.ebuild
119 deleted file mode 100644
120 index 092d770686f..00000000000
121 --- a/app-admin/mongo-tools/mongo-tools-3.6.16.ebuild
122 +++ /dev/null
123 @@ -1,71 +0,0 @@
124 -# Copyright 1999-2019 Gentoo Authors
125 -# Distributed under the terms of the GNU General Public License v2
126 -
127 -EAPI=7
128 -
129 -MY_PV=${PV/_rc/-rc}
130 -MY_P=${PN}-r${MY_PV}
131 -
132 -DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
133 -HOMEPAGE="https://www.mongodb.com"
134 -SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
135 -
136 -LICENSE="Apache-2.0"
137 -SLOT="0"
138 -KEYWORDS="~amd64"
139 -IUSE="sasl ssl"
140 -
141 -DEPEND="dev-lang/go:=
142 - net-libs/libpcap
143 - sasl? ( dev-libs/cyrus-sasl )
144 - ssl? ( dev-libs/openssl:0= )"
145 -
146 -# Do not complain about CFLAGS etc since go projects do not use them.
147 -QA_FLAGS_IGNORED='.*'
148 -
149 -EGO_PN="github.com/mongodb/mongo-tools"
150 -S="${WORKDIR}/src/${EGO_PN}"
151 -
152 -src_unpack() {
153 - mkdir -p "${S%/*}" || die
154 - default
155 - mv ${MY_P} "${S}" || die
156 -}
157 -
158 -src_prepare() {
159 - default
160 -
161 - # allow building with go 1.12 #678924
162 - sed -i 's/_Ctype_struct_/C.struct_/' vendor/github.com/google/gopacket/pcap/pcap.go || die
163 -}
164 -
165 -src_compile() {
166 - local myconf=()
167 -
168 - if use sasl; then
169 - myconf+=(sasl)
170 - fi
171 -
172 - if use ssl; then
173 - myconf+=(ssl)
174 - fi
175 -
176 - # build pie to avoid text relocations wrt #582854
177 - local buildmode="pie"
178 -
179 - # skip on ppc64 wrt #610984
180 - if use ppc64; then
181 - buildmode="default"
182 - fi
183 -
184 - mkdir -p bin || die
185 - for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do
186 - echo "Building $i"
187 - GOROOT="$(go env GOROOT)" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \
188 - -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die
189 - done
190 -}
191 -
192 -src_install() {
193 - dobin bin/*
194 -}
195
196 diff --git a/app-admin/mongo-tools/mongo-tools-4.0.13.ebuild b/app-admin/mongo-tools/mongo-tools-4.0.13.ebuild
197 deleted file mode 100644
198 index 092d770686f..00000000000
199 --- a/app-admin/mongo-tools/mongo-tools-4.0.13.ebuild
200 +++ /dev/null
201 @@ -1,71 +0,0 @@
202 -# Copyright 1999-2019 Gentoo Authors
203 -# Distributed under the terms of the GNU General Public License v2
204 -
205 -EAPI=7
206 -
207 -MY_PV=${PV/_rc/-rc}
208 -MY_P=${PN}-r${MY_PV}
209 -
210 -DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
211 -HOMEPAGE="https://www.mongodb.com"
212 -SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
213 -
214 -LICENSE="Apache-2.0"
215 -SLOT="0"
216 -KEYWORDS="~amd64"
217 -IUSE="sasl ssl"
218 -
219 -DEPEND="dev-lang/go:=
220 - net-libs/libpcap
221 - sasl? ( dev-libs/cyrus-sasl )
222 - ssl? ( dev-libs/openssl:0= )"
223 -
224 -# Do not complain about CFLAGS etc since go projects do not use them.
225 -QA_FLAGS_IGNORED='.*'
226 -
227 -EGO_PN="github.com/mongodb/mongo-tools"
228 -S="${WORKDIR}/src/${EGO_PN}"
229 -
230 -src_unpack() {
231 - mkdir -p "${S%/*}" || die
232 - default
233 - mv ${MY_P} "${S}" || die
234 -}
235 -
236 -src_prepare() {
237 - default
238 -
239 - # allow building with go 1.12 #678924
240 - sed -i 's/_Ctype_struct_/C.struct_/' vendor/github.com/google/gopacket/pcap/pcap.go || die
241 -}
242 -
243 -src_compile() {
244 - local myconf=()
245 -
246 - if use sasl; then
247 - myconf+=(sasl)
248 - fi
249 -
250 - if use ssl; then
251 - myconf+=(ssl)
252 - fi
253 -
254 - # build pie to avoid text relocations wrt #582854
255 - local buildmode="pie"
256 -
257 - # skip on ppc64 wrt #610984
258 - if use ppc64; then
259 - buildmode="default"
260 - fi
261 -
262 - mkdir -p bin || die
263 - for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do
264 - echo "Building $i"
265 - GOROOT="$(go env GOROOT)" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \
266 - -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die
267 - done
268 -}
269 -
270 -src_install() {
271 - dobin bin/*
272 -}
273
274 diff --git a/app-admin/mongo-tools/mongo-tools-4.0.14.ebuild b/app-admin/mongo-tools/mongo-tools-4.0.14.ebuild
275 deleted file mode 100644
276 index 092d770686f..00000000000
277 --- a/app-admin/mongo-tools/mongo-tools-4.0.14.ebuild
278 +++ /dev/null
279 @@ -1,71 +0,0 @@
280 -# Copyright 1999-2019 Gentoo Authors
281 -# Distributed under the terms of the GNU General Public License v2
282 -
283 -EAPI=7
284 -
285 -MY_PV=${PV/_rc/-rc}
286 -MY_P=${PN}-r${MY_PV}
287 -
288 -DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
289 -HOMEPAGE="https://www.mongodb.com"
290 -SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
291 -
292 -LICENSE="Apache-2.0"
293 -SLOT="0"
294 -KEYWORDS="~amd64"
295 -IUSE="sasl ssl"
296 -
297 -DEPEND="dev-lang/go:=
298 - net-libs/libpcap
299 - sasl? ( dev-libs/cyrus-sasl )
300 - ssl? ( dev-libs/openssl:0= )"
301 -
302 -# Do not complain about CFLAGS etc since go projects do not use them.
303 -QA_FLAGS_IGNORED='.*'
304 -
305 -EGO_PN="github.com/mongodb/mongo-tools"
306 -S="${WORKDIR}/src/${EGO_PN}"
307 -
308 -src_unpack() {
309 - mkdir -p "${S%/*}" || die
310 - default
311 - mv ${MY_P} "${S}" || die
312 -}
313 -
314 -src_prepare() {
315 - default
316 -
317 - # allow building with go 1.12 #678924
318 - sed -i 's/_Ctype_struct_/C.struct_/' vendor/github.com/google/gopacket/pcap/pcap.go || die
319 -}
320 -
321 -src_compile() {
322 - local myconf=()
323 -
324 - if use sasl; then
325 - myconf+=(sasl)
326 - fi
327 -
328 - if use ssl; then
329 - myconf+=(ssl)
330 - fi
331 -
332 - # build pie to avoid text relocations wrt #582854
333 - local buildmode="pie"
334 -
335 - # skip on ppc64 wrt #610984
336 - if use ppc64; then
337 - buildmode="default"
338 - fi
339 -
340 - mkdir -p bin || die
341 - for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do
342 - echo "Building $i"
343 - GOROOT="$(go env GOROOT)" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \
344 - -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die
345 - done
346 -}
347 -
348 -src_install() {
349 - dobin bin/*
350 -}
351
352 diff --git a/app-admin/mongo-tools/mongo-tools-4.2.1.ebuild b/app-admin/mongo-tools/mongo-tools-4.2.1.ebuild
353 deleted file mode 100644
354 index 092d770686f..00000000000
355 --- a/app-admin/mongo-tools/mongo-tools-4.2.1.ebuild
356 +++ /dev/null
357 @@ -1,71 +0,0 @@
358 -# Copyright 1999-2019 Gentoo Authors
359 -# Distributed under the terms of the GNU General Public License v2
360 -
361 -EAPI=7
362 -
363 -MY_PV=${PV/_rc/-rc}
364 -MY_P=${PN}-r${MY_PV}
365 -
366 -DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
367 -HOMEPAGE="https://www.mongodb.com"
368 -SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
369 -
370 -LICENSE="Apache-2.0"
371 -SLOT="0"
372 -KEYWORDS="~amd64"
373 -IUSE="sasl ssl"
374 -
375 -DEPEND="dev-lang/go:=
376 - net-libs/libpcap
377 - sasl? ( dev-libs/cyrus-sasl )
378 - ssl? ( dev-libs/openssl:0= )"
379 -
380 -# Do not complain about CFLAGS etc since go projects do not use them.
381 -QA_FLAGS_IGNORED='.*'
382 -
383 -EGO_PN="github.com/mongodb/mongo-tools"
384 -S="${WORKDIR}/src/${EGO_PN}"
385 -
386 -src_unpack() {
387 - mkdir -p "${S%/*}" || die
388 - default
389 - mv ${MY_P} "${S}" || die
390 -}
391 -
392 -src_prepare() {
393 - default
394 -
395 - # allow building with go 1.12 #678924
396 - sed -i 's/_Ctype_struct_/C.struct_/' vendor/github.com/google/gopacket/pcap/pcap.go || die
397 -}
398 -
399 -src_compile() {
400 - local myconf=()
401 -
402 - if use sasl; then
403 - myconf+=(sasl)
404 - fi
405 -
406 - if use ssl; then
407 - myconf+=(ssl)
408 - fi
409 -
410 - # build pie to avoid text relocations wrt #582854
411 - local buildmode="pie"
412 -
413 - # skip on ppc64 wrt #610984
414 - if use ppc64; then
415 - buildmode="default"
416 - fi
417 -
418 - mkdir -p bin || die
419 - for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do
420 - echo "Building $i"
421 - GOROOT="$(go env GOROOT)" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \
422 - -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die
423 - done
424 -}
425 -
426 -src_install() {
427 - dobin bin/*
428 -}
429
430 diff --git a/app-admin/mongo-tools/mongo-tools-4.2.2.ebuild b/app-admin/mongo-tools/mongo-tools-4.2.2.ebuild
431 deleted file mode 100644
432 index 092d770686f..00000000000
433 --- a/app-admin/mongo-tools/mongo-tools-4.2.2.ebuild
434 +++ /dev/null
435 @@ -1,71 +0,0 @@
436 -# Copyright 1999-2019 Gentoo Authors
437 -# Distributed under the terms of the GNU General Public License v2
438 -
439 -EAPI=7
440 -
441 -MY_PV=${PV/_rc/-rc}
442 -MY_P=${PN}-r${MY_PV}
443 -
444 -DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
445 -HOMEPAGE="https://www.mongodb.com"
446 -SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
447 -
448 -LICENSE="Apache-2.0"
449 -SLOT="0"
450 -KEYWORDS="~amd64"
451 -IUSE="sasl ssl"
452 -
453 -DEPEND="dev-lang/go:=
454 - net-libs/libpcap
455 - sasl? ( dev-libs/cyrus-sasl )
456 - ssl? ( dev-libs/openssl:0= )"
457 -
458 -# Do not complain about CFLAGS etc since go projects do not use them.
459 -QA_FLAGS_IGNORED='.*'
460 -
461 -EGO_PN="github.com/mongodb/mongo-tools"
462 -S="${WORKDIR}/src/${EGO_PN}"
463 -
464 -src_unpack() {
465 - mkdir -p "${S%/*}" || die
466 - default
467 - mv ${MY_P} "${S}" || die
468 -}
469 -
470 -src_prepare() {
471 - default
472 -
473 - # allow building with go 1.12 #678924
474 - sed -i 's/_Ctype_struct_/C.struct_/' vendor/github.com/google/gopacket/pcap/pcap.go || die
475 -}
476 -
477 -src_compile() {
478 - local myconf=()
479 -
480 - if use sasl; then
481 - myconf+=(sasl)
482 - fi
483 -
484 - if use ssl; then
485 - myconf+=(ssl)
486 - fi
487 -
488 - # build pie to avoid text relocations wrt #582854
489 - local buildmode="pie"
490 -
491 - # skip on ppc64 wrt #610984
492 - if use ppc64; then
493 - buildmode="default"
494 - fi
495 -
496 - mkdir -p bin || die
497 - for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do
498 - echo "Building $i"
499 - GOROOT="$(go env GOROOT)" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \
500 - -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die
501 - done
502 -}
503 -
504 -src_install() {
505 - dobin bin/*
506 -}