Gentoo Archives: gentoo-commits

From: Alexys Jacob <ultrabug@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/ultrabug:master commit in: app-admin/mongo-tools/files/, app-admin/mongo-tools/
Date: Mon, 02 Mar 2015 13:19:10
Message-Id: 1425299671.e7790d36ef0f0749ecbda2e467a58a8f6d1f8ae7.ultrabug@gentoo
1 commit: e7790d36ef0f0749ecbda2e467a58a8f6d1f8ae7
2 Author: Ultrabug <ultrabug <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 2 12:34:31 2015 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 2 12:34:31 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=dev/ultrabug.git;a=commit;h=e7790d36
7
8 WIP add app-admin/mongo-tools
9
10 ---
11 app-admin/mongo-tools/Manifest | 3 ++
12 .../files/mongo-tools-3.0.0-build.patch | 10 +++++
13 .../mongo-tools/mongo-tools-3.0.0_rc11.ebuild | 51 ++++++++++++++++++++++
14 3 files changed, 64 insertions(+)
15
16 diff --git a/app-admin/mongo-tools/Manifest b/app-admin/mongo-tools/Manifest
17 new file mode 100644
18 index 0000000..610e63b
19 --- /dev/null
20 +++ b/app-admin/mongo-tools/Manifest
21 @@ -0,0 +1,3 @@
22 +AUX mongo-tools-3.0.0-build.patch 528 SHA256 99ee6a119b3dd4145a088a9c581763f856f53c579f477b4e4eaaa8e7dd2c0f02 SHA512 9bf9e247f49a4fbc251ce878b82d457136b3ede890458afbd92b27a9f283e44e02bab92b2817cd1c3160a807ce8a7e6296e813f3573c2b733f2701fdb07323fe WHIRLPOOL 03d7330cb179111ed608929b15d2901258e8d1434ed9b28a1069a235498b32fb4ba165fb193635be1925236a83181659efd53514ef9a5c640bdfc6d5e4da05f3
23 +DIST mongo-tools-3.0.0-rc11.tar.gz 2134207 SHA256 e9f716950d6d2ac45a43cbcf96d2487a141d201d85532c2a03aa8f18ba8e82ed SHA512 d26df453d69d96c96b4b4fc52820205539927eeccb1852392244da0ddc227bd06cdcff64b4244ff88c1db6fdee6334d5c3fc1c5533e1701a4a5501430ccb5b16 WHIRLPOOL 11011fb3a367f6356e3ae02d3e4bce7e120ef417171df95891f38000e0b93d3905a809fa4bb83582fa255b6cd6d55d92f9baf8fca8c3d30c45e56423a621fa5f
24 +EBUILD mongo-tools-3.0.0_rc11.ebuild 950 SHA256 36ced6f5f944022e91b34317e1714d24ed6850f93f2bd9232830a2fbea9b117c SHA512 a521e247a2ca509234be5a5e72ba8357e609f05ab9b0866f601a40a8b4b03ea8b906ff9e03f719d29253ac526e23c4897d2d00018bc39b3e2b9fd131038c3a11 WHIRLPOOL dcbf364ca237f579654f64d5f34d5379eb27010df21f8264ddea671f319f16acef09293e2e580665f4d1a9356ab16dd8fb29cce6f431b8e4b88d8ee37701e5b7
25
26 diff --git a/app-admin/mongo-tools/files/mongo-tools-3.0.0-build.patch b/app-admin/mongo-tools/files/mongo-tools-3.0.0-build.patch
27 new file mode 100644
28 index 0000000..f7fd93b
29 --- /dev/null
30 +++ b/app-admin/mongo-tools/files/mongo-tools-3.0.0-build.patch
31 @@ -0,0 +1,10 @@
32 +--- build.sh.orig 2015-02-17 16:55:47.000000000 +0000
33 ++++ build.sh 2015-02-18 09:22:30.671123198 +0000
34 +@@ -19,5 +19,5 @@
35 + for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do
36 + echo "Building ${i}..."
37 + # Build the tool, using -ldflags to link in the current gitspec
38 +- go build -o "bin/$i" -ldflags "-X github.com/mongodb/mongo-tools/common/options.Gitspec `git rev-parse HEAD`" -tags "$tags" "$i/main/$i.go"
39 ++ go build -o "bin/$i" -tags "$tags" "$i/main/$i.go"
40 + done
41 +
42
43 diff --git a/app-admin/mongo-tools/mongo-tools-3.0.0_rc11.ebuild b/app-admin/mongo-tools/mongo-tools-3.0.0_rc11.ebuild
44 new file mode 100644
45 index 0000000..f5058a3
46 --- /dev/null
47 +++ b/app-admin/mongo-tools/mongo-tools-3.0.0_rc11.ebuild
48 @@ -0,0 +1,51 @@
49 +# Copyright 1999-2015 Gentoo Foundation
50 +# Distributed under the terms of the GNU General Public License v2
51 +
52 +EAPI=5
53 +
54 +inherit eutils
55 +
56 +MY_PV=${PV/_rc/-rc}
57 +MY_P=${PN}-r${MY_PV}
58 +
59 +DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
60 +HOMEPAGE="http://www.mongodb.org"
61 +SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
62 +
63 +LICENSE="Apache-2.0"
64 +SLOT="0"
65 +KEYWORDS="~amd64 ~x86"
66 +IUSE="sasl ssl"
67 +
68 +RDEPEND=""
69 +DEPEND="dev-lang/go
70 + sasl? ( dev-libs/cyrus-sasl )
71 + ssl? ( <dev-libs/openssl-1.0.2 )
72 +"
73 +
74 +S=${WORKDIR}/${MY_P}
75 +
76 +src_prepare() {
77 + epatch "${FILESDIR}/${PN}-3.0.0-build.patch"
78 +
79 + # Maintainer note : openssl DEPEND constraint, see :
80 + # https://github.com/mongodb/mongo-tools/issues/11
81 +}
82 +
83 +src_compile() {
84 + local myconf
85 +
86 + if use sasl; then
87 + myconf="${myconf} sasl"
88 + fi
89 +
90 + if use ssl; then
91 + myconf="${myconf} ssl"
92 + fi
93 +
94 + ./build.sh ${myconf}
95 +}
96 +
97 +src_install() {
98 + dobin bin/*
99 +}