dev-db/influx-cli - 2.7.5-r1 (gentoo)

Search

Package Information

Description:
The command line for influxdb
Homepage:
https://github.com/influxdata/influx-cli
License:
Apache-2.0 BSD BSD-2 MIT

Ebuild Details

Version EAPI Keywords Slot
2.7.5-r1 8 ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit go-module shell-completion
MY_PV="${PV/_rc/-rc.}"

DESCRIPTION="The command line for influxdb"
HOMEPAGE="https://github.com/influxdata/influx-cli"

SRC_URI="https://github.com/influxdata/influx-cli/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://gentoo.kropotkin.rocks/go-pkgs/${P}-vendor.tar.xz"

LICENSE="Apache-2.0 BSD BSD-2 MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"

# Previous versions ship they own client
DEPEND="!<dev-db/influxdb-2.0.0"
RDEPEND="${DEPEND}"

src_compile() {
	unset LDFLAGS
	emake

	cd bin/$(go env GOOS)/$(go env GOARCH)/ || die
	./influx completion zsh > influx-completion.zsh || die
}

src_install() {
	cd bin/$(go env GOOS)/$(go env GOARCH) || die

	dobin influx
	# bash ones are provided by bash-completion package
	newzshcomp influx-completion.zsh _influx
}

Dependencies

DEPEND

!<dev-db/influxdb-2.0.0

RDEPEND

!<dev-db/influxdb-2.0.0