# -*- 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           cargo   1.0
PortGroup           github  1.0

github.setup        jqnatividad qsv 0.125.0
github.tarball_from archive
revision            0

description         Ultra-fast CSV data-wrangling CLI toolkit

long_description    \
    qsv is a command line program for indexing, slicing, analyzing, \
    splitting, enriching, validating & joining CSV files.  Commands are \
    simple, fast and composable.

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

checksums           rmd160  ad50e605bb3c68a1e5f14988e969c64fe96c0c85 \
                    sha256  fa6af5c222ba8e0586f0b5a1109341fb41557ce669b3da8c3c30cdc3bf7ea17a \
                    size    2670893

build.pre_args-append \
                    --features=feature_capable --bin ${name}
build.pre_args-delete \
                    --frozen --offline

destroot {
    xinstall -m 0755 \
        ${worksrcpath}/target/[cargo.rust_platform]/release/${name} \
        ${destroot}${prefix}/bin/
}
