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, 07 May 2018 07:39:58
Message-Id: 1525678758.58f3a56fc51cea34b07f078b1652467e45ecc240.ultrabug@gentoo
1 commit: 58f3a56fc51cea34b07f078b1652467e45ecc240
2 Author: Tomas Mozes <tmozes <AT> sygic <DOT> com>
3 AuthorDate: Thu Apr 26 12:14:58 2018 +0000
4 Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
5 CommitDate: Mon May 7 07:39:18 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58f3a56f
7
8 app-admin/mongo-tools: bump to 3.4.14/3.6.4
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11 Closes: https://github.com/gentoo/gentoo/pull/8150
12
13 app-admin/mongo-tools/Manifest | 2 +
14 app-admin/mongo-tools/mongo-tools-3.4.14.ebuild | 60 ++++++++++++++++++++++++
15 app-admin/mongo-tools/mongo-tools-3.6.4.ebuild | 61 +++++++++++++++++++++++++
16 3 files changed, 123 insertions(+)
17
18 diff --git a/app-admin/mongo-tools/Manifest b/app-admin/mongo-tools/Manifest
19 index ae713d8aafd..bf2f10c2a4c 100644
20 --- a/app-admin/mongo-tools/Manifest
21 +++ b/app-admin/mongo-tools/Manifest
22 @@ -3,5 +3,7 @@ DIST mongo-tools-3.0.15.tar.gz 2413131 BLAKE2B 5f971d6b47685ef8db246a71f59a31a72
23 DIST mongo-tools-3.2.17.tar.gz 2719970 BLAKE2B 666b67d8abdd10f7fa7c557e3c3906fb3cc6bcfa0b97a05e39e5f1ea923d2beb5ec249b3b0a521c4cce4bd595bf18672d8bce38152f84825bb3fffb058fd3b29 SHA512 62c2540027e07b8276621e08d13657864d16021030e3c8f9bc0d351454319d448f889cf6a48b8467ea3270365376ed0c3beb42ceae3f28357910148c6b4054b2
24 DIST mongo-tools-3.4.10.tar.gz 4719399 BLAKE2B 8165248bf58f2ea2b02e365a3609c72b72e98dd5902f176e251fa2add1ad26e90900e06c35dc6db4dbe161e541bedfc1776f5e15bbb41dcc9a7be17800424362 SHA512 b861bb3fb1a32c3aa2efefcf6a13bb6d4783ac1a9b006c477fd04deb338cbf6b7adc3944bc6919513b92bd96b8500813ff4af49c9dec0719ebd2fdaa99bc39a5
25 DIST mongo-tools-3.4.13.tar.gz 4719488 BLAKE2B 27c7716b21f1a23408d0f31aee111c5877f5172121a987c234ff01eb2690bbc71bca4e00fc13b701ca6b91dce0c9aaae43c2239a60a52e130e1390bf5bafef60 SHA512 c233268328ef868ec06c9a9d83009141b39c84ba642e7de7dece3210717ba8de600f39896a30ed23d1577db9f4697c3a8d720cf35248bca2b00a17642b043237
26 +DIST mongo-tools-3.4.14.tar.gz 4719370 BLAKE2B 2add25ddf9b5b7d2ebecdd647dfb2c818643b16f623fd1faba36a8d6f5a181e80ad47de45fc56e462290f61f6c16c27a6b0587542315981537627256e69b4958 SHA512 a0d715fe36769740ba25e92b742b157dc264b141ddd56d64ca4c6f8ffea11df291ce871aaa723acdb8b7f5318ac1edb8c5fb9dd7bf2edfe08d4e7cef343abea7
27 DIST mongo-tools-3.6.2.tar.gz 4693924 BLAKE2B 61c44d579f6eb4013ee6c0118ebe89a2d454ef8cf6ad933479885cb71d169185272b03d9c63fa738d67bbd1b9efd4bc964eb17adcc5002508589d198cdb17752 SHA512 5ac2b1d2b33271f63c406c69bd8a576a21f4dcaa6f75839e0f907ebc9968f0e121eb3800e88da050c120856e7ddda4f12d551bb731d4acac0f5cf09f66fc948a
28 DIST mongo-tools-3.6.3.tar.gz 4693833 BLAKE2B fc7139984cf3dcb7b4ce6f6c2028296651aa59ac68d7068bdf748e28eeb65b1fd9b07580d0c93f3f41dbb01030a12433a07a04deadf28e0ff792387fa78ae4aa SHA512 7dba782c84a728aa9ceb28cbd9934f58b615dccfb238a9dbd63b18661ba4e74ddba21f93d9f12e6d80d293ebe42a82d31fa64448aacdba75bd07d964a5f631fc
29 +DIST mongo-tools-3.6.4.tar.gz 4693872 BLAKE2B 5d72b32fa8ad7bc106c6ea3c09a27a093b9a1ae2392b4fa534042c5461fdc2b958dcbbf32e0ed596be234921e2ee21cc8f6132d57ae870a234abfc7adbb3b2e9 SHA512 53d06fa4a1b58de8001d6bf6e85f7edc97ce2cfbbb69c1ab05219deaa05ad9dd77d93f98c5526b4f58644a766e1b0f123686358095f059c71a4277634603f23f
30
31 diff --git a/app-admin/mongo-tools/mongo-tools-3.4.14.ebuild b/app-admin/mongo-tools/mongo-tools-3.4.14.ebuild
32 new file mode 100644
33 index 00000000000..de23914b111
34 --- /dev/null
35 +++ b/app-admin/mongo-tools/mongo-tools-3.4.14.ebuild
36 @@ -0,0 +1,60 @@
37 +# Copyright 1999-2018 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=6
41 +
42 +MY_PV=${PV/_rc/-rc}
43 +MY_P=${PN}-r${MY_PV}
44 +
45 +DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
46 +HOMEPAGE="https://www.mongodb.org"
47 +SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
48 +
49 +LICENSE="Apache-2.0"
50 +SLOT="0"
51 +KEYWORDS="~amd64"
52 +IUSE="sasl ssl"
53 +
54 +RDEPEND="!<dev-db/mongodb-3.0.0"
55 +DEPEND="${RDEPEND}
56 + dev-lang/go:=
57 + net-libs/libpcap
58 + sasl? ( dev-libs/cyrus-sasl )
59 + ssl? ( dev-libs/openssl:0= )"
60 +
61 +S=${WORKDIR}/${MY_P}
62 +
63 +src_prepare() {
64 + default
65 +
66 + # do not substitute version because it uses git
67 + sed -i '/^sed/,+3d' build.sh || die
68 + sed -i '/^mv/d' build.sh || die
69 +
70 + # build pie to avoid text relocations wrt #582854
71 + # skip on ppc64 wrt #610984
72 + if ! use ppc64; then
73 + sed -i 's/\(go build\)/\1 -buildmode=pie/g' build.sh || die
74 + fi
75 +
76 + # ensure we use bash wrt #582906
77 + sed -i 's@/bin/sh@/bin/bash@g' build.sh || die
78 +}
79 +
80 +src_compile() {
81 + local myconf=()
82 +
83 + if use sasl; then
84 + myconf+=(sasl)
85 + fi
86 +
87 + if use ssl; then
88 + myconf+=(ssl)
89 + fi
90 +
91 + ./build.sh ${myconf[@]} || die "build failed"
92 +}
93 +
94 +src_install() {
95 + dobin bin/*
96 +}
97
98 diff --git a/app-admin/mongo-tools/mongo-tools-3.6.4.ebuild b/app-admin/mongo-tools/mongo-tools-3.6.4.ebuild
99 new file mode 100644
100 index 00000000000..f8c4a23a746
101 --- /dev/null
102 +++ b/app-admin/mongo-tools/mongo-tools-3.6.4.ebuild
103 @@ -0,0 +1,61 @@
104 +# Copyright 1999-2018 Gentoo Foundation
105 +# Distributed under the terms of the GNU General Public License v2
106 +
107 +EAPI=6
108 +
109 +MY_PV=${PV/_rc/-rc}
110 +MY_P=${PN}-r${MY_PV}
111 +
112 +DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
113 +HOMEPAGE="https://www.mongodb.org"
114 +SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
115 +
116 +LICENSE="Apache-2.0"
117 +SLOT="0"
118 +KEYWORDS="~amd64 ~x86"
119 +IUSE="sasl ssl"
120 +
121 +RDEPEND="!<dev-db/mongodb-3.0.0"
122 +DEPEND="${RDEPEND}
123 + dev-lang/go:=
124 + net-libs/libpcap
125 + sasl? ( dev-libs/cyrus-sasl )
126 + ssl? ( dev-libs/openssl:0= )"
127 +
128 +S=${WORKDIR}/${MY_P}
129 +
130 +src_prepare() {
131 + default
132 +
133 + # do not substitute version because it uses git
134 + sed -i '/^sed/,+3d' build.sh || die
135 + sed -i '/^stty/d' build.sh || die
136 + sed -i '/^mv/d' build.sh || die
137 +
138 + # build pie to avoid text relocations wrt #582854
139 + # skip on ppc64 wrt #610984
140 + if ! use ppc64; then
141 + sed -i 's/\(go build\)/\1 -buildmode=pie/g' build.sh || die
142 + fi
143 +
144 + # ensure we use bash wrt #582906
145 + sed -i 's@/bin/sh@/bin/bash@g' build.sh || die
146 +}
147 +
148 +src_compile() {
149 + local myconf=()
150 +
151 + if use sasl; then
152 + myconf+=(sasl)
153 + fi
154 +
155 + if use ssl; then
156 + myconf+=(ssl)
157 + fi
158 +
159 + ./build.sh ${myconf[@]} || die "build failed"
160 +}
161 +
162 +src_install() {
163 + dobin bin/*
164 +}