# -*- 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 19.1.0
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  2a2c1ea69f4ea3dc9bde33a33e4f60c6f9f59233 \
                    sha256  8f11187987fbecc855f32a2e010915471bdd06a67ffb6132a4d62b15fe4ccaf5 \
                    size    19639660

depends_build-append \
                    path:bin/cmake:cmake

depends_lib-append  port:python314

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

patchfiles cargo-toml-fix.diff

cargo.offline_cmd

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