# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           golang 1.0

go.setup            github.com/johnkerl/miller 6.16.0 v
revision            0

homepage            https://johnkerl.org/miller/doc

description         \
    Miller is like awk, sed, cut, join, and sort for name-indexed data such \
    as CSV, TSV, and tabular JSON

long_description    \
    {*}${description}.  You get to work with your data using named fields, \
    without needing to count positional column indices. 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, TSV, and JSON. (Miller can handle \
    positionally-indexed data as a special case.)

categories          textproc
installs_libs       no
license             BSD
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

set bin_name        mlr

build.target        ./cmd/${bin_name}

notes "miller is installed as ${bin_name}"

github.livecheck.regex \
                    {([0-9.]+)}

destroot {
    # binary
    xinstall -m 0755 ${worksrcpath}/${bin_name} ${destroot}${prefix}/bin/
    # man page
    xinstall -m 0444 \
        ${worksrcpath}/man/${bin_name}.1 ${destroot}${prefix}/share/man/man1/

    # misc files
    xinstall -d ${destroot}${prefix}/share/${name}/
    xinstall -m 0755 \
        ${worksrcpath}/README.md ${destroot}${prefix}/share/${name}/

    # vim config & syntax
    copy ${worksrcpath}/vim ${destroot}${prefix}/share/${name}/

    xinstall -d ${destroot}${prefix}/share/vim/vimfiles/ftdetect/
    ln -sf ${prefix}/share/${name}/vim/ftdetect/${bin_name}.vim \
        ${destroot}${prefix}/share/vim/vimfiles/ftdetect/

    xinstall -d ${destroot}${prefix}/share/vim/vimfiles/syntax/
    ln -sf ${prefix}/share/${name}/vim/syntax/${bin_name}.vim \
        ${destroot}${prefix}/share/vim/vimfiles/syntax/
}

checksums           ${distname}${extract.suffix} \
                        rmd160  032ae1a94ab895d9b94a2700ae0cd6b02ae6b30d \
                        sha256  6b18ae38b9943942ad4c196b183a9b782ebd66bde1eb3f4528f8c81137f7a0db \
                        size    11092921

go.vendors          gopkg.in/yaml.v3 \
                        lock    v3.0.1 \
                        rmd160  e85ac1368fb7f9ef945b7fd7bd608a1f0d261c12 \
                        sha256  f3ea6be3f405ec25f8799773355aba54f8831d11f5315a01155bdc69b92eca7b \
                        size    91208 \
                    gopkg.in/check.v1 \
                        lock    20d25e280405 \
                        rmd160  412aa0d109919182ff84259e9b5bbc9f24d78117 \
                        sha256  233f8faf427ce6701ac3427f85c28bc6b6ae7cdc97a303a52873c69999223325 \
                        size    30360 \
                    gonum.org/v1/gonum \
                        repo    github.com/gonum/gonum \
                        lock    v0.16.0 \
                        rmd160  fe10ff918c2e70bf7117c595e0c4999ffbee7cea \
                        sha256  806051c0d7e13cdb7dcfd460b5027f6acf23c0b5ecda9635ed7b4a5a1ed3e359 \
                        size    3476836 \
                    golang.org/x/tools \
                        lock    v0.39.0 \
                        rmd160  709ceb0817539220bd256f8646c8837aa1adf55f \
                        sha256  55ed1e9dfff57ad77abaf2b1fc6db34205aebe4375f7dd8215f06d98bd662168 \
                        size    8312159 \
                    golang.org/x/text \
                        lock    v0.32.0 \
                        rmd160  92db57a318b14d2a0bc2a41d670bcb14f75297ff \
                        sha256  41c9e190e43339bc738f7f863653b869003f66b726c6f0aa4fe0bb88785ade38 \
                        size    8970386 \
                    golang.org/x/term \
                        lock    v0.38.0 \
                        rmd160  59a3e6ec44f78115af21327d0faa421f70336400 \
                        sha256  18d0ef54a9ef2c6cd69eb5989e6b1443b2b94168b465420c60379301cf98206e \
                        size    15936 \
                    golang.org/x/sys \
                        lock    v0.39.0 \
                        rmd160  b3aaf6ca49281494debe2f952089f5351e78627e \
                        sha256  63a41769ec3d41c2c8bc2300b364d27b03293277adf1ce2cb06350091f1a9fe1 \
                        size    1535964 \
                    github.com/stretchr/testify \
                        lock    v1.11.1 \
                        rmd160  d6dec631a506398b8b731a0476b9e44c206243ac \
                        sha256  759279b90772bfc79db1620874f45eb008aceab35b14f007cb4ab8316a2398db \
                        size    116867 \
                    github.com/pmezard/go-difflib \
                        lock    v1.0.0 \
                        rmd160  fc879bfbdef9e3ff50844def58404e2b5a613ab8 \
                        sha256  7cd492737641847266115f3060489a67f63581e521a8ec51efbc280c33fc991f \
                        size    11409 \
                    github.com/pkg/profile \
                        lock    v1.7.0 \
                        rmd160  2aa12887cb03c1c41fb2a1ac999d4060d6ddb3ba \
                        sha256  cb3e51c2cd888693805eb4172be242ff72ffdb8242c881e2d7df92cabcbd07e5 \
                        size    6062 \
                    github.com/nine-lives-later/go-windows-terminal-sequences \
                        lock    v1.0.4 \
                        rmd160  fe4cfffdd4d3b737a9bd9b6018a38c5c50e2676f \
                        sha256  1485d19b41de4e7d7abf62750bdb938a73882c25765b3744d68e759f71e1b153 \
                        size    1998 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.20 \
                        rmd160  ef20ccdf87de8b704c0c7118625b2beb31d8f1b4 \
                        sha256  397549e98cf5d40df585f31dc7902f017c37be88c64311dd2b4aeccab4009949 \
                        size    4717 \
                    github.com/lestrrat-go/strftime \
                        lock    v1.1.1 \
                        rmd160  2d92cf995ff45419330d90101ecf627e29ce84db \
                        sha256  648d48ea01ce445e8d9e9a742f60e058a7b2bfb1e2f0c3ccc7fb837910e1b4e2 \
                        size    18519 \
                    github.com/lestrrat-go/envload \
                        lock    a3eb8ddeffcc \
                        rmd160  0301a6e0e1d6d288d7d5777f42ad711ce5102799 \
                        sha256  0db2732c2abc6d963e545b342343ea6f09db7f8f8cac9772effadf9d1ffc2020 \
                        size    3823 \
                    github.com/kshedden/statmodel \
                        lock    ee97d3e48df1 \
                        rmd160  eca9c7864437cc7e1d8e2e7c23ee19d2b795a6a2 \
                        sha256  d4c8c77b8da04b3349c0d58296ac9e74b55501e850e75fbf43312e4703f003f1 \
                        size    564410 \
                    github.com/kshedden/dstream \
                        lock    c4c410631beb \
                        rmd160  a114e41545d1ab2a7a5d9780902f979e5611f33e \
                        sha256  fe5d560031d41ff09f4a3b87d59bfc3f7c191e9276c6b655c6b4456a66400062 \
                        size    89834 \
                    github.com/klauspost/compress \
                        lock    v1.18.2 \
                        rmd160  e63a0623eaff42d4a318b680f732d80931c1eaef \
                        sha256  44b4efe06818d36d0f632fa820aae70e1d63d3eb6485fbb13da7d602d59a7c6e \
                        size    39076954 \
                    github.com/kballard/go-shellquote \
                        lock    95032a82bc51 \
                        rmd160  40415cd59ece9fb38b22170feec07f1f48d518a2 \
                        sha256  41aa42696f96fb2783c5135d71ff1ec5938dfe178b51eb703e509c8ac0e7db4e \
                        size    4335 \
                    github.com/johnkerl/lumin \
                        lock    v1.0.0 \
                        rmd160  ecb800f977446e2abbbaca8a3b022baa5588c759 \
                        sha256  786610567d54ee582554a3a8198f394184d083a2a28fa15f5f55b4cdd32fa456 \
                        size    514803 \
                    github.com/google/pprof \
                        lock    6f57359322fd \
                        rmd160  82347b1db61af9feccf9c0e1c89375d25f360113 \
                        sha256  564177a1edfc6f55ef189200811d6e0c28da55dbd2ba14a14a035cc54aa91196 \
                        size    1723012 \
                    github.com/golang/snappy \
                        lock    v1.0.0 \
                        rmd160  ecac40a18983ad6c8eae67112d4786a5a1171498 \
                        sha256  c67f26cd4d8e5fe382f9ce4e6d8cfd76d4e43383986b7f9fd9539efe3e842dd2 \
                        size    66178 \
                    github.com/felixge/fgprof \
                        lock    v0.9.3 \
                        rmd160  e149961a77d109e5f63077096ab666821bbacb3f \
                        sha256  238fbb7d14bb00dc69e050830ba7110387d87d52fe87fed0b9fe73ad3467988e \
                        size    340554 \
                    github.com/facette/natsort \
                        lock    2cd4dd1e2dcb \
                        rmd160  4a611235a575e18fbbc8e2ff0cdccdc1a981f1de \
                        sha256  812511163baf5bf7a0c2a39c624d3a0a085aa6ed14227dc1b7f8043d0ca8f569 \
                        size    2889 \
                    github.com/davecgh/go-spew \
                        lock    v1.1.1 \
                        rmd160  7c02883aa81f81aca14e13a27fdca9e7fbc136f7 \
                        sha256  e85d6afa83e64962e0d63dd4812971eccf2b9b5445eda93f46a4406f0c177d5f \
                        size    42171
