blob: 6598d4ea50ad1b10065ba805abdcdab20a29d1c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
MY_PN="${PN%-bin}"
MY_P=${MY_PN}-${PV}
DESCRIPTION="The MongoDB Shell"
HOMEPAGE="https://github.com/mongodb-js/mongosh https://www.mongodb.com/products/shell"
SRC_URI_BASE="https://downloads.mongodb.com/compass/${MY_P}-linux"
SRC_URI="amd64? ( ${SRC_URI_BASE}-x64.tgz -> ${MY_P}_x64.tgz )
arm64? ( ${SRC_URI_BASE}-arm64.tgz -> ${MY_P}_arm64.tgz )"
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-4.0 ISC MIT WTFPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RDEPEND="dev-libs/cyrus-sasl[kerberos]"
# Do not complain about CFLAGS etc since we don't use them
QA_FLAGS_IGNORED='.*'
src_unpack() {
if use amd64; then
S="${WORKDIR}/${MY_P}-linux-x64"
elif use arm64; then
S="${WORKDIR}/${MY_P}-linux-arm64"
fi
default
}
src_install() {
dobin bin/mongosh
}
|