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: Fri, 07 Jun 2019 09:45:54
Message-Id: 1559900742.04be46e3a496d688719b47ee86163a4bb1ca0b33.ultrabug@gentoo
1 commit: 04be46e3a496d688719b47ee86163a4bb1ca0b33
2 Author: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 7 09:45:22 2019 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 7 09:45:42 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04be46e3
7
8 app-admin/mongo-tools: version bump
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.14
11 Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org>
12
13 app-admin/mongo-tools/Manifest | 1 +
14 app-admin/mongo-tools/mongo-tools-3.4.16.ebuild | 2 +-
15 app-admin/mongo-tools/mongo-tools-4.0.10.ebuild | 71 +++++++++++++++++++++++++
16 3 files changed, 73 insertions(+), 1 deletion(-)
17
18 diff --git a/app-admin/mongo-tools/Manifest b/app-admin/mongo-tools/Manifest
19 index 77b2833d03a..1cd3edad502 100644
20 --- a/app-admin/mongo-tools/Manifest
21 +++ b/app-admin/mongo-tools/Manifest
22 @@ -2,5 +2,6 @@ DIST mongo-tools-3.4.16.tar.gz 4697191 BLAKE2B 2e9a0e7dc8016d3e7d7c7f8d0cf80a97d
23 DIST mongo-tools-3.6.11.tar.gz 4731680 BLAKE2B 88558a26d2552848121d984e4b963acafe9e56b37a3d393bacdcd8c0f71a29e2082845ad6d648c3c4800bd47514d339d1f1e984e339a48572ecb5f6f31d9166d SHA512 2291cb963965a59a89bac35a760ce49b4b835d1447065d558c4b254aae5fe38f7ebe4c9d7a67aa475e06be95c45f8529922c6fb0b78d41bc07d1a83f3a564192
24 DIST mongo-tools-3.6.12.tar.gz 4990846 BLAKE2B a2b649df03ba17175d95b0fb7be94e446a0cda8dd45111a41f6f74ee5498b853d9fd361f683d4db558197a1951fc79056b516cff6fcd32cc32877744456b67e3 SHA512 948e49719c958e8b7cd1c27b9d413df6d032189801180540ee86b927d5dd53ab4b8906e5cc7880163ecc6abf11daebfc2fb96fcf8fcfd3e0b1f8c8fedaf54558
25 DIST mongo-tools-3.6.8.tar.gz 4723878 BLAKE2B a1693024d60f69d25c268eaaa30a478b1e4c0042c5fb7a3fd6252ed00aef2fee3fba94516fe825165a1a57887ed38e4fbce488c48ddd4f45349f0b7a1b244020 SHA512 359e8ce2d847d005d48ff12bc2e8af73213d81cd1521d2b5b5ac94792468218248bebbe808e1bd8fd49234eab8480608f294c1b63f317aed58f456b84ef17dcf
26 +DIST mongo-tools-4.0.10.tar.gz 11134721 BLAKE2B f25e834622db8a2cea1658d9396b747666dee6a0e6471f5fcf351431f716735227b19f854c228ebb9ace8a7c27b8cdf83f8a5009107191aa6dd27c1a4c037505 SHA512 12764b2e2016ae3ab3f0ed1f5b9be9ce10e466c53b408ad2c01b26bdf39ca41a358acd07aea5847db2b40e3e89293f77efcd2b310e4e2bf3071873abf1b20f49
27 DIST mongo-tools-4.0.6.tar.gz 10879606 BLAKE2B 9a7656ba1486df4b36ceb527735ad46864d7a04f2d0451fb4e04bbbdc09c3bb0ec922aa5daa584b93e123e1c3764c0ebef96a3566dd0d6b646a627d769645619 SHA512 d6185d7442a593d29db78889c55aba53e070bedd522d78d8c0bf52bb27f26c5fee6d010457f65774ea36a2e6d5280f38c95433ff76ed53ed9d74b1c811198cb7
28 DIST mongo-tools-4.0.9.tar.gz 11134365 BLAKE2B ad27ad868b33a3c0802a0c79b5570a85c20106c71f38229e25a09a4ab8f0e6edbfe4338ce9862b2ba6b7836e4aa71fe5a3704a81a028a95d74168ac5107364d7 SHA512 55720766da5fdb9ee5a93d90be5ebe61ec4a5f5428097e9d6cb022472a2964c39b184531e1f59fb7780e834c3b03986e9edcc66e3f3933b3457b86260a6bbd8f
29
30 diff --git a/app-admin/mongo-tools/mongo-tools-3.4.16.ebuild b/app-admin/mongo-tools/mongo-tools-3.4.16.ebuild
31 index 5efc22cf1e8..d2a369f77e3 100644
32 --- a/app-admin/mongo-tools/mongo-tools-3.4.16.ebuild
33 +++ b/app-admin/mongo-tools/mongo-tools-3.4.16.ebuild
34 @@ -1,4 +1,4 @@
35 -# Copyright 1999-2018 Gentoo Foundation
36 +# Copyright 1999-2019 Gentoo Authors
37 # Distributed under the terms of the GNU General Public License v2
38
39 EAPI=6
40
41 diff --git a/app-admin/mongo-tools/mongo-tools-4.0.10.ebuild b/app-admin/mongo-tools/mongo-tools-4.0.10.ebuild
42 new file mode 100644
43 index 00000000000..092d770686f
44 --- /dev/null
45 +++ b/app-admin/mongo-tools/mongo-tools-4.0.10.ebuild
46 @@ -0,0 +1,71 @@
47 +# Copyright 1999-2019 Gentoo Authors
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=7
51 +
52 +MY_PV=${PV/_rc/-rc}
53 +MY_P=${PN}-r${MY_PV}
54 +
55 +DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
56 +HOMEPAGE="https://www.mongodb.com"
57 +SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
58 +
59 +LICENSE="Apache-2.0"
60 +SLOT="0"
61 +KEYWORDS="~amd64"
62 +IUSE="sasl ssl"
63 +
64 +DEPEND="dev-lang/go:=
65 + net-libs/libpcap
66 + sasl? ( dev-libs/cyrus-sasl )
67 + ssl? ( dev-libs/openssl:0= )"
68 +
69 +# Do not complain about CFLAGS etc since go projects do not use them.
70 +QA_FLAGS_IGNORED='.*'
71 +
72 +EGO_PN="github.com/mongodb/mongo-tools"
73 +S="${WORKDIR}/src/${EGO_PN}"
74 +
75 +src_unpack() {
76 + mkdir -p "${S%/*}" || die
77 + default
78 + mv ${MY_P} "${S}" || die
79 +}
80 +
81 +src_prepare() {
82 + default
83 +
84 + # allow building with go 1.12 #678924
85 + sed -i 's/_Ctype_struct_/C.struct_/' vendor/github.com/google/gopacket/pcap/pcap.go || die
86 +}
87 +
88 +src_compile() {
89 + local myconf=()
90 +
91 + if use sasl; then
92 + myconf+=(sasl)
93 + fi
94 +
95 + if use ssl; then
96 + myconf+=(ssl)
97 + fi
98 +
99 + # build pie to avoid text relocations wrt #582854
100 + local buildmode="pie"
101 +
102 + # skip on ppc64 wrt #610984
103 + if use ppc64; then
104 + buildmode="default"
105 + fi
106 +
107 + mkdir -p bin || die
108 + for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do
109 + echo "Building $i"
110 + GOROOT="$(go env GOROOT)" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \
111 + -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die
112 + done
113 +}
114 +
115 +src_install() {
116 + dobin bin/*
117 +}