# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit go-module git-r3 DESCRIPTION="A tool like sed, awk, cut, join, and sort for name-indexed data (CSV, JSON, ..)" HOMEPAGE="https://johnkerl.org/miller/doc/index.html" EGIT_REPO_URI="https://github.com/johnkerl/${PN}" LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64 ~arm ~x86" IUSE="doc test" RESTRICT="!test? ( test )" BDEPEND=">=dev-lang/go-1.19" DEPEND="app-alternatives/lex" src_unpack() { git-r3_src_unpack go-module_live_vendor } src_configure() { true } src_compile() { go build github.com/johnkerl/miller/cmd/mlr || die "build failed" } src_test() { go test -v ./... || die "test failed" mlr regtest || die "regtest failed" } src_install() { dobin mlr doman man/mlr.1 dodoc README.md }