Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/mongo-tools/
Date: Mon, 04 Mar 2019 01:36:03
Message-Id: 1551660441.74a5ae50f389dace3c7b7c9b76d517b9f89cb541.whissi@gentoo
1 commit: 74a5ae50f389dace3c7b7c9b76d517b9f89cb541
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Sat Jan 26 05:18:44 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 4 00:47:21 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74a5ae50
7
8 app-admin/mongo-tools: bump to 4.0.5
9
10 Signed-off-by: Tomas Mozes <hydrapolic <AT> gmail.com>
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 app-admin/mongo-tools/Manifest | 1 +
14 app-admin/mongo-tools/mongo-tools-4.0.5.ebuild | 64 ++++++++++++++++++++++++++
15 2 files changed, 65 insertions(+)
16
17 diff --git a/app-admin/mongo-tools/Manifest b/app-admin/mongo-tools/Manifest
18 index 77b75c086d1..d82ee7d7359 100644
19 --- a/app-admin/mongo-tools/Manifest
20 +++ b/app-admin/mongo-tools/Manifest
21 @@ -4,3 +4,4 @@ DIST mongo-tools-3.6.8.tar.gz 4723878 BLAKE2B a1693024d60f69d25c268eaaa30a478b1e
22 DIST mongo-tools-3.6.9.tar.gz 4723117 BLAKE2B 2cc88b9e8424abe082d68a8f7afa02bf2b21d027cabe04298fafbd065346350d57f6a48ece1a849e779cac6da315aa9d5469c5f63ca5aae6be7e8f73fae3fe4b SHA512 def8e2bb68898c540dfa9fbe742696d463c099e7d70fc2f0e114301d321e3983ef0b07588301340b0a3ffdf2280febc3fa37e77d2520f147e723d2ce147c7261
23 DIST mongo-tools-4.0.3.tar.gz 10874727 BLAKE2B 3e5d07b8ae797d0876b68a3018806e91a30758415aaa236423648a77f5e0d475848060516ee0da91a8448813a12a685410b93bf219b8180beb91f448e329a532 SHA512 cbe74b3fdebd0d4f6be6e3acf7f55f5f1a551b0ad1a23d82782643d2a9eb9ea4b7e0133985485b8c5a88c1fea26595e3ed9c759f1f63b578b6472d850154d67b
24 DIST mongo-tools-4.0.4.tar.gz 10878921 BLAKE2B 3960838f68333bf033be9b72191e221b449bde8157ecb6d2f595d84c862fadd9597a53be88e5b0ad691cb6163cf90294348145ecce4c796c88bf84a4d7d8ab86 SHA512 d7900dbbd1e1e63d5518494c85559a7eab34f53ffa38880628f3dda0a71ee1211f67cf7dfaac66498b0359eca32abb9c89410e5cc56415a1594acf38ebfa226b
25 +DIST mongo-tools-4.0.5.tar.gz 10878974 BLAKE2B 704eadb7469d1f07bcf0c18fd2c3d1a2078064e8d0f33e03b0ec0a7539a8ae6e5c4ec3a4f9dff4f34d3cea8a2aa63097bfa050de0af5d0a44e54e4e47c83565f SHA512 5a2ca0cb761895a6c3187bdf4ac0c11222ac681313c2c22801571a1147e07b7b6149150b07e58cd4487413017da56424ec494eaaf9aec9193498ee3cde73c5da
26
27 diff --git a/app-admin/mongo-tools/mongo-tools-4.0.5.ebuild b/app-admin/mongo-tools/mongo-tools-4.0.5.ebuild
28 new file mode 100644
29 index 00000000000..5aacbbb1063
30 --- /dev/null
31 +++ b/app-admin/mongo-tools/mongo-tools-4.0.5.ebuild
32 @@ -0,0 +1,64 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +MY_PV=${PV/_rc/-rc}
39 +MY_P=${PN}-r${MY_PV}
40 +
41 +DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
42 +HOMEPAGE="https://www.mongodb.com"
43 +SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +IUSE="sasl ssl"
49 +
50 +DEPEND="dev-lang/go:=
51 + net-libs/libpcap
52 + sasl? ( dev-libs/cyrus-sasl )
53 + ssl? ( dev-libs/openssl:0= )"
54 +
55 +# Do not complain about CFLAGS etc since go projects do not use them.
56 +QA_FLAGS_IGNORED='.*'
57 +
58 +EGO_PN="github.com/mongodb/mongo-tools"
59 +S="${WORKDIR}/src/${EGO_PN}"
60 +
61 +src_unpack() {
62 + mkdir -p "${S%/*}" || die
63 + default
64 + mv ${MY_P} "${S}" || die
65 +}
66 +
67 +src_compile() {
68 + local myconf=()
69 +
70 + if use sasl; then
71 + myconf+=(sasl)
72 + fi
73 +
74 + if use ssl; then
75 + myconf+=(ssl)
76 + fi
77 +
78 + # build pie to avoid text relocations wrt #582854
79 + local buildmode="pie"
80 +
81 + # skip on ppc64 wrt #610984
82 + if use ppc64; then
83 + buildmode="default"
84 + fi
85 +
86 + mkdir -p bin || die
87 + for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do
88 + echo "Building $i"
89 + GOROOT="${PREFIX}/usr/$(get_libdir)/go" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \
90 + -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die
91 + done
92 +}
93 +
94 +src_install() {
95 + dobin bin/*
96 +}