1 |
commit: dce5f03eaecc1889f45c8d5c470d54cea74f464e |
2 |
Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Sep 9 19:57:35 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 9 20:40:57 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dce5f03e |
7 |
|
8 |
app-admin/mongo-tools: bump to 4.0.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
app-admin/mongo-tools/Manifest | 1 + |
13 |
app-admin/mongo-tools/mongo-tools-4.0.2.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 9c4a955c732..2393b43b60e 100644 |
18 |
--- a/app-admin/mongo-tools/Manifest |
19 |
+++ b/app-admin/mongo-tools/Manifest |
20 |
@@ -14,3 +14,4 @@ DIST mongo-tools-3.6.6.tar.gz 4723751 BLAKE2B 876d46c47190398d1218a760bdeb8167c9 |
21 |
DIST mongo-tools-3.6.7.tar.gz 4723244 BLAKE2B 82a61b8e72122a9a2b80aceeaa6767fcb13740c324c83c53b18297d9138807950dc656506ffd8a694d2f697c934342541c0ca6f62539bb07be266093e82a17a6 SHA512 5367259f27cf21234db2f69693fc2e21051b42b1acc7eaf8f9b366ed264943cff179c8565239fe36bb1d5d21f5e08ec58ff0df5d4c60526d321d63389f37fac2 |
22 |
DIST mongo-tools-4.0.0.tar.gz 10872217 BLAKE2B 84e92178c0e4827926de525a70d6124635d59e270a3d37e23ec8653cc64d99bb7489fa6266917437ca45aa3ca5e00bc59b81e65c5b72e717db2701c6f7327bec SHA512 d67c4aca9b41266109adc39bb1a642206738fda393e1f9f05570c02a00a02e29ec71c71e67ad232c72d66543ae7e7bfe07fbcf26958d48ed0e631da452c1904d |
23 |
DIST mongo-tools-4.0.1.tar.gz 10872813 BLAKE2B 21b36c550ee7147b013414d24042ca720d3fdb961759d8857b0ffb3ba1aa3f7f3bcb363c97287d1c7084dae246f9d7f49d2d0d5c8a11bc939fa9d3113b4c2b6e SHA512 69355ca7c8d97a9a8b257aa1cde672b3b4af7ceb5b37e2cf601746e102ca6ac290ec35c20728fdb6736dd28feb8e6b6e1b948e88fd2fb4c9b53c8a3cd3688d67 |
24 |
+DIST mongo-tools-4.0.2.tar.gz 10872395 BLAKE2B 6d02a51677509abb5a00f7f4f324a2c979d7e55ebd55754023c80e51e9e8121bea84692574739f83882c0426074c0a3a5c5df2cb8cba58ee80c06e5a75504a8d SHA512 45971d96c512a920c40052f0d11097e88db137e975125de375a63e8f0eefbe22ae5252d239455c60e12ef65e0abce7a658dfb9dda0cbcc153718bb6711cf5e43 |
25 |
|
26 |
diff --git a/app-admin/mongo-tools/mongo-tools-4.0.2.ebuild b/app-admin/mongo-tools/mongo-tools-4.0.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..8461951acd0 |
29 |
--- /dev/null |
30 |
+++ b/app-admin/mongo-tools/mongo-tools-4.0.2.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=7 |
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 |
+ # 1) ensure we use bash wrt #582906 |
62 |
+ # 2) do not substitute version because it uses git |
63 |
+ sed -e 's@/bin/sh@/bin/bash@g' \ |
64 |
+ -e '/^sed/,+3d' \ |
65 |
+ -e '/^stty/d' \ |
66 |
+ -e '/^mv/d' \ |
67 |
+ -i build.sh || die |
68 |
+ |
69 |
+ # build pie to avoid text relocations wrt #582854 |
70 |
+ # skip on ppc64 wrt #610984 |
71 |
+ if ! use ppc64; then |
72 |
+ sed -i 's/\(go build\)/\1 -buildmode=pie/g' build.sh || die |
73 |
+ fi |
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 |
+} |