From 7c59acba5699c9c58090a7a738669669a7307023 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 21 Aug 2021 23:14:26 +0100 Subject: gentoo resync : 21.08.2021 --- app-admin/mongosh-bin/mongosh-bin-1.0.4.ebuild | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 app-admin/mongosh-bin/mongosh-bin-1.0.4.ebuild (limited to 'app-admin/mongosh-bin/mongosh-bin-1.0.4.ebuild') diff --git a/app-admin/mongosh-bin/mongosh-bin-1.0.4.ebuild b/app-admin/mongosh-bin/mongosh-bin-1.0.4.ebuild new file mode 100644 index 000000000000..efad4f587482 --- /dev/null +++ b/app-admin/mongosh-bin/mongosh-bin-1.0.4.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 +} -- cgit v1.2.3