1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
10 HOMEPAGE="https://www.mongodb.org"
11 SRC_URI="https://github.com/mongodb/mongo-tools/archive/r${MY_PV}.tar.gz -> mongo-tools-${MY_PV}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
18 RDEPEND="!<dev-db/mongodb-3.0.0"
22 sasl? ( dev-libs/cyrus-sasl )
23 ssl? ( dev-libs/openssl:0= )"
30 # do not substitute version because it uses git
31 sed -i '/^sed/,+3d' build.sh || die
32 sed -i '/^stty/d' build.sh || die
33 sed -i '/^mv/d' build.sh || die
35 # build pie to avoid text relocations wrt #582854
36 # skip on ppc64 wrt #610984
38 sed -i 's/\(go build\)/\1 -buildmode=pie/g' build.sh || die
41 # ensure we use bash wrt #582906
42 sed -i 's@/bin/sh@/bin/bash@g' build.sh || die
56 ./build.sh ${myconf[@]} || die "build failed"