# -*- 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/neilotoole/sq 0.48.4 v
go.offline_build    no
revision            1

homepage            https://sq.io

description         sq data wrangler

long_description    \
    sq is a command line tool that provides jq-style access to structured \
    data sources\: SQL databases, or document formats like CSV or Excel. It \
    is the lovechild of sql+jq.

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

fetch.type          git

depends_lib-append  path:lib/pkgconfig/icu-uc.pc:icu

build.cmd           make
build.target        install

destroot {
    xinstall -m 0755 ${gopath}/bin/sq ${destroot}${prefix}/bin/
}
