# -*- 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/pressly/goose 3.24.2 v
go.package          github.com/pressly/goose/v3
go.offline_build    no
revision            0

description         \
    A database migration tool. Supports SQL migrations and Go functions.

long_description    \
    Goose is a database migration tool. Manage your database schema by \
    creating incremental SQL changes or Go functions.

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

checksums           rmd160  42778e580d0af8b433a4ce6d6b061ce9d5cad82c \
                    sha256  1b0832f7648b04fdd69e28f4ade98b54acb4ebd8a403bde02375ef6919298261 \
                    size    311175

build.pre_args-append \
                    -ldflags \" -X main.version=${version} \"
build.args          ./cmd/${name}

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