# -*- 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 3e11cdb
version             20201006
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  184338c5596b7b7899e943d1dcd0c0a0f45ed3f6 \
                        sha256  8be00d967a58042fe3cb87a3d79abb04496aadc2b34cb48ed5ac800990bfc7b5 \
                        size    10535

go.vendors          gopkg.in/yaml.v2 \
                        lock    v2.4.0 \
                        rmd160  66e9feb7944b3804efa63155ed9b618717b8955c \
                        sha256  72812077e7f20278003de6ab0d85053d89131d64c443f39115a022114fd032b6 \
                        size    73231 \
                    gopkg.in/check.v1 \
                        lock    038fdea0a05b \
                        rmd160  0f1896097db9d42b2fb5d62999bb52c77635f758 \
                        sha256  a82bd5c6960aa523c4dd8b30d52c3a7e8a5382e91f25862ef277bedf5c107007 \
                        size    31647 \
                    golang.org/x/net \
                        lock    c690dde0001d \
                        rmd160  09777cc1ec1d854183d64624f484910066a37e17 \
                        sha256  c1c12b0676f43601f446db14a17a8de0a52ed65baf5a449ba9be0480fe74b684 \
                        size    1228476 \
                    golang.org/x/crypto \
                        lock    793ad666bf5e \
                        rmd160  188c801055ed34a0a6f74b1021535cd0f0b01486 \
                        sha256  27c6b9caa232c99325ca0463324651ee8cb1f15ae43bd1366399c0e0e2a1f735 \
                        size    1631363 \
                    github.com/urfave/cli \
                        lock    v1.22.9 \
                        rmd160  4870cfd30c2fe09e9efbd587462bec2826422a88 \
                        sha256  71dc1e67a9fe492a96466486e48ddac84196fd00369c3e5a9fc891fcdfc0783e \
                        size    79018 \
                    github.com/russross/blackfriday \
                        lock    v2.1.0 \
                        rmd160  c42a9332a2c2f3074c6f7e8d37a58d6148d2af08 \
                        sha256  c4df56f2012a7d16471418245e78b5790569e27bbe8d72a860d7117a801a7fae \
                        size    92950 \
                    github.com/niemeyer/pretty \
                        lock    a10e7caefd8e \
                        rmd160  46bcfc3db9e3d98acbacd1f96d9483fa360f88b7 \
                        sha256  97b952a32175ba84349ef352e523bfa15bf3a06e07e44458a908061fbc519b40 \
                        size    9405 \
                    github.com/kr/text \
                        lock    v0.2.0 \
                        rmd160  48558c7e8ff67d510f83c66883907e95f4783163 \
                        sha256  2f2e21ac8a9d523e88cbba4039441defc4a66bfaa78811c900a88fcf28729c4c \
                        size    8702 \
                    github.com/cpuguy83/go-md2man \
                        lock    v2.0.2 \
                        rmd160  23c11486c5bc6f87cb13d2cb2aa7c2c68fd28f96 \
                        sha256  c0fe49af2717cef631621cbbf010c7ee69b7e5c8afcde33779e07ecece9c00cc \
                        size    64382 \
                    github.com/BurntSushi/toml \
                        lock    v1.1.0 \
                        rmd160  e57f2698bc9ef3ce4e207ee5b59196a22b9e1783 \
                        sha256  3c28e768873191e22aec847c4c2bea6a590ba8b046b2ecd792591bfa830f9987 \
                        size    91869

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

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