1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
11 DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
12 HOMEPAGE="http://www.mongodb.org"
13 SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
17 KEYWORDS="~amd64 ~x86"
21 # openssl DEPEND constraint, see:
22 # https://github.com/mongodb/mongo-tools/issues/11
24 RDEPEND="!<dev-db/mongodb-3.0.0"
28 sasl? ( dev-libs/cyrus-sasl )
29 ssl? ( dev-libs/openssl )"
34 sed -e 's|go build .*|go build -o "bin/$i" -tags "$tags" "$i/main/$i.go"|g' -i build.sh || die
36 # ensure we use bash wrt #582906
37 sed -e 's@/bin/sh@/bin/bash@g' -i build.sh || die
39 epatch "${FILESDIR}/${PN}-3.2.10-pie.patch"
46 myconf="${myconf} sasl"
50 myconf="${myconf} ssl"
53 ./build.sh ${myconf} || die "build failed"