# -*- 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 3.1.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  272f3fdc0a67b19478ccc04ae0117f4eabc7a90f \
                    sha256  a533e35c4c2a4145e9d94fec76f5cc0ddf4b9f650286145172096e677fce6af5 \
                    size    11198299

depends_build-append \
                    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/
}
