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, 31 Mar 2017 14:47:25
Message-Id: 1490971634.54cc8b0ce671f4ccc898452174c7248fcdd2e3a1.ultrabug@gentoo
1 commit: 54cc8b0ce671f4ccc898452174c7248fcdd2e3a1
2 Author: Ultrabug <ultrabug <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 31 14:43:27 2017 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 31 14:47:14 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54cc8b0c
7
8 app-admin/mongo-tools: version bump
9
10 Package-Manager: Portage-2.3.4, Repoman-2.3.2
11
12 app-admin/mongo-tools/Manifest | 1 +
13 app-admin/mongo-tools/mongo-tools-3.4.3.ebuild | 61 ++++++++++++++++++++++++++
14 2 files changed, 62 insertions(+)
15
16 diff --git a/app-admin/mongo-tools/Manifest b/app-admin/mongo-tools/Manifest
17 index 45f3487059e..61087326aa8 100644
18 --- a/app-admin/mongo-tools/Manifest
19 +++ b/app-admin/mongo-tools/Manifest
20 @@ -4,3 +4,4 @@ DIST mongo-tools-3.2.11.tar.gz 2712014 SHA256 992e9fb94df6bed49e68684afee096f119
21 DIST mongo-tools-3.2.12.tar.gz 2712079 SHA256 cda5e869b9233d591e91cac0b4c709a2e71dcabd9ac6bcc8b33d906ce3b13afd SHA512 66f7beb85a83ad6a217e65bba97ace6ad0bf84688f40e598e5fb1cf4bbe481b4069e1247d6829f8d06c8230d33c3e0c8bd8465a975576cad584065c361b6fb72 WHIRLPOOL 46123dc3c97fdf20ff94ac373e774932bd30aca677047fe3366653aaab269bf6d7e59cb420cf1e5716558fa959cb3649ee359cc27932bac276e6d24d2eea43b1
22 DIST mongo-tools-3.4.1.tar.gz 4700560 SHA256 283d729442fca7a331ca475e234b0880ec7c4339597e0a8e271ca7e153b45439 SHA512 bd5862b220bc9d77d938b87b1e2c974d0088239c51cd091b5e4d578d774e28aa6b25ab18936c9f388fd1ed3caeca264225c14cd5a85e749c3c3e148ca073a990 WHIRLPOOL 2b5ba4e2c91372e5cec355d0e6d651d4fd3de7b3d72839e855e099c75a9ffec172b43caff82d2cf7371fd3c7ac1ca1e71fc303eff75cd2e5afc352fbbf4dba42
23 DIST mongo-tools-3.4.2.tar.gz 4700591 SHA256 3679576153ab1a9e1a7fe9811cb6d7c32c6d9320f07be9a94d064d6904618b5a SHA512 5ad4b5421acb10010f72f6b9f8342c095c4f571ac3cb9dc3db78251262f8285a4e2bddbeed3ad26c64f36d5b33ed7f43a759c74e00d2878c0ac6a71069508a2f WHIRLPOOL 208bd7116e1a7be2854f81df95d418667d50166d91522e14fdfa4e1f0b1ce007966fc5b0b1367f3be2c273fa7abbbfe04cb6e970a5010d44ac8542dc1bbd3424
24 +DIST mongo-tools-3.4.3.tar.gz 4700637 SHA256 70348800ca4cc04a319ca414291d5359e7dc86c888bc8264045fbc4de00adab2 SHA512 ec754e8b19c517d9603e0eb89cc315e0af53886b74a905c0742faf5369af8b87b84cedf57aaa25f93068cd21370fa8a274a97dc3c58bbb4a50db6c2e4f0109d9 WHIRLPOOL 0b85fcdb52d5f08624bbcedb96d66c8a519e6415b9aefe68e7957627f3f1e220ca1174ea0a037f53ef2de0e594793ab42d6ec7db9cb42aa09b1892500dac5dd5
25
26 diff --git a/app-admin/mongo-tools/mongo-tools-3.4.3.ebuild b/app-admin/mongo-tools/mongo-tools-3.4.3.ebuild
27 new file mode 100644
28 index 00000000000..c631cc6fb83
29 --- /dev/null
30 +++ b/app-admin/mongo-tools/mongo-tools-3.4.3.ebuild
31 @@ -0,0 +1,61 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=5
36 +
37 +inherit eutils
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="http://www.mongodb.org"
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 ~x86"
49 +IUSE="sasl ssl libressl"
50 +
51 +# Maintainer note:
52 +# openssl DEPEND constraint, see:
53 +# https://github.com/mongodb/mongo-tools/issues/11
54 +
55 +RDEPEND="!<dev-db/mongodb-3.0.0"
56 +DEPEND="${RDEPEND}
57 + dev-lang/go:=
58 + net-libs/libpcap
59 + sasl? ( dev-libs/cyrus-sasl )
60 + ssl? (
61 + !libressl? ( dev-libs/openssl:0= )
62 + libressl? ( dev-libs/libressl:0= )
63 + )"
64 +
65 +S=${WORKDIR}/${MY_P}
66 +
67 +src_prepare() {
68 + sed -e 's|go build .*|go build -o "bin/$i" -tags "$tags" "$i/main/$i.go"|g' -i build.sh || die
69 +
70 + # ensure we use bash wrt #582906
71 + sed -e 's@/bin/sh@/bin/bash@g' -i build.sh || die
72 +
73 + epatch "${FILESDIR}/${PN}-3.2.10-pie.patch"
74 +}
75 +
76 +src_compile() {
77 + local myconf
78 +
79 + if use sasl; then
80 + myconf="${myconf} sasl"
81 + fi
82 +
83 + if use ssl; then
84 + myconf="${myconf} ssl"
85 + fi
86 +
87 + ./build.sh ${myconf} || die "build failed"
88 +}
89 +
90 +src_install() {
91 + dobin bin/*
92 +}