# -*- 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/cube2222/octosql 0.13.0 v
revision            0

description         \
    OctoSQL is a query tool that allows you to join, analyse and transform \
    data from multiple databases and file formats using SQL.

long_description    \
    {*}${description} OctoSQL is a SQL query engine which allows you to write \
    standard SQL queries on data stored in multiple SQL databases, NoSQL \
    databases, streaming sources and files in various formats trying to push \
    down as much of the work as possible to the source databases, not \
    transferring unnecessary data.  OctoSQL does that by creating an internal \
    representation of your query and later translating parts of it into the \
    query languages or APIs of the source databases. Whenever a datasource \
    doesn't support a given operation, OctoSQL will execute it in memory, so \
    you don't have to worry about the specifics of the underlying \
    datasources. OctoSQL supports JSON, CSV, Excel, Parquet, PostgreSQL, \
    MySQL, Redis & Kafka.

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

checksums           rmd160  8d59cf243afad42adac3caf96709008d6e03b70f \
                    sha256  e22bdb710ca0609019b842df347990ff9aed4f3635f5308ff1acf50d093b7942 \
                    size    2224423

go.offline_build no

build.pre_args-append \
    -ldflags \"-X ${go.package}/cmd.VERSION=${github.tag_prefix}${version}\"
build.args-append   -o ./bin/${name}

destroot {
    xinstall -m 0755 ${worksrcpath}/bin/${name} ${destroot}${prefix}/bin/
}
