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: Mon, 11 Jun 2018 19:25:27
Message-Id: 1528745113.1ab717bd9632531fbecdce4e31a992a94268fbed.ultrabug@gentoo
1 commit: 1ab717bd9632531fbecdce4e31a992a94268fbed
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Fri May 25 12:30:10 2018 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 11 19:25:13 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ab717bd
7
8 app-admin/mongo-tools: bump to 3.6.5
9
10 Package-Manager: Portage-2.3.38, Repoman-2.3.9
11
12 app-admin/mongo-tools/Manifest | 1 +
13 app-admin/mongo-tools/mongo-tools-3.6.5.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 88627c6b6ce..6ab03912068 100644
18 --- a/app-admin/mongo-tools/Manifest
19 +++ b/app-admin/mongo-tools/Manifest
20 @@ -8,3 +8,4 @@ DIST mongo-tools-3.4.15.tar.gz 4697188 BLAKE2B 690ec3187cb781c9cae903a27eca9d1d5
21 DIST mongo-tools-3.6.2.tar.gz 4693924 BLAKE2B 61c44d579f6eb4013ee6c0118ebe89a2d454ef8cf6ad933479885cb71d169185272b03d9c63fa738d67bbd1b9efd4bc964eb17adcc5002508589d198cdb17752 SHA512 5ac2b1d2b33271f63c406c69bd8a576a21f4dcaa6f75839e0f907ebc9968f0e121eb3800e88da050c120856e7ddda4f12d551bb731d4acac0f5cf09f66fc948a
22 DIST mongo-tools-3.6.3.tar.gz 4693833 BLAKE2B fc7139984cf3dcb7b4ce6f6c2028296651aa59ac68d7068bdf748e28eeb65b1fd9b07580d0c93f3f41dbb01030a12433a07a04deadf28e0ff792387fa78ae4aa SHA512 7dba782c84a728aa9ceb28cbd9934f58b615dccfb238a9dbd63b18661ba4e74ddba21f93d9f12e6d80d293ebe42a82d31fa64448aacdba75bd07d964a5f631fc
23 DIST mongo-tools-3.6.4.tar.gz 4693872 BLAKE2B 5d72b32fa8ad7bc106c6ea3c09a27a093b9a1ae2392b4fa534042c5461fdc2b958dcbbf32e0ed596be234921e2ee21cc8f6132d57ae870a234abfc7adbb3b2e9 SHA512 53d06fa4a1b58de8001d6bf6e85f7edc97ce2cfbbb69c1ab05219deaa05ad9dd77d93f98c5526b4f58644a766e1b0f123686358095f059c71a4277634603f23f
24 +DIST mongo-tools-3.6.5.tar.gz 4720814 BLAKE2B 5dd064f70557ec1ab979d08523f3dd305fb310c533b69bc99be3ad3d006036354f62b9f3d61c242e1481a254bed538a5e1cf5662f0e35705f1c50a76f31fddbb SHA512 dd2d7cc64043b42a70b5de0ea493f94722a4476248bfd77d6892861e4be6ab20175992367965dfd687bf8b7ebece6113b7f7a3e59256497e3ecd7e2678875965
25
26 diff --git a/app-admin/mongo-tools/mongo-tools-3.6.5.ebuild b/app-admin/mongo-tools/mongo-tools-3.6.5.ebuild
27 new file mode 100644
28 index 00000000000..3589981cbd8
29 --- /dev/null
30 +++ b/app-admin/mongo-tools/mongo-tools-3.6.5.ebuild
31 @@ -0,0 +1,61 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +MY_PV=${PV/_rc/-rc}
38 +MY_P=${PN}-r${MY_PV}
39 +
40 +DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
41 +HOMEPAGE="https://www.mongodb.com"
42 +SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +IUSE="sasl ssl"
48 +
49 +RDEPEND="!<dev-db/mongodb-3.0.0"
50 +DEPEND="${RDEPEND}
51 + dev-lang/go:=
52 + net-libs/libpcap
53 + sasl? ( dev-libs/cyrus-sasl )
54 + ssl? ( dev-libs/openssl:0= )"
55 +
56 +S=${WORKDIR}/${MY_P}
57 +
58 +src_prepare() {
59 + default
60 +
61 + # do not substitute version because it uses git
62 + sed -i '/^sed/,+3d' build.sh || die
63 + sed -i '/^stty/d' build.sh || die
64 + sed -i '/^mv/d' build.sh || die
65 +
66 + # build pie to avoid text relocations wrt #582854
67 + # skip on ppc64 wrt #610984
68 + if ! use ppc64; then
69 + sed -i 's/\(go build\)/\1 -buildmode=pie/g' build.sh || die
70 + fi
71 +
72 + # ensure we use bash wrt #582906
73 + sed -i 's@/bin/sh@/bin/bash@g' build.sh || die
74 +}
75 +
76 +src_compile() {
77 + local myconf=()
78 +
79 + if use sasl; then
80 + myconf+=(sasl)
81 + fi
82 +
83 + if use ssl; then
84 + myconf+=(ssl)
85 + fi
86 +
87 + ./build.sh ${myconf[@]} || die "build failed"
88 +}
89 +
90 +src_install() {
91 + dobin bin/*
92 +}