# -*- 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/mergestat/mergestat 0.5.4 v
revision            1

homepage            https://app.mergestat.com

description         Query git repositories with SQL

long_description    \
    ${name} is a command-line tool for running SQL queries on git \
    repositories and related data sources. It's meant for ad-hoc querying of \
    source-code on disk through a common interface (SQL), as an alternative \
    to patching together various shell commands.

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

checksums           rmd160  e5cd3ddf3f2e9216d59732aff37e62b4881b422d \
                    sha256  0d545c0d1918be642cf2220b7115a52a43d3e7771ff1d4afdd1d37f7805c37a0 \
                    size    2813543

depends_build-append \
                    port:pkgconfig

depends_lib-append  path:lib/pkgconfig/libgit2.pc:libgit2 \
                    port:libssh2 \
                    port:zlib

# Allow Go to fetch dependencies at build time
go.offline_build no

build.cmd           make
build.target        build

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