# -*- 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        dathere qsv 6.0.1
github.tarball_from archive
revision            0

homepage            https://qsv.dathere.com

description         Ultra-fast CSV data-wrangling CLI toolkit

long_description    \
    qsv is a blazing fast, pleasingly parallel, CPU-accelerated, data \
    wrangling toolkit that\'s built on Rust and Polars to slice, dice, and \
    analyze your data in seconds from the command line. It's designed to \
    handle very large datasets without specialized programming skills.

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

checksums           rmd160  69e1e68a3f680619fce72e768a61d4bb8039d57c \
                    sha256  d4a4dafad7cec344a927e92a1d42b4da210ea83061b9de8094da9d06f0d1427f \
                    size    29426070

depends_build-append \
                    path:bin/cmake:cmake

depends_lib-append  port:python313

build.env-append    PYO3_PYTHON=${prefix}/bin/python3.13
build.args-append   --features=distrib_features --bin ${name}

cargo.offline_cmd

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