# -*- 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.28.0 v
go.package          github.com/pressly/goose/v3
go.toolchain_min    1.26.0
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  1a32c608a4c970347df84c887287a54c47384421 \
                    sha256  71644c9d60710096ecc721edba4edf44e1f53cd0417564321c4b848e26c75bfa \
                    size    335727

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

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