# -*- 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.27.3 v
go.package          github.com/pressly/goose/v3
go.toolchain_min    1.25.7
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  95a858c16ea2c540e9d2bbaa8aab9c3a9522fa01 \
                    sha256  89ffece26aae3f06700a4a0a1349d0e3abd81075e449dee79056622062ed8907 \
                    size    333467

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

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