[app-admin/mongo-tools] bump

This commit is contained in:
2026-02-13 04:40:10 +01:00
parent 72daa263bb
commit 6697cba505
4 changed files with 59 additions and 62 deletions

View File

@@ -1 +1 @@
DIST mongo-tools-100.9.5.tar.gz 5130120 BLAKE2B 8873e1dbc9aa6a3b181551e620f1a7c646510753c7756d93bc6884256cf06011d1f0357f4e8070a61d46f7488f8b52eef34bbef35c6773ea781fe3e259a2487c SHA512 8aa6c01e6d6a73c74a7ffd405dd1159085d5896efa42b16aa5d1fa7e67e59fedac66deda42cd2136f27d9957256be28e4ff8cc2c90429450cc772af1ae5efbe1
DIST mongo-tools-100.14.1.tar.gz 7520044 BLAKE2B bffd4ab58fd6a04c6a96021dea04023376091df0f9b8caa1e60e05f2e2c9b52ce49f84bfa59eb4d9efd2ab51438e7781e0d2073b60ee9fe6c17a25c1fd286487 SHA512 780e0ae82aaec98b6e2661fbb21d45971f593458b99f4baedd3f50002df01bcaa297d725b337f58f2fb272e2904adfa5e65b34ca4213eea249b9eec58c59ba64

View File

@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ultrabug@gentoo.org</email>
<name>Alexys Jacob</name>
</maintainer>
<!-- maintainer-needed -->
<use>
<flag name="test-full">Run test suite in full, including tests that run a local database instance.</flag>
</use>
<upstream>
<remote-id type="cpe">cpe:/a:mongodb:database_tools</remote-id>
<remote-id type="github">mongodb/mongo-tools</remote-id>

View File

@@ -0,0 +1,54 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
HOMEPAGE="https://www.mongodb.com"
SRC_URI="https://github.com/mongodb/mongo-tools/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv"
IUSE="kerberos test-full"
RDEPEND="
kerberos? ( app-crypt/mit-krb5 )
"
DEPEND="${RDEPEND}"
BDEPEND="
test-full? ( dev-db/mongodb )
"
src_compile() {
local myconf=()
if use kerberos; then
myconf+=(gssapi)
fi
mkdir -p bin || die
for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop; do
einfo "Building $i"
ego build -o "bin/$i" -ldflags "-X main.VersionStr=${PV}" -x --tags "${myconf[*]}" "$i/main/$i.go"
done
}
src_test() {
# https://github.com/mongodb/mongo-tools/blob/master/CONTRIBUTING.md#testing
ego run build.go test:unit
if use test-full; then
mongod --setParameter enableTestCommands=1 --port 33333 \
--fork --dbpath="${T}" --logpath="${T}/mongod.log" || die
ego run build.go test:integration
kill $(<"${T}/mongod.lock")
fi
}
src_install() {
dobin bin/*
einstalldocs
}

View File

@@ -1,57 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
HOMEPAGE="https://www.mongodb.com"
SRC_URI="https://github.com/mongodb/mongo-tools/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/src/${EGO_PN}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv"
IUSE="kerberos"
RDEPEND="
kerberos? ( app-crypt/mit-krb5 )
"
BDEPEND=">=dev-lang/go-1.21.10:="
# Do not complain about CFLAGS etc since go projects do not use them.
QA_FLAGS_IGNORED='.*'
EGO_PN="github.com/mongodb/mongo-tools"
src_unpack() {
mkdir -p "${S%/*}" || die
default
mv ${P} "${S}" || die
}
src_compile() {
local myconf=()
if use kerberos; then
myconf+=(gssapi)
fi
# build pie to avoid text relocations wrt #582854
local buildmode="pie"
# skip on ppc64 wrt #610984
if use ppc64; then
buildmode="default"
fi
mkdir -p bin || die
for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop; do
echo "Building $i"
go build -buildmode="${buildmode}" -o "bin/$i" \
-ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" -x --tags "${myconf[*]}" "$i/main/$i.go" || die
done
}
src_install() {
dobin bin/*
}