Import textproc/miller.

Miller (mlr) is like awk, sed, cut, join, and sort for name-indexed data
such as CSV, TSV, and tabular JSON. You get to work with your data using
named fields, without needing to count positional column indices. It is
pipe-friendly and interoperates with the Unix toolkit.

It operates on key-value-pair data while the familiar Unix tools operate
on integer-indexed fields. This encompasses a variety of data formats,
including but not limited to the familiar CSV, TSV, and JSON. (Miller
can handle positionally-indexed data as a special case.)

OK sthen@, solene@
This commit is contained in:
fcambus 2018-08-02 16:29:48 +00:00
parent 9c354531c3
commit 5a9bef1aec
4 changed files with 38 additions and 0 deletions

24
textproc/miller/Makefile Normal file
View File

@ -0,0 +1,24 @@
# $OpenBSD: Makefile,v 1.1.1.1 2018/08/02 16:29:48 fcambus Exp $
COMMENT = name-indexed data processing tool
V = 5.3.0
DISTNAME = mlr-$V
PKGNAME = miller-$V
CATEGORIES = textproc
HOMEPAGE = https://johnkerl.org/miller/doc/
MAINTAINER = Frederic Cambus <fcambus@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c m
MASTER_SITES = https://github.com/johnkerl/miller/releases/download/v$V/
CONFIGURE_STYLE = gnu
.include <bsd.port.mk>

2
textproc/miller/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (mlr-5.3.0.tar.gz) = vK7Wex1NTKc0JvHnGmvErUjKIq30T1eaRdL5umI93/4=
SIZE (mlr-5.3.0.tar.gz) = 1220366

View File

@ -0,0 +1,9 @@
Miller (mlr) is like awk, sed, cut, join, and sort for name-indexed data
such as CSV, TSV, and tabular JSON. You get to work with your data using
named fields, without needing to count positional column indices. It is
pipe-friendly and interoperates with the Unix toolkit.
It operates on key-value-pair data while the familiar Unix tools operate
on integer-indexed fields. This encompasses a variety of data formats,
including but not limited to the familiar CSV, TSV, and JSON. (Miller
can handle positionally-indexed data as a special case.)

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/08/02 16:29:48 fcambus Exp $
@bin bin/mlr
@man man/man1/mlr.1