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="https://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"
18 IUSE="sasl ssl libressl"
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 )
30 !libressl? ( dev-libs/openssl:0= )
31 libressl? ( dev-libs/libressl:0= )
37 # do not substitute version because it uses git
38 sed -i '/^sed/,+3d' build.sh || die
39 sed -i '/^mv/d' build.sh || die
41 # build pie to avoid text relocations wrt #582854
42 # skip on ppc64 wrt #610984
44 sed -i 's/\(go build\)/\1 -buildmode=pie/g' build.sh || die
47 # ensure we use bash wrt #582906
48 sed -i 's@/bin/sh@/bin/bash@g' build.sh || die
64 ./build.sh ${myconf[@]} || die "build failed"