Install this version:
emerge -a =dev-util/mmdbconvert-0.2.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/mmdbconvert-0.2.1
Or alternatively:
emerge --autounmask-write -a =dev-util/mmdbconvert-0.2.1
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit edo go-module
COMMIT="aee8c753aefee529a714c26061d2a1efd6dc9a56"
DESCRIPTION="A command-line tool to merge multiple MaxMind MMDB databases"
HOMEPAGE="https://github.com/maxmind/mmdbconvert"
SRC_URI="https://github.com/maxmind/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/SpiderX/portage-overlay/releases/download/${P}/${P}-deps.tar.xz
test? ( https://github.com/maxmind/MaxMind-DB/archive/${COMMIT}.tar.gz -> ${P}-db.tar.gz )"
LICENSE="Apache-2.0 MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND=">=dev-lang/go-1.25.3"
DOCS=( {CHANGELOG,README}.md )
src_prepare() {
default
if use test ; then
edo rmdir testdata/MaxMind-DB
edo ln -s ../../MaxMind-DB-"${COMMIT}" testdata/MaxMind-DB
fi
}
src_compile() {
LDFLAGS="-w -X main.version=${PV}"
ego build -ldflags "${LDFLAGS}" ./cmd/mmdbconvert/...
}
src_test() {
ego test -work ./...
}
src_install() {
einstalldocs
dobin mmdbconvert
}
Manage flags for this package:
euse -i <flag> -p dev-util/mmdbconvert |
euse -E <flag> -p dev-util/mmdbconvert |
euse -D <flag> -p dev-util/mmdbconvert
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | mmdbconvert-0.2.1-db.tar.gz | 292578 bytes | https://github.com/maxmind/MaxMind-DB/archive/aee8c753aefee529a714c26061d2a1efd6dc9a56.tar.gz |
| DIST | mmdbconvert-0.2.1-deps.tar.xz | 69483516 bytes | https://github.com/SpiderX/portage-overlay/releases/download/mmdbconvert-0.2.1/mmdbconvert-0.2.1-deps.tar.xz |
| DIST | mmdbconvert-0.2.1.tar.gz | 92794 bytes | https://github.com/maxmind/mmdbconvert/archive/v0.2.1.tar.gz |