net-misc/ipinfo - 9999 (nest)

Search

Install

Install this version:

emerge -a =net-misc/ipinfo-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-misc/ipinfo-9999

Or alternatively:

emerge --autounmask-write -a =net-misc/ipinfo-9999

Package Information

Description:
Look up IP details in bulk or one-by-one
Homepage:
https://github.com/ipinfo/cli
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
9999 8 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit edo git-r3 go-module shell-completion

DESCRIPTION="Look up IP details in bulk or one-by-one"
HOMEPAGE="https://github.com/ipinfo/cli"
EGIT_REPO_URI="https://github.com/ipinfo/cli.git"

LICENSE="Apache-2.0"
SLOT="0"

DOCS=( {ipinfo/CHANGELOG,README}.md )

src_unpack() {
	git-r3_src_unpack
}

src_compile() {
	GOFLAGS="-v -x -mod=vendor" ego build -o build/ipinfo ./ipinfo/...

	local completion
	for completion in bash fish zsh ; do
		edo build/ipinfo completion ${completion} > ipinfo.${completion}
	done
}

src_test() {
	GOFLAGS="-v -x -mod=vendor" ego test -work ./ipinfo/...
}

src_install() {
	einstalldocs
	dobin build/ipinfo

	newbashcomp ipinfo.bash ipinfo
	newfishcomp ipinfo.fish ipinfo
	newzshcomp ipinfo.zsh _ipinfo
}

Inherited Eclasses

edo