commit:     e7790d36ef0f0749ecbda2e467a58a8f6d1f8ae7
Author:     Ultrabug <ultrabug <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  2 12:34:31 2015 +0000
Commit:     Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
CommitDate: Mon Mar  2 12:34:31 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=dev/ultrabug.git;a=commit;h=e7790d36

WIP add app-admin/mongo-tools

---
 app-admin/mongo-tools/Manifest                     |  3 ++
 .../files/mongo-tools-3.0.0-build.patch            | 10 +++++
 .../mongo-tools/mongo-tools-3.0.0_rc11.ebuild      | 51 ++++++++++++++++++++++
 3 files changed, 64 insertions(+)

diff --git a/app-admin/mongo-tools/Manifest b/app-admin/mongo-tools/Manifest
new file mode 100644
index 0000000..610e63b
--- /dev/null
+++ b/app-admin/mongo-tools/Manifest
@@ -0,0 +1,3 @@
+AUX mongo-tools-3.0.0-build.patch 528 SHA256 
99ee6a119b3dd4145a088a9c581763f856f53c579f477b4e4eaaa8e7dd2c0f02 SHA512 
9bf9e247f49a4fbc251ce878b82d457136b3ede890458afbd92b27a9f283e44e02bab92b2817cd1c3160a807ce8a7e6296e813f3573c2b733f2701fdb07323fe
 WHIRLPOOL 
03d7330cb179111ed608929b15d2901258e8d1434ed9b28a1069a235498b32fb4ba165fb193635be1925236a83181659efd53514ef9a5c640bdfc6d5e4da05f3
+DIST mongo-tools-3.0.0-rc11.tar.gz 2134207 SHA256 
e9f716950d6d2ac45a43cbcf96d2487a141d201d85532c2a03aa8f18ba8e82ed SHA512 
d26df453d69d96c96b4b4fc52820205539927eeccb1852392244da0ddc227bd06cdcff64b4244ff88c1db6fdee6334d5c3fc1c5533e1701a4a5501430ccb5b16
 WHIRLPOOL 
11011fb3a367f6356e3ae02d3e4bce7e120ef417171df95891f38000e0b93d3905a809fa4bb83582fa255b6cd6d55d92f9baf8fca8c3d30c45e56423a621fa5f
+EBUILD mongo-tools-3.0.0_rc11.ebuild 950 SHA256 
36ced6f5f944022e91b34317e1714d24ed6850f93f2bd9232830a2fbea9b117c SHA512 
a521e247a2ca509234be5a5e72ba8357e609f05ab9b0866f601a40a8b4b03ea8b906ff9e03f719d29253ac526e23c4897d2d00018bc39b3e2b9fd131038c3a11
 WHIRLPOOL 
dcbf364ca237f579654f64d5f34d5379eb27010df21f8264ddea671f319f16acef09293e2e580665f4d1a9356ab16dd8fb29cce6f431b8e4b88d8ee37701e5b7

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
new file mode 100644
index 0000000..f7fd93b
--- /dev/null
+++ b/app-admin/mongo-tools/files/mongo-tools-3.0.0-build.patch
@@ -0,0 +1,10 @@
+--- build.sh.orig      2015-02-17 16:55:47.000000000 +0000
++++ build.sh   2015-02-18 09:22:30.671123198 +0000
+@@ -19,5 +19,5 @@
+ for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore 
mongodump mongotop mongooplog; do
+       echo "Building ${i}..."
+       # Build the tool, using -ldflags to link in the current gitspec
+-      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"
++      go build -o "bin/$i" -tags "$tags" "$i/main/$i.go"
+ done
+

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
new file mode 100644
index 0000000..f5058a3
--- /dev/null
+++ b/app-admin/mongo-tools/mongo-tools-3.0.0_rc11.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+MY_PV=${PV/_rc/-rc}
+MY_P=${PN}-r${MY_PV}
+
+DESCRIPTION="A high-performance, open source, schema-free document-oriented 
database"
+HOMEPAGE="http://www.mongodb.org";
+SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> 
mongo-tools-${MY_PV}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="sasl ssl"
+
+RDEPEND=""
+DEPEND="dev-lang/go
+       sasl? ( dev-libs/cyrus-sasl )
+       ssl? ( <dev-libs/openssl-1.0.2 )
+"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+       epatch "${FILESDIR}/${PN}-3.0.0-build.patch"
+
+       # Maintainer note : openssl DEPEND constraint, see :
+       # https://github.com/mongodb/mongo-tools/issues/11
+}
+
+src_compile() {
+       local myconf
+
+       if use sasl; then
+         myconf="${myconf} sasl"
+       fi
+
+       if use ssl; then
+         myconf="${myconf} ssl"
+       fi
+
+       ./build.sh ${myconf}
+}
+
+src_install() {
+       dobin bin/*
+}

Reply via email to