PORTNAME=	miller
DISTVERSIONPREFIX=	v
DISTVERSION=	6.21.0
PORTREVISION=	2
CATEGORIES=	textproc
MASTER_SITES=	https://raw.githubusercontent.com/johnkerl/${PORTNAME}/${DISTVERSIONFULL}/:gomod
DISTFILES=	go.mod:gomod

MAINTAINER=	adamw@FreeBSD.org
COMMENT=	Sed/awk/cut/join/sort for name-indexed data such as CSV, TSV and JSON
WWW=		https://johnkerl.org/miller/doc/

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

USES=		cpe go:modules
CPE_VENDOR=	johnkerl
USE_GITHUB=	yes
GH_ACCOUNT=	johnkerl

GO_MODULE=	github.com/johnkerl/miller
GO_TARGET=	./cmd/mlr

PLIST_FILES=	bin/mlr

do-test:
	cd ${WRKSRC} && ${DO_MAKE_BUILD} check

.include <bsd.port.mk>
