# -*- 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/hashicorp/waypoint 0.11.4 v
go.offline_build    no
revision            0

homepage            https://www.waypointproject.io

description         \
    A tool to build, deploy, and release any application on any platform

long_description    \
    Waypoint allows developers to define their application build, deploy, and \
    release lifecycle as code, reducing the time to deliver deployments \
    through a consistent and repeatable workflow.  Waypoint supports a number \
    of build methods and target platforms out of the box and more can be \
    easily added via plugins: Cloud Native Buildpacks, Docker, Kubernetes, \
    AWS EC2 and ECS, Azure Container Instances, Google Cloud Run, Netlify, \
    and many more...

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

checksums           rmd160  412a282be713262db85d00d8ba4d3f3938d63e7b \
                    sha256  e2526a621880fdc92c285250242532d2e9c5053fd53d2df9ad4ca7efa6b951a3 \
                    size    24896635

depends_build-append port:go-bindata

build.cmd           make
build.target        bin

use_parallel_build  no

patch {
    reinplace -E {s/GOOS=(linux|windows)//g} ${worksrcpath}/Makefile
    reinplace {s|GOARCH=amd64||g} ${worksrcpath}/Makefile
}

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

github.livecheck.regex  {([0-9.]+)}
