# -*- 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.29.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  42c505528d35997ebb9ed278fb6ec22b7fc425bb \
                    sha256  267124956365ab3ed32ec9e36f4f341050916ed69fd2c4fbfc42355bb7fbf66f \
                    size    342709

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

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