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