diff options
author | wiz <wiz@pkgsrc.org> | 2015-08-28 09:27:10 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2015-08-28 09:27:10 +0000 |
commit | b18b3a1eca1f888c8b374d75b490b3f9ad288c75 (patch) | |
tree | b66b0b388bd9b2bdaa9312aecc077f3ff9f770d0 /textproc | |
parent | bae8b1d256928d37a9cdd0e9bd6d5e97ea0a0373 (diff) | |
download | pkgsrc-b18b3a1eca1f888c8b374d75b490b3f9ad288c75.tar.gz |
Import miller-2.0.0 as textproc/miller.
Miller is like sed, awk, cut, join, and sort for name-indexed data
such as CSV.
With Miller, you get to use named fields without needing to count
positional indices.
This is something the Unix toolkit always could have done, and
arguably always should have done. It operates on key-value-pair
data while the familiar Unix tools operate on integer-indexed
fields: if the natural data structure for the latter is the array,
then Miller's natural data structure is the insertion-ordered hash
map. This encompasses a variety of data formats, including but not
limited to the familiar CSV. (Miller can handle positionally-indexed
data as a special case.)
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/miller/DESCR | 14 | ||||
-rw-r--r-- | textproc/miller/Makefile | 19 | ||||
-rw-r--r-- | textproc/miller/PLIST | 2 | ||||
-rw-r--r-- | textproc/miller/distinfo | 5 |
4 files changed, 40 insertions, 0 deletions
diff --git a/textproc/miller/DESCR b/textproc/miller/DESCR new file mode 100644 index 00000000000..3144d495ec7 --- /dev/null +++ b/textproc/miller/DESCR @@ -0,0 +1,14 @@ +Miller is like sed, awk, cut, join, and sort for name-indexed data +such as CSV. + +With Miller, you get to use named fields without needing to count +positional indices. + +This is something the Unix toolkit always could have done, and +arguably always should have done. It operates on key-value-pair +data while the familiar Unix tools operate on integer-indexed +fields: if the natural data structure for the latter is the array, +then Miller's natural data structure is the insertion-ordered hash +map. This encompasses a variety of data formats, including but not +limited to the familiar CSV. (Miller can handle positionally-indexed +data as a special case.) diff --git a/textproc/miller/Makefile b/textproc/miller/Makefile new file mode 100644 index 00000000000..73b4e89e975 --- /dev/null +++ b/textproc/miller/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2015/08/28 09:27:10 wiz Exp $ + +DISTNAME= miller-2.0.0 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_GITHUB:=johnkerl/} +GITHUB_PROJECT= miller +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://github.com/johnkerl/miller/ +COMMENT= Command-line CSV processor +LICENSE= 2-clause-bsd + +BUILDLINK_TRANSFORM+= rm:-Werror +MAKE_JOBS_SAFE= no +MAKE_FLAGS+= INSTALLDIR=${DESTDIR}${PREFIX}/bin +INSTALLATION_DIRS+= bin + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/miller/PLIST b/textproc/miller/PLIST new file mode 100644 index 00000000000..5bd9f2f7186 --- /dev/null +++ b/textproc/miller/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2015/08/28 09:27:10 wiz Exp $ +bin/mlr diff --git a/textproc/miller/distinfo b/textproc/miller/distinfo new file mode 100644 index 00000000000..338e5c50aa1 --- /dev/null +++ b/textproc/miller/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2015/08/28 09:27:10 wiz Exp $ + +SHA1 (miller-2.0.0.tar.gz) = e66bb7264be789995e03f12bb6e7bad68321418a +RMD160 (miller-2.0.0.tar.gz) = 25228a05da4a76a5e16e21b3b355de4f078edfad +Size (miller-2.0.0.tar.gz) = 63288484 bytes |