# -*- 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/cristianoliveira/ergo 0.4.1 v
# Delete this on next update to use golang PortGroup's default ('archive')
github.tarball_from tarball
categories          net devel www
maintainers         {amake @amake} openmaintainer
license             MIT

description         A flexible reverse proxy which extends the well-known \
                    /etc/hosts declaration

long_description    ${description}

checksums           ${distname}${extract.suffix} \
                        rmd160  30ac78b801904c014665c93c24781c8341bac229 \
                        sha256  7a4c51a154189e3931bcad612a71ea37c032ef4e92fcba37e5aa3c22fb38132f \
                        size    1267462

build.args-append  -ldflags \"-w -s -X main.VERSION=${version}\"

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