# -*- 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/ariga/atlas 0.26.1 v
go.package          ariga.io/atlas
go.offline_build    no
name                atlas-toolkit
revision            0

homepage            https://atlasgo.io

description         \
    A database toolkit that helps developers apply modern DevOps principles.

long_description    \
    Atlas CLI is an open source tool that helps developers manage their \
    database schemas by applying modern DevOps principles. Contrary to \
    existing tools, Atlas intelligently plans schema migrations for you. \
    Atlas users can use the Atlas DDL (data definition language) to describe \
    their desired database schema and use the command-line tool to plan and \
    apply the migrations to their systems.

categories          databases
installs_libs       no
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  e793f9d9cdbd2efc1c4820e2744d4af0f0659baf \
                    sha256  c74ffe85df472991d7df816d0017ff3b7a95966f2b53859936dc7341f0d326c9 \
                    size    2122297

build.dir           ${worksrcpath}/cmd/atlas
build.cmd           "${go.bin} generate ./... && ${go.bin} build"

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