# -*- 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/amake/go2port ca13f1511ed49c806a06c65d73e86fd86d345af6
version             20191208
categories          sysutils macports
maintainers         {amake @amake} openmaintainer
license             BSD

description         A tool for creating MacPorts portfiles for Go projects

long_description    ${description}

checksums           ${distname}${extract.suffix} \
                        rmd160  00af9e21e6eb3b291ac12495096178a9dbe8b7fd \
                        sha256  e60c06e7d709720a4f699856d604debd749ce19b3de1295166e6e5d3a2615b7d \
                        size    7584

go.vendors          github.com/BurntSushi/toml \
                        lock    v0.3.0 \
                        rmd160  08c91052763fa884c7d88f6b10a03bfbcdea93e8 \
                        sha256  360c150f4ec9f5450feee0009aba9555b6731ca0bbb2ce612c3b7b9173c0d896 \
                        size    41567 \
                    github.com/urfave/cli \
                        lock    v1.20.0 \
                        rmd160  b54f7232fbbfda640f7d9411a5dedab3adf6a888 \
                        sha256  94f12754129bce1d3435efd84826a73fc8af70f61f9264c60c1f554d425d503a \
                        size    58405 \
                    golang.org/x/crypto \
                        lock    0e37d006457b \
                        rmd160  dc6590753cf4472777b7a35a8ceacfb9a2316091 \
                        sha256  ab5b09609da7722997b32a55b58703e90815e8a8c28668444df62b00cac93aab \
                        size    1638395 \
                    gopkg.in/check.v1 \
                        lock    20d25e280405 \
                        rmd160  412aa0d109919182ff84259e9b5bbc9f24d78117 \
                        sha256  233f8faf427ce6701ac3427f85c28bc6b6ae7cdc97a303a52873c69999223325 \
                        size    30360 \
                    gopkg.in/yaml.v2 \
                        lock    v2.2.1 \
                        rmd160  56eb283b31feac8db4ede3e24768e0f9999913d2 \
                        sha256  34dc73c7798abfa3bb96c46c25002ccc5b92543dc3e008a31e0ae94c2528e52b \
                        size    70231

build.args          -ldflags "'-X main.version=${version}'"

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